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