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