configure revision 170256
160786Sps#! /bin/sh 260786Sps# Guess values for system-dependent variables and create Makefiles. 3170256Sdelphij# Generated by GNU Autoconf 2.61 for less 1. 460786Sps# 5170256Sdelphij# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6170256Sdelphij# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 760786Sps# This configure script is free software; the Free Software Foundation 860786Sps# gives unlimited permission to copy, distribute and modify it. 9128345Stjr## --------------------- ## 10128345Stjr## M4sh Initialization. ## 11128345Stjr## --------------------- ## 1260786Sps 13170256Sdelphij# Be more Bourne compatible 14170256SdelphijDUALCASE=1; export DUALCASE # for MKS sh 15128345Stjrif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16128345Stjr emulate sh 17128345Stjr NULLCMD=: 18128345Stjr # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19128345Stjr # is contrary to our usage. Disable this feature. 20128345Stjr alias -g '${1+"$@"}'='"$@"' 21170256Sdelphij setopt NO_GLOB_SUBST 22170256Sdelphijelse 23170256Sdelphij case `(set -o) 2>/dev/null` in 24170256Sdelphij *posix*) set -o posix ;; 25170256Sdelphijesac 26170256Sdelphij 27128345Stjrfi 28128345Stjr 29170256Sdelphij 30170256Sdelphij 31170256Sdelphij 32170256Sdelphij# PATH needs CR 33170256Sdelphij# Avoid depending upon Character Ranges. 34170256Sdelphijas_cr_letters='abcdefghijklmnopqrstuvwxyz' 35170256Sdelphijas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36170256Sdelphijas_cr_Letters=$as_cr_letters$as_cr_LETTERS 37170256Sdelphijas_cr_digits='0123456789' 38170256Sdelphijas_cr_alnum=$as_cr_Letters$as_cr_digits 39170256Sdelphij 40170256Sdelphij# The user is always right. 41170256Sdelphijif test "${PATH_SEPARATOR+set}" != set; then 42170256Sdelphij echo "#! /bin/sh" >conf$$.sh 43170256Sdelphij echo "exit 0" >>conf$$.sh 44170256Sdelphij chmod +x conf$$.sh 45170256Sdelphij if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46170256Sdelphij PATH_SEPARATOR=';' 47170256Sdelphij else 48170256Sdelphij PATH_SEPARATOR=: 49170256Sdelphij fi 50170256Sdelphij rm -f conf$$.sh 51170256Sdelphijfi 52170256Sdelphij 53128345Stjr# Support unset when possible. 54170256Sdelphijif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55128345Stjr as_unset=unset 56128345Stjrelse 57128345Stjr as_unset=false 58128345Stjrfi 59128345Stjr 60128345Stjr 61170256Sdelphij# IFS 62170256Sdelphij# We need space, tab and new line, in precisely that order. Quoting is 63170256Sdelphij# there to prevent editors from complaining about space-tab. 64170256Sdelphij# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65170256Sdelphij# splitting by setting IFS to empty value.) 66170256Sdelphijas_nl=' 67170256Sdelphij' 68170256SdelphijIFS=" "" $as_nl" 69170256Sdelphij 70170256Sdelphij# Find who we are. Look in the path if we contain no directory separator. 71170256Sdelphijcase $0 in 72170256Sdelphij *[\\/]* ) as_myself=$0 ;; 73170256Sdelphij *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74170256Sdelphijfor as_dir in $PATH 75170256Sdelphijdo 76170256Sdelphij IFS=$as_save_IFS 77170256Sdelphij test -z "$as_dir" && as_dir=. 78170256Sdelphij test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79170256Sdelphijdone 80170256SdelphijIFS=$as_save_IFS 81170256Sdelphij 82170256Sdelphij ;; 83170256Sdelphijesac 84170256Sdelphij# We did not find ourselves, most probably we were run as `sh COMMAND' 85170256Sdelphij# in which case we are not to be found in the path. 86170256Sdelphijif test "x$as_myself" = x; then 87170256Sdelphij as_myself=$0 88170256Sdelphijfi 89170256Sdelphijif test ! -f "$as_myself"; then 90170256Sdelphij echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91170256Sdelphij { (exit 1); exit 1; } 92170256Sdelphijfi 93170256Sdelphij 94128345Stjr# Work around bugs in pre-3.0 UWIN ksh. 95170256Sdelphijfor as_var in ENV MAIL MAILPATH 96170256Sdelphijdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97170256Sdelphijdone 98128345StjrPS1='$ ' 99128345StjrPS2='> ' 100128345StjrPS4='+ ' 101128345Stjr 102128345Stjr# NLS nuisances. 103170256Sdelphijfor as_var in \ 104170256Sdelphij LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105170256Sdelphij LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106170256Sdelphij LC_TELEPHONE LC_TIME 107128345Stjrdo 108170256Sdelphij if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109128345Stjr eval $as_var=C; export $as_var 110128345Stjr else 111170256Sdelphij ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112128345Stjr fi 113128345Stjrdone 114128345Stjr 115128345Stjr# Required to use basename. 116170256Sdelphijif expr a : '\(a\)' >/dev/null 2>&1 && 117170256Sdelphij test "X`expr 00001 : '.*\(...\)'`" = X001; then 118128345Stjr as_expr=expr 119128345Stjrelse 120128345Stjr as_expr=false 121128345Stjrfi 122128345Stjr 123170256Sdelphijif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124128345Stjr as_basename=basename 125128345Stjrelse 126128345Stjr as_basename=false 127128345Stjrfi 128128345Stjr 129128345Stjr 130128345Stjr# Name of the executable. 131170256Sdelphijas_me=`$as_basename -- "$0" || 132128345Stjr$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133128345Stjr X"$0" : 'X\(//\)$' \| \ 134170256Sdelphij X"$0" : 'X\(/\)' \| . 2>/dev/null || 135128345Stjrecho X/"$0" | 136170256Sdelphij sed '/^.*\/\([^/][^/]*\)\/*$/{ 137170256Sdelphij s//\1/ 138170256Sdelphij q 139170256Sdelphij } 140170256Sdelphij /^X\/\(\/\/\)$/{ 141170256Sdelphij s//\1/ 142170256Sdelphij q 143170256Sdelphij } 144170256Sdelphij /^X\/\(\/\).*/{ 145170256Sdelphij s//\1/ 146170256Sdelphij q 147170256Sdelphij } 148170256Sdelphij s/.*/./; q'` 149128345Stjr 150170256Sdelphij# CDPATH. 151170256Sdelphij$as_unset CDPATH 152128345Stjr 153128345Stjr 154170256Sdelphijif test "x$CONFIG_SHELL" = x; then 155170256Sdelphij if (eval ":") 2>/dev/null; then 156170256Sdelphij as_have_required=yes 157170256Sdelphijelse 158170256Sdelphij as_have_required=no 159128345Stjrfi 160128345Stjr 161170256Sdelphij if test $as_have_required = yes && (eval ": 162170256Sdelphij(as_func_return () { 163170256Sdelphij (exit \$1) 164170256Sdelphij} 165170256Sdelphijas_func_success () { 166170256Sdelphij as_func_return 0 167170256Sdelphij} 168170256Sdelphijas_func_failure () { 169170256Sdelphij as_func_return 1 170170256Sdelphij} 171170256Sdelphijas_func_ret_success () { 172170256Sdelphij return 0 173170256Sdelphij} 174170256Sdelphijas_func_ret_failure () { 175170256Sdelphij return 1 176170256Sdelphij} 177128345Stjr 178170256Sdelphijexitcode=0 179170256Sdelphijif as_func_success; then 180170256Sdelphij : 181170256Sdelphijelse 182170256Sdelphij exitcode=1 183170256Sdelphij echo as_func_success failed. 184170256Sdelphijfi 185128345Stjr 186170256Sdelphijif as_func_failure; then 187170256Sdelphij exitcode=1 188170256Sdelphij echo as_func_failure succeeded. 189170256Sdelphijfi 190170256Sdelphij 191170256Sdelphijif as_func_ret_success; then 192170256Sdelphij : 193170256Sdelphijelse 194170256Sdelphij exitcode=1 195170256Sdelphij echo as_func_ret_success failed. 196170256Sdelphijfi 197170256Sdelphij 198170256Sdelphijif as_func_ret_failure; then 199170256Sdelphij exitcode=1 200170256Sdelphij echo as_func_ret_failure succeeded. 201170256Sdelphijfi 202170256Sdelphij 203170256Sdelphijif ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204170256Sdelphij : 205170256Sdelphijelse 206170256Sdelphij exitcode=1 207170256Sdelphij echo positional parameters were not saved. 208170256Sdelphijfi 209170256Sdelphij 210170256Sdelphijtest \$exitcode = 0) || { (exit 1); exit 1; } 211170256Sdelphij 212170256Sdelphij( 213170256Sdelphij as_lineno_1=\$LINENO 214170256Sdelphij as_lineno_2=\$LINENO 215170256Sdelphij test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216170256Sdelphij test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217170256Sdelphij") 2> /dev/null; then 218170256Sdelphij : 219170256Sdelphijelse 220170256Sdelphij as_candidate_shells= 221128345Stjr as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222128345Stjrfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223128345Stjrdo 224128345Stjr IFS=$as_save_IFS 225128345Stjr test -z "$as_dir" && as_dir=. 226170256Sdelphij case $as_dir in 227128345Stjr /*) 228170256Sdelphij for as_base in sh bash ksh sh5; do 229170256Sdelphij as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230170256Sdelphij done;; 231170256Sdelphij esac 232170256Sdelphijdone 233170256SdelphijIFS=$as_save_IFS 234170256Sdelphij 235170256Sdelphij 236170256Sdelphij for as_shell in $as_candidate_shells $SHELL; do 237170256Sdelphij # Try only shells that exist, to save several forks. 238170256Sdelphij if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239170256Sdelphij { ("$as_shell") 2> /dev/null <<\_ASEOF 240170256Sdelphijif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241170256Sdelphij emulate sh 242170256Sdelphij NULLCMD=: 243170256Sdelphij # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244170256Sdelphij # is contrary to our usage. Disable this feature. 245170256Sdelphij alias -g '${1+"$@"}'='"$@"' 246170256Sdelphij setopt NO_GLOB_SUBST 247170256Sdelphijelse 248170256Sdelphij case `(set -o) 2>/dev/null` in 249170256Sdelphij *posix*) set -o posix ;; 250170256Sdelphijesac 251170256Sdelphij 252170256Sdelphijfi 253170256Sdelphij 254170256Sdelphij 255170256Sdelphij: 256170256Sdelphij_ASEOF 257170256Sdelphij}; then 258170256Sdelphij CONFIG_SHELL=$as_shell 259170256Sdelphij as_have_required=yes 260170256Sdelphij if { "$as_shell" 2> /dev/null <<\_ASEOF 261170256Sdelphijif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262170256Sdelphij emulate sh 263170256Sdelphij NULLCMD=: 264170256Sdelphij # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265170256Sdelphij # is contrary to our usage. Disable this feature. 266170256Sdelphij alias -g '${1+"$@"}'='"$@"' 267170256Sdelphij setopt NO_GLOB_SUBST 268170256Sdelphijelse 269170256Sdelphij case `(set -o) 2>/dev/null` in 270170256Sdelphij *posix*) set -o posix ;; 271170256Sdelphijesac 272170256Sdelphij 273170256Sdelphijfi 274170256Sdelphij 275170256Sdelphij 276170256Sdelphij: 277170256Sdelphij(as_func_return () { 278170256Sdelphij (exit $1) 279170256Sdelphij} 280170256Sdelphijas_func_success () { 281170256Sdelphij as_func_return 0 282170256Sdelphij} 283170256Sdelphijas_func_failure () { 284170256Sdelphij as_func_return 1 285170256Sdelphij} 286170256Sdelphijas_func_ret_success () { 287170256Sdelphij return 0 288170256Sdelphij} 289170256Sdelphijas_func_ret_failure () { 290170256Sdelphij return 1 291170256Sdelphij} 292170256Sdelphij 293170256Sdelphijexitcode=0 294170256Sdelphijif as_func_success; then 295170256Sdelphij : 296170256Sdelphijelse 297170256Sdelphij exitcode=1 298170256Sdelphij echo as_func_success failed. 299170256Sdelphijfi 300170256Sdelphij 301170256Sdelphijif as_func_failure; then 302170256Sdelphij exitcode=1 303170256Sdelphij echo as_func_failure succeeded. 304170256Sdelphijfi 305170256Sdelphij 306170256Sdelphijif as_func_ret_success; then 307170256Sdelphij : 308170256Sdelphijelse 309170256Sdelphij exitcode=1 310170256Sdelphij echo as_func_ret_success failed. 311170256Sdelphijfi 312170256Sdelphij 313170256Sdelphijif as_func_ret_failure; then 314170256Sdelphij exitcode=1 315170256Sdelphij echo as_func_ret_failure succeeded. 316170256Sdelphijfi 317170256Sdelphij 318170256Sdelphijif ( set x; as_func_ret_success y && test x = "$1" ); then 319170256Sdelphij : 320170256Sdelphijelse 321170256Sdelphij exitcode=1 322170256Sdelphij echo positional parameters were not saved. 323170256Sdelphijfi 324170256Sdelphij 325170256Sdelphijtest $exitcode = 0) || { (exit 1); exit 1; } 326170256Sdelphij 327170256Sdelphij( 328128345Stjr as_lineno_1=$LINENO 329128345Stjr as_lineno_2=$LINENO 330128345Stjr test "x$as_lineno_1" != "x$as_lineno_2" && 331170256Sdelphij test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332128345Stjr 333170256Sdelphij_ASEOF 334170256Sdelphij}; then 335170256Sdelphij break 336170256Sdelphijfi 337170256Sdelphij 338170256Sdelphijfi 339170256Sdelphij 340170256Sdelphij done 341170256Sdelphij 342170256Sdelphij if test "x$CONFIG_SHELL" != x; then 343170256Sdelphij for as_var in BASH_ENV ENV 344170256Sdelphij do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345170256Sdelphij done 346170256Sdelphij export CONFIG_SHELL 347170256Sdelphij exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348170256Sdelphijfi 349170256Sdelphij 350170256Sdelphij 351170256Sdelphij if test $as_have_required = no; then 352170256Sdelphij echo This script requires a shell more modern than all the 353170256Sdelphij echo shells that I found on your system. Please install a 354170256Sdelphij echo modern shell, or manually run the script under such a 355170256Sdelphij echo shell if you do have one. 356170256Sdelphij { (exit 1); exit 1; } 357170256Sdelphijfi 358170256Sdelphij 359170256Sdelphij 360170256Sdelphijfi 361170256Sdelphij 362170256Sdelphijfi 363170256Sdelphij 364170256Sdelphij 365170256Sdelphij 366170256Sdelphij(eval "as_func_return () { 367170256Sdelphij (exit \$1) 368170256Sdelphij} 369170256Sdelphijas_func_success () { 370170256Sdelphij as_func_return 0 371170256Sdelphij} 372170256Sdelphijas_func_failure () { 373170256Sdelphij as_func_return 1 374170256Sdelphij} 375170256Sdelphijas_func_ret_success () { 376170256Sdelphij return 0 377170256Sdelphij} 378170256Sdelphijas_func_ret_failure () { 379170256Sdelphij return 1 380170256Sdelphij} 381170256Sdelphij 382170256Sdelphijexitcode=0 383170256Sdelphijif as_func_success; then 384170256Sdelphij : 385170256Sdelphijelse 386170256Sdelphij exitcode=1 387170256Sdelphij echo as_func_success failed. 388170256Sdelphijfi 389170256Sdelphij 390170256Sdelphijif as_func_failure; then 391170256Sdelphij exitcode=1 392170256Sdelphij echo as_func_failure succeeded. 393170256Sdelphijfi 394170256Sdelphij 395170256Sdelphijif as_func_ret_success; then 396170256Sdelphij : 397170256Sdelphijelse 398170256Sdelphij exitcode=1 399170256Sdelphij echo as_func_ret_success failed. 400170256Sdelphijfi 401170256Sdelphij 402170256Sdelphijif as_func_ret_failure; then 403170256Sdelphij exitcode=1 404170256Sdelphij echo as_func_ret_failure succeeded. 405170256Sdelphijfi 406170256Sdelphij 407170256Sdelphijif ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408170256Sdelphij : 409170256Sdelphijelse 410170256Sdelphij exitcode=1 411170256Sdelphij echo positional parameters were not saved. 412170256Sdelphijfi 413170256Sdelphij 414170256Sdelphijtest \$exitcode = 0") || { 415170256Sdelphij echo No shell found that supports shell functions. 416170256Sdelphij echo Please tell autoconf@gnu.org about your system, 417170256Sdelphij echo including any error possibly output before this 418170256Sdelphij echo message 419170256Sdelphij} 420170256Sdelphij 421170256Sdelphij 422170256Sdelphij 423170256Sdelphij as_lineno_1=$LINENO 424170256Sdelphij as_lineno_2=$LINENO 425170256Sdelphij test "x$as_lineno_1" != "x$as_lineno_2" && 426170256Sdelphij test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427170256Sdelphij 428128345Stjr # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429128345Stjr # uniformly replaced by the line number. The first 'sed' inserts a 430170256Sdelphij # line-number line after each line using $LINENO; the second 'sed' 431170256Sdelphij # does the real work. The second script uses 'N' to pair each 432170256Sdelphij # line-number line with the line containing $LINENO, and appends 433170256Sdelphij # trailing '-' during substitution so that $LINENO is not a special 434170256Sdelphij # case at line end. 435128345Stjr # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436170256Sdelphij # scripts with optimization help from Paolo Bonzini. Blame Lee 437170256Sdelphij # E. McMahon (1931-1989) for sed's syntax. :-) 438170256Sdelphij sed -n ' 439170256Sdelphij p 440170256Sdelphij /[$]LINENO/= 441170256Sdelphij ' <$as_myself | 442128345Stjr sed ' 443170256Sdelphij s/[$]LINENO.*/&-/ 444170256Sdelphij t lineno 445170256Sdelphij b 446170256Sdelphij :lineno 447128345Stjr N 448170256Sdelphij :loop 449170256Sdelphij s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450128345Stjr t loop 451170256Sdelphij s/-\n.*// 452128345Stjr ' >$as_me.lineno && 453170256Sdelphij chmod +x "$as_me.lineno" || 454128345Stjr { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455128345Stjr { (exit 1); exit 1; }; } 456128345Stjr 457128345Stjr # Don't try to exec as it changes $[0], causing all sort of problems 458128345Stjr # (the dirname of $[0] is not the place where we might find the 459170256Sdelphij # original and so on. Autoconf is especially sensitive to this). 460170256Sdelphij . "./$as_me.lineno" 461128345Stjr # Exit status is that of the last command. 462128345Stjr exit 463128345Stjr} 464128345Stjr 465128345Stjr 466170256Sdelphijif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467170256Sdelphij as_dirname=dirname 468170256Sdelphijelse 469170256Sdelphij as_dirname=false 470170256Sdelphijfi 471170256Sdelphij 472170256SdelphijECHO_C= ECHO_N= ECHO_T= 473170256Sdelphijcase `echo -n x` in 474170256Sdelphij-n*) 475170256Sdelphij case `echo 'x\c'` in 476170256Sdelphij *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477170256Sdelphij *) ECHO_C='\c';; 478170256Sdelphij esac;; 479170256Sdelphij*) 480170256Sdelphij ECHO_N='-n';; 481128345Stjresac 482128345Stjr 483170256Sdelphijif expr a : '\(a\)' >/dev/null 2>&1 && 484170256Sdelphij test "X`expr 00001 : '.*\(...\)'`" = X001; then 485128345Stjr as_expr=expr 486128345Stjrelse 487128345Stjr as_expr=false 488128345Stjrfi 489128345Stjr 490128345Stjrrm -f conf$$ conf$$.exe conf$$.file 491170256Sdelphijif test -d conf$$.dir; then 492170256Sdelphij rm -f conf$$.dir/conf$$.file 493170256Sdelphijelse 494170256Sdelphij rm -f conf$$.dir 495170256Sdelphij mkdir conf$$.dir 496170256Sdelphijfi 497128345Stjrecho >conf$$.file 498128345Stjrif ln -s conf$$.file conf$$ 2>/dev/null; then 499170256Sdelphij as_ln_s='ln -s' 500170256Sdelphij # ... but there are two gotchas: 501170256Sdelphij # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502170256Sdelphij # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503170256Sdelphij # In both cases, we have to default to `cp -p'. 504170256Sdelphij ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505128345Stjr as_ln_s='cp -p' 506128345Stjrelif ln conf$$.file conf$$ 2>/dev/null; then 507128345Stjr as_ln_s=ln 508128345Stjrelse 509128345Stjr as_ln_s='cp -p' 510128345Stjrfi 511170256Sdelphijrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512170256Sdelphijrmdir conf$$.dir 2>/dev/null 513128345Stjr 514128345Stjrif mkdir -p . 2>/dev/null; then 515128345Stjr as_mkdir_p=: 516128345Stjrelse 517170256Sdelphij test -d ./-p && rmdir ./-p 518128345Stjr as_mkdir_p=false 519128345Stjrfi 520128345Stjr 521170256Sdelphijif test -x / >/dev/null 2>&1; then 522170256Sdelphij as_test_x='test -x' 523170256Sdelphijelse 524170256Sdelphij if ls -dL / >/dev/null 2>&1; then 525170256Sdelphij as_ls_L_option=L 526170256Sdelphij else 527170256Sdelphij as_ls_L_option= 528170256Sdelphij fi 529170256Sdelphij as_test_x=' 530170256Sdelphij eval sh -c '\'' 531170256Sdelphij if test -d "$1"; then 532170256Sdelphij test -d "$1/."; 533170256Sdelphij else 534170256Sdelphij case $1 in 535170256Sdelphij -*)set "./$1";; 536170256Sdelphij esac; 537170256Sdelphij case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538170256Sdelphij ???[sx]*):;;*)false;;esac;fi 539170256Sdelphij '\'' sh 540170256Sdelphij ' 541170256Sdelphijfi 542170256Sdelphijas_executable_p=$as_test_x 543128345Stjr 544128345Stjr# Sed expression to map a string onto a valid CPP name. 545170256Sdelphijas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546128345Stjr 547128345Stjr# Sed expression to map a string onto a valid variable name. 548170256Sdelphijas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549128345Stjr 550128345Stjr 551128345Stjr 552170256Sdelphijexec 7<&0 </dev/null 6>&1 553128345Stjr 554128345Stjr# Name of the host. 555128345Stjr# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 556128345Stjr# so uname gets run too. 557128345Stjrac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558128345Stjr 559128345Stjr# 560128345Stjr# Initializations. 561128345Stjr# 56260786Spsac_default_prefix=/usr/local 563170256Sdelphijac_clean_files= 564128345Stjrac_config_libobj_dir=. 565170256SdelphijLIBOBJS= 566128345Stjrcross_compiling=no 567128345Stjrsubdirs= 568128345StjrMFLAGS= 569128345StjrMAKEFLAGS= 570128345StjrSHELL=${CONFIG_SHELL-/bin/sh} 57160786Sps 572128345Stjr# Identity of this package. 573128345StjrPACKAGE_NAME='less' 574128345StjrPACKAGE_TARNAME='less' 575128345StjrPACKAGE_VERSION='1' 576128345StjrPACKAGE_STRING='less 1' 577128345StjrPACKAGE_BUGREPORT='' 578128345Stjr 579128345Stjrac_unique_file="forwback.c" 580128345Stjr# Factoring default headers for most tests. 581128345Stjrac_includes_default="\ 582128345Stjr#include <stdio.h> 583170256Sdelphij#ifdef HAVE_SYS_TYPES_H 584128345Stjr# include <sys/types.h> 585128345Stjr#endif 586170256Sdelphij#ifdef HAVE_SYS_STAT_H 587128345Stjr# include <sys/stat.h> 588128345Stjr#endif 589170256Sdelphij#ifdef STDC_HEADERS 590128345Stjr# include <stdlib.h> 591128345Stjr# include <stddef.h> 592128345Stjr#else 593170256Sdelphij# ifdef HAVE_STDLIB_H 594128345Stjr# include <stdlib.h> 595128345Stjr# endif 596128345Stjr#endif 597170256Sdelphij#ifdef HAVE_STRING_H 598170256Sdelphij# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599128345Stjr# include <memory.h> 600128345Stjr# endif 601128345Stjr# include <string.h> 602128345Stjr#endif 603170256Sdelphij#ifdef HAVE_STRINGS_H 604128345Stjr# include <strings.h> 605128345Stjr#endif 606170256Sdelphij#ifdef HAVE_INTTYPES_H 607128345Stjr# include <inttypes.h> 608128345Stjr#endif 609170256Sdelphij#ifdef HAVE_STDINT_H 610170256Sdelphij# include <stdint.h> 611170256Sdelphij#endif 612170256Sdelphij#ifdef HAVE_UNISTD_H 613128345Stjr# include <unistd.h> 614128345Stjr#endif" 615128345Stjr 616170256Sdelphijac_subst_vars='SHELL 617170256SdelphijPATH_SEPARATOR 618170256SdelphijPACKAGE_NAME 619170256SdelphijPACKAGE_TARNAME 620170256SdelphijPACKAGE_VERSION 621170256SdelphijPACKAGE_STRING 622170256SdelphijPACKAGE_BUGREPORT 623170256Sdelphijexec_prefix 624170256Sdelphijprefix 625170256Sdelphijprogram_transform_name 626170256Sdelphijbindir 627170256Sdelphijsbindir 628170256Sdelphijlibexecdir 629170256Sdelphijdatarootdir 630170256Sdelphijdatadir 631170256Sdelphijsysconfdir 632170256Sdelphijsharedstatedir 633170256Sdelphijlocalstatedir 634170256Sdelphijincludedir 635170256Sdelphijoldincludedir 636170256Sdelphijdocdir 637170256Sdelphijinfodir 638170256Sdelphijhtmldir 639170256Sdelphijdvidir 640170256Sdelphijpdfdir 641170256Sdelphijpsdir 642170256Sdelphijlibdir 643170256Sdelphijlocaledir 644170256Sdelphijmandir 645170256SdelphijDEFS 646170256SdelphijECHO_C 647170256SdelphijECHO_N 648170256SdelphijECHO_T 649170256SdelphijLIBS 650170256Sdelphijbuild_alias 651170256Sdelphijhost_alias 652170256Sdelphijtarget_alias 653170256SdelphijCC 654170256SdelphijCFLAGS 655170256SdelphijLDFLAGS 656170256SdelphijCPPFLAGS 657170256Sdelphijac_ct_CC 658170256SdelphijEXEEXT 659170256SdelphijOBJEXT 660170256SdelphijCPP 661170256SdelphijGREP 662170256SdelphijEGREP 663170256SdelphijINSTALL_PROGRAM 664170256SdelphijINSTALL_SCRIPT 665170256SdelphijINSTALL_DATA 666170256SdelphijREGEX_O 667170256SdelphijLIBOBJS 668170256SdelphijLTLIBOBJS' 669128345Stjrac_subst_files='' 670170256Sdelphij ac_precious_vars='build_alias 671170256Sdelphijhost_alias 672170256Sdelphijtarget_alias 673170256SdelphijCC 674170256SdelphijCFLAGS 675170256SdelphijLDFLAGS 676170256SdelphijLIBS 677170256SdelphijCPPFLAGS 678170256SdelphijCPP' 679128345Stjr 680170256Sdelphij 68160786Sps# Initialize some variables set by options. 682128345Stjrac_init_help= 683128345Stjrac_init_version=false 68460786Sps# The variables have the same names as the options, with 68560786Sps# dashes changed to underlines. 686128345Stjrcache_file=/dev/null 68760786Spsexec_prefix=NONE 68860786Spsno_create= 68960786Spsno_recursion= 69060786Spsprefix=NONE 69160786Spsprogram_prefix=NONE 69260786Spsprogram_suffix=NONE 69360786Spsprogram_transform_name=s,x,x, 69460786Spssilent= 69560786Spssite= 69660786Spssrcdir= 69760786Spsverbose= 69860786Spsx_includes=NONE 69960786Spsx_libraries=NONE 700128345Stjr 701128345Stjr# Installation directory options. 702128345Stjr# These are left unexpanded so users can "make install exec_prefix=/foo" 703128345Stjr# and all the variables that are supposed to be based on exec_prefix 704128345Stjr# by default will actually change. 705128345Stjr# Use braces instead of parens because sh, perl, etc. also accept them. 706170256Sdelphij# (The list follows the same order as the GNU Coding Standards.) 70760786Spsbindir='${exec_prefix}/bin' 70860786Spssbindir='${exec_prefix}/sbin' 70960786Spslibexecdir='${exec_prefix}/libexec' 710170256Sdelphijdatarootdir='${prefix}/share' 711170256Sdelphijdatadir='${datarootdir}' 71260786Spssysconfdir='${prefix}/etc' 71360786Spssharedstatedir='${prefix}/com' 71460786Spslocalstatedir='${prefix}/var' 71560786Spsincludedir='${prefix}/include' 71660786Spsoldincludedir='/usr/include' 717170256Sdelphijdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 718170256Sdelphijinfodir='${datarootdir}/info' 719170256Sdelphijhtmldir='${docdir}' 720170256Sdelphijdvidir='${docdir}' 721170256Sdelphijpdfdir='${docdir}' 722170256Sdelphijpsdir='${docdir}' 723170256Sdelphijlibdir='${exec_prefix}/lib' 724170256Sdelphijlocaledir='${datarootdir}/locale' 725170256Sdelphijmandir='${datarootdir}/man' 72660786Sps 72760786Spsac_prev= 728170256Sdelphijac_dashdash= 72960786Spsfor ac_option 73060786Spsdo 73160786Sps # If the previous option needs an argument, assign it. 73260786Sps if test -n "$ac_prev"; then 733170256Sdelphij eval $ac_prev=\$ac_option 73460786Sps ac_prev= 73560786Sps continue 73660786Sps fi 73760786Sps 738170256Sdelphij case $ac_option in 739170256Sdelphij *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 740170256Sdelphij *) ac_optarg=yes ;; 741170256Sdelphij esac 74260786Sps 74360786Sps # Accept the important Cygnus configure options, so we can diagnose typos. 74460786Sps 745170256Sdelphij case $ac_dashdash$ac_option in 746170256Sdelphij --) 747170256Sdelphij ac_dashdash=yes ;; 74860786Sps 74960786Sps -bindir | --bindir | --bindi | --bind | --bin | --bi) 75060786Sps ac_prev=bindir ;; 75160786Sps -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 752128345Stjr bindir=$ac_optarg ;; 75360786Sps 75460786Sps -build | --build | --buil | --bui | --bu) 755128345Stjr ac_prev=build_alias ;; 75660786Sps -build=* | --build=* | --buil=* | --bui=* | --bu=*) 757128345Stjr build_alias=$ac_optarg ;; 75860786Sps 75960786Sps -cache-file | --cache-file | --cache-fil | --cache-fi \ 76060786Sps | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 76160786Sps ac_prev=cache_file ;; 76260786Sps -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 76360786Sps | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 764128345Stjr cache_file=$ac_optarg ;; 76560786Sps 766128345Stjr --config-cache | -C) 767128345Stjr cache_file=config.cache ;; 768128345Stjr 769170256Sdelphij -datadir | --datadir | --datadi | --datad) 77060786Sps ac_prev=datadir ;; 771170256Sdelphij -datadir=* | --datadir=* | --datadi=* | --datad=*) 772128345Stjr datadir=$ac_optarg ;; 77360786Sps 774170256Sdelphij -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 775170256Sdelphij | --dataroo | --dataro | --datar) 776170256Sdelphij ac_prev=datarootdir ;; 777170256Sdelphij -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 778170256Sdelphij | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 779170256Sdelphij datarootdir=$ac_optarg ;; 780170256Sdelphij 78160786Sps -disable-* | --disable-*) 782128345Stjr ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 78360786Sps # Reject names that are not valid shell variable names. 784170256Sdelphij expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 785128345Stjr { echo "$as_me: error: invalid feature name: $ac_feature" >&2 786128345Stjr { (exit 1); exit 1; }; } 787170256Sdelphij ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 788170256Sdelphij eval enable_$ac_feature=no ;; 78960786Sps 790170256Sdelphij -docdir | --docdir | --docdi | --doc | --do) 791170256Sdelphij ac_prev=docdir ;; 792170256Sdelphij -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 793170256Sdelphij docdir=$ac_optarg ;; 794170256Sdelphij 795170256Sdelphij -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 796170256Sdelphij ac_prev=dvidir ;; 797170256Sdelphij -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 798170256Sdelphij dvidir=$ac_optarg ;; 799170256Sdelphij 80060786Sps -enable-* | --enable-*) 801128345Stjr ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 80260786Sps # Reject names that are not valid shell variable names. 803170256Sdelphij expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 804128345Stjr { echo "$as_me: error: invalid feature name: $ac_feature" >&2 805128345Stjr { (exit 1); exit 1; }; } 806170256Sdelphij ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 807170256Sdelphij eval enable_$ac_feature=\$ac_optarg ;; 80860786Sps 80960786Sps -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 81060786Sps | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 81160786Sps | --exec | --exe | --ex) 81260786Sps ac_prev=exec_prefix ;; 81360786Sps -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 81460786Sps | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 81560786Sps | --exec=* | --exe=* | --ex=*) 816128345Stjr exec_prefix=$ac_optarg ;; 81760786Sps 81860786Sps -gas | --gas | --ga | --g) 81960786Sps # Obsolete; use --with-gas. 82060786Sps with_gas=yes ;; 82160786Sps 822128345Stjr -help | --help | --hel | --he | -h) 823128345Stjr ac_init_help=long ;; 824128345Stjr -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 825128345Stjr ac_init_help=recursive ;; 826128345Stjr -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 827128345Stjr ac_init_help=short ;; 82860786Sps 82960786Sps -host | --host | --hos | --ho) 830128345Stjr ac_prev=host_alias ;; 83160786Sps -host=* | --host=* | --hos=* | --ho=*) 832128345Stjr host_alias=$ac_optarg ;; 83360786Sps 834170256Sdelphij -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 835170256Sdelphij ac_prev=htmldir ;; 836170256Sdelphij -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 837170256Sdelphij | --ht=*) 838170256Sdelphij htmldir=$ac_optarg ;; 839170256Sdelphij 84060786Sps -includedir | --includedir | --includedi | --included | --include \ 84160786Sps | --includ | --inclu | --incl | --inc) 84260786Sps ac_prev=includedir ;; 84360786Sps -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 84460786Sps | --includ=* | --inclu=* | --incl=* | --inc=*) 845128345Stjr includedir=$ac_optarg ;; 84660786Sps 84760786Sps -infodir | --infodir | --infodi | --infod | --info | --inf) 84860786Sps ac_prev=infodir ;; 84960786Sps -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 850128345Stjr infodir=$ac_optarg ;; 85160786Sps 85260786Sps -libdir | --libdir | --libdi | --libd) 85360786Sps ac_prev=libdir ;; 85460786Sps -libdir=* | --libdir=* | --libdi=* | --libd=*) 855128345Stjr libdir=$ac_optarg ;; 85660786Sps 85760786Sps -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 85860786Sps | --libexe | --libex | --libe) 85960786Sps ac_prev=libexecdir ;; 86060786Sps -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 86160786Sps | --libexe=* | --libex=* | --libe=*) 862128345Stjr libexecdir=$ac_optarg ;; 86360786Sps 864170256Sdelphij -localedir | --localedir | --localedi | --localed | --locale) 865170256Sdelphij ac_prev=localedir ;; 866170256Sdelphij -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 867170256Sdelphij localedir=$ac_optarg ;; 868170256Sdelphij 86960786Sps -localstatedir | --localstatedir | --localstatedi | --localstated \ 870170256Sdelphij | --localstate | --localstat | --localsta | --localst | --locals) 87160786Sps ac_prev=localstatedir ;; 87260786Sps -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 873170256Sdelphij | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 874128345Stjr localstatedir=$ac_optarg ;; 87560786Sps 87660786Sps -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 87760786Sps ac_prev=mandir ;; 87860786Sps -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 879128345Stjr mandir=$ac_optarg ;; 88060786Sps 88160786Sps -nfp | --nfp | --nf) 88260786Sps # Obsolete; use --without-fp. 88360786Sps with_fp=no ;; 88460786Sps 88560786Sps -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 886128345Stjr | --no-cr | --no-c | -n) 88760786Sps no_create=yes ;; 88860786Sps 88960786Sps -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 89060786Sps | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 89160786Sps no_recursion=yes ;; 89260786Sps 89360786Sps -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 89460786Sps | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 89560786Sps | --oldin | --oldi | --old | --ol | --o) 89660786Sps ac_prev=oldincludedir ;; 89760786Sps -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 89860786Sps | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 89960786Sps | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 900128345Stjr oldincludedir=$ac_optarg ;; 90160786Sps 90260786Sps -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 90360786Sps ac_prev=prefix ;; 90460786Sps -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 905128345Stjr prefix=$ac_optarg ;; 90660786Sps 90760786Sps -program-prefix | --program-prefix | --program-prefi | --program-pref \ 90860786Sps | --program-pre | --program-pr | --program-p) 90960786Sps ac_prev=program_prefix ;; 91060786Sps -program-prefix=* | --program-prefix=* | --program-prefi=* \ 91160786Sps | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 912128345Stjr program_prefix=$ac_optarg ;; 91360786Sps 91460786Sps -program-suffix | --program-suffix | --program-suffi | --program-suff \ 91560786Sps | --program-suf | --program-su | --program-s) 91660786Sps ac_prev=program_suffix ;; 91760786Sps -program-suffix=* | --program-suffix=* | --program-suffi=* \ 91860786Sps | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 919128345Stjr program_suffix=$ac_optarg ;; 92060786Sps 92160786Sps -program-transform-name | --program-transform-name \ 92260786Sps | --program-transform-nam | --program-transform-na \ 92360786Sps | --program-transform-n | --program-transform- \ 92460786Sps | --program-transform | --program-transfor \ 92560786Sps | --program-transfo | --program-transf \ 92660786Sps | --program-trans | --program-tran \ 92760786Sps | --progr-tra | --program-tr | --program-t) 92860786Sps ac_prev=program_transform_name ;; 92960786Sps -program-transform-name=* | --program-transform-name=* \ 93060786Sps | --program-transform-nam=* | --program-transform-na=* \ 93160786Sps | --program-transform-n=* | --program-transform-=* \ 93260786Sps | --program-transform=* | --program-transfor=* \ 93360786Sps | --program-transfo=* | --program-transf=* \ 93460786Sps | --program-trans=* | --program-tran=* \ 93560786Sps | --progr-tra=* | --program-tr=* | --program-t=*) 936128345Stjr program_transform_name=$ac_optarg ;; 93760786Sps 938170256Sdelphij -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 939170256Sdelphij ac_prev=pdfdir ;; 940170256Sdelphij -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 941170256Sdelphij pdfdir=$ac_optarg ;; 942170256Sdelphij 943170256Sdelphij -psdir | --psdir | --psdi | --psd | --ps) 944170256Sdelphij ac_prev=psdir ;; 945170256Sdelphij -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 946170256Sdelphij psdir=$ac_optarg ;; 947170256Sdelphij 94860786Sps -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 94960786Sps | -silent | --silent | --silen | --sile | --sil) 95060786Sps silent=yes ;; 95160786Sps 95260786Sps -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 95360786Sps ac_prev=sbindir ;; 95460786Sps -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 95560786Sps | --sbi=* | --sb=*) 956128345Stjr sbindir=$ac_optarg ;; 95760786Sps 95860786Sps -sharedstatedir | --sharedstatedir | --sharedstatedi \ 95960786Sps | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 96060786Sps | --sharedst | --shareds | --shared | --share | --shar \ 96160786Sps | --sha | --sh) 96260786Sps ac_prev=sharedstatedir ;; 96360786Sps -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 96460786Sps | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 96560786Sps | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 96660786Sps | --sha=* | --sh=*) 967128345Stjr sharedstatedir=$ac_optarg ;; 96860786Sps 96960786Sps -site | --site | --sit) 97060786Sps ac_prev=site ;; 97160786Sps -site=* | --site=* | --sit=*) 972128345Stjr site=$ac_optarg ;; 97360786Sps 97460786Sps -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 97560786Sps ac_prev=srcdir ;; 97660786Sps -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 977128345Stjr srcdir=$ac_optarg ;; 97860786Sps 97960786Sps -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 98060786Sps | --syscon | --sysco | --sysc | --sys | --sy) 98160786Sps ac_prev=sysconfdir ;; 98260786Sps -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 98360786Sps | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 984128345Stjr sysconfdir=$ac_optarg ;; 98560786Sps 98660786Sps -target | --target | --targe | --targ | --tar | --ta | --t) 987128345Stjr ac_prev=target_alias ;; 98860786Sps -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 989128345Stjr target_alias=$ac_optarg ;; 99060786Sps 99160786Sps -v | -verbose | --verbose | --verbos | --verbo | --verb) 99260786Sps verbose=yes ;; 99360786Sps 994128345Stjr -version | --version | --versio | --versi | --vers | -V) 995128345Stjr ac_init_version=: ;; 99660786Sps 99760786Sps -with-* | --with-*) 998128345Stjr ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 99960786Sps # Reject names that are not valid shell variable names. 1000170256Sdelphij expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1001128345Stjr { echo "$as_me: error: invalid package name: $ac_package" >&2 1002128345Stjr { (exit 1); exit 1; }; } 1003170256Sdelphij ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1004170256Sdelphij eval with_$ac_package=\$ac_optarg ;; 100560786Sps 100660786Sps -without-* | --without-*) 1007128345Stjr ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 100860786Sps # Reject names that are not valid shell variable names. 1009170256Sdelphij expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1010128345Stjr { echo "$as_me: error: invalid package name: $ac_package" >&2 1011128345Stjr { (exit 1); exit 1; }; } 1012170256Sdelphij ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1013170256Sdelphij eval with_$ac_package=no ;; 101460786Sps 101560786Sps --x) 101660786Sps # Obsolete; use --with-x. 101760786Sps with_x=yes ;; 101860786Sps 101960786Sps -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 102060786Sps | --x-incl | --x-inc | --x-in | --x-i) 102160786Sps ac_prev=x_includes ;; 102260786Sps -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 102360786Sps | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1024128345Stjr x_includes=$ac_optarg ;; 102560786Sps 102660786Sps -x-libraries | --x-libraries | --x-librarie | --x-librari \ 102760786Sps | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 102860786Sps ac_prev=x_libraries ;; 102960786Sps -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 103060786Sps | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1031128345Stjr x_libraries=$ac_optarg ;; 103260786Sps 1033128345Stjr -*) { echo "$as_me: error: unrecognized option: $ac_option 1034128345StjrTry \`$0 --help' for more information." >&2 1035128345Stjr { (exit 1); exit 1; }; } 103660786Sps ;; 103760786Sps 1038128345Stjr *=*) 1039128345Stjr ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1040128345Stjr # Reject names that are not valid shell variable names. 1041128345Stjr expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1042128345Stjr { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1043128345Stjr { (exit 1); exit 1; }; } 1044170256Sdelphij eval $ac_envvar=\$ac_optarg 1045128345Stjr export $ac_envvar ;; 1046128345Stjr 104760786Sps *) 1048128345Stjr # FIXME: should be removed in autoconf 3.0. 1049128345Stjr echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1050128345Stjr expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1051128345Stjr echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1052128345Stjr : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 105360786Sps ;; 105460786Sps 105560786Sps esac 105660786Spsdone 105760786Sps 105860786Spsif test -n "$ac_prev"; then 1059128345Stjr ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1060128345Stjr { echo "$as_me: error: missing argument to $ac_option" >&2 1061128345Stjr { (exit 1); exit 1; }; } 106260786Spsfi 106360786Sps 1064170256Sdelphij# Be sure to have absolute directory names. 1065170256Sdelphijfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1066170256Sdelphij datadir sysconfdir sharedstatedir localstatedir includedir \ 1067170256Sdelphij oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1068170256Sdelphij libdir localedir mandir 1069128345Stjrdo 1070170256Sdelphij eval ac_val=\$$ac_var 1071128345Stjr case $ac_val in 1072170256Sdelphij [\\/$]* | ?:[\\/]* ) continue;; 1073170256Sdelphij NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1074128345Stjr esac 1075170256Sdelphij { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1076170256Sdelphij { (exit 1); exit 1; }; } 1077128345Stjrdone 107860786Sps 1079128345Stjr# There might be people who depend on the old broken behavior: `$host' 1080128345Stjr# used to hold the argument of --host etc. 1081128345Stjr# FIXME: To remove some day. 1082128345Stjrbuild=$build_alias 1083128345Stjrhost=$host_alias 1084128345Stjrtarget=$target_alias 108560786Sps 1086128345Stjr# FIXME: To remove some day. 1087128345Stjrif test "x$host_alias" != x; then 1088128345Stjr if test "x$build_alias" = x; then 1089128345Stjr cross_compiling=maybe 1090128345Stjr echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1091128345Stjr If a cross compiler is detected then cross compile mode will be used." >&2 1092128345Stjr elif test "x$build_alias" != "x$host_alias"; then 1093128345Stjr cross_compiling=yes 1094128345Stjr fi 1095128345Stjrfi 109660786Sps 1097128345Stjrac_tool_prefix= 1098128345Stjrtest -n "$host_alias" && ac_tool_prefix=$host_alias- 109960786Sps 1100128345Stjrtest "$silent" = yes && exec 6>/dev/null 1101128345Stjr 1102128345Stjr 1103170256Sdelphijac_pwd=`pwd` && test -n "$ac_pwd" && 1104170256Sdelphijac_ls_di=`ls -di .` && 1105170256Sdelphijac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1106170256Sdelphij { echo "$as_me: error: Working directory cannot be determined" >&2 1107170256Sdelphij { (exit 1); exit 1; }; } 1108170256Sdelphijtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1109170256Sdelphij { echo "$as_me: error: pwd does not report name of working directory" >&2 1110170256Sdelphij { (exit 1); exit 1; }; } 1111170256Sdelphij 1112170256Sdelphij 111360786Sps# Find the source files, if location was not specified. 111460786Spsif test -z "$srcdir"; then 111560786Sps ac_srcdir_defaulted=yes 1116170256Sdelphij # Try the directory containing this script, then the parent directory. 1117170256Sdelphij ac_confdir=`$as_dirname -- "$0" || 1118128345Stjr$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1119170256Sdelphij X"$0" : 'X\(//\)[^/]' \| \ 1120170256Sdelphij X"$0" : 'X\(//\)$' \| \ 1121170256Sdelphij X"$0" : 'X\(/\)' \| . 2>/dev/null || 1122128345Stjrecho X"$0" | 1123170256Sdelphij sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1124170256Sdelphij s//\1/ 1125170256Sdelphij q 1126170256Sdelphij } 1127170256Sdelphij /^X\(\/\/\)[^/].*/{ 1128170256Sdelphij s//\1/ 1129170256Sdelphij q 1130170256Sdelphij } 1131170256Sdelphij /^X\(\/\/\)$/{ 1132170256Sdelphij s//\1/ 1133170256Sdelphij q 1134170256Sdelphij } 1135170256Sdelphij /^X\(\/\).*/{ 1136170256Sdelphij s//\1/ 1137170256Sdelphij q 1138170256Sdelphij } 1139170256Sdelphij s/.*/./; q'` 114060786Sps srcdir=$ac_confdir 1141170256Sdelphij if test ! -r "$srcdir/$ac_unique_file"; then 114260786Sps srcdir=.. 114360786Sps fi 114460786Spselse 114560786Sps ac_srcdir_defaulted=no 114660786Spsfi 1147170256Sdelphijif test ! -r "$srcdir/$ac_unique_file"; then 1148170256Sdelphij test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1149170256Sdelphij { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1150128345Stjr { (exit 1); exit 1; }; } 1151170256Sdelphijfi 1152170256Sdelphijac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1153170256Sdelphijac_abs_confdir=`( 1154170256Sdelphij cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1155128345Stjr { (exit 1); exit 1; }; } 1156170256Sdelphij pwd)` 1157170256Sdelphij# When building in place, set srcdir=. 1158170256Sdelphijif test "$ac_abs_confdir" = "$ac_pwd"; then 1159170256Sdelphij srcdir=. 116060786Spsfi 1161170256Sdelphij# Remove unnecessary trailing slashes from srcdir. 1162170256Sdelphij# Double slashes in file names in object file debugging info 1163170256Sdelphij# mess up M-x gdb in Emacs. 1164170256Sdelphijcase $srcdir in 1165170256Sdelphij*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1166170256Sdelphijesac 1167170256Sdelphijfor ac_var in $ac_precious_vars; do 1168170256Sdelphij eval ac_env_${ac_var}_set=\${${ac_var}+set} 1169170256Sdelphij eval ac_env_${ac_var}_value=\$${ac_var} 1170170256Sdelphij eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1171170256Sdelphij eval ac_cv_env_${ac_var}_value=\$${ac_var} 1172170256Sdelphijdone 117360786Sps 1174128345Stjr# 1175128345Stjr# Report the --help message. 1176128345Stjr# 1177128345Stjrif test "$ac_init_help" = "long"; then 1178128345Stjr # Omit some internal or obsolete options to make the list less imposing. 1179128345Stjr # This message is too long to be a string in the A/UX 3.1 sh. 1180128345Stjr cat <<_ACEOF 1181128345Stjr\`configure' configures less 1 to adapt to many kinds of systems. 1182128345Stjr 1183128345StjrUsage: $0 [OPTION]... [VAR=VALUE]... 1184128345Stjr 1185128345StjrTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1186128345StjrVAR=VALUE. See below for descriptions of some of the useful variables. 1187128345Stjr 1188128345StjrDefaults for the options are specified in brackets. 1189128345Stjr 1190128345StjrConfiguration: 1191128345Stjr -h, --help display this help and exit 1192128345Stjr --help=short display options specific to this package 1193128345Stjr --help=recursive display the short help of all the included packages 1194128345Stjr -V, --version display version information and exit 1195128345Stjr -q, --quiet, --silent do not print \`checking...' messages 1196128345Stjr --cache-file=FILE cache test results in FILE [disabled] 1197128345Stjr -C, --config-cache alias for \`--cache-file=config.cache' 1198128345Stjr -n, --no-create do not create output files 1199128345Stjr --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1200128345Stjr 1201128345StjrInstallation directories: 1202128345Stjr --prefix=PREFIX install architecture-independent files in PREFIX 1203170256Sdelphij [$ac_default_prefix] 1204128345Stjr --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1205170256Sdelphij [PREFIX] 1206128345Stjr 1207128345StjrBy default, \`make install' will install all the files in 1208128345Stjr\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1209128345Stjran installation prefix other than \`$ac_default_prefix' using \`--prefix', 1210128345Stjrfor instance \`--prefix=\$HOME'. 1211128345Stjr 1212128345StjrFor better control, use the options below. 1213128345Stjr 1214128345StjrFine tuning of the installation directories: 1215128345Stjr --bindir=DIR user executables [EPREFIX/bin] 1216128345Stjr --sbindir=DIR system admin executables [EPREFIX/sbin] 1217128345Stjr --libexecdir=DIR program executables [EPREFIX/libexec] 1218128345Stjr --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1219128345Stjr --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1220128345Stjr --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1221128345Stjr --libdir=DIR object code libraries [EPREFIX/lib] 1222128345Stjr --includedir=DIR C header files [PREFIX/include] 1223128345Stjr --oldincludedir=DIR C header files for non-gcc [/usr/include] 1224170256Sdelphij --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1225170256Sdelphij --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1226170256Sdelphij --infodir=DIR info documentation [DATAROOTDIR/info] 1227170256Sdelphij --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1228170256Sdelphij --mandir=DIR man documentation [DATAROOTDIR/man] 1229170256Sdelphij --docdir=DIR documentation root [DATAROOTDIR/doc/less] 1230170256Sdelphij --htmldir=DIR html documentation [DOCDIR] 1231170256Sdelphij --dvidir=DIR dvi documentation [DOCDIR] 1232170256Sdelphij --pdfdir=DIR pdf documentation [DOCDIR] 1233170256Sdelphij --psdir=DIR ps documentation [DOCDIR] 1234128345Stjr_ACEOF 1235128345Stjr 1236128345Stjr cat <<\_ACEOF 1237128345Stjr_ACEOF 1238128345Stjrfi 1239128345Stjr 1240128345Stjrif test -n "$ac_init_help"; then 1241128345Stjr case $ac_init_help in 1242128345Stjr short | recursive ) echo "Configuration of less 1:";; 1243128345Stjr esac 1244128345Stjr cat <<\_ACEOF 1245128345Stjr 1246128345StjrOptional Features: 1247128345Stjr --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1248128345Stjr --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1249128345Stjr --disable-largefile omit support for large files 1250128345Stjr 1251128345StjrOptional Packages: 1252128345Stjr --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1253128345Stjr --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1254161475Sdelphij --with-secure Compile in secure mode 1255128345Stjr --with-regex={auto,pcre,posix,regcmp,re_comp,regcomp,regcomp-local} Select a regular expression library auto 1256128345Stjr --with-editor=PROGRAM use PROGRAM as the default editor vi 1257128345Stjr 1258128345StjrSome influential environment variables: 1259128345Stjr CC C compiler command 1260128345Stjr CFLAGS C compiler flags 1261128345Stjr LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1262128345Stjr nonstandard directory <lib dir> 1263170256Sdelphij LIBS libraries to pass to the linker, e.g. -l<library> 1264170256Sdelphij CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1265170256Sdelphij you have headers in a nonstandard directory <include dir> 1266128345Stjr CPP C preprocessor 1267128345Stjr 1268128345StjrUse these variables to override the choices made by `configure' or to help 1269128345Stjrit to find libraries and programs with nonstandard names/locations. 1270128345Stjr 1271128345Stjr_ACEOF 1272170256Sdelphijac_status=$? 1273128345Stjrfi 1274128345Stjr 1275128345Stjrif test "$ac_init_help" = "recursive"; then 1276128345Stjr # If there are subdirs, report their specific --help. 1277128345Stjr for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1278170256Sdelphij test -d "$ac_dir" || continue 1279128345Stjr ac_builddir=. 1280128345Stjr 1281170256Sdelphijcase "$ac_dir" in 1282170256Sdelphij.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1283170256Sdelphij*) 1284128345Stjr ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1285170256Sdelphij # A ".." for each directory in $ac_dir_suffix. 1286170256Sdelphij ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1287170256Sdelphij case $ac_top_builddir_sub in 1288170256Sdelphij "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1289170256Sdelphij *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1290170256Sdelphij esac ;; 1291170256Sdelphijesac 1292170256Sdelphijac_abs_top_builddir=$ac_pwd 1293170256Sdelphijac_abs_builddir=$ac_pwd$ac_dir_suffix 1294170256Sdelphij# for backward compatibility: 1295170256Sdelphijac_top_builddir=$ac_top_build_prefix 1296128345Stjr 1297128345Stjrcase $srcdir in 1298170256Sdelphij .) # We are building in place. 1299128345Stjr ac_srcdir=. 1300170256Sdelphij ac_top_srcdir=$ac_top_builddir_sub 1301170256Sdelphij ac_abs_top_srcdir=$ac_pwd ;; 1302170256Sdelphij [\\/]* | ?:[\\/]* ) # Absolute name. 1303128345Stjr ac_srcdir=$srcdir$ac_dir_suffix; 1304170256Sdelphij ac_top_srcdir=$srcdir 1305170256Sdelphij ac_abs_top_srcdir=$srcdir ;; 1306170256Sdelphij *) # Relative name. 1307170256Sdelphij ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1308170256Sdelphij ac_top_srcdir=$ac_top_build_prefix$srcdir 1309170256Sdelphij ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1310128345Stjresac 1311170256Sdelphijac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1312128345Stjr 1313170256Sdelphij cd "$ac_dir" || { ac_status=$?; continue; } 1314170256Sdelphij # Check for guested configure. 1315170256Sdelphij if test -f "$ac_srcdir/configure.gnu"; then 1316170256Sdelphij echo && 1317170256Sdelphij $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1318170256Sdelphij elif test -f "$ac_srcdir/configure"; then 1319170256Sdelphij echo && 1320170256Sdelphij $SHELL "$ac_srcdir/configure" --help=recursive 1321128345Stjr else 1322128345Stjr echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1323170256Sdelphij fi || ac_status=$? 1324170256Sdelphij cd "$ac_pwd" || { ac_status=$?; break; } 1325128345Stjr done 1326128345Stjrfi 1327128345Stjr 1328170256Sdelphijtest -n "$ac_init_help" && exit $ac_status 1329128345Stjrif $ac_init_version; then 1330128345Stjr cat <<\_ACEOF 1331128345Stjrless configure 1 1332170256Sdelphijgenerated by GNU Autoconf 2.61 1333128345Stjr 1334170256SdelphijCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1335170256Sdelphij2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1336128345StjrThis configure script is free software; the Free Software Foundation 1337128345Stjrgives unlimited permission to copy, distribute and modify it. 1338128345Stjr_ACEOF 1339170256Sdelphij exit 1340128345Stjrfi 1341170256Sdelphijcat >config.log <<_ACEOF 1342128345StjrThis file contains any messages produced by compilers while 1343128345Stjrrunning configure, to aid debugging if configure makes a mistake. 1344128345Stjr 1345128345StjrIt was created by less $as_me 1, which was 1346170256Sdelphijgenerated by GNU Autoconf 2.61. Invocation command line was 1347128345Stjr 1348128345Stjr $ $0 $@ 1349128345Stjr 1350128345Stjr_ACEOF 1351170256Sdelphijexec 5>>config.log 1352128345Stjr{ 1353128345Stjrcat <<_ASUNAME 1354128345Stjr## --------- ## 1355128345Stjr## Platform. ## 1356128345Stjr## --------- ## 1357128345Stjr 1358128345Stjrhostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1359128345Stjruname -m = `(uname -m) 2>/dev/null || echo unknown` 1360128345Stjruname -r = `(uname -r) 2>/dev/null || echo unknown` 1361128345Stjruname -s = `(uname -s) 2>/dev/null || echo unknown` 1362128345Stjruname -v = `(uname -v) 2>/dev/null || echo unknown` 1363128345Stjr 1364128345Stjr/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1365128345Stjr/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1366128345Stjr 1367128345Stjr/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1368128345Stjr/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1369128345Stjr/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1370170256Sdelphij/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1371128345Stjr/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1372128345Stjr/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1373128345Stjr/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1374128345Stjr 1375128345Stjr_ASUNAME 1376128345Stjr 1377128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1378128345Stjrfor as_dir in $PATH 1379128345Stjrdo 1380128345Stjr IFS=$as_save_IFS 1381128345Stjr test -z "$as_dir" && as_dir=. 1382128345Stjr echo "PATH: $as_dir" 1383128345Stjrdone 1384170256SdelphijIFS=$as_save_IFS 1385128345Stjr 1386128345Stjr} >&5 1387128345Stjr 1388128345Stjrcat >&5 <<_ACEOF 1389128345Stjr 1390128345Stjr 1391128345Stjr## ----------- ## 1392128345Stjr## Core tests. ## 1393128345Stjr## ----------- ## 1394128345Stjr 1395128345Stjr_ACEOF 1396128345Stjr 1397128345Stjr 1398128345Stjr# Keep a trace of the command line. 1399128345Stjr# Strip out --no-create and --no-recursion so they do not pile up. 1400170256Sdelphij# Strip out --silent because we don't want to record it for future runs. 1401128345Stjr# Also quote any args containing shell meta-characters. 1402170256Sdelphij# Make two passes to allow for proper duplicate-argument suppression. 1403128345Stjrac_configure_args= 1404170256Sdelphijac_configure_args0= 1405170256Sdelphijac_configure_args1= 1406170256Sdelphijac_must_keep_next=false 1407170256Sdelphijfor ac_pass in 1 2 1408128345Stjrdo 1409170256Sdelphij for ac_arg 1410170256Sdelphij do 1411170256Sdelphij case $ac_arg in 1412170256Sdelphij -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1413170256Sdelphij -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1414170256Sdelphij | -silent | --silent | --silen | --sile | --sil) 1415170256Sdelphij continue ;; 1416170256Sdelphij *\'*) 1417170256Sdelphij ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1418170256Sdelphij esac 1419170256Sdelphij case $ac_pass in 1420170256Sdelphij 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1421170256Sdelphij 2) 1422170256Sdelphij ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1423170256Sdelphij if test $ac_must_keep_next = true; then 1424170256Sdelphij ac_must_keep_next=false # Got value, back to normal. 1425170256Sdelphij else 1426170256Sdelphij case $ac_arg in 1427170256Sdelphij *=* | --config-cache | -C | -disable-* | --disable-* \ 1428170256Sdelphij | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1429170256Sdelphij | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1430170256Sdelphij | -with-* | --with-* | -without-* | --without-* | --x) 1431170256Sdelphij case "$ac_configure_args0 " in 1432170256Sdelphij "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1433170256Sdelphij esac 1434170256Sdelphij ;; 1435170256Sdelphij -* ) ac_must_keep_next=true ;; 1436170256Sdelphij esac 1437170256Sdelphij fi 1438170256Sdelphij ac_configure_args="$ac_configure_args '$ac_arg'" 1439170256Sdelphij ;; 1440170256Sdelphij esac 1441170256Sdelphij done 1442128345Stjrdone 1443170256Sdelphij$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1444170256Sdelphij$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1445128345Stjr 1446128345Stjr# When interrupted or exit'd, cleanup temporary files, and complete 1447128345Stjr# config.log. We remove comments because anyway the quotes in there 1448128345Stjr# would cause problems or look ugly. 1449170256Sdelphij# WARNING: Use '\'' to represent an apostrophe within the trap. 1450170256Sdelphij# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1451128345Stjrtrap 'exit_status=$? 1452128345Stjr # Save into config.log some information that might help in debugging. 1453128345Stjr { 1454128345Stjr echo 1455128345Stjr 1456128345Stjr cat <<\_ASBOX 1457128345Stjr## ---------------- ## 1458128345Stjr## Cache variables. ## 1459128345Stjr## ---------------- ## 1460128345Stjr_ASBOX 1461128345Stjr echo 1462128345Stjr # The following way of writing the cache mishandles newlines in values, 1463170256Sdelphij( 1464170256Sdelphij for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1465170256Sdelphij eval ac_val=\$$ac_var 1466170256Sdelphij case $ac_val in #( 1467170256Sdelphij *${as_nl}*) 1468170256Sdelphij case $ac_var in #( 1469170256Sdelphij *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1470170256Sdelphijecho "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1471170256Sdelphij esac 1472170256Sdelphij case $ac_var in #( 1473170256Sdelphij _ | IFS | as_nl) ;; #( 1474170256Sdelphij *) $as_unset $ac_var ;; 1475170256Sdelphij esac ;; 1476170256Sdelphij esac 1477170256Sdelphij done 1478128345Stjr (set) 2>&1 | 1479170256Sdelphij case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1480170256Sdelphij *${as_nl}ac_space=\ *) 1481128345Stjr sed -n \ 1482170256Sdelphij "s/'\''/'\''\\\\'\'''\''/g; 1483170256Sdelphij s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1484170256Sdelphij ;; #( 1485128345Stjr *) 1486170256Sdelphij sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1487128345Stjr ;; 1488170256Sdelphij esac | 1489170256Sdelphij sort 1490170256Sdelphij) 1491128345Stjr echo 1492128345Stjr 1493128345Stjr cat <<\_ASBOX 1494128345Stjr## ----------------- ## 1495128345Stjr## Output variables. ## 1496128345Stjr## ----------------- ## 1497128345Stjr_ASBOX 1498128345Stjr echo 1499128345Stjr for ac_var in $ac_subst_vars 1500128345Stjr do 1501170256Sdelphij eval ac_val=\$$ac_var 1502170256Sdelphij case $ac_val in 1503170256Sdelphij *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1504170256Sdelphij esac 1505170256Sdelphij echo "$ac_var='\''$ac_val'\''" 1506128345Stjr done | sort 1507128345Stjr echo 1508128345Stjr 1509128345Stjr if test -n "$ac_subst_files"; then 1510128345Stjr cat <<\_ASBOX 1511170256Sdelphij## ------------------- ## 1512170256Sdelphij## File substitutions. ## 1513170256Sdelphij## ------------------- ## 1514128345Stjr_ASBOX 1515128345Stjr echo 1516128345Stjr for ac_var in $ac_subst_files 1517128345Stjr do 1518170256Sdelphij eval ac_val=\$$ac_var 1519170256Sdelphij case $ac_val in 1520170256Sdelphij *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1521170256Sdelphij esac 1522170256Sdelphij echo "$ac_var='\''$ac_val'\''" 1523128345Stjr done | sort 1524128345Stjr echo 1525128345Stjr fi 1526128345Stjr 1527128345Stjr if test -s confdefs.h; then 1528128345Stjr cat <<\_ASBOX 1529128345Stjr## ----------- ## 1530128345Stjr## confdefs.h. ## 1531128345Stjr## ----------- ## 1532128345Stjr_ASBOX 1533128345Stjr echo 1534170256Sdelphij cat confdefs.h 1535128345Stjr echo 1536128345Stjr fi 1537128345Stjr test "$ac_signal" != 0 && 1538128345Stjr echo "$as_me: caught signal $ac_signal" 1539128345Stjr echo "$as_me: exit $exit_status" 1540128345Stjr } >&5 1541170256Sdelphij rm -f core *.core core.conftest.* && 1542170256Sdelphij rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1543128345Stjr exit $exit_status 1544170256Sdelphij' 0 1545128345Stjrfor ac_signal in 1 2 13 15; do 1546128345Stjr trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1547128345Stjrdone 1548128345Stjrac_signal=0 1549128345Stjr 1550128345Stjr# confdefs.h avoids OS command line length limits that DEFS can exceed. 1551170256Sdelphijrm -f -r conftest* confdefs.h 1552128345Stjr 1553128345Stjr# Predefined preprocessor variables. 1554128345Stjr 1555128345Stjrcat >>confdefs.h <<_ACEOF 1556128345Stjr#define PACKAGE_NAME "$PACKAGE_NAME" 1557128345Stjr_ACEOF 1558128345Stjr 1559128345Stjr 1560128345Stjrcat >>confdefs.h <<_ACEOF 1561128345Stjr#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1562128345Stjr_ACEOF 1563128345Stjr 1564128345Stjr 1565128345Stjrcat >>confdefs.h <<_ACEOF 1566128345Stjr#define PACKAGE_VERSION "$PACKAGE_VERSION" 1567128345Stjr_ACEOF 1568128345Stjr 1569128345Stjr 1570128345Stjrcat >>confdefs.h <<_ACEOF 1571128345Stjr#define PACKAGE_STRING "$PACKAGE_STRING" 1572128345Stjr_ACEOF 1573128345Stjr 1574128345Stjr 1575128345Stjrcat >>confdefs.h <<_ACEOF 1576128345Stjr#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1577128345Stjr_ACEOF 1578128345Stjr 1579128345Stjr 1580128345Stjr# Let the site file select an alternate cache file if it wants to. 158160786Sps# Prefer explicitly selected file to automatically selected ones. 1582170256Sdelphijif test -n "$CONFIG_SITE"; then 1583170256Sdelphij set x "$CONFIG_SITE" 1584170256Sdelphijelif test "x$prefix" != xNONE; then 1585170256Sdelphij set x "$prefix/share/config.site" "$prefix/etc/config.site" 1586170256Sdelphijelse 1587170256Sdelphij set x "$ac_default_prefix/share/config.site" \ 1588170256Sdelphij "$ac_default_prefix/etc/config.site" 158960786Spsfi 1590170256Sdelphijshift 1591170256Sdelphijfor ac_site_file 1592170256Sdelphijdo 159360786Sps if test -r "$ac_site_file"; then 1594128345Stjr { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1595128345Stjrecho "$as_me: loading site script $ac_site_file" >&6;} 1596128345Stjr sed 's/^/| /' "$ac_site_file" >&5 159760786Sps . "$ac_site_file" 159860786Sps fi 159960786Spsdone 160060786Sps 160160786Spsif test -r "$cache_file"; then 1602128345Stjr # Some versions of bash will fail to source /dev/null (special 1603128345Stjr # files actually), so we avoid doing that. 1604128345Stjr if test -f "$cache_file"; then 1605128345Stjr { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1606128345Stjrecho "$as_me: loading cache $cache_file" >&6;} 1607128345Stjr case $cache_file in 1608170256Sdelphij [\\/]* | ?:[\\/]* ) . "$cache_file";; 1609170256Sdelphij *) . "./$cache_file";; 1610128345Stjr esac 1611128345Stjr fi 161260786Spselse 1613128345Stjr { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1614128345Stjrecho "$as_me: creating cache $cache_file" >&6;} 1615128345Stjr >$cache_file 161660786Spsfi 161760786Sps 1618128345Stjr# Check that the precious variables saved in the cache have kept the same 1619128345Stjr# value. 1620128345Stjrac_cache_corrupted=false 1621170256Sdelphijfor ac_var in $ac_precious_vars; do 1622128345Stjr eval ac_old_set=\$ac_cv_env_${ac_var}_set 1623128345Stjr eval ac_new_set=\$ac_env_${ac_var}_set 1624170256Sdelphij eval ac_old_val=\$ac_cv_env_${ac_var}_value 1625170256Sdelphij eval ac_new_val=\$ac_env_${ac_var}_value 1626128345Stjr case $ac_old_set,$ac_new_set in 1627128345Stjr set,) 1628128345Stjr { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1629128345Stjrecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1630128345Stjr ac_cache_corrupted=: ;; 1631128345Stjr ,set) 1632128345Stjr { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1633128345Stjrecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1634128345Stjr ac_cache_corrupted=: ;; 1635128345Stjr ,);; 1636128345Stjr *) 1637128345Stjr if test "x$ac_old_val" != "x$ac_new_val"; then 1638170256Sdelphij { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1639128345Stjrecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1640170256Sdelphij { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1641128345Stjrecho "$as_me: former value: $ac_old_val" >&2;} 1642170256Sdelphij { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1643128345Stjrecho "$as_me: current value: $ac_new_val" >&2;} 1644170256Sdelphij ac_cache_corrupted=: 1645128345Stjr fi;; 1646128345Stjr esac 1647128345Stjr # Pass precious variables to config.status. 1648128345Stjr if test "$ac_new_set" = set; then 1649128345Stjr case $ac_new_val in 1650170256Sdelphij *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1651128345Stjr *) ac_arg=$ac_var=$ac_new_val ;; 1652128345Stjr esac 1653128345Stjr case " $ac_configure_args " in 1654128345Stjr *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1655128345Stjr *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1656128345Stjr esac 1657128345Stjr fi 1658128345Stjrdone 1659128345Stjrif $ac_cache_corrupted; then 1660128345Stjr { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1661128345Stjrecho "$as_me: error: changes in the environment can compromise the build" >&2;} 1662128345Stjr { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1663128345Stjrecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1664128345Stjr { (exit 1); exit 1; }; } 1665128345Stjrfi 1666128345Stjr 166760786Sps 1668128345Stjr 1669128345Stjr 1670128345Stjr 1671128345Stjr 1672128345Stjr 1673128345Stjr 1674128345Stjr 1675128345Stjr 1676128345Stjr 1677128345Stjr 1678128345Stjr 1679128345Stjr 1680128345Stjr 1681128345Stjr 1682128345Stjr 1683128345Stjr 1684128345Stjr 1685128345Stjr 1686128345Stjr 1687128345Stjr 1688128345Stjr 1689128345Stjr 1690128345Stjr 1691170256Sdelphijac_ext=c 1692170256Sdelphijac_cpp='$CPP $CPPFLAGS' 1693170256Sdelphijac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1694170256Sdelphijac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1695170256Sdelphijac_compiler_gnu=$ac_cv_c_compiler_gnu 1696128345Stjr 1697128345Stjr 1698128345Stjr 1699170256Sdelphijac_config_headers="$ac_config_headers defines.h" 1700128345Stjr 1701128345Stjr 1702128345Stjr# Checks for programs. 1703128345Stjrac_ext=c 1704128345Stjrac_cpp='$CPP $CPPFLAGS' 1705128345Stjrac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1706128345Stjrac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1707128345Stjrac_compiler_gnu=$ac_cv_c_compiler_gnu 1708128345Stjrif test -n "$ac_tool_prefix"; then 1709128345Stjr # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1710128345Stjrset dummy ${ac_tool_prefix}gcc; ac_word=$2 1711170256Sdelphij{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1712170256Sdelphijecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1713128345Stjrif test "${ac_cv_prog_CC+set}" = set; then 1714128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 1715128345Stjrelse 1716128345Stjr if test -n "$CC"; then 1717128345Stjr ac_cv_prog_CC="$CC" # Let the user override the test. 1718128345Stjrelse 1719128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1720128345Stjrfor as_dir in $PATH 1721128345Stjrdo 1722128345Stjr IFS=$as_save_IFS 1723128345Stjr test -z "$as_dir" && as_dir=. 1724128345Stjr for ac_exec_ext in '' $ac_executable_extensions; do 1725170256Sdelphij if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1726128345Stjr ac_cv_prog_CC="${ac_tool_prefix}gcc" 1727128345Stjr echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1728128345Stjr break 2 172960786Sps fi 1730128345Stjrdone 1731128345Stjrdone 1732170256SdelphijIFS=$as_save_IFS 1733128345Stjr 1734128345Stjrfi 1735128345Stjrfi 1736128345StjrCC=$ac_cv_prog_CC 1737128345Stjrif test -n "$CC"; then 1738170256Sdelphij { echo "$as_me:$LINENO: result: $CC" >&5 1739170256Sdelphijecho "${ECHO_T}$CC" >&6; } 174060786Spselse 1741170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 1742170256Sdelphijecho "${ECHO_T}no" >&6; } 174360786Spsfi 174460786Sps 1745170256Sdelphij 1746128345Stjrfi 1747128345Stjrif test -z "$ac_cv_prog_CC"; then 1748128345Stjr ac_ct_CC=$CC 1749128345Stjr # Extract the first word of "gcc", so it can be a program name with args. 1750128345Stjrset dummy gcc; ac_word=$2 1751170256Sdelphij{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1752170256Sdelphijecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1753128345Stjrif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1754128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 1755128345Stjrelse 1756128345Stjr if test -n "$ac_ct_CC"; then 1757128345Stjr ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1758128345Stjrelse 1759128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1760128345Stjrfor as_dir in $PATH 1761128345Stjrdo 1762128345Stjr IFS=$as_save_IFS 1763128345Stjr test -z "$as_dir" && as_dir=. 1764128345Stjr for ac_exec_ext in '' $ac_executable_extensions; do 1765170256Sdelphij if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1766128345Stjr ac_cv_prog_ac_ct_CC="gcc" 1767128345Stjr echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1768128345Stjr break 2 1769128345Stjr fi 1770128345Stjrdone 1771128345Stjrdone 1772170256SdelphijIFS=$as_save_IFS 177360786Sps 1774128345Stjrfi 1775128345Stjrfi 1776128345Stjrac_ct_CC=$ac_cv_prog_ac_ct_CC 1777128345Stjrif test -n "$ac_ct_CC"; then 1778170256Sdelphij { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1779170256Sdelphijecho "${ECHO_T}$ac_ct_CC" >&6; } 1780128345Stjrelse 1781170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 1782170256Sdelphijecho "${ECHO_T}no" >&6; } 1783128345Stjrfi 178460786Sps 1785170256Sdelphij if test "x$ac_ct_CC" = x; then 1786170256Sdelphij CC="" 1787170256Sdelphij else 1788170256Sdelphij case $cross_compiling:$ac_tool_warned in 1789170256Sdelphijyes:) 1790170256Sdelphij{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1791170256Sdelphijwhose name does not start with the host triplet. If you think this 1792170256Sdelphijconfiguration is useful to you, please write to autoconf@gnu.org." >&5 1793170256Sdelphijecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1794170256Sdelphijwhose name does not start with the host triplet. If you think this 1795170256Sdelphijconfiguration is useful to you, please write to autoconf@gnu.org." >&2;} 1796170256Sdelphijac_tool_warned=yes ;; 1797170256Sdelphijesac 1798170256Sdelphij CC=$ac_ct_CC 1799170256Sdelphij fi 1800128345Stjrelse 1801128345Stjr CC="$ac_cv_prog_CC" 1802128345Stjrfi 180360786Sps 1804128345Stjrif test -z "$CC"; then 1805170256Sdelphij if test -n "$ac_tool_prefix"; then 1806170256Sdelphij # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1807128345Stjrset dummy ${ac_tool_prefix}cc; ac_word=$2 1808170256Sdelphij{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1809170256Sdelphijecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1810128345Stjrif test "${ac_cv_prog_CC+set}" = set; then 1811128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 181260786Spselse 181360786Sps if test -n "$CC"; then 181460786Sps ac_cv_prog_CC="$CC" # Let the user override the test. 181560786Spselse 1816128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1817128345Stjrfor as_dir in $PATH 1818128345Stjrdo 1819128345Stjr IFS=$as_save_IFS 1820128345Stjr test -z "$as_dir" && as_dir=. 1821128345Stjr for ac_exec_ext in '' $ac_executable_extensions; do 1822170256Sdelphij if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1823128345Stjr ac_cv_prog_CC="${ac_tool_prefix}cc" 1824128345Stjr echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1825128345Stjr break 2 1826128345Stjr fi 1827128345Stjrdone 1828128345Stjrdone 1829170256SdelphijIFS=$as_save_IFS 1830128345Stjr 183160786Spsfi 183260786Spsfi 1833128345StjrCC=$ac_cv_prog_CC 183460786Spsif test -n "$CC"; then 1835170256Sdelphij { echo "$as_me:$LINENO: result: $CC" >&5 1836170256Sdelphijecho "${ECHO_T}$CC" >&6; } 183760786Spselse 1838170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 1839170256Sdelphijecho "${ECHO_T}no" >&6; } 184060786Spsfi 184160786Sps 1842170256Sdelphij 1843128345Stjr fi 1844128345Stjrfi 184560786Spsif test -z "$CC"; then 184660786Sps # Extract the first word of "cc", so it can be a program name with args. 184760786Spsset dummy cc; ac_word=$2 1848170256Sdelphij{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1849170256Sdelphijecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1850128345Stjrif test "${ac_cv_prog_CC+set}" = set; then 1851128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 185260786Spselse 185360786Sps if test -n "$CC"; then 185460786Sps ac_cv_prog_CC="$CC" # Let the user override the test. 185560786Spselse 185660786Sps ac_prog_rejected=no 1857128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1858128345Stjrfor as_dir in $PATH 1859128345Stjrdo 1860128345Stjr IFS=$as_save_IFS 1861128345Stjr test -z "$as_dir" && as_dir=. 1862128345Stjr for ac_exec_ext in '' $ac_executable_extensions; do 1863170256Sdelphij if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1864128345Stjr if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1865128345Stjr ac_prog_rejected=yes 1866128345Stjr continue 1867128345Stjr fi 1868128345Stjr ac_cv_prog_CC="cc" 1869128345Stjr echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1870128345Stjr break 2 1871128345Stjr fi 1872128345Stjrdone 1873128345Stjrdone 1874170256SdelphijIFS=$as_save_IFS 1875128345Stjr 187660786Spsif test $ac_prog_rejected = yes; then 187760786Sps # We found a bogon in the path, so make sure we never use it. 187860786Sps set dummy $ac_cv_prog_CC 187960786Sps shift 1880128345Stjr if test $# != 0; then 188160786Sps # We chose a different compiler from the bogus one. 188260786Sps # However, it has the same basename, so the bogon will be chosen 188360786Sps # first if we set CC to just the basename; use the full file name. 188460786Sps shift 1885128345Stjr ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 188660786Sps fi 188760786Spsfi 188860786Spsfi 188960786Spsfi 1890128345StjrCC=$ac_cv_prog_CC 189160786Spsif test -n "$CC"; then 1892170256Sdelphij { echo "$as_me:$LINENO: result: $CC" >&5 1893170256Sdelphijecho "${ECHO_T}$CC" >&6; } 189460786Spselse 1895170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 1896170256Sdelphijecho "${ECHO_T}no" >&6; } 189760786Spsfi 189860786Sps 1899170256Sdelphij 1900128345Stjrfi 1901128345Stjrif test -z "$CC"; then 1902128345Stjr if test -n "$ac_tool_prefix"; then 1903170256Sdelphij for ac_prog in cl.exe 1904128345Stjr do 1905128345Stjr # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1906128345Stjrset dummy $ac_tool_prefix$ac_prog; ac_word=$2 1907170256Sdelphij{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1908170256Sdelphijecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1909128345Stjrif test "${ac_cv_prog_CC+set}" = set; then 1910128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 191189019Spselse 191289019Sps if test -n "$CC"; then 191389019Sps ac_cv_prog_CC="$CC" # Let the user override the test. 191489019Spselse 1915128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1916128345Stjrfor as_dir in $PATH 1917128345Stjrdo 1918128345Stjr IFS=$as_save_IFS 1919128345Stjr test -z "$as_dir" && as_dir=. 1920128345Stjr for ac_exec_ext in '' $ac_executable_extensions; do 1921170256Sdelphij if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1922128345Stjr ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1923128345Stjr echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1924128345Stjr break 2 1925128345Stjr fi 1926128345Stjrdone 1927128345Stjrdone 1928170256SdelphijIFS=$as_save_IFS 1929128345Stjr 193089019Spsfi 193189019Spsfi 1932128345StjrCC=$ac_cv_prog_CC 193389019Spsif test -n "$CC"; then 1934170256Sdelphij { echo "$as_me:$LINENO: result: $CC" >&5 1935170256Sdelphijecho "${ECHO_T}$CC" >&6; } 193689019Spselse 1937170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 1938170256Sdelphijecho "${ECHO_T}no" >&6; } 193989019Spsfi 1940128345Stjr 1941170256Sdelphij 1942128345Stjr test -n "$CC" && break 1943128345Stjr done 1944128345Stjrfi 1945128345Stjrif test -z "$CC"; then 1946128345Stjr ac_ct_CC=$CC 1947170256Sdelphij for ac_prog in cl.exe 1948128345Stjrdo 1949128345Stjr # Extract the first word of "$ac_prog", so it can be a program name with args. 1950128345Stjrset dummy $ac_prog; ac_word=$2 1951170256Sdelphij{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1952170256Sdelphijecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1953128345Stjrif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1954128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 1955128345Stjrelse 1956128345Stjr if test -n "$ac_ct_CC"; then 1957128345Stjr ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1958128345Stjrelse 1959128345Stjras_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1960128345Stjrfor as_dir in $PATH 1961128345Stjrdo 1962128345Stjr IFS=$as_save_IFS 1963128345Stjr test -z "$as_dir" && as_dir=. 1964128345Stjr for ac_exec_ext in '' $ac_executable_extensions; do 1965170256Sdelphij if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1966128345Stjr ac_cv_prog_ac_ct_CC="$ac_prog" 1967128345Stjr echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1968128345Stjr break 2 196989019Sps fi 1970128345Stjrdone 1971128345Stjrdone 1972170256SdelphijIFS=$as_save_IFS 1973128345Stjr 197460786Spsfi 1975128345Stjrfi 1976128345Stjrac_ct_CC=$ac_cv_prog_ac_ct_CC 1977128345Stjrif test -n "$ac_ct_CC"; then 1978170256Sdelphij { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1979170256Sdelphijecho "${ECHO_T}$ac_ct_CC" >&6; } 1980128345Stjrelse 1981170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 1982170256Sdelphijecho "${ECHO_T}no" >&6; } 1983128345Stjrfi 198460786Sps 1985170256Sdelphij 1986128345Stjr test -n "$ac_ct_CC" && break 1987128345Stjrdone 198860786Sps 1989170256Sdelphij if test "x$ac_ct_CC" = x; then 1990170256Sdelphij CC="" 1991170256Sdelphij else 1992170256Sdelphij case $cross_compiling:$ac_tool_warned in 1993170256Sdelphijyes:) 1994170256Sdelphij{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1995170256Sdelphijwhose name does not start with the host triplet. If you think this 1996170256Sdelphijconfiguration is useful to you, please write to autoconf@gnu.org." >&5 1997170256Sdelphijecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1998170256Sdelphijwhose name does not start with the host triplet. If you think this 1999170256Sdelphijconfiguration is useful to you, please write to autoconf@gnu.org." >&2;} 2000170256Sdelphijac_tool_warned=yes ;; 2001170256Sdelphijesac 2002170256Sdelphij CC=$ac_ct_CC 2003170256Sdelphij fi 2004128345Stjrfi 200560786Sps 2006128345Stjrfi 200789019Sps 2008128345Stjr 2009170256Sdelphijtest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2010170256SdelphijSee \`config.log' for more details." >&5 2011170256Sdelphijecho "$as_me: error: no acceptable C compiler found in \$PATH 2012170256SdelphijSee \`config.log' for more details." >&2;} 2013128345Stjr { (exit 1); exit 1; }; } 2014128345Stjr 2015128345Stjr# Provide some information about the compiler. 2016170256Sdelphijecho "$as_me:$LINENO: checking for C compiler version" >&5 2017128345Stjrac_compiler=`set X $ac_compile; echo $2` 2018170256Sdelphij{ (ac_try="$ac_compiler --version >&5" 2019170256Sdelphijcase "(($ac_try" in 2020170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2021170256Sdelphij *) ac_try_echo=$ac_try;; 2022170256Sdelphijesac 2023170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2024170256Sdelphij (eval "$ac_compiler --version >&5") 2>&5 2025128345Stjr ac_status=$? 2026128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 2027128345Stjr (exit $ac_status); } 2028170256Sdelphij{ (ac_try="$ac_compiler -v >&5" 2029170256Sdelphijcase "(($ac_try" in 2030170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2031170256Sdelphij *) ac_try_echo=$ac_try;; 2032170256Sdelphijesac 2033170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2034170256Sdelphij (eval "$ac_compiler -v >&5") 2>&5 2035128345Stjr ac_status=$? 2036128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 2037128345Stjr (exit $ac_status); } 2038170256Sdelphij{ (ac_try="$ac_compiler -V >&5" 2039170256Sdelphijcase "(($ac_try" in 2040170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2041170256Sdelphij *) ac_try_echo=$ac_try;; 2042170256Sdelphijesac 2043170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2044170256Sdelphij (eval "$ac_compiler -V >&5") 2>&5 2045128345Stjr ac_status=$? 2046128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 2047128345Stjr (exit $ac_status); } 2048128345Stjr 2049128345Stjrcat >conftest.$ac_ext <<_ACEOF 2050170256Sdelphij/* confdefs.h. */ 2051170256Sdelphij_ACEOF 2052170256Sdelphijcat confdefs.h >>conftest.$ac_ext 2053170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 2054170256Sdelphij/* end confdefs.h. */ 205589019Sps 2056128345Stjrint 2057128345Stjrmain () 2058128345Stjr{ 2059128345Stjr 2060128345Stjr ; 2061128345Stjr return 0; 2062128345Stjr} 2063128345Stjr_ACEOF 2064128345Stjrac_clean_files_save=$ac_clean_files 2065170256Sdelphijac_clean_files="$ac_clean_files a.out a.exe b.out" 2066128345Stjr# Try to create an executable without -o first, disregard a.out. 2067128345Stjr# It will help us diagnose broken compilers, and finding out an intuition 2068128345Stjr# of exeext. 2069170256Sdelphij{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2070170256Sdelphijecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2071128345Stjrac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2072170256Sdelphij# 2073170256Sdelphij# List of possible output files, starting from the most likely. 2074170256Sdelphij# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2075170256Sdelphij# only as a last resort. b.out is created by i960 compilers. 2076170256Sdelphijac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2077170256Sdelphij# 2078170256Sdelphij# The IRIX 6 linker writes into existing files which may not be 2079170256Sdelphij# executable, retaining their permissions. Remove them first so a 2080170256Sdelphij# subsequent execution test works. 2081170256Sdelphijac_rmfiles= 2082170256Sdelphijfor ac_file in $ac_files 2083170256Sdelphijdo 2084170256Sdelphij case $ac_file in 2085170256Sdelphij *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2086170256Sdelphij * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2087170256Sdelphij esac 2088170256Sdelphijdone 2089170256Sdelphijrm -f $ac_rmfiles 2090170256Sdelphij 2091170256Sdelphijif { (ac_try="$ac_link_default" 2092170256Sdelphijcase "(($ac_try" in 2093170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2094170256Sdelphij *) ac_try_echo=$ac_try;; 2095170256Sdelphijesac 2096170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2097170256Sdelphij (eval "$ac_link_default") 2>&5 2098128345Stjr ac_status=$? 2099128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 2100128345Stjr (exit $ac_status); }; then 2101170256Sdelphij # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2102170256Sdelphij# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2103170256Sdelphij# in a Makefile. We should not override ac_cv_exeext if it was cached, 2104170256Sdelphij# so that the user can short-circuit this test for compilers unknown to 2105170256Sdelphij# Autoconf. 2106170256Sdelphijfor ac_file in $ac_files '' 2107170256Sdelphijdo 2108128345Stjr test -f "$ac_file" || continue 2109128345Stjr case $ac_file in 2110170256Sdelphij *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2111170256Sdelphij ;; 2112170256Sdelphij [ab].out ) 2113170256Sdelphij # We found the default executable, but exeext='' is most 2114170256Sdelphij # certainly right. 2115170256Sdelphij break;; 2116170256Sdelphij *.* ) 2117170256Sdelphij if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2118170256Sdelphij then :; else 2119170256Sdelphij ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2120170256Sdelphij fi 2121170256Sdelphij # We set ac_cv_exeext here because the later test for it is not 2122170256Sdelphij # safe: cross compilers may not add the suffix if given an `-o' 2123170256Sdelphij # argument, so we may need to know it at that point already. 2124170256Sdelphij # Even if this section looks crufty: it has the advantage of 2125170256Sdelphij # actually working. 2126170256Sdelphij break;; 2127170256Sdelphij * ) 2128170256Sdelphij break;; 2129128345Stjr esac 2130128345Stjrdone 2131170256Sdelphijtest "$ac_cv_exeext" = no && ac_cv_exeext= 2132170256Sdelphij 2133128345Stjrelse 2134170256Sdelphij ac_file='' 2135170256Sdelphijfi 2136170256Sdelphij 2137170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_file" >&5 2138170256Sdelphijecho "${ECHO_T}$ac_file" >&6; } 2139170256Sdelphijif test -z "$ac_file"; then 2140128345Stjr echo "$as_me: failed program was:" >&5 2141170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 2142170256Sdelphij 2143128345Stjr{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2144170256SdelphijSee \`config.log' for more details." >&5 2145128345Stjrecho "$as_me: error: C compiler cannot create executables 2146170256SdelphijSee \`config.log' for more details." >&2;} 2147128345Stjr { (exit 77); exit 77; }; } 2148128345Stjrfi 2149128345Stjr 2150128345Stjrac_exeext=$ac_cv_exeext 2151128345Stjr 2152170256Sdelphij# Check that the compiler produces executables we can run. If not, either 2153128345Stjr# the compiler is broken, or we cross compile. 2154170256Sdelphij{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2155170256Sdelphijecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2156128345Stjr# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2157128345Stjr# If not cross compiling, check that we can run a simple program. 2158128345Stjrif test "$cross_compiling" != yes; then 2159128345Stjr if { ac_try='./$ac_file' 2160170256Sdelphij { (case "(($ac_try" in 2161170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2162170256Sdelphij *) ac_try_echo=$ac_try;; 2163170256Sdelphijesac 2164170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2165170256Sdelphij (eval "$ac_try") 2>&5 2166128345Stjr ac_status=$? 2167128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 2168128345Stjr (exit $ac_status); }; }; then 2169128345Stjr cross_compiling=no 217060786Sps else 2171128345Stjr if test "$cross_compiling" = maybe; then 2172128345Stjr cross_compiling=yes 2173128345Stjr else 2174128345Stjr { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2175170256SdelphijIf you meant to cross compile, use \`--host'. 2176170256SdelphijSee \`config.log' for more details." >&5 2177128345Stjrecho "$as_me: error: cannot run C compiled programs. 2178170256SdelphijIf you meant to cross compile, use \`--host'. 2179170256SdelphijSee \`config.log' for more details." >&2;} 2180128345Stjr { (exit 1); exit 1; }; } 2181128345Stjr fi 218260786Sps fi 218360786Spsfi 2184170256Sdelphij{ echo "$as_me:$LINENO: result: yes" >&5 2185170256Sdelphijecho "${ECHO_T}yes" >&6; } 218660786Sps 2187170256Sdelphijrm -f a.out a.exe conftest$ac_cv_exeext b.out 2188128345Stjrac_clean_files=$ac_clean_files_save 2189170256Sdelphij# Check that the compiler produces executables we can run. If not, either 2190128345Stjr# the compiler is broken, or we cross compile. 2191170256Sdelphij{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2192170256Sdelphijecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2193170256Sdelphij{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2194170256Sdelphijecho "${ECHO_T}$cross_compiling" >&6; } 2195128345Stjr 2196170256Sdelphij{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2197170256Sdelphijecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2198170256Sdelphijif { (ac_try="$ac_link" 2199170256Sdelphijcase "(($ac_try" in 2200170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2201170256Sdelphij *) ac_try_echo=$ac_try;; 2202170256Sdelphijesac 2203170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2204170256Sdelphij (eval "$ac_link") 2>&5 2205128345Stjr ac_status=$? 2206128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 2207128345Stjr (exit $ac_status); }; then 2208128345Stjr # If both `conftest.exe' and `conftest' are `present' (well, observable) 2209128345Stjr# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2210128345Stjr# work properly (i.e., refer to `conftest.exe'), while it won't with 2211128345Stjr# `rm'. 2212128345Stjrfor ac_file in conftest.exe conftest conftest.*; do 2213128345Stjr test -f "$ac_file" || continue 2214128345Stjr case $ac_file in 2215170256Sdelphij *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2216128345Stjr *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2217170256Sdelphij break;; 2218128345Stjr * ) break;; 2219128345Stjr esac 2220128345Stjrdone 2221128345Stjrelse 2222170256Sdelphij { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2223170256SdelphijSee \`config.log' for more details." >&5 2224170256Sdelphijecho "$as_me: error: cannot compute suffix of executables: cannot compile and link 2225170256SdelphijSee \`config.log' for more details." >&2;} 2226128345Stjr { (exit 1); exit 1; }; } 222760786Spsfi 222860786Sps 2229128345Stjrrm -f conftest$ac_cv_exeext 2230170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2231170256Sdelphijecho "${ECHO_T}$ac_cv_exeext" >&6; } 2232128345Stjr 2233128345Stjrrm -f conftest.$ac_ext 2234128345StjrEXEEXT=$ac_cv_exeext 2235128345Stjrac_exeext=$EXEEXT 2236170256Sdelphij{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2237170256Sdelphijecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2238128345Stjrif test "${ac_cv_objext+set}" = set; then 2239128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 224060786Spselse 2241128345Stjr cat >conftest.$ac_ext <<_ACEOF 2242170256Sdelphij/* confdefs.h. */ 2243170256Sdelphij_ACEOF 2244170256Sdelphijcat confdefs.h >>conftest.$ac_ext 2245170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 2246170256Sdelphij/* end confdefs.h. */ 2247128345Stjr 2248128345Stjrint 2249128345Stjrmain () 2250128345Stjr{ 2251128345Stjr 2252128345Stjr ; 2253128345Stjr return 0; 2254128345Stjr} 2255128345Stjr_ACEOF 2256128345Stjrrm -f conftest.o conftest.obj 2257170256Sdelphijif { (ac_try="$ac_compile" 2258170256Sdelphijcase "(($ac_try" in 2259170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2260170256Sdelphij *) ac_try_echo=$ac_try;; 2261170256Sdelphijesac 2262170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2263170256Sdelphij (eval "$ac_compile") 2>&5 2264128345Stjr ac_status=$? 2265128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 2266128345Stjr (exit $ac_status); }; then 2267170256Sdelphij for ac_file in conftest.o conftest.obj conftest.*; do 2268170256Sdelphij test -f "$ac_file" || continue; 2269128345Stjr case $ac_file in 2270170256Sdelphij *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2271128345Stjr *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2272128345Stjr break;; 2273128345Stjr esac 2274128345Stjrdone 227560786Spselse 2276128345Stjr echo "$as_me: failed program was:" >&5 2277170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 2278170256Sdelphij 2279170256Sdelphij{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2280170256SdelphijSee \`config.log' for more details." >&5 2281170256Sdelphijecho "$as_me: error: cannot compute suffix of object files: cannot compile 2282170256SdelphijSee \`config.log' for more details." >&2;} 2283128345Stjr { (exit 1); exit 1; }; } 228460786Spsfi 2285128345Stjr 2286128345Stjrrm -f conftest.$ac_cv_objext conftest.$ac_ext 228760786Spsfi 2288170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2289170256Sdelphijecho "${ECHO_T}$ac_cv_objext" >&6; } 2290128345StjrOBJEXT=$ac_cv_objext 2291128345Stjrac_objext=$OBJEXT 2292170256Sdelphij{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2293170256Sdelphijecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2294128345Stjrif test "${ac_cv_c_compiler_gnu+set}" = set; then 2295128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 2296128345Stjrelse 2297128345Stjr cat >conftest.$ac_ext <<_ACEOF 2298170256Sdelphij/* confdefs.h. */ 2299170256Sdelphij_ACEOF 2300170256Sdelphijcat confdefs.h >>conftest.$ac_ext 2301170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 2302170256Sdelphij/* end confdefs.h. */ 230360786Sps 2304128345Stjrint 2305128345Stjrmain () 2306128345Stjr{ 2307128345Stjr#ifndef __GNUC__ 2308128345Stjr choke me 2309128345Stjr#endif 231060786Sps 2311128345Stjr ; 2312128345Stjr return 0; 2313128345Stjr} 2314128345Stjr_ACEOF 2315128345Stjrrm -f conftest.$ac_objext 2316170256Sdelphijif { (ac_try="$ac_compile" 2317170256Sdelphijcase "(($ac_try" in 2318170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2319170256Sdelphij *) ac_try_echo=$ac_try;; 2320170256Sdelphijesac 2321170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2322170256Sdelphij (eval "$ac_compile") 2>conftest.er1 2323128345Stjr ac_status=$? 2324170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 2325170256Sdelphij rm -f conftest.er1 2326170256Sdelphij cat conftest.err >&5 2327128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 2328170256Sdelphij (exit $ac_status); } && { 2329170256Sdelphij test -z "$ac_c_werror_flag" || 2330170256Sdelphij test ! -s conftest.err 2331170256Sdelphij } && test -s conftest.$ac_objext; then 2332128345Stjr ac_compiler_gnu=yes 233389019Spselse 2334128345Stjr echo "$as_me: failed program was:" >&5 2335170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 2336170256Sdelphij 2337170256Sdelphij ac_compiler_gnu=no 233889019Spsfi 2339170256Sdelphij 2340170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2341128345Stjrac_cv_c_compiler_gnu=$ac_compiler_gnu 234289019Sps 2343128345Stjrfi 2344170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2345170256Sdelphijecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2346128345StjrGCC=`test $ac_compiler_gnu = yes && echo yes` 2347128345Stjrac_test_CFLAGS=${CFLAGS+set} 2348128345Stjrac_save_CFLAGS=$CFLAGS 2349170256Sdelphij{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2350170256Sdelphijecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2351128345Stjrif test "${ac_cv_prog_cc_g+set}" = set; then 2352128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 235360786Spselse 2354170256Sdelphij ac_save_c_werror_flag=$ac_c_werror_flag 2355170256Sdelphij ac_c_werror_flag=yes 2356170256Sdelphij ac_cv_prog_cc_g=no 2357170256Sdelphij CFLAGS="-g" 2358170256Sdelphij cat >conftest.$ac_ext <<_ACEOF 2359170256Sdelphij/* confdefs.h. */ 2360170256Sdelphij_ACEOF 2361170256Sdelphijcat confdefs.h >>conftest.$ac_ext 2362170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 2363170256Sdelphij/* end confdefs.h. */ 2364128345Stjr 2365128345Stjrint 2366128345Stjrmain () 2367128345Stjr{ 2368128345Stjr 2369128345Stjr ; 2370128345Stjr return 0; 2371128345Stjr} 2372128345Stjr_ACEOF 2373128345Stjrrm -f conftest.$ac_objext 2374170256Sdelphijif { (ac_try="$ac_compile" 2375170256Sdelphijcase "(($ac_try" in 2376170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2377170256Sdelphij *) ac_try_echo=$ac_try;; 2378170256Sdelphijesac 2379170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2380170256Sdelphij (eval "$ac_compile") 2>conftest.er1 2381128345Stjr ac_status=$? 2382170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 2383170256Sdelphij rm -f conftest.er1 2384170256Sdelphij cat conftest.err >&5 2385128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 2386170256Sdelphij (exit $ac_status); } && { 2387170256Sdelphij test -z "$ac_c_werror_flag" || 2388170256Sdelphij test ! -s conftest.err 2389170256Sdelphij } && test -s conftest.$ac_objext; then 2390170256Sdelphij ac_cv_prog_cc_g=yes 2391170256Sdelphijelse 2392170256Sdelphij echo "$as_me: failed program was:" >&5 2393170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 2394170256Sdelphij 2395170256Sdelphij CFLAGS="" 2396170256Sdelphij cat >conftest.$ac_ext <<_ACEOF 2397170256Sdelphij/* confdefs.h. */ 2398170256Sdelphij_ACEOF 2399170256Sdelphijcat confdefs.h >>conftest.$ac_ext 2400170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 2401170256Sdelphij/* end confdefs.h. */ 2402170256Sdelphij 2403170256Sdelphijint 2404170256Sdelphijmain () 2405170256Sdelphij{ 2406170256Sdelphij 2407170256Sdelphij ; 2408170256Sdelphij return 0; 2409170256Sdelphij} 2410170256Sdelphij_ACEOF 2411170256Sdelphijrm -f conftest.$ac_objext 2412170256Sdelphijif { (ac_try="$ac_compile" 2413170256Sdelphijcase "(($ac_try" in 2414170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2415170256Sdelphij *) ac_try_echo=$ac_try;; 2416170256Sdelphijesac 2417170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2418170256Sdelphij (eval "$ac_compile") 2>conftest.er1 2419128345Stjr ac_status=$? 2420170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 2421170256Sdelphij rm -f conftest.er1 2422170256Sdelphij cat conftest.err >&5 2423128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 2424170256Sdelphij (exit $ac_status); } && { 2425170256Sdelphij test -z "$ac_c_werror_flag" || 2426170256Sdelphij test ! -s conftest.err 2427170256Sdelphij } && test -s conftest.$ac_objext; then 2428170256Sdelphij : 2429170256Sdelphijelse 2430170256Sdelphij echo "$as_me: failed program was:" >&5 2431170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 2432170256Sdelphij 2433170256Sdelphij ac_c_werror_flag=$ac_save_c_werror_flag 2434170256Sdelphij CFLAGS="-g" 2435170256Sdelphij cat >conftest.$ac_ext <<_ACEOF 2436170256Sdelphij/* confdefs.h. */ 2437170256Sdelphij_ACEOF 2438170256Sdelphijcat confdefs.h >>conftest.$ac_ext 2439170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 2440170256Sdelphij/* end confdefs.h. */ 2441170256Sdelphij 2442170256Sdelphijint 2443170256Sdelphijmain () 2444170256Sdelphij{ 2445170256Sdelphij 2446170256Sdelphij ; 2447170256Sdelphij return 0; 2448170256Sdelphij} 2449170256Sdelphij_ACEOF 2450170256Sdelphijrm -f conftest.$ac_objext 2451170256Sdelphijif { (ac_try="$ac_compile" 2452170256Sdelphijcase "(($ac_try" in 2453170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2454170256Sdelphij *) ac_try_echo=$ac_try;; 2455170256Sdelphijesac 2456170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2457170256Sdelphij (eval "$ac_compile") 2>conftest.er1 2458170256Sdelphij ac_status=$? 2459170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 2460170256Sdelphij rm -f conftest.er1 2461170256Sdelphij cat conftest.err >&5 2462170256Sdelphij echo "$as_me:$LINENO: \$? = $ac_status" >&5 2463170256Sdelphij (exit $ac_status); } && { 2464170256Sdelphij test -z "$ac_c_werror_flag" || 2465170256Sdelphij test ! -s conftest.err 2466170256Sdelphij } && test -s conftest.$ac_objext; then 246760786Sps ac_cv_prog_cc_g=yes 246860786Spselse 2469128345Stjr echo "$as_me: failed program was:" >&5 2470170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 2471170256Sdelphij 2472170256Sdelphij 247360786Spsfi 2474170256Sdelphij 2475170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 247660786Spsfi 2477170256Sdelphij 2478170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2479170256Sdelphijfi 2480170256Sdelphij 2481170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2482170256Sdelphij ac_c_werror_flag=$ac_save_c_werror_flag 2483170256Sdelphijfi 2484170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2485170256Sdelphijecho "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 248689019Spsif test "$ac_test_CFLAGS" = set; then 2487128345Stjr CFLAGS=$ac_save_CFLAGS 248889019Spselif test $ac_cv_prog_cc_g = yes; then 248989019Sps if test "$GCC" = yes; then 249060786Sps CFLAGS="-g -O2" 249160786Sps else 249289019Sps CFLAGS="-g" 249389019Sps fi 249489019Spselse 249589019Sps if test "$GCC" = yes; then 249660786Sps CFLAGS="-O2" 249789019Sps else 249889019Sps CFLAGS= 249960786Sps fi 250060786Spsfi 2501170256Sdelphij{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2502170256Sdelphijecho $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2503170256Sdelphijif test "${ac_cv_prog_cc_c89+set}" = set; then 2504128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 2505128345Stjrelse 2506170256Sdelphij ac_cv_prog_cc_c89=no 2507128345Stjrac_save_CC=$CC 2508128345Stjrcat >conftest.$ac_ext <<_ACEOF 2509170256Sdelphij/* confdefs.h. */ 2510170256Sdelphij_ACEOF 2511170256Sdelphijcat confdefs.h >>conftest.$ac_ext 2512170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 2513170256Sdelphij/* end confdefs.h. */ 2514128345Stjr#include <stdarg.h> 2515128345Stjr#include <stdio.h> 2516128345Stjr#include <sys/types.h> 2517128345Stjr#include <sys/stat.h> 2518128345Stjr/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2519128345Stjrstruct buf { int x; }; 2520128345StjrFILE * (*rcsopen) (struct buf *, struct stat *, int); 2521128345Stjrstatic char *e (p, i) 2522128345Stjr char **p; 2523128345Stjr int i; 2524128345Stjr{ 2525128345Stjr return p[i]; 2526128345Stjr} 2527128345Stjrstatic char *f (char * (*g) (char **, int), char **p, ...) 2528128345Stjr{ 2529128345Stjr char *s; 2530128345Stjr va_list v; 2531128345Stjr va_start (v,p); 2532128345Stjr s = g (p, va_arg (v,int)); 2533128345Stjr va_end (v); 2534128345Stjr return s; 2535128345Stjr} 2536170256Sdelphij 2537170256Sdelphij/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2538170256Sdelphij function prototypes and stuff, but not '\xHH' hex character constants. 2539170256Sdelphij These don't provoke an error unfortunately, instead are silently treated 2540170256Sdelphij as 'x'. The following induces an error, until -std is added to get 2541170256Sdelphij proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2542170256Sdelphij array size at least. It's necessary to write '\x00'==0 to get something 2543170256Sdelphij that's true only with -std. */ 2544170256Sdelphijint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2545170256Sdelphij 2546170256Sdelphij/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2547170256Sdelphij inside strings and character constants. */ 2548170256Sdelphij#define FOO(x) 'x' 2549170256Sdelphijint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2550170256Sdelphij 2551128345Stjrint test (int i, double x); 2552128345Stjrstruct s1 {int (*f) (int a);}; 2553128345Stjrstruct s2 {int (*f) (double a);}; 2554128345Stjrint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2555128345Stjrint argc; 2556128345Stjrchar **argv; 2557128345Stjrint 2558128345Stjrmain () 2559128345Stjr{ 2560128345Stjrreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2561128345Stjr ; 2562128345Stjr return 0; 2563128345Stjr} 2564128345Stjr_ACEOF 2565170256Sdelphijfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2566170256Sdelphij -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2567128345Stjrdo 2568128345Stjr CC="$ac_save_CC $ac_arg" 2569128345Stjr rm -f conftest.$ac_objext 2570170256Sdelphijif { (ac_try="$ac_compile" 2571170256Sdelphijcase "(($ac_try" in 2572170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2573170256Sdelphij *) ac_try_echo=$ac_try;; 2574170256Sdelphijesac 2575170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2576170256Sdelphij (eval "$ac_compile") 2>conftest.er1 2577128345Stjr ac_status=$? 2578170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 2579170256Sdelphij rm -f conftest.er1 2580170256Sdelphij cat conftest.err >&5 2581128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 2582170256Sdelphij (exit $ac_status); } && { 2583170256Sdelphij test -z "$ac_c_werror_flag" || 2584170256Sdelphij test ! -s conftest.err 2585170256Sdelphij } && test -s conftest.$ac_objext; then 2586170256Sdelphij ac_cv_prog_cc_c89=$ac_arg 2587128345Stjrelse 2588128345Stjr echo "$as_me: failed program was:" >&5 2589170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 2590170256Sdelphij 2591170256Sdelphij 2592128345Stjrfi 2593170256Sdelphij 2594170256Sdelphijrm -f core conftest.err conftest.$ac_objext 2595170256Sdelphij test "x$ac_cv_prog_cc_c89" != "xno" && break 2596128345Stjrdone 2597170256Sdelphijrm -f conftest.$ac_ext 2598128345StjrCC=$ac_save_CC 259960786Sps 2600128345Stjrfi 2601170256Sdelphij# AC_CACHE_VAL 2602170256Sdelphijcase "x$ac_cv_prog_cc_c89" in 2603170256Sdelphij x) 2604170256Sdelphij { echo "$as_me:$LINENO: result: none needed" >&5 2605170256Sdelphijecho "${ECHO_T}none needed" >&6; } ;; 2606170256Sdelphij xno) 2607170256Sdelphij { echo "$as_me:$LINENO: result: unsupported" >&5 2608170256Sdelphijecho "${ECHO_T}unsupported" >&6; } ;; 2609128345Stjr *) 2610170256Sdelphij CC="$CC $ac_cv_prog_cc_c89" 2611170256Sdelphij { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2612170256Sdelphijecho "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2613128345Stjresac 2614128345Stjr 261560786Sps 2616128345Stjrac_ext=c 2617128345Stjrac_cpp='$CPP $CPPFLAGS' 2618128345Stjrac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2619128345Stjrac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2620128345Stjrac_compiler_gnu=$ac_cv_c_compiler_gnu 2621128345Stjr 2622128345Stjr 2623170256Sdelphij{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 2624170256Sdelphijecho $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 2625128345Stjrif test "${ac_cv_search_strerror+set}" = set; then 2626128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 2627128345Stjrelse 2628128345Stjr ac_func_search_save_LIBS=$LIBS 2629128345Stjrcat >conftest.$ac_ext <<_ACEOF 2630170256Sdelphij/* confdefs.h. */ 2631170256Sdelphij_ACEOF 2632170256Sdelphijcat confdefs.h >>conftest.$ac_ext 2633170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 2634170256Sdelphij/* end confdefs.h. */ 2635128345Stjr 2636170256Sdelphij/* Override any GCC internal prototype to avoid an error. 2637170256Sdelphij Use char because int might match the return type of a GCC 2638170256Sdelphij builtin and then its argument prototype would still apply. */ 2639128345Stjr#ifdef __cplusplus 2640128345Stjrextern "C" 2641128345Stjr#endif 2642128345Stjrchar strerror (); 2643128345Stjrint 2644128345Stjrmain () 2645128345Stjr{ 2646170256Sdelphijreturn strerror (); 2647128345Stjr ; 2648128345Stjr return 0; 2649128345Stjr} 2650128345Stjr_ACEOF 2651170256Sdelphijfor ac_lib in '' cposix; do 2652170256Sdelphij if test -z "$ac_lib"; then 2653170256Sdelphij ac_res="none required" 2654170256Sdelphij else 2655170256Sdelphij ac_res=-l$ac_lib 2656170256Sdelphij LIBS="-l$ac_lib $ac_func_search_save_LIBS" 2657170256Sdelphij fi 2658170256Sdelphij rm -f conftest.$ac_objext conftest$ac_exeext 2659170256Sdelphijif { (ac_try="$ac_link" 2660170256Sdelphijcase "(($ac_try" in 2661170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2662170256Sdelphij *) ac_try_echo=$ac_try;; 2663170256Sdelphijesac 2664170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2665170256Sdelphij (eval "$ac_link") 2>conftest.er1 2666128345Stjr ac_status=$? 2667170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 2668170256Sdelphij rm -f conftest.er1 2669170256Sdelphij cat conftest.err >&5 2670128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 2671170256Sdelphij (exit $ac_status); } && { 2672170256Sdelphij test -z "$ac_c_werror_flag" || 2673170256Sdelphij test ! -s conftest.err 2674170256Sdelphij } && test -s conftest$ac_exeext && 2675170256Sdelphij $as_test_x conftest$ac_exeext; then 2676170256Sdelphij ac_cv_search_strerror=$ac_res 2677128345Stjrelse 2678128345Stjr echo "$as_me: failed program was:" >&5 2679170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 2680170256Sdelphij 2681170256Sdelphij 2682128345Stjrfi 2683128345Stjr 2684170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 2685170256Sdelphij conftest$ac_exeext 2686170256Sdelphij if test "${ac_cv_search_strerror+set}" = set; then 2687170256Sdelphij break 2688170256Sdelphijfi 2689170256Sdelphijdone 2690170256Sdelphijif test "${ac_cv_search_strerror+set}" = set; then 2691170256Sdelphij : 2692128345Stjrelse 2693170256Sdelphij ac_cv_search_strerror=no 2694128345Stjrfi 2695170256Sdelphijrm conftest.$ac_ext 2696128345StjrLIBS=$ac_func_search_save_LIBS 2697128345Stjrfi 2698170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 2699170256Sdelphijecho "${ECHO_T}$ac_cv_search_strerror" >&6; } 2700170256Sdelphijac_res=$ac_cv_search_strerror 2701170256Sdelphijif test "$ac_res" != no; then 2702170256Sdelphij test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 2703128345Stjr 2704128345Stjrfi 2705128345Stjr 2706128345Stjrac_ext=c 2707128345Stjrac_cpp='$CPP $CPPFLAGS' 2708128345Stjrac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2709128345Stjrac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2710128345Stjrac_compiler_gnu=$ac_cv_c_compiler_gnu 2711170256Sdelphij{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2712170256Sdelphijecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 271360786Sps# On Suns, sometimes $CPP names a directory. 271460786Spsif test -n "$CPP" && test -d "$CPP"; then 271560786Sps CPP= 271660786Spsfi 271760786Spsif test -z "$CPP"; then 2718128345Stjr if test "${ac_cv_prog_CPP+set}" = set; then 2719128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 272060786Spselse 2721128345Stjr # Double quotes because CPP needs to be expanded 2722128345Stjr for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2723128345Stjr do 2724128345Stjr ac_preproc_ok=false 2725128345Stjrfor ac_c_preproc_warn_flag in '' yes 2726128345Stjrdo 2727128345Stjr # Use a header file that comes with gcc, so configuring glibc 2728128345Stjr # with a fresh cross-compiler works. 2729170256Sdelphij # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2730170256Sdelphij # <limits.h> exists even on freestanding compilers. 273160786Sps # On the NeXT, cc -E runs the code through the compiler's parser, 2732128345Stjr # not just through cpp. "Syntax error" is here to catch this case. 2733128345Stjr cat >conftest.$ac_ext <<_ACEOF 2734170256Sdelphij/* confdefs.h. */ 2735128345Stjr_ACEOF 2736170256Sdelphijcat confdefs.h >>conftest.$ac_ext 2737170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 2738170256Sdelphij/* end confdefs.h. */ 2739170256Sdelphij#ifdef __STDC__ 2740170256Sdelphij# include <limits.h> 2741170256Sdelphij#else 2742170256Sdelphij# include <assert.h> 2743170256Sdelphij#endif 2744170256Sdelphij Syntax error 2745170256Sdelphij_ACEOF 2746170256Sdelphijif { (ac_try="$ac_cpp conftest.$ac_ext" 2747170256Sdelphijcase "(($ac_try" in 2748170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2749170256Sdelphij *) ac_try_echo=$ac_try;; 2750170256Sdelphijesac 2751170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2752170256Sdelphij (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2753128345Stjr ac_status=$? 2754128345Stjr grep -v '^ *+' conftest.er1 >conftest.err 2755128345Stjr rm -f conftest.er1 2756128345Stjr cat conftest.err >&5 2757128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 2758170256Sdelphij (exit $ac_status); } >/dev/null && { 2759170256Sdelphij test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2760170256Sdelphij test ! -s conftest.err 2761170256Sdelphij }; then 276260786Sps : 276360786Spselse 2764128345Stjr echo "$as_me: failed program was:" >&5 2765170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 2766170256Sdelphij 2767128345Stjr # Broken: fails on valid input. 2768128345Stjrcontinue 2769128345Stjrfi 2770170256Sdelphij 2771128345Stjrrm -f conftest.err conftest.$ac_ext 2772128345Stjr 2773170256Sdelphij # OK, works on sane cases. Now check whether nonexistent headers 2774128345Stjr # can be detected and how. 2775128345Stjr cat >conftest.$ac_ext <<_ACEOF 2776170256Sdelphij/* confdefs.h. */ 2777170256Sdelphij_ACEOF 2778170256Sdelphijcat confdefs.h >>conftest.$ac_ext 2779170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 2780170256Sdelphij/* end confdefs.h. */ 2781128345Stjr#include <ac_nonexistent.h> 2782128345Stjr_ACEOF 2783170256Sdelphijif { (ac_try="$ac_cpp conftest.$ac_ext" 2784170256Sdelphijcase "(($ac_try" in 2785170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2786170256Sdelphij *) ac_try_echo=$ac_try;; 2787170256Sdelphijesac 2788170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2789170256Sdelphij (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2790128345Stjr ac_status=$? 2791128345Stjr grep -v '^ *+' conftest.er1 >conftest.err 2792128345Stjr rm -f conftest.er1 2793128345Stjr cat conftest.err >&5 2794128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 2795170256Sdelphij (exit $ac_status); } >/dev/null && { 2796170256Sdelphij test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2797170256Sdelphij test ! -s conftest.err 2798170256Sdelphij }; then 2799128345Stjr # Broken: success on invalid input. 2800128345Stjrcontinue 2801128345Stjrelse 2802128345Stjr echo "$as_me: failed program was:" >&5 2803170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 2804170256Sdelphij 2805128345Stjr # Passes both tests. 2806128345Stjrac_preproc_ok=: 2807128345Stjrbreak 2808128345Stjrfi 2809170256Sdelphij 2810128345Stjrrm -f conftest.err conftest.$ac_ext 2811128345Stjr 2812128345Stjrdone 2813128345Stjr# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2814128345Stjrrm -f conftest.err conftest.$ac_ext 2815128345Stjrif $ac_preproc_ok; then 2816128345Stjr break 2817128345Stjrfi 2818128345Stjr 2819128345Stjr done 2820128345Stjr ac_cv_prog_CPP=$CPP 2821128345Stjr 2822128345Stjrfi 2823128345Stjr CPP=$ac_cv_prog_CPP 2824128345Stjrelse 2825128345Stjr ac_cv_prog_CPP=$CPP 2826128345Stjrfi 2827170256Sdelphij{ echo "$as_me:$LINENO: result: $CPP" >&5 2828170256Sdelphijecho "${ECHO_T}$CPP" >&6; } 2829128345Stjrac_preproc_ok=false 2830128345Stjrfor ac_c_preproc_warn_flag in '' yes 2831128345Stjrdo 2832128345Stjr # Use a header file that comes with gcc, so configuring glibc 2833128345Stjr # with a fresh cross-compiler works. 2834170256Sdelphij # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2835170256Sdelphij # <limits.h> exists even on freestanding compilers. 2836128345Stjr # On the NeXT, cc -E runs the code through the compiler's parser, 2837128345Stjr # not just through cpp. "Syntax error" is here to catch this case. 2838128345Stjr cat >conftest.$ac_ext <<_ACEOF 2839170256Sdelphij/* confdefs.h. */ 2840128345Stjr_ACEOF 2841170256Sdelphijcat confdefs.h >>conftest.$ac_ext 2842170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 2843170256Sdelphij/* end confdefs.h. */ 2844170256Sdelphij#ifdef __STDC__ 2845170256Sdelphij# include <limits.h> 2846170256Sdelphij#else 2847170256Sdelphij# include <assert.h> 2848170256Sdelphij#endif 2849170256Sdelphij Syntax error 2850170256Sdelphij_ACEOF 2851170256Sdelphijif { (ac_try="$ac_cpp conftest.$ac_ext" 2852170256Sdelphijcase "(($ac_try" in 2853170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2854170256Sdelphij *) ac_try_echo=$ac_try;; 2855170256Sdelphijesac 2856170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2857170256Sdelphij (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2858128345Stjr ac_status=$? 2859128345Stjr grep -v '^ *+' conftest.er1 >conftest.err 2860128345Stjr rm -f conftest.er1 2861128345Stjr cat conftest.err >&5 2862128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 2863170256Sdelphij (exit $ac_status); } >/dev/null && { 2864170256Sdelphij test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2865170256Sdelphij test ! -s conftest.err 2866170256Sdelphij }; then 286789019Sps : 286889019Spselse 2869128345Stjr echo "$as_me: failed program was:" >&5 2870170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 2871170256Sdelphij 2872128345Stjr # Broken: fails on valid input. 2873128345Stjrcontinue 287460786Spsfi 2875170256Sdelphij 2876128345Stjrrm -f conftest.err conftest.$ac_ext 2877128345Stjr 2878170256Sdelphij # OK, works on sane cases. Now check whether nonexistent headers 2879128345Stjr # can be detected and how. 2880128345Stjr cat >conftest.$ac_ext <<_ACEOF 2881170256Sdelphij/* confdefs.h. */ 2882170256Sdelphij_ACEOF 2883170256Sdelphijcat confdefs.h >>conftest.$ac_ext 2884170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 2885170256Sdelphij/* end confdefs.h. */ 2886128345Stjr#include <ac_nonexistent.h> 2887128345Stjr_ACEOF 2888170256Sdelphijif { (ac_try="$ac_cpp conftest.$ac_ext" 2889170256Sdelphijcase "(($ac_try" in 2890170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2891170256Sdelphij *) ac_try_echo=$ac_try;; 2892170256Sdelphijesac 2893170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2894170256Sdelphij (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2895128345Stjr ac_status=$? 2896128345Stjr grep -v '^ *+' conftest.er1 >conftest.err 2897128345Stjr rm -f conftest.er1 2898128345Stjr cat conftest.err >&5 2899128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 2900170256Sdelphij (exit $ac_status); } >/dev/null && { 2901170256Sdelphij test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2902170256Sdelphij test ! -s conftest.err 2903170256Sdelphij }; then 2904128345Stjr # Broken: success on invalid input. 2905128345Stjrcontinue 2906128345Stjrelse 2907128345Stjr echo "$as_me: failed program was:" >&5 2908170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 2909170256Sdelphij 2910128345Stjr # Passes both tests. 2911128345Stjrac_preproc_ok=: 2912128345Stjrbreak 291389019Spsfi 2914170256Sdelphij 2915128345Stjrrm -f conftest.err conftest.$ac_ext 2916128345Stjr 2917128345Stjrdone 2918128345Stjr# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2919128345Stjrrm -f conftest.err conftest.$ac_ext 2920128345Stjrif $ac_preproc_ok; then 2921128345Stjr : 2922128345Stjrelse 2923170256Sdelphij { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2924170256SdelphijSee \`config.log' for more details." >&5 2925170256Sdelphijecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2926170256SdelphijSee \`config.log' for more details." >&2;} 2927128345Stjr { (exit 1); exit 1; }; } 292860786Spsfi 2929128345Stjr 2930128345Stjrac_ext=c 2931128345Stjrac_cpp='$CPP $CPPFLAGS' 2932128345Stjrac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2933128345Stjrac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2934128345Stjrac_compiler_gnu=$ac_cv_c_compiler_gnu 2935128345Stjr 2936128345Stjr 2937170256Sdelphij{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 2938170256Sdelphijecho $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 2939170256Sdelphijif test "${ac_cv_path_GREP+set}" = set; then 2940128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 294160786Spselse 2942170256Sdelphij # Extract the first word of "grep ggrep" to use in msg output 2943170256Sdelphijif test -z "$GREP"; then 2944170256Sdelphijset dummy grep ggrep; ac_prog_name=$2 2945170256Sdelphijif test "${ac_cv_path_GREP+set}" = set; then 2946170256Sdelphij echo $ECHO_N "(cached) $ECHO_C" >&6 2947170256Sdelphijelse 2948170256Sdelphij ac_path_GREP_found=false 2949170256Sdelphij# Loop through the user's path and test for each of PROGNAME-LIST 2950170256Sdelphijas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951170256Sdelphijfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 2952170256Sdelphijdo 2953170256Sdelphij IFS=$as_save_IFS 2954170256Sdelphij test -z "$as_dir" && as_dir=. 2955170256Sdelphij for ac_prog in grep ggrep; do 2956170256Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 2957170256Sdelphij ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 2958170256Sdelphij { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 2959170256Sdelphij # Check for GNU ac_path_GREP and select it if it is found. 2960170256Sdelphij # Check for GNU $ac_path_GREP 2961170256Sdelphijcase `"$ac_path_GREP" --version 2>&1` in 2962170256Sdelphij*GNU*) 2963170256Sdelphij ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 2964170256Sdelphij*) 2965170256Sdelphij ac_count=0 2966170256Sdelphij echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 2967170256Sdelphij while : 2968170256Sdelphij do 2969170256Sdelphij cat "conftest.in" "conftest.in" >"conftest.tmp" 2970170256Sdelphij mv "conftest.tmp" "conftest.in" 2971170256Sdelphij cp "conftest.in" "conftest.nl" 2972170256Sdelphij echo 'GREP' >> "conftest.nl" 2973170256Sdelphij "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 2974170256Sdelphij diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 2975170256Sdelphij ac_count=`expr $ac_count + 1` 2976170256Sdelphij if test $ac_count -gt ${ac_path_GREP_max-0}; then 2977170256Sdelphij # Best one so far, save it but keep looking for a better one 2978170256Sdelphij ac_cv_path_GREP="$ac_path_GREP" 2979170256Sdelphij ac_path_GREP_max=$ac_count 2980128345Stjr fi 2981170256Sdelphij # 10*(2^10) chars as input seems more than enough 2982170256Sdelphij test $ac_count -gt 10 && break 2983170256Sdelphij done 2984170256Sdelphij rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 2985170256Sdelphijesac 2986170256Sdelphij 2987170256Sdelphij 2988170256Sdelphij $ac_path_GREP_found && break 3 2989170256Sdelphij done 2990170256Sdelphijdone 2991170256Sdelphij 2992170256Sdelphijdone 2993170256SdelphijIFS=$as_save_IFS 2994170256Sdelphij 2995170256Sdelphij 299660786Spsfi 299760786Sps 2998170256SdelphijGREP="$ac_cv_path_GREP" 2999170256Sdelphijif test -z "$GREP"; then 3000170256Sdelphij { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3001170256Sdelphijecho "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3002170256Sdelphij { (exit 1); exit 1; }; } 3003170256Sdelphijfi 3004128345Stjr 3005170256Sdelphijelse 3006170256Sdelphij ac_cv_path_GREP=$GREP 3007170256Sdelphijfi 3008170256Sdelphij 3009170256Sdelphij 3010170256Sdelphijfi 3011170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3012170256Sdelphijecho "${ECHO_T}$ac_cv_path_GREP" >&6; } 3013170256Sdelphij GREP="$ac_cv_path_GREP" 3014170256Sdelphij 3015170256Sdelphij 3016170256Sdelphij{ echo "$as_me:$LINENO: checking for egrep" >&5 3017170256Sdelphijecho $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3018170256Sdelphijif test "${ac_cv_path_EGREP+set}" = set; then 3019170256Sdelphij echo $ECHO_N "(cached) $ECHO_C" >&6 3020170256Sdelphijelse 3021170256Sdelphij if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3022170256Sdelphij then ac_cv_path_EGREP="$GREP -E" 3023170256Sdelphij else 3024170256Sdelphij # Extract the first word of "egrep" to use in msg output 3025170256Sdelphijif test -z "$EGREP"; then 3026170256Sdelphijset dummy egrep; ac_prog_name=$2 3027170256Sdelphijif test "${ac_cv_path_EGREP+set}" = set; then 3028170256Sdelphij echo $ECHO_N "(cached) $ECHO_C" >&6 3029170256Sdelphijelse 3030170256Sdelphij ac_path_EGREP_found=false 3031170256Sdelphij# Loop through the user's path and test for each of PROGNAME-LIST 3032170256Sdelphijas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3033170256Sdelphijfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3034170256Sdelphijdo 3035170256Sdelphij IFS=$as_save_IFS 3036170256Sdelphij test -z "$as_dir" && as_dir=. 3037170256Sdelphij for ac_prog in egrep; do 3038170256Sdelphij for ac_exec_ext in '' $ac_executable_extensions; do 3039170256Sdelphij ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3040170256Sdelphij { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3041170256Sdelphij # Check for GNU ac_path_EGREP and select it if it is found. 3042170256Sdelphij # Check for GNU $ac_path_EGREP 3043170256Sdelphijcase `"$ac_path_EGREP" --version 2>&1` in 3044170256Sdelphij*GNU*) 3045170256Sdelphij ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3046170256Sdelphij*) 3047170256Sdelphij ac_count=0 3048170256Sdelphij echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3049170256Sdelphij while : 3050170256Sdelphij do 3051170256Sdelphij cat "conftest.in" "conftest.in" >"conftest.tmp" 3052170256Sdelphij mv "conftest.tmp" "conftest.in" 3053170256Sdelphij cp "conftest.in" "conftest.nl" 3054170256Sdelphij echo 'EGREP' >> "conftest.nl" 3055170256Sdelphij "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3056170256Sdelphij diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3057170256Sdelphij ac_count=`expr $ac_count + 1` 3058170256Sdelphij if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3059170256Sdelphij # Best one so far, save it but keep looking for a better one 3060170256Sdelphij ac_cv_path_EGREP="$ac_path_EGREP" 3061170256Sdelphij ac_path_EGREP_max=$ac_count 3062170256Sdelphij fi 3063170256Sdelphij # 10*(2^10) chars as input seems more than enough 3064170256Sdelphij test $ac_count -gt 10 && break 3065170256Sdelphij done 3066170256Sdelphij rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3067170256Sdelphijesac 3068170256Sdelphij 3069170256Sdelphij 3070170256Sdelphij $ac_path_EGREP_found && break 3 3071170256Sdelphij done 3072170256Sdelphijdone 3073170256Sdelphij 3074170256Sdelphijdone 3075170256SdelphijIFS=$as_save_IFS 3076170256Sdelphij 3077170256Sdelphij 3078170256Sdelphijfi 3079170256Sdelphij 3080170256SdelphijEGREP="$ac_cv_path_EGREP" 3081170256Sdelphijif test -z "$EGREP"; then 3082170256Sdelphij { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3083170256Sdelphijecho "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3084170256Sdelphij { (exit 1); exit 1; }; } 3085170256Sdelphijfi 3086170256Sdelphij 3087170256Sdelphijelse 3088170256Sdelphij ac_cv_path_EGREP=$EGREP 3089170256Sdelphijfi 3090170256Sdelphij 3091170256Sdelphij 3092170256Sdelphij fi 3093170256Sdelphijfi 3094170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3095170256Sdelphijecho "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3096170256Sdelphij EGREP="$ac_cv_path_EGREP" 3097170256Sdelphij 3098170256Sdelphij 3099128345Stjrif test $ac_cv_c_compiler_gnu = yes; then 3100170256Sdelphij { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 3101170256Sdelphijecho $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } 3102128345Stjrif test "${ac_cv_prog_gcc_traditional+set}" = set; then 3103128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 310460786Spselse 310560786Sps ac_pattern="Autoconf.*'x'" 3106128345Stjr cat >conftest.$ac_ext <<_ACEOF 3107170256Sdelphij/* confdefs.h. */ 3108170256Sdelphij_ACEOF 3109170256Sdelphijcat confdefs.h >>conftest.$ac_ext 3110170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 3111170256Sdelphij/* end confdefs.h. */ 311260786Sps#include <sgtty.h> 311360786SpsAutoconf TIOCGETP 3114128345Stjr_ACEOF 311560786Spsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3116128345Stjr $EGREP "$ac_pattern" >/dev/null 2>&1; then 311760786Sps ac_cv_prog_gcc_traditional=yes 311860786Spselse 311960786Sps ac_cv_prog_gcc_traditional=no 312060786Spsfi 312160786Spsrm -f conftest* 312260786Sps 312360786Sps 312460786Sps if test $ac_cv_prog_gcc_traditional = no; then 3125128345Stjr cat >conftest.$ac_ext <<_ACEOF 3126170256Sdelphij/* confdefs.h. */ 3127170256Sdelphij_ACEOF 3128170256Sdelphijcat confdefs.h >>conftest.$ac_ext 3129170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 3130170256Sdelphij/* end confdefs.h. */ 313160786Sps#include <termio.h> 313260786SpsAutoconf TCGETA 3133128345Stjr_ACEOF 313460786Spsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3135128345Stjr $EGREP "$ac_pattern" >/dev/null 2>&1; then 313660786Sps ac_cv_prog_gcc_traditional=yes 313760786Spsfi 313860786Spsrm -f conftest* 313960786Sps 314060786Sps fi 314160786Spsfi 3142170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 3143170256Sdelphijecho "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } 314460786Sps if test $ac_cv_prog_gcc_traditional = yes; then 314560786Sps CC="$CC -traditional" 314660786Sps fi 314760786Spsfi 314860786Sps 314960786Spsac_aux_dir= 3150170256Sdelphijfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3151170256Sdelphij if test -f "$ac_dir/install-sh"; then 315260786Sps ac_aux_dir=$ac_dir 315360786Sps ac_install_sh="$ac_aux_dir/install-sh -c" 315460786Sps break 3155170256Sdelphij elif test -f "$ac_dir/install.sh"; then 315660786Sps ac_aux_dir=$ac_dir 315760786Sps ac_install_sh="$ac_aux_dir/install.sh -c" 315860786Sps break 3159170256Sdelphij elif test -f "$ac_dir/shtool"; then 3160128345Stjr ac_aux_dir=$ac_dir 3161128345Stjr ac_install_sh="$ac_aux_dir/shtool install -c" 3162128345Stjr break 316360786Sps fi 316460786Spsdone 316560786Spsif test -z "$ac_aux_dir"; then 3166170256Sdelphij { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 3167170256Sdelphijecho "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 3168128345Stjr { (exit 1); exit 1; }; } 316960786Spsfi 317060786Sps 3171170256Sdelphij# These three variables are undocumented and unsupported, 3172170256Sdelphij# and are intended to be withdrawn in a future Autoconf release. 3173170256Sdelphij# They can cause serious problems if a builder's source tree is in a directory 3174170256Sdelphij# whose full name contains unusual characters. 3175170256Sdelphijac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3176170256Sdelphijac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3177170256Sdelphijac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3178170256Sdelphij 3179170256Sdelphij 318060786Sps# Find a good install program. We prefer a C program (faster), 318160786Sps# so one script is as good as another. But avoid the broken or 318260786Sps# incompatible versions: 318360786Sps# SysV /etc/install, /usr/sbin/install 318460786Sps# SunOS /usr/etc/install 318560786Sps# IRIX /sbin/install 318660786Sps# AIX /bin/install 3187128345Stjr# AmigaOS /C/install, which installs bootblocks on floppy discs 318889019Sps# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 318960786Sps# AFS /usr/afsws/bin/install, which mishandles nonexistent args 319060786Sps# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3191170256Sdelphij# OS/2's system install, which has a completely different semantic 319260786Sps# ./install, which can be erroneously created by make from ./install.sh. 3193170256Sdelphij{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3194170256Sdelphijecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 319560786Spsif test -z "$INSTALL"; then 3196128345Stjrif test "${ac_cv_path_install+set}" = set; then 3197128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 319860786Spselse 3199128345Stjr as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3200128345Stjrfor as_dir in $PATH 3201128345Stjrdo 3202128345Stjr IFS=$as_save_IFS 3203128345Stjr test -z "$as_dir" && as_dir=. 3204128345Stjr # Account for people who put trailing slashes in PATH elements. 3205128345Stjrcase $as_dir/ in 3206128345Stjr ./ | .// | /cC/* | \ 3207128345Stjr /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3208170256Sdelphij ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3209128345Stjr /usr/ucb/* ) ;; 3210128345Stjr *) 3211128345Stjr # OSF1 and SCO ODT 3.0 have their own names for install. 3212128345Stjr # Don't use installbsd from OSF since it installs stuff as root 3213128345Stjr # by default. 3214128345Stjr for ac_prog in ginstall scoinst install; do 3215128345Stjr for ac_exec_ext in '' $ac_executable_extensions; do 3216170256Sdelphij if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3217170256Sdelphij if test $ac_prog = install && 3218170256Sdelphij grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3219170256Sdelphij # AIX install. It has an incompatible calling convention. 3220170256Sdelphij : 3221170256Sdelphij elif test $ac_prog = install && 3222170256Sdelphij grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3223170256Sdelphij # program-specific install script used by HP pwplus--don't use. 3224170256Sdelphij : 3225170256Sdelphij else 3226170256Sdelphij ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3227170256Sdelphij break 3 3228170256Sdelphij fi 3229170256Sdelphij fi 323060786Sps done 3231128345Stjr done 3232128345Stjr ;; 3233128345Stjresac 3234128345Stjrdone 3235170256SdelphijIFS=$as_save_IFS 323660786Sps 3237128345Stjr 323860786Spsfi 323960786Sps if test "${ac_cv_path_install+set}" = set; then 3240128345Stjr INSTALL=$ac_cv_path_install 324160786Sps else 3242170256Sdelphij # As a last resort, use the slow shell script. Don't cache a 3243170256Sdelphij # value for INSTALL within a source directory, because that will 324460786Sps # break other packages using the cache if that directory is 3245170256Sdelphij # removed, or if the value is a relative name. 3246128345Stjr INSTALL=$ac_install_sh 324760786Sps fi 324860786Spsfi 3249170256Sdelphij{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3250170256Sdelphijecho "${ECHO_T}$INSTALL" >&6; } 325160786Sps 325260786Sps# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 325360786Sps# It thinks the first close brace ends the variable substitution. 325460786Spstest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 325560786Sps 3256128345Stjrtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 325789019Sps 325860786Spstest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 325960786Sps 326060786Sps 3261128345Stjr# Checks for compilation model. 3262170256Sdelphij# Check whether --enable-largefile was given. 3263128345Stjrif test "${enable_largefile+set}" = set; then 3264170256Sdelphij enableval=$enable_largefile; 3265170256Sdelphijfi 326689019Sps 3267128345Stjrif test "$enable_largefile" != no; then 3268128345Stjr 3269170256Sdelphij { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 3270170256Sdelphijecho $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } 3271128345Stjrif test "${ac_cv_sys_largefile_CC+set}" = set; then 3272128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 327360786Spselse 3274128345Stjr ac_cv_sys_largefile_CC=no 3275128345Stjr if test "$GCC" != yes; then 3276128345Stjr ac_save_CC=$CC 3277128345Stjr while :; do 3278170256Sdelphij # IRIX 6.2 and later do not support large files by default, 3279170256Sdelphij # so use the C compiler's -n32 option if that helps. 3280170256Sdelphij cat >conftest.$ac_ext <<_ACEOF 3281170256Sdelphij/* confdefs.h. */ 3282170256Sdelphij_ACEOF 3283170256Sdelphijcat confdefs.h >>conftest.$ac_ext 3284170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 3285170256Sdelphij/* end confdefs.h. */ 3286128345Stjr#include <sys/types.h> 3287128345Stjr /* Check that off_t can represent 2**63 - 1 correctly. 3288128345Stjr We can't simply define LARGE_OFF_T to be 9223372036854775807, 3289128345Stjr since some C++ compilers masquerading as C compilers 3290128345Stjr incorrectly reject 9223372036854775807. */ 3291128345Stjr#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3292128345Stjr int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3293128345Stjr && LARGE_OFF_T % 2147483647 == 1) 3294128345Stjr ? 1 : -1]; 3295128345Stjrint 3296128345Stjrmain () 3297128345Stjr{ 329860786Sps 3299128345Stjr ; 3300128345Stjr return 0; 3301128345Stjr} 3302128345Stjr_ACEOF 3303170256Sdelphij rm -f conftest.$ac_objext 3304170256Sdelphijif { (ac_try="$ac_compile" 3305170256Sdelphijcase "(($ac_try" in 3306170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3307170256Sdelphij *) ac_try_echo=$ac_try;; 3308170256Sdelphijesac 3309170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3310170256Sdelphij (eval "$ac_compile") 2>conftest.er1 3311128345Stjr ac_status=$? 3312170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 3313170256Sdelphij rm -f conftest.er1 3314170256Sdelphij cat conftest.err >&5 3315128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 3316170256Sdelphij (exit $ac_status); } && { 3317170256Sdelphij test -z "$ac_c_werror_flag" || 3318170256Sdelphij test ! -s conftest.err 3319170256Sdelphij } && test -s conftest.$ac_objext; then 3320128345Stjr break 332160786Spselse 3322128345Stjr echo "$as_me: failed program was:" >&5 3323170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 3324170256Sdelphij 3325170256Sdelphij 332660786Spsfi 3327170256Sdelphij 3328170256Sdelphijrm -f core conftest.err conftest.$ac_objext 3329170256Sdelphij CC="$CC -n32" 3330170256Sdelphij rm -f conftest.$ac_objext 3331170256Sdelphijif { (ac_try="$ac_compile" 3332170256Sdelphijcase "(($ac_try" in 3333170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3334170256Sdelphij *) ac_try_echo=$ac_try;; 3335170256Sdelphijesac 3336170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3337170256Sdelphij (eval "$ac_compile") 2>conftest.er1 3338128345Stjr ac_status=$? 3339170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 3340170256Sdelphij rm -f conftest.er1 3341170256Sdelphij cat conftest.err >&5 3342128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 3343170256Sdelphij (exit $ac_status); } && { 3344170256Sdelphij test -z "$ac_c_werror_flag" || 3345170256Sdelphij test ! -s conftest.err 3346170256Sdelphij } && test -s conftest.$ac_objext; then 3347128345Stjr ac_cv_sys_largefile_CC=' -n32'; break 3348128345Stjrelse 3349128345Stjr echo "$as_me: failed program was:" >&5 3350170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 3351170256Sdelphij 3352170256Sdelphij 3353128345Stjrfi 3354170256Sdelphij 3355170256Sdelphijrm -f core conftest.err conftest.$ac_objext 3356170256Sdelphij break 3357128345Stjr done 3358128345Stjr CC=$ac_save_CC 3359128345Stjr rm -f conftest.$ac_ext 3360128345Stjr fi 3361128345Stjrfi 3362170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 3363170256Sdelphijecho "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } 3364128345Stjr if test "$ac_cv_sys_largefile_CC" != no; then 3365128345Stjr CC=$CC$ac_cv_sys_largefile_CC 3366128345Stjr fi 3367128345Stjr 3368170256Sdelphij { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 3369170256Sdelphijecho $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } 3370128345Stjrif test "${ac_cv_sys_file_offset_bits+set}" = set; then 3371128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 3372128345Stjrelse 3373128345Stjr while :; do 3374128345Stjr cat >conftest.$ac_ext <<_ACEOF 3375170256Sdelphij/* confdefs.h. */ 3376170256Sdelphij_ACEOF 3377170256Sdelphijcat confdefs.h >>conftest.$ac_ext 3378170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 3379170256Sdelphij/* end confdefs.h. */ 3380128345Stjr#include <sys/types.h> 3381128345Stjr /* Check that off_t can represent 2**63 - 1 correctly. 3382128345Stjr We can't simply define LARGE_OFF_T to be 9223372036854775807, 3383128345Stjr since some C++ compilers masquerading as C compilers 3384128345Stjr incorrectly reject 9223372036854775807. */ 3385128345Stjr#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3386128345Stjr int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3387128345Stjr && LARGE_OFF_T % 2147483647 == 1) 3388128345Stjr ? 1 : -1]; 3389128345Stjrint 3390128345Stjrmain () 3391128345Stjr{ 3392128345Stjr 3393128345Stjr ; 3394128345Stjr return 0; 3395128345Stjr} 3396128345Stjr_ACEOF 3397128345Stjrrm -f conftest.$ac_objext 3398170256Sdelphijif { (ac_try="$ac_compile" 3399170256Sdelphijcase "(($ac_try" in 3400170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3401170256Sdelphij *) ac_try_echo=$ac_try;; 3402170256Sdelphijesac 3403170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3404170256Sdelphij (eval "$ac_compile") 2>conftest.er1 3405128345Stjr ac_status=$? 3406170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 3407170256Sdelphij rm -f conftest.er1 3408170256Sdelphij cat conftest.err >&5 3409128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 3410170256Sdelphij (exit $ac_status); } && { 3411170256Sdelphij test -z "$ac_c_werror_flag" || 3412170256Sdelphij test ! -s conftest.err 3413170256Sdelphij } && test -s conftest.$ac_objext; then 3414170256Sdelphij ac_cv_sys_file_offset_bits=no; break 3415128345Stjrelse 3416128345Stjr echo "$as_me: failed program was:" >&5 3417170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 3418170256Sdelphij 3419170256Sdelphij 3420128345Stjrfi 3421170256Sdelphij 3422170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3423128345Stjr cat >conftest.$ac_ext <<_ACEOF 3424170256Sdelphij/* confdefs.h. */ 3425170256Sdelphij_ACEOF 3426170256Sdelphijcat confdefs.h >>conftest.$ac_ext 3427170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 3428170256Sdelphij/* end confdefs.h. */ 3429128345Stjr#define _FILE_OFFSET_BITS 64 3430128345Stjr#include <sys/types.h> 3431128345Stjr /* Check that off_t can represent 2**63 - 1 correctly. 3432128345Stjr We can't simply define LARGE_OFF_T to be 9223372036854775807, 3433128345Stjr since some C++ compilers masquerading as C compilers 3434128345Stjr incorrectly reject 9223372036854775807. */ 3435128345Stjr#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3436128345Stjr int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3437128345Stjr && LARGE_OFF_T % 2147483647 == 1) 3438128345Stjr ? 1 : -1]; 3439128345Stjrint 3440128345Stjrmain () 3441128345Stjr{ 3442128345Stjr 3443128345Stjr ; 3444128345Stjr return 0; 3445128345Stjr} 3446128345Stjr_ACEOF 3447128345Stjrrm -f conftest.$ac_objext 3448170256Sdelphijif { (ac_try="$ac_compile" 3449170256Sdelphijcase "(($ac_try" in 3450170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3451170256Sdelphij *) ac_try_echo=$ac_try;; 3452170256Sdelphijesac 3453170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3454170256Sdelphij (eval "$ac_compile") 2>conftest.er1 3455128345Stjr ac_status=$? 3456170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 3457170256Sdelphij rm -f conftest.er1 3458170256Sdelphij cat conftest.err >&5 3459128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 3460170256Sdelphij (exit $ac_status); } && { 3461170256Sdelphij test -z "$ac_c_werror_flag" || 3462170256Sdelphij test ! -s conftest.err 3463170256Sdelphij } && test -s conftest.$ac_objext; then 3464128345Stjr ac_cv_sys_file_offset_bits=64; break 3465128345Stjrelse 3466128345Stjr echo "$as_me: failed program was:" >&5 3467170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 3468170256Sdelphij 3469170256Sdelphij 3470128345Stjrfi 3471170256Sdelphij 3472170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3473170256Sdelphij ac_cv_sys_file_offset_bits=unknown 3474128345Stjr break 3475128345Stjrdone 3476128345Stjrfi 3477170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 3478170256Sdelphijecho "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } 3479170256Sdelphijcase $ac_cv_sys_file_offset_bits in #( 3480170256Sdelphij no | unknown) ;; 3481170256Sdelphij *) 3482128345Stjrcat >>confdefs.h <<_ACEOF 3483128345Stjr#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 3484128345Stjr_ACEOF 3485170256Sdelphij;; 3486170256Sdelphijesac 348760786Spsrm -f conftest* 3488170256Sdelphij if test $ac_cv_sys_file_offset_bits = unknown; then 3489170256Sdelphij { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 3490170256Sdelphijecho $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } 3491128345Stjrif test "${ac_cv_sys_large_files+set}" = set; then 3492128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 3493128345Stjrelse 3494128345Stjr while :; do 3495128345Stjr cat >conftest.$ac_ext <<_ACEOF 3496170256Sdelphij/* confdefs.h. */ 3497170256Sdelphij_ACEOF 3498170256Sdelphijcat confdefs.h >>conftest.$ac_ext 3499170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 3500170256Sdelphij/* end confdefs.h. */ 3501128345Stjr#include <sys/types.h> 3502128345Stjr /* Check that off_t can represent 2**63 - 1 correctly. 3503128345Stjr We can't simply define LARGE_OFF_T to be 9223372036854775807, 3504128345Stjr since some C++ compilers masquerading as C compilers 3505128345Stjr incorrectly reject 9223372036854775807. */ 3506128345Stjr#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3507128345Stjr int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3508128345Stjr && LARGE_OFF_T % 2147483647 == 1) 3509128345Stjr ? 1 : -1]; 3510128345Stjrint 3511128345Stjrmain () 3512128345Stjr{ 351360786Sps 3514128345Stjr ; 3515128345Stjr return 0; 3516128345Stjr} 3517128345Stjr_ACEOF 3518128345Stjrrm -f conftest.$ac_objext 3519170256Sdelphijif { (ac_try="$ac_compile" 3520170256Sdelphijcase "(($ac_try" in 3521170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3522170256Sdelphij *) ac_try_echo=$ac_try;; 3523170256Sdelphijesac 3524170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3525170256Sdelphij (eval "$ac_compile") 2>conftest.er1 3526128345Stjr ac_status=$? 3527170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 3528170256Sdelphij rm -f conftest.er1 3529170256Sdelphij cat conftest.err >&5 3530128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 3531170256Sdelphij (exit $ac_status); } && { 3532170256Sdelphij test -z "$ac_c_werror_flag" || 3533170256Sdelphij test ! -s conftest.err 3534170256Sdelphij } && test -s conftest.$ac_objext; then 3535170256Sdelphij ac_cv_sys_large_files=no; break 3536128345Stjrelse 3537128345Stjr echo "$as_me: failed program was:" >&5 3538170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 3539170256Sdelphij 3540170256Sdelphij 354160786Spsfi 3542170256Sdelphij 3543170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3544128345Stjr cat >conftest.$ac_ext <<_ACEOF 3545170256Sdelphij/* confdefs.h. */ 3546170256Sdelphij_ACEOF 3547170256Sdelphijcat confdefs.h >>conftest.$ac_ext 3548170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 3549170256Sdelphij/* end confdefs.h. */ 3550128345Stjr#define _LARGE_FILES 1 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{ 3563128345Stjr 3564128345Stjr ; 3565128345Stjr return 0; 3566128345Stjr} 3567128345Stjr_ACEOF 3568128345Stjrrm -f conftest.$ac_objext 3569170256Sdelphijif { (ac_try="$ac_compile" 3570170256Sdelphijcase "(($ac_try" in 3571170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3572170256Sdelphij *) ac_try_echo=$ac_try;; 3573170256Sdelphijesac 3574170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3575170256Sdelphij (eval "$ac_compile") 2>conftest.er1 3576128345Stjr ac_status=$? 3577170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 3578170256Sdelphij rm -f conftest.er1 3579170256Sdelphij cat conftest.err >&5 3580128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 3581170256Sdelphij (exit $ac_status); } && { 3582170256Sdelphij test -z "$ac_c_werror_flag" || 3583170256Sdelphij test ! -s conftest.err 3584170256Sdelphij } && test -s conftest.$ac_objext; then 3585128345Stjr ac_cv_sys_large_files=1; break 3586128345Stjrelse 3587128345Stjr echo "$as_me: failed program was:" >&5 3588170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 3589170256Sdelphij 3590170256Sdelphij 3591128345Stjrfi 3592170256Sdelphij 3593170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3594170256Sdelphij ac_cv_sys_large_files=unknown 3595128345Stjr break 3596128345Stjrdone 3597128345Stjrfi 3598170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 3599170256Sdelphijecho "${ECHO_T}$ac_cv_sys_large_files" >&6; } 3600170256Sdelphijcase $ac_cv_sys_large_files in #( 3601170256Sdelphij no | unknown) ;; 3602170256Sdelphij *) 3603128345Stjrcat >>confdefs.h <<_ACEOF 3604128345Stjr#define _LARGE_FILES $ac_cv_sys_large_files 3605128345Stjr_ACEOF 3606170256Sdelphij;; 3607170256Sdelphijesac 3608128345Stjrrm -f conftest* 3609170256Sdelphij fi 3610128345Stjrfi 3611128345Stjr 3612128345Stjr 3613128345Stjr# Checks for general libraries. 3614170256Sdelphij{ echo "$as_me:$LINENO: checking for initscr in -lxcurses" >&5 3615170256Sdelphijecho $ECHO_N "checking for initscr in -lxcurses... $ECHO_C" >&6; } 3616128345Stjrif test "${ac_cv_lib_xcurses_initscr+set}" = set; then 3617128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 3618128345Stjrelse 3619128345Stjr ac_check_lib_save_LIBS=$LIBS 3620128345StjrLIBS="-lxcurses $LIBS" 3621128345Stjrcat >conftest.$ac_ext <<_ACEOF 3622170256Sdelphij/* confdefs.h. */ 3623170256Sdelphij_ACEOF 3624170256Sdelphijcat confdefs.h >>conftest.$ac_ext 3625170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 3626170256Sdelphij/* end confdefs.h. */ 3627128345Stjr 3628170256Sdelphij/* Override any GCC internal prototype to avoid an error. 3629170256Sdelphij Use char because int might match the return type of a GCC 3630170256Sdelphij builtin and then its argument prototype would still apply. */ 3631128345Stjr#ifdef __cplusplus 3632128345Stjrextern "C" 3633128345Stjr#endif 3634128345Stjrchar initscr (); 3635128345Stjrint 3636128345Stjrmain () 3637128345Stjr{ 3638170256Sdelphijreturn initscr (); 3639128345Stjr ; 3640128345Stjr return 0; 3641128345Stjr} 3642128345Stjr_ACEOF 3643128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 3644170256Sdelphijif { (ac_try="$ac_link" 3645170256Sdelphijcase "(($ac_try" in 3646170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3647170256Sdelphij *) ac_try_echo=$ac_try;; 3648170256Sdelphijesac 3649170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3650170256Sdelphij (eval "$ac_link") 2>conftest.er1 3651128345Stjr ac_status=$? 3652170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 3653170256Sdelphij rm -f conftest.er1 3654170256Sdelphij cat conftest.err >&5 3655128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 3656170256Sdelphij (exit $ac_status); } && { 3657170256Sdelphij test -z "$ac_c_werror_flag" || 3658170256Sdelphij test ! -s conftest.err 3659170256Sdelphij } && test -s conftest$ac_exeext && 3660170256Sdelphij $as_test_x conftest$ac_exeext; then 3661128345Stjr ac_cv_lib_xcurses_initscr=yes 3662128345Stjrelse 3663128345Stjr echo "$as_me: failed program was:" >&5 3664170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 3665170256Sdelphij 3666170256Sdelphij ac_cv_lib_xcurses_initscr=no 3667128345Stjrfi 3668170256Sdelphij 3669170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3670170256Sdelphij conftest$ac_exeext conftest.$ac_ext 3671128345StjrLIBS=$ac_check_lib_save_LIBS 3672128345Stjrfi 3673170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_lib_xcurses_initscr" >&5 3674170256Sdelphijecho "${ECHO_T}$ac_cv_lib_xcurses_initscr" >&6; } 3675128345Stjrif test $ac_cv_lib_xcurses_initscr = yes; then 367660786Sps have_xcurses=yes 367760786Spselse 3678128345Stjr have_xcurses=no 367960786Spsfi 368060786Sps 3681170256Sdelphij{ echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5 3682170256Sdelphijecho $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6; } 3683161475Sdelphijif test "${ac_cv_lib_ncursesw_initscr+set}" = set; then 3684161475Sdelphij echo $ECHO_N "(cached) $ECHO_C" >&6 3685161475Sdelphijelse 3686161475Sdelphij ac_check_lib_save_LIBS=$LIBS 3687161475SdelphijLIBS="-lncursesw $LIBS" 3688161475Sdelphijcat >conftest.$ac_ext <<_ACEOF 3689170256Sdelphij/* confdefs.h. */ 3690170256Sdelphij_ACEOF 3691170256Sdelphijcat confdefs.h >>conftest.$ac_ext 3692170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 3693170256Sdelphij/* end confdefs.h. */ 3694161475Sdelphij 3695170256Sdelphij/* Override any GCC internal prototype to avoid an error. 3696170256Sdelphij Use char because int might match the return type of a GCC 3697170256Sdelphij builtin and then its argument prototype would still apply. */ 3698161475Sdelphij#ifdef __cplusplus 3699161475Sdelphijextern "C" 3700161475Sdelphij#endif 3701161475Sdelphijchar initscr (); 3702161475Sdelphijint 3703161475Sdelphijmain () 3704161475Sdelphij{ 3705170256Sdelphijreturn initscr (); 3706161475Sdelphij ; 3707161475Sdelphij return 0; 3708161475Sdelphij} 3709161475Sdelphij_ACEOF 3710161475Sdelphijrm -f conftest.$ac_objext conftest$ac_exeext 3711170256Sdelphijif { (ac_try="$ac_link" 3712170256Sdelphijcase "(($ac_try" in 3713170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3714170256Sdelphij *) ac_try_echo=$ac_try;; 3715170256Sdelphijesac 3716170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3717170256Sdelphij (eval "$ac_link") 2>conftest.er1 3718161475Sdelphij ac_status=$? 3719170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 3720170256Sdelphij rm -f conftest.er1 3721170256Sdelphij cat conftest.err >&5 3722161475Sdelphij echo "$as_me:$LINENO: \$? = $ac_status" >&5 3723170256Sdelphij (exit $ac_status); } && { 3724170256Sdelphij test -z "$ac_c_werror_flag" || 3725170256Sdelphij test ! -s conftest.err 3726170256Sdelphij } && test -s conftest$ac_exeext && 3727170256Sdelphij $as_test_x conftest$ac_exeext; then 3728161475Sdelphij ac_cv_lib_ncursesw_initscr=yes 3729161475Sdelphijelse 3730161475Sdelphij echo "$as_me: failed program was:" >&5 3731170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 3732170256Sdelphij 3733170256Sdelphij ac_cv_lib_ncursesw_initscr=no 3734161475Sdelphijfi 3735170256Sdelphij 3736170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3737170256Sdelphij conftest$ac_exeext conftest.$ac_ext 3738161475SdelphijLIBS=$ac_check_lib_save_LIBS 3739161475Sdelphijfi 3740170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5 3741170256Sdelphijecho "${ECHO_T}$ac_cv_lib_ncursesw_initscr" >&6; } 3742161475Sdelphijif test $ac_cv_lib_ncursesw_initscr = yes; then 3743161475Sdelphij have_ncursesw=yes 3744161475Sdelphijelse 3745161475Sdelphij have_ncursesw=no 3746161475Sdelphijfi 3747161475Sdelphij 3748170256Sdelphij{ echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5 3749170256Sdelphijecho $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; } 3750128345Stjrif test "${ac_cv_lib_ncurses_initscr+set}" = set; then 3751128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 375260786Spselse 3753128345Stjr ac_check_lib_save_LIBS=$LIBS 375460786SpsLIBS="-lncurses $LIBS" 3755128345Stjrcat >conftest.$ac_ext <<_ACEOF 3756170256Sdelphij/* confdefs.h. */ 3757170256Sdelphij_ACEOF 3758170256Sdelphijcat confdefs.h >>conftest.$ac_ext 3759170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 3760170256Sdelphij/* end confdefs.h. */ 3761128345Stjr 3762170256Sdelphij/* Override any GCC internal prototype to avoid an error. 3763170256Sdelphij Use char because int might match the return type of a GCC 3764170256Sdelphij builtin and then its argument prototype would still apply. */ 3765128345Stjr#ifdef __cplusplus 3766128345Stjrextern "C" 3767128345Stjr#endif 3768128345Stjrchar initscr (); 3769128345Stjrint 3770128345Stjrmain () 3771128345Stjr{ 3772170256Sdelphijreturn initscr (); 3773128345Stjr ; 3774128345Stjr return 0; 3775128345Stjr} 3776128345Stjr_ACEOF 3777128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 3778170256Sdelphijif { (ac_try="$ac_link" 3779170256Sdelphijcase "(($ac_try" in 3780170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3781170256Sdelphij *) ac_try_echo=$ac_try;; 3782170256Sdelphijesac 3783170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3784170256Sdelphij (eval "$ac_link") 2>conftest.er1 3785128345Stjr ac_status=$? 3786170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 3787170256Sdelphij rm -f conftest.er1 3788170256Sdelphij cat conftest.err >&5 3789128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 3790170256Sdelphij (exit $ac_status); } && { 3791170256Sdelphij test -z "$ac_c_werror_flag" || 3792170256Sdelphij test ! -s conftest.err 3793170256Sdelphij } && test -s conftest$ac_exeext && 3794170256Sdelphij $as_test_x conftest$ac_exeext; then 3795128345Stjr ac_cv_lib_ncurses_initscr=yes 379660786Spselse 3797128345Stjr echo "$as_me: failed program was:" >&5 3798170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 3799170256Sdelphij 3800170256Sdelphij ac_cv_lib_ncurses_initscr=no 380160786Spsfi 3802170256Sdelphij 3803170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3804170256Sdelphij conftest$ac_exeext conftest.$ac_ext 3805128345StjrLIBS=$ac_check_lib_save_LIBS 380660786Spsfi 3807170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5 3808170256Sdelphijecho "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; } 3809128345Stjrif test $ac_cv_lib_ncurses_initscr = yes; then 381060786Sps have_ncurses=yes 381160786Spselse 3812128345Stjr have_ncurses=no 381360786Spsfi 381460786Sps 3815170256Sdelphij{ echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5 3816170256Sdelphijecho $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; } 3817128345Stjrif test "${ac_cv_lib_curses_initscr+set}" = set; then 3818128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 381960786Spselse 3820128345Stjr ac_check_lib_save_LIBS=$LIBS 382160786SpsLIBS="-lcurses $LIBS" 3822128345Stjrcat >conftest.$ac_ext <<_ACEOF 3823170256Sdelphij/* confdefs.h. */ 3824170256Sdelphij_ACEOF 3825170256Sdelphijcat confdefs.h >>conftest.$ac_ext 3826170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 3827170256Sdelphij/* end confdefs.h. */ 3828128345Stjr 3829170256Sdelphij/* Override any GCC internal prototype to avoid an error. 3830170256Sdelphij Use char because int might match the return type of a GCC 3831170256Sdelphij builtin and then its argument prototype would still apply. */ 3832128345Stjr#ifdef __cplusplus 3833128345Stjrextern "C" 3834128345Stjr#endif 3835128345Stjrchar initscr (); 3836128345Stjrint 3837128345Stjrmain () 3838128345Stjr{ 3839170256Sdelphijreturn initscr (); 3840128345Stjr ; 3841128345Stjr return 0; 3842128345Stjr} 3843128345Stjr_ACEOF 3844128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 3845170256Sdelphijif { (ac_try="$ac_link" 3846170256Sdelphijcase "(($ac_try" in 3847170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3848170256Sdelphij *) ac_try_echo=$ac_try;; 3849170256Sdelphijesac 3850170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3851170256Sdelphij (eval "$ac_link") 2>conftest.er1 3852128345Stjr ac_status=$? 3853170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 3854170256Sdelphij rm -f conftest.er1 3855170256Sdelphij cat conftest.err >&5 3856128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 3857170256Sdelphij (exit $ac_status); } && { 3858170256Sdelphij test -z "$ac_c_werror_flag" || 3859170256Sdelphij test ! -s conftest.err 3860170256Sdelphij } && test -s conftest$ac_exeext && 3861170256Sdelphij $as_test_x conftest$ac_exeext; then 3862128345Stjr ac_cv_lib_curses_initscr=yes 386360786Spselse 3864128345Stjr echo "$as_me: failed program was:" >&5 3865170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 3866170256Sdelphij 3867170256Sdelphij ac_cv_lib_curses_initscr=no 386860786Spsfi 3869170256Sdelphij 3870170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3871170256Sdelphij conftest$ac_exeext conftest.$ac_ext 3872128345StjrLIBS=$ac_check_lib_save_LIBS 387360786Spsfi 3874170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5 3875170256Sdelphijecho "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; } 3876128345Stjrif test $ac_cv_lib_curses_initscr = yes; then 387760786Sps have_curses=yes 387860786Spselse 3879128345Stjr have_curses=no 388060786Spsfi 388160786Sps 3882170256Sdelphij{ echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 3883170256Sdelphijecho $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; } 3884128345Stjrif test "${ac_cv_lib_termcap_tgetent+set}" = set; then 3885128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 388660786Spselse 3887128345Stjr ac_check_lib_save_LIBS=$LIBS 388860786SpsLIBS="-ltermcap $LIBS" 3889128345Stjrcat >conftest.$ac_ext <<_ACEOF 3890170256Sdelphij/* confdefs.h. */ 3891170256Sdelphij_ACEOF 3892170256Sdelphijcat confdefs.h >>conftest.$ac_ext 3893170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 3894170256Sdelphij/* end confdefs.h. */ 3895128345Stjr 3896170256Sdelphij/* Override any GCC internal prototype to avoid an error. 3897170256Sdelphij Use char because int might match the return type of a GCC 3898170256Sdelphij builtin and then its argument prototype would still apply. */ 3899128345Stjr#ifdef __cplusplus 3900128345Stjrextern "C" 3901128345Stjr#endif 3902128345Stjrchar tgetent (); 3903128345Stjrint 3904128345Stjrmain () 3905128345Stjr{ 3906170256Sdelphijreturn tgetent (); 3907128345Stjr ; 3908128345Stjr return 0; 3909128345Stjr} 3910128345Stjr_ACEOF 3911128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 3912170256Sdelphijif { (ac_try="$ac_link" 3913170256Sdelphijcase "(($ac_try" in 3914170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3915170256Sdelphij *) ac_try_echo=$ac_try;; 3916170256Sdelphijesac 3917170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3918170256Sdelphij (eval "$ac_link") 2>conftest.er1 3919128345Stjr ac_status=$? 3920170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 3921170256Sdelphij rm -f conftest.er1 3922170256Sdelphij cat conftest.err >&5 3923128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 3924170256Sdelphij (exit $ac_status); } && { 3925170256Sdelphij test -z "$ac_c_werror_flag" || 3926170256Sdelphij test ! -s conftest.err 3927170256Sdelphij } && test -s conftest$ac_exeext && 3928170256Sdelphij $as_test_x conftest$ac_exeext; then 3929128345Stjr ac_cv_lib_termcap_tgetent=yes 393060786Spselse 3931128345Stjr echo "$as_me: failed program was:" >&5 3932170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 3933170256Sdelphij 3934170256Sdelphij ac_cv_lib_termcap_tgetent=no 393560786Spsfi 3936170256Sdelphij 3937170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3938170256Sdelphij conftest$ac_exeext conftest.$ac_ext 3939128345StjrLIBS=$ac_check_lib_save_LIBS 394060786Spsfi 3941170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 3942170256Sdelphijecho "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; } 3943128345Stjrif test $ac_cv_lib_termcap_tgetent = yes; then 394460786Sps have_termcap=yes 394560786Spselse 3946128345Stjr have_termcap=no 394760786Spsfi 394860786Sps 3949170256Sdelphij{ echo "$as_me:$LINENO: checking for tgetent in -ltermlib" >&5 3950170256Sdelphijecho $ECHO_N "checking for tgetent in -ltermlib... $ECHO_C" >&6; } 3951128345Stjrif test "${ac_cv_lib_termlib_tgetent+set}" = set; then 3952128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 395360786Spselse 3954128345Stjr ac_check_lib_save_LIBS=$LIBS 395560786SpsLIBS="-ltermlib $LIBS" 3956128345Stjrcat >conftest.$ac_ext <<_ACEOF 3957170256Sdelphij/* confdefs.h. */ 3958170256Sdelphij_ACEOF 3959170256Sdelphijcat confdefs.h >>conftest.$ac_ext 3960170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 3961170256Sdelphij/* end confdefs.h. */ 3962128345Stjr 3963170256Sdelphij/* Override any GCC internal prototype to avoid an error. 3964170256Sdelphij Use char because int might match the return type of a GCC 3965170256Sdelphij builtin and then its argument prototype would still apply. */ 3966128345Stjr#ifdef __cplusplus 3967128345Stjrextern "C" 3968128345Stjr#endif 3969128345Stjrchar tgetent (); 3970128345Stjrint 3971128345Stjrmain () 3972128345Stjr{ 3973170256Sdelphijreturn tgetent (); 3974128345Stjr ; 3975128345Stjr return 0; 3976128345Stjr} 3977128345Stjr_ACEOF 3978128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 3979170256Sdelphijif { (ac_try="$ac_link" 3980170256Sdelphijcase "(($ac_try" in 3981170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3982170256Sdelphij *) ac_try_echo=$ac_try;; 3983170256Sdelphijesac 3984170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3985170256Sdelphij (eval "$ac_link") 2>conftest.er1 3986128345Stjr ac_status=$? 3987170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 3988170256Sdelphij rm -f conftest.er1 3989170256Sdelphij cat conftest.err >&5 3990128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 3991170256Sdelphij (exit $ac_status); } && { 3992170256Sdelphij test -z "$ac_c_werror_flag" || 3993170256Sdelphij test ! -s conftest.err 3994170256Sdelphij } && test -s conftest$ac_exeext && 3995170256Sdelphij $as_test_x conftest$ac_exeext; then 3996128345Stjr ac_cv_lib_termlib_tgetent=yes 399760786Spselse 3998128345Stjr echo "$as_me: failed program was:" >&5 3999170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 4000170256Sdelphij 4001170256Sdelphij ac_cv_lib_termlib_tgetent=no 400260786Spsfi 4003170256Sdelphij 4004170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4005170256Sdelphij conftest$ac_exeext conftest.$ac_ext 4006128345StjrLIBS=$ac_check_lib_save_LIBS 400760786Spsfi 4008170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_tgetent" >&5 4009170256Sdelphijecho "${ECHO_T}$ac_cv_lib_termlib_tgetent" >&6; } 4010128345Stjrif test $ac_cv_lib_termlib_tgetent = yes; then 401160786Sps have_termlib=yes 401260786Spselse 4013128345Stjr have_termlib=no 401460786Spsfi 401560786Sps 4016128345Stjr# Regular expressions (regcmp) are in -lgen on Solaris 2, 4017128345Stjr# and in -lintl on SCO Unix. 4018128345Stjr 4019170256Sdelphij{ echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5 4020170256Sdelphijecho $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6; } 4021128345Stjrif test "${ac_cv_lib_gen_regcmp+set}" = set; then 4022128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 402360786Spselse 4024128345Stjr ac_check_lib_save_LIBS=$LIBS 402560786SpsLIBS="-lgen $LIBS" 4026128345Stjrcat >conftest.$ac_ext <<_ACEOF 4027170256Sdelphij/* confdefs.h. */ 4028170256Sdelphij_ACEOF 4029170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4030170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4031170256Sdelphij/* end confdefs.h. */ 4032128345Stjr 4033170256Sdelphij/* Override any GCC internal prototype to avoid an error. 4034170256Sdelphij Use char because int might match the return type of a GCC 4035170256Sdelphij builtin and then its argument prototype would still apply. */ 4036128345Stjr#ifdef __cplusplus 4037128345Stjrextern "C" 4038128345Stjr#endif 4039128345Stjrchar regcmp (); 4040128345Stjrint 4041128345Stjrmain () 4042128345Stjr{ 4043170256Sdelphijreturn regcmp (); 4044128345Stjr ; 4045128345Stjr return 0; 4046128345Stjr} 4047128345Stjr_ACEOF 4048128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 4049170256Sdelphijif { (ac_try="$ac_link" 4050170256Sdelphijcase "(($ac_try" in 4051170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4052170256Sdelphij *) ac_try_echo=$ac_try;; 4053170256Sdelphijesac 4054170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4055170256Sdelphij (eval "$ac_link") 2>conftest.er1 4056128345Stjr ac_status=$? 4057170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 4058170256Sdelphij rm -f conftest.er1 4059170256Sdelphij cat conftest.err >&5 4060128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 4061170256Sdelphij (exit $ac_status); } && { 4062170256Sdelphij test -z "$ac_c_werror_flag" || 4063170256Sdelphij test ! -s conftest.err 4064170256Sdelphij } && test -s conftest$ac_exeext && 4065170256Sdelphij $as_test_x conftest$ac_exeext; then 4066128345Stjr ac_cv_lib_gen_regcmp=yes 406760786Spselse 4068128345Stjr echo "$as_me: failed program was:" >&5 4069170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 4070170256Sdelphij 4071170256Sdelphij ac_cv_lib_gen_regcmp=no 407260786Spsfi 4073170256Sdelphij 4074170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4075170256Sdelphij conftest$ac_exeext conftest.$ac_ext 4076128345StjrLIBS=$ac_check_lib_save_LIBS 407760786Spsfi 4078170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5 4079170256Sdelphijecho "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6; } 4080128345Stjrif test $ac_cv_lib_gen_regcmp = yes; then 4081128345Stjr cat >>confdefs.h <<_ACEOF 4082128345Stjr#define HAVE_LIBGEN 1 4083128345Stjr_ACEOF 408460786Sps 408560786Sps LIBS="-lgen $LIBS" 408660786Sps 408760786Spsfi 408860786Sps 4089128345Stjr 4090170256Sdelphij{ echo "$as_me:$LINENO: checking for regcmp in -lintl" >&5 4091170256Sdelphijecho $ECHO_N "checking for regcmp in -lintl... $ECHO_C" >&6; } 4092128345Stjrif test "${ac_cv_lib_intl_regcmp+set}" = set; then 4093128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 409460786Spselse 4095128345Stjr ac_check_lib_save_LIBS=$LIBS 409660786SpsLIBS="-lintl $LIBS" 4097128345Stjrcat >conftest.$ac_ext <<_ACEOF 4098170256Sdelphij/* confdefs.h. */ 4099170256Sdelphij_ACEOF 4100170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4101170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4102170256Sdelphij/* end confdefs.h. */ 4103128345Stjr 4104170256Sdelphij/* Override any GCC internal prototype to avoid an error. 4105170256Sdelphij Use char because int might match the return type of a GCC 4106170256Sdelphij builtin and then its argument prototype would still apply. */ 4107128345Stjr#ifdef __cplusplus 4108128345Stjrextern "C" 4109128345Stjr#endif 4110128345Stjrchar regcmp (); 4111128345Stjrint 4112128345Stjrmain () 4113128345Stjr{ 4114170256Sdelphijreturn regcmp (); 4115128345Stjr ; 4116128345Stjr return 0; 4117128345Stjr} 4118128345Stjr_ACEOF 4119128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 4120170256Sdelphijif { (ac_try="$ac_link" 4121170256Sdelphijcase "(($ac_try" in 4122170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4123170256Sdelphij *) ac_try_echo=$ac_try;; 4124170256Sdelphijesac 4125170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4126170256Sdelphij (eval "$ac_link") 2>conftest.er1 4127128345Stjr ac_status=$? 4128170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 4129170256Sdelphij rm -f conftest.er1 4130170256Sdelphij cat conftest.err >&5 4131128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 4132170256Sdelphij (exit $ac_status); } && { 4133170256Sdelphij test -z "$ac_c_werror_flag" || 4134170256Sdelphij test ! -s conftest.err 4135170256Sdelphij } && test -s conftest$ac_exeext && 4136170256Sdelphij $as_test_x conftest$ac_exeext; then 4137128345Stjr ac_cv_lib_intl_regcmp=yes 413860786Spselse 4139128345Stjr echo "$as_me: failed program was:" >&5 4140170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 4141170256Sdelphij 4142170256Sdelphij ac_cv_lib_intl_regcmp=no 414360786Spsfi 4144170256Sdelphij 4145170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4146170256Sdelphij conftest$ac_exeext conftest.$ac_ext 4147128345StjrLIBS=$ac_check_lib_save_LIBS 414860786Spsfi 4149170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_regcmp" >&5 4150170256Sdelphijecho "${ECHO_T}$ac_cv_lib_intl_regcmp" >&6; } 4151128345Stjrif test $ac_cv_lib_intl_regcmp = yes; then 4152128345Stjr cat >>confdefs.h <<_ACEOF 4153128345Stjr#define HAVE_LIBINTL 1 4154128345Stjr_ACEOF 415560786Sps 415660786Sps LIBS="-lintl $LIBS" 415760786Sps 415860786Spsfi 415960786Sps 4160128345Stjr 4161170256Sdelphij{ echo "$as_me:$LINENO: checking for regcmp in -lPW" >&5 4162170256Sdelphijecho $ECHO_N "checking for regcmp in -lPW... $ECHO_C" >&6; } 4163128345Stjrif test "${ac_cv_lib_PW_regcmp+set}" = set; then 4164128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 416560786Spselse 4166128345Stjr ac_check_lib_save_LIBS=$LIBS 416760786SpsLIBS="-lPW $LIBS" 4168128345Stjrcat >conftest.$ac_ext <<_ACEOF 4169170256Sdelphij/* confdefs.h. */ 4170170256Sdelphij_ACEOF 4171170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4172170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4173170256Sdelphij/* end confdefs.h. */ 4174128345Stjr 4175170256Sdelphij/* Override any GCC internal prototype to avoid an error. 4176170256Sdelphij Use char because int might match the return type of a GCC 4177170256Sdelphij builtin and then its argument prototype would still apply. */ 4178128345Stjr#ifdef __cplusplus 4179128345Stjrextern "C" 4180128345Stjr#endif 4181128345Stjrchar regcmp (); 4182128345Stjrint 4183128345Stjrmain () 4184128345Stjr{ 4185170256Sdelphijreturn regcmp (); 4186128345Stjr ; 4187128345Stjr return 0; 4188128345Stjr} 4189128345Stjr_ACEOF 4190128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 4191170256Sdelphijif { (ac_try="$ac_link" 4192170256Sdelphijcase "(($ac_try" in 4193170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4194170256Sdelphij *) ac_try_echo=$ac_try;; 4195170256Sdelphijesac 4196170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4197170256Sdelphij (eval "$ac_link") 2>conftest.er1 4198128345Stjr ac_status=$? 4199170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 4200170256Sdelphij rm -f conftest.er1 4201170256Sdelphij cat conftest.err >&5 4202128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 4203170256Sdelphij (exit $ac_status); } && { 4204170256Sdelphij test -z "$ac_c_werror_flag" || 4205170256Sdelphij test ! -s conftest.err 4206170256Sdelphij } && test -s conftest$ac_exeext && 4207170256Sdelphij $as_test_x conftest$ac_exeext; then 4208128345Stjr ac_cv_lib_PW_regcmp=yes 420960786Spselse 4210128345Stjr echo "$as_me: failed program was:" >&5 4211170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 4212170256Sdelphij 4213170256Sdelphij ac_cv_lib_PW_regcmp=no 421460786Spsfi 4215170256Sdelphij 4216170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4217170256Sdelphij conftest$ac_exeext conftest.$ac_ext 4218128345StjrLIBS=$ac_check_lib_save_LIBS 421960786Spsfi 4220170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_lib_PW_regcmp" >&5 4221170256Sdelphijecho "${ECHO_T}$ac_cv_lib_PW_regcmp" >&6; } 4222128345Stjrif test $ac_cv_lib_PW_regcmp = yes; then 4223128345Stjr cat >>confdefs.h <<_ACEOF 4224128345Stjr#define HAVE_LIBPW 1 4225128345Stjr_ACEOF 422660786Sps 422760786Sps LIBS="-lPW $LIBS" 422860786Sps 422960786Spsfi 423060786Sps 423160786Sps 4232128345Stjr# Checks for terminal libraries 4233170256Sdelphij{ echo "$as_me:$LINENO: checking for working terminal libraries" >&5 4234170256Sdelphijecho $ECHO_N "checking for working terminal libraries... $ECHO_C" >&6; } 423560786SpsTERMLIBS= 423660786Sps 4237128345Stjr# Check for systems where curses is broken. 423860786Spscurses_broken=0 423960786Spsif test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then 424060786Spsif test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then 424160786Sps curses_broken=1 424260786Spsfi 424389019Spsif test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then 424489019Sps curses_broken=1 424560786Spsfi 424689019Spsfi 424760786Sps 424860786Spsif test $curses_broken = 0; then 4249128345Stjr# -- Try xcurses. 425060786Spsif test "x$TERMLIBS" = x; then 425160786Sps if test $have_xcurses = yes; then 425260786Sps TERMLIBS="-lxcurses" 425360786Sps SAVE_LIBS=$LIBS 425460786Sps LIBS="$LIBS $TERMLIBS" 4255128345Stjr cat >conftest.$ac_ext <<_ACEOF 4256170256Sdelphij/* confdefs.h. */ 4257170256Sdelphij_ACEOF 4258170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4259170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4260170256Sdelphij/* end confdefs.h. */ 426160786Sps 4262128345Stjrint 4263128345Stjrmain () 4264128345Stjr{ 426560786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 4266128345Stjr ; 4267128345Stjr return 0; 4268128345Stjr} 4269128345Stjr_ACEOF 4270128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 4271170256Sdelphijif { (ac_try="$ac_link" 4272170256Sdelphijcase "(($ac_try" in 4273170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4274170256Sdelphij *) ac_try_echo=$ac_try;; 4275170256Sdelphijesac 4276170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4277170256Sdelphij (eval "$ac_link") 2>conftest.er1 4278128345Stjr ac_status=$? 4279170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 4280170256Sdelphij rm -f conftest.er1 4281170256Sdelphij cat conftest.err >&5 4282128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 4283170256Sdelphij (exit $ac_status); } && { 4284170256Sdelphij test -z "$ac_c_werror_flag" || 4285170256Sdelphij test ! -s conftest.err 4286170256Sdelphij } && test -s conftest$ac_exeext && 4287170256Sdelphij $as_test_x conftest$ac_exeext; then 428860786Sps termok=yes 428960786Spselse 4290128345Stjr echo "$as_me: failed program was:" >&5 4291170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 4292170256Sdelphij 4293170256Sdelphij termok=no 429460786Spsfi 4295170256Sdelphij 4296170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4297170256Sdelphij conftest$ac_exeext conftest.$ac_ext 429860786Sps LIBS=$SAVE_LIBS 429960786Sps if test $termok = no; then TERMLIBS=""; fi 430060786Sps fi 430160786Spsfi 430260786Sps 4303170256Sdelphij# -- Try ncursesw. 4304161475Sdelphijif test "x$TERMLIBS" = x; then 4305161475Sdelphij if test $have_ncursesw = yes; then 4306161475Sdelphij TERMLIBS="-lncursesw" 4307161475Sdelphij SAVE_LIBS=$LIBS 4308161475Sdelphij LIBS="$LIBS $TERMLIBS" 4309161475Sdelphij cat >conftest.$ac_ext <<_ACEOF 4310170256Sdelphij/* confdefs.h. */ 4311170256Sdelphij_ACEOF 4312170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4313170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4314170256Sdelphij/* end confdefs.h. */ 4315161475Sdelphij 4316161475Sdelphijint 4317161475Sdelphijmain () 4318161475Sdelphij{ 4319161475Sdelphijtgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 4320161475Sdelphij ; 4321161475Sdelphij return 0; 4322161475Sdelphij} 4323161475Sdelphij_ACEOF 4324161475Sdelphijrm -f conftest.$ac_objext conftest$ac_exeext 4325170256Sdelphijif { (ac_try="$ac_link" 4326170256Sdelphijcase "(($ac_try" in 4327170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4328170256Sdelphij *) ac_try_echo=$ac_try;; 4329170256Sdelphijesac 4330170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4331170256Sdelphij (eval "$ac_link") 2>conftest.er1 4332161475Sdelphij ac_status=$? 4333170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 4334170256Sdelphij rm -f conftest.er1 4335170256Sdelphij cat conftest.err >&5 4336161475Sdelphij echo "$as_me:$LINENO: \$? = $ac_status" >&5 4337170256Sdelphij (exit $ac_status); } && { 4338170256Sdelphij test -z "$ac_c_werror_flag" || 4339170256Sdelphij test ! -s conftest.err 4340170256Sdelphij } && test -s conftest$ac_exeext && 4341170256Sdelphij $as_test_x conftest$ac_exeext; then 4342161475Sdelphij termok=yes 4343161475Sdelphijelse 4344161475Sdelphij echo "$as_me: failed program was:" >&5 4345170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 4346170256Sdelphij 4347170256Sdelphij termok=no 4348161475Sdelphijfi 4349170256Sdelphij 4350170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4351170256Sdelphij conftest$ac_exeext conftest.$ac_ext 4352161475Sdelphij LIBS=$SAVE_LIBS 4353161475Sdelphij if test $termok = no; then TERMLIBS=""; fi 4354161475Sdelphij fi 4355161475Sdelphijfi 4356161475Sdelphij 4357128345Stjr# -- Try ncurses. 435860786Spsif test "x$TERMLIBS" = x; then 435960786Sps if test $have_ncurses = yes; then 436060786Sps TERMLIBS="-lncurses" 436160786Sps SAVE_LIBS=$LIBS 436260786Sps LIBS="$LIBS $TERMLIBS" 4363128345Stjr cat >conftest.$ac_ext <<_ACEOF 4364170256Sdelphij/* confdefs.h. */ 4365170256Sdelphij_ACEOF 4366170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4367170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4368170256Sdelphij/* end confdefs.h. */ 436960786Sps 4370128345Stjrint 4371128345Stjrmain () 4372128345Stjr{ 437360786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 4374128345Stjr ; 4375128345Stjr return 0; 4376128345Stjr} 4377128345Stjr_ACEOF 4378128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 4379170256Sdelphijif { (ac_try="$ac_link" 4380170256Sdelphijcase "(($ac_try" in 4381170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4382170256Sdelphij *) ac_try_echo=$ac_try;; 4383170256Sdelphijesac 4384170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4385170256Sdelphij (eval "$ac_link") 2>conftest.er1 4386128345Stjr ac_status=$? 4387170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 4388170256Sdelphij rm -f conftest.er1 4389170256Sdelphij cat conftest.err >&5 4390128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 4391170256Sdelphij (exit $ac_status); } && { 4392170256Sdelphij test -z "$ac_c_werror_flag" || 4393170256Sdelphij test ! -s conftest.err 4394170256Sdelphij } && test -s conftest$ac_exeext && 4395170256Sdelphij $as_test_x conftest$ac_exeext; then 439660786Sps termok=yes 439760786Spselse 4398128345Stjr echo "$as_me: failed program was:" >&5 4399170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 4400170256Sdelphij 4401170256Sdelphij termok=no 440260786Spsfi 4403170256Sdelphij 4404170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4405170256Sdelphij conftest$ac_exeext conftest.$ac_ext 440660786Sps LIBS=$SAVE_LIBS 440760786Sps if test $termok = no; then TERMLIBS=""; fi 440860786Sps fi 440960786Spsfi 441060786Sps 4411128345Stjr# -- Try curses. 441260786Spsif test "x$TERMLIBS" = x; then 441360786Sps if test $have_curses = yes; then 441460786Sps TERMLIBS="-lcurses" 441560786Sps SAVE_LIBS=$LIBS 441660786Sps LIBS="$LIBS $TERMLIBS" 4417128345Stjr cat >conftest.$ac_ext <<_ACEOF 4418170256Sdelphij/* confdefs.h. */ 4419170256Sdelphij_ACEOF 4420170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4421170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4422170256Sdelphij/* end confdefs.h. */ 442360786Sps 4424128345Stjrint 4425128345Stjrmain () 4426128345Stjr{ 442760786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 4428128345Stjr ; 4429128345Stjr return 0; 4430128345Stjr} 4431128345Stjr_ACEOF 4432128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 4433170256Sdelphijif { (ac_try="$ac_link" 4434170256Sdelphijcase "(($ac_try" in 4435170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4436170256Sdelphij *) ac_try_echo=$ac_try;; 4437170256Sdelphijesac 4438170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4439170256Sdelphij (eval "$ac_link") 2>conftest.er1 4440128345Stjr ac_status=$? 4441170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 4442170256Sdelphij rm -f conftest.er1 4443170256Sdelphij cat conftest.err >&5 4444128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 4445170256Sdelphij (exit $ac_status); } && { 4446170256Sdelphij test -z "$ac_c_werror_flag" || 4447170256Sdelphij test ! -s conftest.err 4448170256Sdelphij } && test -s conftest$ac_exeext && 4449170256Sdelphij $as_test_x conftest$ac_exeext; then 445060786Sps termok=yes 445160786Spselse 4452128345Stjr echo "$as_me: failed program was:" >&5 4453170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 4454170256Sdelphij 4455170256Sdelphij termok=no 445660786Spsfi 4457170256Sdelphij 4458170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4459170256Sdelphij conftest$ac_exeext conftest.$ac_ext 446060786Sps LIBS=$SAVE_LIBS 446160786Sps if test $termok = no; then TERMLIBS=""; fi 446260786Sps fi 446360786Spsfi 446460786Sps 4465128345Stjr# -- Try curses & termcap. 446660786Spsif test "x$TERMLIBS" = x; then 446760786Sps if test $have_curses = yes; then 446860786Sps if test $have_termcap = yes; then 446960786Sps TERMLIBS="-lcurses -ltermcap" 447060786Sps SAVE_LIBS=$LIBS 447160786Sps LIBS="$LIBS $TERMLIBS" 4472128345Stjr cat >conftest.$ac_ext <<_ACEOF 4473170256Sdelphij/* confdefs.h. */ 4474170256Sdelphij_ACEOF 4475170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4476170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4477170256Sdelphij/* end confdefs.h. */ 447860786Sps 4479128345Stjrint 4480128345Stjrmain () 4481128345Stjr{ 448260786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 4483128345Stjr ; 4484128345Stjr return 0; 4485128345Stjr} 4486128345Stjr_ACEOF 4487128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 4488170256Sdelphijif { (ac_try="$ac_link" 4489170256Sdelphijcase "(($ac_try" in 4490170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4491170256Sdelphij *) ac_try_echo=$ac_try;; 4492170256Sdelphijesac 4493170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4494170256Sdelphij (eval "$ac_link") 2>conftest.er1 4495128345Stjr ac_status=$? 4496170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 4497170256Sdelphij rm -f conftest.er1 4498170256Sdelphij cat conftest.err >&5 4499128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 4500170256Sdelphij (exit $ac_status); } && { 4501170256Sdelphij test -z "$ac_c_werror_flag" || 4502170256Sdelphij test ! -s conftest.err 4503170256Sdelphij } && test -s conftest$ac_exeext && 4504170256Sdelphij $as_test_x conftest$ac_exeext; then 450560786Sps termok=yes 450660786Spselse 4507128345Stjr echo "$as_me: failed program was:" >&5 4508170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 4509170256Sdelphij 4510170256Sdelphij termok=no 451160786Spsfi 4512170256Sdelphij 4513170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4514170256Sdelphij conftest$ac_exeext conftest.$ac_ext 451560786Sps LIBS=$SAVE_LIBS 451660786Sps if test $termok = no; then TERMLIBS=""; fi 451760786Sps fi 451860786Sps fi 451960786Spsfi 452060786Spsfi 452160786Sps 4522128345Stjr# -- Try termcap. 452360786Spsif test "x$TERMLIBS" = x; then 452460786Sps if test $have_termcap = yes; then 452560786Sps TERMLIBS="-ltermcap" 452660786Sps SAVE_LIBS=$LIBS 452760786Sps LIBS="$LIBS $TERMLIBS" 4528128345Stjr cat >conftest.$ac_ext <<_ACEOF 4529170256Sdelphij/* confdefs.h. */ 4530170256Sdelphij_ACEOF 4531170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4532170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4533170256Sdelphij/* end confdefs.h. */ 453460786Sps 4535128345Stjrint 4536128345Stjrmain () 4537128345Stjr{ 453860786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 4539128345Stjr ; 4540128345Stjr return 0; 4541128345Stjr} 4542128345Stjr_ACEOF 4543128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 4544170256Sdelphijif { (ac_try="$ac_link" 4545170256Sdelphijcase "(($ac_try" in 4546170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4547170256Sdelphij *) ac_try_echo=$ac_try;; 4548170256Sdelphijesac 4549170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4550170256Sdelphij (eval "$ac_link") 2>conftest.er1 4551128345Stjr ac_status=$? 4552170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 4553170256Sdelphij rm -f conftest.er1 4554170256Sdelphij cat conftest.err >&5 4555128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 4556170256Sdelphij (exit $ac_status); } && { 4557170256Sdelphij test -z "$ac_c_werror_flag" || 4558170256Sdelphij test ! -s conftest.err 4559170256Sdelphij } && test -s conftest$ac_exeext && 4560170256Sdelphij $as_test_x conftest$ac_exeext; then 456160786Sps termok=yes 456260786Spselse 4563128345Stjr echo "$as_me: failed program was:" >&5 4564170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 4565170256Sdelphij 4566170256Sdelphij termok=no 456760786Spsfi 4568170256Sdelphij 4569170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4570170256Sdelphij conftest$ac_exeext conftest.$ac_ext 457160786Sps LIBS=$SAVE_LIBS 457260786Sps if test $termok = no; then TERMLIBS=""; fi 457360786Sps fi 457460786Spsfi 457560786Sps 4576128345Stjr# -- Try termlib. 457760786Spsif test "x$TERMLIBS" = x; then 457860786Sps if test $have_termlib = yes; then 457960786Sps TERMLIBS="-lcurses -ltermlib" 458060786Sps SAVE_LIBS=$LIBS 458160786Sps LIBS="$LIBS $TERMLIBS" 4582128345Stjr cat >conftest.$ac_ext <<_ACEOF 4583170256Sdelphij/* confdefs.h. */ 4584170256Sdelphij_ACEOF 4585170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4586170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4587170256Sdelphij/* end confdefs.h. */ 458860786Sps 4589128345Stjrint 4590128345Stjrmain () 4591128345Stjr{ 459260786Spstgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0); 4593128345Stjr ; 4594128345Stjr return 0; 4595128345Stjr} 4596128345Stjr_ACEOF 4597128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 4598170256Sdelphijif { (ac_try="$ac_link" 4599170256Sdelphijcase "(($ac_try" in 4600170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4601170256Sdelphij *) ac_try_echo=$ac_try;; 4602170256Sdelphijesac 4603170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4604170256Sdelphij (eval "$ac_link") 2>conftest.er1 4605128345Stjr ac_status=$? 4606170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 4607170256Sdelphij rm -f conftest.er1 4608170256Sdelphij cat conftest.err >&5 4609128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 4610170256Sdelphij (exit $ac_status); } && { 4611170256Sdelphij test -z "$ac_c_werror_flag" || 4612170256Sdelphij test ! -s conftest.err 4613170256Sdelphij } && test -s conftest$ac_exeext && 4614170256Sdelphij $as_test_x conftest$ac_exeext; then 461560786Sps termok=yes 461660786Spselse 4617128345Stjr echo "$as_me: failed program was:" >&5 4618170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 4619170256Sdelphij 4620170256Sdelphij termok=no 462160786Spsfi 4622170256Sdelphij 4623170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4624170256Sdelphij conftest$ac_exeext conftest.$ac_ext 462560786Sps LIBS=$SAVE_LIBS 462660786Sps if test $termok = no; then TERMLIBS=""; fi 462760786Sps fi 462860786Spsfi 462960786Sps 463060786Spsif test "x$TERMLIBS" = x; then 4631170256Sdelphij { echo "$as_me:$LINENO: result: Cannot find terminal libraries - configure failed" >&5 4632170256Sdelphijecho "${ECHO_T}Cannot find terminal libraries - configure failed" >&6; } 463360786Sps exit 1 463460786Spsfi 4635170256Sdelphij{ echo "$as_me:$LINENO: result: using $TERMLIBS" >&5 4636170256Sdelphijecho "${ECHO_T}using $TERMLIBS" >&6; } 463760786SpsLIBS="$LIBS $TERMLIBS" 463860786Sps 4639128345Stjr# Checks for header files. 4640170256Sdelphij{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4641170256Sdelphijecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4642128345Stjrif test "${ac_cv_header_stdc+set}" = set; then 4643128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 464460786Spselse 4645128345Stjr cat >conftest.$ac_ext <<_ACEOF 4646170256Sdelphij/* confdefs.h. */ 4647170256Sdelphij_ACEOF 4648170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4649170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4650170256Sdelphij/* end confdefs.h. */ 465160786Sps#include <stdlib.h> 465260786Sps#include <stdarg.h> 465360786Sps#include <string.h> 465460786Sps#include <float.h> 4655128345Stjr 4656170256Sdelphijint 4657170256Sdelphijmain () 4658170256Sdelphij{ 4659170256Sdelphij 4660170256Sdelphij ; 4661170256Sdelphij return 0; 4662170256Sdelphij} 4663128345Stjr_ACEOF 4664170256Sdelphijrm -f conftest.$ac_objext 4665170256Sdelphijif { (ac_try="$ac_compile" 4666170256Sdelphijcase "(($ac_try" in 4667170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4668170256Sdelphij *) ac_try_echo=$ac_try;; 4669170256Sdelphijesac 4670170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4671170256Sdelphij (eval "$ac_compile") 2>conftest.er1 4672128345Stjr ac_status=$? 4673128345Stjr grep -v '^ *+' conftest.er1 >conftest.err 4674128345Stjr rm -f conftest.er1 4675128345Stjr cat conftest.err >&5 4676128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 4677170256Sdelphij (exit $ac_status); } && { 4678170256Sdelphij test -z "$ac_c_werror_flag" || 4679170256Sdelphij test ! -s conftest.err 4680170256Sdelphij } && test -s conftest.$ac_objext; then 468160786Sps ac_cv_header_stdc=yes 468260786Spselse 4683128345Stjr echo "$as_me: failed program was:" >&5 4684170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 4685170256Sdelphij 4686170256Sdelphij ac_cv_header_stdc=no 468760786Spsfi 468860786Sps 4689170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4690170256Sdelphij 469160786Spsif test $ac_cv_header_stdc = yes; then 469260786Sps # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4693128345Stjr cat >conftest.$ac_ext <<_ACEOF 4694170256Sdelphij/* confdefs.h. */ 4695170256Sdelphij_ACEOF 4696170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4697170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4698170256Sdelphij/* end confdefs.h. */ 469960786Sps#include <string.h> 4700128345Stjr 4701128345Stjr_ACEOF 470260786Spsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4703128345Stjr $EGREP "memchr" >/dev/null 2>&1; then 470460786Sps : 470560786Spselse 470660786Sps ac_cv_header_stdc=no 470760786Spsfi 470860786Spsrm -f conftest* 470960786Sps 471060786Spsfi 471160786Sps 471260786Spsif test $ac_cv_header_stdc = yes; then 471360786Sps # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4714128345Stjr cat >conftest.$ac_ext <<_ACEOF 4715170256Sdelphij/* confdefs.h. */ 4716170256Sdelphij_ACEOF 4717170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4718170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4719170256Sdelphij/* end confdefs.h. */ 472060786Sps#include <stdlib.h> 4721128345Stjr 4722128345Stjr_ACEOF 472360786Spsif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4724128345Stjr $EGREP "free" >/dev/null 2>&1; then 472560786Sps : 472660786Spselse 472760786Sps ac_cv_header_stdc=no 472860786Spsfi 472960786Spsrm -f conftest* 473060786Sps 473160786Spsfi 473260786Sps 473360786Spsif test $ac_cv_header_stdc = yes; then 473460786Sps # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4735128345Stjr if test "$cross_compiling" = yes; then 473660786Sps : 473760786Spselse 4738128345Stjr cat >conftest.$ac_ext <<_ACEOF 4739170256Sdelphij/* confdefs.h. */ 4740170256Sdelphij_ACEOF 4741170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4742170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4743170256Sdelphij/* end confdefs.h. */ 474460786Sps#include <ctype.h> 4745170256Sdelphij#include <stdlib.h> 4746128345Stjr#if ((' ' & 0x0FF) == 0x020) 4747128345Stjr# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4748128345Stjr# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4749128345Stjr#else 4750170256Sdelphij# define ISLOWER(c) \ 4751170256Sdelphij (('a' <= (c) && (c) <= 'i') \ 4752170256Sdelphij || ('j' <= (c) && (c) <= 'r') \ 4753170256Sdelphij || ('s' <= (c) && (c) <= 'z')) 4754128345Stjr# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4755128345Stjr#endif 4756128345Stjr 475760786Sps#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4758128345Stjrint 4759128345Stjrmain () 4760128345Stjr{ 4761128345Stjr int i; 4762128345Stjr for (i = 0; i < 256; i++) 4763128345Stjr if (XOR (islower (i), ISLOWER (i)) 4764170256Sdelphij || toupper (i) != TOUPPER (i)) 4765170256Sdelphij return 2; 4766170256Sdelphij return 0; 4767128345Stjr} 4768128345Stjr_ACEOF 4769128345Stjrrm -f conftest$ac_exeext 4770170256Sdelphijif { (ac_try="$ac_link" 4771170256Sdelphijcase "(($ac_try" in 4772170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4773170256Sdelphij *) ac_try_echo=$ac_try;; 4774170256Sdelphijesac 4775170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4776170256Sdelphij (eval "$ac_link") 2>&5 4777128345Stjr ac_status=$? 4778128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 4779128345Stjr (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4780170256Sdelphij { (case "(($ac_try" in 4781170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4782170256Sdelphij *) ac_try_echo=$ac_try;; 4783170256Sdelphijesac 4784170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4785170256Sdelphij (eval "$ac_try") 2>&5 4786128345Stjr ac_status=$? 4787128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 4788128345Stjr (exit $ac_status); }; }; then 478960786Sps : 479060786Spselse 4791128345Stjr echo "$as_me: program exited with status $ac_status" >&5 4792128345Stjrecho "$as_me: failed program was:" >&5 4793170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 4794170256Sdelphij 4795128345Stjr( exit $ac_status ) 4796128345Stjrac_cv_header_stdc=no 479760786Spsfi 4798170256Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 479960786Spsfi 4800170256Sdelphij 4801170256Sdelphij 480260786Spsfi 480360786Spsfi 4804170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4805170256Sdelphijecho "${ECHO_T}$ac_cv_header_stdc" >&6; } 4806128345Stjrif test $ac_cv_header_stdc = yes; then 480760786Sps 4808128345Stjrcat >>confdefs.h <<\_ACEOF 480960786Sps#define STDC_HEADERS 1 4810128345Stjr_ACEOF 481160786Sps 481260786Spsfi 481360786Sps 4814128345Stjr# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4815128345Stjr 4816128345Stjr 4817128345Stjr 4818128345Stjr 4819128345Stjr 4820128345Stjr 4821128345Stjr 4822128345Stjr 4823128345Stjr 4824128345Stjrfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4825170256Sdelphij inttypes.h stdint.h unistd.h 4826128345Stjrdo 4827128345Stjras_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4828170256Sdelphij{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4829170256Sdelphijecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4830170256Sdelphijif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4831128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 483260786Spselse 4833128345Stjr cat >conftest.$ac_ext <<_ACEOF 4834170256Sdelphij/* confdefs.h. */ 4835170256Sdelphij_ACEOF 4836170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4837170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4838170256Sdelphij/* end confdefs.h. */ 4839128345Stjr$ac_includes_default 4840128345Stjr 4841128345Stjr#include <$ac_header> 4842128345Stjr_ACEOF 4843128345Stjrrm -f conftest.$ac_objext 4844170256Sdelphijif { (ac_try="$ac_compile" 4845170256Sdelphijcase "(($ac_try" in 4846170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4847170256Sdelphij *) ac_try_echo=$ac_try;; 4848170256Sdelphijesac 4849170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4850170256Sdelphij (eval "$ac_compile") 2>conftest.er1 4851128345Stjr ac_status=$? 4852170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 4853170256Sdelphij rm -f conftest.er1 4854170256Sdelphij cat conftest.err >&5 4855128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 4856170256Sdelphij (exit $ac_status); } && { 4857170256Sdelphij test -z "$ac_c_werror_flag" || 4858170256Sdelphij test ! -s conftest.err 4859170256Sdelphij } && test -s conftest.$ac_objext; then 4860128345Stjr eval "$as_ac_Header=yes" 4861128345Stjrelse 4862128345Stjr echo "$as_me: failed program was:" >&5 4863170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 4864170256Sdelphij 4865170256Sdelphij eval "$as_ac_Header=no" 4866128345Stjrfi 4867170256Sdelphij 4868170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4869128345Stjrfi 4870170256Sdelphijac_res=`eval echo '${'$as_ac_Header'}'` 4871170256Sdelphij { echo "$as_me:$LINENO: result: $ac_res" >&5 4872170256Sdelphijecho "${ECHO_T}$ac_res" >&6; } 4873128345Stjrif test `eval echo '${'$as_ac_Header'}'` = yes; then 4874128345Stjr cat >>confdefs.h <<_ACEOF 4875128345Stjr#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4876128345Stjr_ACEOF 4877128345Stjr 4878128345Stjrfi 4879128345Stjr 4880128345Stjrdone 4881128345Stjr 4882128345Stjr 4883128345Stjr 4884128345Stjr 4885128345Stjr 4886128345Stjr 4887128345Stjr 4888128345Stjr 4889128345Stjr 4890128345Stjr 4891128345Stjr 4892128345Stjr 4893128345Stjr 4894128345Stjr 4895128345Stjr 4896128345Stjr 4897128345Stjr 4898170256Sdelphijfor 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 4899128345Stjrdo 4900128345Stjras_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4901170256Sdelphijif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4902170256Sdelphij { echo "$as_me:$LINENO: checking for $ac_header" >&5 4903170256Sdelphijecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4904170256Sdelphijif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4905128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 4906128345Stjrfi 4907170256Sdelphijac_res=`eval echo '${'$as_ac_Header'}'` 4908170256Sdelphij { echo "$as_me:$LINENO: result: $ac_res" >&5 4909170256Sdelphijecho "${ECHO_T}$ac_res" >&6; } 4910128345Stjrelse 4911128345Stjr # Is the header compilable? 4912170256Sdelphij{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4913170256Sdelphijecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4914128345Stjrcat >conftest.$ac_ext <<_ACEOF 4915170256Sdelphij/* confdefs.h. */ 4916170256Sdelphij_ACEOF 4917170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4918170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4919170256Sdelphij/* end confdefs.h. */ 4920128345Stjr$ac_includes_default 4921128345Stjr#include <$ac_header> 4922128345Stjr_ACEOF 4923128345Stjrrm -f conftest.$ac_objext 4924170256Sdelphijif { (ac_try="$ac_compile" 4925170256Sdelphijcase "(($ac_try" in 4926170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4927170256Sdelphij *) ac_try_echo=$ac_try;; 4928170256Sdelphijesac 4929170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4930170256Sdelphij (eval "$ac_compile") 2>conftest.er1 4931128345Stjr ac_status=$? 4932170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 4933170256Sdelphij rm -f conftest.er1 4934170256Sdelphij cat conftest.err >&5 4935128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 4936170256Sdelphij (exit $ac_status); } && { 4937170256Sdelphij test -z "$ac_c_werror_flag" || 4938170256Sdelphij test ! -s conftest.err 4939170256Sdelphij } && test -s conftest.$ac_objext; then 4940128345Stjr ac_header_compiler=yes 4941128345Stjrelse 4942128345Stjr echo "$as_me: failed program was:" >&5 4943170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 4944170256Sdelphij 4945170256Sdelphij ac_header_compiler=no 4946128345Stjrfi 4947128345Stjr 4948170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4949170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4950170256Sdelphijecho "${ECHO_T}$ac_header_compiler" >&6; } 4951170256Sdelphij 4952128345Stjr# Is the header present? 4953170256Sdelphij{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4954170256Sdelphijecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4955128345Stjrcat >conftest.$ac_ext <<_ACEOF 4956170256Sdelphij/* confdefs.h. */ 4957170256Sdelphij_ACEOF 4958170256Sdelphijcat confdefs.h >>conftest.$ac_ext 4959170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 4960170256Sdelphij/* end confdefs.h. */ 4961128345Stjr#include <$ac_header> 4962128345Stjr_ACEOF 4963170256Sdelphijif { (ac_try="$ac_cpp conftest.$ac_ext" 4964170256Sdelphijcase "(($ac_try" in 4965170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4966170256Sdelphij *) ac_try_echo=$ac_try;; 4967170256Sdelphijesac 4968170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4969170256Sdelphij (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4970128345Stjr ac_status=$? 4971128345Stjr grep -v '^ *+' conftest.er1 >conftest.err 4972128345Stjr rm -f conftest.er1 4973128345Stjr cat conftest.err >&5 4974128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 4975170256Sdelphij (exit $ac_status); } >/dev/null && { 4976170256Sdelphij test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4977170256Sdelphij test ! -s conftest.err 4978170256Sdelphij }; then 4979128345Stjr ac_header_preproc=yes 4980128345Stjrelse 4981128345Stjr echo "$as_me: failed program was:" >&5 4982170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 4983170256Sdelphij 4984128345Stjr ac_header_preproc=no 4985128345Stjrfi 4986170256Sdelphij 4987128345Stjrrm -f conftest.err conftest.$ac_ext 4988170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4989170256Sdelphijecho "${ECHO_T}$ac_header_preproc" >&6; } 4990128345Stjr 4991128345Stjr# So? What about this header? 4992170256Sdelphijcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4993170256Sdelphij yes:no: ) 4994128345Stjr { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4995128345Stjrecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4996170256Sdelphij { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4997170256Sdelphijecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4998170256Sdelphij ac_header_preproc=yes 4999170256Sdelphij ;; 5000170256Sdelphij no:yes:* ) 5001128345Stjr { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5002128345Stjrecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5003170256Sdelphij { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5004170256Sdelphijecho "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5005170256Sdelphij { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5006170256Sdelphijecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5007170256Sdelphij { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5008170256Sdelphijecho "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5009128345Stjr { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5010170256Sdelphijecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5011170256Sdelphij { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5012170256Sdelphijecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5013170256Sdelphij 5014170256Sdelphij ;; 5015128345Stjresac 5016170256Sdelphij{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5017170256Sdelphijecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5018170256Sdelphijif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5019128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 5020128345Stjrelse 5021170256Sdelphij eval "$as_ac_Header=\$ac_header_preproc" 5022128345Stjrfi 5023170256Sdelphijac_res=`eval echo '${'$as_ac_Header'}'` 5024170256Sdelphij { echo "$as_me:$LINENO: result: $ac_res" >&5 5025170256Sdelphijecho "${ECHO_T}$ac_res" >&6; } 5026128345Stjr 5027128345Stjrfi 5028128345Stjrif test `eval echo '${'$as_ac_Header'}'` = yes; then 5029128345Stjr cat >>confdefs.h <<_ACEOF 5030128345Stjr#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5031128345Stjr_ACEOF 5032128345Stjr 5033128345Stjrfi 5034128345Stjr 5035128345Stjrdone 5036128345Stjr 5037128345Stjr 5038128345Stjr# Checks for typedefs, structures, and compiler characteristics. 5039170256Sdelphij{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 5040170256Sdelphijecho $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 5041128345Stjrif test "${ac_cv_header_stat_broken+set}" = set; then 5042128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 5043128345Stjrelse 5044128345Stjr cat >conftest.$ac_ext <<_ACEOF 5045170256Sdelphij/* confdefs.h. */ 5046170256Sdelphij_ACEOF 5047170256Sdelphijcat confdefs.h >>conftest.$ac_ext 5048170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 5049170256Sdelphij/* end confdefs.h. */ 505060786Sps#include <sys/types.h> 5051128345Stjr#include <sys/stat.h> 5052128345Stjr 5053170256Sdelphij#if defined S_ISBLK && defined S_IFDIR 5054170256Sdelphijextern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 505560786Sps#endif 5056128345Stjr 5057170256Sdelphij#if defined S_ISBLK && defined S_IFCHR 5058170256Sdelphijextern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 5059128345Stjr#endif 5060128345Stjr 5061170256Sdelphij#if defined S_ISLNK && defined S_IFREG 5062170256Sdelphijextern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 5063128345Stjr#endif 5064128345Stjr 5065170256Sdelphij#if defined S_ISSOCK && defined S_IFREG 5066170256Sdelphijextern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 5067128345Stjr#endif 5068128345Stjr 5069128345Stjr_ACEOF 5070170256Sdelphijrm -f conftest.$ac_objext 5071170256Sdelphijif { (ac_try="$ac_compile" 5072170256Sdelphijcase "(($ac_try" in 5073170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5074170256Sdelphij *) ac_try_echo=$ac_try;; 5075170256Sdelphijesac 5076170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5077170256Sdelphij (eval "$ac_compile") 2>conftest.er1 5078170256Sdelphij ac_status=$? 5079170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 5080170256Sdelphij rm -f conftest.er1 5081170256Sdelphij cat conftest.err >&5 5082170256Sdelphij echo "$as_me:$LINENO: \$? = $ac_status" >&5 5083170256Sdelphij (exit $ac_status); } && { 5084170256Sdelphij test -z "$ac_c_werror_flag" || 5085170256Sdelphij test ! -s conftest.err 5086170256Sdelphij } && test -s conftest.$ac_objext; then 5087170256Sdelphij ac_cv_header_stat_broken=no 508860786Spselse 5089170256Sdelphij echo "$as_me: failed program was:" >&5 5090170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 5091170256Sdelphij 5092170256Sdelphij ac_cv_header_stat_broken=yes 509360786Spsfi 509460786Sps 5095170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 509660786Spsfi 5097170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 5098170256Sdelphijecho "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 5099128345Stjrif test $ac_cv_header_stat_broken = yes; then 5100128345Stjr 5101128345Stjrcat >>confdefs.h <<\_ACEOF 5102128345Stjr#define STAT_MACROS_BROKEN 1 5103128345Stjr_ACEOF 5104128345Stjr 5105128345Stjrfi 5106128345Stjr 5107170256Sdelphij{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 5108170256Sdelphijecho $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 5109128345Stjrif test "${ac_cv_c_const+set}" = set; then 5110128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 5111128345Stjrelse 5112128345Stjr cat >conftest.$ac_ext <<_ACEOF 5113170256Sdelphij/* confdefs.h. */ 5114170256Sdelphij_ACEOF 5115170256Sdelphijcat confdefs.h >>conftest.$ac_ext 5116170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 5117170256Sdelphij/* end confdefs.h. */ 5118128345Stjr 5119128345Stjrint 5120128345Stjrmain () 5121128345Stjr{ 5122128345Stjr/* FIXME: Include the comments suggested by Paul. */ 5123128345Stjr#ifndef __cplusplus 5124128345Stjr /* Ultrix mips cc rejects this. */ 5125128345Stjr typedef int charset[2]; 5126170256Sdelphij const charset cs; 5127128345Stjr /* SunOS 4.1.1 cc rejects this. */ 5128170256Sdelphij char const *const *pcpcc; 5129170256Sdelphij char **ppc; 5130128345Stjr /* NEC SVR4.0.2 mips cc rejects this. */ 5131128345Stjr struct point {int x, y;}; 5132128345Stjr static struct point const zero = {0,0}; 5133128345Stjr /* AIX XL C 1.02.0.0 rejects this. 5134128345Stjr It does not let you subtract one const X* pointer from another in 5135128345Stjr an arm of an if-expression whose if-part is not a constant 5136128345Stjr expression */ 5137128345Stjr const char *g = "string"; 5138170256Sdelphij pcpcc = &g + (g ? g-g : 0); 5139128345Stjr /* HPUX 7.0 cc rejects these. */ 5140170256Sdelphij ++pcpcc; 5141170256Sdelphij ppc = (char**) pcpcc; 5142170256Sdelphij pcpcc = (char const *const *) ppc; 5143128345Stjr { /* SCO 3.2v4 cc rejects this. */ 5144128345Stjr char *t; 5145128345Stjr char const *s = 0 ? (char *) 0 : (char const *) 0; 5146128345Stjr 5147128345Stjr *t++ = 0; 5148170256Sdelphij if (s) return 0; 5149128345Stjr } 5150128345Stjr { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5151128345Stjr int x[] = {25, 17}; 5152128345Stjr const int *foo = &x[0]; 5153128345Stjr ++foo; 5154128345Stjr } 5155128345Stjr { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5156128345Stjr typedef const int *iptr; 5157128345Stjr iptr p = 0; 5158128345Stjr ++p; 5159128345Stjr } 5160128345Stjr { /* AIX XL C 1.02.0.0 rejects this saying 5161128345Stjr "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5162128345Stjr struct s { int j; const int *ap[3]; }; 5163128345Stjr struct s *b; b->j = 5; 5164128345Stjr } 5165128345Stjr { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5166128345Stjr const int foo = 10; 5167170256Sdelphij if (!foo) return 0; 5168128345Stjr } 5169170256Sdelphij return !cs[0] && !zero.x; 5170128345Stjr#endif 5171128345Stjr 5172128345Stjr ; 5173128345Stjr return 0; 5174128345Stjr} 5175128345Stjr_ACEOF 5176128345Stjrrm -f conftest.$ac_objext 5177170256Sdelphijif { (ac_try="$ac_compile" 5178170256Sdelphijcase "(($ac_try" in 5179170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5180170256Sdelphij *) ac_try_echo=$ac_try;; 5181170256Sdelphijesac 5182170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5183170256Sdelphij (eval "$ac_compile") 2>conftest.er1 5184128345Stjr ac_status=$? 5185170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 5186170256Sdelphij rm -f conftest.er1 5187170256Sdelphij cat conftest.err >&5 5188128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 5189170256Sdelphij (exit $ac_status); } && { 5190170256Sdelphij test -z "$ac_c_werror_flag" || 5191170256Sdelphij test ! -s conftest.err 5192170256Sdelphij } && test -s conftest.$ac_objext; then 5193128345Stjr ac_cv_c_const=yes 5194128345Stjrelse 5195128345Stjr echo "$as_me: failed program was:" >&5 5196170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 5197170256Sdelphij 5198170256Sdelphij ac_cv_c_const=no 5199128345Stjrfi 5200170256Sdelphij 5201170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5202128345Stjrfi 5203170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 5204170256Sdelphijecho "${ECHO_T}$ac_cv_c_const" >&6; } 5205128345Stjrif test $ac_cv_c_const = no; then 5206128345Stjr 5207128345Stjrcat >>confdefs.h <<\_ACEOF 5208128345Stjr#define const 5209128345Stjr_ACEOF 5210128345Stjr 5211128345Stjrfi 5212128345Stjr 5213170256Sdelphij{ echo "$as_me:$LINENO: checking for off_t" >&5 5214170256Sdelphijecho $ECHO_N "checking for off_t... $ECHO_C" >&6; } 5215128345Stjrif test "${ac_cv_type_off_t+set}" = set; then 5216128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 5217128345Stjrelse 5218128345Stjr cat >conftest.$ac_ext <<_ACEOF 5219170256Sdelphij/* confdefs.h. */ 5220170256Sdelphij_ACEOF 5221170256Sdelphijcat confdefs.h >>conftest.$ac_ext 5222170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 5223170256Sdelphij/* end confdefs.h. */ 5224128345Stjr$ac_includes_default 5225170256Sdelphijtypedef off_t ac__type_new_; 5226128345Stjrint 5227128345Stjrmain () 5228128345Stjr{ 5229170256Sdelphijif ((ac__type_new_ *) 0) 5230128345Stjr return 0; 5231170256Sdelphijif (sizeof (ac__type_new_)) 5232128345Stjr return 0; 5233128345Stjr ; 5234128345Stjr return 0; 5235128345Stjr} 5236128345Stjr_ACEOF 5237128345Stjrrm -f conftest.$ac_objext 5238170256Sdelphijif { (ac_try="$ac_compile" 5239170256Sdelphijcase "(($ac_try" in 5240170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5241170256Sdelphij *) ac_try_echo=$ac_try;; 5242170256Sdelphijesac 5243170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5244170256Sdelphij (eval "$ac_compile") 2>conftest.er1 5245128345Stjr ac_status=$? 5246170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 5247170256Sdelphij rm -f conftest.er1 5248170256Sdelphij cat conftest.err >&5 5249128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 5250170256Sdelphij (exit $ac_status); } && { 5251170256Sdelphij test -z "$ac_c_werror_flag" || 5252170256Sdelphij test ! -s conftest.err 5253170256Sdelphij } && test -s conftest.$ac_objext; then 5254128345Stjr ac_cv_type_off_t=yes 5255128345Stjrelse 5256128345Stjr echo "$as_me: failed program was:" >&5 5257170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 5258170256Sdelphij 5259170256Sdelphij ac_cv_type_off_t=no 5260128345Stjrfi 5261170256Sdelphij 5262170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5263128345Stjrfi 5264170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 5265170256Sdelphijecho "${ECHO_T}$ac_cv_type_off_t" >&6; } 5266128345Stjrif test $ac_cv_type_off_t = yes; then 5267128345Stjr : 5268128345Stjrelse 5269128345Stjr 5270128345Stjrcat >>confdefs.h <<_ACEOF 5271170256Sdelphij#define off_t long int 5272128345Stjr_ACEOF 527360786Sps 527460786Spsfi 527560786Sps 5276170256Sdelphij{ echo "$as_me:$LINENO: checking for size_t" >&5 5277170256Sdelphijecho $ECHO_N "checking for size_t... $ECHO_C" >&6; } 5278128345Stjrif test "${ac_cv_type_size_t+set}" = set; then 5279128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 5280128345Stjrelse 5281128345Stjr cat >conftest.$ac_ext <<_ACEOF 5282170256Sdelphij/* confdefs.h. */ 5283170256Sdelphij_ACEOF 5284170256Sdelphijcat confdefs.h >>conftest.$ac_ext 5285170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 5286170256Sdelphij/* end confdefs.h. */ 5287128345Stjr$ac_includes_default 5288170256Sdelphijtypedef size_t ac__type_new_; 5289128345Stjrint 5290128345Stjrmain () 5291128345Stjr{ 5292170256Sdelphijif ((ac__type_new_ *) 0) 5293128345Stjr return 0; 5294170256Sdelphijif (sizeof (ac__type_new_)) 5295128345Stjr return 0; 5296128345Stjr ; 5297128345Stjr return 0; 5298128345Stjr} 5299128345Stjr_ACEOF 5300128345Stjrrm -f conftest.$ac_objext 5301170256Sdelphijif { (ac_try="$ac_compile" 5302170256Sdelphijcase "(($ac_try" in 5303170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5304170256Sdelphij *) ac_try_echo=$ac_try;; 5305170256Sdelphijesac 5306170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5307170256Sdelphij (eval "$ac_compile") 2>conftest.er1 5308128345Stjr ac_status=$? 5309170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 5310170256Sdelphij rm -f conftest.er1 5311170256Sdelphij cat conftest.err >&5 5312128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 5313170256Sdelphij (exit $ac_status); } && { 5314170256Sdelphij test -z "$ac_c_werror_flag" || 5315170256Sdelphij test ! -s conftest.err 5316170256Sdelphij } && test -s conftest.$ac_objext; then 5317128345Stjr ac_cv_type_size_t=yes 5318128345Stjrelse 5319128345Stjr echo "$as_me: failed program was:" >&5 5320170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 5321170256Sdelphij 5322170256Sdelphij ac_cv_type_size_t=no 5323128345Stjrfi 5324170256Sdelphij 5325170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5326128345Stjrfi 5327170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 5328170256Sdelphijecho "${ECHO_T}$ac_cv_type_size_t" >&6; } 5329128345Stjrif test $ac_cv_type_size_t = yes; then 5330128345Stjr : 5331128345Stjrelse 533260786Sps 5333128345Stjrcat >>confdefs.h <<_ACEOF 5334170256Sdelphij#define size_t unsigned int 5335128345Stjr_ACEOF 5336128345Stjr 5337128345Stjrfi 5338128345Stjr 5339170256Sdelphij{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 5340170256Sdelphijecho $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 5341128345Stjrif test "${ac_cv_header_time+set}" = set; then 5342128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 5343128345Stjrelse 5344128345Stjr cat >conftest.$ac_ext <<_ACEOF 5345170256Sdelphij/* confdefs.h. */ 5346170256Sdelphij_ACEOF 5347170256Sdelphijcat confdefs.h >>conftest.$ac_ext 5348170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 5349170256Sdelphij/* end confdefs.h. */ 5350128345Stjr#include <sys/types.h> 5351128345Stjr#include <sys/time.h> 5352128345Stjr#include <time.h> 5353128345Stjr 5354128345Stjrint 5355128345Stjrmain () 5356128345Stjr{ 5357128345Stjrif ((struct tm *) 0) 5358128345Stjrreturn 0; 5359128345Stjr ; 5360128345Stjr return 0; 5361128345Stjr} 5362128345Stjr_ACEOF 5363128345Stjrrm -f conftest.$ac_objext 5364170256Sdelphijif { (ac_try="$ac_compile" 5365170256Sdelphijcase "(($ac_try" in 5366170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5367170256Sdelphij *) ac_try_echo=$ac_try;; 5368170256Sdelphijesac 5369170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5370170256Sdelphij (eval "$ac_compile") 2>conftest.er1 5371128345Stjr ac_status=$? 5372170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 5373170256Sdelphij rm -f conftest.er1 5374170256Sdelphij cat conftest.err >&5 5375128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 5376170256Sdelphij (exit $ac_status); } && { 5377170256Sdelphij test -z "$ac_c_werror_flag" || 5378170256Sdelphij test ! -s conftest.err 5379170256Sdelphij } && test -s conftest.$ac_objext; then 5380128345Stjr ac_cv_header_time=yes 5381128345Stjrelse 5382128345Stjr echo "$as_me: failed program was:" >&5 5383170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 5384170256Sdelphij 5385170256Sdelphij ac_cv_header_time=no 5386128345Stjrfi 5387170256Sdelphij 5388170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5389128345Stjrfi 5390170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 5391170256Sdelphijecho "${ECHO_T}$ac_cv_header_time" >&6; } 5392128345Stjrif test $ac_cv_header_time = yes; then 5393128345Stjr 5394128345Stjrcat >>confdefs.h <<\_ACEOF 5395128345Stjr#define TIME_WITH_SYS_TIME 1 5396128345Stjr_ACEOF 5397128345Stjr 5398128345Stjrfi 5399128345Stjr 5400128345Stjr 5401128345Stjr# Autoheader templates for symbols defined later by AC_DEFINE. 5402128345Stjr 5403128345Stjr 5404128345Stjr 5405128345Stjr 5406128345Stjr 5407128345Stjr 5408128345Stjr 5409128345Stjr 5410128345Stjr 5411128345Stjr 5412128345Stjr 5413128345Stjr 5414128345Stjr 5415128345Stjr 5416128345Stjr 5417128345Stjr 5418128345Stjr 5419128345Stjr 5420128345Stjr 5421128345Stjr 5422128345Stjr 5423128345Stjr 5424128345Stjr 5425128345Stjr 5426128345Stjr 5427128345Stjr 5428128345Stjr 5429128345Stjr 5430128345Stjr 5431128345Stjr 5432128345Stjr 5433128345Stjr 5434128345Stjr 5435128345Stjr 5436128345Stjr 5437128345Stjr 5438128345Stjr 5439128345Stjr 5440128345Stjr 5441128345Stjr 5442128345Stjr 5443128345Stjr 5444128345Stjr 5445128345Stjr 5446128345Stjr 5447128345Stjr 5448128345Stjr 5449161475Sdelphij 5450161475Sdelphij 5451128345Stjr# Checks for identifiers. 5452170256Sdelphij{ echo "$as_me:$LINENO: checking for off_t" >&5 5453170256Sdelphijecho $ECHO_N "checking for off_t... $ECHO_C" >&6; } 5454128345Stjrif test "${ac_cv_type_off_t+set}" = set; then 5455128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 5456128345Stjrelse 5457128345Stjr cat >conftest.$ac_ext <<_ACEOF 5458170256Sdelphij/* confdefs.h. */ 5459170256Sdelphij_ACEOF 5460170256Sdelphijcat confdefs.h >>conftest.$ac_ext 5461170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 5462170256Sdelphij/* end confdefs.h. */ 5463128345Stjr$ac_includes_default 5464170256Sdelphijtypedef off_t ac__type_new_; 5465128345Stjrint 5466128345Stjrmain () 5467128345Stjr{ 5468170256Sdelphijif ((ac__type_new_ *) 0) 5469128345Stjr return 0; 5470170256Sdelphijif (sizeof (ac__type_new_)) 5471128345Stjr return 0; 5472128345Stjr ; 5473128345Stjr return 0; 5474128345Stjr} 5475128345Stjr_ACEOF 5476128345Stjrrm -f conftest.$ac_objext 5477170256Sdelphijif { (ac_try="$ac_compile" 5478170256Sdelphijcase "(($ac_try" in 5479170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5480170256Sdelphij *) ac_try_echo=$ac_try;; 5481170256Sdelphijesac 5482170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5483170256Sdelphij (eval "$ac_compile") 2>conftest.er1 5484128345Stjr ac_status=$? 5485170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 5486170256Sdelphij rm -f conftest.er1 5487170256Sdelphij cat conftest.err >&5 5488128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 5489170256Sdelphij (exit $ac_status); } && { 5490170256Sdelphij test -z "$ac_c_werror_flag" || 5491170256Sdelphij test ! -s conftest.err 5492170256Sdelphij } && test -s conftest.$ac_objext; then 5493128345Stjr ac_cv_type_off_t=yes 5494128345Stjrelse 5495128345Stjr echo "$as_me: failed program was:" >&5 5496170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 5497170256Sdelphij 5498170256Sdelphij ac_cv_type_off_t=no 5499128345Stjrfi 5500170256Sdelphij 5501170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5502128345Stjrfi 5503170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 5504170256Sdelphijecho "${ECHO_T}$ac_cv_type_off_t" >&6; } 5505128345Stjrif test $ac_cv_type_off_t = yes; then 5506128345Stjr : 5507128345Stjrelse 5508128345Stjr 5509128345Stjrcat >>confdefs.h <<_ACEOF 5510170256Sdelphij#define off_t long int 5511128345Stjr_ACEOF 5512128345Stjr 5513128345Stjrfi 5514128345Stjr 5515170256Sdelphij{ echo "$as_me:$LINENO: checking for void" >&5 5516170256Sdelphijecho $ECHO_N "checking for void... $ECHO_C" >&6; } 5517128345Stjrcat >conftest.$ac_ext <<_ACEOF 5518170256Sdelphij/* confdefs.h. */ 5519170256Sdelphij_ACEOF 5520170256Sdelphijcat confdefs.h >>conftest.$ac_ext 5521170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 5522170256Sdelphij/* end confdefs.h. */ 5523128345Stjr 5524128345Stjrint 5525128345Stjrmain () 5526128345Stjr{ 552760786Spsvoid *foo = 0; 5528128345Stjr ; 5529128345Stjr return 0; 5530128345Stjr} 5531128345Stjr_ACEOF 5532128345Stjrrm -f conftest.$ac_objext 5533170256Sdelphijif { (ac_try="$ac_compile" 5534170256Sdelphijcase "(($ac_try" in 5535170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5536170256Sdelphij *) ac_try_echo=$ac_try;; 5537170256Sdelphijesac 5538170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5539170256Sdelphij (eval "$ac_compile") 2>conftest.er1 5540128345Stjr ac_status=$? 5541170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 5542170256Sdelphij rm -f conftest.er1 5543170256Sdelphij cat conftest.err >&5 5544128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 5545170256Sdelphij (exit $ac_status); } && { 5546170256Sdelphij test -z "$ac_c_werror_flag" || 5547170256Sdelphij test ! -s conftest.err 5548170256Sdelphij } && test -s conftest.$ac_objext; then 5549170256Sdelphij { echo "$as_me:$LINENO: result: yes" >&5 5550170256Sdelphijecho "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF 555160786Sps#define HAVE_VOID 1 5552128345Stjr_ACEOF 555360786Sps 555460786Spselse 5555128345Stjr echo "$as_me: failed program was:" >&5 5556170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 5557170256Sdelphij 5558170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 5559170256Sdelphijecho "${ECHO_T}no" >&6; } 556060786Spsfi 5561170256Sdelphij 5562170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5563170256Sdelphij{ echo "$as_me:$LINENO: checking for const" >&5 5564170256Sdelphijecho $ECHO_N "checking for const... $ECHO_C" >&6; } 5565128345Stjrcat >conftest.$ac_ext <<_ACEOF 5566170256Sdelphij/* confdefs.h. */ 5567170256Sdelphij_ACEOF 5568170256Sdelphijcat confdefs.h >>conftest.$ac_ext 5569170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 5570170256Sdelphij/* end confdefs.h. */ 557160786Sps 5572128345Stjrint 5573128345Stjrmain () 5574128345Stjr{ 557560786Spsconst int foo = 0; 5576128345Stjr ; 5577128345Stjr return 0; 5578128345Stjr} 5579128345Stjr_ACEOF 5580128345Stjrrm -f conftest.$ac_objext 5581170256Sdelphijif { (ac_try="$ac_compile" 5582170256Sdelphijcase "(($ac_try" in 5583170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5584170256Sdelphij *) ac_try_echo=$ac_try;; 5585170256Sdelphijesac 5586170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5587170256Sdelphij (eval "$ac_compile") 2>conftest.er1 5588128345Stjr ac_status=$? 5589170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 5590170256Sdelphij rm -f conftest.er1 5591170256Sdelphij cat conftest.err >&5 5592128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 5593170256Sdelphij (exit $ac_status); } && { 5594170256Sdelphij test -z "$ac_c_werror_flag" || 5595170256Sdelphij test ! -s conftest.err 5596170256Sdelphij } && test -s conftest.$ac_objext; then 5597170256Sdelphij { echo "$as_me:$LINENO: result: yes" >&5 5598170256Sdelphijecho "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF 559960786Sps#define HAVE_CONST 1 5600128345Stjr_ACEOF 560160786Sps 560260786Spselse 5603128345Stjr echo "$as_me: failed program was:" >&5 5604170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 5605170256Sdelphij 5606170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 5607170256Sdelphijecho "${ECHO_T}no" >&6; } 560860786Spsfi 5609170256Sdelphij 5610170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5611170256Sdelphij{ echo "$as_me:$LINENO: checking for time_t" >&5 5612170256Sdelphijecho $ECHO_N "checking for time_t... $ECHO_C" >&6; } 5613128345Stjrcat >conftest.$ac_ext <<_ACEOF 5614170256Sdelphij/* confdefs.h. */ 5615170256Sdelphij_ACEOF 5616170256Sdelphijcat confdefs.h >>conftest.$ac_ext 5617170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 5618170256Sdelphij/* end confdefs.h. */ 561960786Sps#include <time.h> 5620128345Stjrint 5621128345Stjrmain () 5622128345Stjr{ 562360786Spstime_t t = 0; 5624128345Stjr ; 5625128345Stjr return 0; 5626128345Stjr} 5627128345Stjr_ACEOF 5628128345Stjrrm -f conftest.$ac_objext 5629170256Sdelphijif { (ac_try="$ac_compile" 5630170256Sdelphijcase "(($ac_try" in 5631170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5632170256Sdelphij *) ac_try_echo=$ac_try;; 5633170256Sdelphijesac 5634170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5635170256Sdelphij (eval "$ac_compile") 2>conftest.er1 5636128345Stjr ac_status=$? 5637170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 5638170256Sdelphij rm -f conftest.er1 5639170256Sdelphij cat conftest.err >&5 5640128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 5641170256Sdelphij (exit $ac_status); } && { 5642170256Sdelphij test -z "$ac_c_werror_flag" || 5643170256Sdelphij test ! -s conftest.err 5644170256Sdelphij } && test -s conftest.$ac_objext; then 5645170256Sdelphij { echo "$as_me:$LINENO: result: yes" >&5 5646170256Sdelphijecho "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF 564760786Sps#define HAVE_TIME_T 1 5648128345Stjr_ACEOF 564960786Sps 565060786Spselse 5651128345Stjr echo "$as_me: failed program was:" >&5 5652170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 5653170256Sdelphij 5654170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 5655170256Sdelphijecho "${ECHO_T}no" >&6; } 565660786Spsfi 565760786Sps 5658170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5659170256Sdelphij 5660128345Stjr# Checks for library functions. 5661170256Sdelphij{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 5662170256Sdelphijecho $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 5663128345Stjrif test "${ac_cv_type_signal+set}" = set; then 5664128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 566560786Spselse 5666128345Stjr cat >conftest.$ac_ext <<_ACEOF 5667170256Sdelphij/* confdefs.h. */ 5668170256Sdelphij_ACEOF 5669170256Sdelphijcat confdefs.h >>conftest.$ac_ext 5670170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 5671170256Sdelphij/* end confdefs.h. */ 567260786Sps#include <sys/types.h> 567360786Sps#include <signal.h> 567460786Sps 5675128345Stjrint 5676128345Stjrmain () 5677128345Stjr{ 5678170256Sdelphijreturn *(signal (0, 0)) (0) == 1; 5679128345Stjr ; 5680128345Stjr return 0; 5681128345Stjr} 5682128345Stjr_ACEOF 5683128345Stjrrm -f conftest.$ac_objext 5684170256Sdelphijif { (ac_try="$ac_compile" 5685170256Sdelphijcase "(($ac_try" in 5686170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5687170256Sdelphij *) ac_try_echo=$ac_try;; 5688170256Sdelphijesac 5689170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5690170256Sdelphij (eval "$ac_compile") 2>conftest.er1 5691128345Stjr ac_status=$? 5692170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 5693170256Sdelphij rm -f conftest.er1 5694170256Sdelphij cat conftest.err >&5 5695128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 5696170256Sdelphij (exit $ac_status); } && { 5697170256Sdelphij test -z "$ac_c_werror_flag" || 5698170256Sdelphij test ! -s conftest.err 5699170256Sdelphij } && test -s conftest.$ac_objext; then 5700170256Sdelphij ac_cv_type_signal=int 570160786Spselse 5702128345Stjr echo "$as_me: failed program was:" >&5 5703170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 5704170256Sdelphij 5705170256Sdelphij ac_cv_type_signal=void 570660786Spsfi 5707170256Sdelphij 5708170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 570960786Spsfi 5710170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 5711170256Sdelphijecho "${ECHO_T}$ac_cv_type_signal" >&6; } 571260786Sps 5713128345Stjrcat >>confdefs.h <<_ACEOF 571460786Sps#define RETSIGTYPE $ac_cv_type_signal 5715128345Stjr_ACEOF 571660786Sps 571760786Sps 5718128345Stjr 5719128345Stjr 5720128345Stjr 5721128345Stjr 5722128345Stjr 5723128345Stjr 5724128345Stjr 5725128345Stjr 5726128345Stjr 5727170256Sdelphijfor ac_func in fsync popen _setjmp sigprocmask sigsetmask snprintf stat system fchmod 572860786Spsdo 5729128345Stjras_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5730170256Sdelphij{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5731170256Sdelphijecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5732170256Sdelphijif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5733128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 573460786Spselse 5735128345Stjr cat >conftest.$ac_ext <<_ACEOF 5736170256Sdelphij/* confdefs.h. */ 5737170256Sdelphij_ACEOF 5738170256Sdelphijcat confdefs.h >>conftest.$ac_ext 5739170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 5740170256Sdelphij/* end confdefs.h. */ 5741170256Sdelphij/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5742170256Sdelphij For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5743170256Sdelphij#define $ac_func innocuous_$ac_func 5744170256Sdelphij 574560786Sps/* System header to define __stub macros and hopefully few prototypes, 5746170256Sdelphij which can conflict with char $ac_func (); below. 5747170256Sdelphij Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5748170256Sdelphij <limits.h> exists even on freestanding compilers. */ 5749170256Sdelphij 5750170256Sdelphij#ifdef __STDC__ 5751170256Sdelphij# include <limits.h> 5752170256Sdelphij#else 5753170256Sdelphij# include <assert.h> 5754170256Sdelphij#endif 5755170256Sdelphij 5756170256Sdelphij#undef $ac_func 5757170256Sdelphij 5758170256Sdelphij/* Override any GCC internal prototype to avoid an error. 5759170256Sdelphij Use char because int might match the return type of a GCC 5760170256Sdelphij builtin and then its argument prototype would still apply. */ 5761128345Stjr#ifdef __cplusplus 5762128345Stjrextern "C" 5763128345Stjr#endif 5764128345Stjrchar $ac_func (); 576560786Sps/* The GNU C library defines this for functions which it implements 576660786Sps to always fail with ENOSYS. Some functions are actually named 576760786Sps something starting with __ and the normal name is an alias. */ 5768170256Sdelphij#if defined __stub_$ac_func || defined __stub___$ac_func 576960786Spschoke me 577060786Sps#endif 577160786Sps 5772170256Sdelphijint 5773170256Sdelphijmain () 5774170256Sdelphij{ 5775170256Sdelphijreturn $ac_func (); 5776128345Stjr ; 5777128345Stjr return 0; 5778128345Stjr} 5779128345Stjr_ACEOF 5780128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 5781170256Sdelphijif { (ac_try="$ac_link" 5782170256Sdelphijcase "(($ac_try" in 5783170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5784170256Sdelphij *) ac_try_echo=$ac_try;; 5785170256Sdelphijesac 5786170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5787170256Sdelphij (eval "$ac_link") 2>conftest.er1 5788128345Stjr ac_status=$? 5789170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 5790170256Sdelphij rm -f conftest.er1 5791170256Sdelphij cat conftest.err >&5 5792128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 5793170256Sdelphij (exit $ac_status); } && { 5794170256Sdelphij test -z "$ac_c_werror_flag" || 5795170256Sdelphij test ! -s conftest.err 5796170256Sdelphij } && test -s conftest$ac_exeext && 5797170256Sdelphij $as_test_x conftest$ac_exeext; then 5798128345Stjr eval "$as_ac_var=yes" 579960786Spselse 5800128345Stjr echo "$as_me: failed program was:" >&5 5801170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 5802170256Sdelphij 5803170256Sdelphij eval "$as_ac_var=no" 580460786Spsfi 5805170256Sdelphij 5806170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5807170256Sdelphij conftest$ac_exeext conftest.$ac_ext 580860786Spsfi 5809170256Sdelphijac_res=`eval echo '${'$as_ac_var'}'` 5810170256Sdelphij { echo "$as_me:$LINENO: result: $ac_res" >&5 5811170256Sdelphijecho "${ECHO_T}$ac_res" >&6; } 5812128345Stjrif test `eval echo '${'$as_ac_var'}'` = yes; then 5813128345Stjr cat >>confdefs.h <<_ACEOF 5814128345Stjr#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5815128345Stjr_ACEOF 581660786Sps 581760786Spsfi 581860786Spsdone 581960786Sps 582060786Sps 5821170256Sdelphij# AC_CHECK_FUNCS may not work for inline functions, so test these separately. 5822170256Sdelphij{ echo "$as_me:$LINENO: checking for memcpy" >&5 5823170256Sdelphijecho $ECHO_N "checking for memcpy... $ECHO_C" >&6; } 5824170256Sdelphijcat >conftest.$ac_ext <<_ACEOF 5825170256Sdelphij/* confdefs.h. */ 5826170256Sdelphij_ACEOF 5827170256Sdelphijcat confdefs.h >>conftest.$ac_ext 5828170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 5829170256Sdelphij/* end confdefs.h. */ 5830170256Sdelphij 5831170256Sdelphij#if HAVE_STRING_H 5832170256Sdelphij#include <string.h> 5833170256Sdelphij#endif 5834170256Sdelphijint 5835170256Sdelphijmain () 5836170256Sdelphij{ 5837170256Sdelphijmemcpy(0,0,0); 5838170256Sdelphij ; 5839170256Sdelphij return 0; 5840170256Sdelphij} 5841170256Sdelphij_ACEOF 5842170256Sdelphijrm -f conftest.$ac_objext conftest$ac_exeext 5843170256Sdelphijif { (ac_try="$ac_link" 5844170256Sdelphijcase "(($ac_try" in 5845170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5846170256Sdelphij *) ac_try_echo=$ac_try;; 5847170256Sdelphijesac 5848170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5849170256Sdelphij (eval "$ac_link") 2>conftest.er1 5850170256Sdelphij ac_status=$? 5851170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 5852170256Sdelphij rm -f conftest.er1 5853170256Sdelphij cat conftest.err >&5 5854170256Sdelphij echo "$as_me:$LINENO: \$? = $ac_status" >&5 5855170256Sdelphij (exit $ac_status); } && { 5856170256Sdelphij test -z "$ac_c_werror_flag" || 5857170256Sdelphij test ! -s conftest.err 5858170256Sdelphij } && test -s conftest$ac_exeext && 5859170256Sdelphij $as_test_x conftest$ac_exeext; then 5860170256Sdelphij { echo "$as_me:$LINENO: result: yes" >&5 5861170256Sdelphijecho "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF 5862170256Sdelphij#define HAVE_MEMCPY 1 5863170256Sdelphij_ACEOF 5864170256Sdelphij 5865170256Sdelphijelse 5866170256Sdelphij echo "$as_me: failed program was:" >&5 5867170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 5868170256Sdelphij 5869170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 5870170256Sdelphijecho "${ECHO_T}no" >&6; } 5871170256Sdelphijfi 5872170256Sdelphij 5873170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5874170256Sdelphij conftest$ac_exeext conftest.$ac_ext 5875170256Sdelphij 5876170256Sdelphij{ echo "$as_me:$LINENO: checking for strchr" >&5 5877170256Sdelphijecho $ECHO_N "checking for strchr... $ECHO_C" >&6; } 5878170256Sdelphijcat >conftest.$ac_ext <<_ACEOF 5879170256Sdelphij/* confdefs.h. */ 5880170256Sdelphij_ACEOF 5881170256Sdelphijcat confdefs.h >>conftest.$ac_ext 5882170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 5883170256Sdelphij/* end confdefs.h. */ 5884170256Sdelphij 5885170256Sdelphij#if HAVE_STRING_H 5886170256Sdelphij#include <string.h> 5887170256Sdelphij#endif 5888170256Sdelphijint 5889170256Sdelphijmain () 5890170256Sdelphij{ 5891170256Sdelphijstrchr("x",'x'); 5892170256Sdelphij ; 5893170256Sdelphij return 0; 5894170256Sdelphij} 5895170256Sdelphij_ACEOF 5896170256Sdelphijrm -f conftest.$ac_objext conftest$ac_exeext 5897170256Sdelphijif { (ac_try="$ac_link" 5898170256Sdelphijcase "(($ac_try" in 5899170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5900170256Sdelphij *) ac_try_echo=$ac_try;; 5901170256Sdelphijesac 5902170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5903170256Sdelphij (eval "$ac_link") 2>conftest.er1 5904170256Sdelphij ac_status=$? 5905170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 5906170256Sdelphij rm -f conftest.er1 5907170256Sdelphij cat conftest.err >&5 5908170256Sdelphij echo "$as_me:$LINENO: \$? = $ac_status" >&5 5909170256Sdelphij (exit $ac_status); } && { 5910170256Sdelphij test -z "$ac_c_werror_flag" || 5911170256Sdelphij test ! -s conftest.err 5912170256Sdelphij } && test -s conftest$ac_exeext && 5913170256Sdelphij $as_test_x conftest$ac_exeext; then 5914170256Sdelphij { echo "$as_me:$LINENO: result: yes" >&5 5915170256Sdelphijecho "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF 5916170256Sdelphij#define HAVE_STRCHR 1 5917170256Sdelphij_ACEOF 5918170256Sdelphij 5919170256Sdelphijelse 5920170256Sdelphij echo "$as_me: failed program was:" >&5 5921170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 5922170256Sdelphij 5923170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 5924170256Sdelphijecho "${ECHO_T}no" >&6; } 5925170256Sdelphijfi 5926170256Sdelphij 5927170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5928170256Sdelphij conftest$ac_exeext conftest.$ac_ext 5929170256Sdelphij 5930170256Sdelphij{ echo "$as_me:$LINENO: checking for strstr" >&5 5931170256Sdelphijecho $ECHO_N "checking for strstr... $ECHO_C" >&6; } 5932170256Sdelphijcat >conftest.$ac_ext <<_ACEOF 5933170256Sdelphij/* confdefs.h. */ 5934170256Sdelphij_ACEOF 5935170256Sdelphijcat confdefs.h >>conftest.$ac_ext 5936170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 5937170256Sdelphij/* end confdefs.h. */ 5938170256Sdelphij 5939170256Sdelphij#if HAVE_STRING_H 5940170256Sdelphij#include <string.h> 5941170256Sdelphij#endif 5942170256Sdelphijint 5943170256Sdelphijmain () 5944170256Sdelphij{ 5945170256Sdelphijstrstr("x","x"); 5946170256Sdelphij ; 5947170256Sdelphij return 0; 5948170256Sdelphij} 5949170256Sdelphij_ACEOF 5950170256Sdelphijrm -f conftest.$ac_objext conftest$ac_exeext 5951170256Sdelphijif { (ac_try="$ac_link" 5952170256Sdelphijcase "(($ac_try" in 5953170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5954170256Sdelphij *) ac_try_echo=$ac_try;; 5955170256Sdelphijesac 5956170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5957170256Sdelphij (eval "$ac_link") 2>conftest.er1 5958170256Sdelphij ac_status=$? 5959170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 5960170256Sdelphij rm -f conftest.er1 5961170256Sdelphij cat conftest.err >&5 5962170256Sdelphij echo "$as_me:$LINENO: \$? = $ac_status" >&5 5963170256Sdelphij (exit $ac_status); } && { 5964170256Sdelphij test -z "$ac_c_werror_flag" || 5965170256Sdelphij test ! -s conftest.err 5966170256Sdelphij } && test -s conftest$ac_exeext && 5967170256Sdelphij $as_test_x conftest$ac_exeext; then 5968170256Sdelphij { echo "$as_me:$LINENO: result: yes" >&5 5969170256Sdelphijecho "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF 5970170256Sdelphij#define HAVE_STRSTR 1 5971170256Sdelphij_ACEOF 5972170256Sdelphij 5973170256Sdelphijelse 5974170256Sdelphij echo "$as_me: failed program was:" >&5 5975170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 5976170256Sdelphij 5977170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 5978170256Sdelphijecho "${ECHO_T}no" >&6; } 5979170256Sdelphijfi 5980170256Sdelphij 5981170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5982170256Sdelphij conftest$ac_exeext conftest.$ac_ext 5983170256Sdelphij 5984128345Stjr# Some systems have termios.h but not the corresponding functions. 5985170256Sdelphij{ echo "$as_me:$LINENO: checking for tcgetattr" >&5 5986170256Sdelphijecho $ECHO_N "checking for tcgetattr... $ECHO_C" >&6; } 5987128345Stjrif test "${ac_cv_func_tcgetattr+set}" = set; then 5988128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 598960786Spselse 5990128345Stjr cat >conftest.$ac_ext <<_ACEOF 5991170256Sdelphij/* confdefs.h. */ 5992170256Sdelphij_ACEOF 5993170256Sdelphijcat confdefs.h >>conftest.$ac_ext 5994170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 5995170256Sdelphij/* end confdefs.h. */ 5996170256Sdelphij/* Define tcgetattr to an innocuous variant, in case <limits.h> declares tcgetattr. 5997170256Sdelphij For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5998170256Sdelphij#define tcgetattr innocuous_tcgetattr 5999170256Sdelphij 600060786Sps/* System header to define __stub macros and hopefully few prototypes, 6001170256Sdelphij which can conflict with char tcgetattr (); below. 6002170256Sdelphij Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6003170256Sdelphij <limits.h> exists even on freestanding compilers. */ 6004170256Sdelphij 6005170256Sdelphij#ifdef __STDC__ 6006170256Sdelphij# include <limits.h> 6007170256Sdelphij#else 6008170256Sdelphij# include <assert.h> 6009170256Sdelphij#endif 6010170256Sdelphij 6011170256Sdelphij#undef tcgetattr 6012170256Sdelphij 6013170256Sdelphij/* Override any GCC internal prototype to avoid an error. 6014170256Sdelphij Use char because int might match the return type of a GCC 6015170256Sdelphij builtin and then its argument prototype would still apply. */ 6016128345Stjr#ifdef __cplusplus 6017128345Stjrextern "C" 6018128345Stjr#endif 6019128345Stjrchar tcgetattr (); 602060786Sps/* The GNU C library defines this for functions which it implements 602160786Sps to always fail with ENOSYS. Some functions are actually named 602260786Sps something starting with __ and the normal name is an alias. */ 6023170256Sdelphij#if defined __stub_tcgetattr || defined __stub___tcgetattr 602460786Spschoke me 602560786Sps#endif 602660786Sps 6027170256Sdelphijint 6028170256Sdelphijmain () 6029170256Sdelphij{ 6030170256Sdelphijreturn tcgetattr (); 6031128345Stjr ; 6032128345Stjr return 0; 6033128345Stjr} 6034128345Stjr_ACEOF 6035128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 6036170256Sdelphijif { (ac_try="$ac_link" 6037170256Sdelphijcase "(($ac_try" in 6038170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6039170256Sdelphij *) ac_try_echo=$ac_try;; 6040170256Sdelphijesac 6041170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6042170256Sdelphij (eval "$ac_link") 2>conftest.er1 6043128345Stjr ac_status=$? 6044170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 6045170256Sdelphij rm -f conftest.er1 6046170256Sdelphij cat conftest.err >&5 6047128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6048170256Sdelphij (exit $ac_status); } && { 6049170256Sdelphij test -z "$ac_c_werror_flag" || 6050170256Sdelphij test ! -s conftest.err 6051170256Sdelphij } && test -s conftest$ac_exeext && 6052170256Sdelphij $as_test_x conftest$ac_exeext; then 6053128345Stjr ac_cv_func_tcgetattr=yes 605460786Spselse 6055128345Stjr echo "$as_me: failed program was:" >&5 6056170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 6057170256Sdelphij 6058170256Sdelphij ac_cv_func_tcgetattr=no 605960786Spsfi 6060170256Sdelphij 6061170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6062170256Sdelphij conftest$ac_exeext conftest.$ac_ext 606360786Spsfi 6064170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_func_tcgetattr" >&5 6065170256Sdelphijecho "${ECHO_T}$ac_cv_func_tcgetattr" >&6; } 6066128345Stjrif test $ac_cv_func_tcgetattr = yes; then 6067128345Stjr cat >>confdefs.h <<\_ACEOF 606860786Sps#define HAVE_TERMIOS_FUNCS 1 6069128345Stjr_ACEOF 607060786Sps 607160786Spsfi 607260786Sps 607360786Sps 6074170256Sdelphij{ echo "$as_me:$LINENO: checking for fileno" >&5 6075170256Sdelphijecho $ECHO_N "checking for fileno... $ECHO_C" >&6; } 6076128345Stjrcat >conftest.$ac_ext <<_ACEOF 6077170256Sdelphij/* confdefs.h. */ 6078170256Sdelphij_ACEOF 6079170256Sdelphijcat confdefs.h >>conftest.$ac_ext 6080170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 6081170256Sdelphij/* end confdefs.h. */ 608260786Sps 608360786Sps#if HAVE_STDIO_H 608460786Sps#include <stdio.h> 608560786Sps#endif 6086128345Stjrint 6087128345Stjrmain () 6088128345Stjr{ 608960786Spsstatic int x; x = fileno(stdin); 6090128345Stjr ; 6091128345Stjr return 0; 6092128345Stjr} 6093128345Stjr_ACEOF 6094128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 6095170256Sdelphijif { (ac_try="$ac_link" 6096170256Sdelphijcase "(($ac_try" in 6097170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6098170256Sdelphij *) ac_try_echo=$ac_try;; 6099170256Sdelphijesac 6100170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6101170256Sdelphij (eval "$ac_link") 2>conftest.er1 6102128345Stjr ac_status=$? 6103170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 6104170256Sdelphij rm -f conftest.er1 6105170256Sdelphij cat conftest.err >&5 6106128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6107170256Sdelphij (exit $ac_status); } && { 6108170256Sdelphij test -z "$ac_c_werror_flag" || 6109170256Sdelphij test ! -s conftest.err 6110170256Sdelphij } && test -s conftest$ac_exeext && 6111170256Sdelphij $as_test_x conftest$ac_exeext; then 6112170256Sdelphij { echo "$as_me:$LINENO: result: yes" >&5 6113170256Sdelphijecho "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF 611460786Sps#define HAVE_FILENO 1 6115128345Stjr_ACEOF 611660786Sps 611760786Spselse 6118128345Stjr echo "$as_me: failed program was:" >&5 6119170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 6120170256Sdelphij 6121170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 6122170256Sdelphijecho "${ECHO_T}no" >&6; } 612360786Spsfi 612460786Sps 6125170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6126170256Sdelphij conftest$ac_exeext conftest.$ac_ext 6127170256Sdelphij 6128170256Sdelphij{ echo "$as_me:$LINENO: checking for strerror" >&5 6129170256Sdelphijecho $ECHO_N "checking for strerror... $ECHO_C" >&6; } 6130128345Stjrcat >conftest.$ac_ext <<_ACEOF 6131170256Sdelphij/* confdefs.h. */ 6132170256Sdelphij_ACEOF 6133170256Sdelphijcat confdefs.h >>conftest.$ac_ext 6134170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 6135170256Sdelphij/* end confdefs.h. */ 613660786Sps 613760786Sps#if HAVE_STDIO_H 613860786Sps#include <stdio.h> 613960786Sps#endif 614060786Sps#if HAVE_STRING_H 614160786Sps#include <string.h> 614260786Sps#endif 614360786Sps#if HAVE_ERRNO_H 614460786Sps#include <errno.h> 614560786Sps#endif 6146128345Stjrint 6147128345Stjrmain () 6148128345Stjr{ 614960786Spsstatic char *x; x = strerror(0); 6150128345Stjr ; 6151128345Stjr return 0; 6152128345Stjr} 6153128345Stjr_ACEOF 6154128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 6155170256Sdelphijif { (ac_try="$ac_link" 6156170256Sdelphijcase "(($ac_try" in 6157170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6158170256Sdelphij *) ac_try_echo=$ac_try;; 6159170256Sdelphijesac 6160170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6161170256Sdelphij (eval "$ac_link") 2>conftest.er1 6162128345Stjr ac_status=$? 6163170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 6164170256Sdelphij rm -f conftest.er1 6165170256Sdelphij cat conftest.err >&5 6166128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6167170256Sdelphij (exit $ac_status); } && { 6168170256Sdelphij test -z "$ac_c_werror_flag" || 6169170256Sdelphij test ! -s conftest.err 6170170256Sdelphij } && test -s conftest$ac_exeext && 6171170256Sdelphij $as_test_x conftest$ac_exeext; then 6172170256Sdelphij { echo "$as_me:$LINENO: result: yes" >&5 6173170256Sdelphijecho "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF 617460786Sps#define HAVE_STRERROR 1 6175128345Stjr_ACEOF 617660786Sps 617760786Spselse 6178128345Stjr echo "$as_me: failed program was:" >&5 6179170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 6180170256Sdelphij 6181170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 6182170256Sdelphijecho "${ECHO_T}no" >&6; } 618360786Spsfi 618460786Sps 6185170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6186170256Sdelphij conftest$ac_exeext conftest.$ac_ext 6187170256Sdelphij 6188170256Sdelphij{ echo "$as_me:$LINENO: checking for sys_errlist" >&5 6189170256Sdelphijecho $ECHO_N "checking for sys_errlist... $ECHO_C" >&6; } 6190128345Stjrcat >conftest.$ac_ext <<_ACEOF 6191170256Sdelphij/* confdefs.h. */ 6192170256Sdelphij_ACEOF 6193170256Sdelphijcat confdefs.h >>conftest.$ac_ext 6194170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 6195170256Sdelphij/* end confdefs.h. */ 619660786Sps 6197128345Stjrint 6198128345Stjrmain () 6199128345Stjr{ 620060786Spsextern char *sys_errlist[]; static char **x; x = sys_errlist; 6201128345Stjr ; 6202128345Stjr return 0; 6203128345Stjr} 6204128345Stjr_ACEOF 6205128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 6206170256Sdelphijif { (ac_try="$ac_link" 6207170256Sdelphijcase "(($ac_try" in 6208170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6209170256Sdelphij *) ac_try_echo=$ac_try;; 6210170256Sdelphijesac 6211170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6212170256Sdelphij (eval "$ac_link") 2>conftest.er1 6213128345Stjr ac_status=$? 6214170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 6215170256Sdelphij rm -f conftest.er1 6216170256Sdelphij cat conftest.err >&5 6217128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6218170256Sdelphij (exit $ac_status); } && { 6219170256Sdelphij test -z "$ac_c_werror_flag" || 6220170256Sdelphij test ! -s conftest.err 6221170256Sdelphij } && test -s conftest$ac_exeext && 6222170256Sdelphij $as_test_x conftest$ac_exeext; then 6223170256Sdelphij { echo "$as_me:$LINENO: result: yes" >&5 6224170256Sdelphijecho "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF 622560786Sps#define HAVE_SYS_ERRLIST 1 6226128345Stjr_ACEOF 622760786Sps 622860786Spselse 6229128345Stjr echo "$as_me: failed program was:" >&5 6230170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 6231170256Sdelphij 6232170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 6233170256Sdelphijecho "${ECHO_T}no" >&6; } 623460786Spsfi 623560786Sps 6236170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6237170256Sdelphij conftest$ac_exeext conftest.$ac_ext 623863128Sps 6239170256Sdelphij{ echo "$as_me:$LINENO: checking for sigset_t" >&5 6240170256Sdelphijecho $ECHO_N "checking for sigset_t... $ECHO_C" >&6; } 6241170256Sdelphijif test "${ac_cv_type_sigset_t+set}" = set; then 6242170256Sdelphij echo $ECHO_N "(cached) $ECHO_C" >&6 6243170256Sdelphijelse 6244170256Sdelphij cat >conftest.$ac_ext <<_ACEOF 6245170256Sdelphij/* confdefs.h. */ 6246170256Sdelphij_ACEOF 6247170256Sdelphijcat confdefs.h >>conftest.$ac_ext 6248170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 6249170256Sdelphij/* end confdefs.h. */ 625063128Sps#include <signal.h> 625163128Sps 6252170256Sdelphijtypedef sigset_t ac__type_new_; 6253128345Stjrint 6254128345Stjrmain () 6255128345Stjr{ 6256170256Sdelphijif ((ac__type_new_ *) 0) 6257170256Sdelphij return 0; 6258170256Sdelphijif (sizeof (ac__type_new_)) 6259170256Sdelphij return 0; 6260128345Stjr ; 6261128345Stjr return 0; 6262128345Stjr} 6263128345Stjr_ACEOF 6264170256Sdelphijrm -f conftest.$ac_objext 6265170256Sdelphijif { (ac_try="$ac_compile" 6266170256Sdelphijcase "(($ac_try" in 6267170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6268170256Sdelphij *) ac_try_echo=$ac_try;; 6269170256Sdelphijesac 6270170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6271170256Sdelphij (eval "$ac_compile") 2>conftest.er1 6272128345Stjr ac_status=$? 6273170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 6274170256Sdelphij rm -f conftest.er1 6275170256Sdelphij cat conftest.err >&5 6276128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6277170256Sdelphij (exit $ac_status); } && { 6278170256Sdelphij test -z "$ac_c_werror_flag" || 6279170256Sdelphij test ! -s conftest.err 6280170256Sdelphij } && test -s conftest.$ac_objext; then 6281170256Sdelphij ac_cv_type_sigset_t=yes 6282170256Sdelphijelse 6283170256Sdelphij echo "$as_me: failed program was:" >&5 6284170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 6285170256Sdelphij 6286170256Sdelphij ac_cv_type_sigset_t=no 6287170256Sdelphijfi 6288170256Sdelphij 6289170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6290170256Sdelphijfi 6291170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5 6292170256Sdelphijecho "${ECHO_T}$ac_cv_type_sigset_t" >&6; } 6293170256Sdelphijif test $ac_cv_type_sigset_t = yes; then 6294170256Sdelphij 6295170256Sdelphijcat >>confdefs.h <<_ACEOF 629663128Sps#define HAVE_SIGSET_T 1 6297128345Stjr_ACEOF 629863128Sps 6299170256Sdelphij 630063128Spsfi 630163128Sps 6302170256Sdelphij 6303170256Sdelphij{ echo "$as_me:$LINENO: checking for sigemptyset" >&5 6304170256Sdelphijecho $ECHO_N "checking for sigemptyset... $ECHO_C" >&6; } 6305128345Stjrcat >conftest.$ac_ext <<_ACEOF 6306170256Sdelphij/* confdefs.h. */ 6307170256Sdelphij_ACEOF 6308170256Sdelphijcat confdefs.h >>conftest.$ac_ext 6309170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 6310170256Sdelphij/* end confdefs.h. */ 631163128Sps 631263128Sps#include <signal.h> 631363128Sps 6314128345Stjrint 6315128345Stjrmain () 6316128345Stjr{ 631763128Spssigset_t s; sigemptyset(&s); 6318128345Stjr ; 6319128345Stjr return 0; 6320128345Stjr} 6321128345Stjr_ACEOF 6322128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 6323170256Sdelphijif { (ac_try="$ac_link" 6324170256Sdelphijcase "(($ac_try" in 6325170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6326170256Sdelphij *) ac_try_echo=$ac_try;; 6327170256Sdelphijesac 6328170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6329170256Sdelphij (eval "$ac_link") 2>conftest.er1 6330128345Stjr ac_status=$? 6331170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 6332170256Sdelphij rm -f conftest.er1 6333170256Sdelphij cat conftest.err >&5 6334128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6335170256Sdelphij (exit $ac_status); } && { 6336170256Sdelphij test -z "$ac_c_werror_flag" || 6337170256Sdelphij test ! -s conftest.err 6338170256Sdelphij } && test -s conftest$ac_exeext && 6339170256Sdelphij $as_test_x conftest$ac_exeext; then 6340170256Sdelphij { echo "$as_me:$LINENO: result: yes" >&5 6341170256Sdelphijecho "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF 634263128Sps#define HAVE_SIGEMPTYSET 1 6343128345Stjr_ACEOF 634463128Sps 634563128Spselse 6346128345Stjr echo "$as_me: failed program was:" >&5 6347170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 6348170256Sdelphij 6349170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 6350170256Sdelphijecho "${ECHO_T}no" >&6; } 635163128Spsfi 635263128Sps 6353170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6354170256Sdelphij conftest$ac_exeext conftest.$ac_ext 6355170256Sdelphij 635660786Spshave_errno=no 6357170256Sdelphij{ echo "$as_me:$LINENO: checking for errno" >&5 6358170256Sdelphijecho $ECHO_N "checking for errno... $ECHO_C" >&6; } 6359128345Stjrcat >conftest.$ac_ext <<_ACEOF 6360170256Sdelphij/* confdefs.h. */ 6361170256Sdelphij_ACEOF 6362170256Sdelphijcat confdefs.h >>conftest.$ac_ext 6363170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 6364170256Sdelphij/* end confdefs.h. */ 636560786Sps 636660786Sps#if HAVE_ERRNO_H 636760786Sps#include <errno.h> 636860786Sps#endif 6369128345Stjrint 6370128345Stjrmain () 6371128345Stjr{ 637260786Spsstatic int x; x = errno; 6373128345Stjr ; 6374128345Stjr return 0; 6375128345Stjr} 6376128345Stjr_ACEOF 6377128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 6378170256Sdelphijif { (ac_try="$ac_link" 6379170256Sdelphijcase "(($ac_try" in 6380170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6381170256Sdelphij *) ac_try_echo=$ac_try;; 6382170256Sdelphijesac 6383170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6384170256Sdelphij (eval "$ac_link") 2>conftest.er1 6385128345Stjr ac_status=$? 6386170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 6387170256Sdelphij rm -f conftest.er1 6388170256Sdelphij cat conftest.err >&5 6389128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6390170256Sdelphij (exit $ac_status); } && { 6391170256Sdelphij test -z "$ac_c_werror_flag" || 6392170256Sdelphij test ! -s conftest.err 6393170256Sdelphij } && test -s conftest$ac_exeext && 6394170256Sdelphij $as_test_x conftest$ac_exeext; then 6395170256Sdelphij { echo "$as_me:$LINENO: result: yes - in errno.h" >&5 6396170256Sdelphijecho "${ECHO_T}yes - in errno.h" >&6; }; cat >>confdefs.h <<\_ACEOF 639760786Sps#define HAVE_ERRNO 1 6398128345Stjr_ACEOF 639960786Sps have_errno=yes 640060786Spselse 6401128345Stjr echo "$as_me: failed program was:" >&5 6402170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 6403170256Sdelphij 6404170256Sdelphij 640560786Spsfi 6406170256Sdelphij 6407170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6408170256Sdelphij conftest$ac_exeext conftest.$ac_ext 640960786Spsif test $have_errno = no; then 6410128345Stjrcat >conftest.$ac_ext <<_ACEOF 6411170256Sdelphij/* confdefs.h. */ 6412170256Sdelphij_ACEOF 6413170256Sdelphijcat confdefs.h >>conftest.$ac_ext 6414170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 6415170256Sdelphij/* end confdefs.h. */ 641660786Sps 641760786Sps#if HAVE_ERRNO_H 641860786Sps#include <errno.h> 641960786Sps#endif 6420128345Stjrint 6421128345Stjrmain () 6422128345Stjr{ 642360786Spsextern int errno; static int x; x = errno; 6424128345Stjr ; 6425128345Stjr return 0; 6426128345Stjr} 6427128345Stjr_ACEOF 6428128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 6429170256Sdelphijif { (ac_try="$ac_link" 6430170256Sdelphijcase "(($ac_try" in 6431170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6432170256Sdelphij *) ac_try_echo=$ac_try;; 6433170256Sdelphijesac 6434170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6435170256Sdelphij (eval "$ac_link") 2>conftest.er1 6436128345Stjr ac_status=$? 6437170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 6438170256Sdelphij rm -f conftest.er1 6439170256Sdelphij cat conftest.err >&5 6440128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6441170256Sdelphij (exit $ac_status); } && { 6442170256Sdelphij test -z "$ac_c_werror_flag" || 6443170256Sdelphij test ! -s conftest.err 6444170256Sdelphij } && test -s conftest$ac_exeext && 6445170256Sdelphij $as_test_x conftest$ac_exeext; then 6446170256Sdelphij { echo "$as_me:$LINENO: result: yes - must define" >&5 6447170256Sdelphijecho "${ECHO_T}yes - must define" >&6; }; cat >>confdefs.h <<\_ACEOF 644860786Sps#define HAVE_ERRNO 1 6449128345Stjr_ACEOF 6450128345Stjr cat >>confdefs.h <<\_ACEOF 645160786Sps#define MUST_DEFINE_ERRNO 1 6452128345Stjr_ACEOF 645360786Sps 645460786Spselse 6455128345Stjr echo "$as_me: failed program was:" >&5 6456170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 6457170256Sdelphij 6458170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 6459170256Sdelphijecho "${ECHO_T}no" >&6; } 646060786Spsfi 6461170256Sdelphij 6462170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6463170256Sdelphij conftest$ac_exeext conftest.$ac_ext 646460786Spsfi 646560786Sps 6466170256Sdelphij{ echo "$as_me:$LINENO: checking for locale" >&5 6467170256Sdelphijecho $ECHO_N "checking for locale... $ECHO_C" >&6; } 6468128345Stjrcat >conftest.$ac_ext <<_ACEOF 6469170256Sdelphij/* confdefs.h. */ 6470170256Sdelphij_ACEOF 6471170256Sdelphijcat confdefs.h >>conftest.$ac_ext 6472170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 6473170256Sdelphij/* end confdefs.h. */ 647460786Sps#include <locale.h> 647560786Sps#include <ctype.h> 6476128345Stjrint 6477128345Stjrmain () 6478128345Stjr{ 647960786Spssetlocale(LC_CTYPE,""); isprint(0); iscntrl(0); 6480128345Stjr ; 6481128345Stjr return 0; 6482128345Stjr} 6483128345Stjr_ACEOF 6484128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 6485170256Sdelphijif { (ac_try="$ac_link" 6486170256Sdelphijcase "(($ac_try" in 6487170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6488170256Sdelphij *) ac_try_echo=$ac_try;; 6489170256Sdelphijesac 6490170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6491170256Sdelphij (eval "$ac_link") 2>conftest.er1 6492128345Stjr ac_status=$? 6493170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 6494170256Sdelphij rm -f conftest.er1 6495170256Sdelphij cat conftest.err >&5 6496128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6497170256Sdelphij (exit $ac_status); } && { 6498170256Sdelphij test -z "$ac_c_werror_flag" || 6499170256Sdelphij test ! -s conftest.err 6500170256Sdelphij } && test -s conftest$ac_exeext && 6501170256Sdelphij $as_test_x conftest$ac_exeext; then 6502170256Sdelphij { echo "$as_me:$LINENO: result: yes" >&5 6503170256Sdelphijecho "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF 650460786Sps#define HAVE_LOCALE 1 6505128345Stjr_ACEOF 650660786Sps 650760786Spselse 6508128345Stjr echo "$as_me: failed program was:" >&5 6509170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 6510170256Sdelphij 6511170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 6512170256Sdelphijecho "${ECHO_T}no" >&6; } 651360786Spsfi 6514170256Sdelphij 6515170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6516170256Sdelphij conftest$ac_exeext conftest.$ac_ext 6517170256Sdelphij{ echo "$as_me:$LINENO: checking for ctype functions" >&5 6518170256Sdelphijecho $ECHO_N "checking for ctype functions... $ECHO_C" >&6; } 6519128345Stjrcat >conftest.$ac_ext <<_ACEOF 6520170256Sdelphij/* confdefs.h. */ 6521170256Sdelphij_ACEOF 6522170256Sdelphijcat confdefs.h >>conftest.$ac_ext 6523170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 6524170256Sdelphij/* end confdefs.h. */ 652560786Sps 652660786Sps#if HAVE_CTYPE_H 652760786Sps#include <ctype.h> 652860786Sps#endif 6529128345Stjrint 6530128345Stjrmain () 6531128345Stjr{ 653260786Spsstatic int x; x = isupper(x); x = tolower(x); x = toupper(x); 6533128345Stjr ; 6534128345Stjr return 0; 6535128345Stjr} 6536128345Stjr_ACEOF 6537128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 6538170256Sdelphijif { (ac_try="$ac_link" 6539170256Sdelphijcase "(($ac_try" in 6540170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6541170256Sdelphij *) ac_try_echo=$ac_try;; 6542170256Sdelphijesac 6543170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6544170256Sdelphij (eval "$ac_link") 2>conftest.er1 6545128345Stjr ac_status=$? 6546170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 6547170256Sdelphij rm -f conftest.er1 6548170256Sdelphij cat conftest.err >&5 6549128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6550170256Sdelphij (exit $ac_status); } && { 6551170256Sdelphij test -z "$ac_c_werror_flag" || 6552170256Sdelphij test ! -s conftest.err 6553170256Sdelphij } && test -s conftest$ac_exeext && 6554170256Sdelphij $as_test_x conftest$ac_exeext; then 6555170256Sdelphij { echo "$as_me:$LINENO: result: yes" >&5 6556170256Sdelphijecho "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF 655760786Sps#define HAVE_UPPER_LOWER 1 6558128345Stjr_ACEOF 655960786Sps 656060786Spselse 6561128345Stjr echo "$as_me: failed program was:" >&5 6562170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 6563170256Sdelphij 6564170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 6565170256Sdelphijecho "${ECHO_T}no" >&6; } 656660786Spsfi 656760786Sps 6568170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6569170256Sdelphij conftest$ac_exeext conftest.$ac_ext 6570170256Sdelphij 6571128345Stjr# Checks for external variable ospeed in the termcap library. 657260786Spshave_ospeed=no 6573170256Sdelphij{ echo "$as_me:$LINENO: checking termcap for ospeed" >&5 6574170256Sdelphijecho $ECHO_N "checking termcap for ospeed... $ECHO_C" >&6; } 6575128345Stjrcat >conftest.$ac_ext <<_ACEOF 6576170256Sdelphij/* confdefs.h. */ 6577170256Sdelphij_ACEOF 6578170256Sdelphijcat confdefs.h >>conftest.$ac_ext 6579170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 6580170256Sdelphij/* end confdefs.h. */ 658160786Sps 658260786Sps#include <sys/types.h> 658360786Sps#if HAVE_TERMIOS_H 658460786Sps#include <termios.h> 658560786Sps#endif 658660786Sps#if HAVE_TERMCAP_H 658760786Sps#include <termcap.h> 658860786Sps#endif 6589128345Stjrint 6590128345Stjrmain () 6591128345Stjr{ 659260786Spsospeed = 0; 6593128345Stjr ; 6594128345Stjr return 0; 6595128345Stjr} 6596128345Stjr_ACEOF 6597128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 6598170256Sdelphijif { (ac_try="$ac_link" 6599170256Sdelphijcase "(($ac_try" in 6600170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6601170256Sdelphij *) ac_try_echo=$ac_try;; 6602170256Sdelphijesac 6603170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6604170256Sdelphij (eval "$ac_link") 2>conftest.er1 6605128345Stjr ac_status=$? 6606170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 6607170256Sdelphij rm -f conftest.er1 6608170256Sdelphij cat conftest.err >&5 6609128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6610170256Sdelphij (exit $ac_status); } && { 6611170256Sdelphij test -z "$ac_c_werror_flag" || 6612170256Sdelphij test ! -s conftest.err 6613170256Sdelphij } && test -s conftest$ac_exeext && 6614170256Sdelphij $as_test_x conftest$ac_exeext; then 6615170256Sdelphij { echo "$as_me:$LINENO: result: yes - in termcap.h" >&5 6616170256Sdelphijecho "${ECHO_T}yes - in termcap.h" >&6; }; cat >>confdefs.h <<\_ACEOF 661760786Sps#define HAVE_OSPEED 1 6618128345Stjr_ACEOF 661960786Sps have_ospeed=yes 662060786Spselse 6621128345Stjr echo "$as_me: failed program was:" >&5 6622170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 6623170256Sdelphij 6624170256Sdelphij 662560786Spsfi 6626170256Sdelphij 6627170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6628170256Sdelphij conftest$ac_exeext conftest.$ac_ext 662960786Spsif test $have_ospeed = no; then 6630128345Stjrcat >conftest.$ac_ext <<_ACEOF 6631170256Sdelphij/* confdefs.h. */ 6632170256Sdelphij_ACEOF 6633170256Sdelphijcat confdefs.h >>conftest.$ac_ext 6634170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 6635170256Sdelphij/* end confdefs.h. */ 663660786Sps 6637128345Stjrint 6638128345Stjrmain () 6639128345Stjr{ 664060786Spsextern short ospeed; ospeed = 0; 6641128345Stjr ; 6642128345Stjr return 0; 6643128345Stjr} 6644128345Stjr_ACEOF 6645128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 6646170256Sdelphijif { (ac_try="$ac_link" 6647170256Sdelphijcase "(($ac_try" in 6648170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6649170256Sdelphij *) ac_try_echo=$ac_try;; 6650170256Sdelphijesac 6651170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6652170256Sdelphij (eval "$ac_link") 2>conftest.er1 6653128345Stjr ac_status=$? 6654170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 6655170256Sdelphij rm -f conftest.er1 6656170256Sdelphij cat conftest.err >&5 6657128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6658170256Sdelphij (exit $ac_status); } && { 6659170256Sdelphij test -z "$ac_c_werror_flag" || 6660170256Sdelphij test ! -s conftest.err 6661170256Sdelphij } && test -s conftest$ac_exeext && 6662170256Sdelphij $as_test_x conftest$ac_exeext; then 6663170256Sdelphij { echo "$as_me:$LINENO: result: yes - must define" >&5 6664170256Sdelphijecho "${ECHO_T}yes - must define" >&6; }; cat >>confdefs.h <<\_ACEOF 666560786Sps#define HAVE_OSPEED 1 6666128345Stjr_ACEOF 6667128345Stjr cat >>confdefs.h <<\_ACEOF 666860786Sps#define MUST_DEFINE_OSPEED 1 6669128345Stjr_ACEOF 667060786Sps 667160786Spselse 6672128345Stjr echo "$as_me: failed program was:" >&5 6673170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 6674170256Sdelphij 6675170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 6676170256Sdelphijecho "${ECHO_T}no" >&6; } 667760786Spsfi 6678170256Sdelphij 6679170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6680170256Sdelphij conftest$ac_exeext conftest.$ac_ext 668160786Spsfi 668260786Sps 6683161475Sdelphij# Compile in secure mode? 6684161475Sdelphij 6685170256Sdelphij# Check whether --with-secure was given. 6686161475Sdelphijif test "${with_secure+set}" = set; then 6687170256Sdelphij withval=$with_secure; cat >>confdefs.h <<\_ACEOF 6688161475Sdelphij#define SECURE_COMPILE 1 6689161475Sdelphij_ACEOF 6690161475Sdelphij 6691161475Sdelphijelse 6692161475Sdelphij cat >>confdefs.h <<\_ACEOF 6693161475Sdelphij#define SECURE_COMPILE 0 6694161475Sdelphij_ACEOF 6695161475Sdelphij 6696170256Sdelphijfi 6697161475Sdelphij 6698170256Sdelphij 6699128345Stjr# Checks for regular expression functions. 670060786Spshave_regex=no 670160786Spshave_posix_regex=unknown 6702170256Sdelphij{ echo "$as_me:$LINENO: checking for regcomp" >&5 6703170256Sdelphijecho $ECHO_N "checking for regcomp... $ECHO_C" >&6; } 670460786Sps 6705161475Sdelphij# Select a regular expression library. 670660786SpsWANT_REGEX=auto 6707128345Stjr 6708170256Sdelphij# Check whether --with-regex was given. 670960786Spsif test "${with_regex+set}" = set; then 6710170256Sdelphij withval=$with_regex; WANT_REGEX="$withval" 6711170256Sdelphijfi 671260786Sps 6713170256Sdelphij 671460786Spsif test $have_regex = no; then 671560786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = posix; then 6716128345Stjr# Some versions of Solaris have a regcomp() function, but it doesn't work! 6717128345Stjr# So we run a test program. If we're cross-compiling, do it the old way. 671860786Spsif test "$cross_compiling" = yes; then 671960786Sps have_posix_regex=unknown 672060786Spselse 6721128345Stjr cat >conftest.$ac_ext <<_ACEOF 6722170256Sdelphij/* confdefs.h. */ 6723170256Sdelphij_ACEOF 6724170256Sdelphijcat confdefs.h >>conftest.$ac_ext 6725170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 6726170256Sdelphij/* end confdefs.h. */ 672760786Sps 672860786Sps#include <sys/types.h> 672960786Sps#include <regex.h> 673060786Spsmain() { regex_t r; regmatch_t rm; char *text = "xabcy"; 673160786Spsif (regcomp(&r, "abc", 0)) exit(1); 673260786Spsif (regexec(&r, text, 1, &rm, 0)) exit(1); 673360786Sps#ifndef __WATCOMC__ 673460786Spsif (rm.rm_so != 1) exit(1); /* check for correct offset */ 673560786Sps#else 673660786Spsif (rm.rm_sp != text + 1) exit(1); /* check for correct offset */ 673760786Sps#endif 673860786Spsexit(0); } 6739128345Stjr_ACEOF 6740128345Stjrrm -f conftest$ac_exeext 6741170256Sdelphijif { (ac_try="$ac_link" 6742170256Sdelphijcase "(($ac_try" in 6743170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6744170256Sdelphij *) ac_try_echo=$ac_try;; 6745170256Sdelphijesac 6746170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6747170256Sdelphij (eval "$ac_link") 2>&5 6748128345Stjr ac_status=$? 6749128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6750128345Stjr (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6751170256Sdelphij { (case "(($ac_try" in 6752170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6753170256Sdelphij *) ac_try_echo=$ac_try;; 6754170256Sdelphijesac 6755170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6756170256Sdelphij (eval "$ac_try") 2>&5 6757128345Stjr ac_status=$? 6758128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6759128345Stjr (exit $ac_status); }; }; then 676060786Sps have_posix_regex=yes 676160786Spselse 6762128345Stjr echo "$as_me: program exited with status $ac_status" >&5 6763128345Stjrecho "$as_me: failed program was:" >&5 6764170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 6765170256Sdelphij 6766128345Stjr( exit $ac_status ) 6767128345Stjrhave_posix_regex=no 676860786Spsfi 6769170256Sdelphijrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 677060786Spsfi 6771170256Sdelphij 6772170256Sdelphij 677360786Spsif test $have_posix_regex = yes; then 6774170256Sdelphij { echo "$as_me:$LINENO: result: using POSIX regcomp" >&5 6775170256Sdelphijecho "${ECHO_T}using POSIX regcomp" >&6; } 6776128345Stjr cat >>confdefs.h <<\_ACEOF 677760786Sps#define HAVE_POSIX_REGCOMP 1 6778128345Stjr_ACEOF 677960786Sps 678060786Sps have_regex=yes 678160786Spselif test $have_posix_regex = unknown; then 6782128345Stjr cat >conftest.$ac_ext <<_ACEOF 6783170256Sdelphij/* confdefs.h. */ 6784170256Sdelphij_ACEOF 6785170256Sdelphijcat confdefs.h >>conftest.$ac_ext 6786170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 6787170256Sdelphij/* end confdefs.h. */ 678860786Sps 678960786Sps#include <sys/types.h> 679060786Sps#include <regex.h> 6791128345Stjrint 6792128345Stjrmain () 6793128345Stjr{ 679460786Spsregex_t *r; regfree(r); 6795128345Stjr ; 6796128345Stjr return 0; 6797128345Stjr} 6798128345Stjr_ACEOF 6799128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 6800170256Sdelphijif { (ac_try="$ac_link" 6801170256Sdelphijcase "(($ac_try" in 6802170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6803170256Sdelphij *) ac_try_echo=$ac_try;; 6804170256Sdelphijesac 6805170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6806170256Sdelphij (eval "$ac_link") 2>conftest.er1 6807128345Stjr ac_status=$? 6808170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 6809170256Sdelphij rm -f conftest.er1 6810170256Sdelphij cat conftest.err >&5 6811128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6812170256Sdelphij (exit $ac_status); } && { 6813170256Sdelphij test -z "$ac_c_werror_flag" || 6814170256Sdelphij test ! -s conftest.err 6815170256Sdelphij } && test -s conftest$ac_exeext && 6816170256Sdelphij $as_test_x conftest$ac_exeext; then 6817170256Sdelphij { echo "$as_me:$LINENO: result: using POSIX regcomp" >&5 6818170256Sdelphijecho "${ECHO_T}using POSIX regcomp" >&6; } 6819128345Stjr cat >>confdefs.h <<\_ACEOF 682060786Sps#define HAVE_POSIX_REGCOMP 1 6821128345Stjr_ACEOF 682260786Sps have_regex=yes 682360786Spselse 6824128345Stjr echo "$as_me: failed program was:" >&5 6825170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 6826170256Sdelphij 6827170256Sdelphij 682860786Spsfi 6829170256Sdelphij 6830170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6831170256Sdelphij conftest$ac_exeext conftest.$ac_ext 683260786Spselse 6833170256Sdelphij { echo "$as_me:$LINENO: result: no" >&5 6834170256Sdelphijecho "${ECHO_T}no" >&6; } 683560786Spsfi 683660786Spsfi 683760786Spsfi 683860786Sps 683960786Spsif test $have_regex = no; then 684060786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then 6841170256Sdelphij{ echo "$as_me:$LINENO: checking for pcre_compile in -lpcre" >&5 6842170256Sdelphijecho $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6; } 6843128345Stjrif test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then 6844128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 684560786Spselse 6846128345Stjr ac_check_lib_save_LIBS=$LIBS 684760786SpsLIBS="-lpcre $LIBS" 6848128345Stjrcat >conftest.$ac_ext <<_ACEOF 6849170256Sdelphij/* confdefs.h. */ 6850170256Sdelphij_ACEOF 6851170256Sdelphijcat confdefs.h >>conftest.$ac_ext 6852170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 6853170256Sdelphij/* end confdefs.h. */ 6854128345Stjr 6855170256Sdelphij/* Override any GCC internal prototype to avoid an error. 6856170256Sdelphij Use char because int might match the return type of a GCC 6857170256Sdelphij builtin and then its argument prototype would still apply. */ 6858128345Stjr#ifdef __cplusplus 6859128345Stjrextern "C" 6860128345Stjr#endif 6861128345Stjrchar pcre_compile (); 6862128345Stjrint 6863128345Stjrmain () 6864128345Stjr{ 6865170256Sdelphijreturn pcre_compile (); 6866128345Stjr ; 6867128345Stjr return 0; 6868128345Stjr} 6869128345Stjr_ACEOF 6870128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 6871170256Sdelphijif { (ac_try="$ac_link" 6872170256Sdelphijcase "(($ac_try" in 6873170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6874170256Sdelphij *) ac_try_echo=$ac_try;; 6875170256Sdelphijesac 6876170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6877170256Sdelphij (eval "$ac_link") 2>conftest.er1 6878128345Stjr ac_status=$? 6879170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 6880170256Sdelphij rm -f conftest.er1 6881170256Sdelphij cat conftest.err >&5 6882128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6883170256Sdelphij (exit $ac_status); } && { 6884170256Sdelphij test -z "$ac_c_werror_flag" || 6885170256Sdelphij test ! -s conftest.err 6886170256Sdelphij } && test -s conftest$ac_exeext && 6887170256Sdelphij $as_test_x conftest$ac_exeext; then 6888128345Stjr ac_cv_lib_pcre_pcre_compile=yes 688960786Spselse 6890128345Stjr echo "$as_me: failed program was:" >&5 6891170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 6892170256Sdelphij 6893170256Sdelphij ac_cv_lib_pcre_pcre_compile=no 689460786Spsfi 6895170256Sdelphij 6896170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6897170256Sdelphij conftest$ac_exeext conftest.$ac_ext 6898128345StjrLIBS=$ac_check_lib_save_LIBS 689960786Spsfi 6900170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_compile" >&5 6901170256Sdelphijecho "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6; } 6902128345Stjrif test $ac_cv_lib_pcre_pcre_compile = yes; then 6903170256Sdelphij { echo "$as_me:$LINENO: result: using pcre" >&5 6904170256Sdelphijecho "${ECHO_T}using pcre" >&6; }; cat >>confdefs.h <<\_ACEOF 690560786Sps#define HAVE_PCRE 1 6906128345Stjr_ACEOF 690760786Sps LIBS="$LIBS -lpcre" have_regex=yes 690860786Spsfi 690960786Sps 691060786Spsfi 691160786Spsfi 691260786Sps 691360786Spsif test $have_regex = no; then 691460786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then 6915170256Sdelphij{ echo "$as_me:$LINENO: checking for regcmp" >&5 6916170256Sdelphijecho $ECHO_N "checking for regcmp... $ECHO_C" >&6; } 6917128345Stjrif test "${ac_cv_func_regcmp+set}" = set; then 6918128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 691960786Spselse 6920128345Stjr cat >conftest.$ac_ext <<_ACEOF 6921170256Sdelphij/* confdefs.h. */ 6922170256Sdelphij_ACEOF 6923170256Sdelphijcat confdefs.h >>conftest.$ac_ext 6924170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 6925170256Sdelphij/* end confdefs.h. */ 6926170256Sdelphij/* Define regcmp to an innocuous variant, in case <limits.h> declares regcmp. 6927170256Sdelphij For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6928170256Sdelphij#define regcmp innocuous_regcmp 6929170256Sdelphij 693060786Sps/* System header to define __stub macros and hopefully few prototypes, 6931170256Sdelphij which can conflict with char regcmp (); below. 6932170256Sdelphij Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6933170256Sdelphij <limits.h> exists even on freestanding compilers. */ 6934170256Sdelphij 6935170256Sdelphij#ifdef __STDC__ 6936170256Sdelphij# include <limits.h> 6937170256Sdelphij#else 6938170256Sdelphij# include <assert.h> 6939170256Sdelphij#endif 6940170256Sdelphij 6941170256Sdelphij#undef regcmp 6942170256Sdelphij 6943170256Sdelphij/* Override any GCC internal prototype to avoid an error. 6944170256Sdelphij Use char because int might match the return type of a GCC 6945170256Sdelphij builtin and then its argument prototype would still apply. */ 6946128345Stjr#ifdef __cplusplus 6947128345Stjrextern "C" 6948128345Stjr#endif 6949128345Stjrchar regcmp (); 695060786Sps/* The GNU C library defines this for functions which it implements 695160786Sps to always fail with ENOSYS. Some functions are actually named 695260786Sps something starting with __ and the normal name is an alias. */ 6953170256Sdelphij#if defined __stub_regcmp || defined __stub___regcmp 695460786Spschoke me 695560786Sps#endif 695660786Sps 6957170256Sdelphijint 6958170256Sdelphijmain () 6959170256Sdelphij{ 6960170256Sdelphijreturn regcmp (); 6961128345Stjr ; 6962128345Stjr return 0; 6963128345Stjr} 6964128345Stjr_ACEOF 6965128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 6966170256Sdelphijif { (ac_try="$ac_link" 6967170256Sdelphijcase "(($ac_try" in 6968170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6969170256Sdelphij *) ac_try_echo=$ac_try;; 6970170256Sdelphijesac 6971170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6972170256Sdelphij (eval "$ac_link") 2>conftest.er1 6973128345Stjr ac_status=$? 6974170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 6975170256Sdelphij rm -f conftest.er1 6976170256Sdelphij cat conftest.err >&5 6977128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 6978170256Sdelphij (exit $ac_status); } && { 6979170256Sdelphij test -z "$ac_c_werror_flag" || 6980170256Sdelphij test ! -s conftest.err 6981170256Sdelphij } && test -s conftest$ac_exeext && 6982170256Sdelphij $as_test_x conftest$ac_exeext; then 6983128345Stjr ac_cv_func_regcmp=yes 698460786Spselse 6985128345Stjr echo "$as_me: failed program was:" >&5 6986170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 6987170256Sdelphij 6988170256Sdelphij ac_cv_func_regcmp=no 698960786Spsfi 6990170256Sdelphij 6991170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6992170256Sdelphij conftest$ac_exeext conftest.$ac_ext 699360786Spsfi 6994170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_func_regcmp" >&5 6995170256Sdelphijecho "${ECHO_T}$ac_cv_func_regcmp" >&6; } 6996128345Stjrif test $ac_cv_func_regcmp = yes; then 6997170256Sdelphij { echo "$as_me:$LINENO: result: using regcmp" >&5 6998170256Sdelphijecho "${ECHO_T}using regcmp" >&6; }; cat >>confdefs.h <<\_ACEOF 699960786Sps#define HAVE_REGCMP 1 7000128345Stjr_ACEOF 700160786Sps have_regex=yes 700260786Spsfi 700360786Sps 700460786Spsfi 700560786Spsfi 700660786Sps 700760786Spsif test $have_regex = no; then 700860786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then 7009128345Stjrcat >conftest.$ac_ext <<_ACEOF 7010170256Sdelphij/* confdefs.h. */ 7011170256Sdelphij_ACEOF 7012170256Sdelphijcat confdefs.h >>conftest.$ac_ext 7013170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 7014170256Sdelphij/* end confdefs.h. */ 701560786Sps 701660786Sps#include "regexp.h" 7017128345Stjrint 7018128345Stjrmain () 7019128345Stjr{ 702060786Spsregcomp(""); 7021128345Stjr ; 7022128345Stjr return 0; 7023128345Stjr} 7024128345Stjr_ACEOF 7025128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 7026170256Sdelphijif { (ac_try="$ac_link" 7027170256Sdelphijcase "(($ac_try" in 7028170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7029170256Sdelphij *) ac_try_echo=$ac_try;; 7030170256Sdelphijesac 7031170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7032170256Sdelphij (eval "$ac_link") 2>conftest.er1 7033128345Stjr ac_status=$? 7034170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 7035170256Sdelphij rm -f conftest.er1 7036170256Sdelphij cat conftest.err >&5 7037128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 7038170256Sdelphij (exit $ac_status); } && { 7039170256Sdelphij test -z "$ac_c_werror_flag" || 7040170256Sdelphij test ! -s conftest.err 7041170256Sdelphij } && test -s conftest$ac_exeext && 7042170256Sdelphij $as_test_x conftest$ac_exeext; then 7043170256Sdelphij { echo "$as_me:$LINENO: result: using V8 regcomp" >&5 7044170256Sdelphijecho "${ECHO_T}using V8 regcomp" >&6; }; cat >>confdefs.h <<\_ACEOF 704560786Sps#define HAVE_V8_REGCOMP 1 7046128345Stjr_ACEOF 704760786Sps have_regex=yes 704860786Spselse 7049128345Stjr echo "$as_me: failed program was:" >&5 7050170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 7051170256Sdelphij 7052170256Sdelphij 705360786Spsfi 7054170256Sdelphij 7055170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7056170256Sdelphij conftest$ac_exeext conftest.$ac_ext 705760786Spsfi 705860786Spsfi 705960786Sps 706060786Spsif test $have_regex = no && test -f ${srcdir}/regexp.c; then 706160786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then 7062170256Sdelphij{ echo "$as_me:$LINENO: result: using V8 regcomp -- local source" >&5 7063170256Sdelphijecho "${ECHO_T}using V8 regcomp -- local source" >&6; }; cat >>confdefs.h <<\_ACEOF 706460786Sps#define HAVE_V8_REGCOMP 1 7065128345Stjr_ACEOF 7066128345Stjr cat >>confdefs.h <<\_ACEOF 706760786Sps#define HAVE_REGEXEC2 1 7068128345Stjr_ACEOF 706960786Sps REGEX_O='regexp.$(O)' have_regex=yes 707060786Spsfi 707160786Spsfi 707260786Sps 707360786Spsif test $have_regex = no; then 707460786Spsif test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then 7075170256Sdelphij{ echo "$as_me:$LINENO: result: using re_comp" >&5 7076170256Sdelphijecho "${ECHO_T}using re_comp" >&6; }; { echo "$as_me:$LINENO: checking for re_comp" >&5 7077170256Sdelphijecho $ECHO_N "checking for re_comp... $ECHO_C" >&6; } 7078128345Stjrif test "${ac_cv_func_re_comp+set}" = set; then 7079128345Stjr echo $ECHO_N "(cached) $ECHO_C" >&6 708060786Spselse 7081128345Stjr cat >conftest.$ac_ext <<_ACEOF 7082170256Sdelphij/* confdefs.h. */ 7083170256Sdelphij_ACEOF 7084170256Sdelphijcat confdefs.h >>conftest.$ac_ext 7085170256Sdelphijcat >>conftest.$ac_ext <<_ACEOF 7086170256Sdelphij/* end confdefs.h. */ 7087170256Sdelphij/* Define re_comp to an innocuous variant, in case <limits.h> declares re_comp. 7088170256Sdelphij For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7089170256Sdelphij#define re_comp innocuous_re_comp 7090170256Sdelphij 709160786Sps/* System header to define __stub macros and hopefully few prototypes, 7092170256Sdelphij which can conflict with char re_comp (); below. 7093170256Sdelphij Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7094170256Sdelphij <limits.h> exists even on freestanding compilers. */ 7095170256Sdelphij 7096170256Sdelphij#ifdef __STDC__ 7097170256Sdelphij# include <limits.h> 7098170256Sdelphij#else 7099170256Sdelphij# include <assert.h> 7100170256Sdelphij#endif 7101170256Sdelphij 7102170256Sdelphij#undef re_comp 7103170256Sdelphij 7104170256Sdelphij/* Override any GCC internal prototype to avoid an error. 7105170256Sdelphij Use char because int might match the return type of a GCC 7106170256Sdelphij builtin and then its argument prototype would still apply. */ 7107128345Stjr#ifdef __cplusplus 7108128345Stjrextern "C" 7109128345Stjr#endif 7110128345Stjrchar re_comp (); 711160786Sps/* The GNU C library defines this for functions which it implements 711260786Sps to always fail with ENOSYS. Some functions are actually named 711360786Sps something starting with __ and the normal name is an alias. */ 7114170256Sdelphij#if defined __stub_re_comp || defined __stub___re_comp 711560786Spschoke me 711660786Sps#endif 711760786Sps 7118170256Sdelphijint 7119170256Sdelphijmain () 7120170256Sdelphij{ 7121170256Sdelphijreturn re_comp (); 7122128345Stjr ; 7123128345Stjr return 0; 7124128345Stjr} 7125128345Stjr_ACEOF 7126128345Stjrrm -f conftest.$ac_objext conftest$ac_exeext 7127170256Sdelphijif { (ac_try="$ac_link" 7128170256Sdelphijcase "(($ac_try" in 7129170256Sdelphij *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7130170256Sdelphij *) ac_try_echo=$ac_try;; 7131170256Sdelphijesac 7132170256Sdelphijeval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7133170256Sdelphij (eval "$ac_link") 2>conftest.er1 7134128345Stjr ac_status=$? 7135170256Sdelphij grep -v '^ *+' conftest.er1 >conftest.err 7136170256Sdelphij rm -f conftest.er1 7137170256Sdelphij cat conftest.err >&5 7138128345Stjr echo "$as_me:$LINENO: \$? = $ac_status" >&5 7139170256Sdelphij (exit $ac_status); } && { 7140170256Sdelphij test -z "$ac_c_werror_flag" || 7141170256Sdelphij test ! -s conftest.err 7142170256Sdelphij } && test -s conftest$ac_exeext && 7143170256Sdelphij $as_test_x conftest$ac_exeext; then 7144128345Stjr ac_cv_func_re_comp=yes 714560786Spselse 7146128345Stjr echo "$as_me: failed program was:" >&5 7147170256Sdelphijsed 's/^/| /' conftest.$ac_ext >&5 7148170256Sdelphij 7149170256Sdelphij ac_cv_func_re_comp=no 715060786Spsfi 7151170256Sdelphij 7152170256Sdelphijrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7153170256Sdelphij conftest$ac_exeext conftest.$ac_ext 715460786Spsfi 7155170256Sdelphij{ echo "$as_me:$LINENO: result: $ac_cv_func_re_comp" >&5 7156170256Sdelphijecho "${ECHO_T}$ac_cv_func_re_comp" >&6; } 7157128345Stjrif test $ac_cv_func_re_comp = yes; then 7158128345Stjr cat >>confdefs.h <<\_ACEOF 715960786Sps#define HAVE_RE_COMP 1 7160128345Stjr_ACEOF 716160786Sps have_regex=yes 716260786Spsfi 716360786Sps 716460786Spsfi 716560786Spsfi 716660786Sps 716760786Spsif test $have_regex = no; then 7168170256Sdelphij{ echo "$as_me:$LINENO: result: cannot find regular expression library" >&5 7169170256Sdelphijecho "${ECHO_T}cannot find regular expression library" >&6; }; cat >>confdefs.h <<\_ACEOF 717060786Sps#define NO_REGEX 1 7171128345Stjr_ACEOF 717260786Sps 717360786Spsfi 717460786Sps 7175128345Stjr 7176170256Sdelphij# Check whether --with-editor was given. 717760786Spsif test "${with_editor+set}" = set; then 7178170256Sdelphij withval=$with_editor; cat >>confdefs.h <<_ACEOF 717960786Sps#define EDIT_PGM "$withval" 7180128345Stjr_ACEOF 718160786Sps 7182128345Stjrelse 7183128345Stjr cat >>confdefs.h <<\_ACEOF 7184128345Stjr#define EDIT_PGM "vi" 7185128345Stjr_ACEOF 718660786Sps 7187170256Sdelphijfi 718860786Sps 7189128345Stjr 7190128345Stjr 7191128345Stjr 7192128345Stjr 7193170256Sdelphijac_config_files="$ac_config_files Makefile" 7194170256Sdelphij 7195128345Stjrcat >confcache <<\_ACEOF 719660786Sps# This file is a shell script that caches the results of configure 719760786Sps# tests run on this system so they can be shared between configure 7198128345Stjr# scripts and configure runs, see configure's option --config-cache. 7199128345Stjr# It is not useful on other systems. If it contains results you don't 7200128345Stjr# want to keep, you may remove or edit it. 720160786Sps# 7202128345Stjr# config.status only pays attention to the cache file if you give it 7203128345Stjr# the --recheck option to rerun configure. 720460786Sps# 7205128345Stjr# `ac_cv_env_foo' variables (set or unset) will be overridden when 7206128345Stjr# loading this file, other *unset* `ac_cv_foo' will be assigned the 7207128345Stjr# following values. 7208128345Stjr 7209128345Stjr_ACEOF 7210128345Stjr 721160786Sps# The following way of writing the cache mishandles newlines in values, 721260786Sps# but we know of no workaround that is simple, portable, and efficient. 7213170256Sdelphij# So, we kill variables containing newlines. 721460786Sps# Ultrix sh set writes to stderr and can't be redirected directly, 721560786Sps# and sets the high bit in the cache file unless we assign to the vars. 7216170256Sdelphij( 7217170256Sdelphij for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 7218170256Sdelphij eval ac_val=\$$ac_var 7219170256Sdelphij case $ac_val in #( 7220170256Sdelphij *${as_nl}*) 7221170256Sdelphij case $ac_var in #( 7222170256Sdelphij *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 7223170256Sdelphijecho "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 7224170256Sdelphij esac 7225170256Sdelphij case $ac_var in #( 7226170256Sdelphij _ | IFS | as_nl) ;; #( 7227170256Sdelphij *) $as_unset $ac_var ;; 7228170256Sdelphij esac ;; 7229170256Sdelphij esac 7230170256Sdelphij done 7231170256Sdelphij 7232128345Stjr (set) 2>&1 | 7233170256Sdelphij case $as_nl`(ac_space=' '; set) 2>&1` in #( 7234170256Sdelphij *${as_nl}ac_space=\ *) 7235128345Stjr # `set' does not quote correctly, so add quotes (double-quote 7236128345Stjr # substitution turns \\\\ into \\, and sed turns \\ into \). 7237128345Stjr sed -n \ 7238170256Sdelphij "s/'/'\\\\''/g; 7239170256Sdelphij s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7240170256Sdelphij ;; #( 7241128345Stjr *) 7242128345Stjr # `set' quotes correctly as required by POSIX, so do not add quotes. 7243170256Sdelphij sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 7244128345Stjr ;; 7245170256Sdelphij esac | 7246170256Sdelphij sort 7247170256Sdelphij) | 7248128345Stjr sed ' 7249170256Sdelphij /^ac_cv_env_/b end 7250128345Stjr t clear 7251170256Sdelphij :clear 7252128345Stjr s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7253128345Stjr t end 7254170256Sdelphij s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7255170256Sdelphij :end' >>confcache 7256170256Sdelphijif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 7257170256Sdelphij if test -w "$cache_file"; then 7258170256Sdelphij test "x$cache_file" != "x/dev/null" && 7259170256Sdelphij { echo "$as_me:$LINENO: updating cache $cache_file" >&5 7260170256Sdelphijecho "$as_me: updating cache $cache_file" >&6;} 7261128345Stjr cat confcache >$cache_file 726260786Sps else 7263170256Sdelphij { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 7264170256Sdelphijecho "$as_me: not updating unwritable cache $cache_file" >&6;} 726560786Sps fi 726660786Spsfi 726760786Spsrm -f confcache 726860786Sps 726960786Spstest "x$prefix" = xNONE && prefix=$ac_default_prefix 727060786Sps# Let make expand exec_prefix. 727160786Spstest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 727260786Sps 727360786SpsDEFS=-DHAVE_CONFIG_H 727460786Sps 7275128345Stjrac_libobjs= 7276128345Stjrac_ltlibobjs= 7277128345Stjrfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 7278128345Stjr # 1. Remove the extension, and $U if already installed. 7279170256Sdelphij ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 7280170256Sdelphij ac_i=`echo "$ac_i" | sed "$ac_script"` 7281170256Sdelphij # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 7282170256Sdelphij # will be set to the directory where LIBOBJS objects are built. 7283170256Sdelphij ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 7284170256Sdelphij ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 7285128345Stjrdone 7286128345StjrLIBOBJS=$ac_libobjs 7287128345Stjr 7288128345StjrLTLIBOBJS=$ac_ltlibobjs 7289128345Stjr 7290128345Stjr 7291128345Stjr 729260786Sps: ${CONFIG_STATUS=./config.status} 7293128345Stjrac_clean_files_save=$ac_clean_files 7294128345Stjrac_clean_files="$ac_clean_files $CONFIG_STATUS" 7295128345Stjr{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 7296128345Stjrecho "$as_me: creating $CONFIG_STATUS" >&6;} 7297128345Stjrcat >$CONFIG_STATUS <<_ACEOF 7298128345Stjr#! $SHELL 7299128345Stjr# Generated by $as_me. 730060786Sps# Run this file to recreate the current configuration. 730160786Sps# Compiler output produced by configure, useful for debugging 7302128345Stjr# configure, is in config.log if it exists. 730360786Sps 7304128345Stjrdebug=false 7305170256Sdelphijac_cs_recheck=false 7306170256Sdelphijac_cs_silent=false 7307128345StjrSHELL=\${CONFIG_SHELL-$SHELL} 7308128345Stjr_ACEOF 7309128345Stjr 7310128345Stjrcat >>$CONFIG_STATUS <<\_ACEOF 7311128345Stjr## --------------------- ## 7312128345Stjr## M4sh Initialization. ## 7313128345Stjr## --------------------- ## 7314128345Stjr 7315170256Sdelphij# Be more Bourne compatible 7316170256SdelphijDUALCASE=1; export DUALCASE # for MKS sh 7317128345Stjrif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 7318128345Stjr emulate sh 7319128345Stjr NULLCMD=: 7320128345Stjr # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 7321128345Stjr # is contrary to our usage. Disable this feature. 7322128345Stjr alias -g '${1+"$@"}'='"$@"' 7323170256Sdelphij setopt NO_GLOB_SUBST 7324170256Sdelphijelse 7325170256Sdelphij case `(set -o) 2>/dev/null` in 7326170256Sdelphij *posix*) set -o posix ;; 7327170256Sdelphijesac 7328170256Sdelphij 7329128345Stjrfi 7330128345Stjr 7331170256Sdelphij 7332170256Sdelphij 7333170256Sdelphij 7334170256Sdelphij# PATH needs CR 7335170256Sdelphij# Avoid depending upon Character Ranges. 7336170256Sdelphijas_cr_letters='abcdefghijklmnopqrstuvwxyz' 7337170256Sdelphijas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7338170256Sdelphijas_cr_Letters=$as_cr_letters$as_cr_LETTERS 7339170256Sdelphijas_cr_digits='0123456789' 7340170256Sdelphijas_cr_alnum=$as_cr_Letters$as_cr_digits 7341170256Sdelphij 7342170256Sdelphij# The user is always right. 7343170256Sdelphijif test "${PATH_SEPARATOR+set}" != set; then 7344170256Sdelphij echo "#! /bin/sh" >conf$$.sh 7345170256Sdelphij echo "exit 0" >>conf$$.sh 7346170256Sdelphij chmod +x conf$$.sh 7347170256Sdelphij if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7348170256Sdelphij PATH_SEPARATOR=';' 7349170256Sdelphij else 7350170256Sdelphij PATH_SEPARATOR=: 7351170256Sdelphij fi 7352170256Sdelphij rm -f conf$$.sh 7353170256Sdelphijfi 7354170256Sdelphij 7355128345Stjr# Support unset when possible. 7356170256Sdelphijif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7357128345Stjr as_unset=unset 7358128345Stjrelse 7359128345Stjr as_unset=false 7360128345Stjrfi 7361128345Stjr 7362128345Stjr 7363170256Sdelphij# IFS 7364170256Sdelphij# We need space, tab and new line, in precisely that order. Quoting is 7365170256Sdelphij# there to prevent editors from complaining about space-tab. 7366170256Sdelphij# (If _AS_PATH_WALK were called with IFS unset, it would disable word 7367170256Sdelphij# splitting by setting IFS to empty value.) 7368170256Sdelphijas_nl=' 7369170256Sdelphij' 7370170256SdelphijIFS=" "" $as_nl" 7371170256Sdelphij 7372170256Sdelphij# Find who we are. Look in the path if we contain no directory separator. 7373170256Sdelphijcase $0 in 7374170256Sdelphij *[\\/]* ) as_myself=$0 ;; 7375170256Sdelphij *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7376170256Sdelphijfor as_dir in $PATH 7377170256Sdelphijdo 7378170256Sdelphij IFS=$as_save_IFS 7379170256Sdelphij test -z "$as_dir" && as_dir=. 7380170256Sdelphij test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 7381170256Sdelphijdone 7382170256SdelphijIFS=$as_save_IFS 7383170256Sdelphij 7384170256Sdelphij ;; 7385170256Sdelphijesac 7386170256Sdelphij# We did not find ourselves, most probably we were run as `sh COMMAND' 7387170256Sdelphij# in which case we are not to be found in the path. 7388170256Sdelphijif test "x$as_myself" = x; then 7389170256Sdelphij as_myself=$0 7390170256Sdelphijfi 7391170256Sdelphijif test ! -f "$as_myself"; then 7392170256Sdelphij echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 7393170256Sdelphij { (exit 1); exit 1; } 7394170256Sdelphijfi 7395170256Sdelphij 7396128345Stjr# Work around bugs in pre-3.0 UWIN ksh. 7397170256Sdelphijfor as_var in ENV MAIL MAILPATH 7398170256Sdelphijdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 7399170256Sdelphijdone 7400128345StjrPS1='$ ' 7401128345StjrPS2='> ' 7402128345StjrPS4='+ ' 7403128345Stjr 7404128345Stjr# NLS nuisances. 7405170256Sdelphijfor as_var in \ 7406170256Sdelphij LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 7407170256Sdelphij LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 7408170256Sdelphij LC_TELEPHONE LC_TIME 740960786Spsdo 7410170256Sdelphij if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 7411128345Stjr eval $as_var=C; export $as_var 7412128345Stjr else 7413170256Sdelphij ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 7414128345Stjr fi 741560786Spsdone 741660786Sps 7417128345Stjr# Required to use basename. 7418170256Sdelphijif expr a : '\(a\)' >/dev/null 2>&1 && 7419170256Sdelphij test "X`expr 00001 : '.*\(...\)'`" = X001; then 7420128345Stjr as_expr=expr 7421128345Stjrelse 7422128345Stjr as_expr=false 7423128345Stjrfi 742460786Sps 7425170256Sdelphijif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 7426128345Stjr as_basename=basename 7427128345Stjrelse 7428128345Stjr as_basename=false 7429128345Stjrfi 743060786Sps 743160786Sps 7432128345Stjr# Name of the executable. 7433170256Sdelphijas_me=`$as_basename -- "$0" || 7434128345Stjr$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7435128345Stjr X"$0" : 'X\(//\)$' \| \ 7436170256Sdelphij X"$0" : 'X\(/\)' \| . 2>/dev/null || 7437128345Stjrecho X/"$0" | 7438170256Sdelphij sed '/^.*\/\([^/][^/]*\)\/*$/{ 7439170256Sdelphij s//\1/ 7440170256Sdelphij q 7441170256Sdelphij } 7442170256Sdelphij /^X\/\(\/\/\)$/{ 7443170256Sdelphij s//\1/ 7444170256Sdelphij q 7445170256Sdelphij } 7446170256Sdelphij /^X\/\(\/\).*/{ 7447170256Sdelphij s//\1/ 7448170256Sdelphij q 7449170256Sdelphij } 7450170256Sdelphij s/.*/./; q'` 745160786Sps 7452170256Sdelphij# CDPATH. 7453170256Sdelphij$as_unset CDPATH 745460786Sps 7455128345Stjr 7456128345Stjr 7457128345Stjr as_lineno_1=$LINENO 7458128345Stjr as_lineno_2=$LINENO 7459128345Stjr test "x$as_lineno_1" != "x$as_lineno_2" && 7460170256Sdelphij test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 7461128345Stjr 7462128345Stjr # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 7463128345Stjr # uniformly replaced by the line number. The first 'sed' inserts a 7464170256Sdelphij # line-number line after each line using $LINENO; the second 'sed' 7465170256Sdelphij # does the real work. The second script uses 'N' to pair each 7466170256Sdelphij # line-number line with the line containing $LINENO, and appends 7467170256Sdelphij # trailing '-' during substitution so that $LINENO is not a special 7468170256Sdelphij # case at line end. 7469128345Stjr # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 7470170256Sdelphij # scripts with optimization help from Paolo Bonzini. Blame Lee 7471170256Sdelphij # E. McMahon (1931-1989) for sed's syntax. :-) 7472170256Sdelphij sed -n ' 7473170256Sdelphij p 7474170256Sdelphij /[$]LINENO/= 7475170256Sdelphij ' <$as_myself | 7476128345Stjr sed ' 7477170256Sdelphij s/[$]LINENO.*/&-/ 7478170256Sdelphij t lineno 7479170256Sdelphij b 7480170256Sdelphij :lineno 7481128345Stjr N 7482170256Sdelphij :loop 7483170256Sdelphij s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 7484128345Stjr t loop 7485170256Sdelphij s/-\n.*// 7486128345Stjr ' >$as_me.lineno && 7487170256Sdelphij chmod +x "$as_me.lineno" || 7488170256Sdelphij { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 7489128345Stjr { (exit 1); exit 1; }; } 7490128345Stjr 7491128345Stjr # Don't try to exec as it changes $[0], causing all sort of problems 7492128345Stjr # (the dirname of $[0] is not the place where we might find the 7493170256Sdelphij # original and so on. Autoconf is especially sensitive to this). 7494170256Sdelphij . "./$as_me.lineno" 7495128345Stjr # Exit status is that of the last command. 7496128345Stjr exit 7497128345Stjr} 7498128345Stjr 7499128345Stjr 7500170256Sdelphijif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7501170256Sdelphij as_dirname=dirname 7502170256Sdelphijelse 7503170256Sdelphij as_dirname=false 7504170256Sdelphijfi 7505170256Sdelphij 7506170256SdelphijECHO_C= ECHO_N= ECHO_T= 7507170256Sdelphijcase `echo -n x` in 7508170256Sdelphij-n*) 7509170256Sdelphij case `echo 'x\c'` in 7510170256Sdelphij *c*) ECHO_T=' ';; # ECHO_T is single tab character. 7511170256Sdelphij *) ECHO_C='\c';; 7512170256Sdelphij esac;; 7513170256Sdelphij*) 7514170256Sdelphij ECHO_N='-n';; 7515128345Stjresac 7516128345Stjr 7517170256Sdelphijif expr a : '\(a\)' >/dev/null 2>&1 && 7518170256Sdelphij test "X`expr 00001 : '.*\(...\)'`" = X001; then 7519128345Stjr as_expr=expr 7520128345Stjrelse 7521128345Stjr as_expr=false 7522128345Stjrfi 7523128345Stjr 7524128345Stjrrm -f conf$$ conf$$.exe conf$$.file 7525170256Sdelphijif test -d conf$$.dir; then 7526170256Sdelphij rm -f conf$$.dir/conf$$.file 7527170256Sdelphijelse 7528170256Sdelphij rm -f conf$$.dir 7529170256Sdelphij mkdir conf$$.dir 7530170256Sdelphijfi 7531128345Stjrecho >conf$$.file 7532128345Stjrif ln -s conf$$.file conf$$ 2>/dev/null; then 7533170256Sdelphij as_ln_s='ln -s' 7534170256Sdelphij # ... but there are two gotchas: 7535170256Sdelphij # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 7536170256Sdelphij # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 7537170256Sdelphij # In both cases, we have to default to `cp -p'. 7538170256Sdelphij ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7539128345Stjr as_ln_s='cp -p' 7540128345Stjrelif ln conf$$.file conf$$ 2>/dev/null; then 7541128345Stjr as_ln_s=ln 7542128345Stjrelse 7543128345Stjr as_ln_s='cp -p' 7544128345Stjrfi 7545170256Sdelphijrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 7546170256Sdelphijrmdir conf$$.dir 2>/dev/null 7547128345Stjr 7548128345Stjrif mkdir -p . 2>/dev/null; then 7549128345Stjr as_mkdir_p=: 7550128345Stjrelse 7551170256Sdelphij test -d ./-p && rmdir ./-p 7552128345Stjr as_mkdir_p=false 7553128345Stjrfi 7554128345Stjr 7555170256Sdelphijif test -x / >/dev/null 2>&1; then 7556170256Sdelphij as_test_x='test -x' 7557170256Sdelphijelse 7558170256Sdelphij if ls -dL / >/dev/null 2>&1; then 7559170256Sdelphij as_ls_L_option=L 7560170256Sdelphij else 7561170256Sdelphij as_ls_L_option= 7562170256Sdelphij fi 7563170256Sdelphij as_test_x=' 7564170256Sdelphij eval sh -c '\'' 7565170256Sdelphij if test -d "$1"; then 7566170256Sdelphij test -d "$1/."; 7567170256Sdelphij else 7568170256Sdelphij case $1 in 7569170256Sdelphij -*)set "./$1";; 7570170256Sdelphij esac; 7571170256Sdelphij case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 7572170256Sdelphij ???[sx]*):;;*)false;;esac;fi 7573170256Sdelphij '\'' sh 7574170256Sdelphij ' 7575170256Sdelphijfi 7576170256Sdelphijas_executable_p=$as_test_x 7577128345Stjr 7578128345Stjr# Sed expression to map a string onto a valid CPP name. 7579170256Sdelphijas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7580128345Stjr 7581128345Stjr# Sed expression to map a string onto a valid variable name. 7582170256Sdelphijas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7583128345Stjr 7584128345Stjr 7585128345Stjrexec 6>&1 7586128345Stjr 7587170256Sdelphij# Save the log message, to keep $[0] and so on meaningful, and to 7588128345Stjr# report actual input values of CONFIG_FILES etc. instead of their 7589170256Sdelphij# values after options handling. 7590170256Sdelphijac_log=" 7591128345StjrThis file was extended by less $as_me 1, which was 7592170256Sdelphijgenerated by GNU Autoconf 2.61. Invocation command line was 7593128345Stjr 7594128345Stjr CONFIG_FILES = $CONFIG_FILES 7595128345Stjr CONFIG_HEADERS = $CONFIG_HEADERS 7596128345Stjr CONFIG_LINKS = $CONFIG_LINKS 7597128345Stjr CONFIG_COMMANDS = $CONFIG_COMMANDS 7598128345Stjr $ $0 $@ 7599128345Stjr 7600170256Sdelphijon `(hostname || uname -n) 2>/dev/null | sed 1q` 7601170256Sdelphij" 7602170256Sdelphij 7603128345Stjr_ACEOF 7604128345Stjr 7605170256Sdelphijcat >>$CONFIG_STATUS <<_ACEOF 7606128345Stjr# Files that config.status was made for. 7607170256Sdelphijconfig_files="$ac_config_files" 7608170256Sdelphijconfig_headers="$ac_config_headers" 7609128345Stjr 7610170256Sdelphij_ACEOF 7611128345Stjr 7612128345Stjrcat >>$CONFIG_STATUS <<\_ACEOF 7613128345Stjrac_cs_usage="\ 7614128345Stjr\`$as_me' instantiates files from templates according to the 7615128345Stjrcurrent configuration. 7616128345Stjr 7617128345StjrUsage: $0 [OPTIONS] [FILE]... 7618128345Stjr 7619128345Stjr -h, --help print this help, then exit 7620170256Sdelphij -V, --version print version number and configuration settings, then exit 7621170256Sdelphij -q, --quiet do not print progress messages 7622128345Stjr -d, --debug don't remove temporary files 7623128345Stjr --recheck update $as_me by reconfiguring in the same conditions 7624128345Stjr --file=FILE[:TEMPLATE] 7625170256Sdelphij instantiate the configuration file FILE 7626128345Stjr --header=FILE[:TEMPLATE] 7627170256Sdelphij instantiate the configuration header FILE 7628128345Stjr 7629128345StjrConfiguration files: 7630128345Stjr$config_files 7631128345Stjr 7632128345StjrConfiguration headers: 7633128345Stjr$config_headers 7634128345Stjr 7635128345StjrReport bugs to <bug-autoconf@gnu.org>." 7636170256Sdelphij 7637128345Stjr_ACEOF 7638128345Stjrcat >>$CONFIG_STATUS <<_ACEOF 7639128345Stjrac_cs_version="\\ 7640128345Stjrless config.status 1 7641170256Sdelphijconfigured by $0, generated by GNU Autoconf 2.61, 7642170256Sdelphij with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 7643128345Stjr 7644170256SdelphijCopyright (C) 2006 Free Software Foundation, Inc. 7645128345StjrThis config.status script is free software; the Free Software Foundation 7646128345Stjrgives unlimited permission to copy, distribute and modify it." 7647170256Sdelphij 7648170256Sdelphijac_pwd='$ac_pwd' 7649170256Sdelphijsrcdir='$srcdir' 7650170256SdelphijINSTALL='$INSTALL' 7651128345Stjr_ACEOF 7652128345Stjr 7653128345Stjrcat >>$CONFIG_STATUS <<\_ACEOF 7654128345Stjr# If no file are specified by the user, then we need to provide default 7655128345Stjr# value. By we need to know if files were specified by the user. 7656128345Stjrac_need_defaults=: 7657128345Stjrwhile test $# != 0 7658128345Stjrdo 7659128345Stjr case $1 in 7660128345Stjr --*=*) 7661170256Sdelphij ac_option=`expr "X$1" : 'X\([^=]*\)='` 7662170256Sdelphij ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 7663128345Stjr ac_shift=: 7664128345Stjr ;; 7665170256Sdelphij *) 7666128345Stjr ac_option=$1 7667128345Stjr ac_optarg=$2 7668128345Stjr ac_shift=shift 7669128345Stjr ;; 7670128345Stjr esac 7671128345Stjr 7672128345Stjr case $ac_option in 7673128345Stjr # Handling of the options. 7674128345Stjr -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7675170256Sdelphij ac_cs_recheck=: ;; 7676170256Sdelphij --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 7677170256Sdelphij echo "$ac_cs_version"; exit ;; 7678170256Sdelphij --debug | --debu | --deb | --de | --d | -d ) 7679128345Stjr debug=: ;; 7680128345Stjr --file | --fil | --fi | --f ) 7681128345Stjr $ac_shift 7682128345Stjr CONFIG_FILES="$CONFIG_FILES $ac_optarg" 7683128345Stjr ac_need_defaults=false;; 7684128345Stjr --header | --heade | --head | --hea ) 7685128345Stjr $ac_shift 7686128345Stjr CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 7687128345Stjr ac_need_defaults=false;; 7688170256Sdelphij --he | --h) 7689170256Sdelphij # Conflict between --help and --header 7690170256Sdelphij { echo "$as_me: error: ambiguous option: $1 7691170256SdelphijTry \`$0 --help' for more information." >&2 7692170256Sdelphij { (exit 1); exit 1; }; };; 7693170256Sdelphij --help | --hel | -h ) 7694170256Sdelphij echo "$ac_cs_usage"; exit ;; 7695170256Sdelphij -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7696170256Sdelphij | -silent | --silent | --silen | --sile | --sil | --si | --s) 7697170256Sdelphij ac_cs_silent=: ;; 7698128345Stjr 7699128345Stjr # This is an error. 7700170256Sdelphij -*) { echo "$as_me: error: unrecognized option: $1 7701170256SdelphijTry \`$0 --help' for more information." >&2 7702128345Stjr { (exit 1); exit 1; }; } ;; 7703128345Stjr 7704170256Sdelphij *) ac_config_targets="$ac_config_targets $1" 7705170256Sdelphij ac_need_defaults=false ;; 7706128345Stjr 7707128345Stjr esac 7708128345Stjr shift 770960786Spsdone 7710128345Stjr 7711170256Sdelphijac_configure_extra_args= 7712128345Stjr 7713170256Sdelphijif $ac_cs_silent; then 7714170256Sdelphij exec 6>/dev/null 7715170256Sdelphij ac_configure_extra_args="$ac_configure_extra_args --silent" 7716170256Sdelphijfi 7717128345Stjr 7718170256Sdelphij_ACEOF 7719170256Sdelphijcat >>$CONFIG_STATUS <<_ACEOF 7720170256Sdelphijif \$ac_cs_recheck; then 7721170256Sdelphij echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 7722170256Sdelphij CONFIG_SHELL=$SHELL 7723170256Sdelphij export CONFIG_SHELL 7724170256Sdelphij exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7725170256Sdelphijfi 7726128345Stjr 7727170256Sdelphij_ACEOF 7728170256Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF 7729170256Sdelphijexec 5>>config.log 7730170256Sdelphij{ 7731170256Sdelphij echo 7732170256Sdelphij sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7733170256Sdelphij## Running $as_me. ## 7734170256Sdelphij_ASBOX 7735170256Sdelphij echo "$ac_log" 7736170256Sdelphij} >&5 7737128345Stjr 7738170256Sdelphij_ACEOF 7739170256Sdelphijcat >>$CONFIG_STATUS <<_ACEOF 7740170256Sdelphij_ACEOF 7741128345Stjr 7742128345Stjrcat >>$CONFIG_STATUS <<\_ACEOF 7743170256Sdelphij 7744170256Sdelphij# Handling of arguments. 7745128345Stjrfor ac_config_target in $ac_config_targets 7746128345Stjrdo 7747170256Sdelphij case $ac_config_target in 7748170256Sdelphij "defines.h") CONFIG_HEADERS="$CONFIG_HEADERS defines.h" ;; 7749170256Sdelphij "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7750170256Sdelphij 7751128345Stjr *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 7752128345Stjrecho "$as_me: error: invalid argument: $ac_config_target" >&2;} 7753128345Stjr { (exit 1); exit 1; }; };; 7754128345Stjr esac 7755128345Stjrdone 7756128345Stjr 7757170256Sdelphij 7758128345Stjr# If the user did not use the arguments to specify the items to instantiate, 7759128345Stjr# then the envvar interface is used. Set only those that are not. 7760128345Stjr# We use the long form for the default assignment because of an extremely 7761128345Stjr# bizarre bug on SunOS 4.1.3. 7762128345Stjrif $ac_need_defaults; then 7763128345Stjr test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7764128345Stjr test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 776560786Spsfi 776660786Sps 7767170256Sdelphij# Have a temporary directory for convenience. Make it in the build tree 7768170256Sdelphij# simply because there is no reason against having it here, and in addition, 7769170256Sdelphij# creating and moving files from /tmp can sometimes cause problems. 7770170256Sdelphij# Hook for its removal unless debugging. 7771170256Sdelphij# Note that there is a small window in which the directory will not be cleaned: 7772170256Sdelphij# after its creation but before its name has been assigned to `$tmp'. 7773128345Stjr$debug || 7774128345Stjr{ 7775170256Sdelphij tmp= 7776170256Sdelphij trap 'exit_status=$? 7777170256Sdelphij { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 7778170256Sdelphij' 0 7779128345Stjr trap '{ (exit 1); exit 1; }' 1 2 13 15 7780128345Stjr} 7781170256Sdelphij# Create a (secure) tmp directory for tmp files. 778260786Sps 7783128345Stjr{ 7784170256Sdelphij tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 7785128345Stjr test -n "$tmp" && test -d "$tmp" 7786128345Stjr} || 7787128345Stjr{ 7788170256Sdelphij tmp=./conf$$-$RANDOM 7789170256Sdelphij (umask 077 && mkdir "$tmp") 7790128345Stjr} || 7791128345Stjr{ 7792170256Sdelphij echo "$me: cannot create a temporary directory in ." >&2 7793128345Stjr { (exit 1); exit 1; } 7794128345Stjr} 7795128345Stjr 7796128345Stjr# 7797170256Sdelphij# Set up the sed scripts for CONFIG_FILES section. 7798128345Stjr# 7799128345Stjr 7800128345Stjr# No need to generate the scripts if there are no CONFIG_FILES. 7801128345Stjr# This happens for instance when ./config.status config.h 7802170256Sdelphijif test -n "$CONFIG_FILES"; then 7803128345Stjr 7804128345Stjr_ACEOF 7805128345Stjr 7806170256Sdelphij 7807170256Sdelphij 7808170256Sdelphijac_delim='%!_!# ' 7809170256Sdelphijfor ac_last_try in false false false false false :; do 7810170256Sdelphij cat >conf$$subs.sed <<_ACEOF 7811170256SdelphijSHELL!$SHELL$ac_delim 7812170256SdelphijPATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 7813170256SdelphijPACKAGE_NAME!$PACKAGE_NAME$ac_delim 7814170256SdelphijPACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 7815170256SdelphijPACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 7816170256SdelphijPACKAGE_STRING!$PACKAGE_STRING$ac_delim 7817170256SdelphijPACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 7818170256Sdelphijexec_prefix!$exec_prefix$ac_delim 7819170256Sdelphijprefix!$prefix$ac_delim 7820170256Sdelphijprogram_transform_name!$program_transform_name$ac_delim 7821170256Sdelphijbindir!$bindir$ac_delim 7822170256Sdelphijsbindir!$sbindir$ac_delim 7823170256Sdelphijlibexecdir!$libexecdir$ac_delim 7824170256Sdelphijdatarootdir!$datarootdir$ac_delim 7825170256Sdelphijdatadir!$datadir$ac_delim 7826170256Sdelphijsysconfdir!$sysconfdir$ac_delim 7827170256Sdelphijsharedstatedir!$sharedstatedir$ac_delim 7828170256Sdelphijlocalstatedir!$localstatedir$ac_delim 7829170256Sdelphijincludedir!$includedir$ac_delim 7830170256Sdelphijoldincludedir!$oldincludedir$ac_delim 7831170256Sdelphijdocdir!$docdir$ac_delim 7832170256Sdelphijinfodir!$infodir$ac_delim 7833170256Sdelphijhtmldir!$htmldir$ac_delim 7834170256Sdelphijdvidir!$dvidir$ac_delim 7835170256Sdelphijpdfdir!$pdfdir$ac_delim 7836170256Sdelphijpsdir!$psdir$ac_delim 7837170256Sdelphijlibdir!$libdir$ac_delim 7838170256Sdelphijlocaledir!$localedir$ac_delim 7839170256Sdelphijmandir!$mandir$ac_delim 7840170256SdelphijDEFS!$DEFS$ac_delim 7841170256SdelphijECHO_C!$ECHO_C$ac_delim 7842170256SdelphijECHO_N!$ECHO_N$ac_delim 7843170256SdelphijECHO_T!$ECHO_T$ac_delim 7844170256SdelphijLIBS!$LIBS$ac_delim 7845170256Sdelphijbuild_alias!$build_alias$ac_delim 7846170256Sdelphijhost_alias!$host_alias$ac_delim 7847170256Sdelphijtarget_alias!$target_alias$ac_delim 7848170256SdelphijCC!$CC$ac_delim 7849170256SdelphijCFLAGS!$CFLAGS$ac_delim 7850170256SdelphijLDFLAGS!$LDFLAGS$ac_delim 7851170256SdelphijCPPFLAGS!$CPPFLAGS$ac_delim 7852170256Sdelphijac_ct_CC!$ac_ct_CC$ac_delim 7853170256SdelphijEXEEXT!$EXEEXT$ac_delim 7854170256SdelphijOBJEXT!$OBJEXT$ac_delim 7855170256SdelphijCPP!$CPP$ac_delim 7856170256SdelphijGREP!$GREP$ac_delim 7857170256SdelphijEGREP!$EGREP$ac_delim 7858170256SdelphijINSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 7859170256SdelphijINSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 7860170256SdelphijINSTALL_DATA!$INSTALL_DATA$ac_delim 7861170256SdelphijREGEX_O!$REGEX_O$ac_delim 7862170256SdelphijLIBOBJS!$LIBOBJS$ac_delim 7863170256SdelphijLTLIBOBJS!$LTLIBOBJS$ac_delim 7864170256Sdelphij_ACEOF 7865170256Sdelphij 7866170256Sdelphij if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then 7867170256Sdelphij break 7868170256Sdelphij elif $ac_last_try; then 7869170256Sdelphij { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 7870170256Sdelphijecho "$as_me: error: could not make $CONFIG_STATUS" >&2;} 7871170256Sdelphij { (exit 1); exit 1; }; } 7872170256Sdelphij else 7873170256Sdelphij ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7874128345Stjr fi 7875170256Sdelphijdone 7876128345Stjr 7877170256Sdelphijac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 7878170256Sdelphijif test -n "$ac_eof"; then 7879170256Sdelphij ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 7880170256Sdelphij ac_eof=`expr $ac_eof + 1` 7881170256Sdelphijfi 7882170256Sdelphij 7883170256Sdelphijcat >>$CONFIG_STATUS <<_ACEOF 7884170256Sdelphijcat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 7885170256Sdelphij/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 7886128345Stjr_ACEOF 7887170256Sdelphijsed ' 7888170256Sdelphijs/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 7889170256Sdelphijs/^/s,@/; s/!/@,|#_!!_#|/ 7890170256Sdelphij:n 7891170256Sdelphijt n 7892170256Sdelphijs/'"$ac_delim"'$/,g/; t 7893170256Sdelphijs/$/\\/; p 7894170256SdelphijN; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 7895170256Sdelphij' >>$CONFIG_STATUS <conf$$subs.sed 7896170256Sdelphijrm -f conf$$subs.sed 7897170256Sdelphijcat >>$CONFIG_STATUS <<_ACEOF 7898170256Sdelphij:end 7899170256Sdelphijs/|#_!!_#|//g 7900170256SdelphijCEOF$ac_eof 7901170256Sdelphij_ACEOF 7902170256Sdelphij 7903170256Sdelphij 7904170256Sdelphij# VPATH may cause trouble with some makes, so we remove $(srcdir), 7905170256Sdelphij# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 7906170256Sdelphij# trailing colons and then remove the whole line if VPATH becomes empty 7907170256Sdelphij# (actually we leave an empty line to preserve line numbers). 7908170256Sdelphijif test "x$srcdir" = x.; then 7909170256Sdelphij ac_vpsub='/^[ ]*VPATH[ ]*=/{ 7910170256Sdelphijs/:*\$(srcdir):*/:/ 7911170256Sdelphijs/:*\${srcdir}:*/:/ 7912170256Sdelphijs/:*@srcdir@:*/:/ 7913170256Sdelphijs/^\([^=]*=[ ]*\):*/\1/ 7914170256Sdelphijs/:*$// 7915170256Sdelphijs/^[^=]*=[ ]*$// 7916170256Sdelphij}' 7917170256Sdelphijfi 7918170256Sdelphij 7919128345Stjrcat >>$CONFIG_STATUS <<\_ACEOF 7920170256Sdelphijfi # test -n "$CONFIG_FILES" 7921170256Sdelphij 7922170256Sdelphij 7923170256Sdelphijfor ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 7924170256Sdelphijdo 7925170256Sdelphij case $ac_tag in 7926170256Sdelphij :[FHLC]) ac_mode=$ac_tag; continue;; 792760786Sps esac 7928170256Sdelphij case $ac_mode$ac_tag in 7929170256Sdelphij :[FHL]*:*);; 7930170256Sdelphij :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 7931170256Sdelphijecho "$as_me: error: Invalid tag $ac_tag." >&2;} 7932170256Sdelphij { (exit 1); exit 1; }; };; 7933170256Sdelphij :[FH]-) ac_tag=-:-;; 7934170256Sdelphij :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 7935170256Sdelphij esac 7936170256Sdelphij ac_save_IFS=$IFS 7937170256Sdelphij IFS=: 7938170256Sdelphij set x $ac_tag 7939170256Sdelphij IFS=$ac_save_IFS 7940170256Sdelphij shift 7941170256Sdelphij ac_file=$1 7942170256Sdelphij shift 794360786Sps 7944170256Sdelphij case $ac_mode in 7945170256Sdelphij :L) ac_source=$1;; 7946170256Sdelphij :[FH]) 7947170256Sdelphij ac_file_inputs= 7948170256Sdelphij for ac_f 7949170256Sdelphij do 7950170256Sdelphij case $ac_f in 7951170256Sdelphij -) ac_f="$tmp/stdin";; 7952170256Sdelphij *) # Look for the file first in the build tree, then in the source tree 7953170256Sdelphij # (if the path is not absolute). The absolute path cannot be DOS-style, 7954170256Sdelphij # because $ac_f cannot contain `:'. 7955170256Sdelphij test -f "$ac_f" || 7956170256Sdelphij case $ac_f in 7957170256Sdelphij [\\/$]*) false;; 7958170256Sdelphij *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 7959170256Sdelphij esac || 7960170256Sdelphij { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 7961170256Sdelphijecho "$as_me: error: cannot find input file: $ac_f" >&2;} 7962170256Sdelphij { (exit 1); exit 1; }; };; 7963170256Sdelphij esac 7964170256Sdelphij ac_file_inputs="$ac_file_inputs $ac_f" 7965170256Sdelphij done 7966170256Sdelphij 7967170256Sdelphij # Let's still pretend it is `configure' which instantiates (i.e., don't 7968170256Sdelphij # use $as_me), people would be surprised to read: 7969170256Sdelphij # /* config.h. Generated by config.status. */ 7970170256Sdelphij configure_input="Generated from "`IFS=: 7971170256Sdelphij echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 7972170256Sdelphij if test x"$ac_file" != x-; then 7973170256Sdelphij configure_input="$ac_file. $configure_input" 7974170256Sdelphij { echo "$as_me:$LINENO: creating $ac_file" >&5 7975170256Sdelphijecho "$as_me: creating $ac_file" >&6;} 7976170256Sdelphij fi 7977170256Sdelphij 7978170256Sdelphij case $ac_tag in 7979170256Sdelphij *:-:* | *:-) cat >"$tmp/stdin";; 7980170256Sdelphij esac 7981170256Sdelphij ;; 7982170256Sdelphij esac 7983170256Sdelphij 7984170256Sdelphij ac_dir=`$as_dirname -- "$ac_file" || 7985128345Stjr$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7986170256Sdelphij X"$ac_file" : 'X\(//\)[^/]' \| \ 7987170256Sdelphij X"$ac_file" : 'X\(//\)$' \| \ 7988170256Sdelphij X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 7989128345Stjrecho X"$ac_file" | 7990170256Sdelphij sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7991170256Sdelphij s//\1/ 7992170256Sdelphij q 7993170256Sdelphij } 7994170256Sdelphij /^X\(\/\/\)[^/].*/{ 7995170256Sdelphij s//\1/ 7996170256Sdelphij q 7997170256Sdelphij } 7998170256Sdelphij /^X\(\/\/\)$/{ 7999170256Sdelphij s//\1/ 8000170256Sdelphij q 8001170256Sdelphij } 8002170256Sdelphij /^X\(\/\).*/{ 8003170256Sdelphij s//\1/ 8004170256Sdelphij q 8005170256Sdelphij } 8006170256Sdelphij s/.*/./; q'` 8007170256Sdelphij { as_dir="$ac_dir" 8008170256Sdelphij case $as_dir in #( 8009170256Sdelphij -*) as_dir=./$as_dir;; 8010170256Sdelphij esac 8011170256Sdelphij test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 8012128345Stjr as_dirs= 8013170256Sdelphij while :; do 8014170256Sdelphij case $as_dir in #( 8015170256Sdelphij *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 8016170256Sdelphij *) as_qdir=$as_dir;; 8017170256Sdelphij esac 8018170256Sdelphij as_dirs="'$as_qdir' $as_dirs" 8019170256Sdelphij as_dir=`$as_dirname -- "$as_dir" || 8020128345Stjr$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8021170256Sdelphij X"$as_dir" : 'X\(//\)[^/]' \| \ 8022170256Sdelphij X"$as_dir" : 'X\(//\)$' \| \ 8023170256Sdelphij X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8024128345Stjrecho X"$as_dir" | 8025170256Sdelphij sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8026170256Sdelphij s//\1/ 8027170256Sdelphij q 8028170256Sdelphij } 8029170256Sdelphij /^X\(\/\/\)[^/].*/{ 8030170256Sdelphij s//\1/ 8031170256Sdelphij q 8032170256Sdelphij } 8033170256Sdelphij /^X\(\/\/\)$/{ 8034170256Sdelphij s//\1/ 8035170256Sdelphij q 8036170256Sdelphij } 8037170256Sdelphij /^X\(\/\).*/{ 8038170256Sdelphij s//\1/ 8039170256Sdelphij q 8040170256Sdelphij } 8041170256Sdelphij s/.*/./; q'` 8042170256Sdelphij test -d "$as_dir" && break 8043128345Stjr done 8044170256Sdelphij test -z "$as_dirs" || eval "mkdir $as_dirs" 8045170256Sdelphij } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 8046170256Sdelphijecho "$as_me: error: cannot create directory $as_dir" >&2;} 8047128345Stjr { (exit 1); exit 1; }; }; } 8048128345Stjr ac_builddir=. 8049128345Stjr 8050170256Sdelphijcase "$ac_dir" in 8051170256Sdelphij.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 8052170256Sdelphij*) 8053128345Stjr ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 8054170256Sdelphij # A ".." for each directory in $ac_dir_suffix. 8055170256Sdelphij ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 8056170256Sdelphij case $ac_top_builddir_sub in 8057170256Sdelphij "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 8058170256Sdelphij *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 8059170256Sdelphij esac ;; 8060170256Sdelphijesac 8061170256Sdelphijac_abs_top_builddir=$ac_pwd 8062170256Sdelphijac_abs_builddir=$ac_pwd$ac_dir_suffix 8063170256Sdelphij# for backward compatibility: 8064170256Sdelphijac_top_builddir=$ac_top_build_prefix 8065128345Stjr 8066128345Stjrcase $srcdir in 8067170256Sdelphij .) # We are building in place. 8068128345Stjr ac_srcdir=. 8069170256Sdelphij ac_top_srcdir=$ac_top_builddir_sub 8070170256Sdelphij ac_abs_top_srcdir=$ac_pwd ;; 8071170256Sdelphij [\\/]* | ?:[\\/]* ) # Absolute name. 8072128345Stjr ac_srcdir=$srcdir$ac_dir_suffix; 8073170256Sdelphij ac_top_srcdir=$srcdir 8074170256Sdelphij ac_abs_top_srcdir=$srcdir ;; 8075170256Sdelphij *) # Relative name. 8076170256Sdelphij ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 8077170256Sdelphij ac_top_srcdir=$ac_top_build_prefix$srcdir 8078170256Sdelphij ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 8079128345Stjresac 8080170256Sdelphijac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 808160786Sps 808260786Sps 8083170256Sdelphij case $ac_mode in 8084170256Sdelphij :F) 8085170256Sdelphij # 8086170256Sdelphij # CONFIG_FILE 8087170256Sdelphij # 8088170256Sdelphij 8089128345Stjr case $INSTALL in 8090128345Stjr [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 8091170256Sdelphij *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 809260786Sps esac 8093170256Sdelphij_ACEOF 809460786Sps 8095170256Sdelphijcat >>$CONFIG_STATUS <<\_ACEOF 8096170256Sdelphij# If the template does not know about datarootdir, expand it. 8097170256Sdelphij# FIXME: This hack should be removed a few years after 2.60. 8098170256Sdelphijac_datarootdir_hack=; ac_datarootdir_seen= 809960786Sps 8100170256Sdelphijcase `sed -n '/datarootdir/ { 8101170256Sdelphij p 8102170256Sdelphij q 8103170256Sdelphij} 8104170256Sdelphij/@datadir@/p 8105170256Sdelphij/@docdir@/p 8106170256Sdelphij/@infodir@/p 8107170256Sdelphij/@localedir@/p 8108170256Sdelphij/@mandir@/p 8109170256Sdelphij' $ac_file_inputs` in 8110170256Sdelphij*datarootdir*) ac_datarootdir_seen=yes;; 8111170256Sdelphij*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 8112170256Sdelphij { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 8113170256Sdelphijecho "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 8114128345Stjr_ACEOF 8115128345Stjrcat >>$CONFIG_STATUS <<_ACEOF 8116170256Sdelphij ac_datarootdir_hack=' 8117170256Sdelphij s&@datadir@&$datadir&g 8118170256Sdelphij s&@docdir@&$docdir&g 8119170256Sdelphij s&@infodir@&$infodir&g 8120170256Sdelphij s&@localedir@&$localedir&g 8121170256Sdelphij s&@mandir@&$mandir&g 8122170256Sdelphij s&\\\${datarootdir}&$datarootdir&g' ;; 8123170256Sdelphijesac 8124170256Sdelphij_ACEOF 8125170256Sdelphij 8126170256Sdelphij# Neutralize VPATH when `$srcdir' = `.'. 8127170256Sdelphij# Shell code in configure.ac might set extrasub. 8128170256Sdelphij# FIXME: do we really want to maintain this feature? 8129170256Sdelphijcat >>$CONFIG_STATUS <<_ACEOF 8130128345Stjr sed "$ac_vpsub 8131128345Stjr$extrasub 8132128345Stjr_ACEOF 8133128345Stjrcat >>$CONFIG_STATUS <<\_ACEOF 8134128345Stjr:t 8135128345Stjr/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8136170256Sdelphijs&@configure_input@&$configure_input&;t t 8137170256Sdelphijs&@top_builddir@&$ac_top_builddir_sub&;t t 8138170256Sdelphijs&@srcdir@&$ac_srcdir&;t t 8139170256Sdelphijs&@abs_srcdir@&$ac_abs_srcdir&;t t 8140170256Sdelphijs&@top_srcdir@&$ac_top_srcdir&;t t 8141170256Sdelphijs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 8142170256Sdelphijs&@builddir@&$ac_builddir&;t t 8143170256Sdelphijs&@abs_builddir@&$ac_abs_builddir&;t t 8144170256Sdelphijs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 8145170256Sdelphijs&@INSTALL@&$ac_INSTALL&;t t 8146170256Sdelphij$ac_datarootdir_hack 8147170256Sdelphij" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 8148128345Stjr 8149170256Sdelphijtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 8150170256Sdelphij { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 8151170256Sdelphij { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 8152170256Sdelphij { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8153170256Sdelphijwhich seems to be undefined. Please make sure it is defined." >&5 8154170256Sdelphijecho "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8155170256Sdelphijwhich seems to be undefined. Please make sure it is defined." >&2;} 8156128345Stjr 8157170256Sdelphij rm -f "$tmp/stdin" 8158128345Stjr case $ac_file in 8159170256Sdelphij -) cat "$tmp/out"; rm -f "$tmp/out";; 8160170256Sdelphij *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 816160786Sps esac 8162170256Sdelphij ;; 8163170256Sdelphij :H) 8164170256Sdelphij # 8165170256Sdelphij # CONFIG_HEADER 8166170256Sdelphij # 8167170256Sdelphij_ACEOF 816860786Sps 8169170256Sdelphij# Transform confdefs.h into a sed script `conftest.defines', that 8170170256Sdelphij# substitutes the proper values into config.h.in to produce config.h. 8171170256Sdelphijrm -f conftest.defines conftest.tail 8172170256Sdelphij# First, append a space to every undef/define line, to ease matching. 8173170256Sdelphijecho 's/$/ /' >conftest.defines 8174170256Sdelphij# Then, protect against being on the right side of a sed subst, or in 8175170256Sdelphij# an unquoted here document, in config.status. If some macros were 8176170256Sdelphij# called several times there might be several #defines for the same 8177170256Sdelphij# symbol, which is useless. But do not sort them, since the last 8178170256Sdelphij# AC_DEFINE must be honored. 8179170256Sdelphijac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 8180170256Sdelphij# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 8181170256Sdelphij# NAME is the cpp macro being defined, VALUE is the value it is being given. 8182170256Sdelphij# PARAMS is the parameter list in the macro definition--in most cases, it's 8183170256Sdelphij# just an empty string. 8184170256Sdelphijac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 8185170256Sdelphijac_dB='\\)[ (].*,\\1define\\2' 8186170256Sdelphijac_dC=' ' 8187170256Sdelphijac_dD=' ,' 818860786Sps 8189170256Sdelphijuniq confdefs.h | 8190170256Sdelphij sed -n ' 8191170256Sdelphij t rset 8192170256Sdelphij :rset 8193170256Sdelphij s/^[ ]*#[ ]*define[ ][ ]*// 8194170256Sdelphij t ok 8195170256Sdelphij d 8196170256Sdelphij :ok 8197170256Sdelphij s/[\\&,]/\\&/g 8198170256Sdelphij s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 8199170256Sdelphij s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 8200170256Sdelphij ' >>conftest.defines 820160786Sps 8202170256Sdelphij# Remove the space that was appended to ease matching. 8203170256Sdelphij# Then replace #undef with comments. This is necessary, for 820460786Sps# example, in the case of _POSIX_SOURCE, which is predefined and required 820560786Sps# on some systems where configure will not decide to define it. 8206170256Sdelphij# (The regexp can be short, since the line contains either #define or #undef.) 8207170256Sdelphijecho 's/ $// 8208170256Sdelphijs,^[ #]*u.*,/* & */,' >>conftest.defines 820960786Sps 8210170256Sdelphij# Break up conftest.defines: 8211170256Sdelphijac_max_sed_lines=50 8212170256Sdelphij 8213170256Sdelphij# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 8214170256Sdelphij# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 8215170256Sdelphij# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 8216170256Sdelphij# et cetera. 8217170256Sdelphijac_in='$ac_file_inputs' 8218170256Sdelphijac_out='"$tmp/out1"' 8219170256Sdelphijac_nxt='"$tmp/out2"' 8220170256Sdelphij 8221170256Sdelphijwhile : 8222128345Stjrdo 8223170256Sdelphij # Write a here document: 8224170256Sdelphij cat >>$CONFIG_STATUS <<_ACEOF 8225170256Sdelphij # First, check the format of the line: 8226170256Sdelphij cat >"\$tmp/defines.sed" <<\\CEOF 8227170256Sdelphij/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 8228170256Sdelphij/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 8229170256Sdelphijb 8230170256Sdelphij:def 8231170256Sdelphij_ACEOF 8232170256Sdelphij sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 8233128345Stjr echo 'CEOF 8234170256Sdelphij sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 8235170256Sdelphij ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 8236170256Sdelphij sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 8237170256Sdelphij grep . conftest.tail >/dev/null || break 8238128345Stjr rm -f conftest.defines 8239128345Stjr mv conftest.tail conftest.defines 8240128345Stjrdone 8241170256Sdelphijrm -f conftest.defines conftest.tail 824260786Sps 8243170256Sdelphijecho "ac_result=$ac_in" >>$CONFIG_STATUS 8244128345Stjrcat >>$CONFIG_STATUS <<\_ACEOF 8245128345Stjr if test x"$ac_file" != x-; then 8246170256Sdelphij echo "/* $configure_input */" >"$tmp/config.h" 8247170256Sdelphij cat "$ac_result" >>"$tmp/config.h" 8248170256Sdelphij if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 8249128345Stjr { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 8250128345Stjrecho "$as_me: $ac_file is unchanged" >&6;} 8251128345Stjr else 8252128345Stjr rm -f $ac_file 8253170256Sdelphij mv "$tmp/config.h" $ac_file 825460786Sps fi 8255128345Stjr else 8256170256Sdelphij echo "/* $configure_input */" 8257170256Sdelphij cat "$ac_result" 825860786Sps fi 8259170256Sdelphij rm -f "$tmp/out12" 8260170256Sdelphij ;; 826160786Sps 826260786Sps 8263170256Sdelphij esac 8264170256Sdelphij 8265170256Sdelphijdone # for ac_tag 8266170256Sdelphij 8267170256Sdelphij 8268128345Stjr{ (exit 0); exit 0; } 8269128345Stjr_ACEOF 827060786Spschmod +x $CONFIG_STATUS 8271128345Stjrac_clean_files=$ac_clean_files_save 827260786Sps 8273128345Stjr 8274128345Stjr# configure is writing to config.log, and then calls config.status. 8275128345Stjr# config.status does its own redirection, appending to config.log. 8276128345Stjr# Unfortunately, on DOS this fails, as config.log is still kept open 8277128345Stjr# by configure, so config.status won't be able to write to it; its 8278128345Stjr# output is simply discarded. So we exec the FD to /dev/null, 8279128345Stjr# effectively closing config.log, so it can be properly (re)opened and 8280128345Stjr# appended to by config.status. When coming back to configure, we 8281128345Stjr# need to make the FD available again. 8282128345Stjrif test "$no_create" != yes; then 8283128345Stjr ac_cs_success=: 8284170256Sdelphij ac_config_status_args= 8285170256Sdelphij test "$silent" = yes && 8286170256Sdelphij ac_config_status_args="$ac_config_status_args --quiet" 8287128345Stjr exec 5>/dev/null 8288170256Sdelphij $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 8289128345Stjr exec 5>>config.log 8290128345Stjr # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8291128345Stjr # would make configure fail if this is the last instruction. 8292128345Stjr $ac_cs_success || { (exit 1); exit 1; } 8293128345Stjrfi 8294128345Stjr 8295