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