configure revision d7f45af802330a0e1450afa05185d3722e77a76c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552exec 7<&0 </dev/null 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570SHELL=${CONFIG_SHELL-/bin/sh} 571 572# Identity of this package. 573PACKAGE_NAME= 574PACKAGE_TARNAME= 575PACKAGE_VERSION= 576PACKAGE_STRING= 577PACKAGE_BUGREPORT= 578 579ac_unique_file="version.h" 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='SHELL 617PATH_SEPARATOR 618PACKAGE_NAME 619PACKAGE_TARNAME 620PACKAGE_VERSION 621PACKAGE_STRING 622PACKAGE_BUGREPORT 623exec_prefix 624prefix 625program_transform_name 626bindir 627sbindir 628libexecdir 629datarootdir 630datadir 631sysconfdir 632sharedstatedir 633localstatedir 634includedir 635oldincludedir 636docdir 637infodir 638htmldir 639dvidir 640pdfdir 641psdir 642libdir 643localedir 644mandir 645DEFS 646ECHO_C 647ECHO_N 648ECHO_T 649LIBS 650build_alias 651host_alias 652target_alias 653E2FSPROGS_YEAR 654E2FSPROGS_MONTH 655E2FSPROGS_DAY 656E2FSPROGS_VERSION 657E2FSPROGS_PKGVER 658build 659build_cpu 660build_vendor 661build_os 662host 663host_cpu 664host_vendor 665host_os 666CC 667CFLAGS 668LDFLAGS 669CPPFLAGS 670ac_ct_CC 671EXEEXT 672OBJEXT 673CPP 674LD 675GREP 676EGREP 677LINUX_INCLUDE 678MAINTAINER_CMT 679HTREE_CMT 680ELF_CMT 681BSDLIB_CMT 682PROFILE_CMT 683CHECKER_CMT 684LIB_EXT 685STATIC_LIB_EXT 686PROFILED_LIB_EXT 687LDFLAG_DYNAMIC 688PRIVATE_LIBS_CMT 689TEST_IO_CMT 690DEBUGFS_CMT 691IMAGER_CMT 692RESIZER_CMT 693FSCK_PROG 694FSCK_MAN 695E2INITRD_PROG 696E2INITRD_MAN 697UUIDD_CMT 698GETTEXT_PACKAGE 699PACKAGE 700VERSION 701SET_MAKE 702INSTALL_PROGRAM 703INSTALL_SCRIPT 704INSTALL_DATA 705MKINSTALLDIRS 706USE_NLS 707MSGFMT 708GMSGFMT 709XGETTEXT 710MSGMERGE 711RANLIB 712ALLOCA 713GLIBC21 714HAVE_POSIX_PRINTF 715HAVE_ASPRINTF 716HAVE_SNPRINTF 717HAVE_WPRINTF 718LIBICONV 719LTLIBICONV 720INTLBISON 721BUILD_INCLUDED_LIBINTL 722USE_INCLUDED_LIBINTL 723CATOBJEXT 724DATADIRNAME 725INSTOBJEXT 726GENCAT 727INTLOBJS 728INTL_LIBTOOL_SUFFIX_PREFIX 729INTLLIBS 730LIBINTL 731LTLIBINTL 732POSUB 733BINARY_TYPE 734LN 735LN_S 736MV 737CP 738RM 739CHMOD 740AWK 741SED 742PERL 743LDCONFIG 744AR 745STRIP 746MAKEINFO 747BUILD_CC 748SIZEOF_SHORT 749SIZEOF_INT 750SIZEOF_LONG 751SIZEOF_LONG_LONG 752SOCKET_LIB 753DLOPEN_LIB 754SEM_INIT_LIB 755UNI_DIFF_OPTS 756LINUX_CMT 757CYGWIN_CMT 758UNIX_CMT 759root_prefix 760root_bindir 761root_sbindir 762root_libdir 763root_sysconfdir 764LDFLAG_STATIC 765SS_DIR 766ET_DIR 767DO_TEST_SUITE 768INTL_FLAGS 769BUILD_CFLAGS 770BUILD_LDFLAGS 771LIBOBJS 772LTLIBOBJS' 773ac_subst_files='MCONFIG 774MAKEFILE_ELF 775MAKEFILE_BSDLIB 776MAKEFILE_PROFILE 777MAKEFILE_CHECKER 778MAKEFILE_LIBRARY 779ASM_TYPES_HEADER 780PUBLIC_CONFIG_HEADER' 781 ac_precious_vars='build_alias 782host_alias 783target_alias 784CC 785CFLAGS 786LDFLAGS 787LIBS 788CPPFLAGS 789CPP' 790 791 792# Initialize some variables set by options. 793ac_init_help= 794ac_init_version=false 795# The variables have the same names as the options, with 796# dashes changed to underlines. 797cache_file=/dev/null 798exec_prefix=NONE 799no_create= 800no_recursion= 801prefix=NONE 802program_prefix=NONE 803program_suffix=NONE 804program_transform_name=s,x,x, 805silent= 806site= 807srcdir= 808verbose= 809x_includes=NONE 810x_libraries=NONE 811 812# Installation directory options. 813# These are left unexpanded so users can "make install exec_prefix=/foo" 814# and all the variables that are supposed to be based on exec_prefix 815# by default will actually change. 816# Use braces instead of parens because sh, perl, etc. also accept them. 817# (The list follows the same order as the GNU Coding Standards.) 818bindir='${exec_prefix}/bin' 819sbindir='${exec_prefix}/sbin' 820libexecdir='${exec_prefix}/libexec' 821datarootdir='${prefix}/share' 822datadir='${datarootdir}' 823sysconfdir='${prefix}/etc' 824sharedstatedir='${prefix}/com' 825localstatedir='${prefix}/var' 826includedir='${prefix}/include' 827oldincludedir='/usr/include' 828docdir='${datarootdir}/doc/${PACKAGE}' 829infodir='${datarootdir}/info' 830htmldir='${docdir}' 831dvidir='${docdir}' 832pdfdir='${docdir}' 833psdir='${docdir}' 834libdir='${exec_prefix}/lib' 835localedir='${datarootdir}/locale' 836mandir='${datarootdir}/man' 837 838ac_prev= 839ac_dashdash= 840for ac_option 841do 842 # If the previous option needs an argument, assign it. 843 if test -n "$ac_prev"; then 844 eval $ac_prev=\$ac_option 845 ac_prev= 846 continue 847 fi 848 849 case $ac_option in 850 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 851 *) ac_optarg=yes ;; 852 esac 853 854 # Accept the important Cygnus configure options, so we can diagnose typos. 855 856 case $ac_dashdash$ac_option in 857 --) 858 ac_dashdash=yes ;; 859 860 -bindir | --bindir | --bindi | --bind | --bin | --bi) 861 ac_prev=bindir ;; 862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 863 bindir=$ac_optarg ;; 864 865 -build | --build | --buil | --bui | --bu) 866 ac_prev=build_alias ;; 867 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 868 build_alias=$ac_optarg ;; 869 870 -cache-file | --cache-file | --cache-fil | --cache-fi \ 871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 872 ac_prev=cache_file ;; 873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 875 cache_file=$ac_optarg ;; 876 877 --config-cache | -C) 878 cache_file=config.cache ;; 879 880 -datadir | --datadir | --datadi | --datad) 881 ac_prev=datadir ;; 882 -datadir=* | --datadir=* | --datadi=* | --datad=*) 883 datadir=$ac_optarg ;; 884 885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 886 | --dataroo | --dataro | --datar) 887 ac_prev=datarootdir ;; 888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 890 datarootdir=$ac_optarg ;; 891 892 -disable-* | --disable-*) 893 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 894 # Reject names that are not valid shell variable names. 895 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 896 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 897 { (exit 1); exit 1; }; } 898 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 899 eval enable_$ac_feature=no ;; 900 901 -docdir | --docdir | --docdi | --doc | --do) 902 ac_prev=docdir ;; 903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 904 docdir=$ac_optarg ;; 905 906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 907 ac_prev=dvidir ;; 908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 909 dvidir=$ac_optarg ;; 910 911 -enable-* | --enable-*) 912 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 913 # Reject names that are not valid shell variable names. 914 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 915 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 916 { (exit 1); exit 1; }; } 917 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 918 eval enable_$ac_feature=\$ac_optarg ;; 919 920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 922 | --exec | --exe | --ex) 923 ac_prev=exec_prefix ;; 924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 926 | --exec=* | --exe=* | --ex=*) 927 exec_prefix=$ac_optarg ;; 928 929 -gas | --gas | --ga | --g) 930 # Obsolete; use --with-gas. 931 with_gas=yes ;; 932 933 -help | --help | --hel | --he | -h) 934 ac_init_help=long ;; 935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 936 ac_init_help=recursive ;; 937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 938 ac_init_help=short ;; 939 940 -host | --host | --hos | --ho) 941 ac_prev=host_alias ;; 942 -host=* | --host=* | --hos=* | --ho=*) 943 host_alias=$ac_optarg ;; 944 945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 946 ac_prev=htmldir ;; 947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 948 | --ht=*) 949 htmldir=$ac_optarg ;; 950 951 -includedir | --includedir | --includedi | --included | --include \ 952 | --includ | --inclu | --incl | --inc) 953 ac_prev=includedir ;; 954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 955 | --includ=* | --inclu=* | --incl=* | --inc=*) 956 includedir=$ac_optarg ;; 957 958 -infodir | --infodir | --infodi | --infod | --info | --inf) 959 ac_prev=infodir ;; 960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 961 infodir=$ac_optarg ;; 962 963 -libdir | --libdir | --libdi | --libd) 964 ac_prev=libdir ;; 965 -libdir=* | --libdir=* | --libdi=* | --libd=*) 966 libdir=$ac_optarg ;; 967 968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 969 | --libexe | --libex | --libe) 970 ac_prev=libexecdir ;; 971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 972 | --libexe=* | --libex=* | --libe=*) 973 libexecdir=$ac_optarg ;; 974 975 -localedir | --localedir | --localedi | --localed | --locale) 976 ac_prev=localedir ;; 977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 978 localedir=$ac_optarg ;; 979 980 -localstatedir | --localstatedir | --localstatedi | --localstated \ 981 | --localstate | --localstat | --localsta | --localst | --locals) 982 ac_prev=localstatedir ;; 983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 985 localstatedir=$ac_optarg ;; 986 987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 988 ac_prev=mandir ;; 989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 990 mandir=$ac_optarg ;; 991 992 -nfp | --nfp | --nf) 993 # Obsolete; use --without-fp. 994 with_fp=no ;; 995 996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 997 | --no-cr | --no-c | -n) 998 no_create=yes ;; 999 1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1002 no_recursion=yes ;; 1003 1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1006 | --oldin | --oldi | --old | --ol | --o) 1007 ac_prev=oldincludedir ;; 1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1011 oldincludedir=$ac_optarg ;; 1012 1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1014 ac_prev=prefix ;; 1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1016 prefix=$ac_optarg ;; 1017 1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1019 | --program-pre | --program-pr | --program-p) 1020 ac_prev=program_prefix ;; 1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1023 program_prefix=$ac_optarg ;; 1024 1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1026 | --program-suf | --program-su | --program-s) 1027 ac_prev=program_suffix ;; 1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1030 program_suffix=$ac_optarg ;; 1031 1032 -program-transform-name | --program-transform-name \ 1033 | --program-transform-nam | --program-transform-na \ 1034 | --program-transform-n | --program-transform- \ 1035 | --program-transform | --program-transfor \ 1036 | --program-transfo | --program-transf \ 1037 | --program-trans | --program-tran \ 1038 | --progr-tra | --program-tr | --program-t) 1039 ac_prev=program_transform_name ;; 1040 -program-transform-name=* | --program-transform-name=* \ 1041 | --program-transform-nam=* | --program-transform-na=* \ 1042 | --program-transform-n=* | --program-transform-=* \ 1043 | --program-transform=* | --program-transfor=* \ 1044 | --program-transfo=* | --program-transf=* \ 1045 | --program-trans=* | --program-tran=* \ 1046 | --progr-tra=* | --program-tr=* | --program-t=*) 1047 program_transform_name=$ac_optarg ;; 1048 1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1050 ac_prev=pdfdir ;; 1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1052 pdfdir=$ac_optarg ;; 1053 1054 -psdir | --psdir | --psdi | --psd | --ps) 1055 ac_prev=psdir ;; 1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1057 psdir=$ac_optarg ;; 1058 1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1060 | -silent | --silent | --silen | --sile | --sil) 1061 silent=yes ;; 1062 1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1064 ac_prev=sbindir ;; 1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1066 | --sbi=* | --sb=*) 1067 sbindir=$ac_optarg ;; 1068 1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1071 | --sharedst | --shareds | --shared | --share | --shar \ 1072 | --sha | --sh) 1073 ac_prev=sharedstatedir ;; 1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1077 | --sha=* | --sh=*) 1078 sharedstatedir=$ac_optarg ;; 1079 1080 -site | --site | --sit) 1081 ac_prev=site ;; 1082 -site=* | --site=* | --sit=*) 1083 site=$ac_optarg ;; 1084 1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1086 ac_prev=srcdir ;; 1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1088 srcdir=$ac_optarg ;; 1089 1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1091 | --syscon | --sysco | --sysc | --sys | --sy) 1092 ac_prev=sysconfdir ;; 1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1095 sysconfdir=$ac_optarg ;; 1096 1097 -target | --target | --targe | --targ | --tar | --ta | --t) 1098 ac_prev=target_alias ;; 1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1100 target_alias=$ac_optarg ;; 1101 1102 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1103 verbose=yes ;; 1104 1105 -version | --version | --versio | --versi | --vers | -V) 1106 ac_init_version=: ;; 1107 1108 -with-* | --with-*) 1109 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1110 # Reject names that are not valid shell variable names. 1111 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1112 { echo "$as_me: error: invalid package name: $ac_package" >&2 1113 { (exit 1); exit 1; }; } 1114 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1115 eval with_$ac_package=\$ac_optarg ;; 1116 1117 -without-* | --without-*) 1118 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1119 # Reject names that are not valid shell variable names. 1120 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1121 { echo "$as_me: error: invalid package name: $ac_package" >&2 1122 { (exit 1); exit 1; }; } 1123 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1124 eval with_$ac_package=no ;; 1125 1126 --x) 1127 # Obsolete; use --with-x. 1128 with_x=yes ;; 1129 1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1131 | --x-incl | --x-inc | --x-in | --x-i) 1132 ac_prev=x_includes ;; 1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1135 x_includes=$ac_optarg ;; 1136 1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1139 ac_prev=x_libraries ;; 1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1142 x_libraries=$ac_optarg ;; 1143 1144 -*) { echo "$as_me: error: unrecognized option: $ac_option 1145Try \`$0 --help' for more information." >&2 1146 { (exit 1); exit 1; }; } 1147 ;; 1148 1149 *=*) 1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1153 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1154 { (exit 1); exit 1; }; } 1155 eval $ac_envvar=\$ac_optarg 1156 export $ac_envvar ;; 1157 1158 *) 1159 # FIXME: should be removed in autoconf 3.0. 1160 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1162 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1163 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1164 ;; 1165 1166 esac 1167done 1168 1169if test -n "$ac_prev"; then 1170 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1171 { echo "$as_me: error: missing argument to $ac_option" >&2 1172 { (exit 1); exit 1; }; } 1173fi 1174 1175# Be sure to have absolute directory names. 1176for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1177 datadir sysconfdir sharedstatedir localstatedir includedir \ 1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1179 libdir localedir mandir 1180do 1181 eval ac_val=\$$ac_var 1182 case $ac_val in 1183 [\\/$]* | ?:[\\/]* ) continue;; 1184 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1185 esac 1186 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1187 { (exit 1); exit 1; }; } 1188done 1189 1190# There might be people who depend on the old broken behavior: `$host' 1191# used to hold the argument of --host etc. 1192# FIXME: To remove some day. 1193build=$build_alias 1194host=$host_alias 1195target=$target_alias 1196 1197# FIXME: To remove some day. 1198if test "x$host_alias" != x; then 1199 if test "x$build_alias" = x; then 1200 cross_compiling=maybe 1201 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1202 If a cross compiler is detected then cross compile mode will be used." >&2 1203 elif test "x$build_alias" != "x$host_alias"; then 1204 cross_compiling=yes 1205 fi 1206fi 1207 1208ac_tool_prefix= 1209test -n "$host_alias" && ac_tool_prefix=$host_alias- 1210 1211test "$silent" = yes && exec 6>/dev/null 1212 1213 1214ac_pwd=`pwd` && test -n "$ac_pwd" && 1215ac_ls_di=`ls -di .` && 1216ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1217 { echo "$as_me: error: Working directory cannot be determined" >&2 1218 { (exit 1); exit 1; }; } 1219test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1220 { echo "$as_me: error: pwd does not report name of working directory" >&2 1221 { (exit 1); exit 1; }; } 1222 1223 1224# Find the source files, if location was not specified. 1225if test -z "$srcdir"; then 1226 ac_srcdir_defaulted=yes 1227 # Try the directory containing this script, then the parent directory. 1228 ac_confdir=`$as_dirname -- "$0" || 1229$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1230 X"$0" : 'X\(//\)[^/]' \| \ 1231 X"$0" : 'X\(//\)$' \| \ 1232 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1233echo X"$0" | 1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1235 s//\1/ 1236 q 1237 } 1238 /^X\(\/\/\)[^/].*/{ 1239 s//\1/ 1240 q 1241 } 1242 /^X\(\/\/\)$/{ 1243 s//\1/ 1244 q 1245 } 1246 /^X\(\/\).*/{ 1247 s//\1/ 1248 q 1249 } 1250 s/.*/./; q'` 1251 srcdir=$ac_confdir 1252 if test ! -r "$srcdir/$ac_unique_file"; then 1253 srcdir=.. 1254 fi 1255else 1256 ac_srcdir_defaulted=no 1257fi 1258if test ! -r "$srcdir/$ac_unique_file"; then 1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1260 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1261 { (exit 1); exit 1; }; } 1262fi 1263ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1264ac_abs_confdir=`( 1265 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1266 { (exit 1); exit 1; }; } 1267 pwd)` 1268# When building in place, set srcdir=. 1269if test "$ac_abs_confdir" = "$ac_pwd"; then 1270 srcdir=. 1271fi 1272# Remove unnecessary trailing slashes from srcdir. 1273# Double slashes in file names in object file debugging info 1274# mess up M-x gdb in Emacs. 1275case $srcdir in 1276*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1277esac 1278for ac_var in $ac_precious_vars; do 1279 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1280 eval ac_env_${ac_var}_value=\$${ac_var} 1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1282 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1283done 1284 1285# 1286# Report the --help message. 1287# 1288if test "$ac_init_help" = "long"; then 1289 # Omit some internal or obsolete options to make the list less imposing. 1290 # This message is too long to be a string in the A/UX 3.1 sh. 1291 cat <<_ACEOF 1292\`configure' configures this package to adapt to many kinds of systems. 1293 1294Usage: $0 [OPTION]... [VAR=VALUE]... 1295 1296To assign environment variables (e.g., CC, CFLAGS...), specify them as 1297VAR=VALUE. See below for descriptions of some of the useful variables. 1298 1299Defaults for the options are specified in brackets. 1300 1301Configuration: 1302 -h, --help display this help and exit 1303 --help=short display options specific to this package 1304 --help=recursive display the short help of all the included packages 1305 -V, --version display version information and exit 1306 -q, --quiet, --silent do not print \`checking...' messages 1307 --cache-file=FILE cache test results in FILE [disabled] 1308 -C, --config-cache alias for \`--cache-file=config.cache' 1309 -n, --no-create do not create output files 1310 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1311 1312Installation directories: 1313 --prefix=PREFIX install architecture-independent files in PREFIX 1314 [$ac_default_prefix] 1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1316 [PREFIX] 1317 1318By default, \`make install' will install all the files in 1319\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1320an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1321for instance \`--prefix=\$HOME'. 1322 1323For better control, use the options below. 1324 1325Fine tuning of the installation directories: 1326 --bindir=DIR user executables [EPREFIX/bin] 1327 --sbindir=DIR system admin executables [EPREFIX/sbin] 1328 --libexecdir=DIR program executables [EPREFIX/libexec] 1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1332 --libdir=DIR object code libraries [EPREFIX/lib] 1333 --includedir=DIR C header files [PREFIX/include] 1334 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1337 --infodir=DIR info documentation [DATAROOTDIR/info] 1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1339 --mandir=DIR man documentation [DATAROOTDIR/man] 1340 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1341 --htmldir=DIR html documentation [DOCDIR] 1342 --dvidir=DIR dvi documentation [DOCDIR] 1343 --pdfdir=DIR pdf documentation [DOCDIR] 1344 --psdir=DIR ps documentation [DOCDIR] 1345_ACEOF 1346 1347 cat <<\_ACEOF 1348 1349System types: 1350 --build=BUILD configure for building on BUILD [guessed] 1351 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1352_ACEOF 1353fi 1354 1355if test -n "$ac_init_help"; then 1356 1357 cat <<\_ACEOF 1358 1359Optional Features: 1360 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1361 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1362 --enable-maintainer-mode enable makefile rules useful for maintainers 1363 --enable-compression enable EXPERIMENTAL compression support 1364 --enable-htree enable EXPERIMENTAL htree directory support 1365 --enable-elf-shlibs select ELF shared libraries 1366 --enable-bsd-shlibs select BSD shared libraries 1367 --enable-profile build profiling libraries 1368 --enable-checker build checker libraries 1369 --enable-jbd-debug enable journal debugging 1370 --enable-blkid-debug enable blkid debugging 1371 --disable-testio-debug disable the use of the test I/O manager for debugging 1372 --disable-debugfs disable support of debugfs program 1373 --disable-imager disable support of e2image program 1374 --disable-resizer disable support of e2resize program 1375 --enable-fsck build fsck wrapper program 1376 --enable-e2initrd-helper build e2initrd-helper program 1377 --disable-tls disable use of thread local support 1378 --disable-uuidd disable building the uuid daemon 1379 --disable-nls do not use Native Language Support 1380 --disable-rpath do not hardcode runtime library paths 1381 1382Optional Packages: 1383 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1384 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1385 --with-diet-libc use diet libc 1386 --with-cc=COMPILER select compiler to use 1387 --with-linker=LINKER select linker to use 1388 --with-ccopts=CCOPTS select compiler command line options 1389 --with-ldopts=LDOPTS select linker command line options 1390 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root 1391 --with-gnu-ld assume the C compiler uses GNU ld default=no 1392 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1393 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1394 --with-included-gettext use the GNU gettext library included here 1395 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1396 --without-libintl-prefix don't search for libintl in includedir and libdir 1397 1398Some influential environment variables: 1399 CC C compiler command 1400 CFLAGS C compiler flags 1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1402 nonstandard directory <lib dir> 1403 LIBS libraries to pass to the linker, e.g. -l<library> 1404 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1405 you have headers in a nonstandard directory <include dir> 1406 CPP C preprocessor 1407 1408Use these variables to override the choices made by `configure' or to help 1409it to find libraries and programs with nonstandard names/locations. 1410 1411_ACEOF 1412ac_status=$? 1413fi 1414 1415if test "$ac_init_help" = "recursive"; then 1416 # If there are subdirs, report their specific --help. 1417 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1418 test -d "$ac_dir" || continue 1419 ac_builddir=. 1420 1421case "$ac_dir" in 1422.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1423*) 1424 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1425 # A ".." for each directory in $ac_dir_suffix. 1426 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1427 case $ac_top_builddir_sub in 1428 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1429 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1430 esac ;; 1431esac 1432ac_abs_top_builddir=$ac_pwd 1433ac_abs_builddir=$ac_pwd$ac_dir_suffix 1434# for backward compatibility: 1435ac_top_builddir=$ac_top_build_prefix 1436 1437case $srcdir in 1438 .) # We are building in place. 1439 ac_srcdir=. 1440 ac_top_srcdir=$ac_top_builddir_sub 1441 ac_abs_top_srcdir=$ac_pwd ;; 1442 [\\/]* | ?:[\\/]* ) # Absolute name. 1443 ac_srcdir=$srcdir$ac_dir_suffix; 1444 ac_top_srcdir=$srcdir 1445 ac_abs_top_srcdir=$srcdir ;; 1446 *) # Relative name. 1447 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1448 ac_top_srcdir=$ac_top_build_prefix$srcdir 1449 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1450esac 1451ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1452 1453 cd "$ac_dir" || { ac_status=$?; continue; } 1454 # Check for guested configure. 1455 if test -f "$ac_srcdir/configure.gnu"; then 1456 echo && 1457 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1458 elif test -f "$ac_srcdir/configure"; then 1459 echo && 1460 $SHELL "$ac_srcdir/configure" --help=recursive 1461 else 1462 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1463 fi || ac_status=$? 1464 cd "$ac_pwd" || { ac_status=$?; break; } 1465 done 1466fi 1467 1468test -n "$ac_init_help" && exit $ac_status 1469if $ac_init_version; then 1470 cat <<\_ACEOF 1471configure 1472generated by GNU Autoconf 2.61 1473 1474Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14752002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1476This configure script is free software; the Free Software Foundation 1477gives unlimited permission to copy, distribute and modify it. 1478_ACEOF 1479 exit 1480fi 1481cat >config.log <<_ACEOF 1482This file contains any messages produced by compilers while 1483running configure, to aid debugging if configure makes a mistake. 1484 1485It was created by $as_me, which was 1486generated by GNU Autoconf 2.61. Invocation command line was 1487 1488 $ $0 $@ 1489 1490_ACEOF 1491exec 5>>config.log 1492{ 1493cat <<_ASUNAME 1494## --------- ## 1495## Platform. ## 1496## --------- ## 1497 1498hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1499uname -m = `(uname -m) 2>/dev/null || echo unknown` 1500uname -r = `(uname -r) 2>/dev/null || echo unknown` 1501uname -s = `(uname -s) 2>/dev/null || echo unknown` 1502uname -v = `(uname -v) 2>/dev/null || echo unknown` 1503 1504/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1505/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1506 1507/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1508/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1509/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1510/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1511/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1512/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1513/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1514 1515_ASUNAME 1516 1517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1518for as_dir in $PATH 1519do 1520 IFS=$as_save_IFS 1521 test -z "$as_dir" && as_dir=. 1522 echo "PATH: $as_dir" 1523done 1524IFS=$as_save_IFS 1525 1526} >&5 1527 1528cat >&5 <<_ACEOF 1529 1530 1531## ----------- ## 1532## Core tests. ## 1533## ----------- ## 1534 1535_ACEOF 1536 1537 1538# Keep a trace of the command line. 1539# Strip out --no-create and --no-recursion so they do not pile up. 1540# Strip out --silent because we don't want to record it for future runs. 1541# Also quote any args containing shell meta-characters. 1542# Make two passes to allow for proper duplicate-argument suppression. 1543ac_configure_args= 1544ac_configure_args0= 1545ac_configure_args1= 1546ac_must_keep_next=false 1547for ac_pass in 1 2 1548do 1549 for ac_arg 1550 do 1551 case $ac_arg in 1552 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1554 | -silent | --silent | --silen | --sile | --sil) 1555 continue ;; 1556 *\'*) 1557 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1558 esac 1559 case $ac_pass in 1560 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1561 2) 1562 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1563 if test $ac_must_keep_next = true; then 1564 ac_must_keep_next=false # Got value, back to normal. 1565 else 1566 case $ac_arg in 1567 *=* | --config-cache | -C | -disable-* | --disable-* \ 1568 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1569 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1570 | -with-* | --with-* | -without-* | --without-* | --x) 1571 case "$ac_configure_args0 " in 1572 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1573 esac 1574 ;; 1575 -* ) ac_must_keep_next=true ;; 1576 esac 1577 fi 1578 ac_configure_args="$ac_configure_args '$ac_arg'" 1579 ;; 1580 esac 1581 done 1582done 1583$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1584$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1585 1586# When interrupted or exit'd, cleanup temporary files, and complete 1587# config.log. We remove comments because anyway the quotes in there 1588# would cause problems or look ugly. 1589# WARNING: Use '\'' to represent an apostrophe within the trap. 1590# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1591trap 'exit_status=$? 1592 # Save into config.log some information that might help in debugging. 1593 { 1594 echo 1595 1596 cat <<\_ASBOX 1597## ---------------- ## 1598## Cache variables. ## 1599## ---------------- ## 1600_ASBOX 1601 echo 1602 # The following way of writing the cache mishandles newlines in values, 1603( 1604 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1605 eval ac_val=\$$ac_var 1606 case $ac_val in #( 1607 *${as_nl}*) 1608 case $ac_var in #( 1609 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1610echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1611 esac 1612 case $ac_var in #( 1613 _ | IFS | as_nl) ;; #( 1614 *) $as_unset $ac_var ;; 1615 esac ;; 1616 esac 1617 done 1618 (set) 2>&1 | 1619 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1620 *${as_nl}ac_space=\ *) 1621 sed -n \ 1622 "s/'\''/'\''\\\\'\'''\''/g; 1623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1624 ;; #( 1625 *) 1626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1627 ;; 1628 esac | 1629 sort 1630) 1631 echo 1632 1633 cat <<\_ASBOX 1634## ----------------- ## 1635## Output variables. ## 1636## ----------------- ## 1637_ASBOX 1638 echo 1639 for ac_var in $ac_subst_vars 1640 do 1641 eval ac_val=\$$ac_var 1642 case $ac_val in 1643 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1644 esac 1645 echo "$ac_var='\''$ac_val'\''" 1646 done | sort 1647 echo 1648 1649 if test -n "$ac_subst_files"; then 1650 cat <<\_ASBOX 1651## ------------------- ## 1652## File substitutions. ## 1653## ------------------- ## 1654_ASBOX 1655 echo 1656 for ac_var in $ac_subst_files 1657 do 1658 eval ac_val=\$$ac_var 1659 case $ac_val in 1660 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1661 esac 1662 echo "$ac_var='\''$ac_val'\''" 1663 done | sort 1664 echo 1665 fi 1666 1667 if test -s confdefs.h; then 1668 cat <<\_ASBOX 1669## ----------- ## 1670## confdefs.h. ## 1671## ----------- ## 1672_ASBOX 1673 echo 1674 cat confdefs.h 1675 echo 1676 fi 1677 test "$ac_signal" != 0 && 1678 echo "$as_me: caught signal $ac_signal" 1679 echo "$as_me: exit $exit_status" 1680 } >&5 1681 rm -f core *.core core.conftest.* && 1682 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1683 exit $exit_status 1684' 0 1685for ac_signal in 1 2 13 15; do 1686 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1687done 1688ac_signal=0 1689 1690# confdefs.h avoids OS command line length limits that DEFS can exceed. 1691rm -f -r conftest* confdefs.h 1692 1693# Predefined preprocessor variables. 1694 1695cat >>confdefs.h <<_ACEOF 1696#define PACKAGE_NAME "$PACKAGE_NAME" 1697_ACEOF 1698 1699 1700cat >>confdefs.h <<_ACEOF 1701#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1702_ACEOF 1703 1704 1705cat >>confdefs.h <<_ACEOF 1706#define PACKAGE_VERSION "$PACKAGE_VERSION" 1707_ACEOF 1708 1709 1710cat >>confdefs.h <<_ACEOF 1711#define PACKAGE_STRING "$PACKAGE_STRING" 1712_ACEOF 1713 1714 1715cat >>confdefs.h <<_ACEOF 1716#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1717_ACEOF 1718 1719 1720# Let the site file select an alternate cache file if it wants to. 1721# Prefer explicitly selected file to automatically selected ones. 1722if test -n "$CONFIG_SITE"; then 1723 set x "$CONFIG_SITE" 1724elif test "x$prefix" != xNONE; then 1725 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1726else 1727 set x "$ac_default_prefix/share/config.site" \ 1728 "$ac_default_prefix/etc/config.site" 1729fi 1730shift 1731for ac_site_file 1732do 1733 if test -r "$ac_site_file"; then 1734 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1735echo "$as_me: loading site script $ac_site_file" >&6;} 1736 sed 's/^/| /' "$ac_site_file" >&5 1737 . "$ac_site_file" 1738 fi 1739done 1740 1741if test -r "$cache_file"; then 1742 # Some versions of bash will fail to source /dev/null (special 1743 # files actually), so we avoid doing that. 1744 if test -f "$cache_file"; then 1745 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1746echo "$as_me: loading cache $cache_file" >&6;} 1747 case $cache_file in 1748 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1749 *) . "./$cache_file";; 1750 esac 1751 fi 1752else 1753 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1754echo "$as_me: creating cache $cache_file" >&6;} 1755 >$cache_file 1756fi 1757 1758# Check that the precious variables saved in the cache have kept the same 1759# value. 1760ac_cache_corrupted=false 1761for ac_var in $ac_precious_vars; do 1762 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1763 eval ac_new_set=\$ac_env_${ac_var}_set 1764 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1765 eval ac_new_val=\$ac_env_${ac_var}_value 1766 case $ac_old_set,$ac_new_set in 1767 set,) 1768 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1769echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1770 ac_cache_corrupted=: ;; 1771 ,set) 1772 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1773echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1774 ac_cache_corrupted=: ;; 1775 ,);; 1776 *) 1777 if test "x$ac_old_val" != "x$ac_new_val"; then 1778 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1779echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1780 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1781echo "$as_me: former value: $ac_old_val" >&2;} 1782 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1783echo "$as_me: current value: $ac_new_val" >&2;} 1784 ac_cache_corrupted=: 1785 fi;; 1786 esac 1787 # Pass precious variables to config.status. 1788 if test "$ac_new_set" = set; then 1789 case $ac_new_val in 1790 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1791 *) ac_arg=$ac_var=$ac_new_val ;; 1792 esac 1793 case " $ac_configure_args " in 1794 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1795 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1796 esac 1797 fi 1798done 1799if $ac_cache_corrupted; then 1800 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1801echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1802 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1803echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1804 { (exit 1); exit 1; }; } 1805fi 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823ac_ext=c 1824ac_cpp='$CPP $CPPFLAGS' 1825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1827ac_compiler_gnu=$ac_cv_c_compiler_gnu 1828 1829 1830 1831ac_aux_dir= 1832for ac_dir in config "$srcdir"/config; do 1833 if test -f "$ac_dir/install-sh"; then 1834 ac_aux_dir=$ac_dir 1835 ac_install_sh="$ac_aux_dir/install-sh -c" 1836 break 1837 elif test -f "$ac_dir/install.sh"; then 1838 ac_aux_dir=$ac_dir 1839 ac_install_sh="$ac_aux_dir/install.sh -c" 1840 break 1841 elif test -f "$ac_dir/shtool"; then 1842 ac_aux_dir=$ac_dir 1843 ac_install_sh="$ac_aux_dir/shtool install -c" 1844 break 1845 fi 1846done 1847if test -z "$ac_aux_dir"; then 1848 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 1849echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} 1850 { (exit 1); exit 1; }; } 1851fi 1852 1853# These three variables are undocumented and unsupported, 1854# and are intended to be withdrawn in a future Autoconf release. 1855# They can cause serious problems if a builder's source tree is in a directory 1856# whose full name contains unusual characters. 1857ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1858ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1859ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1860 1861 1862MCONFIG=./MCONFIG 1863 1864BINARY_TYPE=bin 1865E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ 1866 | awk '{print $3}' | tr \" " " | awk '{print $1}'` 1867DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ 1868 | tr \" " "` 1869E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` 1870MONTH=`echo $DATE | awk -F- '{print $2}'` 1871YEAR=`echo $DATE | awk -F- '{print $3}'` 1872 1873if expr $YEAR ">" 1900 > /dev/null ; then 1874 E2FSPROGS_YEAR=$YEAR 1875elif expr $YEAR ">" 90 >/dev/null ; then 1876 E2FSPROGS_YEAR=19$YEAR 1877else 1878 E2FSPROGS_YEAR=20$YEAR 1879fi 1880 1881case $MONTH in 1882Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; 1883Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; 1884Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; 1885Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; 1886May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; 1887Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; 1888Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; 1889Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; 1890Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; 1891Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; 1892Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; 1893Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; 1894*) { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5 1895echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; 1896esac 1897 1898base_ver=`echo $E2FSPROGS_VERSION | \ 1899 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` 1900 1901date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} 1902 1903case $E2FSPROGS_VERSION in 1904*-WIP|pre-*) 1905 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" 1906 ;; 1907*) 1908 E2FSPROGS_PKGVER="$base_ver" 1909 ;; 1910esac 1911 1912unset DATE MONTH YEAR base_ver pre_vers date_spec 1913{ echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 1914echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } 1915{ echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 1916echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } 1917 1918 1919 1920 1921 1922# Make sure we can run config.sub. 1923$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1924 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1925echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1926 { (exit 1); exit 1; }; } 1927 1928{ echo "$as_me:$LINENO: checking build system type" >&5 1929echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1930if test "${ac_cv_build+set}" = set; then 1931 echo $ECHO_N "(cached) $ECHO_C" >&6 1932else 1933 ac_build_alias=$build_alias 1934test "x$ac_build_alias" = x && 1935 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1936test "x$ac_build_alias" = x && 1937 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1938echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1939 { (exit 1); exit 1; }; } 1940ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1941 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1942echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1943 { (exit 1); exit 1; }; } 1944 1945fi 1946{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1947echo "${ECHO_T}$ac_cv_build" >&6; } 1948case $ac_cv_build in 1949*-*-*) ;; 1950*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1951echo "$as_me: error: invalid value of canonical build" >&2;} 1952 { (exit 1); exit 1; }; };; 1953esac 1954build=$ac_cv_build 1955ac_save_IFS=$IFS; IFS='-' 1956set x $ac_cv_build 1957shift 1958build_cpu=$1 1959build_vendor=$2 1960shift; shift 1961# Remember, the first character of IFS is used to create $*, 1962# except with old shells: 1963build_os=$* 1964IFS=$ac_save_IFS 1965case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1966 1967 1968{ echo "$as_me:$LINENO: checking host system type" >&5 1969echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 1970if test "${ac_cv_host+set}" = set; then 1971 echo $ECHO_N "(cached) $ECHO_C" >&6 1972else 1973 if test "x$host_alias" = x; then 1974 ac_cv_host=$ac_cv_build 1975else 1976 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1977 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1978echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1979 { (exit 1); exit 1; }; } 1980fi 1981 1982fi 1983{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1984echo "${ECHO_T}$ac_cv_host" >&6; } 1985case $ac_cv_host in 1986*-*-*) ;; 1987*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1988echo "$as_me: error: invalid value of canonical host" >&2;} 1989 { (exit 1); exit 1; }; };; 1990esac 1991host=$ac_cv_host 1992ac_save_IFS=$IFS; IFS='-' 1993set x $ac_cv_host 1994shift 1995host_cpu=$1 1996host_vendor=$2 1997shift; shift 1998# Remember, the first character of IFS is used to create $*, 1999# except with old shells: 2000host_os=$* 2001IFS=$ac_save_IFS 2002case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2003 2004 2005WITH_DIET_LIBC= 2006 2007# Check whether --with-diet-libc was given. 2008if test "${with_diet_libc+set}" = set; then 2009 withval=$with_diet_libc; CC="diet cc -nostdinc" 2010WITH_DIET_LIBC=yes 2011{ echo "$as_me:$LINENO: result: CC=$CC" >&5 2012echo "${ECHO_T}CC=$CC" >&6; } 2013fi 2014 2015# Check whether --with-cc was given. 2016if test "${with_cc+set}" = set; then 2017 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5 2018echo "${ECHO_T}CC=$withval" >&6; } 2019CC=$withval 2020else 2021 if test -z "$CC" ; then CC=cc; fi 2022{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 2023echo "${ECHO_T}CC defaults to $CC" >&6; } 2024fi 2025export CC 2026 2027ac_ext=c 2028ac_cpp='$CPP $CPPFLAGS' 2029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2031ac_compiler_gnu=$ac_cv_c_compiler_gnu 2032if test -n "$ac_tool_prefix"; then 2033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2034set dummy ${ac_tool_prefix}gcc; ac_word=$2 2035{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2037if test "${ac_cv_prog_CC+set}" = set; then 2038 echo $ECHO_N "(cached) $ECHO_C" >&6 2039else 2040 if test -n "$CC"; then 2041 ac_cv_prog_CC="$CC" # Let the user override the test. 2042else 2043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2044for as_dir in $PATH 2045do 2046 IFS=$as_save_IFS 2047 test -z "$as_dir" && as_dir=. 2048 for ac_exec_ext in '' $ac_executable_extensions; do 2049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2050 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2052 break 2 2053 fi 2054done 2055done 2056IFS=$as_save_IFS 2057 2058fi 2059fi 2060CC=$ac_cv_prog_CC 2061if test -n "$CC"; then 2062 { echo "$as_me:$LINENO: result: $CC" >&5 2063echo "${ECHO_T}$CC" >&6; } 2064else 2065 { echo "$as_me:$LINENO: result: no" >&5 2066echo "${ECHO_T}no" >&6; } 2067fi 2068 2069 2070fi 2071if test -z "$ac_cv_prog_CC"; then 2072 ac_ct_CC=$CC 2073 # Extract the first word of "gcc", so it can be a program name with args. 2074set dummy gcc; ac_word=$2 2075{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2077if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2078 echo $ECHO_N "(cached) $ECHO_C" >&6 2079else 2080 if test -n "$ac_ct_CC"; then 2081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2082else 2083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2084for as_dir in $PATH 2085do 2086 IFS=$as_save_IFS 2087 test -z "$as_dir" && as_dir=. 2088 for ac_exec_ext in '' $ac_executable_extensions; do 2089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2090 ac_cv_prog_ac_ct_CC="gcc" 2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2092 break 2 2093 fi 2094done 2095done 2096IFS=$as_save_IFS 2097 2098fi 2099fi 2100ac_ct_CC=$ac_cv_prog_ac_ct_CC 2101if test -n "$ac_ct_CC"; then 2102 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2103echo "${ECHO_T}$ac_ct_CC" >&6; } 2104else 2105 { echo "$as_me:$LINENO: result: no" >&5 2106echo "${ECHO_T}no" >&6; } 2107fi 2108 2109 if test "x$ac_ct_CC" = x; then 2110 CC="" 2111 else 2112 case $cross_compiling:$ac_tool_warned in 2113yes:) 2114{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2115whose name does not start with the host triplet. If you think this 2116configuration is useful to you, please write to autoconf@gnu.org." >&5 2117echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2118whose name does not start with the host triplet. If you think this 2119configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2120ac_tool_warned=yes ;; 2121esac 2122 CC=$ac_ct_CC 2123 fi 2124else 2125 CC="$ac_cv_prog_CC" 2126fi 2127 2128if test -z "$CC"; then 2129 if test -n "$ac_tool_prefix"; then 2130 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2131set dummy ${ac_tool_prefix}cc; ac_word=$2 2132{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2134if test "${ac_cv_prog_CC+set}" = set; then 2135 echo $ECHO_N "(cached) $ECHO_C" >&6 2136else 2137 if test -n "$CC"; then 2138 ac_cv_prog_CC="$CC" # Let the user override the test. 2139else 2140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2141for as_dir in $PATH 2142do 2143 IFS=$as_save_IFS 2144 test -z "$as_dir" && as_dir=. 2145 for ac_exec_ext in '' $ac_executable_extensions; do 2146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2147 ac_cv_prog_CC="${ac_tool_prefix}cc" 2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2149 break 2 2150 fi 2151done 2152done 2153IFS=$as_save_IFS 2154 2155fi 2156fi 2157CC=$ac_cv_prog_CC 2158if test -n "$CC"; then 2159 { echo "$as_me:$LINENO: result: $CC" >&5 2160echo "${ECHO_T}$CC" >&6; } 2161else 2162 { echo "$as_me:$LINENO: result: no" >&5 2163echo "${ECHO_T}no" >&6; } 2164fi 2165 2166 2167 fi 2168fi 2169if test -z "$CC"; then 2170 # Extract the first word of "cc", so it can be a program name with args. 2171set dummy cc; ac_word=$2 2172{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2174if test "${ac_cv_prog_CC+set}" = set; then 2175 echo $ECHO_N "(cached) $ECHO_C" >&6 2176else 2177 if test -n "$CC"; then 2178 ac_cv_prog_CC="$CC" # Let the user override the test. 2179else 2180 ac_prog_rejected=no 2181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2182for as_dir in $PATH 2183do 2184 IFS=$as_save_IFS 2185 test -z "$as_dir" && as_dir=. 2186 for ac_exec_ext in '' $ac_executable_extensions; do 2187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2189 ac_prog_rejected=yes 2190 continue 2191 fi 2192 ac_cv_prog_CC="cc" 2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2194 break 2 2195 fi 2196done 2197done 2198IFS=$as_save_IFS 2199 2200if test $ac_prog_rejected = yes; then 2201 # We found a bogon in the path, so make sure we never use it. 2202 set dummy $ac_cv_prog_CC 2203 shift 2204 if test $# != 0; then 2205 # We chose a different compiler from the bogus one. 2206 # However, it has the same basename, so the bogon will be chosen 2207 # first if we set CC to just the basename; use the full file name. 2208 shift 2209 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2210 fi 2211fi 2212fi 2213fi 2214CC=$ac_cv_prog_CC 2215if test -n "$CC"; then 2216 { echo "$as_me:$LINENO: result: $CC" >&5 2217echo "${ECHO_T}$CC" >&6; } 2218else 2219 { echo "$as_me:$LINENO: result: no" >&5 2220echo "${ECHO_T}no" >&6; } 2221fi 2222 2223 2224fi 2225if test -z "$CC"; then 2226 if test -n "$ac_tool_prefix"; then 2227 for ac_prog in cl.exe 2228 do 2229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2230set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2231{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2233if test "${ac_cv_prog_CC+set}" = set; then 2234 echo $ECHO_N "(cached) $ECHO_C" >&6 2235else 2236 if test -n "$CC"; then 2237 ac_cv_prog_CC="$CC" # Let the user override the test. 2238else 2239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2240for as_dir in $PATH 2241do 2242 IFS=$as_save_IFS 2243 test -z "$as_dir" && as_dir=. 2244 for ac_exec_ext in '' $ac_executable_extensions; do 2245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2248 break 2 2249 fi 2250done 2251done 2252IFS=$as_save_IFS 2253 2254fi 2255fi 2256CC=$ac_cv_prog_CC 2257if test -n "$CC"; then 2258 { echo "$as_me:$LINENO: result: $CC" >&5 2259echo "${ECHO_T}$CC" >&6; } 2260else 2261 { echo "$as_me:$LINENO: result: no" >&5 2262echo "${ECHO_T}no" >&6; } 2263fi 2264 2265 2266 test -n "$CC" && break 2267 done 2268fi 2269if test -z "$CC"; then 2270 ac_ct_CC=$CC 2271 for ac_prog in cl.exe 2272do 2273 # Extract the first word of "$ac_prog", so it can be a program name with args. 2274set dummy $ac_prog; ac_word=$2 2275{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2277if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2278 echo $ECHO_N "(cached) $ECHO_C" >&6 2279else 2280 if test -n "$ac_ct_CC"; then 2281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2282else 2283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2284for as_dir in $PATH 2285do 2286 IFS=$as_save_IFS 2287 test -z "$as_dir" && as_dir=. 2288 for ac_exec_ext in '' $ac_executable_extensions; do 2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2290 ac_cv_prog_ac_ct_CC="$ac_prog" 2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2292 break 2 2293 fi 2294done 2295done 2296IFS=$as_save_IFS 2297 2298fi 2299fi 2300ac_ct_CC=$ac_cv_prog_ac_ct_CC 2301if test -n "$ac_ct_CC"; then 2302 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2303echo "${ECHO_T}$ac_ct_CC" >&6; } 2304else 2305 { echo "$as_me:$LINENO: result: no" >&5 2306echo "${ECHO_T}no" >&6; } 2307fi 2308 2309 2310 test -n "$ac_ct_CC" && break 2311done 2312 2313 if test "x$ac_ct_CC" = x; then 2314 CC="" 2315 else 2316 case $cross_compiling:$ac_tool_warned in 2317yes:) 2318{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2319whose name does not start with the host triplet. If you think this 2320configuration is useful to you, please write to autoconf@gnu.org." >&5 2321echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2322whose name does not start with the host triplet. If you think this 2323configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2324ac_tool_warned=yes ;; 2325esac 2326 CC=$ac_ct_CC 2327 fi 2328fi 2329 2330fi 2331 2332 2333test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2334See \`config.log' for more details." >&5 2335echo "$as_me: error: no acceptable C compiler found in \$PATH 2336See \`config.log' for more details." >&2;} 2337 { (exit 1); exit 1; }; } 2338 2339# Provide some information about the compiler. 2340echo "$as_me:$LINENO: checking for C compiler version" >&5 2341ac_compiler=`set X $ac_compile; echo $2` 2342{ (ac_try="$ac_compiler --version >&5" 2343case "(($ac_try" in 2344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2345 *) ac_try_echo=$ac_try;; 2346esac 2347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2348 (eval "$ac_compiler --version >&5") 2>&5 2349 ac_status=$? 2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2351 (exit $ac_status); } 2352{ (ac_try="$ac_compiler -v >&5" 2353case "(($ac_try" in 2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2355 *) ac_try_echo=$ac_try;; 2356esac 2357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2358 (eval "$ac_compiler -v >&5") 2>&5 2359 ac_status=$? 2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2361 (exit $ac_status); } 2362{ (ac_try="$ac_compiler -V >&5" 2363case "(($ac_try" in 2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2365 *) ac_try_echo=$ac_try;; 2366esac 2367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2368 (eval "$ac_compiler -V >&5") 2>&5 2369 ac_status=$? 2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2371 (exit $ac_status); } 2372 2373cat >conftest.$ac_ext <<_ACEOF 2374/* confdefs.h. */ 2375_ACEOF 2376cat confdefs.h >>conftest.$ac_ext 2377cat >>conftest.$ac_ext <<_ACEOF 2378/* end confdefs.h. */ 2379 2380int 2381main () 2382{ 2383 2384 ; 2385 return 0; 2386} 2387_ACEOF 2388ac_clean_files_save=$ac_clean_files 2389ac_clean_files="$ac_clean_files a.out a.exe b.out" 2390# Try to create an executable without -o first, disregard a.out. 2391# It will help us diagnose broken compilers, and finding out an intuition 2392# of exeext. 2393{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2394echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2395ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2396# 2397# List of possible output files, starting from the most likely. 2398# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2399# only as a last resort. b.out is created by i960 compilers. 2400ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2401# 2402# The IRIX 6 linker writes into existing files which may not be 2403# executable, retaining their permissions. Remove them first so a 2404# subsequent execution test works. 2405ac_rmfiles= 2406for ac_file in $ac_files 2407do 2408 case $ac_file in 2409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2410 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2411 esac 2412done 2413rm -f $ac_rmfiles 2414 2415if { (ac_try="$ac_link_default" 2416case "(($ac_try" in 2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2418 *) ac_try_echo=$ac_try;; 2419esac 2420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2421 (eval "$ac_link_default") 2>&5 2422 ac_status=$? 2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2424 (exit $ac_status); }; then 2425 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2426# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2427# in a Makefile. We should not override ac_cv_exeext if it was cached, 2428# so that the user can short-circuit this test for compilers unknown to 2429# Autoconf. 2430for ac_file in $ac_files '' 2431do 2432 test -f "$ac_file" || continue 2433 case $ac_file in 2434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2435 ;; 2436 [ab].out ) 2437 # We found the default executable, but exeext='' is most 2438 # certainly right. 2439 break;; 2440 *.* ) 2441 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2442 then :; else 2443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2444 fi 2445 # We set ac_cv_exeext here because the later test for it is not 2446 # safe: cross compilers may not add the suffix if given an `-o' 2447 # argument, so we may need to know it at that point already. 2448 # Even if this section looks crufty: it has the advantage of 2449 # actually working. 2450 break;; 2451 * ) 2452 break;; 2453 esac 2454done 2455test "$ac_cv_exeext" = no && ac_cv_exeext= 2456 2457else 2458 ac_file='' 2459fi 2460 2461{ echo "$as_me:$LINENO: result: $ac_file" >&5 2462echo "${ECHO_T}$ac_file" >&6; } 2463if test -z "$ac_file"; then 2464 echo "$as_me: failed program was:" >&5 2465sed 's/^/| /' conftest.$ac_ext >&5 2466 2467{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2468See \`config.log' for more details." >&5 2469echo "$as_me: error: C compiler cannot create executables 2470See \`config.log' for more details." >&2;} 2471 { (exit 77); exit 77; }; } 2472fi 2473 2474ac_exeext=$ac_cv_exeext 2475 2476# Check that the compiler produces executables we can run. If not, either 2477# the compiler is broken, or we cross compile. 2478{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2479echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2480# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2481# If not cross compiling, check that we can run a simple program. 2482if test "$cross_compiling" != yes; then 2483 if { ac_try='./$ac_file' 2484 { (case "(($ac_try" in 2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2486 *) ac_try_echo=$ac_try;; 2487esac 2488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2489 (eval "$ac_try") 2>&5 2490 ac_status=$? 2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2492 (exit $ac_status); }; }; then 2493 cross_compiling=no 2494 else 2495 if test "$cross_compiling" = maybe; then 2496 cross_compiling=yes 2497 else 2498 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2499If you meant to cross compile, use \`--host'. 2500See \`config.log' for more details." >&5 2501echo "$as_me: error: cannot run C compiled programs. 2502If you meant to cross compile, use \`--host'. 2503See \`config.log' for more details." >&2;} 2504 { (exit 1); exit 1; }; } 2505 fi 2506 fi 2507fi 2508{ echo "$as_me:$LINENO: result: yes" >&5 2509echo "${ECHO_T}yes" >&6; } 2510 2511rm -f a.out a.exe conftest$ac_cv_exeext b.out 2512ac_clean_files=$ac_clean_files_save 2513# Check that the compiler produces executables we can run. If not, either 2514# the compiler is broken, or we cross compile. 2515{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2516echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2517{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2518echo "${ECHO_T}$cross_compiling" >&6; } 2519 2520{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2521echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2522if { (ac_try="$ac_link" 2523case "(($ac_try" in 2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2525 *) ac_try_echo=$ac_try;; 2526esac 2527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2528 (eval "$ac_link") 2>&5 2529 ac_status=$? 2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2531 (exit $ac_status); }; then 2532 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2533# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2534# work properly (i.e., refer to `conftest.exe'), while it won't with 2535# `rm'. 2536for ac_file in conftest.exe conftest conftest.*; do 2537 test -f "$ac_file" || continue 2538 case $ac_file in 2539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2540 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2541 break;; 2542 * ) break;; 2543 esac 2544done 2545else 2546 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2547See \`config.log' for more details." >&5 2548echo "$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{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2555echo "${ECHO_T}$ac_cv_exeext" >&6; } 2556 2557rm -f conftest.$ac_ext 2558EXEEXT=$ac_cv_exeext 2559ac_exeext=$EXEEXT 2560{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2561echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2562if test "${ac_cv_objext+set}" = set; then 2563 echo $ECHO_N "(cached) $ECHO_C" >&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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2587 (eval "$ac_compile") 2>&5 2588 ac_status=$? 2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2590 (exit $ac_status); }; then 2591 for ac_file in conftest.o conftest.obj conftest.*; do 2592 test -f "$ac_file" || continue; 2593 case $ac_file in 2594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2596 break;; 2597 esac 2598done 2599else 2600 echo "$as_me: failed program was:" >&5 2601sed 's/^/| /' conftest.$ac_ext >&5 2602 2603{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2604See \`config.log' for more details." >&5 2605echo "$as_me: error: cannot compute suffix of object files: cannot compile 2606See \`config.log' for more details." >&2;} 2607 { (exit 1); exit 1; }; } 2608fi 2609 2610rm -f conftest.$ac_cv_objext conftest.$ac_ext 2611fi 2612{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2613echo "${ECHO_T}$ac_cv_objext" >&6; } 2614OBJEXT=$ac_cv_objext 2615ac_objext=$OBJEXT 2616{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2617echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2618if test "${ac_cv_c_compiler_gnu+set}" = set; then 2619 echo $ECHO_N "(cached) $ECHO_C" >&6 2620else 2621 cat >conftest.$ac_ext <<_ACEOF 2622/* confdefs.h. */ 2623_ACEOF 2624cat confdefs.h >>conftest.$ac_ext 2625cat >>conftest.$ac_ext <<_ACEOF 2626/* end confdefs.h. */ 2627 2628int 2629main () 2630{ 2631#ifndef __GNUC__ 2632 choke me 2633#endif 2634 2635 ; 2636 return 0; 2637} 2638_ACEOF 2639rm -f conftest.$ac_objext 2640if { (ac_try="$ac_compile" 2641case "(($ac_try" in 2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2643 *) ac_try_echo=$ac_try;; 2644esac 2645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2646 (eval "$ac_compile") 2>conftest.er1 2647 ac_status=$? 2648 grep -v '^ *+' conftest.er1 >conftest.err 2649 rm -f conftest.er1 2650 cat conftest.err >&5 2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2652 (exit $ac_status); } && { 2653 test -z "$ac_c_werror_flag" || 2654 test ! -s conftest.err 2655 } && test -s conftest.$ac_objext; then 2656 ac_compiler_gnu=yes 2657else 2658 echo "$as_me: failed program was:" >&5 2659sed 's/^/| /' conftest.$ac_ext >&5 2660 2661 ac_compiler_gnu=no 2662fi 2663 2664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2665ac_cv_c_compiler_gnu=$ac_compiler_gnu 2666 2667fi 2668{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2669echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2670GCC=`test $ac_compiler_gnu = yes && echo yes` 2671ac_test_CFLAGS=${CFLAGS+set} 2672ac_save_CFLAGS=$CFLAGS 2673{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2674echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2675if test "${ac_cv_prog_cc_g+set}" = set; then 2676 echo $ECHO_N "(cached) $ECHO_C" >&6 2677else 2678 ac_save_c_werror_flag=$ac_c_werror_flag 2679 ac_c_werror_flag=yes 2680 ac_cv_prog_cc_g=no 2681 CFLAGS="-g" 2682 cat >conftest.$ac_ext <<_ACEOF 2683/* confdefs.h. */ 2684_ACEOF 2685cat confdefs.h >>conftest.$ac_ext 2686cat >>conftest.$ac_ext <<_ACEOF 2687/* end confdefs.h. */ 2688 2689int 2690main () 2691{ 2692 2693 ; 2694 return 0; 2695} 2696_ACEOF 2697rm -f conftest.$ac_objext 2698if { (ac_try="$ac_compile" 2699case "(($ac_try" in 2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2701 *) ac_try_echo=$ac_try;; 2702esac 2703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2704 (eval "$ac_compile") 2>conftest.er1 2705 ac_status=$? 2706 grep -v '^ *+' conftest.er1 >conftest.err 2707 rm -f conftest.er1 2708 cat conftest.err >&5 2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2710 (exit $ac_status); } && { 2711 test -z "$ac_c_werror_flag" || 2712 test ! -s conftest.err 2713 } && test -s conftest.$ac_objext; then 2714 ac_cv_prog_cc_g=yes 2715else 2716 echo "$as_me: failed program was:" >&5 2717sed 's/^/| /' conftest.$ac_ext >&5 2718 2719 CFLAGS="" 2720 cat >conftest.$ac_ext <<_ACEOF 2721/* confdefs.h. */ 2722_ACEOF 2723cat confdefs.h >>conftest.$ac_ext 2724cat >>conftest.$ac_ext <<_ACEOF 2725/* end confdefs.h. */ 2726 2727int 2728main () 2729{ 2730 2731 ; 2732 return 0; 2733} 2734_ACEOF 2735rm -f conftest.$ac_objext 2736if { (ac_try="$ac_compile" 2737case "(($ac_try" in 2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2739 *) ac_try_echo=$ac_try;; 2740esac 2741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2742 (eval "$ac_compile") 2>conftest.er1 2743 ac_status=$? 2744 grep -v '^ *+' conftest.er1 >conftest.err 2745 rm -f conftest.er1 2746 cat conftest.err >&5 2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2748 (exit $ac_status); } && { 2749 test -z "$ac_c_werror_flag" || 2750 test ! -s conftest.err 2751 } && test -s conftest.$ac_objext; then 2752 : 2753else 2754 echo "$as_me: failed program was:" >&5 2755sed 's/^/| /' conftest.$ac_ext >&5 2756 2757 ac_c_werror_flag=$ac_save_c_werror_flag 2758 CFLAGS="-g" 2759 cat >conftest.$ac_ext <<_ACEOF 2760/* confdefs.h. */ 2761_ACEOF 2762cat confdefs.h >>conftest.$ac_ext 2763cat >>conftest.$ac_ext <<_ACEOF 2764/* end confdefs.h. */ 2765 2766int 2767main () 2768{ 2769 2770 ; 2771 return 0; 2772} 2773_ACEOF 2774rm -f conftest.$ac_objext 2775if { (ac_try="$ac_compile" 2776case "(($ac_try" in 2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2778 *) ac_try_echo=$ac_try;; 2779esac 2780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2781 (eval "$ac_compile") 2>conftest.er1 2782 ac_status=$? 2783 grep -v '^ *+' conftest.er1 >conftest.err 2784 rm -f conftest.er1 2785 cat conftest.err >&5 2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2787 (exit $ac_status); } && { 2788 test -z "$ac_c_werror_flag" || 2789 test ! -s conftest.err 2790 } && test -s conftest.$ac_objext; then 2791 ac_cv_prog_cc_g=yes 2792else 2793 echo "$as_me: failed program was:" >&5 2794sed 's/^/| /' conftest.$ac_ext >&5 2795 2796 2797fi 2798 2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2800fi 2801 2802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2803fi 2804 2805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2806 ac_c_werror_flag=$ac_save_c_werror_flag 2807fi 2808{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2809echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2810if test "$ac_test_CFLAGS" = set; then 2811 CFLAGS=$ac_save_CFLAGS 2812elif test $ac_cv_prog_cc_g = yes; then 2813 if test "$GCC" = yes; then 2814 CFLAGS="-g -O2" 2815 else 2816 CFLAGS="-g" 2817 fi 2818else 2819 if test "$GCC" = yes; then 2820 CFLAGS="-O2" 2821 else 2822 CFLAGS= 2823 fi 2824fi 2825{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2826echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2827if test "${ac_cv_prog_cc_c89+set}" = set; then 2828 echo $ECHO_N "(cached) $ECHO_C" >&6 2829else 2830 ac_cv_prog_cc_c89=no 2831ac_save_CC=$CC 2832cat >conftest.$ac_ext <<_ACEOF 2833/* confdefs.h. */ 2834_ACEOF 2835cat confdefs.h >>conftest.$ac_ext 2836cat >>conftest.$ac_ext <<_ACEOF 2837/* end confdefs.h. */ 2838#include <stdarg.h> 2839#include <stdio.h> 2840#include <sys/types.h> 2841#include <sys/stat.h> 2842/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2843struct buf { int x; }; 2844FILE * (*rcsopen) (struct buf *, struct stat *, int); 2845static char *e (p, i) 2846 char **p; 2847 int i; 2848{ 2849 return p[i]; 2850} 2851static char *f (char * (*g) (char **, int), char **p, ...) 2852{ 2853 char *s; 2854 va_list v; 2855 va_start (v,p); 2856 s = g (p, va_arg (v,int)); 2857 va_end (v); 2858 return s; 2859} 2860 2861/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2862 function prototypes and stuff, but not '\xHH' hex character constants. 2863 These don't provoke an error unfortunately, instead are silently treated 2864 as 'x'. The following induces an error, until -std is added to get 2865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2866 array size at least. It's necessary to write '\x00'==0 to get something 2867 that's true only with -std. */ 2868int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2869 2870/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2871 inside strings and character constants. */ 2872#define FOO(x) 'x' 2873int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2874 2875int test (int i, double x); 2876struct s1 {int (*f) (int a);}; 2877struct s2 {int (*f) (double a);}; 2878int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2879int argc; 2880char **argv; 2881int 2882main () 2883{ 2884return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2885 ; 2886 return 0; 2887} 2888_ACEOF 2889for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2891do 2892 CC="$ac_save_CC $ac_arg" 2893 rm -f conftest.$ac_objext 2894if { (ac_try="$ac_compile" 2895case "(($ac_try" in 2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2897 *) ac_try_echo=$ac_try;; 2898esac 2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2900 (eval "$ac_compile") 2>conftest.er1 2901 ac_status=$? 2902 grep -v '^ *+' conftest.er1 >conftest.err 2903 rm -f conftest.er1 2904 cat conftest.err >&5 2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2906 (exit $ac_status); } && { 2907 test -z "$ac_c_werror_flag" || 2908 test ! -s conftest.err 2909 } && test -s conftest.$ac_objext; then 2910 ac_cv_prog_cc_c89=$ac_arg 2911else 2912 echo "$as_me: failed program was:" >&5 2913sed 's/^/| /' conftest.$ac_ext >&5 2914 2915 2916fi 2917 2918rm -f core conftest.err conftest.$ac_objext 2919 test "x$ac_cv_prog_cc_c89" != "xno" && break 2920done 2921rm -f conftest.$ac_ext 2922CC=$ac_save_CC 2923 2924fi 2925# AC_CACHE_VAL 2926case "x$ac_cv_prog_cc_c89" in 2927 x) 2928 { echo "$as_me:$LINENO: result: none needed" >&5 2929echo "${ECHO_T}none needed" >&6; } ;; 2930 xno) 2931 { echo "$as_me:$LINENO: result: unsupported" >&5 2932echo "${ECHO_T}unsupported" >&6; } ;; 2933 *) 2934 CC="$CC $ac_cv_prog_cc_c89" 2935 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2936echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2937esac 2938 2939 2940ac_ext=c 2941ac_cpp='$CPP $CPPFLAGS' 2942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2944ac_compiler_gnu=$ac_cv_c_compiler_gnu 2945 2946ac_ext=c 2947ac_cpp='$CPP $CPPFLAGS' 2948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2950ac_compiler_gnu=$ac_cv_c_compiler_gnu 2951{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2952echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 2953# On Suns, sometimes $CPP names a directory. 2954if test -n "$CPP" && test -d "$CPP"; then 2955 CPP= 2956fi 2957if test -z "$CPP"; then 2958 if test "${ac_cv_prog_CPP+set}" = set; then 2959 echo $ECHO_N "(cached) $ECHO_C" >&6 2960else 2961 # Double quotes because CPP needs to be expanded 2962 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2963 do 2964 ac_preproc_ok=false 2965for ac_c_preproc_warn_flag in '' yes 2966do 2967 # Use a header file that comes with gcc, so configuring glibc 2968 # with a fresh cross-compiler works. 2969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2970 # <limits.h> exists even on freestanding compilers. 2971 # On the NeXT, cc -E runs the code through the compiler's parser, 2972 # not just through cpp. "Syntax error" is here to catch this case. 2973 cat >conftest.$ac_ext <<_ACEOF 2974/* confdefs.h. */ 2975_ACEOF 2976cat confdefs.h >>conftest.$ac_ext 2977cat >>conftest.$ac_ext <<_ACEOF 2978/* end confdefs.h. */ 2979#ifdef __STDC__ 2980# include <limits.h> 2981#else 2982# include <assert.h> 2983#endif 2984 Syntax error 2985_ACEOF 2986if { (ac_try="$ac_cpp conftest.$ac_ext" 2987case "(($ac_try" in 2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2989 *) ac_try_echo=$ac_try;; 2990esac 2991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2993 ac_status=$? 2994 grep -v '^ *+' conftest.er1 >conftest.err 2995 rm -f conftest.er1 2996 cat conftest.err >&5 2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2998 (exit $ac_status); } >/dev/null && { 2999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3000 test ! -s conftest.err 3001 }; then 3002 : 3003else 3004 echo "$as_me: failed program was:" >&5 3005sed 's/^/| /' conftest.$ac_ext >&5 3006 3007 # Broken: fails on valid input. 3008continue 3009fi 3010 3011rm -f conftest.err conftest.$ac_ext 3012 3013 # OK, works on sane cases. Now check whether nonexistent headers 3014 # can be detected and how. 3015 cat >conftest.$ac_ext <<_ACEOF 3016/* confdefs.h. */ 3017_ACEOF 3018cat confdefs.h >>conftest.$ac_ext 3019cat >>conftest.$ac_ext <<_ACEOF 3020/* end confdefs.h. */ 3021#include <ac_nonexistent.h> 3022_ACEOF 3023if { (ac_try="$ac_cpp conftest.$ac_ext" 3024case "(($ac_try" in 3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3026 *) ac_try_echo=$ac_try;; 3027esac 3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3030 ac_status=$? 3031 grep -v '^ *+' conftest.er1 >conftest.err 3032 rm -f conftest.er1 3033 cat conftest.err >&5 3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3035 (exit $ac_status); } >/dev/null && { 3036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3037 test ! -s conftest.err 3038 }; then 3039 # Broken: success on invalid input. 3040continue 3041else 3042 echo "$as_me: failed program was:" >&5 3043sed 's/^/| /' conftest.$ac_ext >&5 3044 3045 # Passes both tests. 3046ac_preproc_ok=: 3047break 3048fi 3049 3050rm -f conftest.err conftest.$ac_ext 3051 3052done 3053# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3054rm -f conftest.err conftest.$ac_ext 3055if $ac_preproc_ok; then 3056 break 3057fi 3058 3059 done 3060 ac_cv_prog_CPP=$CPP 3061 3062fi 3063 CPP=$ac_cv_prog_CPP 3064else 3065 ac_cv_prog_CPP=$CPP 3066fi 3067{ echo "$as_me:$LINENO: result: $CPP" >&5 3068echo "${ECHO_T}$CPP" >&6; } 3069ac_preproc_ok=false 3070for ac_c_preproc_warn_flag in '' yes 3071do 3072 # Use a header file that comes with gcc, so configuring glibc 3073 # with a fresh cross-compiler works. 3074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3075 # <limits.h> exists even on freestanding compilers. 3076 # On the NeXT, cc -E runs the code through the compiler's parser, 3077 # not just through cpp. "Syntax error" is here to catch this case. 3078 cat >conftest.$ac_ext <<_ACEOF 3079/* confdefs.h. */ 3080_ACEOF 3081cat confdefs.h >>conftest.$ac_ext 3082cat >>conftest.$ac_ext <<_ACEOF 3083/* end confdefs.h. */ 3084#ifdef __STDC__ 3085# include <limits.h> 3086#else 3087# include <assert.h> 3088#endif 3089 Syntax error 3090_ACEOF 3091if { (ac_try="$ac_cpp conftest.$ac_ext" 3092case "(($ac_try" in 3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3094 *) ac_try_echo=$ac_try;; 3095esac 3096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3098 ac_status=$? 3099 grep -v '^ *+' conftest.er1 >conftest.err 3100 rm -f conftest.er1 3101 cat conftest.err >&5 3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3103 (exit $ac_status); } >/dev/null && { 3104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3105 test ! -s conftest.err 3106 }; then 3107 : 3108else 3109 echo "$as_me: failed program was:" >&5 3110sed 's/^/| /' conftest.$ac_ext >&5 3111 3112 # Broken: fails on valid input. 3113continue 3114fi 3115 3116rm -f conftest.err conftest.$ac_ext 3117 3118 # OK, works on sane cases. Now check whether nonexistent headers 3119 # can be detected and how. 3120 cat >conftest.$ac_ext <<_ACEOF 3121/* confdefs.h. */ 3122_ACEOF 3123cat confdefs.h >>conftest.$ac_ext 3124cat >>conftest.$ac_ext <<_ACEOF 3125/* end confdefs.h. */ 3126#include <ac_nonexistent.h> 3127_ACEOF 3128if { (ac_try="$ac_cpp conftest.$ac_ext" 3129case "(($ac_try" in 3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3131 *) ac_try_echo=$ac_try;; 3132esac 3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3135 ac_status=$? 3136 grep -v '^ *+' conftest.er1 >conftest.err 3137 rm -f conftest.er1 3138 cat conftest.err >&5 3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3140 (exit $ac_status); } >/dev/null && { 3141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3142 test ! -s conftest.err 3143 }; then 3144 # Broken: success on invalid input. 3145continue 3146else 3147 echo "$as_me: failed program was:" >&5 3148sed 's/^/| /' conftest.$ac_ext >&5 3149 3150 # Passes both tests. 3151ac_preproc_ok=: 3152break 3153fi 3154 3155rm -f conftest.err conftest.$ac_ext 3156 3157done 3158# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3159rm -f conftest.err conftest.$ac_ext 3160if $ac_preproc_ok; then 3161 : 3162else 3163 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3164See \`config.log' for more details." >&5 3165echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3166See \`config.log' for more details." >&2;} 3167 { (exit 1); exit 1; }; } 3168fi 3169 3170ac_ext=c 3171ac_cpp='$CPP $CPPFLAGS' 3172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3174ac_compiler_gnu=$ac_cv_c_compiler_gnu 3175 3176 3177# Check whether --with-linker was given. 3178if test "${with_linker+set}" = set; then 3179 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5 3180echo "${ECHO_T}LD=$withval" >&6; } 3181LD=$withval 3182else 3183 if test -z "$LD" ; then LD=$CC; fi 3184{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 3185echo "${ECHO_T}LD defaults to $LD" >&6; } 3186fi 3187export LD 3188 3189 3190# Check whether --with-ccopts was given. 3191if test "${with_ccopts+set}" = set; then 3192 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 3193echo "${ECHO_T}CCOPTS is $withval" >&6; } 3194CFLAGS=$withval 3195fi 3196 3197 3198{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3199echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3200if test "${ac_cv_path_GREP+set}" = set; then 3201 echo $ECHO_N "(cached) $ECHO_C" >&6 3202else 3203 # Extract the first word of "grep ggrep" to use in msg output 3204if test -z "$GREP"; then 3205set dummy grep ggrep; ac_prog_name=$2 3206if test "${ac_cv_path_GREP+set}" = set; then 3207 echo $ECHO_N "(cached) $ECHO_C" >&6 3208else 3209 ac_path_GREP_found=false 3210# Loop through the user's path and test for each of PROGNAME-LIST 3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3212for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3213do 3214 IFS=$as_save_IFS 3215 test -z "$as_dir" && as_dir=. 3216 for ac_prog in grep ggrep; do 3217 for ac_exec_ext in '' $ac_executable_extensions; do 3218 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3219 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3220 # Check for GNU ac_path_GREP and select it if it is found. 3221 # Check for GNU $ac_path_GREP 3222case `"$ac_path_GREP" --version 2>&1` in 3223*GNU*) 3224 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3225*) 3226 ac_count=0 3227 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3228 while : 3229 do 3230 cat "conftest.in" "conftest.in" >"conftest.tmp" 3231 mv "conftest.tmp" "conftest.in" 3232 cp "conftest.in" "conftest.nl" 3233 echo 'GREP' >> "conftest.nl" 3234 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3236 ac_count=`expr $ac_count + 1` 3237 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3238 # Best one so far, save it but keep looking for a better one 3239 ac_cv_path_GREP="$ac_path_GREP" 3240 ac_path_GREP_max=$ac_count 3241 fi 3242 # 10*(2^10) chars as input seems more than enough 3243 test $ac_count -gt 10 && break 3244 done 3245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3246esac 3247 3248 3249 $ac_path_GREP_found && break 3 3250 done 3251done 3252 3253done 3254IFS=$as_save_IFS 3255 3256 3257fi 3258 3259GREP="$ac_cv_path_GREP" 3260if test -z "$GREP"; then 3261 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3262echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3263 { (exit 1); exit 1; }; } 3264fi 3265 3266else 3267 ac_cv_path_GREP=$GREP 3268fi 3269 3270 3271fi 3272{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3273echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3274 GREP="$ac_cv_path_GREP" 3275 3276 3277{ echo "$as_me:$LINENO: checking for egrep" >&5 3278echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3279if test "${ac_cv_path_EGREP+set}" = set; then 3280 echo $ECHO_N "(cached) $ECHO_C" >&6 3281else 3282 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3283 then ac_cv_path_EGREP="$GREP -E" 3284 else 3285 # Extract the first word of "egrep" to use in msg output 3286if test -z "$EGREP"; then 3287set dummy egrep; ac_prog_name=$2 3288if test "${ac_cv_path_EGREP+set}" = set; then 3289 echo $ECHO_N "(cached) $ECHO_C" >&6 3290else 3291 ac_path_EGREP_found=false 3292# Loop through the user's path and test for each of PROGNAME-LIST 3293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3294for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3295do 3296 IFS=$as_save_IFS 3297 test -z "$as_dir" && as_dir=. 3298 for ac_prog in egrep; do 3299 for ac_exec_ext in '' $ac_executable_extensions; do 3300 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3301 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3302 # Check for GNU ac_path_EGREP and select it if it is found. 3303 # Check for GNU $ac_path_EGREP 3304case `"$ac_path_EGREP" --version 2>&1` in 3305*GNU*) 3306 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3307*) 3308 ac_count=0 3309 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3310 while : 3311 do 3312 cat "conftest.in" "conftest.in" >"conftest.tmp" 3313 mv "conftest.tmp" "conftest.in" 3314 cp "conftest.in" "conftest.nl" 3315 echo 'EGREP' >> "conftest.nl" 3316 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3318 ac_count=`expr $ac_count + 1` 3319 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3320 # Best one so far, save it but keep looking for a better one 3321 ac_cv_path_EGREP="$ac_path_EGREP" 3322 ac_path_EGREP_max=$ac_count 3323 fi 3324 # 10*(2^10) chars as input seems more than enough 3325 test $ac_count -gt 10 && break 3326 done 3327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3328esac 3329 3330 3331 $ac_path_EGREP_found && break 3 3332 done 3333done 3334 3335done 3336IFS=$as_save_IFS 3337 3338 3339fi 3340 3341EGREP="$ac_cv_path_EGREP" 3342if test -z "$EGREP"; then 3343 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3344echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3345 { (exit 1); exit 1; }; } 3346fi 3347 3348else 3349 ac_cv_path_EGREP=$EGREP 3350fi 3351 3352 3353 fi 3354fi 3355{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3356echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3357 EGREP="$ac_cv_path_EGREP" 3358 3359 3360{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3361echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3362if test "${ac_cv_header_stdc+set}" = set; then 3363 echo $ECHO_N "(cached) $ECHO_C" >&6 3364else 3365 cat >conftest.$ac_ext <<_ACEOF 3366/* confdefs.h. */ 3367_ACEOF 3368cat confdefs.h >>conftest.$ac_ext 3369cat >>conftest.$ac_ext <<_ACEOF 3370/* end confdefs.h. */ 3371#include <stdlib.h> 3372#include <stdarg.h> 3373#include <string.h> 3374#include <float.h> 3375 3376int 3377main () 3378{ 3379 3380 ; 3381 return 0; 3382} 3383_ACEOF 3384rm -f conftest.$ac_objext 3385if { (ac_try="$ac_compile" 3386case "(($ac_try" in 3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3388 *) ac_try_echo=$ac_try;; 3389esac 3390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3391 (eval "$ac_compile") 2>conftest.er1 3392 ac_status=$? 3393 grep -v '^ *+' conftest.er1 >conftest.err 3394 rm -f conftest.er1 3395 cat conftest.err >&5 3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3397 (exit $ac_status); } && { 3398 test -z "$ac_c_werror_flag" || 3399 test ! -s conftest.err 3400 } && test -s conftest.$ac_objext; then 3401 ac_cv_header_stdc=yes 3402else 3403 echo "$as_me: failed program was:" >&5 3404sed 's/^/| /' conftest.$ac_ext >&5 3405 3406 ac_cv_header_stdc=no 3407fi 3408 3409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3410 3411if test $ac_cv_header_stdc = yes; then 3412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3413 cat >conftest.$ac_ext <<_ACEOF 3414/* confdefs.h. */ 3415_ACEOF 3416cat confdefs.h >>conftest.$ac_ext 3417cat >>conftest.$ac_ext <<_ACEOF 3418/* end confdefs.h. */ 3419#include <string.h> 3420 3421_ACEOF 3422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3423 $EGREP "memchr" >/dev/null 2>&1; then 3424 : 3425else 3426 ac_cv_header_stdc=no 3427fi 3428rm -f conftest* 3429 3430fi 3431 3432if test $ac_cv_header_stdc = yes; then 3433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3434 cat >conftest.$ac_ext <<_ACEOF 3435/* confdefs.h. */ 3436_ACEOF 3437cat confdefs.h >>conftest.$ac_ext 3438cat >>conftest.$ac_ext <<_ACEOF 3439/* end confdefs.h. */ 3440#include <stdlib.h> 3441 3442_ACEOF 3443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3444 $EGREP "free" >/dev/null 2>&1; then 3445 : 3446else 3447 ac_cv_header_stdc=no 3448fi 3449rm -f conftest* 3450 3451fi 3452 3453if test $ac_cv_header_stdc = yes; then 3454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3455 if test "$cross_compiling" = yes; then 3456 : 3457else 3458 cat >conftest.$ac_ext <<_ACEOF 3459/* confdefs.h. */ 3460_ACEOF 3461cat confdefs.h >>conftest.$ac_ext 3462cat >>conftest.$ac_ext <<_ACEOF 3463/* end confdefs.h. */ 3464#include <ctype.h> 3465#include <stdlib.h> 3466#if ((' ' & 0x0FF) == 0x020) 3467# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3468# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3469#else 3470# define ISLOWER(c) \ 3471 (('a' <= (c) && (c) <= 'i') \ 3472 || ('j' <= (c) && (c) <= 'r') \ 3473 || ('s' <= (c) && (c) <= 'z')) 3474# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3475#endif 3476 3477#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3478int 3479main () 3480{ 3481 int i; 3482 for (i = 0; i < 256; i++) 3483 if (XOR (islower (i), ISLOWER (i)) 3484 || toupper (i) != TOUPPER (i)) 3485 return 2; 3486 return 0; 3487} 3488_ACEOF 3489rm -f conftest$ac_exeext 3490if { (ac_try="$ac_link" 3491case "(($ac_try" in 3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3493 *) ac_try_echo=$ac_try;; 3494esac 3495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3496 (eval "$ac_link") 2>&5 3497 ac_status=$? 3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3500 { (case "(($ac_try" in 3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3502 *) ac_try_echo=$ac_try;; 3503esac 3504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3505 (eval "$ac_try") 2>&5 3506 ac_status=$? 3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3508 (exit $ac_status); }; }; then 3509 : 3510else 3511 echo "$as_me: program exited with status $ac_status" >&5 3512echo "$as_me: failed program was:" >&5 3513sed 's/^/| /' conftest.$ac_ext >&5 3514 3515( exit $ac_status ) 3516ac_cv_header_stdc=no 3517fi 3518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3519fi 3520 3521 3522fi 3523fi 3524{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3525echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3526if test $ac_cv_header_stdc = yes; then 3527 3528cat >>confdefs.h <<\_ACEOF 3529#define STDC_HEADERS 1 3530_ACEOF 3531 3532fi 3533 3534# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3545 inttypes.h stdint.h unistd.h 3546do 3547as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3548{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3551 echo $ECHO_N "(cached) $ECHO_C" >&6 3552else 3553 cat >conftest.$ac_ext <<_ACEOF 3554/* confdefs.h. */ 3555_ACEOF 3556cat confdefs.h >>conftest.$ac_ext 3557cat >>conftest.$ac_ext <<_ACEOF 3558/* end confdefs.h. */ 3559$ac_includes_default 3560 3561#include <$ac_header> 3562_ACEOF 3563rm -f conftest.$ac_objext 3564if { (ac_try="$ac_compile" 3565case "(($ac_try" in 3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3567 *) ac_try_echo=$ac_try;; 3568esac 3569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3570 (eval "$ac_compile") 2>conftest.er1 3571 ac_status=$? 3572 grep -v '^ *+' conftest.er1 >conftest.err 3573 rm -f conftest.er1 3574 cat conftest.err >&5 3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3576 (exit $ac_status); } && { 3577 test -z "$ac_c_werror_flag" || 3578 test ! -s conftest.err 3579 } && test -s conftest.$ac_objext; then 3580 eval "$as_ac_Header=yes" 3581else 3582 echo "$as_me: failed program was:" >&5 3583sed 's/^/| /' conftest.$ac_ext >&5 3584 3585 eval "$as_ac_Header=no" 3586fi 3587 3588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3589fi 3590ac_res=`eval echo '${'$as_ac_Header'}'` 3591 { echo "$as_me:$LINENO: result: $ac_res" >&5 3592echo "${ECHO_T}$ac_res" >&6; } 3593if test `eval echo '${'$as_ac_Header'}'` = yes; then 3594 cat >>confdefs.h <<_ACEOF 3595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3596_ACEOF 3597 3598fi 3599 3600done 3601 3602 3603if test "${ac_cv_header_linux_fs_h+set}" = set; then 3604 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 3605echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } 3606if test "${ac_cv_header_linux_fs_h+set}" = set; then 3607 echo $ECHO_N "(cached) $ECHO_C" >&6 3608fi 3609{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 3610echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } 3611else 3612 # Is the header compilable? 3613{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 3614echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; } 3615cat >conftest.$ac_ext <<_ACEOF 3616/* confdefs.h. */ 3617_ACEOF 3618cat confdefs.h >>conftest.$ac_ext 3619cat >>conftest.$ac_ext <<_ACEOF 3620/* end confdefs.h. */ 3621$ac_includes_default 3622#include <linux/fs.h> 3623_ACEOF 3624rm -f conftest.$ac_objext 3625if { (ac_try="$ac_compile" 3626case "(($ac_try" in 3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3628 *) ac_try_echo=$ac_try;; 3629esac 3630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3631 (eval "$ac_compile") 2>conftest.er1 3632 ac_status=$? 3633 grep -v '^ *+' conftest.er1 >conftest.err 3634 rm -f conftest.er1 3635 cat conftest.err >&5 3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3637 (exit $ac_status); } && { 3638 test -z "$ac_c_werror_flag" || 3639 test ! -s conftest.err 3640 } && test -s conftest.$ac_objext; then 3641 ac_header_compiler=yes 3642else 3643 echo "$as_me: failed program was:" >&5 3644sed 's/^/| /' conftest.$ac_ext >&5 3645 3646 ac_header_compiler=no 3647fi 3648 3649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3650{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3651echo "${ECHO_T}$ac_header_compiler" >&6; } 3652 3653# Is the header present? 3654{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 3655echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; } 3656cat >conftest.$ac_ext <<_ACEOF 3657/* confdefs.h. */ 3658_ACEOF 3659cat confdefs.h >>conftest.$ac_ext 3660cat >>conftest.$ac_ext <<_ACEOF 3661/* end confdefs.h. */ 3662#include <linux/fs.h> 3663_ACEOF 3664if { (ac_try="$ac_cpp conftest.$ac_ext" 3665case "(($ac_try" in 3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3667 *) ac_try_echo=$ac_try;; 3668esac 3669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3671 ac_status=$? 3672 grep -v '^ *+' conftest.er1 >conftest.err 3673 rm -f conftest.er1 3674 cat conftest.err >&5 3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3676 (exit $ac_status); } >/dev/null && { 3677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3678 test ! -s conftest.err 3679 }; then 3680 ac_header_preproc=yes 3681else 3682 echo "$as_me: failed program was:" >&5 3683sed 's/^/| /' conftest.$ac_ext >&5 3684 3685 ac_header_preproc=no 3686fi 3687 3688rm -f conftest.err conftest.$ac_ext 3689{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3690echo "${ECHO_T}$ac_header_preproc" >&6; } 3691 3692# So? What about this header? 3693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3694 yes:no: ) 3695 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 3696echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3697 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 3698echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} 3699 ac_header_preproc=yes 3700 ;; 3701 no:yes:* ) 3702 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 3703echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} 3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 3705echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} 3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 3707echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} 3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 3709echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} 3710 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 3711echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} 3712 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 3713echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;} 3714 3715 ;; 3716esac 3717{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5 3718echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } 3719if test "${ac_cv_header_linux_fs_h+set}" = set; then 3720 echo $ECHO_N "(cached) $ECHO_C" >&6 3721else 3722 ac_cv_header_linux_fs_h=$ac_header_preproc 3723fi 3724{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 3725echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } 3726 3727fi 3728if test $ac_cv_header_linux_fs_h = yes; then 3729 linux_headers=yes 3730else 3731 linux_headers=no 3732fi 3733 3734 3735if test "$linux_headers" != yes; then 3736 LINUX_INCLUDE='-I$(top_builddir)/include' 3737fi 3738 3739{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 3740echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; } 3741if test "$GCC" = yes 3742then 3743 case "$host_cpu" in 3744 alpha) addcflags="-mieee" ;; 3745 esac 3746fi 3747if test "x$addcflags" != x 3748then 3749 { echo "$as_me:$LINENO: result: $addcflags" >&5 3750echo "${ECHO_T}$addcflags" >&6; } 3751 CFLAGS="$addcflags $CFLAGS" 3752else 3753 { echo "$as_me:$LINENO: result: (none)" >&5 3754echo "${ECHO_T}(none)" >&6; } 3755fi 3756LIB_EXT=.a 3757STATIC_LIB_EXT=.a 3758PROFILE_LIB_EXT=.a 3759 3760# Check whether --with-ldopts was given. 3761if test "${with_ldopts+set}" = set; then 3762 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 3763echo "${ECHO_T}LDFLAGS is $withval" >&6; } 3764LDFLAGS=$withval 3765fi 3766 3767 3768# Check whether --with-root-prefix was given. 3769if test "${with_root_prefix+set}" = set; then 3770 withval=$with_root_prefix; root_prefix=$withval 3771else 3772 root_prefix=NONE 3773fi 3774# Check whether --enable-maintainer-mode was given. 3775if test "${enable_maintainer_mode+set}" = set; then 3776 enableval=$enable_maintainer_mode; if test "$enableval" = "no" 3777then 3778 MAINTAINER_CMT=# 3779 { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5 3780echo "${ECHO_T}Disabling maintainer mode" >&6; } 3781else 3782 MAINTAINER_CMT= 3783 { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5 3784echo "${ECHO_T}Enabling maintainer mode" >&6; } 3785fi 3786 3787else 3788 MAINTAINER_CMT=# 3789{ echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5 3790echo "${ECHO_T}Disabling maintainer mode by default" >&6; } 3791 3792fi 3793 3794 3795# Check whether --enable-compression was given. 3796if test "${enable_compression+set}" = set; then 3797 enableval=$enable_compression; if test "$enableval" = "no" 3798then 3799 { echo "$as_me:$LINENO: result: Disabling compression support" >&5 3800echo "${ECHO_T}Disabling compression support" >&6; } 3801else 3802 cat >>confdefs.h <<\_ACEOF 3803#define ENABLE_COMPRESSION 1 3804_ACEOF 3805 3806 { echo "$as_me:$LINENO: result: Enabling compression support" >&5 3807echo "${ECHO_T}Enabling compression support" >&6; } 3808 { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5 3809echo "$as_me: WARNING: Compression support is experimental" >&2;} 3810fi 3811 3812else 3813 { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5 3814echo "${ECHO_T}Disabling compression support by default" >&6; } 3815 3816fi 3817 3818# Check whether --enable-htree was given. 3819if test "${enable_htree+set}" = set; then 3820 enableval=$enable_htree; if test "$enableval" = "no" 3821then 3822 HTREE_CMT=# 3823 { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5 3824echo "${ECHO_T}Disabling htree directory support" >&6; } 3825else 3826 HTREE_CMT= 3827 cat >>confdefs.h <<\_ACEOF 3828#define ENABLE_HTREE 1 3829_ACEOF 3830 3831 { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5 3832echo "${ECHO_T}Enabling htree directory support" >&6; } 3833fi 3834 3835else 3836 HTREE_CMT= 3837cat >>confdefs.h <<\_ACEOF 3838#define ENABLE_HTREE 1 3839_ACEOF 3840 3841{ echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5 3842echo "${ECHO_T}Enabling htree directory support by default" >&6; } 3843 3844fi 3845 3846 3847E2_PKG_CONFIG_STATIC=--static 3848LDFLAG_DYNAMIC= 3849PRIVATE_LIBS_CMT= 3850# Check whether --enable-elf-shlibs was given. 3851if test "${enable_elf_shlibs+set}" = set; then 3852 enableval=$enable_elf_shlibs; if test "$enableval" = "no" 3853then 3854 ELF_CMT=# 3855 MAKEFILE_ELF=/dev/null 3856 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5 3857echo "${ECHO_T}Disabling ELF shared libraries" >&6; } 3858else 3859 E2_PKG_CONFIG_STATIC= 3860 ELF_CMT= 3861 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib 3862 case "$host_os" in 3863 solaris2.*) 3864 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib 3865 ;; 3866 esac 3867 BINARY_TYPE=elfbin 3868 LIB_EXT=.so 3869 PRIVATE_LIBS_CMT=# 3870 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' 3871 { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5 3872echo "${ECHO_T}Enabling ELF shared libraries" >&6; } 3873fi 3874 3875else 3876 MAKEFILE_ELF=/dev/null 3877ELF_CMT=# 3878{ echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5 3879echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; } 3880 3881fi 3882 3883 3884 3885# Check whether --enable-bsd-shlibs was given. 3886if test "${enable_bsd_shlibs+set}" = set; then 3887 enableval=$enable_bsd_shlibs; if test "$enableval" = "no" 3888then 3889 BSDLIB_CMT=# 3890 MAKEFILE_BSDLIB=/dev/null 3891 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5 3892echo "${ECHO_T}Disabling BSD shared libraries" >&6; } 3893else 3894 E2_PKG_CONFIG_STATIC= 3895 BSDLIB_CMT= 3896 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib 3897 LIB_EXT=.so 3898 case "$host_os" in 3899 darwin*) 3900 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib 3901 LIB_EXT=.dylib 3902 ;; 3903 esac 3904 { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5 3905echo "${ECHO_T}Enabling BSD shared libraries" >&6; } 3906fi 3907 3908else 3909 MAKEFILE_BSDLIB=/dev/null 3910BSDLIB_CMT=# 3911{ echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5 3912echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; } 3913 3914fi 3915 3916 3917 3918# Check whether --enable-profile was given. 3919if test "${enable_profile+set}" = set; then 3920 enableval=$enable_profile; if test "$enableval" = "no" 3921then 3922 PROFILE_CMT=# 3923 MAKEFILE_PROFILE=/dev/null 3924 { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5 3925echo "${ECHO_T}Disabling profiling libraries" >&6; } 3926else 3927 PROFILE_CMT= 3928 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile 3929 PROFILED_LIB_EXT=_p.a 3930 { echo "$as_me:$LINENO: result: Building profiling libraries" >&5 3931echo "${ECHO_T}Building profiling libraries" >&6; } 3932fi 3933 3934else 3935 PROFILE_CMT=# 3936MAKEFILE_PROFILE=/dev/null 3937{ echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5 3938echo "${ECHO_T}Disabling profiling libraries by default" >&6; } 3939 3940fi 3941 3942 3943 3944# Check whether --enable-checker was given. 3945if test "${enable_checker+set}" = set; then 3946 enableval=$enable_checker; if test "$enableval" = "no" 3947then 3948 CHECKER_CMT=# 3949 MAKEFILE_CHECKER=/dev/null 3950 { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5 3951echo "${ECHO_T}Disabling checker libraries" >&6; } 3952else 3953 CHECKER_CMT= 3954 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker 3955 { echo "$as_me:$LINENO: result: Building checker libraries" >&5 3956echo "${ECHO_T}Building checker libraries" >&6; } 3957fi 3958 3959else 3960 CHECKER_CMT=# 3961MAKEFILE_CHECKER=/dev/null 3962{ echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5 3963echo "${ECHO_T}Disabling checker libraries by default" >&6; } 3964 3965fi 3966 3967 3968 3969 3970 3971 3972 3973 3974# Check whether --enable-jbd-debug was given. 3975if test "${enable_jbd_debug+set}" = set; then 3976 enableval=$enable_jbd_debug; if test "$enableval" = "no" 3977then 3978 { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5 3979echo "${ECHO_T}Disabling journal debugging" >&6; } 3980else 3981 cat >>confdefs.h <<\_ACEOF 3982#define CONFIG_JBD_DEBUG 1 3983_ACEOF 3984 3985 { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5 3986echo "${ECHO_T}Enabling journal debugging" >&6; } 3987fi 3988 3989else 3990 { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5 3991echo "${ECHO_T}Disabling journal debugging by default" >&6; } 3992 3993fi 3994 3995# Check whether --enable-blkid-debug was given. 3996if test "${enable_blkid_debug+set}" = set; then 3997 enableval=$enable_blkid_debug; if test "$enableval" = "no" 3998then 3999 { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5 4000echo "${ECHO_T}Disabling blkid debugging" >&6; } 4001else 4002 cat >>confdefs.h <<\_ACEOF 4003#define CONFIG_BLKID_DEBUG 1 4004_ACEOF 4005 4006 { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5 4007echo "${ECHO_T}Enabling blkid debugging" >&6; } 4008fi 4009 4010else 4011 { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5 4012echo "${ECHO_T}Disabling blkid debugging by default" >&6; } 4013 4014fi 4015 4016# Check whether --enable-testio-debug was given. 4017if test "${enable_testio_debug+set}" = set; then 4018 enableval=$enable_testio_debug; if test "$enableval" = "no" 4019then 4020 { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5 4021echo "${ECHO_T}Disabling testio debugging" >&6; } 4022 TEST_IO_CMT="#" 4023else 4024 TEST_IO_CMT= 4025 cat >>confdefs.h <<\_ACEOF 4026#define CONFIG_TESTIO_DEBUG 1 4027_ACEOF 4028 4029 { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5 4030echo "${ECHO_T}Enabling testio debugging" >&6; } 4031fi 4032 4033else 4034 { echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5 4035echo "${ECHO_T}Enabling testio debugging by default" >&6; } 4036cat >>confdefs.h <<\_ACEOF 4037#define CONFIG_TESTIO_DEBUG 1 4038_ACEOF 4039 4040TEST_IO_CMT= 4041 4042fi 4043 4044 4045# Check whether --enable-debugfs was given. 4046if test "${enable_debugfs+set}" = set; then 4047 enableval=$enable_debugfs; if test "$enableval" = "no" 4048then 4049 { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5 4050echo "${ECHO_T}Disabling debugfs support" >&6; } 4051 DEBUGFS_CMT="#" 4052else 4053 DEBUGFS_CMT= 4054 { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5 4055echo "${ECHO_T}Enabling debugfs support" >&6; } 4056fi 4057 4058else 4059 { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5 4060echo "${ECHO_T}Enabling debugfs support by default" >&6; } 4061DEBUGFS_CMT= 4062 4063fi 4064 4065 4066# Check whether --enable-imager was given. 4067if test "${enable_imager+set}" = set; then 4068 enableval=$enable_imager; if test "$enableval" = "no" 4069then 4070 { echo "$as_me:$LINENO: result: Disabling e2image support" >&5 4071echo "${ECHO_T}Disabling e2image support" >&6; } 4072 IMAGER_CMT="#" 4073else 4074 IMAGER_CMT= 4075 { echo "$as_me:$LINENO: result: Enabling e2image support" >&5 4076echo "${ECHO_T}Enabling e2image support" >&6; } 4077fi 4078 4079else 4080 { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5 4081echo "${ECHO_T}Enabling e2image support by default" >&6; } 4082IMAGER_CMT= 4083 4084fi 4085 4086 4087# Check whether --enable-resizer was given. 4088if test "${enable_resizer+set}" = set; then 4089 enableval=$enable_resizer; if test "$enableval" = "no" 4090then 4091 { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5 4092echo "${ECHO_T}Disabling e2resize support" >&6; } 4093 RESIZER_CMT="#" 4094else 4095 RESIZER_CMT= 4096 { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5 4097echo "${ECHO_T}Enabling e2resize support" >&6; } 4098fi 4099 4100else 4101 { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5 4102echo "${ECHO_T}Enabling e2resize support by default" >&6; } 4103RESIZER_CMT= 4104 4105fi 4106 4107 4108# Check whether --enable-fsck was given. 4109if test "${enable_fsck+set}" = set; then 4110 enableval=$enable_fsck; if test "$enableval" = "no" 4111then 4112 FSCK_PROG='' FSCK_MAN='' 4113 { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5 4114echo "${ECHO_T}Not building fsck wrapper" >&6; } 4115else 4116 FSCK_PROG=fsck FSCK_MAN=fsck.8 4117 { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5 4118echo "${ECHO_T}Building fsck wrapper" >&6; } 4119fi 4120 4121else 4122 case "$host_os" in 4123 gnu*) 4124 FSCK_PROG='' FSCK_MAN='' 4125 { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5 4126echo "${ECHO_T}Not building fsck wrapper by default" >&6; } 4127 ;; 4128 *) 4129 FSCK_PROG=fsck FSCK_MAN=fsck.8 4130 { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5 4131echo "${ECHO_T}Building fsck wrapper by default" >&6; } 4132esac 4133 4134fi 4135 4136 4137 4138# Check whether --enable-e2initrd-helper was given. 4139if test "${enable_e2initrd_helper+set}" = set; then 4140 enableval=$enable_e2initrd_helper; if test "$enableval" = "no" 4141then 4142 E2INITRD_PROG='' E2INITRD_MAN='' 4143 { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5 4144echo "${ECHO_T}Not building e2initrd helper" >&6; } 4145else 4146 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 4147 { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5 4148echo "${ECHO_T}Building e2initrd helper" >&6; } 4149fi 4150 4151else 4152 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 4153{ echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5 4154echo "${ECHO_T}Building e2initrd helper by default" >&6; } 4155 4156fi 4157 4158 4159 4160# Check whether --enable-tls was given. 4161if test "${enable_tls+set}" = set; then 4162 enableval=$enable_tls; if test "$enableval" = "no" 4163then 4164 try_tls="" 4165 { echo "$as_me:$LINENO: result: Disabling thread local support" >&5 4166echo "${ECHO_T}Disabling thread local support" >&6; } 4167else 4168 try_tls="yes" 4169 { echo "$as_me:$LINENO: result: Enabling thread local support" >&5 4170echo "${ECHO_T}Enabling thread local support" >&6; } 4171fi 4172 4173else 4174 if test -n "$WITH_DIET_LIBC" 4175then 4176 try_tls="" 4177 { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5 4178echo "${ECHO_T}Diet libc does not support thread local support" >&6; } 4179else 4180 try_tls="yes" 4181 { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5 4182echo "${ECHO_T}Try using thread local support by default" >&6; } 4183fi 4184 4185fi 4186 4187if test "$try_tls" = "yes" 4188then 4189 4190 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5 4191echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; } 4192 if test "${ac_cv_tls+set}" = set; then 4193 echo $ECHO_N "(cached) $ECHO_C" >&6 4194else 4195 4196 ax_tls_keywords="__thread __declspec(thread) none" 4197 for ax_tls_keyword in $ax_tls_keywords; do 4198 case $ax_tls_keyword in 4199 none) ac_cv_tls=none ; break ;; 4200 *) 4201 cat >conftest.$ac_ext <<_ACEOF 4202/* confdefs.h. */ 4203_ACEOF 4204cat confdefs.h >>conftest.$ac_ext 4205cat >>conftest.$ac_ext <<_ACEOF 4206/* end confdefs.h. */ 4207#include <stdlib.h> 4208 static void 4209 foo(void) { 4210 static $ax_tls_keyword int bar; 4211 exit(1); 4212 } 4213int 4214main () 4215{ 4216 4217 ; 4218 return 0; 4219} 4220_ACEOF 4221rm -f conftest.$ac_objext 4222if { (ac_try="$ac_compile" 4223case "(($ac_try" in 4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4225 *) ac_try_echo=$ac_try;; 4226esac 4227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4228 (eval "$ac_compile") 2>conftest.er1 4229 ac_status=$? 4230 grep -v '^ *+' conftest.er1 >conftest.err 4231 rm -f conftest.er1 4232 cat conftest.err >&5 4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4234 (exit $ac_status); } && { 4235 test -z "$ac_c_werror_flag" || 4236 test ! -s conftest.err 4237 } && test -s conftest.$ac_objext; then 4238 ac_cv_tls=$ax_tls_keyword ; break 4239else 4240 echo "$as_me: failed program was:" >&5 4241sed 's/^/| /' conftest.$ac_ext >&5 4242 4243 ac_cv_tls=none 4244 4245fi 4246 4247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4248 esac 4249 done 4250 4251fi 4252 4253 4254 if test "$ac_cv_tls" != "none"; then 4255 4256cat >>confdefs.h <<_ACEOF 4257#define TLS $ac_cv_tls 4258_ACEOF 4259 4260 fi 4261 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5 4262echo "${ECHO_T}$ac_cv_tls" >&6; } 4263 4264fi 4265# Check whether --enable-uuidd was given. 4266if test "${enable_uuidd+set}" = set; then 4267 enableval=$enable_uuidd; if test "$enableval" = "no" 4268then 4269 { echo "$as_me:$LINENO: result: Not building uuidd" >&5 4270echo "${ECHO_T}Not building uuidd" >&6; } 4271 UUIDD_CMT="#" 4272else 4273 cat >>confdefs.h <<\_ACEOF 4274#define USE_UUIDD 1 4275_ACEOF 4276 4277 UUIDD_CMT="" 4278 { echo "$as_me:$LINENO: result: Building uuidd" >&5 4279echo "${ECHO_T}Building uuidd" >&6; } 4280fi 4281 4282else 4283 cat >>confdefs.h <<\_ACEOF 4284#define USE_UUIDD 1 4285_ACEOF 4286 4287UUIDD_CMT="" 4288{ echo "$as_me:$LINENO: result: Building uuidd by default" >&5 4289echo "${ECHO_T}Building uuidd by default" >&6; } 4290 4291fi 4292 4293 4294MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library 4295 4296GETTEXT_PACKAGE=e2fsprogs 4297PACKAGE=e2fsprogs 4298VERSION="$E2FSPROGS_VERSION" 4299VERSION=0.14.1 4300cat >>confdefs.h <<_ACEOF 4301#define PACKAGE "$PACKAGE" 4302_ACEOF 4303 4304cat >>confdefs.h <<_ACEOF 4305#define VERSION "$VERSION" 4306_ACEOF 4307 4308 4309 4310 4311 4312{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4313echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 4314set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4315if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 4316 echo $ECHO_N "(cached) $ECHO_C" >&6 4317else 4318 cat >conftest.make <<\_ACEOF 4319SHELL = /bin/sh 4320all: 4321 @echo '@@@%%%=$(MAKE)=@@@%%%' 4322_ACEOF 4323# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4324case `${MAKE-make} -f conftest.make 2>/dev/null` in 4325 *@@@%%%=?*=@@@%%%*) 4326 eval ac_cv_prog_make_${ac_make}_set=yes;; 4327 *) 4328 eval ac_cv_prog_make_${ac_make}_set=no;; 4329esac 4330rm -f conftest.make 4331fi 4332if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4333 { echo "$as_me:$LINENO: result: yes" >&5 4334echo "${ECHO_T}yes" >&6; } 4335 SET_MAKE= 4336else 4337 { echo "$as_me:$LINENO: result: no" >&5 4338echo "${ECHO_T}no" >&6; } 4339 SET_MAKE="MAKE=${MAKE-make}" 4340fi 4341 4342# Find a good install program. We prefer a C program (faster), 4343# so one script is as good as another. But avoid the broken or 4344# incompatible versions: 4345# SysV /etc/install, /usr/sbin/install 4346# SunOS /usr/etc/install 4347# IRIX /sbin/install 4348# AIX /bin/install 4349# AmigaOS /C/install, which installs bootblocks on floppy discs 4350# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4351# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4352# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4353# OS/2's system install, which has a completely different semantic 4354# ./install, which can be erroneously created by make from ./install.sh. 4355{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4356echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 4357if test -z "$INSTALL"; then 4358if test "${ac_cv_path_install+set}" = set; then 4359 echo $ECHO_N "(cached) $ECHO_C" >&6 4360else 4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4362for as_dir in $PATH 4363do 4364 IFS=$as_save_IFS 4365 test -z "$as_dir" && as_dir=. 4366 # Account for people who put trailing slashes in PATH elements. 4367case $as_dir/ in 4368 ./ | .// | /cC/* | \ 4369 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4370 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4371 /usr/ucb/* ) ;; 4372 *) 4373 # OSF1 and SCO ODT 3.0 have their own names for install. 4374 # Don't use installbsd from OSF since it installs stuff as root 4375 # by default. 4376 for ac_prog in ginstall scoinst install; do 4377 for ac_exec_ext in '' $ac_executable_extensions; do 4378 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4379 if test $ac_prog = install && 4380 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4381 # AIX install. It has an incompatible calling convention. 4382 : 4383 elif test $ac_prog = install && 4384 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4385 # program-specific install script used by HP pwplus--don't use. 4386 : 4387 else 4388 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4389 break 3 4390 fi 4391 fi 4392 done 4393 done 4394 ;; 4395esac 4396done 4397IFS=$as_save_IFS 4398 4399 4400fi 4401 if test "${ac_cv_path_install+set}" = set; then 4402 INSTALL=$ac_cv_path_install 4403 else 4404 # As a last resort, use the slow shell script. Don't cache a 4405 # value for INSTALL within a source directory, because that will 4406 # break other packages using the cache if that directory is 4407 # removed, or if the value is a relative name. 4408 INSTALL=$ac_install_sh 4409 fi 4410fi 4411{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4412echo "${ECHO_T}$INSTALL" >&6; } 4413 4414# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4415# It thinks the first close brace ends the variable substitution. 4416test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4417 4418test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4419 4420test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4421 4422 4423 MKINSTALLDIRS= 4424 if test -n "$ac_aux_dir"; then 4425 case "$ac_aux_dir" in 4426 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 4427 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 4428 esac 4429 fi 4430 if test -z "$MKINSTALLDIRS"; then 4431 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 4432 fi 4433 4434 4435 4436 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 4437echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } 4438 # Check whether --enable-nls was given. 4439if test "${enable_nls+set}" = set; then 4440 enableval=$enable_nls; USE_NLS=$enableval 4441else 4442 USE_NLS=yes 4443fi 4444 4445 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 4446echo "${ECHO_T}$USE_NLS" >&6; } 4447 4448 4449 4450 4451 4452 4453# Prepare PATH_SEPARATOR. 4454# The user is always right. 4455if test "${PATH_SEPARATOR+set}" != set; then 4456 echo "#! /bin/sh" >conf$$.sh 4457 echo "exit 0" >>conf$$.sh 4458 chmod +x conf$$.sh 4459 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4460 PATH_SEPARATOR=';' 4461 else 4462 PATH_SEPARATOR=: 4463 fi 4464 rm -f conf$$.sh 4465fi 4466 4467# Find out how to test for executable files. Don't use a zero-byte file, 4468# as systems may use methods other than mode bits to determine executability. 4469cat >conf$$.file <<_ASEOF 4470#! /bin/sh 4471exit 0 4472_ASEOF 4473chmod +x conf$$.file 4474if test -x conf$$.file >/dev/null 2>&1; then 4475 ac_executable_p="test -x" 4476else 4477 ac_executable_p="test -f" 4478fi 4479rm -f conf$$.file 4480 4481# Extract the first word of "msgfmt", so it can be a program name with args. 4482set dummy msgfmt; ac_word=$2 4483{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4485if test "${ac_cv_path_MSGFMT+set}" = set; then 4486 echo $ECHO_N "(cached) $ECHO_C" >&6 4487else 4488 case "$MSGFMT" in 4489 [\\/]* | ?:[\\/]*) 4490 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 4491 ;; 4492 *) 4493 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4494 for ac_dir in $PATH; do 4495 IFS="$ac_save_IFS" 4496 test -z "$ac_dir" && ac_dir=. 4497 for ac_exec_ext in '' $ac_executable_extensions; do 4498 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4499 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 4500 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4501 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 4502 break 2 4503 fi 4504 fi 4505 done 4506 done 4507 IFS="$ac_save_IFS" 4508 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 4509 ;; 4510esac 4511fi 4512MSGFMT="$ac_cv_path_MSGFMT" 4513if test "$MSGFMT" != ":"; then 4514 { echo "$as_me:$LINENO: result: $MSGFMT" >&5 4515echo "${ECHO_T}$MSGFMT" >&6; } 4516else 4517 { echo "$as_me:$LINENO: result: no" >&5 4518echo "${ECHO_T}no" >&6; } 4519fi 4520 4521 # Extract the first word of "gmsgfmt", so it can be a program name with args. 4522set dummy gmsgfmt; ac_word=$2 4523{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4525if test "${ac_cv_path_GMSGFMT+set}" = set; then 4526 echo $ECHO_N "(cached) $ECHO_C" >&6 4527else 4528 case $GMSGFMT in 4529 [\\/]* | ?:[\\/]*) 4530 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 4531 ;; 4532 *) 4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4534for as_dir in $PATH 4535do 4536 IFS=$as_save_IFS 4537 test -z "$as_dir" && as_dir=. 4538 for ac_exec_ext in '' $ac_executable_extensions; do 4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4540 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 4541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4542 break 2 4543 fi 4544done 4545done 4546IFS=$as_save_IFS 4547 4548 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 4549 ;; 4550esac 4551fi 4552GMSGFMT=$ac_cv_path_GMSGFMT 4553if test -n "$GMSGFMT"; then 4554 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 4555echo "${ECHO_T}$GMSGFMT" >&6; } 4556else 4557 { echo "$as_me:$LINENO: result: no" >&5 4558echo "${ECHO_T}no" >&6; } 4559fi 4560 4561 4562 4563 4564# Prepare PATH_SEPARATOR. 4565# The user is always right. 4566if test "${PATH_SEPARATOR+set}" != set; then 4567 echo "#! /bin/sh" >conf$$.sh 4568 echo "exit 0" >>conf$$.sh 4569 chmod +x conf$$.sh 4570 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4571 PATH_SEPARATOR=';' 4572 else 4573 PATH_SEPARATOR=: 4574 fi 4575 rm -f conf$$.sh 4576fi 4577 4578# Find out how to test for executable files. Don't use a zero-byte file, 4579# as systems may use methods other than mode bits to determine executability. 4580cat >conf$$.file <<_ASEOF 4581#! /bin/sh 4582exit 0 4583_ASEOF 4584chmod +x conf$$.file 4585if test -x conf$$.file >/dev/null 2>&1; then 4586 ac_executable_p="test -x" 4587else 4588 ac_executable_p="test -f" 4589fi 4590rm -f conf$$.file 4591 4592# Extract the first word of "xgettext", so it can be a program name with args. 4593set dummy xgettext; ac_word=$2 4594{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4596if test "${ac_cv_path_XGETTEXT+set}" = set; then 4597 echo $ECHO_N "(cached) $ECHO_C" >&6 4598else 4599 case "$XGETTEXT" in 4600 [\\/]* | ?:[\\/]*) 4601 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 4602 ;; 4603 *) 4604 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4605 for ac_dir in $PATH; do 4606 IFS="$ac_save_IFS" 4607 test -z "$ac_dir" && ac_dir=. 4608 for ac_exec_ext in '' $ac_executable_extensions; do 4609 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4610 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 4611 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4612 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 4613 break 2 4614 fi 4615 fi 4616 done 4617 done 4618 IFS="$ac_save_IFS" 4619 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 4620 ;; 4621esac 4622fi 4623XGETTEXT="$ac_cv_path_XGETTEXT" 4624if test "$XGETTEXT" != ":"; then 4625 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 4626echo "${ECHO_T}$XGETTEXT" >&6; } 4627else 4628 { echo "$as_me:$LINENO: result: no" >&5 4629echo "${ECHO_T}no" >&6; } 4630fi 4631 4632 rm -f messages.po 4633 4634 4635# Prepare PATH_SEPARATOR. 4636# The user is always right. 4637if test "${PATH_SEPARATOR+set}" != set; then 4638 echo "#! /bin/sh" >conf$$.sh 4639 echo "exit 0" >>conf$$.sh 4640 chmod +x conf$$.sh 4641 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4642 PATH_SEPARATOR=';' 4643 else 4644 PATH_SEPARATOR=: 4645 fi 4646 rm -f conf$$.sh 4647fi 4648 4649# Find out how to test for executable files. Don't use a zero-byte file, 4650# as systems may use methods other than mode bits to determine executability. 4651cat >conf$$.file <<_ASEOF 4652#! /bin/sh 4653exit 0 4654_ASEOF 4655chmod +x conf$$.file 4656if test -x conf$$.file >/dev/null 2>&1; then 4657 ac_executable_p="test -x" 4658else 4659 ac_executable_p="test -f" 4660fi 4661rm -f conf$$.file 4662 4663# Extract the first word of "msgmerge", so it can be a program name with args. 4664set dummy msgmerge; ac_word=$2 4665{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4667if test "${ac_cv_path_MSGMERGE+set}" = set; then 4668 echo $ECHO_N "(cached) $ECHO_C" >&6 4669else 4670 case "$MSGMERGE" in 4671 [\\/]* | ?:[\\/]*) 4672 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 4673 ;; 4674 *) 4675 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4676 for ac_dir in $PATH; do 4677 IFS="$ac_save_IFS" 4678 test -z "$ac_dir" && ac_dir=. 4679 for ac_exec_ext in '' $ac_executable_extensions; do 4680 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4681 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 4682 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 4683 break 2 4684 fi 4685 fi 4686 done 4687 done 4688 IFS="$ac_save_IFS" 4689 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 4690 ;; 4691esac 4692fi 4693MSGMERGE="$ac_cv_path_MSGMERGE" 4694if test "$MSGMERGE" != ":"; then 4695 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 4696echo "${ECHO_T}$MSGMERGE" >&6; } 4697else 4698 { echo "$as_me:$LINENO: result: no" >&5 4699echo "${ECHO_T}no" >&6; } 4700fi 4701 4702 4703 if test "$GMSGFMT" != ":"; then 4704 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 4705 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4706 : ; 4707 else 4708 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 4709 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 4710echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 4711 GMSGFMT=":" 4712 fi 4713 fi 4714 4715 if test "$XGETTEXT" != ":"; then 4716 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 4717 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4718 : ; 4719 else 4720 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 4721echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } 4722 XGETTEXT=":" 4723 fi 4724 rm -f messages.po 4725 fi 4726 4727 ac_config_commands="$ac_config_commands default-1" 4728 4729 4730if test -n "$ac_tool_prefix"; then 4731 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4732set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4733{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4735if test "${ac_cv_prog_RANLIB+set}" = set; then 4736 echo $ECHO_N "(cached) $ECHO_C" >&6 4737else 4738 if test -n "$RANLIB"; then 4739 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4740else 4741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4742for as_dir in $PATH 4743do 4744 IFS=$as_save_IFS 4745 test -z "$as_dir" && as_dir=. 4746 for ac_exec_ext in '' $ac_executable_extensions; do 4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4748 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4750 break 2 4751 fi 4752done 4753done 4754IFS=$as_save_IFS 4755 4756fi 4757fi 4758RANLIB=$ac_cv_prog_RANLIB 4759if test -n "$RANLIB"; then 4760 { echo "$as_me:$LINENO: result: $RANLIB" >&5 4761echo "${ECHO_T}$RANLIB" >&6; } 4762else 4763 { echo "$as_me:$LINENO: result: no" >&5 4764echo "${ECHO_T}no" >&6; } 4765fi 4766 4767 4768fi 4769if test -z "$ac_cv_prog_RANLIB"; then 4770 ac_ct_RANLIB=$RANLIB 4771 # Extract the first word of "ranlib", so it can be a program name with args. 4772set dummy ranlib; ac_word=$2 4773{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4775if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4776 echo $ECHO_N "(cached) $ECHO_C" >&6 4777else 4778 if test -n "$ac_ct_RANLIB"; then 4779 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4780else 4781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4782for as_dir in $PATH 4783do 4784 IFS=$as_save_IFS 4785 test -z "$as_dir" && as_dir=. 4786 for ac_exec_ext in '' $ac_executable_extensions; do 4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4788 ac_cv_prog_ac_ct_RANLIB="ranlib" 4789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4790 break 2 4791 fi 4792done 4793done 4794IFS=$as_save_IFS 4795 4796fi 4797fi 4798ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4799if test -n "$ac_ct_RANLIB"; then 4800 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4801echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 4802else 4803 { echo "$as_me:$LINENO: result: no" >&5 4804echo "${ECHO_T}no" >&6; } 4805fi 4806 4807 if test "x$ac_ct_RANLIB" = x; then 4808 RANLIB=":" 4809 else 4810 case $cross_compiling:$ac_tool_warned in 4811yes:) 4812{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4813whose name does not start with the host triplet. If you think this 4814configuration is useful to you, please write to autoconf@gnu.org." >&5 4815echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4816whose name does not start with the host triplet. If you think this 4817configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4818ac_tool_warned=yes ;; 4819esac 4820 RANLIB=$ac_ct_RANLIB 4821 fi 4822else 4823 RANLIB="$ac_cv_prog_RANLIB" 4824fi 4825 4826 4827 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 4828echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } 4829if test "${ac_cv_lib_cposix_strerror+set}" = set; then 4830 echo $ECHO_N "(cached) $ECHO_C" >&6 4831else 4832 ac_check_lib_save_LIBS=$LIBS 4833LIBS="-lcposix $LIBS" 4834cat >conftest.$ac_ext <<_ACEOF 4835/* confdefs.h. */ 4836_ACEOF 4837cat confdefs.h >>conftest.$ac_ext 4838cat >>conftest.$ac_ext <<_ACEOF 4839/* end confdefs.h. */ 4840 4841/* Override any GCC internal prototype to avoid an error. 4842 Use char because int might match the return type of a GCC 4843 builtin and then its argument prototype would still apply. */ 4844#ifdef __cplusplus 4845extern "C" 4846#endif 4847char strerror (); 4848int 4849main () 4850{ 4851return strerror (); 4852 ; 4853 return 0; 4854} 4855_ACEOF 4856rm -f conftest.$ac_objext conftest$ac_exeext 4857if { (ac_try="$ac_link" 4858case "(($ac_try" in 4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4860 *) ac_try_echo=$ac_try;; 4861esac 4862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4863 (eval "$ac_link") 2>conftest.er1 4864 ac_status=$? 4865 grep -v '^ *+' conftest.er1 >conftest.err 4866 rm -f conftest.er1 4867 cat conftest.err >&5 4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4869 (exit $ac_status); } && { 4870 test -z "$ac_c_werror_flag" || 4871 test ! -s conftest.err 4872 } && test -s conftest$ac_exeext && 4873 $as_test_x conftest$ac_exeext; then 4874 ac_cv_lib_cposix_strerror=yes 4875else 4876 echo "$as_me: failed program was:" >&5 4877sed 's/^/| /' conftest.$ac_ext >&5 4878 4879 ac_cv_lib_cposix_strerror=no 4880fi 4881 4882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4883 conftest$ac_exeext conftest.$ac_ext 4884LIBS=$ac_check_lib_save_LIBS 4885fi 4886{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 4887echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } 4888if test $ac_cv_lib_cposix_strerror = yes; then 4889 LIBS="$LIBS -lcposix" 4890fi 4891 4892 4893 4894{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4895echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 4896if test "${ac_cv_c_const+set}" = set; then 4897 echo $ECHO_N "(cached) $ECHO_C" >&6 4898else 4899 cat >conftest.$ac_ext <<_ACEOF 4900/* confdefs.h. */ 4901_ACEOF 4902cat confdefs.h >>conftest.$ac_ext 4903cat >>conftest.$ac_ext <<_ACEOF 4904/* end confdefs.h. */ 4905 4906int 4907main () 4908{ 4909/* FIXME: Include the comments suggested by Paul. */ 4910#ifndef __cplusplus 4911 /* Ultrix mips cc rejects this. */ 4912 typedef int charset[2]; 4913 const charset cs; 4914 /* SunOS 4.1.1 cc rejects this. */ 4915 char const *const *pcpcc; 4916 char **ppc; 4917 /* NEC SVR4.0.2 mips cc rejects this. */ 4918 struct point {int x, y;}; 4919 static struct point const zero = {0,0}; 4920 /* AIX XL C 1.02.0.0 rejects this. 4921 It does not let you subtract one const X* pointer from another in 4922 an arm of an if-expression whose if-part is not a constant 4923 expression */ 4924 const char *g = "string"; 4925 pcpcc = &g + (g ? g-g : 0); 4926 /* HPUX 7.0 cc rejects these. */ 4927 ++pcpcc; 4928 ppc = (char**) pcpcc; 4929 pcpcc = (char const *const *) ppc; 4930 { /* SCO 3.2v4 cc rejects this. */ 4931 char *t; 4932 char const *s = 0 ? (char *) 0 : (char const *) 0; 4933 4934 *t++ = 0; 4935 if (s) return 0; 4936 } 4937 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4938 int x[] = {25, 17}; 4939 const int *foo = &x[0]; 4940 ++foo; 4941 } 4942 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4943 typedef const int *iptr; 4944 iptr p = 0; 4945 ++p; 4946 } 4947 { /* AIX XL C 1.02.0.0 rejects this saying 4948 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4949 struct s { int j; const int *ap[3]; }; 4950 struct s *b; b->j = 5; 4951 } 4952 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4953 const int foo = 10; 4954 if (!foo) return 0; 4955 } 4956 return !cs[0] && !zero.x; 4957#endif 4958 4959 ; 4960 return 0; 4961} 4962_ACEOF 4963rm -f conftest.$ac_objext 4964if { (ac_try="$ac_compile" 4965case "(($ac_try" in 4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4967 *) ac_try_echo=$ac_try;; 4968esac 4969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4970 (eval "$ac_compile") 2>conftest.er1 4971 ac_status=$? 4972 grep -v '^ *+' conftest.er1 >conftest.err 4973 rm -f conftest.er1 4974 cat conftest.err >&5 4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4976 (exit $ac_status); } && { 4977 test -z "$ac_c_werror_flag" || 4978 test ! -s conftest.err 4979 } && test -s conftest.$ac_objext; then 4980 ac_cv_c_const=yes 4981else 4982 echo "$as_me: failed program was:" >&5 4983sed 's/^/| /' conftest.$ac_ext >&5 4984 4985 ac_cv_c_const=no 4986fi 4987 4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4989fi 4990{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4991echo "${ECHO_T}$ac_cv_c_const" >&6; } 4992if test $ac_cv_c_const = no; then 4993 4994cat >>confdefs.h <<\_ACEOF 4995#define const 4996_ACEOF 4997 4998fi 4999 5000 5001 { echo "$as_me:$LINENO: checking for signed" >&5 5002echo $ECHO_N "checking for signed... $ECHO_C" >&6; } 5003if test "${bh_cv_c_signed+set}" = set; then 5004 echo $ECHO_N "(cached) $ECHO_C" >&6 5005else 5006 cat >conftest.$ac_ext <<_ACEOF 5007/* confdefs.h. */ 5008_ACEOF 5009cat confdefs.h >>conftest.$ac_ext 5010cat >>conftest.$ac_ext <<_ACEOF 5011/* end confdefs.h. */ 5012 5013int 5014main () 5015{ 5016signed char x; 5017 ; 5018 return 0; 5019} 5020_ACEOF 5021rm -f conftest.$ac_objext 5022if { (ac_try="$ac_compile" 5023case "(($ac_try" in 5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5025 *) ac_try_echo=$ac_try;; 5026esac 5027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5028 (eval "$ac_compile") 2>conftest.er1 5029 ac_status=$? 5030 grep -v '^ *+' conftest.er1 >conftest.err 5031 rm -f conftest.er1 5032 cat conftest.err >&5 5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5034 (exit $ac_status); } && { 5035 test -z "$ac_c_werror_flag" || 5036 test ! -s conftest.err 5037 } && test -s conftest.$ac_objext; then 5038 bh_cv_c_signed=yes 5039else 5040 echo "$as_me: failed program was:" >&5 5041sed 's/^/| /' conftest.$ac_ext >&5 5042 5043 bh_cv_c_signed=no 5044fi 5045 5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5047fi 5048{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 5049echo "${ECHO_T}$bh_cv_c_signed" >&6; } 5050 if test $bh_cv_c_signed = no; then 5051 5052cat >>confdefs.h <<\_ACEOF 5053#define signed 5054_ACEOF 5055 5056 fi 5057 5058{ echo "$as_me:$LINENO: checking for inline" >&5 5059echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 5060if test "${ac_cv_c_inline+set}" = set; then 5061 echo $ECHO_N "(cached) $ECHO_C" >&6 5062else 5063 ac_cv_c_inline=no 5064for ac_kw in inline __inline__ __inline; do 5065 cat >conftest.$ac_ext <<_ACEOF 5066/* confdefs.h. */ 5067_ACEOF 5068cat confdefs.h >>conftest.$ac_ext 5069cat >>conftest.$ac_ext <<_ACEOF 5070/* end confdefs.h. */ 5071#ifndef __cplusplus 5072typedef int foo_t; 5073static $ac_kw foo_t static_foo () {return 0; } 5074$ac_kw foo_t foo () {return 0; } 5075#endif 5076 5077_ACEOF 5078rm -f conftest.$ac_objext 5079if { (ac_try="$ac_compile" 5080case "(($ac_try" in 5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5082 *) ac_try_echo=$ac_try;; 5083esac 5084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5085 (eval "$ac_compile") 2>conftest.er1 5086 ac_status=$? 5087 grep -v '^ *+' conftest.er1 >conftest.err 5088 rm -f conftest.er1 5089 cat conftest.err >&5 5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5091 (exit $ac_status); } && { 5092 test -z "$ac_c_werror_flag" || 5093 test ! -s conftest.err 5094 } && test -s conftest.$ac_objext; then 5095 ac_cv_c_inline=$ac_kw 5096else 5097 echo "$as_me: failed program was:" >&5 5098sed 's/^/| /' conftest.$ac_ext >&5 5099 5100 5101fi 5102 5103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5104 test "$ac_cv_c_inline" != no && break 5105done 5106 5107fi 5108{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 5109echo "${ECHO_T}$ac_cv_c_inline" >&6; } 5110 5111 5112case $ac_cv_c_inline in 5113 inline | yes) ;; 5114 *) 5115 case $ac_cv_c_inline in 5116 no) ac_val=;; 5117 *) ac_val=$ac_cv_c_inline;; 5118 esac 5119 cat >>confdefs.h <<_ACEOF 5120#ifndef __cplusplus 5121#define inline $ac_val 5122#endif 5123_ACEOF 5124 ;; 5125esac 5126 5127{ echo "$as_me:$LINENO: checking for off_t" >&5 5128echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } 5129if test "${ac_cv_type_off_t+set}" = set; then 5130 echo $ECHO_N "(cached) $ECHO_C" >&6 5131else 5132 cat >conftest.$ac_ext <<_ACEOF 5133/* confdefs.h. */ 5134_ACEOF 5135cat confdefs.h >>conftest.$ac_ext 5136cat >>conftest.$ac_ext <<_ACEOF 5137/* end confdefs.h. */ 5138$ac_includes_default 5139typedef off_t ac__type_new_; 5140int 5141main () 5142{ 5143if ((ac__type_new_ *) 0) 5144 return 0; 5145if (sizeof (ac__type_new_)) 5146 return 0; 5147 ; 5148 return 0; 5149} 5150_ACEOF 5151rm -f conftest.$ac_objext 5152if { (ac_try="$ac_compile" 5153case "(($ac_try" in 5154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5155 *) ac_try_echo=$ac_try;; 5156esac 5157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5158 (eval "$ac_compile") 2>conftest.er1 5159 ac_status=$? 5160 grep -v '^ *+' conftest.er1 >conftest.err 5161 rm -f conftest.er1 5162 cat conftest.err >&5 5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5164 (exit $ac_status); } && { 5165 test -z "$ac_c_werror_flag" || 5166 test ! -s conftest.err 5167 } && test -s conftest.$ac_objext; then 5168 ac_cv_type_off_t=yes 5169else 5170 echo "$as_me: failed program was:" >&5 5171sed 's/^/| /' conftest.$ac_ext >&5 5172 5173 ac_cv_type_off_t=no 5174fi 5175 5176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5177fi 5178{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 5179echo "${ECHO_T}$ac_cv_type_off_t" >&6; } 5180if test $ac_cv_type_off_t = yes; then 5181 : 5182else 5183 5184cat >>confdefs.h <<_ACEOF 5185#define off_t long int 5186_ACEOF 5187 5188fi 5189 5190{ echo "$as_me:$LINENO: checking for size_t" >&5 5191echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 5192if test "${ac_cv_type_size_t+set}" = set; then 5193 echo $ECHO_N "(cached) $ECHO_C" >&6 5194else 5195 cat >conftest.$ac_ext <<_ACEOF 5196/* confdefs.h. */ 5197_ACEOF 5198cat confdefs.h >>conftest.$ac_ext 5199cat >>conftest.$ac_ext <<_ACEOF 5200/* end confdefs.h. */ 5201$ac_includes_default 5202typedef size_t ac__type_new_; 5203int 5204main () 5205{ 5206if ((ac__type_new_ *) 0) 5207 return 0; 5208if (sizeof (ac__type_new_)) 5209 return 0; 5210 ; 5211 return 0; 5212} 5213_ACEOF 5214rm -f conftest.$ac_objext 5215if { (ac_try="$ac_compile" 5216case "(($ac_try" in 5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5218 *) ac_try_echo=$ac_try;; 5219esac 5220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5221 (eval "$ac_compile") 2>conftest.er1 5222 ac_status=$? 5223 grep -v '^ *+' conftest.er1 >conftest.err 5224 rm -f conftest.er1 5225 cat conftest.err >&5 5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5227 (exit $ac_status); } && { 5228 test -z "$ac_c_werror_flag" || 5229 test ! -s conftest.err 5230 } && test -s conftest.$ac_objext; then 5231 ac_cv_type_size_t=yes 5232else 5233 echo "$as_me: failed program was:" >&5 5234sed 's/^/| /' conftest.$ac_ext >&5 5235 5236 ac_cv_type_size_t=no 5237fi 5238 5239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5240fi 5241{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 5242echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 5243if test $ac_cv_type_size_t = yes; then 5244 : 5245else 5246 5247cat >>confdefs.h <<_ACEOF 5248#define size_t unsigned int 5249_ACEOF 5250 5251fi 5252 5253 5254 { echo "$as_me:$LINENO: checking for long long" >&5 5255echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 5256if test "${ac_cv_type_long_long+set}" = set; then 5257 echo $ECHO_N "(cached) $ECHO_C" >&6 5258else 5259 cat >conftest.$ac_ext <<_ACEOF 5260/* confdefs.h. */ 5261_ACEOF 5262cat confdefs.h >>conftest.$ac_ext 5263cat >>conftest.$ac_ext <<_ACEOF 5264/* end confdefs.h. */ 5265long long ll = 1LL; int i = 63; 5266int 5267main () 5268{ 5269long long llmax = (long long) -1; 5270 return ll << i | ll >> i | llmax / ll | llmax % ll; 5271 ; 5272 return 0; 5273} 5274_ACEOF 5275rm -f conftest.$ac_objext conftest$ac_exeext 5276if { (ac_try="$ac_link" 5277case "(($ac_try" in 5278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5279 *) ac_try_echo=$ac_try;; 5280esac 5281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5282 (eval "$ac_link") 2>conftest.er1 5283 ac_status=$? 5284 grep -v '^ *+' conftest.er1 >conftest.err 5285 rm -f conftest.er1 5286 cat conftest.err >&5 5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5288 (exit $ac_status); } && { 5289 test -z "$ac_c_werror_flag" || 5290 test ! -s conftest.err 5291 } && test -s conftest$ac_exeext && 5292 $as_test_x conftest$ac_exeext; then 5293 ac_cv_type_long_long=yes 5294else 5295 echo "$as_me: failed program was:" >&5 5296sed 's/^/| /' conftest.$ac_ext >&5 5297 5298 ac_cv_type_long_long=no 5299fi 5300 5301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5302 conftest$ac_exeext conftest.$ac_ext 5303fi 5304{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 5305echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 5306 if test $ac_cv_type_long_long = yes; then 5307 5308cat >>confdefs.h <<\_ACEOF 5309#define HAVE_LONG_LONG 1 5310_ACEOF 5311 5312 fi 5313 5314 5315 { echo "$as_me:$LINENO: checking for long double" >&5 5316echo $ECHO_N "checking for long double... $ECHO_C" >&6; } 5317if test "${gt_cv_c_long_double+set}" = set; then 5318 echo $ECHO_N "(cached) $ECHO_C" >&6 5319else 5320 if test "$GCC" = yes; then 5321 gt_cv_c_long_double=yes 5322 else 5323 cat >conftest.$ac_ext <<_ACEOF 5324/* confdefs.h. */ 5325_ACEOF 5326cat confdefs.h >>conftest.$ac_ext 5327cat >>conftest.$ac_ext <<_ACEOF 5328/* end confdefs.h. */ 5329 5330 /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 5331 long double foo = 0.0; 5332 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 5333 int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 5334 5335int 5336main () 5337{ 5338 5339 ; 5340 return 0; 5341} 5342_ACEOF 5343rm -f conftest.$ac_objext 5344if { (ac_try="$ac_compile" 5345case "(($ac_try" in 5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5347 *) ac_try_echo=$ac_try;; 5348esac 5349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5350 (eval "$ac_compile") 2>conftest.er1 5351 ac_status=$? 5352 grep -v '^ *+' conftest.er1 >conftest.err 5353 rm -f conftest.er1 5354 cat conftest.err >&5 5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5356 (exit $ac_status); } && { 5357 test -z "$ac_c_werror_flag" || 5358 test ! -s conftest.err 5359 } && test -s conftest.$ac_objext; then 5360 gt_cv_c_long_double=yes 5361else 5362 echo "$as_me: failed program was:" >&5 5363sed 's/^/| /' conftest.$ac_ext >&5 5364 5365 gt_cv_c_long_double=no 5366fi 5367 5368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5369 fi 5370fi 5371{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 5372echo "${ECHO_T}$gt_cv_c_long_double" >&6; } 5373 if test $gt_cv_c_long_double = yes; then 5374 5375cat >>confdefs.h <<\_ACEOF 5376#define HAVE_LONG_DOUBLE 1 5377_ACEOF 5378 5379 fi 5380 5381 5382 { echo "$as_me:$LINENO: checking for wchar_t" >&5 5383echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } 5384if test "${gt_cv_c_wchar_t+set}" = set; then 5385 echo $ECHO_N "(cached) $ECHO_C" >&6 5386else 5387 cat >conftest.$ac_ext <<_ACEOF 5388/* confdefs.h. */ 5389_ACEOF 5390cat confdefs.h >>conftest.$ac_ext 5391cat >>conftest.$ac_ext <<_ACEOF 5392/* end confdefs.h. */ 5393#include <stddef.h> 5394 wchar_t foo = (wchar_t)'\0'; 5395int 5396main () 5397{ 5398 5399 ; 5400 return 0; 5401} 5402_ACEOF 5403rm -f conftest.$ac_objext 5404if { (ac_try="$ac_compile" 5405case "(($ac_try" in 5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5407 *) ac_try_echo=$ac_try;; 5408esac 5409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5410 (eval "$ac_compile") 2>conftest.er1 5411 ac_status=$? 5412 grep -v '^ *+' conftest.er1 >conftest.err 5413 rm -f conftest.er1 5414 cat conftest.err >&5 5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5416 (exit $ac_status); } && { 5417 test -z "$ac_c_werror_flag" || 5418 test ! -s conftest.err 5419 } && test -s conftest.$ac_objext; then 5420 gt_cv_c_wchar_t=yes 5421else 5422 echo "$as_me: failed program was:" >&5 5423sed 's/^/| /' conftest.$ac_ext >&5 5424 5425 gt_cv_c_wchar_t=no 5426fi 5427 5428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5429fi 5430{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 5431echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } 5432 if test $gt_cv_c_wchar_t = yes; then 5433 5434cat >>confdefs.h <<\_ACEOF 5435#define HAVE_WCHAR_T 1 5436_ACEOF 5437 5438 fi 5439 5440 5441 { echo "$as_me:$LINENO: checking for wint_t" >&5 5442echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } 5443if test "${gt_cv_c_wint_t+set}" = set; then 5444 echo $ECHO_N "(cached) $ECHO_C" >&6 5445else 5446 cat >conftest.$ac_ext <<_ACEOF 5447/* confdefs.h. */ 5448_ACEOF 5449cat confdefs.h >>conftest.$ac_ext 5450cat >>conftest.$ac_ext <<_ACEOF 5451/* end confdefs.h. */ 5452#include <wchar.h> 5453 wint_t foo = (wchar_t)'\0'; 5454int 5455main () 5456{ 5457 5458 ; 5459 return 0; 5460} 5461_ACEOF 5462rm -f conftest.$ac_objext 5463if { (ac_try="$ac_compile" 5464case "(($ac_try" in 5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5466 *) ac_try_echo=$ac_try;; 5467esac 5468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5469 (eval "$ac_compile") 2>conftest.er1 5470 ac_status=$? 5471 grep -v '^ *+' conftest.er1 >conftest.err 5472 rm -f conftest.er1 5473 cat conftest.err >&5 5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5475 (exit $ac_status); } && { 5476 test -z "$ac_c_werror_flag" || 5477 test ! -s conftest.err 5478 } && test -s conftest.$ac_objext; then 5479 gt_cv_c_wint_t=yes 5480else 5481 echo "$as_me: failed program was:" >&5 5482sed 's/^/| /' conftest.$ac_ext >&5 5483 5484 gt_cv_c_wint_t=no 5485fi 5486 5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5488fi 5489{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 5490echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } 5491 if test $gt_cv_c_wint_t = yes; then 5492 5493cat >>confdefs.h <<\_ACEOF 5494#define HAVE_WINT_T 1 5495_ACEOF 5496 5497 fi 5498 5499 5500 { echo "$as_me:$LINENO: checking for inttypes.h" >&5 5501echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } 5502if test "${jm_ac_cv_header_inttypes_h+set}" = set; then 5503 echo $ECHO_N "(cached) $ECHO_C" >&6 5504else 5505 cat >conftest.$ac_ext <<_ACEOF 5506/* confdefs.h. */ 5507_ACEOF 5508cat confdefs.h >>conftest.$ac_ext 5509cat >>conftest.$ac_ext <<_ACEOF 5510/* end confdefs.h. */ 5511#include <sys/types.h> 5512#include <inttypes.h> 5513int 5514main () 5515{ 5516uintmax_t i = (uintmax_t) -1; 5517 ; 5518 return 0; 5519} 5520_ACEOF 5521rm -f conftest.$ac_objext 5522if { (ac_try="$ac_compile" 5523case "(($ac_try" in 5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5525 *) ac_try_echo=$ac_try;; 5526esac 5527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5528 (eval "$ac_compile") 2>conftest.er1 5529 ac_status=$? 5530 grep -v '^ *+' conftest.er1 >conftest.err 5531 rm -f conftest.er1 5532 cat conftest.err >&5 5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5534 (exit $ac_status); } && { 5535 test -z "$ac_c_werror_flag" || 5536 test ! -s conftest.err 5537 } && test -s conftest.$ac_objext; then 5538 jm_ac_cv_header_inttypes_h=yes 5539else 5540 echo "$as_me: failed program was:" >&5 5541sed 's/^/| /' conftest.$ac_ext >&5 5542 5543 jm_ac_cv_header_inttypes_h=no 5544fi 5545 5546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5547fi 5548{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 5549echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } 5550 if test $jm_ac_cv_header_inttypes_h = yes; then 5551 5552cat >>confdefs.h <<_ACEOF 5553#define HAVE_INTTYPES_H_WITH_UINTMAX 1 5554_ACEOF 5555 5556 fi 5557 5558 5559 { echo "$as_me:$LINENO: checking for stdint.h" >&5 5560echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } 5561if test "${jm_ac_cv_header_stdint_h+set}" = set; then 5562 echo $ECHO_N "(cached) $ECHO_C" >&6 5563else 5564 cat >conftest.$ac_ext <<_ACEOF 5565/* confdefs.h. */ 5566_ACEOF 5567cat confdefs.h >>conftest.$ac_ext 5568cat >>conftest.$ac_ext <<_ACEOF 5569/* end confdefs.h. */ 5570#include <sys/types.h> 5571#include <stdint.h> 5572int 5573main () 5574{ 5575uintmax_t i = (uintmax_t) -1; 5576 ; 5577 return 0; 5578} 5579_ACEOF 5580rm -f conftest.$ac_objext 5581if { (ac_try="$ac_compile" 5582case "(($ac_try" in 5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5584 *) ac_try_echo=$ac_try;; 5585esac 5586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5587 (eval "$ac_compile") 2>conftest.er1 5588 ac_status=$? 5589 grep -v '^ *+' conftest.er1 >conftest.err 5590 rm -f conftest.er1 5591 cat conftest.err >&5 5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5593 (exit $ac_status); } && { 5594 test -z "$ac_c_werror_flag" || 5595 test ! -s conftest.err 5596 } && test -s conftest.$ac_objext; then 5597 jm_ac_cv_header_stdint_h=yes 5598else 5599 echo "$as_me: failed program was:" >&5 5600sed 's/^/| /' conftest.$ac_ext >&5 5601 5602 jm_ac_cv_header_stdint_h=no 5603fi 5604 5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5606fi 5607{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 5608echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } 5609 if test $jm_ac_cv_header_stdint_h = yes; then 5610 5611cat >>confdefs.h <<_ACEOF 5612#define HAVE_STDINT_H_WITH_UINTMAX 1 5613_ACEOF 5614 5615 fi 5616 5617 5618 5619 5620 { echo "$as_me:$LINENO: checking for intmax_t" >&5 5621echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } 5622if test "${gt_cv_c_intmax_t+set}" = set; then 5623 echo $ECHO_N "(cached) $ECHO_C" >&6 5624else 5625 cat >conftest.$ac_ext <<_ACEOF 5626/* confdefs.h. */ 5627_ACEOF 5628cat confdefs.h >>conftest.$ac_ext 5629cat >>conftest.$ac_ext <<_ACEOF 5630/* end confdefs.h. */ 5631 5632#include <stddef.h> 5633#include <stdlib.h> 5634#if HAVE_STDINT_H_WITH_UINTMAX 5635#include <stdint.h> 5636#endif 5637#if HAVE_INTTYPES_H_WITH_UINTMAX 5638#include <inttypes.h> 5639#endif 5640 5641int 5642main () 5643{ 5644intmax_t x = -1; 5645 ; 5646 return 0; 5647} 5648_ACEOF 5649rm -f conftest.$ac_objext 5650if { (ac_try="$ac_compile" 5651case "(($ac_try" in 5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5653 *) ac_try_echo=$ac_try;; 5654esac 5655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5656 (eval "$ac_compile") 2>conftest.er1 5657 ac_status=$? 5658 grep -v '^ *+' conftest.er1 >conftest.err 5659 rm -f conftest.er1 5660 cat conftest.err >&5 5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5662 (exit $ac_status); } && { 5663 test -z "$ac_c_werror_flag" || 5664 test ! -s conftest.err 5665 } && test -s conftest.$ac_objext; then 5666 gt_cv_c_intmax_t=yes 5667else 5668 echo "$as_me: failed program was:" >&5 5669sed 's/^/| /' conftest.$ac_ext >&5 5670 5671 gt_cv_c_intmax_t=no 5672fi 5673 5674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5675fi 5676{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 5677echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } 5678 if test $gt_cv_c_intmax_t = yes; then 5679 5680cat >>confdefs.h <<\_ACEOF 5681#define HAVE_INTMAX_T 1 5682_ACEOF 5683 5684 fi 5685 5686 5687 5688 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 5689echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; } 5690if test "${gt_cv_func_printf_posix+set}" = set; then 5691 echo $ECHO_N "(cached) $ECHO_C" >&6 5692else 5693 5694 if test "$cross_compiling" = yes; then 5695 5696 cat >conftest.$ac_ext <<_ACEOF 5697/* confdefs.h. */ 5698_ACEOF 5699cat confdefs.h >>conftest.$ac_ext 5700cat >>conftest.$ac_ext <<_ACEOF 5701/* end confdefs.h. */ 5702 5703#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 5704 notposix 5705#endif 5706 5707_ACEOF 5708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5709 $EGREP "notposix" >/dev/null 2>&1; then 5710 gt_cv_func_printf_posix="guessing no" 5711else 5712 gt_cv_func_printf_posix="guessing yes" 5713fi 5714rm -f conftest* 5715 5716 5717else 5718 cat >conftest.$ac_ext <<_ACEOF 5719/* confdefs.h. */ 5720_ACEOF 5721cat confdefs.h >>conftest.$ac_ext 5722cat >>conftest.$ac_ext <<_ACEOF 5723/* end confdefs.h. */ 5724 5725#include <stdio.h> 5726#include <string.h> 5727/* The string "%2$d %1$d", with dollar characters protected from the shell's 5728 dollar expansion (possibly an autoconf bug). */ 5729static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 5730static char buf[100]; 5731int main () 5732{ 5733 sprintf (buf, format, 33, 55); 5734 return (strcmp (buf, "55 33") != 0); 5735} 5736_ACEOF 5737rm -f conftest$ac_exeext 5738if { (ac_try="$ac_link" 5739case "(($ac_try" in 5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5741 *) ac_try_echo=$ac_try;; 5742esac 5743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5744 (eval "$ac_link") 2>&5 5745 ac_status=$? 5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5748 { (case "(($ac_try" in 5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5750 *) ac_try_echo=$ac_try;; 5751esac 5752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5753 (eval "$ac_try") 2>&5 5754 ac_status=$? 5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5756 (exit $ac_status); }; }; then 5757 gt_cv_func_printf_posix=yes 5758else 5759 echo "$as_me: program exited with status $ac_status" >&5 5760echo "$as_me: failed program was:" >&5 5761sed 's/^/| /' conftest.$ac_ext >&5 5762 5763( exit $ac_status ) 5764gt_cv_func_printf_posix=no 5765fi 5766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5767fi 5768 5769 5770 5771fi 5772{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 5773echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } 5774 case $gt_cv_func_printf_posix in 5775 *yes) 5776 5777cat >>confdefs.h <<\_ACEOF 5778#define HAVE_POSIX_PRINTF 1 5779_ACEOF 5780 5781 ;; 5782 esac 5783 5784# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5785# for constant arguments. Useless! 5786{ echo "$as_me:$LINENO: checking for working alloca.h" >&5 5787echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } 5788if test "${ac_cv_working_alloca_h+set}" = set; then 5789 echo $ECHO_N "(cached) $ECHO_C" >&6 5790else 5791 cat >conftest.$ac_ext <<_ACEOF 5792/* confdefs.h. */ 5793_ACEOF 5794cat confdefs.h >>conftest.$ac_ext 5795cat >>conftest.$ac_ext <<_ACEOF 5796/* end confdefs.h. */ 5797#include <alloca.h> 5798int 5799main () 5800{ 5801char *p = (char *) alloca (2 * sizeof (int)); 5802 if (p) return 0; 5803 ; 5804 return 0; 5805} 5806_ACEOF 5807rm -f conftest.$ac_objext conftest$ac_exeext 5808if { (ac_try="$ac_link" 5809case "(($ac_try" in 5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5811 *) ac_try_echo=$ac_try;; 5812esac 5813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5814 (eval "$ac_link") 2>conftest.er1 5815 ac_status=$? 5816 grep -v '^ *+' conftest.er1 >conftest.err 5817 rm -f conftest.er1 5818 cat conftest.err >&5 5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5820 (exit $ac_status); } && { 5821 test -z "$ac_c_werror_flag" || 5822 test ! -s conftest.err 5823 } && test -s conftest$ac_exeext && 5824 $as_test_x conftest$ac_exeext; then 5825 ac_cv_working_alloca_h=yes 5826else 5827 echo "$as_me: failed program was:" >&5 5828sed 's/^/| /' conftest.$ac_ext >&5 5829 5830 ac_cv_working_alloca_h=no 5831fi 5832 5833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5834 conftest$ac_exeext conftest.$ac_ext 5835fi 5836{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5837echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } 5838if test $ac_cv_working_alloca_h = yes; then 5839 5840cat >>confdefs.h <<\_ACEOF 5841#define HAVE_ALLOCA_H 1 5842_ACEOF 5843 5844fi 5845 5846{ echo "$as_me:$LINENO: checking for alloca" >&5 5847echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } 5848if test "${ac_cv_func_alloca_works+set}" = set; then 5849 echo $ECHO_N "(cached) $ECHO_C" >&6 5850else 5851 cat >conftest.$ac_ext <<_ACEOF 5852/* confdefs.h. */ 5853_ACEOF 5854cat confdefs.h >>conftest.$ac_ext 5855cat >>conftest.$ac_ext <<_ACEOF 5856/* end confdefs.h. */ 5857#ifdef __GNUC__ 5858# define alloca __builtin_alloca 5859#else 5860# ifdef _MSC_VER 5861# include <malloc.h> 5862# define alloca _alloca 5863# else 5864# ifdef HAVE_ALLOCA_H 5865# include <alloca.h> 5866# else 5867# ifdef _AIX 5868 #pragma alloca 5869# else 5870# ifndef alloca /* predefined by HP cc +Olibcalls */ 5871char *alloca (); 5872# endif 5873# endif 5874# endif 5875# endif 5876#endif 5877 5878int 5879main () 5880{ 5881char *p = (char *) alloca (1); 5882 if (p) return 0; 5883 ; 5884 return 0; 5885} 5886_ACEOF 5887rm -f conftest.$ac_objext conftest$ac_exeext 5888if { (ac_try="$ac_link" 5889case "(($ac_try" in 5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5891 *) ac_try_echo=$ac_try;; 5892esac 5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5894 (eval "$ac_link") 2>conftest.er1 5895 ac_status=$? 5896 grep -v '^ *+' conftest.er1 >conftest.err 5897 rm -f conftest.er1 5898 cat conftest.err >&5 5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5900 (exit $ac_status); } && { 5901 test -z "$ac_c_werror_flag" || 5902 test ! -s conftest.err 5903 } && test -s conftest$ac_exeext && 5904 $as_test_x conftest$ac_exeext; then 5905 ac_cv_func_alloca_works=yes 5906else 5907 echo "$as_me: failed program was:" >&5 5908sed 's/^/| /' conftest.$ac_ext >&5 5909 5910 ac_cv_func_alloca_works=no 5911fi 5912 5913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5914 conftest$ac_exeext conftest.$ac_ext 5915fi 5916{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 5917echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } 5918 5919if test $ac_cv_func_alloca_works = yes; then 5920 5921cat >>confdefs.h <<\_ACEOF 5922#define HAVE_ALLOCA 1 5923_ACEOF 5924 5925else 5926 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5927# that cause trouble. Some versions do not even contain alloca or 5928# contain a buggy version. If you still want to use their alloca, 5929# use ar to extract alloca.o from them instead of compiling alloca.c. 5930 5931ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 5932 5933cat >>confdefs.h <<\_ACEOF 5934#define C_ALLOCA 1 5935_ACEOF 5936 5937 5938{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 5939echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } 5940if test "${ac_cv_os_cray+set}" = set; then 5941 echo $ECHO_N "(cached) $ECHO_C" >&6 5942else 5943 cat >conftest.$ac_ext <<_ACEOF 5944/* confdefs.h. */ 5945_ACEOF 5946cat confdefs.h >>conftest.$ac_ext 5947cat >>conftest.$ac_ext <<_ACEOF 5948/* end confdefs.h. */ 5949#if defined CRAY && ! defined CRAY2 5950webecray 5951#else 5952wenotbecray 5953#endif 5954 5955_ACEOF 5956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5957 $EGREP "webecray" >/dev/null 2>&1; then 5958 ac_cv_os_cray=yes 5959else 5960 ac_cv_os_cray=no 5961fi 5962rm -f conftest* 5963 5964fi 5965{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 5966echo "${ECHO_T}$ac_cv_os_cray" >&6; } 5967if test $ac_cv_os_cray = yes; then 5968 for ac_func in _getb67 GETB67 getb67; do 5969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5970{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5972if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5973 echo $ECHO_N "(cached) $ECHO_C" >&6 5974else 5975 cat >conftest.$ac_ext <<_ACEOF 5976/* confdefs.h. */ 5977_ACEOF 5978cat confdefs.h >>conftest.$ac_ext 5979cat >>conftest.$ac_ext <<_ACEOF 5980/* end confdefs.h. */ 5981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5982 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5983#define $ac_func innocuous_$ac_func 5984 5985/* System header to define __stub macros and hopefully few prototypes, 5986 which can conflict with char $ac_func (); below. 5987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5988 <limits.h> exists even on freestanding compilers. */ 5989 5990#ifdef __STDC__ 5991# include <limits.h> 5992#else 5993# include <assert.h> 5994#endif 5995 5996#undef $ac_func 5997 5998/* Override any GCC internal prototype to avoid an error. 5999 Use char because int might match the return type of a GCC 6000 builtin and then its argument prototype would still apply. */ 6001#ifdef __cplusplus 6002extern "C" 6003#endif 6004char $ac_func (); 6005/* The GNU C library defines this for functions which it implements 6006 to always fail with ENOSYS. Some functions are actually named 6007 something starting with __ and the normal name is an alias. */ 6008#if defined __stub_$ac_func || defined __stub___$ac_func 6009choke me 6010#endif 6011 6012int 6013main () 6014{ 6015return $ac_func (); 6016 ; 6017 return 0; 6018} 6019_ACEOF 6020rm -f conftest.$ac_objext conftest$ac_exeext 6021if { (ac_try="$ac_link" 6022case "(($ac_try" in 6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6024 *) ac_try_echo=$ac_try;; 6025esac 6026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6027 (eval "$ac_link") 2>conftest.er1 6028 ac_status=$? 6029 grep -v '^ *+' conftest.er1 >conftest.err 6030 rm -f conftest.er1 6031 cat conftest.err >&5 6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6033 (exit $ac_status); } && { 6034 test -z "$ac_c_werror_flag" || 6035 test ! -s conftest.err 6036 } && test -s conftest$ac_exeext && 6037 $as_test_x conftest$ac_exeext; then 6038 eval "$as_ac_var=yes" 6039else 6040 echo "$as_me: failed program was:" >&5 6041sed 's/^/| /' conftest.$ac_ext >&5 6042 6043 eval "$as_ac_var=no" 6044fi 6045 6046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6047 conftest$ac_exeext conftest.$ac_ext 6048fi 6049ac_res=`eval echo '${'$as_ac_var'}'` 6050 { echo "$as_me:$LINENO: result: $ac_res" >&5 6051echo "${ECHO_T}$ac_res" >&6; } 6052if test `eval echo '${'$as_ac_var'}'` = yes; then 6053 6054cat >>confdefs.h <<_ACEOF 6055#define CRAY_STACKSEG_END $ac_func 6056_ACEOF 6057 6058 break 6059fi 6060 6061 done 6062fi 6063 6064{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 6065echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } 6066if test "${ac_cv_c_stack_direction+set}" = set; then 6067 echo $ECHO_N "(cached) $ECHO_C" >&6 6068else 6069 if test "$cross_compiling" = yes; then 6070 ac_cv_c_stack_direction=0 6071else 6072 cat >conftest.$ac_ext <<_ACEOF 6073/* confdefs.h. */ 6074_ACEOF 6075cat confdefs.h >>conftest.$ac_ext 6076cat >>conftest.$ac_ext <<_ACEOF 6077/* end confdefs.h. */ 6078$ac_includes_default 6079int 6080find_stack_direction () 6081{ 6082 static char *addr = 0; 6083 auto char dummy; 6084 if (addr == 0) 6085 { 6086 addr = &dummy; 6087 return find_stack_direction (); 6088 } 6089 else 6090 return (&dummy > addr) ? 1 : -1; 6091} 6092 6093int 6094main () 6095{ 6096 return find_stack_direction () < 0; 6097} 6098_ACEOF 6099rm -f conftest$ac_exeext 6100if { (ac_try="$ac_link" 6101case "(($ac_try" in 6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6103 *) ac_try_echo=$ac_try;; 6104esac 6105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6106 (eval "$ac_link") 2>&5 6107 ac_status=$? 6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6110 { (case "(($ac_try" in 6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6112 *) ac_try_echo=$ac_try;; 6113esac 6114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6115 (eval "$ac_try") 2>&5 6116 ac_status=$? 6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6118 (exit $ac_status); }; }; then 6119 ac_cv_c_stack_direction=1 6120else 6121 echo "$as_me: program exited with status $ac_status" >&5 6122echo "$as_me: failed program was:" >&5 6123sed 's/^/| /' conftest.$ac_ext >&5 6124 6125( exit $ac_status ) 6126ac_cv_c_stack_direction=-1 6127fi 6128rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6129fi 6130 6131 6132fi 6133{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 6134echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } 6135 6136cat >>confdefs.h <<_ACEOF 6137#define STACK_DIRECTION $ac_cv_c_stack_direction 6138_ACEOF 6139 6140 6141fi 6142 6143 6144 6145for ac_header in stdlib.h unistd.h 6146do 6147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6149 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6152 echo $ECHO_N "(cached) $ECHO_C" >&6 6153fi 6154ac_res=`eval echo '${'$as_ac_Header'}'` 6155 { echo "$as_me:$LINENO: result: $ac_res" >&5 6156echo "${ECHO_T}$ac_res" >&6; } 6157else 6158 # Is the header compilable? 6159{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6161cat >conftest.$ac_ext <<_ACEOF 6162/* confdefs.h. */ 6163_ACEOF 6164cat confdefs.h >>conftest.$ac_ext 6165cat >>conftest.$ac_ext <<_ACEOF 6166/* end confdefs.h. */ 6167$ac_includes_default 6168#include <$ac_header> 6169_ACEOF 6170rm -f conftest.$ac_objext 6171if { (ac_try="$ac_compile" 6172case "(($ac_try" in 6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6174 *) ac_try_echo=$ac_try;; 6175esac 6176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6177 (eval "$ac_compile") 2>conftest.er1 6178 ac_status=$? 6179 grep -v '^ *+' conftest.er1 >conftest.err 6180 rm -f conftest.er1 6181 cat conftest.err >&5 6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6183 (exit $ac_status); } && { 6184 test -z "$ac_c_werror_flag" || 6185 test ! -s conftest.err 6186 } && test -s conftest.$ac_objext; then 6187 ac_header_compiler=yes 6188else 6189 echo "$as_me: failed program was:" >&5 6190sed 's/^/| /' conftest.$ac_ext >&5 6191 6192 ac_header_compiler=no 6193fi 6194 6195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6196{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6197echo "${ECHO_T}$ac_header_compiler" >&6; } 6198 6199# Is the header present? 6200{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6202cat >conftest.$ac_ext <<_ACEOF 6203/* confdefs.h. */ 6204_ACEOF 6205cat confdefs.h >>conftest.$ac_ext 6206cat >>conftest.$ac_ext <<_ACEOF 6207/* end confdefs.h. */ 6208#include <$ac_header> 6209_ACEOF 6210if { (ac_try="$ac_cpp conftest.$ac_ext" 6211case "(($ac_try" in 6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6213 *) ac_try_echo=$ac_try;; 6214esac 6215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6217 ac_status=$? 6218 grep -v '^ *+' conftest.er1 >conftest.err 6219 rm -f conftest.er1 6220 cat conftest.err >&5 6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6222 (exit $ac_status); } >/dev/null && { 6223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6224 test ! -s conftest.err 6225 }; then 6226 ac_header_preproc=yes 6227else 6228 echo "$as_me: failed program was:" >&5 6229sed 's/^/| /' conftest.$ac_ext >&5 6230 6231 ac_header_preproc=no 6232fi 6233 6234rm -f conftest.err conftest.$ac_ext 6235{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6236echo "${ECHO_T}$ac_header_preproc" >&6; } 6237 6238# So? What about this header? 6239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6240 yes:no: ) 6241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6242echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6244echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6245 ac_header_preproc=yes 6246 ;; 6247 no:yes:* ) 6248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6249echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6251echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6253echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6255echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6257echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6259echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6260 6261 ;; 6262esac 6263{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6266 echo $ECHO_N "(cached) $ECHO_C" >&6 6267else 6268 eval "$as_ac_Header=\$ac_header_preproc" 6269fi 6270ac_res=`eval echo '${'$as_ac_Header'}'` 6271 { echo "$as_me:$LINENO: result: $ac_res" >&5 6272echo "${ECHO_T}$ac_res" >&6; } 6273 6274fi 6275if test `eval echo '${'$as_ac_Header'}'` = yes; then 6276 cat >>confdefs.h <<_ACEOF 6277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6278_ACEOF 6279 6280fi 6281 6282done 6283 6284 6285for ac_func in getpagesize 6286do 6287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6288{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6290if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6291 echo $ECHO_N "(cached) $ECHO_C" >&6 6292else 6293 cat >conftest.$ac_ext <<_ACEOF 6294/* confdefs.h. */ 6295_ACEOF 6296cat confdefs.h >>conftest.$ac_ext 6297cat >>conftest.$ac_ext <<_ACEOF 6298/* end confdefs.h. */ 6299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6300 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6301#define $ac_func innocuous_$ac_func 6302 6303/* System header to define __stub macros and hopefully few prototypes, 6304 which can conflict with char $ac_func (); below. 6305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6306 <limits.h> exists even on freestanding compilers. */ 6307 6308#ifdef __STDC__ 6309# include <limits.h> 6310#else 6311# include <assert.h> 6312#endif 6313 6314#undef $ac_func 6315 6316/* Override any GCC internal prototype to avoid an error. 6317 Use char because int might match the return type of a GCC 6318 builtin and then its argument prototype would still apply. */ 6319#ifdef __cplusplus 6320extern "C" 6321#endif 6322char $ac_func (); 6323/* The GNU C library defines this for functions which it implements 6324 to always fail with ENOSYS. Some functions are actually named 6325 something starting with __ and the normal name is an alias. */ 6326#if defined __stub_$ac_func || defined __stub___$ac_func 6327choke me 6328#endif 6329 6330int 6331main () 6332{ 6333return $ac_func (); 6334 ; 6335 return 0; 6336} 6337_ACEOF 6338rm -f conftest.$ac_objext conftest$ac_exeext 6339if { (ac_try="$ac_link" 6340case "(($ac_try" in 6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6342 *) ac_try_echo=$ac_try;; 6343esac 6344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6345 (eval "$ac_link") 2>conftest.er1 6346 ac_status=$? 6347 grep -v '^ *+' conftest.er1 >conftest.err 6348 rm -f conftest.er1 6349 cat conftest.err >&5 6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6351 (exit $ac_status); } && { 6352 test -z "$ac_c_werror_flag" || 6353 test ! -s conftest.err 6354 } && test -s conftest$ac_exeext && 6355 $as_test_x conftest$ac_exeext; then 6356 eval "$as_ac_var=yes" 6357else 6358 echo "$as_me: failed program was:" >&5 6359sed 's/^/| /' conftest.$ac_ext >&5 6360 6361 eval "$as_ac_var=no" 6362fi 6363 6364rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6365 conftest$ac_exeext conftest.$ac_ext 6366fi 6367ac_res=`eval echo '${'$as_ac_var'}'` 6368 { echo "$as_me:$LINENO: result: $ac_res" >&5 6369echo "${ECHO_T}$ac_res" >&6; } 6370if test `eval echo '${'$as_ac_var'}'` = yes; then 6371 cat >>confdefs.h <<_ACEOF 6372#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6373_ACEOF 6374 6375fi 6376done 6377 6378{ echo "$as_me:$LINENO: checking for working mmap" >&5 6379echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 6380if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 6381 echo $ECHO_N "(cached) $ECHO_C" >&6 6382else 6383 if test "$cross_compiling" = yes; then 6384 ac_cv_func_mmap_fixed_mapped=no 6385else 6386 cat >conftest.$ac_ext <<_ACEOF 6387/* confdefs.h. */ 6388_ACEOF 6389cat confdefs.h >>conftest.$ac_ext 6390cat >>conftest.$ac_ext <<_ACEOF 6391/* end confdefs.h. */ 6392$ac_includes_default 6393/* malloc might have been renamed as rpl_malloc. */ 6394#undef malloc 6395 6396/* Thanks to Mike Haertel and Jim Avera for this test. 6397 Here is a matrix of mmap possibilities: 6398 mmap private not fixed 6399 mmap private fixed at somewhere currently unmapped 6400 mmap private fixed at somewhere already mapped 6401 mmap shared not fixed 6402 mmap shared fixed at somewhere currently unmapped 6403 mmap shared fixed at somewhere already mapped 6404 For private mappings, we should verify that changes cannot be read() 6405 back from the file, nor mmap's back from the file at a different 6406 address. (There have been systems where private was not correctly 6407 implemented like the infamous i386 svr4.0, and systems where the 6408 VM page cache was not coherent with the file system buffer cache 6409 like early versions of FreeBSD and possibly contemporary NetBSD.) 6410 For shared mappings, we should conversely verify that changes get 6411 propagated back to all the places they're supposed to be. 6412 6413 Grep wants private fixed already mapped. 6414 The main things grep needs to know about mmap are: 6415 * does it exist and is it safe to write into the mmap'd area 6416 * how to use it (BSD variants) */ 6417 6418#include <fcntl.h> 6419#include <sys/mman.h> 6420 6421#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 6422char *malloc (); 6423#endif 6424 6425/* This mess was copied from the GNU getpagesize.h. */ 6426#ifndef HAVE_GETPAGESIZE 6427/* Assume that all systems that can run configure have sys/param.h. */ 6428# ifndef HAVE_SYS_PARAM_H 6429# define HAVE_SYS_PARAM_H 1 6430# endif 6431 6432# ifdef _SC_PAGESIZE 6433# define getpagesize() sysconf(_SC_PAGESIZE) 6434# else /* no _SC_PAGESIZE */ 6435# ifdef HAVE_SYS_PARAM_H 6436# include <sys/param.h> 6437# ifdef EXEC_PAGESIZE 6438# define getpagesize() EXEC_PAGESIZE 6439# else /* no EXEC_PAGESIZE */ 6440# ifdef NBPG 6441# define getpagesize() NBPG * CLSIZE 6442# ifndef CLSIZE 6443# define CLSIZE 1 6444# endif /* no CLSIZE */ 6445# else /* no NBPG */ 6446# ifdef NBPC 6447# define getpagesize() NBPC 6448# else /* no NBPC */ 6449# ifdef PAGESIZE 6450# define getpagesize() PAGESIZE 6451# endif /* PAGESIZE */ 6452# endif /* no NBPC */ 6453# endif /* no NBPG */ 6454# endif /* no EXEC_PAGESIZE */ 6455# else /* no HAVE_SYS_PARAM_H */ 6456# define getpagesize() 8192 /* punt totally */ 6457# endif /* no HAVE_SYS_PARAM_H */ 6458# endif /* no _SC_PAGESIZE */ 6459 6460#endif /* no HAVE_GETPAGESIZE */ 6461 6462int 6463main () 6464{ 6465 char *data, *data2, *data3; 6466 int i, pagesize; 6467 int fd; 6468 6469 pagesize = getpagesize (); 6470 6471 /* First, make a file with some known garbage in it. */ 6472 data = (char *) malloc (pagesize); 6473 if (!data) 6474 return 1; 6475 for (i = 0; i < pagesize; ++i) 6476 *(data + i) = rand (); 6477 umask (0); 6478 fd = creat ("conftest.mmap", 0600); 6479 if (fd < 0) 6480 return 1; 6481 if (write (fd, data, pagesize) != pagesize) 6482 return 1; 6483 close (fd); 6484 6485 /* Next, try to mmap the file at a fixed address which already has 6486 something else allocated at it. If we can, also make sure that 6487 we see the same garbage. */ 6488 fd = open ("conftest.mmap", O_RDWR); 6489 if (fd < 0) 6490 return 1; 6491 data2 = (char *) malloc (2 * pagesize); 6492 if (!data2) 6493 return 1; 6494 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 6495 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 6496 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 6497 return 1; 6498 for (i = 0; i < pagesize; ++i) 6499 if (*(data + i) != *(data2 + i)) 6500 return 1; 6501 6502 /* Finally, make sure that changes to the mapped area do not 6503 percolate back to the file as seen by read(). (This is a bug on 6504 some variants of i386 svr4.0.) */ 6505 for (i = 0; i < pagesize; ++i) 6506 *(data2 + i) = *(data2 + i) + 1; 6507 data3 = (char *) malloc (pagesize); 6508 if (!data3) 6509 return 1; 6510 if (read (fd, data3, pagesize) != pagesize) 6511 return 1; 6512 for (i = 0; i < pagesize; ++i) 6513 if (*(data + i) != *(data3 + i)) 6514 return 1; 6515 close (fd); 6516 return 0; 6517} 6518_ACEOF 6519rm -f conftest$ac_exeext 6520if { (ac_try="$ac_link" 6521case "(($ac_try" in 6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6523 *) ac_try_echo=$ac_try;; 6524esac 6525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6526 (eval "$ac_link") 2>&5 6527 ac_status=$? 6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6530 { (case "(($ac_try" in 6531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6532 *) ac_try_echo=$ac_try;; 6533esac 6534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6535 (eval "$ac_try") 2>&5 6536 ac_status=$? 6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6538 (exit $ac_status); }; }; then 6539 ac_cv_func_mmap_fixed_mapped=yes 6540else 6541 echo "$as_me: program exited with status $ac_status" >&5 6542echo "$as_me: failed program was:" >&5 6543sed 's/^/| /' conftest.$ac_ext >&5 6544 6545( exit $ac_status ) 6546ac_cv_func_mmap_fixed_mapped=no 6547fi 6548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6549fi 6550 6551 6552fi 6553{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 6554echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 6555if test $ac_cv_func_mmap_fixed_mapped = yes; then 6556 6557cat >>confdefs.h <<\_ACEOF 6558#define HAVE_MMAP 1 6559_ACEOF 6560 6561fi 6562rm -f conftest.mmap 6563 6564 6565 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 6566echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; } 6567if test "${ac_cv_gnu_library_2_1+set}" = set; then 6568 echo $ECHO_N "(cached) $ECHO_C" >&6 6569else 6570 cat >conftest.$ac_ext <<_ACEOF 6571/* confdefs.h. */ 6572_ACEOF 6573cat confdefs.h >>conftest.$ac_ext 6574cat >>conftest.$ac_ext <<_ACEOF 6575/* end confdefs.h. */ 6576 6577#include <features.h> 6578#ifdef __GNU_LIBRARY__ 6579 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 6580 Lucky GNU user 6581 #endif 6582#endif 6583 6584_ACEOF 6585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6586 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 6587 ac_cv_gnu_library_2_1=yes 6588else 6589 ac_cv_gnu_library_2_1=no 6590fi 6591rm -f conftest* 6592 6593 6594 6595fi 6596{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 6597echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } 6598 6599 GLIBC21="$ac_cv_gnu_library_2_1" 6600 6601 6602 6603 6604 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 6605echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; } 6606if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then 6607 echo $ECHO_N "(cached) $ECHO_C" >&6 6608else 6609 6610 if test "$cross_compiling" = yes; then 6611 6612 # Guess based on the CPU. 6613 case "$host_cpu" in 6614 alpha* | i3456786 | m68k | s390*) 6615 gt_cv_int_divbyzero_sigfpe="guessing yes";; 6616 *) 6617 gt_cv_int_divbyzero_sigfpe="guessing no";; 6618 esac 6619 6620else 6621 cat >conftest.$ac_ext <<_ACEOF 6622/* confdefs.h. */ 6623_ACEOF 6624cat confdefs.h >>conftest.$ac_ext 6625cat >>conftest.$ac_ext <<_ACEOF 6626/* end confdefs.h. */ 6627 6628#include <stdlib.h> 6629#include <signal.h> 6630 6631static void 6632#ifdef __cplusplus 6633sigfpe_handler (int sig) 6634#else 6635sigfpe_handler (sig) int sig; 6636#endif 6637{ 6638 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 6639 exit (sig != SIGFPE); 6640} 6641 6642int x = 1; 6643int y = 0; 6644int z; 6645int nan; 6646 6647int main () 6648{ 6649 signal (SIGFPE, sigfpe_handler); 6650/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 6651#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 6652 signal (SIGTRAP, sigfpe_handler); 6653#endif 6654/* Linux/SPARC yields signal SIGILL. */ 6655#if defined (__sparc__) && defined (__linux__) 6656 signal (SIGILL, sigfpe_handler); 6657#endif 6658 6659 z = x / y; 6660 nan = y / y; 6661 exit (1); 6662} 6663 6664_ACEOF 6665rm -f conftest$ac_exeext 6666if { (ac_try="$ac_link" 6667case "(($ac_try" in 6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6669 *) ac_try_echo=$ac_try;; 6670esac 6671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6672 (eval "$ac_link") 2>&5 6673 ac_status=$? 6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6676 { (case "(($ac_try" in 6677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6678 *) ac_try_echo=$ac_try;; 6679esac 6680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6681 (eval "$ac_try") 2>&5 6682 ac_status=$? 6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6684 (exit $ac_status); }; }; then 6685 gt_cv_int_divbyzero_sigfpe=yes 6686else 6687 echo "$as_me: program exited with status $ac_status" >&5 6688echo "$as_me: failed program was:" >&5 6689sed 's/^/| /' conftest.$ac_ext >&5 6690 6691( exit $ac_status ) 6692gt_cv_int_divbyzero_sigfpe=no 6693fi 6694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6695fi 6696 6697 6698 6699fi 6700{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 6701echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } 6702 case "$gt_cv_int_divbyzero_sigfpe" in 6703 *yes) value=1;; 6704 *) value=0;; 6705 esac 6706 6707cat >>confdefs.h <<_ACEOF 6708#define INTDIV0_RAISES_SIGFPE $value 6709_ACEOF 6710 6711 6712 6713 { echo "$as_me:$LINENO: checking for unsigned long long" >&5 6714echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } 6715if test "${ac_cv_type_unsigned_long_long+set}" = set; then 6716 echo $ECHO_N "(cached) $ECHO_C" >&6 6717else 6718 cat >conftest.$ac_ext <<_ACEOF 6719/* confdefs.h. */ 6720_ACEOF 6721cat confdefs.h >>conftest.$ac_ext 6722cat >>conftest.$ac_ext <<_ACEOF 6723/* end confdefs.h. */ 6724unsigned long long ull = 1ULL; int i = 63; 6725int 6726main () 6727{ 6728unsigned long long ullmax = (unsigned long long) -1; 6729 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 6730 ; 6731 return 0; 6732} 6733_ACEOF 6734rm -f conftest.$ac_objext conftest$ac_exeext 6735if { (ac_try="$ac_link" 6736case "(($ac_try" in 6737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6738 *) ac_try_echo=$ac_try;; 6739esac 6740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6741 (eval "$ac_link") 2>conftest.er1 6742 ac_status=$? 6743 grep -v '^ *+' conftest.er1 >conftest.err 6744 rm -f conftest.er1 6745 cat conftest.err >&5 6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6747 (exit $ac_status); } && { 6748 test -z "$ac_c_werror_flag" || 6749 test ! -s conftest.err 6750 } && test -s conftest$ac_exeext && 6751 $as_test_x conftest$ac_exeext; then 6752 ac_cv_type_unsigned_long_long=yes 6753else 6754 echo "$as_me: failed program was:" >&5 6755sed 's/^/| /' conftest.$ac_ext >&5 6756 6757 ac_cv_type_unsigned_long_long=no 6758fi 6759 6760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6761 conftest$ac_exeext conftest.$ac_ext 6762fi 6763{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 6764echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } 6765 if test $ac_cv_type_unsigned_long_long = yes; then 6766 6767cat >>confdefs.h <<\_ACEOF 6768#define HAVE_UNSIGNED_LONG_LONG 1 6769_ACEOF 6770 6771 fi 6772 6773 6774 6775 6776 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then 6777 6778 test $ac_cv_type_unsigned_long_long = yes \ 6779 && ac_type='unsigned long long' \ 6780 || ac_type='unsigned long' 6781 6782cat >>confdefs.h <<_ACEOF 6783#define uintmax_t $ac_type 6784_ACEOF 6785 6786 else 6787 6788cat >>confdefs.h <<\_ACEOF 6789#define HAVE_UINTMAX_T 1 6790_ACEOF 6791 6792 fi 6793 6794 6795 { echo "$as_me:$LINENO: checking for inttypes.h" >&5 6796echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } 6797if test "${gt_cv_header_inttypes_h+set}" = set; then 6798 echo $ECHO_N "(cached) $ECHO_C" >&6 6799else 6800 6801 cat >conftest.$ac_ext <<_ACEOF 6802/* confdefs.h. */ 6803_ACEOF 6804cat confdefs.h >>conftest.$ac_ext 6805cat >>conftest.$ac_ext <<_ACEOF 6806/* end confdefs.h. */ 6807#include <sys/types.h> 6808#include <inttypes.h> 6809int 6810main () 6811{ 6812 6813 ; 6814 return 0; 6815} 6816_ACEOF 6817rm -f conftest.$ac_objext 6818if { (ac_try="$ac_compile" 6819case "(($ac_try" in 6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6821 *) ac_try_echo=$ac_try;; 6822esac 6823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6824 (eval "$ac_compile") 2>conftest.er1 6825 ac_status=$? 6826 grep -v '^ *+' conftest.er1 >conftest.err 6827 rm -f conftest.er1 6828 cat conftest.err >&5 6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6830 (exit $ac_status); } && { 6831 test -z "$ac_c_werror_flag" || 6832 test ! -s conftest.err 6833 } && test -s conftest.$ac_objext; then 6834 gt_cv_header_inttypes_h=yes 6835else 6836 echo "$as_me: failed program was:" >&5 6837sed 's/^/| /' conftest.$ac_ext >&5 6838 6839 gt_cv_header_inttypes_h=no 6840fi 6841 6842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6843 6844fi 6845{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 6846echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } 6847 if test $gt_cv_header_inttypes_h = yes; then 6848 6849cat >>confdefs.h <<_ACEOF 6850#define HAVE_INTTYPES_H 1 6851_ACEOF 6852 6853 fi 6854 6855 6856 6857 if test $gt_cv_header_inttypes_h = yes; then 6858 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 6859echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; } 6860if test "${gt_cv_inttypes_pri_broken+set}" = set; then 6861 echo $ECHO_N "(cached) $ECHO_C" >&6 6862else 6863 6864 cat >conftest.$ac_ext <<_ACEOF 6865/* confdefs.h. */ 6866_ACEOF 6867cat confdefs.h >>conftest.$ac_ext 6868cat >>conftest.$ac_ext <<_ACEOF 6869/* end confdefs.h. */ 6870#include <inttypes.h> 6871#ifdef PRId32 6872char *p = PRId32; 6873#endif 6874 6875int 6876main () 6877{ 6878 6879 ; 6880 return 0; 6881} 6882_ACEOF 6883rm -f conftest.$ac_objext 6884if { (ac_try="$ac_compile" 6885case "(($ac_try" in 6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6887 *) ac_try_echo=$ac_try;; 6888esac 6889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6890 (eval "$ac_compile") 2>conftest.er1 6891 ac_status=$? 6892 grep -v '^ *+' conftest.er1 >conftest.err 6893 rm -f conftest.er1 6894 cat conftest.err >&5 6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6896 (exit $ac_status); } && { 6897 test -z "$ac_c_werror_flag" || 6898 test ! -s conftest.err 6899 } && test -s conftest.$ac_objext; then 6900 gt_cv_inttypes_pri_broken=no 6901else 6902 echo "$as_me: failed program was:" >&5 6903sed 's/^/| /' conftest.$ac_ext >&5 6904 6905 gt_cv_inttypes_pri_broken=yes 6906fi 6907 6908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6909 6910fi 6911{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 6912echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } 6913 fi 6914 if test "$gt_cv_inttypes_pri_broken" = yes; then 6915 6916cat >>confdefs.h <<_ACEOF 6917#define PRI_MACROS_BROKEN 1 6918_ACEOF 6919 6920 fi 6921 6922 6923 6924for ac_header in stdint.h 6925do 6926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6928 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6931 echo $ECHO_N "(cached) $ECHO_C" >&6 6932fi 6933ac_res=`eval echo '${'$as_ac_Header'}'` 6934 { echo "$as_me:$LINENO: result: $ac_res" >&5 6935echo "${ECHO_T}$ac_res" >&6; } 6936else 6937 # Is the header compilable? 6938{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6940cat >conftest.$ac_ext <<_ACEOF 6941/* confdefs.h. */ 6942_ACEOF 6943cat confdefs.h >>conftest.$ac_ext 6944cat >>conftest.$ac_ext <<_ACEOF 6945/* end confdefs.h. */ 6946$ac_includes_default 6947#include <$ac_header> 6948_ACEOF 6949rm -f conftest.$ac_objext 6950if { (ac_try="$ac_compile" 6951case "(($ac_try" in 6952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6953 *) ac_try_echo=$ac_try;; 6954esac 6955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6956 (eval "$ac_compile") 2>conftest.er1 6957 ac_status=$? 6958 grep -v '^ *+' conftest.er1 >conftest.err 6959 rm -f conftest.er1 6960 cat conftest.err >&5 6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6962 (exit $ac_status); } && { 6963 test -z "$ac_c_werror_flag" || 6964 test ! -s conftest.err 6965 } && test -s conftest.$ac_objext; then 6966 ac_header_compiler=yes 6967else 6968 echo "$as_me: failed program was:" >&5 6969sed 's/^/| /' conftest.$ac_ext >&5 6970 6971 ac_header_compiler=no 6972fi 6973 6974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6975{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6976echo "${ECHO_T}$ac_header_compiler" >&6; } 6977 6978# Is the header present? 6979{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6980echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6981cat >conftest.$ac_ext <<_ACEOF 6982/* confdefs.h. */ 6983_ACEOF 6984cat confdefs.h >>conftest.$ac_ext 6985cat >>conftest.$ac_ext <<_ACEOF 6986/* end confdefs.h. */ 6987#include <$ac_header> 6988_ACEOF 6989if { (ac_try="$ac_cpp conftest.$ac_ext" 6990case "(($ac_try" in 6991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6992 *) ac_try_echo=$ac_try;; 6993esac 6994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6996 ac_status=$? 6997 grep -v '^ *+' conftest.er1 >conftest.err 6998 rm -f conftest.er1 6999 cat conftest.err >&5 7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7001 (exit $ac_status); } >/dev/null && { 7002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7003 test ! -s conftest.err 7004 }; then 7005 ac_header_preproc=yes 7006else 7007 echo "$as_me: failed program was:" >&5 7008sed 's/^/| /' conftest.$ac_ext >&5 7009 7010 ac_header_preproc=no 7011fi 7012 7013rm -f conftest.err conftest.$ac_ext 7014{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7015echo "${ECHO_T}$ac_header_preproc" >&6; } 7016 7017# So? What about this header? 7018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7019 yes:no: ) 7020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7023echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7024 ac_header_preproc=yes 7025 ;; 7026 no:yes:* ) 7027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7028echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7030echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7032echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7034echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7038echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7039 7040 ;; 7041esac 7042{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7045 echo $ECHO_N "(cached) $ECHO_C" >&6 7046else 7047 eval "$as_ac_Header=\$ac_header_preproc" 7048fi 7049ac_res=`eval echo '${'$as_ac_Header'}'` 7050 { echo "$as_me:$LINENO: result: $ac_res" >&5 7051echo "${ECHO_T}$ac_res" >&6; } 7052 7053fi 7054if test `eval echo '${'$as_ac_Header'}'` = yes; then 7055 cat >>confdefs.h <<_ACEOF 7056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7057_ACEOF 7058 7059fi 7060 7061done 7062 7063 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 7064echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } 7065 result= 7066 cat >conftest.$ac_ext <<_ACEOF 7067/* confdefs.h. */ 7068_ACEOF 7069cat confdefs.h >>conftest.$ac_ext 7070cat >>conftest.$ac_ext <<_ACEOF 7071/* end confdefs.h. */ 7072 7073#include <limits.h> 7074#if HAVE_STDINT_H 7075#include <stdint.h> 7076#endif 7077#ifdef SIZE_MAX 7078Found it 7079#endif 7080 7081_ACEOF 7082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7083 $EGREP "Found it" >/dev/null 2>&1; then 7084 result=yes 7085fi 7086rm -f conftest* 7087 7088 if test -z "$result"; then 7089 if test "$cross_compiling" = yes; then 7090 # Depending upon the size, compute the lo and hi bounds. 7091cat >conftest.$ac_ext <<_ACEOF 7092/* confdefs.h. */ 7093_ACEOF 7094cat confdefs.h >>conftest.$ac_ext 7095cat >>conftest.$ac_ext <<_ACEOF 7096/* end confdefs.h. */ 7097#include <stddef.h> 7098int 7099main () 7100{ 7101static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; 7102test_array [0] = 0 7103 7104 ; 7105 return 0; 7106} 7107_ACEOF 7108rm -f conftest.$ac_objext 7109if { (ac_try="$ac_compile" 7110case "(($ac_try" in 7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7112 *) ac_try_echo=$ac_try;; 7113esac 7114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7115 (eval "$ac_compile") 2>conftest.er1 7116 ac_status=$? 7117 grep -v '^ *+' conftest.er1 >conftest.err 7118 rm -f conftest.er1 7119 cat conftest.err >&5 7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7121 (exit $ac_status); } && { 7122 test -z "$ac_c_werror_flag" || 7123 test ! -s conftest.err 7124 } && test -s conftest.$ac_objext; then 7125 ac_lo=0 ac_mid=0 7126 while :; do 7127 cat >conftest.$ac_ext <<_ACEOF 7128/* confdefs.h. */ 7129_ACEOF 7130cat confdefs.h >>conftest.$ac_ext 7131cat >>conftest.$ac_ext <<_ACEOF 7132/* end confdefs.h. */ 7133#include <stddef.h> 7134int 7135main () 7136{ 7137static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 7138test_array [0] = 0 7139 7140 ; 7141 return 0; 7142} 7143_ACEOF 7144rm -f conftest.$ac_objext 7145if { (ac_try="$ac_compile" 7146case "(($ac_try" in 7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7148 *) ac_try_echo=$ac_try;; 7149esac 7150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7151 (eval "$ac_compile") 2>conftest.er1 7152 ac_status=$? 7153 grep -v '^ *+' conftest.er1 >conftest.err 7154 rm -f conftest.er1 7155 cat conftest.err >&5 7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7157 (exit $ac_status); } && { 7158 test -z "$ac_c_werror_flag" || 7159 test ! -s conftest.err 7160 } && test -s conftest.$ac_objext; then 7161 ac_hi=$ac_mid; break 7162else 7163 echo "$as_me: failed program was:" >&5 7164sed 's/^/| /' conftest.$ac_ext >&5 7165 7166 ac_lo=`expr $ac_mid + 1` 7167 if test $ac_lo -le $ac_mid; then 7168 ac_lo= ac_hi= 7169 break 7170 fi 7171 ac_mid=`expr 2 '*' $ac_mid + 1` 7172fi 7173 7174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7175 done 7176else 7177 echo "$as_me: failed program was:" >&5 7178sed 's/^/| /' conftest.$ac_ext >&5 7179 7180 cat >conftest.$ac_ext <<_ACEOF 7181/* confdefs.h. */ 7182_ACEOF 7183cat confdefs.h >>conftest.$ac_ext 7184cat >>conftest.$ac_ext <<_ACEOF 7185/* end confdefs.h. */ 7186#include <stddef.h> 7187int 7188main () 7189{ 7190static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; 7191test_array [0] = 0 7192 7193 ; 7194 return 0; 7195} 7196_ACEOF 7197rm -f conftest.$ac_objext 7198if { (ac_try="$ac_compile" 7199case "(($ac_try" in 7200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7201 *) ac_try_echo=$ac_try;; 7202esac 7203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7204 (eval "$ac_compile") 2>conftest.er1 7205 ac_status=$? 7206 grep -v '^ *+' conftest.er1 >conftest.err 7207 rm -f conftest.er1 7208 cat conftest.err >&5 7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7210 (exit $ac_status); } && { 7211 test -z "$ac_c_werror_flag" || 7212 test ! -s conftest.err 7213 } && test -s conftest.$ac_objext; then 7214 ac_hi=-1 ac_mid=-1 7215 while :; do 7216 cat >conftest.$ac_ext <<_ACEOF 7217/* confdefs.h. */ 7218_ACEOF 7219cat confdefs.h >>conftest.$ac_ext 7220cat >>conftest.$ac_ext <<_ACEOF 7221/* end confdefs.h. */ 7222#include <stddef.h> 7223int 7224main () 7225{ 7226static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; 7227test_array [0] = 0 7228 7229 ; 7230 return 0; 7231} 7232_ACEOF 7233rm -f conftest.$ac_objext 7234if { (ac_try="$ac_compile" 7235case "(($ac_try" in 7236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7237 *) ac_try_echo=$ac_try;; 7238esac 7239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7240 (eval "$ac_compile") 2>conftest.er1 7241 ac_status=$? 7242 grep -v '^ *+' conftest.er1 >conftest.err 7243 rm -f conftest.er1 7244 cat conftest.err >&5 7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7246 (exit $ac_status); } && { 7247 test -z "$ac_c_werror_flag" || 7248 test ! -s conftest.err 7249 } && test -s conftest.$ac_objext; then 7250 ac_lo=$ac_mid; break 7251else 7252 echo "$as_me: failed program was:" >&5 7253sed 's/^/| /' conftest.$ac_ext >&5 7254 7255 ac_hi=`expr '(' $ac_mid ')' - 1` 7256 if test $ac_mid -le $ac_hi; then 7257 ac_lo= ac_hi= 7258 break 7259 fi 7260 ac_mid=`expr 2 '*' $ac_mid` 7261fi 7262 7263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7264 done 7265else 7266 echo "$as_me: failed program was:" >&5 7267sed 's/^/| /' conftest.$ac_ext >&5 7268 7269 ac_lo= ac_hi= 7270fi 7271 7272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7273fi 7274 7275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7276# Binary search between lo and hi bounds. 7277while test "x$ac_lo" != "x$ac_hi"; do 7278 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7279 cat >conftest.$ac_ext <<_ACEOF 7280/* confdefs.h. */ 7281_ACEOF 7282cat confdefs.h >>conftest.$ac_ext 7283cat >>conftest.$ac_ext <<_ACEOF 7284/* end confdefs.h. */ 7285#include <stddef.h> 7286int 7287main () 7288{ 7289static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 7290test_array [0] = 0 7291 7292 ; 7293 return 0; 7294} 7295_ACEOF 7296rm -f conftest.$ac_objext 7297if { (ac_try="$ac_compile" 7298case "(($ac_try" in 7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7300 *) ac_try_echo=$ac_try;; 7301esac 7302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7303 (eval "$ac_compile") 2>conftest.er1 7304 ac_status=$? 7305 grep -v '^ *+' conftest.er1 >conftest.err 7306 rm -f conftest.er1 7307 cat conftest.err >&5 7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7309 (exit $ac_status); } && { 7310 test -z "$ac_c_werror_flag" || 7311 test ! -s conftest.err 7312 } && test -s conftest.$ac_objext; then 7313 ac_hi=$ac_mid 7314else 7315 echo "$as_me: failed program was:" >&5 7316sed 's/^/| /' conftest.$ac_ext >&5 7317 7318 ac_lo=`expr '(' $ac_mid ')' + 1` 7319fi 7320 7321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7322done 7323case $ac_lo in 7324?*) res_hi=$ac_lo;; 7325'') result=? ;; 7326esac 7327else 7328 cat >conftest.$ac_ext <<_ACEOF 7329/* confdefs.h. */ 7330_ACEOF 7331cat confdefs.h >>conftest.$ac_ext 7332cat >>conftest.$ac_ext <<_ACEOF 7333/* end confdefs.h. */ 7334#include <stddef.h> 7335static long int longval () { return ~(size_t)0 / 10; } 7336static unsigned long int ulongval () { return ~(size_t)0 / 10; } 7337#include <stdio.h> 7338#include <stdlib.h> 7339int 7340main () 7341{ 7342 7343 FILE *f = fopen ("conftest.val", "w"); 7344 if (! f) 7345 return 1; 7346 if ((~(size_t)0 / 10) < 0) 7347 { 7348 long int i = longval (); 7349 if (i != (~(size_t)0 / 10)) 7350 return 1; 7351 fprintf (f, "%ld\n", i); 7352 } 7353 else 7354 { 7355 unsigned long int i = ulongval (); 7356 if (i != (~(size_t)0 / 10)) 7357 return 1; 7358 fprintf (f, "%lu\n", i); 7359 } 7360 return ferror (f) || fclose (f) != 0; 7361 7362 ; 7363 return 0; 7364} 7365_ACEOF 7366rm -f conftest$ac_exeext 7367if { (ac_try="$ac_link" 7368case "(($ac_try" in 7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7370 *) ac_try_echo=$ac_try;; 7371esac 7372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7373 (eval "$ac_link") 2>&5 7374 ac_status=$? 7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7377 { (case "(($ac_try" in 7378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7379 *) ac_try_echo=$ac_try;; 7380esac 7381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7382 (eval "$ac_try") 2>&5 7383 ac_status=$? 7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7385 (exit $ac_status); }; }; then 7386 res_hi=`cat conftest.val` 7387else 7388 echo "$as_me: program exited with status $ac_status" >&5 7389echo "$as_me: failed program was:" >&5 7390sed 's/^/| /' conftest.$ac_ext >&5 7391 7392( exit $ac_status ) 7393result=? 7394fi 7395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7396fi 7397rm -f conftest.val 7398 7399 if test "$cross_compiling" = yes; then 7400 # Depending upon the size, compute the lo and hi bounds. 7401cat >conftest.$ac_ext <<_ACEOF 7402/* confdefs.h. */ 7403_ACEOF 7404cat confdefs.h >>conftest.$ac_ext 7405cat >>conftest.$ac_ext <<_ACEOF 7406/* end confdefs.h. */ 7407#include <stddef.h> 7408int 7409main () 7410{ 7411static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; 7412test_array [0] = 0 7413 7414 ; 7415 return 0; 7416} 7417_ACEOF 7418rm -f conftest.$ac_objext 7419if { (ac_try="$ac_compile" 7420case "(($ac_try" in 7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7422 *) ac_try_echo=$ac_try;; 7423esac 7424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7425 (eval "$ac_compile") 2>conftest.er1 7426 ac_status=$? 7427 grep -v '^ *+' conftest.er1 >conftest.err 7428 rm -f conftest.er1 7429 cat conftest.err >&5 7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7431 (exit $ac_status); } && { 7432 test -z "$ac_c_werror_flag" || 7433 test ! -s conftest.err 7434 } && test -s conftest.$ac_objext; then 7435 ac_lo=0 ac_mid=0 7436 while :; do 7437 cat >conftest.$ac_ext <<_ACEOF 7438/* confdefs.h. */ 7439_ACEOF 7440cat confdefs.h >>conftest.$ac_ext 7441cat >>conftest.$ac_ext <<_ACEOF 7442/* end confdefs.h. */ 7443#include <stddef.h> 7444int 7445main () 7446{ 7447static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 7448test_array [0] = 0 7449 7450 ; 7451 return 0; 7452} 7453_ACEOF 7454rm -f conftest.$ac_objext 7455if { (ac_try="$ac_compile" 7456case "(($ac_try" in 7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7458 *) ac_try_echo=$ac_try;; 7459esac 7460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7461 (eval "$ac_compile") 2>conftest.er1 7462 ac_status=$? 7463 grep -v '^ *+' conftest.er1 >conftest.err 7464 rm -f conftest.er1 7465 cat conftest.err >&5 7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7467 (exit $ac_status); } && { 7468 test -z "$ac_c_werror_flag" || 7469 test ! -s conftest.err 7470 } && test -s conftest.$ac_objext; then 7471 ac_hi=$ac_mid; break 7472else 7473 echo "$as_me: failed program was:" >&5 7474sed 's/^/| /' conftest.$ac_ext >&5 7475 7476 ac_lo=`expr $ac_mid + 1` 7477 if test $ac_lo -le $ac_mid; then 7478 ac_lo= ac_hi= 7479 break 7480 fi 7481 ac_mid=`expr 2 '*' $ac_mid + 1` 7482fi 7483 7484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7485 done 7486else 7487 echo "$as_me: failed program was:" >&5 7488sed 's/^/| /' conftest.$ac_ext >&5 7489 7490 cat >conftest.$ac_ext <<_ACEOF 7491/* confdefs.h. */ 7492_ACEOF 7493cat confdefs.h >>conftest.$ac_ext 7494cat >>conftest.$ac_ext <<_ACEOF 7495/* end confdefs.h. */ 7496#include <stddef.h> 7497int 7498main () 7499{ 7500static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; 7501test_array [0] = 0 7502 7503 ; 7504 return 0; 7505} 7506_ACEOF 7507rm -f conftest.$ac_objext 7508if { (ac_try="$ac_compile" 7509case "(($ac_try" in 7510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7511 *) ac_try_echo=$ac_try;; 7512esac 7513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7514 (eval "$ac_compile") 2>conftest.er1 7515 ac_status=$? 7516 grep -v '^ *+' conftest.er1 >conftest.err 7517 rm -f conftest.er1 7518 cat conftest.err >&5 7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7520 (exit $ac_status); } && { 7521 test -z "$ac_c_werror_flag" || 7522 test ! -s conftest.err 7523 } && test -s conftest.$ac_objext; then 7524 ac_hi=-1 ac_mid=-1 7525 while :; do 7526 cat >conftest.$ac_ext <<_ACEOF 7527/* confdefs.h. */ 7528_ACEOF 7529cat confdefs.h >>conftest.$ac_ext 7530cat >>conftest.$ac_ext <<_ACEOF 7531/* end confdefs.h. */ 7532#include <stddef.h> 7533int 7534main () 7535{ 7536static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; 7537test_array [0] = 0 7538 7539 ; 7540 return 0; 7541} 7542_ACEOF 7543rm -f conftest.$ac_objext 7544if { (ac_try="$ac_compile" 7545case "(($ac_try" in 7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7547 *) ac_try_echo=$ac_try;; 7548esac 7549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7550 (eval "$ac_compile") 2>conftest.er1 7551 ac_status=$? 7552 grep -v '^ *+' conftest.er1 >conftest.err 7553 rm -f conftest.er1 7554 cat conftest.err >&5 7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7556 (exit $ac_status); } && { 7557 test -z "$ac_c_werror_flag" || 7558 test ! -s conftest.err 7559 } && test -s conftest.$ac_objext; then 7560 ac_lo=$ac_mid; break 7561else 7562 echo "$as_me: failed program was:" >&5 7563sed 's/^/| /' conftest.$ac_ext >&5 7564 7565 ac_hi=`expr '(' $ac_mid ')' - 1` 7566 if test $ac_mid -le $ac_hi; then 7567 ac_lo= ac_hi= 7568 break 7569 fi 7570 ac_mid=`expr 2 '*' $ac_mid` 7571fi 7572 7573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7574 done 7575else 7576 echo "$as_me: failed program was:" >&5 7577sed 's/^/| /' conftest.$ac_ext >&5 7578 7579 ac_lo= ac_hi= 7580fi 7581 7582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7583fi 7584 7585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7586# Binary search between lo and hi bounds. 7587while test "x$ac_lo" != "x$ac_hi"; do 7588 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7589 cat >conftest.$ac_ext <<_ACEOF 7590/* confdefs.h. */ 7591_ACEOF 7592cat confdefs.h >>conftest.$ac_ext 7593cat >>conftest.$ac_ext <<_ACEOF 7594/* end confdefs.h. */ 7595#include <stddef.h> 7596int 7597main () 7598{ 7599static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 7600test_array [0] = 0 7601 7602 ; 7603 return 0; 7604} 7605_ACEOF 7606rm -f conftest.$ac_objext 7607if { (ac_try="$ac_compile" 7608case "(($ac_try" in 7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7610 *) ac_try_echo=$ac_try;; 7611esac 7612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7613 (eval "$ac_compile") 2>conftest.er1 7614 ac_status=$? 7615 grep -v '^ *+' conftest.er1 >conftest.err 7616 rm -f conftest.er1 7617 cat conftest.err >&5 7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7619 (exit $ac_status); } && { 7620 test -z "$ac_c_werror_flag" || 7621 test ! -s conftest.err 7622 } && test -s conftest.$ac_objext; then 7623 ac_hi=$ac_mid 7624else 7625 echo "$as_me: failed program was:" >&5 7626sed 's/^/| /' conftest.$ac_ext >&5 7627 7628 ac_lo=`expr '(' $ac_mid ')' + 1` 7629fi 7630 7631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7632done 7633case $ac_lo in 7634?*) res_lo=$ac_lo;; 7635'') result=? ;; 7636esac 7637else 7638 cat >conftest.$ac_ext <<_ACEOF 7639/* confdefs.h. */ 7640_ACEOF 7641cat confdefs.h >>conftest.$ac_ext 7642cat >>conftest.$ac_ext <<_ACEOF 7643/* end confdefs.h. */ 7644#include <stddef.h> 7645static long int longval () { return ~(size_t)0 % 10; } 7646static unsigned long int ulongval () { return ~(size_t)0 % 10; } 7647#include <stdio.h> 7648#include <stdlib.h> 7649int 7650main () 7651{ 7652 7653 FILE *f = fopen ("conftest.val", "w"); 7654 if (! f) 7655 return 1; 7656 if ((~(size_t)0 % 10) < 0) 7657 { 7658 long int i = longval (); 7659 if (i != (~(size_t)0 % 10)) 7660 return 1; 7661 fprintf (f, "%ld\n", i); 7662 } 7663 else 7664 { 7665 unsigned long int i = ulongval (); 7666 if (i != (~(size_t)0 % 10)) 7667 return 1; 7668 fprintf (f, "%lu\n", i); 7669 } 7670 return ferror (f) || fclose (f) != 0; 7671 7672 ; 7673 return 0; 7674} 7675_ACEOF 7676rm -f conftest$ac_exeext 7677if { (ac_try="$ac_link" 7678case "(($ac_try" in 7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7680 *) ac_try_echo=$ac_try;; 7681esac 7682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7683 (eval "$ac_link") 2>&5 7684 ac_status=$? 7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7687 { (case "(($ac_try" in 7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7689 *) ac_try_echo=$ac_try;; 7690esac 7691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7692 (eval "$ac_try") 2>&5 7693 ac_status=$? 7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7695 (exit $ac_status); }; }; then 7696 res_lo=`cat conftest.val` 7697else 7698 echo "$as_me: program exited with status $ac_status" >&5 7699echo "$as_me: failed program was:" >&5 7700sed 's/^/| /' conftest.$ac_ext >&5 7701 7702( exit $ac_status ) 7703result=? 7704fi 7705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7706fi 7707rm -f conftest.val 7708 7709 if test "$cross_compiling" = yes; then 7710 # Depending upon the size, compute the lo and hi bounds. 7711cat >conftest.$ac_ext <<_ACEOF 7712/* confdefs.h. */ 7713_ACEOF 7714cat confdefs.h >>conftest.$ac_ext 7715cat >>conftest.$ac_ext <<_ACEOF 7716/* end confdefs.h. */ 7717#include <stddef.h> 7718int 7719main () 7720{ 7721static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; 7722test_array [0] = 0 7723 7724 ; 7725 return 0; 7726} 7727_ACEOF 7728rm -f conftest.$ac_objext 7729if { (ac_try="$ac_compile" 7730case "(($ac_try" in 7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7732 *) ac_try_echo=$ac_try;; 7733esac 7734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7735 (eval "$ac_compile") 2>conftest.er1 7736 ac_status=$? 7737 grep -v '^ *+' conftest.er1 >conftest.err 7738 rm -f conftest.er1 7739 cat conftest.err >&5 7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7741 (exit $ac_status); } && { 7742 test -z "$ac_c_werror_flag" || 7743 test ! -s conftest.err 7744 } && test -s conftest.$ac_objext; then 7745 ac_lo=0 ac_mid=0 7746 while :; do 7747 cat >conftest.$ac_ext <<_ACEOF 7748/* confdefs.h. */ 7749_ACEOF 7750cat confdefs.h >>conftest.$ac_ext 7751cat >>conftest.$ac_ext <<_ACEOF 7752/* end confdefs.h. */ 7753#include <stddef.h> 7754int 7755main () 7756{ 7757static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 7758test_array [0] = 0 7759 7760 ; 7761 return 0; 7762} 7763_ACEOF 7764rm -f conftest.$ac_objext 7765if { (ac_try="$ac_compile" 7766case "(($ac_try" in 7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7768 *) ac_try_echo=$ac_try;; 7769esac 7770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7771 (eval "$ac_compile") 2>conftest.er1 7772 ac_status=$? 7773 grep -v '^ *+' conftest.er1 >conftest.err 7774 rm -f conftest.er1 7775 cat conftest.err >&5 7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7777 (exit $ac_status); } && { 7778 test -z "$ac_c_werror_flag" || 7779 test ! -s conftest.err 7780 } && test -s conftest.$ac_objext; then 7781 ac_hi=$ac_mid; break 7782else 7783 echo "$as_me: failed program was:" >&5 7784sed 's/^/| /' conftest.$ac_ext >&5 7785 7786 ac_lo=`expr $ac_mid + 1` 7787 if test $ac_lo -le $ac_mid; then 7788 ac_lo= ac_hi= 7789 break 7790 fi 7791 ac_mid=`expr 2 '*' $ac_mid + 1` 7792fi 7793 7794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7795 done 7796else 7797 echo "$as_me: failed program was:" >&5 7798sed 's/^/| /' conftest.$ac_ext >&5 7799 7800 cat >conftest.$ac_ext <<_ACEOF 7801/* confdefs.h. */ 7802_ACEOF 7803cat confdefs.h >>conftest.$ac_ext 7804cat >>conftest.$ac_ext <<_ACEOF 7805/* end confdefs.h. */ 7806#include <stddef.h> 7807int 7808main () 7809{ 7810static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; 7811test_array [0] = 0 7812 7813 ; 7814 return 0; 7815} 7816_ACEOF 7817rm -f conftest.$ac_objext 7818if { (ac_try="$ac_compile" 7819case "(($ac_try" in 7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7821 *) ac_try_echo=$ac_try;; 7822esac 7823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7824 (eval "$ac_compile") 2>conftest.er1 7825 ac_status=$? 7826 grep -v '^ *+' conftest.er1 >conftest.err 7827 rm -f conftest.er1 7828 cat conftest.err >&5 7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7830 (exit $ac_status); } && { 7831 test -z "$ac_c_werror_flag" || 7832 test ! -s conftest.err 7833 } && test -s conftest.$ac_objext; then 7834 ac_hi=-1 ac_mid=-1 7835 while :; do 7836 cat >conftest.$ac_ext <<_ACEOF 7837/* confdefs.h. */ 7838_ACEOF 7839cat confdefs.h >>conftest.$ac_ext 7840cat >>conftest.$ac_ext <<_ACEOF 7841/* end confdefs.h. */ 7842#include <stddef.h> 7843int 7844main () 7845{ 7846static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; 7847test_array [0] = 0 7848 7849 ; 7850 return 0; 7851} 7852_ACEOF 7853rm -f conftest.$ac_objext 7854if { (ac_try="$ac_compile" 7855case "(($ac_try" in 7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7857 *) ac_try_echo=$ac_try;; 7858esac 7859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7860 (eval "$ac_compile") 2>conftest.er1 7861 ac_status=$? 7862 grep -v '^ *+' conftest.er1 >conftest.err 7863 rm -f conftest.er1 7864 cat conftest.err >&5 7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7866 (exit $ac_status); } && { 7867 test -z "$ac_c_werror_flag" || 7868 test ! -s conftest.err 7869 } && test -s conftest.$ac_objext; then 7870 ac_lo=$ac_mid; break 7871else 7872 echo "$as_me: failed program was:" >&5 7873sed 's/^/| /' conftest.$ac_ext >&5 7874 7875 ac_hi=`expr '(' $ac_mid ')' - 1` 7876 if test $ac_mid -le $ac_hi; then 7877 ac_lo= ac_hi= 7878 break 7879 fi 7880 ac_mid=`expr 2 '*' $ac_mid` 7881fi 7882 7883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7884 done 7885else 7886 echo "$as_me: failed program was:" >&5 7887sed 's/^/| /' conftest.$ac_ext >&5 7888 7889 ac_lo= ac_hi= 7890fi 7891 7892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7893fi 7894 7895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7896# Binary search between lo and hi bounds. 7897while test "x$ac_lo" != "x$ac_hi"; do 7898 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7899 cat >conftest.$ac_ext <<_ACEOF 7900/* confdefs.h. */ 7901_ACEOF 7902cat confdefs.h >>conftest.$ac_ext 7903cat >>conftest.$ac_ext <<_ACEOF 7904/* end confdefs.h. */ 7905#include <stddef.h> 7906int 7907main () 7908{ 7909static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 7910test_array [0] = 0 7911 7912 ; 7913 return 0; 7914} 7915_ACEOF 7916rm -f conftest.$ac_objext 7917if { (ac_try="$ac_compile" 7918case "(($ac_try" in 7919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7920 *) ac_try_echo=$ac_try;; 7921esac 7922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7923 (eval "$ac_compile") 2>conftest.er1 7924 ac_status=$? 7925 grep -v '^ *+' conftest.er1 >conftest.err 7926 rm -f conftest.er1 7927 cat conftest.err >&5 7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7929 (exit $ac_status); } && { 7930 test -z "$ac_c_werror_flag" || 7931 test ! -s conftest.err 7932 } && test -s conftest.$ac_objext; then 7933 ac_hi=$ac_mid 7934else 7935 echo "$as_me: failed program was:" >&5 7936sed 's/^/| /' conftest.$ac_ext >&5 7937 7938 ac_lo=`expr '(' $ac_mid ')' + 1` 7939fi 7940 7941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7942done 7943case $ac_lo in 7944?*) fits_in_uint=$ac_lo;; 7945'') result=? ;; 7946esac 7947else 7948 cat >conftest.$ac_ext <<_ACEOF 7949/* confdefs.h. */ 7950_ACEOF 7951cat confdefs.h >>conftest.$ac_ext 7952cat >>conftest.$ac_ext <<_ACEOF 7953/* end confdefs.h. */ 7954#include <stddef.h> 7955static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } 7956static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } 7957#include <stdio.h> 7958#include <stdlib.h> 7959int 7960main () 7961{ 7962 7963 FILE *f = fopen ("conftest.val", "w"); 7964 if (! f) 7965 return 1; 7966 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) 7967 { 7968 long int i = longval (); 7969 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 7970 return 1; 7971 fprintf (f, "%ld\n", i); 7972 } 7973 else 7974 { 7975 unsigned long int i = ulongval (); 7976 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 7977 return 1; 7978 fprintf (f, "%lu\n", i); 7979 } 7980 return ferror (f) || fclose (f) != 0; 7981 7982 ; 7983 return 0; 7984} 7985_ACEOF 7986rm -f conftest$ac_exeext 7987if { (ac_try="$ac_link" 7988case "(($ac_try" in 7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7990 *) ac_try_echo=$ac_try;; 7991esac 7992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7993 (eval "$ac_link") 2>&5 7994 ac_status=$? 7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7997 { (case "(($ac_try" in 7998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7999 *) ac_try_echo=$ac_try;; 8000esac 8001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8002 (eval "$ac_try") 2>&5 8003 ac_status=$? 8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8005 (exit $ac_status); }; }; then 8006 fits_in_uint=`cat conftest.val` 8007else 8008 echo "$as_me: program exited with status $ac_status" >&5 8009echo "$as_me: failed program was:" >&5 8010sed 's/^/| /' conftest.$ac_ext >&5 8011 8012( exit $ac_status ) 8013result=? 8014fi 8015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8016fi 8017rm -f conftest.val 8018 8019 if test "$fits_in_uint" = 1; then 8020 cat >conftest.$ac_ext <<_ACEOF 8021/* confdefs.h. */ 8022_ACEOF 8023cat confdefs.h >>conftest.$ac_ext 8024cat >>conftest.$ac_ext <<_ACEOF 8025/* end confdefs.h. */ 8026#include <stddef.h> 8027 extern size_t foo; 8028 extern unsigned long foo; 8029 8030int 8031main () 8032{ 8033 8034 ; 8035 return 0; 8036} 8037_ACEOF 8038rm -f conftest.$ac_objext 8039if { (ac_try="$ac_compile" 8040case "(($ac_try" in 8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8042 *) ac_try_echo=$ac_try;; 8043esac 8044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8045 (eval "$ac_compile") 2>conftest.er1 8046 ac_status=$? 8047 grep -v '^ *+' conftest.er1 >conftest.err 8048 rm -f conftest.er1 8049 cat conftest.err >&5 8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8051 (exit $ac_status); } && { 8052 test -z "$ac_c_werror_flag" || 8053 test ! -s conftest.err 8054 } && test -s conftest.$ac_objext; then 8055 fits_in_uint=0 8056else 8057 echo "$as_me: failed program was:" >&5 8058sed 's/^/| /' conftest.$ac_ext >&5 8059 8060 8061fi 8062 8063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8064 fi 8065 if test -z "$result"; then 8066 if test "$fits_in_uint" = 1; then 8067 result="$res_hi$res_lo"U 8068 else 8069 result="$res_hi$res_lo"UL 8070 fi 8071 else 8072 result='~(size_t)0' 8073 fi 8074 fi 8075 { echo "$as_me:$LINENO: result: $result" >&5 8076echo "${ECHO_T}$result" >&6; } 8077 if test "$result" != yes; then 8078 8079cat >>confdefs.h <<_ACEOF 8080#define SIZE_MAX $result 8081_ACEOF 8082 8083 fi 8084 8085 8086 8087 8088for ac_header in stdint.h 8089do 8090as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8092 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8095 echo $ECHO_N "(cached) $ECHO_C" >&6 8096fi 8097ac_res=`eval echo '${'$as_ac_Header'}'` 8098 { echo "$as_me:$LINENO: result: $ac_res" >&5 8099echo "${ECHO_T}$ac_res" >&6; } 8100else 8101 # Is the header compilable? 8102{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8103echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8104cat >conftest.$ac_ext <<_ACEOF 8105/* confdefs.h. */ 8106_ACEOF 8107cat confdefs.h >>conftest.$ac_ext 8108cat >>conftest.$ac_ext <<_ACEOF 8109/* end confdefs.h. */ 8110$ac_includes_default 8111#include <$ac_header> 8112_ACEOF 8113rm -f conftest.$ac_objext 8114if { (ac_try="$ac_compile" 8115case "(($ac_try" in 8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8117 *) ac_try_echo=$ac_try;; 8118esac 8119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8120 (eval "$ac_compile") 2>conftest.er1 8121 ac_status=$? 8122 grep -v '^ *+' conftest.er1 >conftest.err 8123 rm -f conftest.er1 8124 cat conftest.err >&5 8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8126 (exit $ac_status); } && { 8127 test -z "$ac_c_werror_flag" || 8128 test ! -s conftest.err 8129 } && test -s conftest.$ac_objext; then 8130 ac_header_compiler=yes 8131else 8132 echo "$as_me: failed program was:" >&5 8133sed 's/^/| /' conftest.$ac_ext >&5 8134 8135 ac_header_compiler=no 8136fi 8137 8138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8139{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8140echo "${ECHO_T}$ac_header_compiler" >&6; } 8141 8142# Is the header present? 8143{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8144echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8145cat >conftest.$ac_ext <<_ACEOF 8146/* confdefs.h. */ 8147_ACEOF 8148cat confdefs.h >>conftest.$ac_ext 8149cat >>conftest.$ac_ext <<_ACEOF 8150/* end confdefs.h. */ 8151#include <$ac_header> 8152_ACEOF 8153if { (ac_try="$ac_cpp conftest.$ac_ext" 8154case "(($ac_try" in 8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8156 *) ac_try_echo=$ac_try;; 8157esac 8158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8160 ac_status=$? 8161 grep -v '^ *+' conftest.er1 >conftest.err 8162 rm -f conftest.er1 8163 cat conftest.err >&5 8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8165 (exit $ac_status); } >/dev/null && { 8166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8167 test ! -s conftest.err 8168 }; then 8169 ac_header_preproc=yes 8170else 8171 echo "$as_me: failed program was:" >&5 8172sed 's/^/| /' conftest.$ac_ext >&5 8173 8174 ac_header_preproc=no 8175fi 8176 8177rm -f conftest.err conftest.$ac_ext 8178{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8179echo "${ECHO_T}$ac_header_preproc" >&6; } 8180 8181# So? What about this header? 8182case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8183 yes:no: ) 8184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8185echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8187echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8188 ac_header_preproc=yes 8189 ;; 8190 no:yes:* ) 8191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8192echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8194echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8196echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8198echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8200echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8202echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8203 8204 ;; 8205esac 8206{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8209 echo $ECHO_N "(cached) $ECHO_C" >&6 8210else 8211 eval "$as_ac_Header=\$ac_header_preproc" 8212fi 8213ac_res=`eval echo '${'$as_ac_Header'}'` 8214 { echo "$as_me:$LINENO: result: $ac_res" >&5 8215echo "${ECHO_T}$ac_res" >&6; } 8216 8217fi 8218if test `eval echo '${'$as_ac_Header'}'` = yes; then 8219 cat >>confdefs.h <<_ACEOF 8220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8221_ACEOF 8222 8223fi 8224 8225done 8226 8227 8228 8229 if test "X$prefix" = "XNONE"; then 8230 acl_final_prefix="$ac_default_prefix" 8231 else 8232 acl_final_prefix="$prefix" 8233 fi 8234 if test "X$exec_prefix" = "XNONE"; then 8235 acl_final_exec_prefix='${prefix}' 8236 else 8237 acl_final_exec_prefix="$exec_prefix" 8238 fi 8239 acl_save_prefix="$prefix" 8240 prefix="$acl_final_prefix" 8241 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 8242 prefix="$acl_save_prefix" 8243 8244 8245# Check whether --with-gnu-ld was given. 8246if test "${with_gnu_ld+set}" = set; then 8247 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 8248else 8249 with_gnu_ld=no 8250fi 8251 8252# Prepare PATH_SEPARATOR. 8253# The user is always right. 8254if test "${PATH_SEPARATOR+set}" != set; then 8255 echo "#! /bin/sh" >conf$$.sh 8256 echo "exit 0" >>conf$$.sh 8257 chmod +x conf$$.sh 8258 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8259 PATH_SEPARATOR=';' 8260 else 8261 PATH_SEPARATOR=: 8262 fi 8263 rm -f conf$$.sh 8264fi 8265ac_prog=ld 8266if test "$GCC" = yes; then 8267 # Check if gcc -print-prog-name=ld gives a path. 8268 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 8269echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } 8270 case $host in 8271 *-*-mingw*) 8272 # gcc leaves a trailing carriage return which upsets mingw 8273 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8274 *) 8275 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8276 esac 8277 case $ac_prog in 8278 # Accept absolute paths. 8279 [\\/]* | [A-Za-z]:[\\/]*) 8280 re_direlt='/[^/][^/]*/\.\./' 8281 # Canonicalize the path of ld 8282 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 8283 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 8284 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 8285 done 8286 test -z "$LD" && LD="$ac_prog" 8287 ;; 8288 "") 8289 # If it fails, then pretend we aren't using GCC. 8290 ac_prog=ld 8291 ;; 8292 *) 8293 # If it is relative, then search for the first ld in PATH. 8294 with_gnu_ld=unknown 8295 ;; 8296 esac 8297elif test "$with_gnu_ld" = yes; then 8298 { echo "$as_me:$LINENO: checking for GNU ld" >&5 8299echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 8300else 8301 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 8302echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 8303fi 8304if test "${acl_cv_path_LD+set}" = set; then 8305 echo $ECHO_N "(cached) $ECHO_C" >&6 8306else 8307 if test -z "$LD"; then 8308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 8309 for ac_dir in $PATH; do 8310 test -z "$ac_dir" && ac_dir=. 8311 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8312 acl_cv_path_LD="$ac_dir/$ac_prog" 8313 # Check to see if the program is GNU ld. I'd rather use --version, 8314 # but apparently some GNU ld's only accept -v. 8315 # Break only if it was the GNU/non-GNU ld that we prefer. 8316 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 8317 *GNU* | *'with BFD'*) 8318 test "$with_gnu_ld" != no && break ;; 8319 *) 8320 test "$with_gnu_ld" != yes && break ;; 8321 esac 8322 fi 8323 done 8324 IFS="$ac_save_ifs" 8325else 8326 acl_cv_path_LD="$LD" # Let the user override the test with a path. 8327fi 8328fi 8329 8330LD="$acl_cv_path_LD" 8331if test -n "$LD"; then 8332 { echo "$as_me:$LINENO: result: $LD" >&5 8333echo "${ECHO_T}$LD" >&6; } 8334else 8335 { echo "$as_me:$LINENO: result: no" >&5 8336echo "${ECHO_T}no" >&6; } 8337fi 8338test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 8339echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 8340 { (exit 1); exit 1; }; } 8341{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 8342echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 8343if test "${acl_cv_prog_gnu_ld+set}" = set; then 8344 echo $ECHO_N "(cached) $ECHO_C" >&6 8345else 8346 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 8347case `$LD -v 2>&1 </dev/null` in 8348*GNU* | *'with BFD'*) 8349 acl_cv_prog_gnu_ld=yes ;; 8350*) 8351 acl_cv_prog_gnu_ld=no ;; 8352esac 8353fi 8354{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 8355echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } 8356with_gnu_ld=$acl_cv_prog_gnu_ld 8357 8358 8359 8360 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 8361echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } 8362if test "${acl_cv_rpath+set}" = set; then 8363 echo $ECHO_N "(cached) $ECHO_C" >&6 8364else 8365 8366 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 8367 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 8368 . ./conftest.sh 8369 rm -f ./conftest.sh 8370 acl_cv_rpath=done 8371 8372fi 8373{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 8374echo "${ECHO_T}$acl_cv_rpath" >&6; } 8375 wl="$acl_cv_wl" 8376 libext="$acl_cv_libext" 8377 shlibext="$acl_cv_shlibext" 8378 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 8379 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 8380 hardcode_direct="$acl_cv_hardcode_direct" 8381 hardcode_minus_L="$acl_cv_hardcode_minus_L" 8382 # Check whether --enable-rpath was given. 8383if test "${enable_rpath+set}" = set; then 8384 enableval=$enable_rpath; : 8385else 8386 enable_rpath=yes 8387fi 8388 8389 8390 8391 8392 8393 8394 8395 8396 use_additional=yes 8397 8398 acl_save_prefix="$prefix" 8399 prefix="$acl_final_prefix" 8400 acl_save_exec_prefix="$exec_prefix" 8401 exec_prefix="$acl_final_exec_prefix" 8402 8403 eval additional_includedir=\"$includedir\" 8404 eval additional_libdir=\"$libdir\" 8405 8406 exec_prefix="$acl_save_exec_prefix" 8407 prefix="$acl_save_prefix" 8408 8409 8410# Check whether --with-libiconv-prefix was given. 8411if test "${with_libiconv_prefix+set}" = set; then 8412 withval=$with_libiconv_prefix; 8413 if test "X$withval" = "Xno"; then 8414 use_additional=no 8415 else 8416 if test "X$withval" = "X"; then 8417 8418 acl_save_prefix="$prefix" 8419 prefix="$acl_final_prefix" 8420 acl_save_exec_prefix="$exec_prefix" 8421 exec_prefix="$acl_final_exec_prefix" 8422 8423 eval additional_includedir=\"$includedir\" 8424 eval additional_libdir=\"$libdir\" 8425 8426 exec_prefix="$acl_save_exec_prefix" 8427 prefix="$acl_save_prefix" 8428 8429 else 8430 additional_includedir="$withval/include" 8431 additional_libdir="$withval/lib" 8432 fi 8433 fi 8434 8435fi 8436 8437 LIBICONV= 8438 LTLIBICONV= 8439 INCICONV= 8440 rpathdirs= 8441 ltrpathdirs= 8442 names_already_handled= 8443 names_next_round='iconv ' 8444 while test -n "$names_next_round"; do 8445 names_this_round="$names_next_round" 8446 names_next_round= 8447 for name in $names_this_round; do 8448 already_handled= 8449 for n in $names_already_handled; do 8450 if test "$n" = "$name"; then 8451 already_handled=yes 8452 break 8453 fi 8454 done 8455 if test -z "$already_handled"; then 8456 names_already_handled="$names_already_handled $name" 8457 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 8458 eval value=\"\$HAVE_LIB$uppername\" 8459 if test -n "$value"; then 8460 if test "$value" = yes; then 8461 eval value=\"\$LIB$uppername\" 8462 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 8463 eval value=\"\$LTLIB$uppername\" 8464 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 8465 else 8466 : 8467 fi 8468 else 8469 found_dir= 8470 found_la= 8471 found_so= 8472 found_a= 8473 if test $use_additional = yes; then 8474 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 8475 found_dir="$additional_libdir" 8476 found_so="$additional_libdir/lib$name.$shlibext" 8477 if test -f "$additional_libdir/lib$name.la"; then 8478 found_la="$additional_libdir/lib$name.la" 8479 fi 8480 else 8481 if test -f "$additional_libdir/lib$name.$libext"; then 8482 found_dir="$additional_libdir" 8483 found_a="$additional_libdir/lib$name.$libext" 8484 if test -f "$additional_libdir/lib$name.la"; then 8485 found_la="$additional_libdir/lib$name.la" 8486 fi 8487 fi 8488 fi 8489 fi 8490 if test "X$found_dir" = "X"; then 8491 for x in $LDFLAGS $LTLIBICONV; do 8492 8493 acl_save_prefix="$prefix" 8494 prefix="$acl_final_prefix" 8495 acl_save_exec_prefix="$exec_prefix" 8496 exec_prefix="$acl_final_exec_prefix" 8497 eval x=\"$x\" 8498 exec_prefix="$acl_save_exec_prefix" 8499 prefix="$acl_save_prefix" 8500 8501 case "$x" in 8502 -L*) 8503 dir=`echo "X$x" | sed -e 's/^X-L//'` 8504 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 8505 found_dir="$dir" 8506 found_so="$dir/lib$name.$shlibext" 8507 if test -f "$dir/lib$name.la"; then 8508 found_la="$dir/lib$name.la" 8509 fi 8510 else 8511 if test -f "$dir/lib$name.$libext"; then 8512 found_dir="$dir" 8513 found_a="$dir/lib$name.$libext" 8514 if test -f "$dir/lib$name.la"; then 8515 found_la="$dir/lib$name.la" 8516 fi 8517 fi 8518 fi 8519 ;; 8520 esac 8521 if test "X$found_dir" != "X"; then 8522 break 8523 fi 8524 done 8525 fi 8526 if test "X$found_dir" != "X"; then 8527 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 8528 if test "X$found_so" != "X"; then 8529 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 8530 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8531 else 8532 haveit= 8533 for x in $ltrpathdirs; do 8534 if test "X$x" = "X$found_dir"; then 8535 haveit=yes 8536 break 8537 fi 8538 done 8539 if test -z "$haveit"; then 8540 ltrpathdirs="$ltrpathdirs $found_dir" 8541 fi 8542 if test "$hardcode_direct" = yes; then 8543 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8544 else 8545 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 8546 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8547 haveit= 8548 for x in $rpathdirs; do 8549 if test "X$x" = "X$found_dir"; then 8550 haveit=yes 8551 break 8552 fi 8553 done 8554 if test -z "$haveit"; then 8555 rpathdirs="$rpathdirs $found_dir" 8556 fi 8557 else 8558 haveit= 8559 for x in $LDFLAGS $LIBICONV; do 8560 8561 acl_save_prefix="$prefix" 8562 prefix="$acl_final_prefix" 8563 acl_save_exec_prefix="$exec_prefix" 8564 exec_prefix="$acl_final_exec_prefix" 8565 eval x=\"$x\" 8566 exec_prefix="$acl_save_exec_prefix" 8567 prefix="$acl_save_prefix" 8568 8569 if test "X$x" = "X-L$found_dir"; then 8570 haveit=yes 8571 break 8572 fi 8573 done 8574 if test -z "$haveit"; then 8575 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 8576 fi 8577 if test "$hardcode_minus_L" != no; then 8578 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8579 else 8580 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 8581 fi 8582 fi 8583 fi 8584 fi 8585 else 8586 if test "X$found_a" != "X"; then 8587 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 8588 else 8589 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 8590 fi 8591 fi 8592 additional_includedir= 8593 case "$found_dir" in 8594 */lib | */lib/) 8595 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 8596 additional_includedir="$basedir/include" 8597 ;; 8598 esac 8599 if test "X$additional_includedir" != "X"; then 8600 if test "X$additional_includedir" != "X/usr/include"; then 8601 haveit= 8602 if test "X$additional_includedir" = "X/usr/local/include"; then 8603 if test -n "$GCC"; then 8604 case $host_os in 8605 linux*) haveit=yes;; 8606 esac 8607 fi 8608 fi 8609 if test -z "$haveit"; then 8610 for x in $CPPFLAGS $INCICONV; do 8611 8612 acl_save_prefix="$prefix" 8613 prefix="$acl_final_prefix" 8614 acl_save_exec_prefix="$exec_prefix" 8615 exec_prefix="$acl_final_exec_prefix" 8616 eval x=\"$x\" 8617 exec_prefix="$acl_save_exec_prefix" 8618 prefix="$acl_save_prefix" 8619 8620 if test "X$x" = "X-I$additional_includedir"; then 8621 haveit=yes 8622 break 8623 fi 8624 done 8625 if test -z "$haveit"; then 8626 if test -d "$additional_includedir"; then 8627 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 8628 fi 8629 fi 8630 fi 8631 fi 8632 fi 8633 if test -n "$found_la"; then 8634 save_libdir="$libdir" 8635 case "$found_la" in 8636 */* | *\\*) . "$found_la" ;; 8637 *) . "./$found_la" ;; 8638 esac 8639 libdir="$save_libdir" 8640 for dep in $dependency_libs; do 8641 case "$dep" in 8642 -L*) 8643 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 8644 if test "X$additional_libdir" != "X/usr/lib"; then 8645 haveit= 8646 if test "X$additional_libdir" = "X/usr/local/lib"; then 8647 if test -n "$GCC"; then 8648 case $host_os in 8649 linux*) haveit=yes;; 8650 esac 8651 fi 8652 fi 8653 if test -z "$haveit"; then 8654 haveit= 8655 for x in $LDFLAGS $LIBICONV; do 8656 8657 acl_save_prefix="$prefix" 8658 prefix="$acl_final_prefix" 8659 acl_save_exec_prefix="$exec_prefix" 8660 exec_prefix="$acl_final_exec_prefix" 8661 eval x=\"$x\" 8662 exec_prefix="$acl_save_exec_prefix" 8663 prefix="$acl_save_prefix" 8664 8665 if test "X$x" = "X-L$additional_libdir"; then 8666 haveit=yes 8667 break 8668 fi 8669 done 8670 if test -z "$haveit"; then 8671 if test -d "$additional_libdir"; then 8672 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 8673 fi 8674 fi 8675 haveit= 8676 for x in $LDFLAGS $LTLIBICONV; do 8677 8678 acl_save_prefix="$prefix" 8679 prefix="$acl_final_prefix" 8680 acl_save_exec_prefix="$exec_prefix" 8681 exec_prefix="$acl_final_exec_prefix" 8682 eval x=\"$x\" 8683 exec_prefix="$acl_save_exec_prefix" 8684 prefix="$acl_save_prefix" 8685 8686 if test "X$x" = "X-L$additional_libdir"; then 8687 haveit=yes 8688 break 8689 fi 8690 done 8691 if test -z "$haveit"; then 8692 if test -d "$additional_libdir"; then 8693 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 8694 fi 8695 fi 8696 fi 8697 fi 8698 ;; 8699 -R*) 8700 dir=`echo "X$dep" | sed -e 's/^X-R//'` 8701 if test "$enable_rpath" != no; then 8702 haveit= 8703 for x in $rpathdirs; do 8704 if test "X$x" = "X$dir"; then 8705 haveit=yes 8706 break 8707 fi 8708 done 8709 if test -z "$haveit"; then 8710 rpathdirs="$rpathdirs $dir" 8711 fi 8712 haveit= 8713 for x in $ltrpathdirs; do 8714 if test "X$x" = "X$dir"; then 8715 haveit=yes 8716 break 8717 fi 8718 done 8719 if test -z "$haveit"; then 8720 ltrpathdirs="$ltrpathdirs $dir" 8721 fi 8722 fi 8723 ;; 8724 -l*) 8725 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 8726 ;; 8727 *.la) 8728 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 8729 ;; 8730 *) 8731 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 8732 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 8733 ;; 8734 esac 8735 done 8736 fi 8737 else 8738 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 8739 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 8740 fi 8741 fi 8742 fi 8743 done 8744 done 8745 if test "X$rpathdirs" != "X"; then 8746 if test -n "$hardcode_libdir_separator"; then 8747 alldirs= 8748 for found_dir in $rpathdirs; do 8749 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 8750 done 8751 acl_save_libdir="$libdir" 8752 libdir="$alldirs" 8753 eval flag=\"$hardcode_libdir_flag_spec\" 8754 libdir="$acl_save_libdir" 8755 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 8756 else 8757 for found_dir in $rpathdirs; do 8758 acl_save_libdir="$libdir" 8759 libdir="$found_dir" 8760 eval flag=\"$hardcode_libdir_flag_spec\" 8761 libdir="$acl_save_libdir" 8762 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 8763 done 8764 fi 8765 fi 8766 if test "X$ltrpathdirs" != "X"; then 8767 for found_dir in $ltrpathdirs; do 8768 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 8769 done 8770 fi 8771 8772 8773 8774 8775 8776 8777 8778 8779 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 8780echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } 8781if test "${ac_cv_type_ptrdiff_t+set}" = set; then 8782 echo $ECHO_N "(cached) $ECHO_C" >&6 8783else 8784 cat >conftest.$ac_ext <<_ACEOF 8785/* confdefs.h. */ 8786_ACEOF 8787cat confdefs.h >>conftest.$ac_ext 8788cat >>conftest.$ac_ext <<_ACEOF 8789/* end confdefs.h. */ 8790$ac_includes_default 8791typedef ptrdiff_t ac__type_new_; 8792int 8793main () 8794{ 8795if ((ac__type_new_ *) 0) 8796 return 0; 8797if (sizeof (ac__type_new_)) 8798 return 0; 8799 ; 8800 return 0; 8801} 8802_ACEOF 8803rm -f conftest.$ac_objext 8804if { (ac_try="$ac_compile" 8805case "(($ac_try" in 8806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8807 *) ac_try_echo=$ac_try;; 8808esac 8809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8810 (eval "$ac_compile") 2>conftest.er1 8811 ac_status=$? 8812 grep -v '^ *+' conftest.er1 >conftest.err 8813 rm -f conftest.er1 8814 cat conftest.err >&5 8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8816 (exit $ac_status); } && { 8817 test -z "$ac_c_werror_flag" || 8818 test ! -s conftest.err 8819 } && test -s conftest.$ac_objext; then 8820 ac_cv_type_ptrdiff_t=yes 8821else 8822 echo "$as_me: failed program was:" >&5 8823sed 's/^/| /' conftest.$ac_ext >&5 8824 8825 ac_cv_type_ptrdiff_t=no 8826fi 8827 8828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8829fi 8830{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 8831echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } 8832if test $ac_cv_type_ptrdiff_t = yes; then 8833 : 8834else 8835 8836cat >>confdefs.h <<\_ACEOF 8837#define ptrdiff_t long 8838_ACEOF 8839 8840 8841fi 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 8854stdlib.h string.h unistd.h sys/param.h 8855do 8856as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8858 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8860if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8861 echo $ECHO_N "(cached) $ECHO_C" >&6 8862fi 8863ac_res=`eval echo '${'$as_ac_Header'}'` 8864 { echo "$as_me:$LINENO: result: $ac_res" >&5 8865echo "${ECHO_T}$ac_res" >&6; } 8866else 8867 # Is the header compilable? 8868{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8869echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8870cat >conftest.$ac_ext <<_ACEOF 8871/* confdefs.h. */ 8872_ACEOF 8873cat confdefs.h >>conftest.$ac_ext 8874cat >>conftest.$ac_ext <<_ACEOF 8875/* end confdefs.h. */ 8876$ac_includes_default 8877#include <$ac_header> 8878_ACEOF 8879rm -f conftest.$ac_objext 8880if { (ac_try="$ac_compile" 8881case "(($ac_try" in 8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8883 *) ac_try_echo=$ac_try;; 8884esac 8885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8886 (eval "$ac_compile") 2>conftest.er1 8887 ac_status=$? 8888 grep -v '^ *+' conftest.er1 >conftest.err 8889 rm -f conftest.er1 8890 cat conftest.err >&5 8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8892 (exit $ac_status); } && { 8893 test -z "$ac_c_werror_flag" || 8894 test ! -s conftest.err 8895 } && test -s conftest.$ac_objext; then 8896 ac_header_compiler=yes 8897else 8898 echo "$as_me: failed program was:" >&5 8899sed 's/^/| /' conftest.$ac_ext >&5 8900 8901 ac_header_compiler=no 8902fi 8903 8904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8905{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8906echo "${ECHO_T}$ac_header_compiler" >&6; } 8907 8908# Is the header present? 8909{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8910echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8911cat >conftest.$ac_ext <<_ACEOF 8912/* confdefs.h. */ 8913_ACEOF 8914cat confdefs.h >>conftest.$ac_ext 8915cat >>conftest.$ac_ext <<_ACEOF 8916/* end confdefs.h. */ 8917#include <$ac_header> 8918_ACEOF 8919if { (ac_try="$ac_cpp conftest.$ac_ext" 8920case "(($ac_try" in 8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8922 *) ac_try_echo=$ac_try;; 8923esac 8924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8926 ac_status=$? 8927 grep -v '^ *+' conftest.er1 >conftest.err 8928 rm -f conftest.er1 8929 cat conftest.err >&5 8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8931 (exit $ac_status); } >/dev/null && { 8932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8933 test ! -s conftest.err 8934 }; then 8935 ac_header_preproc=yes 8936else 8937 echo "$as_me: failed program was:" >&5 8938sed 's/^/| /' conftest.$ac_ext >&5 8939 8940 ac_header_preproc=no 8941fi 8942 8943rm -f conftest.err conftest.$ac_ext 8944{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8945echo "${ECHO_T}$ac_header_preproc" >&6; } 8946 8947# So? What about this header? 8948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8949 yes:no: ) 8950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8951echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8953echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8954 ac_header_preproc=yes 8955 ;; 8956 no:yes:* ) 8957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8958echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8960echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8962echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8964echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8966echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8968echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8969 8970 ;; 8971esac 8972{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8975 echo $ECHO_N "(cached) $ECHO_C" >&6 8976else 8977 eval "$as_ac_Header=\$ac_header_preproc" 8978fi 8979ac_res=`eval echo '${'$as_ac_Header'}'` 8980 { echo "$as_me:$LINENO: result: $ac_res" >&5 8981echo "${ECHO_T}$ac_res" >&6; } 8982 8983fi 8984if test `eval echo '${'$as_ac_Header'}'` = yes; then 8985 cat >>confdefs.h <<_ACEOF 8986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8987_ACEOF 8988 8989fi 8990 8991done 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ 9017mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ 9018strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ 9019__fsetlocking 9020do 9021as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9022{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9023echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9024if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9025 echo $ECHO_N "(cached) $ECHO_C" >&6 9026else 9027 cat >conftest.$ac_ext <<_ACEOF 9028/* confdefs.h. */ 9029_ACEOF 9030cat confdefs.h >>conftest.$ac_ext 9031cat >>conftest.$ac_ext <<_ACEOF 9032/* end confdefs.h. */ 9033/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9034 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9035#define $ac_func innocuous_$ac_func 9036 9037/* System header to define __stub macros and hopefully few prototypes, 9038 which can conflict with char $ac_func (); below. 9039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9040 <limits.h> exists even on freestanding compilers. */ 9041 9042#ifdef __STDC__ 9043# include <limits.h> 9044#else 9045# include <assert.h> 9046#endif 9047 9048#undef $ac_func 9049 9050/* Override any GCC internal prototype to avoid an error. 9051 Use char because int might match the return type of a GCC 9052 builtin and then its argument prototype would still apply. */ 9053#ifdef __cplusplus 9054extern "C" 9055#endif 9056char $ac_func (); 9057/* The GNU C library defines this for functions which it implements 9058 to always fail with ENOSYS. Some functions are actually named 9059 something starting with __ and the normal name is an alias. */ 9060#if defined __stub_$ac_func || defined __stub___$ac_func 9061choke me 9062#endif 9063 9064int 9065main () 9066{ 9067return $ac_func (); 9068 ; 9069 return 0; 9070} 9071_ACEOF 9072rm -f conftest.$ac_objext conftest$ac_exeext 9073if { (ac_try="$ac_link" 9074case "(($ac_try" in 9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9076 *) ac_try_echo=$ac_try;; 9077esac 9078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9079 (eval "$ac_link") 2>conftest.er1 9080 ac_status=$? 9081 grep -v '^ *+' conftest.er1 >conftest.err 9082 rm -f conftest.er1 9083 cat conftest.err >&5 9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9085 (exit $ac_status); } && { 9086 test -z "$ac_c_werror_flag" || 9087 test ! -s conftest.err 9088 } && test -s conftest$ac_exeext && 9089 $as_test_x conftest$ac_exeext; then 9090 eval "$as_ac_var=yes" 9091else 9092 echo "$as_me: failed program was:" >&5 9093sed 's/^/| /' conftest.$ac_ext >&5 9094 9095 eval "$as_ac_var=no" 9096fi 9097 9098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9099 conftest$ac_exeext conftest.$ac_ext 9100fi 9101ac_res=`eval echo '${'$as_ac_var'}'` 9102 { echo "$as_me:$LINENO: result: $ac_res" >&5 9103echo "${ECHO_T}$ac_res" >&6; } 9104if test `eval echo '${'$as_ac_var'}'` = yes; then 9105 cat >>confdefs.h <<_ACEOF 9106#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9107_ACEOF 9108 9109fi 9110done 9111 9112 9113 9114 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 9115echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } 9116if test "${ac_cv_have_decl__snprintf+set}" = set; then 9117 echo $ECHO_N "(cached) $ECHO_C" >&6 9118else 9119 cat >conftest.$ac_ext <<_ACEOF 9120/* confdefs.h. */ 9121_ACEOF 9122cat confdefs.h >>conftest.$ac_ext 9123cat >>conftest.$ac_ext <<_ACEOF 9124/* end confdefs.h. */ 9125#include <stdio.h> 9126int 9127main () 9128{ 9129 9130#ifndef _snprintf 9131 char *p = (char *) _snprintf; 9132#endif 9133 9134 ; 9135 return 0; 9136} 9137_ACEOF 9138rm -f conftest.$ac_objext 9139if { (ac_try="$ac_compile" 9140case "(($ac_try" in 9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9142 *) ac_try_echo=$ac_try;; 9143esac 9144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9145 (eval "$ac_compile") 2>conftest.er1 9146 ac_status=$? 9147 grep -v '^ *+' conftest.er1 >conftest.err 9148 rm -f conftest.er1 9149 cat conftest.err >&5 9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9151 (exit $ac_status); } && { 9152 test -z "$ac_c_werror_flag" || 9153 test ! -s conftest.err 9154 } && test -s conftest.$ac_objext; then 9155 ac_cv_have_decl__snprintf=yes 9156else 9157 echo "$as_me: failed program was:" >&5 9158sed 's/^/| /' conftest.$ac_ext >&5 9159 9160 ac_cv_have_decl__snprintf=no 9161fi 9162 9163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9164fi 9165{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 9166echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } 9167 if test $ac_cv_have_decl__snprintf = yes; then 9168 gt_value=1 9169 else 9170 gt_value=0 9171 fi 9172 9173cat >>confdefs.h <<_ACEOF 9174#define HAVE_DECL__SNPRINTF $gt_value 9175_ACEOF 9176 9177 9178 9179 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 9180echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } 9181if test "${ac_cv_have_decl__snwprintf+set}" = set; then 9182 echo $ECHO_N "(cached) $ECHO_C" >&6 9183else 9184 cat >conftest.$ac_ext <<_ACEOF 9185/* confdefs.h. */ 9186_ACEOF 9187cat confdefs.h >>conftest.$ac_ext 9188cat >>conftest.$ac_ext <<_ACEOF 9189/* end confdefs.h. */ 9190#include <stdio.h> 9191int 9192main () 9193{ 9194 9195#ifndef _snwprintf 9196 char *p = (char *) _snwprintf; 9197#endif 9198 9199 ; 9200 return 0; 9201} 9202_ACEOF 9203rm -f conftest.$ac_objext 9204if { (ac_try="$ac_compile" 9205case "(($ac_try" in 9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9207 *) ac_try_echo=$ac_try;; 9208esac 9209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9210 (eval "$ac_compile") 2>conftest.er1 9211 ac_status=$? 9212 grep -v '^ *+' conftest.er1 >conftest.err 9213 rm -f conftest.er1 9214 cat conftest.err >&5 9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9216 (exit $ac_status); } && { 9217 test -z "$ac_c_werror_flag" || 9218 test ! -s conftest.err 9219 } && test -s conftest.$ac_objext; then 9220 ac_cv_have_decl__snwprintf=yes 9221else 9222 echo "$as_me: failed program was:" >&5 9223sed 's/^/| /' conftest.$ac_ext >&5 9224 9225 ac_cv_have_decl__snwprintf=no 9226fi 9227 9228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9229fi 9230{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 9231echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } 9232 if test $ac_cv_have_decl__snwprintf = yes; then 9233 gt_value=1 9234 else 9235 gt_value=0 9236 fi 9237 9238cat >>confdefs.h <<_ACEOF 9239#define HAVE_DECL__SNWPRINTF $gt_value 9240_ACEOF 9241 9242 9243 9244 9245 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 9246echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; } 9247if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then 9248 echo $ECHO_N "(cached) $ECHO_C" >&6 9249else 9250 cat >conftest.$ac_ext <<_ACEOF 9251/* confdefs.h. */ 9252_ACEOF 9253cat confdefs.h >>conftest.$ac_ext 9254cat >>conftest.$ac_ext <<_ACEOF 9255/* end confdefs.h. */ 9256#include <stdio.h> 9257int 9258main () 9259{ 9260 9261#ifndef feof_unlocked 9262 char *p = (char *) feof_unlocked; 9263#endif 9264 9265 ; 9266 return 0; 9267} 9268_ACEOF 9269rm -f conftest.$ac_objext 9270if { (ac_try="$ac_compile" 9271case "(($ac_try" in 9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9273 *) ac_try_echo=$ac_try;; 9274esac 9275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9276 (eval "$ac_compile") 2>conftest.er1 9277 ac_status=$? 9278 grep -v '^ *+' conftest.er1 >conftest.err 9279 rm -f conftest.er1 9280 cat conftest.err >&5 9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9282 (exit $ac_status); } && { 9283 test -z "$ac_c_werror_flag" || 9284 test ! -s conftest.err 9285 } && test -s conftest.$ac_objext; then 9286 ac_cv_have_decl_feof_unlocked=yes 9287else 9288 echo "$as_me: failed program was:" >&5 9289sed 's/^/| /' conftest.$ac_ext >&5 9290 9291 ac_cv_have_decl_feof_unlocked=no 9292fi 9293 9294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9295fi 9296{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 9297echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } 9298 if test $ac_cv_have_decl_feof_unlocked = yes; then 9299 gt_value=1 9300 else 9301 gt_value=0 9302 fi 9303 9304cat >>confdefs.h <<_ACEOF 9305#define HAVE_DECL_FEOF_UNLOCKED $gt_value 9306_ACEOF 9307 9308 9309 9310 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 9311echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; } 9312if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then 9313 echo $ECHO_N "(cached) $ECHO_C" >&6 9314else 9315 cat >conftest.$ac_ext <<_ACEOF 9316/* confdefs.h. */ 9317_ACEOF 9318cat confdefs.h >>conftest.$ac_ext 9319cat >>conftest.$ac_ext <<_ACEOF 9320/* end confdefs.h. */ 9321#include <stdio.h> 9322int 9323main () 9324{ 9325 9326#ifndef fgets_unlocked 9327 char *p = (char *) fgets_unlocked; 9328#endif 9329 9330 ; 9331 return 0; 9332} 9333_ACEOF 9334rm -f conftest.$ac_objext 9335if { (ac_try="$ac_compile" 9336case "(($ac_try" in 9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9338 *) ac_try_echo=$ac_try;; 9339esac 9340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9341 (eval "$ac_compile") 2>conftest.er1 9342 ac_status=$? 9343 grep -v '^ *+' conftest.er1 >conftest.err 9344 rm -f conftest.er1 9345 cat conftest.err >&5 9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9347 (exit $ac_status); } && { 9348 test -z "$ac_c_werror_flag" || 9349 test ! -s conftest.err 9350 } && test -s conftest.$ac_objext; then 9351 ac_cv_have_decl_fgets_unlocked=yes 9352else 9353 echo "$as_me: failed program was:" >&5 9354sed 's/^/| /' conftest.$ac_ext >&5 9355 9356 ac_cv_have_decl_fgets_unlocked=no 9357fi 9358 9359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9360fi 9361{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 9362echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } 9363 if test $ac_cv_have_decl_fgets_unlocked = yes; then 9364 gt_value=1 9365 else 9366 gt_value=0 9367 fi 9368 9369cat >>confdefs.h <<_ACEOF 9370#define HAVE_DECL_FGETS_UNLOCKED $gt_value 9371_ACEOF 9372 9373 9374 9375 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 9376echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; } 9377if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 9378 echo $ECHO_N "(cached) $ECHO_C" >&6 9379else 9380 cat >conftest.$ac_ext <<_ACEOF 9381/* confdefs.h. */ 9382_ACEOF 9383cat confdefs.h >>conftest.$ac_ext 9384cat >>conftest.$ac_ext <<_ACEOF 9385/* end confdefs.h. */ 9386#include <stdio.h> 9387int 9388main () 9389{ 9390 9391#ifndef getc_unlocked 9392 char *p = (char *) getc_unlocked; 9393#endif 9394 9395 ; 9396 return 0; 9397} 9398_ACEOF 9399rm -f conftest.$ac_objext 9400if { (ac_try="$ac_compile" 9401case "(($ac_try" in 9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9403 *) ac_try_echo=$ac_try;; 9404esac 9405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9406 (eval "$ac_compile") 2>conftest.er1 9407 ac_status=$? 9408 grep -v '^ *+' conftest.er1 >conftest.err 9409 rm -f conftest.er1 9410 cat conftest.err >&5 9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9412 (exit $ac_status); } && { 9413 test -z "$ac_c_werror_flag" || 9414 test ! -s conftest.err 9415 } && test -s conftest.$ac_objext; then 9416 ac_cv_have_decl_getc_unlocked=yes 9417else 9418 echo "$as_me: failed program was:" >&5 9419sed 's/^/| /' conftest.$ac_ext >&5 9420 9421 ac_cv_have_decl_getc_unlocked=no 9422fi 9423 9424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9425fi 9426{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 9427echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } 9428 if test $ac_cv_have_decl_getc_unlocked = yes; then 9429 gt_value=1 9430 else 9431 gt_value=0 9432 fi 9433 9434cat >>confdefs.h <<_ACEOF 9435#define HAVE_DECL_GETC_UNLOCKED $gt_value 9436_ACEOF 9437 9438 9439 9440 case $gt_cv_func_printf_posix in 9441 *yes) HAVE_POSIX_PRINTF=1 ;; 9442 *) HAVE_POSIX_PRINTF=0 ;; 9443 esac 9444 9445 if test "$ac_cv_func_asprintf" = yes; then 9446 HAVE_ASPRINTF=1 9447 else 9448 HAVE_ASPRINTF=0 9449 fi 9450 9451 if test "$ac_cv_func_snprintf" = yes; then 9452 HAVE_SNPRINTF=1 9453 else 9454 HAVE_SNPRINTF=0 9455 fi 9456 9457 if test "$ac_cv_func_wprintf" = yes; then 9458 HAVE_WPRINTF=1 9459 else 9460 HAVE_WPRINTF=0 9461 fi 9462 9463 9464 9465 9466 9467 9468 9469 am_save_CPPFLAGS="$CPPFLAGS" 9470 9471 for element in $INCICONV; do 9472 haveit= 9473 for x in $CPPFLAGS; do 9474 9475 acl_save_prefix="$prefix" 9476 prefix="$acl_final_prefix" 9477 acl_save_exec_prefix="$exec_prefix" 9478 exec_prefix="$acl_final_exec_prefix" 9479 eval x=\"$x\" 9480 exec_prefix="$acl_save_exec_prefix" 9481 prefix="$acl_save_prefix" 9482 9483 if test "X$x" = "X$element"; then 9484 haveit=yes 9485 break 9486 fi 9487 done 9488 if test -z "$haveit"; then 9489 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 9490 fi 9491 done 9492 9493 9494 { echo "$as_me:$LINENO: checking for iconv" >&5 9495echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } 9496if test "${am_cv_func_iconv+set}" = set; then 9497 echo $ECHO_N "(cached) $ECHO_C" >&6 9498else 9499 9500 am_cv_func_iconv="no, consider installing GNU libiconv" 9501 am_cv_lib_iconv=no 9502 cat >conftest.$ac_ext <<_ACEOF 9503/* confdefs.h. */ 9504_ACEOF 9505cat confdefs.h >>conftest.$ac_ext 9506cat >>conftest.$ac_ext <<_ACEOF 9507/* end confdefs.h. */ 9508#include <stdlib.h> 9509#include <iconv.h> 9510int 9511main () 9512{ 9513iconv_t cd = iconv_open("",""); 9514 iconv(cd,NULL,NULL,NULL,NULL); 9515 iconv_close(cd); 9516 ; 9517 return 0; 9518} 9519_ACEOF 9520rm -f conftest.$ac_objext conftest$ac_exeext 9521if { (ac_try="$ac_link" 9522case "(($ac_try" in 9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9524 *) ac_try_echo=$ac_try;; 9525esac 9526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9527 (eval "$ac_link") 2>conftest.er1 9528 ac_status=$? 9529 grep -v '^ *+' conftest.er1 >conftest.err 9530 rm -f conftest.er1 9531 cat conftest.err >&5 9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9533 (exit $ac_status); } && { 9534 test -z "$ac_c_werror_flag" || 9535 test ! -s conftest.err 9536 } && test -s conftest$ac_exeext && 9537 $as_test_x conftest$ac_exeext; then 9538 am_cv_func_iconv=yes 9539else 9540 echo "$as_me: failed program was:" >&5 9541sed 's/^/| /' conftest.$ac_ext >&5 9542 9543 9544fi 9545 9546rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9547 conftest$ac_exeext conftest.$ac_ext 9548 if test "$am_cv_func_iconv" != yes; then 9549 am_save_LIBS="$LIBS" 9550 LIBS="$LIBS $LIBICONV" 9551 cat >conftest.$ac_ext <<_ACEOF 9552/* confdefs.h. */ 9553_ACEOF 9554cat confdefs.h >>conftest.$ac_ext 9555cat >>conftest.$ac_ext <<_ACEOF 9556/* end confdefs.h. */ 9557#include <stdlib.h> 9558#include <iconv.h> 9559int 9560main () 9561{ 9562iconv_t cd = iconv_open("",""); 9563 iconv(cd,NULL,NULL,NULL,NULL); 9564 iconv_close(cd); 9565 ; 9566 return 0; 9567} 9568_ACEOF 9569rm -f conftest.$ac_objext conftest$ac_exeext 9570if { (ac_try="$ac_link" 9571case "(($ac_try" in 9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9573 *) ac_try_echo=$ac_try;; 9574esac 9575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9576 (eval "$ac_link") 2>conftest.er1 9577 ac_status=$? 9578 grep -v '^ *+' conftest.er1 >conftest.err 9579 rm -f conftest.er1 9580 cat conftest.err >&5 9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9582 (exit $ac_status); } && { 9583 test -z "$ac_c_werror_flag" || 9584 test ! -s conftest.err 9585 } && test -s conftest$ac_exeext && 9586 $as_test_x conftest$ac_exeext; then 9587 am_cv_lib_iconv=yes 9588 am_cv_func_iconv=yes 9589else 9590 echo "$as_me: failed program was:" >&5 9591sed 's/^/| /' conftest.$ac_ext >&5 9592 9593 9594fi 9595 9596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9597 conftest$ac_exeext conftest.$ac_ext 9598 LIBS="$am_save_LIBS" 9599 fi 9600 9601fi 9602{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 9603echo "${ECHO_T}$am_cv_func_iconv" >&6; } 9604 if test "$am_cv_func_iconv" = yes; then 9605 9606cat >>confdefs.h <<\_ACEOF 9607#define HAVE_ICONV 1 9608_ACEOF 9609 9610 fi 9611 if test "$am_cv_lib_iconv" = yes; then 9612 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 9613echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } 9614 { echo "$as_me:$LINENO: result: $LIBICONV" >&5 9615echo "${ECHO_T}$LIBICONV" >&6; } 9616 else 9617 CPPFLAGS="$am_save_CPPFLAGS" 9618 LIBICONV= 9619 LTLIBICONV= 9620 fi 9621 9622 9623 9624 if test "$am_cv_func_iconv" = yes; then 9625 { echo "$as_me:$LINENO: checking for iconv declaration" >&5 9626echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } 9627 if test "${am_cv_proto_iconv+set}" = set; then 9628 echo $ECHO_N "(cached) $ECHO_C" >&6 9629else 9630 9631 cat >conftest.$ac_ext <<_ACEOF 9632/* confdefs.h. */ 9633_ACEOF 9634cat confdefs.h >>conftest.$ac_ext 9635cat >>conftest.$ac_ext <<_ACEOF 9636/* end confdefs.h. */ 9637 9638#include <stdlib.h> 9639#include <iconv.h> 9640extern 9641#ifdef __cplusplus 9642"C" 9643#endif 9644#if defined(__STDC__) || defined(__cplusplus) 9645size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 9646#else 9647size_t iconv(); 9648#endif 9649 9650int 9651main () 9652{ 9653 9654 ; 9655 return 0; 9656} 9657_ACEOF 9658rm -f conftest.$ac_objext 9659if { (ac_try="$ac_compile" 9660case "(($ac_try" in 9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9662 *) ac_try_echo=$ac_try;; 9663esac 9664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9665 (eval "$ac_compile") 2>conftest.er1 9666 ac_status=$? 9667 grep -v '^ *+' conftest.er1 >conftest.err 9668 rm -f conftest.er1 9669 cat conftest.err >&5 9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9671 (exit $ac_status); } && { 9672 test -z "$ac_c_werror_flag" || 9673 test ! -s conftest.err 9674 } && test -s conftest.$ac_objext; then 9675 am_cv_proto_iconv_arg1="" 9676else 9677 echo "$as_me: failed program was:" >&5 9678sed 's/^/| /' conftest.$ac_ext >&5 9679 9680 am_cv_proto_iconv_arg1="const" 9681fi 9682 9683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9684 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 9685fi 9686 9687 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 9688 { echo "$as_me:$LINENO: result: ${ac_t:- 9689 }$am_cv_proto_iconv" >&5 9690echo "${ECHO_T}${ac_t:- 9691 }$am_cv_proto_iconv" >&6; } 9692 9693cat >>confdefs.h <<_ACEOF 9694#define ICONV_CONST $am_cv_proto_iconv_arg1 9695_ACEOF 9696 9697 fi 9698 9699 9700 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 9701echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } 9702if test "${am_cv_langinfo_codeset+set}" = set; then 9703 echo $ECHO_N "(cached) $ECHO_C" >&6 9704else 9705 cat >conftest.$ac_ext <<_ACEOF 9706/* confdefs.h. */ 9707_ACEOF 9708cat confdefs.h >>conftest.$ac_ext 9709cat >>conftest.$ac_ext <<_ACEOF 9710/* end confdefs.h. */ 9711#include <langinfo.h> 9712int 9713main () 9714{ 9715char* cs = nl_langinfo(CODESET); 9716 ; 9717 return 0; 9718} 9719_ACEOF 9720rm -f conftest.$ac_objext conftest$ac_exeext 9721if { (ac_try="$ac_link" 9722case "(($ac_try" in 9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9724 *) ac_try_echo=$ac_try;; 9725esac 9726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9727 (eval "$ac_link") 2>conftest.er1 9728 ac_status=$? 9729 grep -v '^ *+' conftest.er1 >conftest.err 9730 rm -f conftest.er1 9731 cat conftest.err >&5 9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9733 (exit $ac_status); } && { 9734 test -z "$ac_c_werror_flag" || 9735 test ! -s conftest.err 9736 } && test -s conftest$ac_exeext && 9737 $as_test_x conftest$ac_exeext; then 9738 am_cv_langinfo_codeset=yes 9739else 9740 echo "$as_me: failed program was:" >&5 9741sed 's/^/| /' conftest.$ac_ext >&5 9742 9743 am_cv_langinfo_codeset=no 9744fi 9745 9746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9747 conftest$ac_exeext conftest.$ac_ext 9748 9749fi 9750{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 9751echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } 9752 if test $am_cv_langinfo_codeset = yes; then 9753 9754cat >>confdefs.h <<\_ACEOF 9755#define HAVE_LANGINFO_CODESET 1 9756_ACEOF 9757 9758 fi 9759 9760 if test $ac_cv_header_locale_h = yes; then 9761 9762 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 9763echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } 9764if test "${am_cv_val_LC_MESSAGES+set}" = set; then 9765 echo $ECHO_N "(cached) $ECHO_C" >&6 9766else 9767 cat >conftest.$ac_ext <<_ACEOF 9768/* confdefs.h. */ 9769_ACEOF 9770cat confdefs.h >>conftest.$ac_ext 9771cat >>conftest.$ac_ext <<_ACEOF 9772/* end confdefs.h. */ 9773#include <locale.h> 9774int 9775main () 9776{ 9777return LC_MESSAGES 9778 ; 9779 return 0; 9780} 9781_ACEOF 9782rm -f conftest.$ac_objext conftest$ac_exeext 9783if { (ac_try="$ac_link" 9784case "(($ac_try" in 9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9786 *) ac_try_echo=$ac_try;; 9787esac 9788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9789 (eval "$ac_link") 2>conftest.er1 9790 ac_status=$? 9791 grep -v '^ *+' conftest.er1 >conftest.err 9792 rm -f conftest.er1 9793 cat conftest.err >&5 9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9795 (exit $ac_status); } && { 9796 test -z "$ac_c_werror_flag" || 9797 test ! -s conftest.err 9798 } && test -s conftest$ac_exeext && 9799 $as_test_x conftest$ac_exeext; then 9800 am_cv_val_LC_MESSAGES=yes 9801else 9802 echo "$as_me: failed program was:" >&5 9803sed 's/^/| /' conftest.$ac_ext >&5 9804 9805 am_cv_val_LC_MESSAGES=no 9806fi 9807 9808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9809 conftest$ac_exeext conftest.$ac_ext 9810fi 9811{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 9812echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } 9813 if test $am_cv_val_LC_MESSAGES = yes; then 9814 9815cat >>confdefs.h <<\_ACEOF 9816#define HAVE_LC_MESSAGES 1 9817_ACEOF 9818 9819 fi 9820 9821 fi 9822 9823 for ac_prog in bison 9824do 9825 # Extract the first word of "$ac_prog", so it can be a program name with args. 9826set dummy $ac_prog; ac_word=$2 9827{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9829if test "${ac_cv_prog_INTLBISON+set}" = set; then 9830 echo $ECHO_N "(cached) $ECHO_C" >&6 9831else 9832 if test -n "$INTLBISON"; then 9833 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 9834else 9835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9836for as_dir in $PATH 9837do 9838 IFS=$as_save_IFS 9839 test -z "$as_dir" && as_dir=. 9840 for ac_exec_ext in '' $ac_executable_extensions; do 9841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9842 ac_cv_prog_INTLBISON="$ac_prog" 9843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9844 break 2 9845 fi 9846done 9847done 9848IFS=$as_save_IFS 9849 9850fi 9851fi 9852INTLBISON=$ac_cv_prog_INTLBISON 9853if test -n "$INTLBISON"; then 9854 { echo "$as_me:$LINENO: result: $INTLBISON" >&5 9855echo "${ECHO_T}$INTLBISON" >&6; } 9856else 9857 { echo "$as_me:$LINENO: result: no" >&5 9858echo "${ECHO_T}no" >&6; } 9859fi 9860 9861 9862 test -n "$INTLBISON" && break 9863done 9864 9865 if test -z "$INTLBISON"; then 9866 ac_verc_fail=yes 9867 else 9868 { echo "$as_me:$LINENO: checking version of bison" >&5 9869echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } 9870 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 9871 case $ac_prog_version in 9872 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 9873 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 9874 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 9875 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 9876 esac 9877 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 9878echo "${ECHO_T}$ac_prog_version" >&6; } 9879 fi 9880 if test $ac_verc_fail = yes; then 9881 INTLBISON=: 9882 fi 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 9900echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } 9901 # Check whether --enable-nls was given. 9902if test "${enable_nls+set}" = set; then 9903 enableval=$enable_nls; USE_NLS=$enableval 9904else 9905 USE_NLS=yes 9906fi 9907 9908 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 9909echo "${ECHO_T}$USE_NLS" >&6; } 9910 9911 9912 9913 9914 BUILD_INCLUDED_LIBINTL=no 9915 USE_INCLUDED_LIBINTL=no 9916 9917 LIBINTL= 9918 LTLIBINTL= 9919 POSUB= 9920 9921 if test "$USE_NLS" = "yes"; then 9922 gt_use_preinstalled_gnugettext=no 9923 9924 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 9925echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; } 9926 9927# Check whether --with-included-gettext was given. 9928if test "${with_included_gettext+set}" = set; then 9929 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 9930else 9931 nls_cv_force_use_gnu_gettext=no 9932fi 9933 9934 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 9935echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } 9936 9937 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 9938 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 9939 9940 9941 9942 9943 9944 9945 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 9946echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } 9947if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 9948 echo $ECHO_N "(cached) $ECHO_C" >&6 9949else 9950 cat >conftest.$ac_ext <<_ACEOF 9951/* confdefs.h. */ 9952_ACEOF 9953cat confdefs.h >>conftest.$ac_ext 9954cat >>conftest.$ac_ext <<_ACEOF 9955/* end confdefs.h. */ 9956#include <libintl.h> 9957extern int _nl_msg_cat_cntr; 9958extern int *_nl_domain_bindings; 9959int 9960main () 9961{ 9962bindtextdomain ("", ""); 9963return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 9964 ; 9965 return 0; 9966} 9967_ACEOF 9968rm -f conftest.$ac_objext conftest$ac_exeext 9969if { (ac_try="$ac_link" 9970case "(($ac_try" in 9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9972 *) ac_try_echo=$ac_try;; 9973esac 9974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9975 (eval "$ac_link") 2>conftest.er1 9976 ac_status=$? 9977 grep -v '^ *+' conftest.er1 >conftest.err 9978 rm -f conftest.er1 9979 cat conftest.err >&5 9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9981 (exit $ac_status); } && { 9982 test -z "$ac_c_werror_flag" || 9983 test ! -s conftest.err 9984 } && test -s conftest$ac_exeext && 9985 $as_test_x conftest$ac_exeext; then 9986 gt_cv_func_gnugettext1_libc=yes 9987else 9988 echo "$as_me: failed program was:" >&5 9989sed 's/^/| /' conftest.$ac_ext >&5 9990 9991 gt_cv_func_gnugettext1_libc=no 9992fi 9993 9994rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9995 conftest$ac_exeext conftest.$ac_ext 9996fi 9997{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 9998echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } 9999 10000 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 10001 10002 10003 10004 use_additional=yes 10005 10006 acl_save_prefix="$prefix" 10007 prefix="$acl_final_prefix" 10008 acl_save_exec_prefix="$exec_prefix" 10009 exec_prefix="$acl_final_exec_prefix" 10010 10011 eval additional_includedir=\"$includedir\" 10012 eval additional_libdir=\"$libdir\" 10013 10014 exec_prefix="$acl_save_exec_prefix" 10015 prefix="$acl_save_prefix" 10016 10017 10018# Check whether --with-libintl-prefix was given. 10019if test "${with_libintl_prefix+set}" = set; then 10020 withval=$with_libintl_prefix; 10021 if test "X$withval" = "Xno"; then 10022 use_additional=no 10023 else 10024 if test "X$withval" = "X"; then 10025 10026 acl_save_prefix="$prefix" 10027 prefix="$acl_final_prefix" 10028 acl_save_exec_prefix="$exec_prefix" 10029 exec_prefix="$acl_final_exec_prefix" 10030 10031 eval additional_includedir=\"$includedir\" 10032 eval additional_libdir=\"$libdir\" 10033 10034 exec_prefix="$acl_save_exec_prefix" 10035 prefix="$acl_save_prefix" 10036 10037 else 10038 additional_includedir="$withval/include" 10039 additional_libdir="$withval/lib" 10040 fi 10041 fi 10042 10043fi 10044 10045 LIBINTL= 10046 LTLIBINTL= 10047 INCINTL= 10048 rpathdirs= 10049 ltrpathdirs= 10050 names_already_handled= 10051 names_next_round='intl ' 10052 while test -n "$names_next_round"; do 10053 names_this_round="$names_next_round" 10054 names_next_round= 10055 for name in $names_this_round; do 10056 already_handled= 10057 for n in $names_already_handled; do 10058 if test "$n" = "$name"; then 10059 already_handled=yes 10060 break 10061 fi 10062 done 10063 if test -z "$already_handled"; then 10064 names_already_handled="$names_already_handled $name" 10065 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 10066 eval value=\"\$HAVE_LIB$uppername\" 10067 if test -n "$value"; then 10068 if test "$value" = yes; then 10069 eval value=\"\$LIB$uppername\" 10070 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 10071 eval value=\"\$LTLIB$uppername\" 10072 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 10073 else 10074 : 10075 fi 10076 else 10077 found_dir= 10078 found_la= 10079 found_so= 10080 found_a= 10081 if test $use_additional = yes; then 10082 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 10083 found_dir="$additional_libdir" 10084 found_so="$additional_libdir/lib$name.$shlibext" 10085 if test -f "$additional_libdir/lib$name.la"; then 10086 found_la="$additional_libdir/lib$name.la" 10087 fi 10088 else 10089 if test -f "$additional_libdir/lib$name.$libext"; then 10090 found_dir="$additional_libdir" 10091 found_a="$additional_libdir/lib$name.$libext" 10092 if test -f "$additional_libdir/lib$name.la"; then 10093 found_la="$additional_libdir/lib$name.la" 10094 fi 10095 fi 10096 fi 10097 fi 10098 if test "X$found_dir" = "X"; then 10099 for x in $LDFLAGS $LTLIBINTL; do 10100 10101 acl_save_prefix="$prefix" 10102 prefix="$acl_final_prefix" 10103 acl_save_exec_prefix="$exec_prefix" 10104 exec_prefix="$acl_final_exec_prefix" 10105 eval x=\"$x\" 10106 exec_prefix="$acl_save_exec_prefix" 10107 prefix="$acl_save_prefix" 10108 10109 case "$x" in 10110 -L*) 10111 dir=`echo "X$x" | sed -e 's/^X-L//'` 10112 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 10113 found_dir="$dir" 10114 found_so="$dir/lib$name.$shlibext" 10115 if test -f "$dir/lib$name.la"; then 10116 found_la="$dir/lib$name.la" 10117 fi 10118 else 10119 if test -f "$dir/lib$name.$libext"; then 10120 found_dir="$dir" 10121 found_a="$dir/lib$name.$libext" 10122 if test -f "$dir/lib$name.la"; then 10123 found_la="$dir/lib$name.la" 10124 fi 10125 fi 10126 fi 10127 ;; 10128 esac 10129 if test "X$found_dir" != "X"; then 10130 break 10131 fi 10132 done 10133 fi 10134 if test "X$found_dir" != "X"; then 10135 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 10136 if test "X$found_so" != "X"; then 10137 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 10138 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10139 else 10140 haveit= 10141 for x in $ltrpathdirs; do 10142 if test "X$x" = "X$found_dir"; then 10143 haveit=yes 10144 break 10145 fi 10146 done 10147 if test -z "$haveit"; then 10148 ltrpathdirs="$ltrpathdirs $found_dir" 10149 fi 10150 if test "$hardcode_direct" = yes; then 10151 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10152 else 10153 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 10154 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10155 haveit= 10156 for x in $rpathdirs; do 10157 if test "X$x" = "X$found_dir"; then 10158 haveit=yes 10159 break 10160 fi 10161 done 10162 if test -z "$haveit"; then 10163 rpathdirs="$rpathdirs $found_dir" 10164 fi 10165 else 10166 haveit= 10167 for x in $LDFLAGS $LIBINTL; do 10168 10169 acl_save_prefix="$prefix" 10170 prefix="$acl_final_prefix" 10171 acl_save_exec_prefix="$exec_prefix" 10172 exec_prefix="$acl_final_exec_prefix" 10173 eval x=\"$x\" 10174 exec_prefix="$acl_save_exec_prefix" 10175 prefix="$acl_save_prefix" 10176 10177 if test "X$x" = "X-L$found_dir"; then 10178 haveit=yes 10179 break 10180 fi 10181 done 10182 if test -z "$haveit"; then 10183 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 10184 fi 10185 if test "$hardcode_minus_L" != no; then 10186 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10187 else 10188 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 10189 fi 10190 fi 10191 fi 10192 fi 10193 else 10194 if test "X$found_a" != "X"; then 10195 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 10196 else 10197 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 10198 fi 10199 fi 10200 additional_includedir= 10201 case "$found_dir" in 10202 */lib | */lib/) 10203 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 10204 additional_includedir="$basedir/include" 10205 ;; 10206 esac 10207 if test "X$additional_includedir" != "X"; then 10208 if test "X$additional_includedir" != "X/usr/include"; then 10209 haveit= 10210 if test "X$additional_includedir" = "X/usr/local/include"; then 10211 if test -n "$GCC"; then 10212 case $host_os in 10213 linux*) haveit=yes;; 10214 esac 10215 fi 10216 fi 10217 if test -z "$haveit"; then 10218 for x in $CPPFLAGS $INCINTL; do 10219 10220 acl_save_prefix="$prefix" 10221 prefix="$acl_final_prefix" 10222 acl_save_exec_prefix="$exec_prefix" 10223 exec_prefix="$acl_final_exec_prefix" 10224 eval x=\"$x\" 10225 exec_prefix="$acl_save_exec_prefix" 10226 prefix="$acl_save_prefix" 10227 10228 if test "X$x" = "X-I$additional_includedir"; then 10229 haveit=yes 10230 break 10231 fi 10232 done 10233 if test -z "$haveit"; then 10234 if test -d "$additional_includedir"; then 10235 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 10236 fi 10237 fi 10238 fi 10239 fi 10240 fi 10241 if test -n "$found_la"; then 10242 save_libdir="$libdir" 10243 case "$found_la" in 10244 */* | *\\*) . "$found_la" ;; 10245 *) . "./$found_la" ;; 10246 esac 10247 libdir="$save_libdir" 10248 for dep in $dependency_libs; do 10249 case "$dep" in 10250 -L*) 10251 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 10252 if test "X$additional_libdir" != "X/usr/lib"; then 10253 haveit= 10254 if test "X$additional_libdir" = "X/usr/local/lib"; then 10255 if test -n "$GCC"; then 10256 case $host_os in 10257 linux*) haveit=yes;; 10258 esac 10259 fi 10260 fi 10261 if test -z "$haveit"; then 10262 haveit= 10263 for x in $LDFLAGS $LIBINTL; do 10264 10265 acl_save_prefix="$prefix" 10266 prefix="$acl_final_prefix" 10267 acl_save_exec_prefix="$exec_prefix" 10268 exec_prefix="$acl_final_exec_prefix" 10269 eval x=\"$x\" 10270 exec_prefix="$acl_save_exec_prefix" 10271 prefix="$acl_save_prefix" 10272 10273 if test "X$x" = "X-L$additional_libdir"; then 10274 haveit=yes 10275 break 10276 fi 10277 done 10278 if test -z "$haveit"; then 10279 if test -d "$additional_libdir"; then 10280 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 10281 fi 10282 fi 10283 haveit= 10284 for x in $LDFLAGS $LTLIBINTL; do 10285 10286 acl_save_prefix="$prefix" 10287 prefix="$acl_final_prefix" 10288 acl_save_exec_prefix="$exec_prefix" 10289 exec_prefix="$acl_final_exec_prefix" 10290 eval x=\"$x\" 10291 exec_prefix="$acl_save_exec_prefix" 10292 prefix="$acl_save_prefix" 10293 10294 if test "X$x" = "X-L$additional_libdir"; then 10295 haveit=yes 10296 break 10297 fi 10298 done 10299 if test -z "$haveit"; then 10300 if test -d "$additional_libdir"; then 10301 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 10302 fi 10303 fi 10304 fi 10305 fi 10306 ;; 10307 -R*) 10308 dir=`echo "X$dep" | sed -e 's/^X-R//'` 10309 if test "$enable_rpath" != no; then 10310 haveit= 10311 for x in $rpathdirs; do 10312 if test "X$x" = "X$dir"; then 10313 haveit=yes 10314 break 10315 fi 10316 done 10317 if test -z "$haveit"; then 10318 rpathdirs="$rpathdirs $dir" 10319 fi 10320 haveit= 10321 for x in $ltrpathdirs; do 10322 if test "X$x" = "X$dir"; then 10323 haveit=yes 10324 break 10325 fi 10326 done 10327 if test -z "$haveit"; then 10328 ltrpathdirs="$ltrpathdirs $dir" 10329 fi 10330 fi 10331 ;; 10332 -l*) 10333 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 10334 ;; 10335 *.la) 10336 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 10337 ;; 10338 *) 10339 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 10340 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 10341 ;; 10342 esac 10343 done 10344 fi 10345 else 10346 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 10347 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 10348 fi 10349 fi 10350 fi 10351 done 10352 done 10353 if test "X$rpathdirs" != "X"; then 10354 if test -n "$hardcode_libdir_separator"; then 10355 alldirs= 10356 for found_dir in $rpathdirs; do 10357 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 10358 done 10359 acl_save_libdir="$libdir" 10360 libdir="$alldirs" 10361 eval flag=\"$hardcode_libdir_flag_spec\" 10362 libdir="$acl_save_libdir" 10363 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 10364 else 10365 for found_dir in $rpathdirs; do 10366 acl_save_libdir="$libdir" 10367 libdir="$found_dir" 10368 eval flag=\"$hardcode_libdir_flag_spec\" 10369 libdir="$acl_save_libdir" 10370 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 10371 done 10372 fi 10373 fi 10374 if test "X$ltrpathdirs" != "X"; then 10375 for found_dir in $ltrpathdirs; do 10376 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 10377 done 10378 fi 10379 10380 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 10381echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } 10382if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 10383 echo $ECHO_N "(cached) $ECHO_C" >&6 10384else 10385 gt_save_CPPFLAGS="$CPPFLAGS" 10386 CPPFLAGS="$CPPFLAGS $INCINTL" 10387 gt_save_LIBS="$LIBS" 10388 LIBS="$LIBS $LIBINTL" 10389 cat >conftest.$ac_ext <<_ACEOF 10390/* confdefs.h. */ 10391_ACEOF 10392cat confdefs.h >>conftest.$ac_ext 10393cat >>conftest.$ac_ext <<_ACEOF 10394/* end confdefs.h. */ 10395#include <libintl.h> 10396extern int _nl_msg_cat_cntr; 10397extern 10398#ifdef __cplusplus 10399"C" 10400#endif 10401const char *_nl_expand_alias (); 10402int 10403main () 10404{ 10405bindtextdomain ("", ""); 10406return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 10407 ; 10408 return 0; 10409} 10410_ACEOF 10411rm -f conftest.$ac_objext conftest$ac_exeext 10412if { (ac_try="$ac_link" 10413case "(($ac_try" in 10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10415 *) ac_try_echo=$ac_try;; 10416esac 10417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10418 (eval "$ac_link") 2>conftest.er1 10419 ac_status=$? 10420 grep -v '^ *+' conftest.er1 >conftest.err 10421 rm -f conftest.er1 10422 cat conftest.err >&5 10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10424 (exit $ac_status); } && { 10425 test -z "$ac_c_werror_flag" || 10426 test ! -s conftest.err 10427 } && test -s conftest$ac_exeext && 10428 $as_test_x conftest$ac_exeext; then 10429 gt_cv_func_gnugettext1_libintl=yes 10430else 10431 echo "$as_me: failed program was:" >&5 10432sed 's/^/| /' conftest.$ac_ext >&5 10433 10434 gt_cv_func_gnugettext1_libintl=no 10435fi 10436 10437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10438 conftest$ac_exeext conftest.$ac_ext 10439 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 10440 LIBS="$LIBS $LIBICONV" 10441 cat >conftest.$ac_ext <<_ACEOF 10442/* confdefs.h. */ 10443_ACEOF 10444cat confdefs.h >>conftest.$ac_ext 10445cat >>conftest.$ac_ext <<_ACEOF 10446/* end confdefs.h. */ 10447#include <libintl.h> 10448extern int _nl_msg_cat_cntr; 10449extern 10450#ifdef __cplusplus 10451"C" 10452#endif 10453const char *_nl_expand_alias (); 10454int 10455main () 10456{ 10457bindtextdomain ("", ""); 10458return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 10459 ; 10460 return 0; 10461} 10462_ACEOF 10463rm -f conftest.$ac_objext conftest$ac_exeext 10464if { (ac_try="$ac_link" 10465case "(($ac_try" in 10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10467 *) ac_try_echo=$ac_try;; 10468esac 10469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10470 (eval "$ac_link") 2>conftest.er1 10471 ac_status=$? 10472 grep -v '^ *+' conftest.er1 >conftest.err 10473 rm -f conftest.er1 10474 cat conftest.err >&5 10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10476 (exit $ac_status); } && { 10477 test -z "$ac_c_werror_flag" || 10478 test ! -s conftest.err 10479 } && test -s conftest$ac_exeext && 10480 $as_test_x conftest$ac_exeext; then 10481 LIBINTL="$LIBINTL $LIBICONV" 10482 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 10483 gt_cv_func_gnugettext1_libintl=yes 10484 10485else 10486 echo "$as_me: failed program was:" >&5 10487sed 's/^/| /' conftest.$ac_ext >&5 10488 10489 10490fi 10491 10492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10493 conftest$ac_exeext conftest.$ac_ext 10494 fi 10495 CPPFLAGS="$gt_save_CPPFLAGS" 10496 LIBS="$gt_save_LIBS" 10497fi 10498{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 10499echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } 10500 fi 10501 10502 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 10503 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 10504 && test "$PACKAGE" != gettext-runtime \ 10505 && test "$PACKAGE" != gettext-tools; }; then 10506 gt_use_preinstalled_gnugettext=yes 10507 else 10508 LIBINTL= 10509 LTLIBINTL= 10510 INCINTL= 10511 fi 10512 10513 10514 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 10515 nls_cv_use_gnu_gettext=yes 10516 fi 10517 fi 10518 10519 if test "$nls_cv_use_gnu_gettext" = "yes"; then 10520 BUILD_INCLUDED_LIBINTL=yes 10521 USE_INCLUDED_LIBINTL=yes 10522 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 10523 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 10524 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 10525 fi 10526 10527 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 10528 || test "$nls_cv_use_gnu_gettext" = "yes"; then 10529 CATOBJEXT=.gmo 10530 fi 10531 10532 10533 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 10534 || test "$nls_cv_use_gnu_gettext" = "yes"; then 10535 10536cat >>confdefs.h <<\_ACEOF 10537#define ENABLE_NLS 1 10538_ACEOF 10539 10540 else 10541 USE_NLS=no 10542 fi 10543 fi 10544 10545 { echo "$as_me:$LINENO: checking whether to use NLS" >&5 10546echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } 10547 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 10548echo "${ECHO_T}$USE_NLS" >&6; } 10549 if test "$USE_NLS" = "yes"; then 10550 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 10551echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } 10552 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 10553 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 10554 gt_source="external libintl" 10555 else 10556 gt_source="libc" 10557 fi 10558 else 10559 gt_source="included intl directory" 10560 fi 10561 { echo "$as_me:$LINENO: result: $gt_source" >&5 10562echo "${ECHO_T}$gt_source" >&6; } 10563 fi 10564 10565 if test "$USE_NLS" = "yes"; then 10566 10567 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 10568 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 10569 { echo "$as_me:$LINENO: checking how to link with libintl" >&5 10570echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } 10571 { echo "$as_me:$LINENO: result: $LIBINTL" >&5 10572echo "${ECHO_T}$LIBINTL" >&6; } 10573 10574 for element in $INCINTL; do 10575 haveit= 10576 for x in $CPPFLAGS; do 10577 10578 acl_save_prefix="$prefix" 10579 prefix="$acl_final_prefix" 10580 acl_save_exec_prefix="$exec_prefix" 10581 exec_prefix="$acl_final_exec_prefix" 10582 eval x=\"$x\" 10583 exec_prefix="$acl_save_exec_prefix" 10584 prefix="$acl_save_prefix" 10585 10586 if test "X$x" = "X$element"; then 10587 haveit=yes 10588 break 10589 fi 10590 done 10591 if test -z "$haveit"; then 10592 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 10593 fi 10594 done 10595 10596 fi 10597 10598 10599cat >>confdefs.h <<\_ACEOF 10600#define HAVE_GETTEXT 1 10601_ACEOF 10602 10603 10604cat >>confdefs.h <<\_ACEOF 10605#define HAVE_DCGETTEXT 1 10606_ACEOF 10607 10608 fi 10609 10610 POSUB=po 10611 fi 10612 10613 10614 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 10615 BUILD_INCLUDED_LIBINTL=yes 10616 fi 10617 10618 10619 10620 10621 10622 nls_cv_header_intl= 10623 nls_cv_header_libgt= 10624 10625 DATADIRNAME=share 10626 10627 10628 INSTOBJEXT=.mo 10629 10630 10631 GENCAT=gencat 10632 10633 10634 if test "$USE_INCLUDED_LIBINTL" = yes; then 10635 INTLOBJS="\$(GETTOBJS)" 10636 fi 10637 10638 10639 INTL_LIBTOOL_SUFFIX_PREFIX= 10640 10641 10642 10643 INTLLIBS="$LIBINTL" 10644 10645 10646 10647 10648 10649 10650 10651{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 10652echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 10653set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 10654if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 10655 echo $ECHO_N "(cached) $ECHO_C" >&6 10656else 10657 cat >conftest.make <<\_ACEOF 10658SHELL = /bin/sh 10659all: 10660 @echo '@@@%%%=$(MAKE)=@@@%%%' 10661_ACEOF 10662# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 10663case `${MAKE-make} -f conftest.make 2>/dev/null` in 10664 *@@@%%%=?*=@@@%%%*) 10665 eval ac_cv_prog_make_${ac_make}_set=yes;; 10666 *) 10667 eval ac_cv_prog_make_${ac_make}_set=no;; 10668esac 10669rm -f conftest.make 10670fi 10671if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 10672 { echo "$as_me:$LINENO: result: yes" >&5 10673echo "${ECHO_T}yes" >&6; } 10674 SET_MAKE= 10675else 10676 { echo "$as_me:$LINENO: result: no" >&5 10677echo "${ECHO_T}no" >&6; } 10678 SET_MAKE="MAKE=${MAKE-make}" 10679fi 10680 10681# Extract the first word of "ln", so it can be a program name with args. 10682set dummy ln; ac_word=$2 10683{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10685if test "${ac_cv_path_LN+set}" = set; then 10686 echo $ECHO_N "(cached) $ECHO_C" >&6 10687else 10688 case $LN in 10689 [\\/]* | ?:[\\/]*) 10690 ac_cv_path_LN="$LN" # Let the user override the test with a path. 10691 ;; 10692 *) 10693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10694for as_dir in $PATH 10695do 10696 IFS=$as_save_IFS 10697 test -z "$as_dir" && as_dir=. 10698 for ac_exec_ext in '' $ac_executable_extensions; do 10699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10700 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 10701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10702 break 2 10703 fi 10704done 10705done 10706IFS=$as_save_IFS 10707 10708 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 10709 ;; 10710esac 10711fi 10712LN=$ac_cv_path_LN 10713if test -n "$LN"; then 10714 { echo "$as_me:$LINENO: result: $LN" >&5 10715echo "${ECHO_T}$LN" >&6; } 10716else 10717 { echo "$as_me:$LINENO: result: no" >&5 10718echo "${ECHO_T}no" >&6; } 10719fi 10720 10721 10722{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 10723echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 10724LN_S=$as_ln_s 10725if test "$LN_S" = "ln -s"; then 10726 { echo "$as_me:$LINENO: result: yes" >&5 10727echo "${ECHO_T}yes" >&6; } 10728else 10729 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 10730echo "${ECHO_T}no, using $LN_S" >&6; } 10731fi 10732 10733# Extract the first word of "mv", so it can be a program name with args. 10734set dummy mv; ac_word=$2 10735{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10737if test "${ac_cv_path_MV+set}" = set; then 10738 echo $ECHO_N "(cached) $ECHO_C" >&6 10739else 10740 case $MV in 10741 [\\/]* | ?:[\\/]*) 10742 ac_cv_path_MV="$MV" # Let the user override the test with a path. 10743 ;; 10744 *) 10745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10746for as_dir in $PATH 10747do 10748 IFS=$as_save_IFS 10749 test -z "$as_dir" && as_dir=. 10750 for ac_exec_ext in '' $ac_executable_extensions; do 10751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10752 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 10753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10754 break 2 10755 fi 10756done 10757done 10758IFS=$as_save_IFS 10759 10760 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 10761 ;; 10762esac 10763fi 10764MV=$ac_cv_path_MV 10765if test -n "$MV"; then 10766 { echo "$as_me:$LINENO: result: $MV" >&5 10767echo "${ECHO_T}$MV" >&6; } 10768else 10769 { echo "$as_me:$LINENO: result: no" >&5 10770echo "${ECHO_T}no" >&6; } 10771fi 10772 10773 10774# Extract the first word of "cp", so it can be a program name with args. 10775set dummy cp; ac_word=$2 10776{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10778if test "${ac_cv_path_CP+set}" = set; then 10779 echo $ECHO_N "(cached) $ECHO_C" >&6 10780else 10781 case $CP in 10782 [\\/]* | ?:[\\/]*) 10783 ac_cv_path_CP="$CP" # Let the user override the test with a path. 10784 ;; 10785 *) 10786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10787for as_dir in $PATH 10788do 10789 IFS=$as_save_IFS 10790 test -z "$as_dir" && as_dir=. 10791 for ac_exec_ext in '' $ac_executable_extensions; do 10792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10793 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 10794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10795 break 2 10796 fi 10797done 10798done 10799IFS=$as_save_IFS 10800 10801 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 10802 ;; 10803esac 10804fi 10805CP=$ac_cv_path_CP 10806if test -n "$CP"; then 10807 { echo "$as_me:$LINENO: result: $CP" >&5 10808echo "${ECHO_T}$CP" >&6; } 10809else 10810 { echo "$as_me:$LINENO: result: no" >&5 10811echo "${ECHO_T}no" >&6; } 10812fi 10813 10814 10815# Extract the first word of "rm", so it can be a program name with args. 10816set dummy rm; ac_word=$2 10817{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10819if test "${ac_cv_path_RM+set}" = set; then 10820 echo $ECHO_N "(cached) $ECHO_C" >&6 10821else 10822 case $RM in 10823 [\\/]* | ?:[\\/]*) 10824 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10825 ;; 10826 *) 10827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10828for as_dir in $PATH 10829do 10830 IFS=$as_save_IFS 10831 test -z "$as_dir" && as_dir=. 10832 for ac_exec_ext in '' $ac_executable_extensions; do 10833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10834 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10836 break 2 10837 fi 10838done 10839done 10840IFS=$as_save_IFS 10841 10842 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 10843 ;; 10844esac 10845fi 10846RM=$ac_cv_path_RM 10847if test -n "$RM"; then 10848 { echo "$as_me:$LINENO: result: $RM" >&5 10849echo "${ECHO_T}$RM" >&6; } 10850else 10851 { echo "$as_me:$LINENO: result: no" >&5 10852echo "${ECHO_T}no" >&6; } 10853fi 10854 10855 10856# Extract the first word of "chmod", so it can be a program name with args. 10857set dummy chmod; ac_word=$2 10858{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10860if test "${ac_cv_path_CHMOD+set}" = set; then 10861 echo $ECHO_N "(cached) $ECHO_C" >&6 10862else 10863 case $CHMOD in 10864 [\\/]* | ?:[\\/]*) 10865 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 10866 ;; 10867 *) 10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10869for as_dir in $PATH 10870do 10871 IFS=$as_save_IFS 10872 test -z "$as_dir" && as_dir=. 10873 for ac_exec_ext in '' $ac_executable_extensions; do 10874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10875 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 10876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10877 break 2 10878 fi 10879done 10880done 10881IFS=$as_save_IFS 10882 10883 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" 10884 ;; 10885esac 10886fi 10887CHMOD=$ac_cv_path_CHMOD 10888if test -n "$CHMOD"; then 10889 { echo "$as_me:$LINENO: result: $CHMOD" >&5 10890echo "${ECHO_T}$CHMOD" >&6; } 10891else 10892 { echo "$as_me:$LINENO: result: no" >&5 10893echo "${ECHO_T}no" >&6; } 10894fi 10895 10896 10897for ac_prog in gawk mawk nawk awk 10898do 10899 # Extract the first word of "$ac_prog", so it can be a program name with args. 10900set dummy $ac_prog; ac_word=$2 10901{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10903if test "${ac_cv_prog_AWK+set}" = set; then 10904 echo $ECHO_N "(cached) $ECHO_C" >&6 10905else 10906 if test -n "$AWK"; then 10907 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10908else 10909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10910for as_dir in $PATH 10911do 10912 IFS=$as_save_IFS 10913 test -z "$as_dir" && as_dir=. 10914 for ac_exec_ext in '' $ac_executable_extensions; do 10915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10916 ac_cv_prog_AWK="$ac_prog" 10917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10918 break 2 10919 fi 10920done 10921done 10922IFS=$as_save_IFS 10923 10924fi 10925fi 10926AWK=$ac_cv_prog_AWK 10927if test -n "$AWK"; then 10928 { echo "$as_me:$LINENO: result: $AWK" >&5 10929echo "${ECHO_T}$AWK" >&6; } 10930else 10931 { echo "$as_me:$LINENO: result: no" >&5 10932echo "${ECHO_T}no" >&6; } 10933fi 10934 10935 10936 test -n "$AWK" && break 10937done 10938 10939{ echo "$as_me:$LINENO: checking for egrep" >&5 10940echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 10941if test "${ac_cv_path_EGREP+set}" = set; then 10942 echo $ECHO_N "(cached) $ECHO_C" >&6 10943else 10944 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 10945 then ac_cv_path_EGREP="$GREP -E" 10946 else 10947 # Extract the first word of "egrep" to use in msg output 10948if test -z "$EGREP"; then 10949set dummy egrep; ac_prog_name=$2 10950if test "${ac_cv_path_EGREP+set}" = set; then 10951 echo $ECHO_N "(cached) $ECHO_C" >&6 10952else 10953 ac_path_EGREP_found=false 10954# Loop through the user's path and test for each of PROGNAME-LIST 10955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10956for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10957do 10958 IFS=$as_save_IFS 10959 test -z "$as_dir" && as_dir=. 10960 for ac_prog in egrep; do 10961 for ac_exec_ext in '' $ac_executable_extensions; do 10962 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 10963 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 10964 # Check for GNU ac_path_EGREP and select it if it is found. 10965 # Check for GNU $ac_path_EGREP 10966case `"$ac_path_EGREP" --version 2>&1` in 10967*GNU*) 10968 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 10969*) 10970 ac_count=0 10971 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 10972 while : 10973 do 10974 cat "conftest.in" "conftest.in" >"conftest.tmp" 10975 mv "conftest.tmp" "conftest.in" 10976 cp "conftest.in" "conftest.nl" 10977 echo 'EGREP' >> "conftest.nl" 10978 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 10979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10980 ac_count=`expr $ac_count + 1` 10981 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 10982 # Best one so far, save it but keep looking for a better one 10983 ac_cv_path_EGREP="$ac_path_EGREP" 10984 ac_path_EGREP_max=$ac_count 10985 fi 10986 # 10*(2^10) chars as input seems more than enough 10987 test $ac_count -gt 10 && break 10988 done 10989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10990esac 10991 10992 10993 $ac_path_EGREP_found && break 3 10994 done 10995done 10996 10997done 10998IFS=$as_save_IFS 10999 11000 11001fi 11002 11003EGREP="$ac_cv_path_EGREP" 11004if test -z "$EGREP"; then 11005 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 11006echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 11007 { (exit 1); exit 1; }; } 11008fi 11009 11010else 11011 ac_cv_path_EGREP=$EGREP 11012fi 11013 11014 11015 fi 11016fi 11017{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 11018echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 11019 EGREP="$ac_cv_path_EGREP" 11020 11021 11022# Extract the first word of "sed", so it can be a program name with args. 11023set dummy sed; ac_word=$2 11024{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11026if test "${ac_cv_path_SED+set}" = set; then 11027 echo $ECHO_N "(cached) $ECHO_C" >&6 11028else 11029 case $SED in 11030 [\\/]* | ?:[\\/]*) 11031 ac_cv_path_SED="$SED" # Let the user override the test with a path. 11032 ;; 11033 *) 11034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11035for as_dir in $PATH 11036do 11037 IFS=$as_save_IFS 11038 test -z "$as_dir" && as_dir=. 11039 for ac_exec_ext in '' $ac_executable_extensions; do 11040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11041 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 11042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11043 break 2 11044 fi 11045done 11046done 11047IFS=$as_save_IFS 11048 11049 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 11050 ;; 11051esac 11052fi 11053SED=$ac_cv_path_SED 11054if test -n "$SED"; then 11055 { echo "$as_me:$LINENO: result: $SED" >&5 11056echo "${ECHO_T}$SED" >&6; } 11057else 11058 { echo "$as_me:$LINENO: result: no" >&5 11059echo "${ECHO_T}no" >&6; } 11060fi 11061 11062 11063# Extract the first word of "perl", so it can be a program name with args. 11064set dummy perl; ac_word=$2 11065{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11067if test "${ac_cv_path_PERL+set}" = set; then 11068 echo $ECHO_N "(cached) $ECHO_C" >&6 11069else 11070 case $PERL in 11071 [\\/]* | ?:[\\/]*) 11072 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 11073 ;; 11074 *) 11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11076for as_dir in $PATH 11077do 11078 IFS=$as_save_IFS 11079 test -z "$as_dir" && as_dir=. 11080 for ac_exec_ext in '' $ac_executable_extensions; do 11081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11082 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 11083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11084 break 2 11085 fi 11086done 11087done 11088IFS=$as_save_IFS 11089 11090 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" 11091 ;; 11092esac 11093fi 11094PERL=$ac_cv_path_PERL 11095if test -n "$PERL"; then 11096 { echo "$as_me:$LINENO: result: $PERL" >&5 11097echo "${ECHO_T}$PERL" >&6; } 11098else 11099 { echo "$as_me:$LINENO: result: no" >&5 11100echo "${ECHO_T}no" >&6; } 11101fi 11102 11103 11104# Extract the first word of "ldconfig", so it can be a program name with args. 11105set dummy ldconfig; ac_word=$2 11106{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11108if test "${ac_cv_path_LDCONFIG+set}" = set; then 11109 echo $ECHO_N "(cached) $ECHO_C" >&6 11110else 11111 case $LDCONFIG in 11112 [\\/]* | ?:[\\/]*) 11113 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. 11114 ;; 11115 *) 11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11117for as_dir in $PATH 11118do 11119 IFS=$as_save_IFS 11120 test -z "$as_dir" && as_dir=. 11121 for ac_exec_ext in '' $ac_executable_extensions; do 11122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11123 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" 11124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11125 break 2 11126 fi 11127done 11128done 11129IFS=$as_save_IFS 11130 11131 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" 11132 ;; 11133esac 11134fi 11135LDCONFIG=$ac_cv_path_LDCONFIG 11136if test -n "$LDCONFIG"; then 11137 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 11138echo "${ECHO_T}$LDCONFIG" >&6; } 11139else 11140 { echo "$as_me:$LINENO: result: no" >&5 11141echo "${ECHO_T}no" >&6; } 11142fi 11143 11144 11145if test -n "$ac_tool_prefix"; then 11146 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 11147set dummy ${ac_tool_prefix}ar; ac_word=$2 11148{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11150if test "${ac_cv_prog_AR+set}" = set; then 11151 echo $ECHO_N "(cached) $ECHO_C" >&6 11152else 11153 if test -n "$AR"; then 11154 ac_cv_prog_AR="$AR" # Let the user override the test. 11155else 11156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11157for as_dir in $PATH 11158do 11159 IFS=$as_save_IFS 11160 test -z "$as_dir" && as_dir=. 11161 for ac_exec_ext in '' $ac_executable_extensions; do 11162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11163 ac_cv_prog_AR="${ac_tool_prefix}ar" 11164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11165 break 2 11166 fi 11167done 11168done 11169IFS=$as_save_IFS 11170 11171fi 11172fi 11173AR=$ac_cv_prog_AR 11174if test -n "$AR"; then 11175 { echo "$as_me:$LINENO: result: $AR" >&5 11176echo "${ECHO_T}$AR" >&6; } 11177else 11178 { echo "$as_me:$LINENO: result: no" >&5 11179echo "${ECHO_T}no" >&6; } 11180fi 11181 11182 11183fi 11184if test -z "$ac_cv_prog_AR"; then 11185 ac_ct_AR=$AR 11186 # Extract the first word of "ar", so it can be a program name with args. 11187set dummy ar; ac_word=$2 11188{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11190if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 11191 echo $ECHO_N "(cached) $ECHO_C" >&6 11192else 11193 if test -n "$ac_ct_AR"; then 11194 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 11195else 11196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11197for as_dir in $PATH 11198do 11199 IFS=$as_save_IFS 11200 test -z "$as_dir" && as_dir=. 11201 for ac_exec_ext in '' $ac_executable_extensions; do 11202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11203 ac_cv_prog_ac_ct_AR="ar" 11204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11205 break 2 11206 fi 11207done 11208done 11209IFS=$as_save_IFS 11210 11211fi 11212fi 11213ac_ct_AR=$ac_cv_prog_ac_ct_AR 11214if test -n "$ac_ct_AR"; then 11215 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 11216echo "${ECHO_T}$ac_ct_AR" >&6; } 11217else 11218 { echo "$as_me:$LINENO: result: no" >&5 11219echo "${ECHO_T}no" >&6; } 11220fi 11221 11222 if test "x$ac_ct_AR" = x; then 11223 AR="ar" 11224 else 11225 case $cross_compiling:$ac_tool_warned in 11226yes:) 11227{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11228whose name does not start with the host triplet. If you think this 11229configuration is useful to you, please write to autoconf@gnu.org." >&5 11230echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11231whose name does not start with the host triplet. If you think this 11232configuration is useful to you, please write to autoconf@gnu.org." >&2;} 11233ac_tool_warned=yes ;; 11234esac 11235 AR=$ac_ct_AR 11236 fi 11237else 11238 AR="$ac_cv_prog_AR" 11239fi 11240 11241if test -n "$ac_tool_prefix"; then 11242 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 11243set dummy ${ac_tool_prefix}ranlib; ac_word=$2 11244{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11246if test "${ac_cv_prog_RANLIB+set}" = set; then 11247 echo $ECHO_N "(cached) $ECHO_C" >&6 11248else 11249 if test -n "$RANLIB"; then 11250 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 11251else 11252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11253for as_dir in $PATH 11254do 11255 IFS=$as_save_IFS 11256 test -z "$as_dir" && as_dir=. 11257 for ac_exec_ext in '' $ac_executable_extensions; do 11258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11259 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 11260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11261 break 2 11262 fi 11263done 11264done 11265IFS=$as_save_IFS 11266 11267fi 11268fi 11269RANLIB=$ac_cv_prog_RANLIB 11270if test -n "$RANLIB"; then 11271 { echo "$as_me:$LINENO: result: $RANLIB" >&5 11272echo "${ECHO_T}$RANLIB" >&6; } 11273else 11274 { echo "$as_me:$LINENO: result: no" >&5 11275echo "${ECHO_T}no" >&6; } 11276fi 11277 11278 11279fi 11280if test -z "$ac_cv_prog_RANLIB"; then 11281 ac_ct_RANLIB=$RANLIB 11282 # Extract the first word of "ranlib", so it can be a program name with args. 11283set dummy ranlib; ac_word=$2 11284{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11286if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 11287 echo $ECHO_N "(cached) $ECHO_C" >&6 11288else 11289 if test -n "$ac_ct_RANLIB"; then 11290 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 11291else 11292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11293for as_dir in $PATH 11294do 11295 IFS=$as_save_IFS 11296 test -z "$as_dir" && as_dir=. 11297 for ac_exec_ext in '' $ac_executable_extensions; do 11298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11299 ac_cv_prog_ac_ct_RANLIB="ranlib" 11300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11301 break 2 11302 fi 11303done 11304done 11305IFS=$as_save_IFS 11306 11307fi 11308fi 11309ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 11310if test -n "$ac_ct_RANLIB"; then 11311 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 11312echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 11313else 11314 { echo "$as_me:$LINENO: result: no" >&5 11315echo "${ECHO_T}no" >&6; } 11316fi 11317 11318 if test "x$ac_ct_RANLIB" = x; then 11319 RANLIB=":" 11320 else 11321 case $cross_compiling:$ac_tool_warned in 11322yes:) 11323{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11324whose name does not start with the host triplet. If you think this 11325configuration is useful to you, please write to autoconf@gnu.org." >&5 11326echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11327whose name does not start with the host triplet. If you think this 11328configuration is useful to you, please write to autoconf@gnu.org." >&2;} 11329ac_tool_warned=yes ;; 11330esac 11331 RANLIB=$ac_ct_RANLIB 11332 fi 11333else 11334 RANLIB="$ac_cv_prog_RANLIB" 11335fi 11336 11337if test -n "$ac_tool_prefix"; then 11338 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 11339set dummy ${ac_tool_prefix}strip; ac_word=$2 11340{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11342if test "${ac_cv_prog_STRIP+set}" = set; then 11343 echo $ECHO_N "(cached) $ECHO_C" >&6 11344else 11345 if test -n "$STRIP"; then 11346 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 11347else 11348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11349for as_dir in $PATH 11350do 11351 IFS=$as_save_IFS 11352 test -z "$as_dir" && as_dir=. 11353 for ac_exec_ext in '' $ac_executable_extensions; do 11354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11355 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 11356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11357 break 2 11358 fi 11359done 11360done 11361IFS=$as_save_IFS 11362 11363fi 11364fi 11365STRIP=$ac_cv_prog_STRIP 11366if test -n "$STRIP"; then 11367 { echo "$as_me:$LINENO: result: $STRIP" >&5 11368echo "${ECHO_T}$STRIP" >&6; } 11369else 11370 { echo "$as_me:$LINENO: result: no" >&5 11371echo "${ECHO_T}no" >&6; } 11372fi 11373 11374 11375fi 11376if test -z "$ac_cv_prog_STRIP"; then 11377 ac_ct_STRIP=$STRIP 11378 # Extract the first word of "strip", so it can be a program name with args. 11379set dummy strip; ac_word=$2 11380{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11382if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 11383 echo $ECHO_N "(cached) $ECHO_C" >&6 11384else 11385 if test -n "$ac_ct_STRIP"; then 11386 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 11387else 11388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11389for as_dir in $PATH 11390do 11391 IFS=$as_save_IFS 11392 test -z "$as_dir" && as_dir=. 11393 for ac_exec_ext in '' $ac_executable_extensions; do 11394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11395 ac_cv_prog_ac_ct_STRIP="strip" 11396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11397 break 2 11398 fi 11399done 11400done 11401IFS=$as_save_IFS 11402 11403fi 11404fi 11405ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 11406if test -n "$ac_ct_STRIP"; then 11407 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 11408echo "${ECHO_T}$ac_ct_STRIP" >&6; } 11409else 11410 { echo "$as_me:$LINENO: result: no" >&5 11411echo "${ECHO_T}no" >&6; } 11412fi 11413 11414 if test "x$ac_ct_STRIP" = x; then 11415 STRIP=":" 11416 else 11417 case $cross_compiling:$ac_tool_warned in 11418yes:) 11419{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11420whose name does not start with the host triplet. If you think this 11421configuration is useful to you, please write to autoconf@gnu.org." >&5 11422echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11423whose name does not start with the host triplet. If you think this 11424configuration is useful to you, please write to autoconf@gnu.org." >&2;} 11425ac_tool_warned=yes ;; 11426esac 11427 STRIP=$ac_ct_STRIP 11428 fi 11429else 11430 STRIP="$ac_cv_prog_STRIP" 11431fi 11432 11433# Extract the first word of "makeinfo", so it can be a program name with args. 11434set dummy makeinfo; ac_word=$2 11435{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11437if test "${ac_cv_prog_MAKEINFO+set}" = set; then 11438 echo $ECHO_N "(cached) $ECHO_C" >&6 11439else 11440 if test -n "$MAKEINFO"; then 11441 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 11442else 11443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11444for as_dir in $PATH 11445do 11446 IFS=$as_save_IFS 11447 test -z "$as_dir" && as_dir=. 11448 for ac_exec_ext in '' $ac_executable_extensions; do 11449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11450 ac_cv_prog_MAKEINFO="makeinfo" 11451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11452 break 2 11453 fi 11454done 11455done 11456IFS=$as_save_IFS 11457 11458fi 11459fi 11460MAKEINFO=$ac_cv_prog_MAKEINFO 11461if test -n "$MAKEINFO"; then 11462 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5 11463echo "${ECHO_T}$MAKEINFO" >&6; } 11464else 11465 { echo "$as_me:$LINENO: result: no" >&5 11466echo "${ECHO_T}no" >&6; } 11467fi 11468 11469 11470if test "_$MAKEINFO" = "_"; then 11471 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" 11472else 11473 case "$MAKEINFO" in 11474 */missing.*) 11475 { echo "$as_me:$LINENO: WARNING: 11476*** Makeinfo is missing. Info documentation will not be built." >&5 11477echo "$as_me: WARNING: 11478*** Makeinfo is missing. Info documentation will not be built." >&2;} 11479 ;; 11480 *) 11481 ;; 11482 esac 11483fi 11484 11485# Find a good install program. We prefer a C program (faster), 11486# so one script is as good as another. But avoid the broken or 11487# incompatible versions: 11488# SysV /etc/install, /usr/sbin/install 11489# SunOS /usr/etc/install 11490# IRIX /sbin/install 11491# AIX /bin/install 11492# AmigaOS /C/install, which installs bootblocks on floppy discs 11493# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 11494# AFS /usr/afsws/bin/install, which mishandles nonexistent args 11495# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 11496# OS/2's system install, which has a completely different semantic 11497# ./install, which can be erroneously created by make from ./install.sh. 11498{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 11499echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 11500if test -z "$INSTALL"; then 11501if test "${ac_cv_path_install+set}" = set; then 11502 echo $ECHO_N "(cached) $ECHO_C" >&6 11503else 11504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11505for as_dir in $PATH 11506do 11507 IFS=$as_save_IFS 11508 test -z "$as_dir" && as_dir=. 11509 # Account for people who put trailing slashes in PATH elements. 11510case $as_dir/ in 11511 ./ | .// | /cC/* | \ 11512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 11513 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 11514 /usr/ucb/* ) ;; 11515 *) 11516 # OSF1 and SCO ODT 3.0 have their own names for install. 11517 # Don't use installbsd from OSF since it installs stuff as root 11518 # by default. 11519 for ac_prog in ginstall scoinst install; do 11520 for ac_exec_ext in '' $ac_executable_extensions; do 11521 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 11522 if test $ac_prog = install && 11523 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11524 # AIX install. It has an incompatible calling convention. 11525 : 11526 elif test $ac_prog = install && 11527 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11528 # program-specific install script used by HP pwplus--don't use. 11529 : 11530 else 11531 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 11532 break 3 11533 fi 11534 fi 11535 done 11536 done 11537 ;; 11538esac 11539done 11540IFS=$as_save_IFS 11541 11542 11543fi 11544 if test "${ac_cv_path_install+set}" = set; then 11545 INSTALL=$ac_cv_path_install 11546 else 11547 # As a last resort, use the slow shell script. Don't cache a 11548 # value for INSTALL within a source directory, because that will 11549 # break other packages using the cache if that directory is 11550 # removed, or if the value is a relative name. 11551 INSTALL=$ac_install_sh 11552 fi 11553fi 11554{ echo "$as_me:$LINENO: result: $INSTALL" >&5 11555echo "${ECHO_T}$INSTALL" >&6; } 11556 11557# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 11558# It thinks the first close brace ends the variable substitution. 11559test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 11560 11561test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 11562 11563test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 11564 11565# See if we need a separate native compiler. 11566if test $cross_compiling = no; then 11567 BUILD_CC="$CC" 11568 11569else 11570 for ac_prog in gcc cc 11571do 11572 # Extract the first word of "$ac_prog", so it can be a program name with args. 11573set dummy $ac_prog; ac_word=$2 11574{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11576if test "${ac_cv_prog_BUILD_CC+set}" = set; then 11577 echo $ECHO_N "(cached) $ECHO_C" >&6 11578else 11579 if test -n "$BUILD_CC"; then 11580 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 11581else 11582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11583for as_dir in $PATH 11584do 11585 IFS=$as_save_IFS 11586 test -z "$as_dir" && as_dir=. 11587 for ac_exec_ext in '' $ac_executable_extensions; do 11588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11589 ac_cv_prog_BUILD_CC="$ac_prog" 11590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11591 break 2 11592 fi 11593done 11594done 11595IFS=$as_save_IFS 11596 11597fi 11598fi 11599BUILD_CC=$ac_cv_prog_BUILD_CC 11600if test -n "$BUILD_CC"; then 11601 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 11602echo "${ECHO_T}$BUILD_CC" >&6; } 11603else 11604 { echo "$as_me:$LINENO: result: no" >&5 11605echo "${ECHO_T}no" >&6; } 11606fi 11607 11608 11609 test -n "$BUILD_CC" && break 11610done 11611 11612fi 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h 11652do 11653as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11655 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11658 echo $ECHO_N "(cached) $ECHO_C" >&6 11659fi 11660ac_res=`eval echo '${'$as_ac_Header'}'` 11661 { echo "$as_me:$LINENO: result: $ac_res" >&5 11662echo "${ECHO_T}$ac_res" >&6; } 11663else 11664 # Is the header compilable? 11665{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11667cat >conftest.$ac_ext <<_ACEOF 11668/* confdefs.h. */ 11669_ACEOF 11670cat confdefs.h >>conftest.$ac_ext 11671cat >>conftest.$ac_ext <<_ACEOF 11672/* end confdefs.h. */ 11673$ac_includes_default 11674#include <$ac_header> 11675_ACEOF 11676rm -f conftest.$ac_objext 11677if { (ac_try="$ac_compile" 11678case "(($ac_try" in 11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11680 *) ac_try_echo=$ac_try;; 11681esac 11682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11683 (eval "$ac_compile") 2>conftest.er1 11684 ac_status=$? 11685 grep -v '^ *+' conftest.er1 >conftest.err 11686 rm -f conftest.er1 11687 cat conftest.err >&5 11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11689 (exit $ac_status); } && { 11690 test -z "$ac_c_werror_flag" || 11691 test ! -s conftest.err 11692 } && test -s conftest.$ac_objext; then 11693 ac_header_compiler=yes 11694else 11695 echo "$as_me: failed program was:" >&5 11696sed 's/^/| /' conftest.$ac_ext >&5 11697 11698 ac_header_compiler=no 11699fi 11700 11701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11702{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11703echo "${ECHO_T}$ac_header_compiler" >&6; } 11704 11705# Is the header present? 11706{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11707echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11708cat >conftest.$ac_ext <<_ACEOF 11709/* confdefs.h. */ 11710_ACEOF 11711cat confdefs.h >>conftest.$ac_ext 11712cat >>conftest.$ac_ext <<_ACEOF 11713/* end confdefs.h. */ 11714#include <$ac_header> 11715_ACEOF 11716if { (ac_try="$ac_cpp conftest.$ac_ext" 11717case "(($ac_try" in 11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11719 *) ac_try_echo=$ac_try;; 11720esac 11721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11723 ac_status=$? 11724 grep -v '^ *+' conftest.er1 >conftest.err 11725 rm -f conftest.er1 11726 cat conftest.err >&5 11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11728 (exit $ac_status); } >/dev/null && { 11729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11730 test ! -s conftest.err 11731 }; then 11732 ac_header_preproc=yes 11733else 11734 echo "$as_me: failed program was:" >&5 11735sed 's/^/| /' conftest.$ac_ext >&5 11736 11737 ac_header_preproc=no 11738fi 11739 11740rm -f conftest.err conftest.$ac_ext 11741{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11742echo "${ECHO_T}$ac_header_preproc" >&6; } 11743 11744# So? What about this header? 11745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11746 yes:no: ) 11747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11751 ac_header_preproc=yes 11752 ;; 11753 no:yes:* ) 11754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11757echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11761echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11766 11767 ;; 11768esac 11769{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11772 echo $ECHO_N "(cached) $ECHO_C" >&6 11773else 11774 eval "$as_ac_Header=\$ac_header_preproc" 11775fi 11776ac_res=`eval echo '${'$as_ac_Header'}'` 11777 { echo "$as_me:$LINENO: result: $ac_res" >&5 11778echo "${ECHO_T}$ac_res" >&6; } 11779 11780fi 11781if test `eval echo '${'$as_ac_Header'}'` = yes; then 11782 cat >>confdefs.h <<_ACEOF 11783#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11784_ACEOF 11785 11786fi 11787 11788done 11789 11790 11791 11792for ac_header in sys/disk.h sys/mount.h 11793do 11794as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11795{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11798 echo $ECHO_N "(cached) $ECHO_C" >&6 11799else 11800 cat >conftest.$ac_ext <<_ACEOF 11801/* confdefs.h. */ 11802_ACEOF 11803cat confdefs.h >>conftest.$ac_ext 11804cat >>conftest.$ac_ext <<_ACEOF 11805/* end confdefs.h. */ 11806 11807#if HAVE_SYS_QUEUE_H 11808#include <sys/queue.h> 11809#endif 11810 11811 11812#include <$ac_header> 11813_ACEOF 11814rm -f conftest.$ac_objext 11815if { (ac_try="$ac_compile" 11816case "(($ac_try" in 11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11818 *) ac_try_echo=$ac_try;; 11819esac 11820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11821 (eval "$ac_compile") 2>conftest.er1 11822 ac_status=$? 11823 grep -v '^ *+' conftest.er1 >conftest.err 11824 rm -f conftest.er1 11825 cat conftest.err >&5 11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11827 (exit $ac_status); } && { 11828 test -z "$ac_c_werror_flag" || 11829 test ! -s conftest.err 11830 } && test -s conftest.$ac_objext; then 11831 eval "$as_ac_Header=yes" 11832else 11833 echo "$as_me: failed program was:" >&5 11834sed 's/^/| /' conftest.$ac_ext >&5 11835 11836 eval "$as_ac_Header=no" 11837fi 11838 11839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11840fi 11841ac_res=`eval echo '${'$as_ac_Header'}'` 11842 { echo "$as_me:$LINENO: result: $ac_res" >&5 11843echo "${ECHO_T}$ac_res" >&6; } 11844if test `eval echo '${'$as_ac_Header'}'` = yes; then 11845 cat >>confdefs.h <<_ACEOF 11846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11847_ACEOF 11848 11849fi 11850 11851done 11852 11853 11854for ac_header in net/if.h 11855do 11856as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11857{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11860 echo $ECHO_N "(cached) $ECHO_C" >&6 11861else 11862 cat >conftest.$ac_ext <<_ACEOF 11863/* confdefs.h. */ 11864_ACEOF 11865cat confdefs.h >>conftest.$ac_ext 11866cat >>conftest.$ac_ext <<_ACEOF 11867/* end confdefs.h. */ 11868 11869#if HAVE_SYS_TYPES_H 11870#include <sys/types.h> 11871#endif 11872#if HAVE_SYS_SOCKET 11873#include <sys/socket.h> 11874#endif 11875 11876 11877#include <$ac_header> 11878_ACEOF 11879rm -f conftest.$ac_objext 11880if { (ac_try="$ac_compile" 11881case "(($ac_try" in 11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11883 *) ac_try_echo=$ac_try;; 11884esac 11885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11886 (eval "$ac_compile") 2>conftest.er1 11887 ac_status=$? 11888 grep -v '^ *+' conftest.er1 >conftest.err 11889 rm -f conftest.er1 11890 cat conftest.err >&5 11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11892 (exit $ac_status); } && { 11893 test -z "$ac_c_werror_flag" || 11894 test ! -s conftest.err 11895 } && test -s conftest.$ac_objext; then 11896 eval "$as_ac_Header=yes" 11897else 11898 echo "$as_me: failed program was:" >&5 11899sed 's/^/| /' conftest.$ac_ext >&5 11900 11901 eval "$as_ac_Header=no" 11902fi 11903 11904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11905fi 11906ac_res=`eval echo '${'$as_ac_Header'}'` 11907 { echo "$as_me:$LINENO: result: $ac_res" >&5 11908echo "${ECHO_T}$ac_res" >&6; } 11909if test `eval echo '${'$as_ac_Header'}'` = yes; then 11910 cat >>confdefs.h <<_ACEOF 11911#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11912_ACEOF 11913 11914fi 11915 11916done 11917 11918 11919for ac_func in vprintf 11920do 11921as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11922{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11923echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11924if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11925 echo $ECHO_N "(cached) $ECHO_C" >&6 11926else 11927 cat >conftest.$ac_ext <<_ACEOF 11928/* confdefs.h. */ 11929_ACEOF 11930cat confdefs.h >>conftest.$ac_ext 11931cat >>conftest.$ac_ext <<_ACEOF 11932/* end confdefs.h. */ 11933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11934 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11935#define $ac_func innocuous_$ac_func 11936 11937/* System header to define __stub macros and hopefully few prototypes, 11938 which can conflict with char $ac_func (); below. 11939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11940 <limits.h> exists even on freestanding compilers. */ 11941 11942#ifdef __STDC__ 11943# include <limits.h> 11944#else 11945# include <assert.h> 11946#endif 11947 11948#undef $ac_func 11949 11950/* Override any GCC internal prototype to avoid an error. 11951 Use char because int might match the return type of a GCC 11952 builtin and then its argument prototype would still apply. */ 11953#ifdef __cplusplus 11954extern "C" 11955#endif 11956char $ac_func (); 11957/* The GNU C library defines this for functions which it implements 11958 to always fail with ENOSYS. Some functions are actually named 11959 something starting with __ and the normal name is an alias. */ 11960#if defined __stub_$ac_func || defined __stub___$ac_func 11961choke me 11962#endif 11963 11964int 11965main () 11966{ 11967return $ac_func (); 11968 ; 11969 return 0; 11970} 11971_ACEOF 11972rm -f conftest.$ac_objext conftest$ac_exeext 11973if { (ac_try="$ac_link" 11974case "(($ac_try" in 11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11976 *) ac_try_echo=$ac_try;; 11977esac 11978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11979 (eval "$ac_link") 2>conftest.er1 11980 ac_status=$? 11981 grep -v '^ *+' conftest.er1 >conftest.err 11982 rm -f conftest.er1 11983 cat conftest.err >&5 11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11985 (exit $ac_status); } && { 11986 test -z "$ac_c_werror_flag" || 11987 test ! -s conftest.err 11988 } && test -s conftest$ac_exeext && 11989 $as_test_x conftest$ac_exeext; then 11990 eval "$as_ac_var=yes" 11991else 11992 echo "$as_me: failed program was:" >&5 11993sed 's/^/| /' conftest.$ac_ext >&5 11994 11995 eval "$as_ac_var=no" 11996fi 11997 11998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11999 conftest$ac_exeext conftest.$ac_ext 12000fi 12001ac_res=`eval echo '${'$as_ac_var'}'` 12002 { echo "$as_me:$LINENO: result: $ac_res" >&5 12003echo "${ECHO_T}$ac_res" >&6; } 12004if test `eval echo '${'$as_ac_var'}'` = yes; then 12005 cat >>confdefs.h <<_ACEOF 12006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12007_ACEOF 12008 12009{ echo "$as_me:$LINENO: checking for _doprnt" >&5 12010echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } 12011if test "${ac_cv_func__doprnt+set}" = set; then 12012 echo $ECHO_N "(cached) $ECHO_C" >&6 12013else 12014 cat >conftest.$ac_ext <<_ACEOF 12015/* confdefs.h. */ 12016_ACEOF 12017cat confdefs.h >>conftest.$ac_ext 12018cat >>conftest.$ac_ext <<_ACEOF 12019/* end confdefs.h. */ 12020/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 12021 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12022#define _doprnt innocuous__doprnt 12023 12024/* System header to define __stub macros and hopefully few prototypes, 12025 which can conflict with char _doprnt (); below. 12026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12027 <limits.h> exists even on freestanding compilers. */ 12028 12029#ifdef __STDC__ 12030# include <limits.h> 12031#else 12032# include <assert.h> 12033#endif 12034 12035#undef _doprnt 12036 12037/* Override any GCC internal prototype to avoid an error. 12038 Use char because int might match the return type of a GCC 12039 builtin and then its argument prototype would still apply. */ 12040#ifdef __cplusplus 12041extern "C" 12042#endif 12043char _doprnt (); 12044/* The GNU C library defines this for functions which it implements 12045 to always fail with ENOSYS. Some functions are actually named 12046 something starting with __ and the normal name is an alias. */ 12047#if defined __stub__doprnt || defined __stub____doprnt 12048choke me 12049#endif 12050 12051int 12052main () 12053{ 12054return _doprnt (); 12055 ; 12056 return 0; 12057} 12058_ACEOF 12059rm -f conftest.$ac_objext conftest$ac_exeext 12060if { (ac_try="$ac_link" 12061case "(($ac_try" in 12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12063 *) ac_try_echo=$ac_try;; 12064esac 12065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12066 (eval "$ac_link") 2>conftest.er1 12067 ac_status=$? 12068 grep -v '^ *+' conftest.er1 >conftest.err 12069 rm -f conftest.er1 12070 cat conftest.err >&5 12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12072 (exit $ac_status); } && { 12073 test -z "$ac_c_werror_flag" || 12074 test ! -s conftest.err 12075 } && test -s conftest$ac_exeext && 12076 $as_test_x conftest$ac_exeext; then 12077 ac_cv_func__doprnt=yes 12078else 12079 echo "$as_me: failed program was:" >&5 12080sed 's/^/| /' conftest.$ac_ext >&5 12081 12082 ac_cv_func__doprnt=no 12083fi 12084 12085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12086 conftest$ac_exeext conftest.$ac_ext 12087fi 12088{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 12089echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } 12090if test $ac_cv_func__doprnt = yes; then 12091 12092cat >>confdefs.h <<\_ACEOF 12093#define HAVE_DOPRNT 1 12094_ACEOF 12095 12096fi 12097 12098fi 12099done 12100 12101 12102{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 12103echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; } 12104if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then 12105 echo $ECHO_N "(cached) $ECHO_C" >&6 12106else 12107 cat >conftest.$ac_ext <<_ACEOF 12108/* confdefs.h. */ 12109_ACEOF 12110cat confdefs.h >>conftest.$ac_ext 12111cat >>conftest.$ac_ext <<_ACEOF 12112/* end confdefs.h. */ 12113#include <dirent.h> 12114 12115int 12116main () 12117{ 12118static struct dirent ac_aggr; 12119if (ac_aggr.d_reclen) 12120return 0; 12121 ; 12122 return 0; 12123} 12124_ACEOF 12125rm -f conftest.$ac_objext 12126if { (ac_try="$ac_compile" 12127case "(($ac_try" in 12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12129 *) ac_try_echo=$ac_try;; 12130esac 12131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12132 (eval "$ac_compile") 2>conftest.er1 12133 ac_status=$? 12134 grep -v '^ *+' conftest.er1 >conftest.err 12135 rm -f conftest.er1 12136 cat conftest.err >&5 12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12138 (exit $ac_status); } && { 12139 test -z "$ac_c_werror_flag" || 12140 test ! -s conftest.err 12141 } && test -s conftest.$ac_objext; then 12142 ac_cv_member_struct_dirent_d_reclen=yes 12143else 12144 echo "$as_me: failed program was:" >&5 12145sed 's/^/| /' conftest.$ac_ext >&5 12146 12147 cat >conftest.$ac_ext <<_ACEOF 12148/* confdefs.h. */ 12149_ACEOF 12150cat confdefs.h >>conftest.$ac_ext 12151cat >>conftest.$ac_ext <<_ACEOF 12152/* end confdefs.h. */ 12153#include <dirent.h> 12154 12155int 12156main () 12157{ 12158static struct dirent ac_aggr; 12159if (sizeof ac_aggr.d_reclen) 12160return 0; 12161 ; 12162 return 0; 12163} 12164_ACEOF 12165rm -f conftest.$ac_objext 12166if { (ac_try="$ac_compile" 12167case "(($ac_try" in 12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12169 *) ac_try_echo=$ac_try;; 12170esac 12171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12172 (eval "$ac_compile") 2>conftest.er1 12173 ac_status=$? 12174 grep -v '^ *+' conftest.er1 >conftest.err 12175 rm -f conftest.er1 12176 cat conftest.err >&5 12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12178 (exit $ac_status); } && { 12179 test -z "$ac_c_werror_flag" || 12180 test ! -s conftest.err 12181 } && test -s conftest.$ac_objext; then 12182 ac_cv_member_struct_dirent_d_reclen=yes 12183else 12184 echo "$as_me: failed program was:" >&5 12185sed 's/^/| /' conftest.$ac_ext >&5 12186 12187 ac_cv_member_struct_dirent_d_reclen=no 12188fi 12189 12190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12191fi 12192 12193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12194fi 12195{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 12196echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; } 12197if test $ac_cv_member_struct_dirent_d_reclen = yes; then 12198 cat >>confdefs.h <<\_ACEOF 12199#define HAVE_RECLEN_DIRENT 1 12200_ACEOF 12201 12202fi 12203 12204{ echo "$as_me:$LINENO: checking for ssize_t" >&5 12205echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } 12206if test "${ac_cv_type_ssize_t+set}" = set; then 12207 echo $ECHO_N "(cached) $ECHO_C" >&6 12208else 12209 cat >conftest.$ac_ext <<_ACEOF 12210/* confdefs.h. */ 12211_ACEOF 12212cat confdefs.h >>conftest.$ac_ext 12213cat >>conftest.$ac_ext <<_ACEOF 12214/* end confdefs.h. */ 12215#include <sys/types.h> 12216 12217typedef ssize_t ac__type_new_; 12218int 12219main () 12220{ 12221if ((ac__type_new_ *) 0) 12222 return 0; 12223if (sizeof (ac__type_new_)) 12224 return 0; 12225 ; 12226 return 0; 12227} 12228_ACEOF 12229rm -f conftest.$ac_objext 12230if { (ac_try="$ac_compile" 12231case "(($ac_try" in 12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12233 *) ac_try_echo=$ac_try;; 12234esac 12235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12236 (eval "$ac_compile") 2>conftest.er1 12237 ac_status=$? 12238 grep -v '^ *+' conftest.er1 >conftest.err 12239 rm -f conftest.er1 12240 cat conftest.err >&5 12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12242 (exit $ac_status); } && { 12243 test -z "$ac_c_werror_flag" || 12244 test ! -s conftest.err 12245 } && test -s conftest.$ac_objext; then 12246 ac_cv_type_ssize_t=yes 12247else 12248 echo "$as_me: failed program was:" >&5 12249sed 's/^/| /' conftest.$ac_ext >&5 12250 12251 ac_cv_type_ssize_t=no 12252fi 12253 12254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12255fi 12256{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 12257echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } 12258if test $ac_cv_type_ssize_t = yes; then 12259 cat >>confdefs.h <<\_ACEOF 12260#define HAVE_TYPE_SSIZE_T 1 12261_ACEOF 12262 12263fi 12264 12265{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5 12266echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; } 12267if test "${ac_cv_have_decl_llseek+set}" = set; then 12268 echo $ECHO_N "(cached) $ECHO_C" >&6 12269else 12270 cat >conftest.$ac_ext <<_ACEOF 12271/* confdefs.h. */ 12272_ACEOF 12273cat confdefs.h >>conftest.$ac_ext 12274cat >>conftest.$ac_ext <<_ACEOF 12275/* end confdefs.h. */ 12276#include <unistd.h> 12277 12278int 12279main () 12280{ 12281#ifndef llseek 12282 (void) llseek; 12283#endif 12284 12285 ; 12286 return 0; 12287} 12288_ACEOF 12289rm -f conftest.$ac_objext 12290if { (ac_try="$ac_compile" 12291case "(($ac_try" in 12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12293 *) ac_try_echo=$ac_try;; 12294esac 12295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12296 (eval "$ac_compile") 2>conftest.er1 12297 ac_status=$? 12298 grep -v '^ *+' conftest.er1 >conftest.err 12299 rm -f conftest.er1 12300 cat conftest.err >&5 12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12302 (exit $ac_status); } && { 12303 test -z "$ac_c_werror_flag" || 12304 test ! -s conftest.err 12305 } && test -s conftest.$ac_objext; then 12306 ac_cv_have_decl_llseek=yes 12307else 12308 echo "$as_me: failed program was:" >&5 12309sed 's/^/| /' conftest.$ac_ext >&5 12310 12311 ac_cv_have_decl_llseek=no 12312fi 12313 12314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12315fi 12316{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 12317echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; } 12318if test $ac_cv_have_decl_llseek = yes; then 12319 cat >>confdefs.h <<\_ACEOF 12320#define HAVE_LLSEEK_PROTOTYPE 1 12321_ACEOF 12322 12323fi 12324 12325{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 12326echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; } 12327if test "${ac_cv_have_decl_lseek64+set}" = set; then 12328 echo $ECHO_N "(cached) $ECHO_C" >&6 12329else 12330 cat >conftest.$ac_ext <<_ACEOF 12331/* confdefs.h. */ 12332_ACEOF 12333cat confdefs.h >>conftest.$ac_ext 12334cat >>conftest.$ac_ext <<_ACEOF 12335/* end confdefs.h. */ 12336#define _LARGEFILE_SOURCE 12337 #define _LARGEFILE64_SOURCE 12338 #include <unistd.h> 12339 12340int 12341main () 12342{ 12343#ifndef lseek64 12344 (void) lseek64; 12345#endif 12346 12347 ; 12348 return 0; 12349} 12350_ACEOF 12351rm -f conftest.$ac_objext 12352if { (ac_try="$ac_compile" 12353case "(($ac_try" in 12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12355 *) ac_try_echo=$ac_try;; 12356esac 12357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12358 (eval "$ac_compile") 2>conftest.er1 12359 ac_status=$? 12360 grep -v '^ *+' conftest.er1 >conftest.err 12361 rm -f conftest.er1 12362 cat conftest.err >&5 12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12364 (exit $ac_status); } && { 12365 test -z "$ac_c_werror_flag" || 12366 test ! -s conftest.err 12367 } && test -s conftest.$ac_objext; then 12368 ac_cv_have_decl_lseek64=yes 12369else 12370 echo "$as_me: failed program was:" >&5 12371sed 's/^/| /' conftest.$ac_ext >&5 12372 12373 ac_cv_have_decl_lseek64=no 12374fi 12375 12376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12377fi 12378{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 12379echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; } 12380if test $ac_cv_have_decl_lseek64 = yes; then 12381 cat >>confdefs.h <<\_ACEOF 12382#define HAVE_LSEEK64_PROTOTYPE 1 12383_ACEOF 12384 12385fi 12386 12387{ echo "$as_me:$LINENO: checking for short" >&5 12388echo $ECHO_N "checking for short... $ECHO_C" >&6; } 12389if test "${ac_cv_type_short+set}" = set; then 12390 echo $ECHO_N "(cached) $ECHO_C" >&6 12391else 12392 cat >conftest.$ac_ext <<_ACEOF 12393/* confdefs.h. */ 12394_ACEOF 12395cat confdefs.h >>conftest.$ac_ext 12396cat >>conftest.$ac_ext <<_ACEOF 12397/* end confdefs.h. */ 12398$ac_includes_default 12399typedef short ac__type_new_; 12400int 12401main () 12402{ 12403if ((ac__type_new_ *) 0) 12404 return 0; 12405if (sizeof (ac__type_new_)) 12406 return 0; 12407 ; 12408 return 0; 12409} 12410_ACEOF 12411rm -f conftest.$ac_objext 12412if { (ac_try="$ac_compile" 12413case "(($ac_try" in 12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12415 *) ac_try_echo=$ac_try;; 12416esac 12417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12418 (eval "$ac_compile") 2>conftest.er1 12419 ac_status=$? 12420 grep -v '^ *+' conftest.er1 >conftest.err 12421 rm -f conftest.er1 12422 cat conftest.err >&5 12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12424 (exit $ac_status); } && { 12425 test -z "$ac_c_werror_flag" || 12426 test ! -s conftest.err 12427 } && test -s conftest.$ac_objext; then 12428 ac_cv_type_short=yes 12429else 12430 echo "$as_me: failed program was:" >&5 12431sed 's/^/| /' conftest.$ac_ext >&5 12432 12433 ac_cv_type_short=no 12434fi 12435 12436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12437fi 12438{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 12439echo "${ECHO_T}$ac_cv_type_short" >&6; } 12440 12441# The cast to long int works around a bug in the HP C Compiler 12442# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12443# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12444# This bug is HP SR number 8606223364. 12445{ echo "$as_me:$LINENO: checking size of short" >&5 12446echo $ECHO_N "checking size of short... $ECHO_C" >&6; } 12447if test "${ac_cv_sizeof_short+set}" = set; then 12448 echo $ECHO_N "(cached) $ECHO_C" >&6 12449else 12450 if test "$cross_compiling" = yes; then 12451 # Depending upon the size, compute the lo and hi bounds. 12452cat >conftest.$ac_ext <<_ACEOF 12453/* confdefs.h. */ 12454_ACEOF 12455cat confdefs.h >>conftest.$ac_ext 12456cat >>conftest.$ac_ext <<_ACEOF 12457/* end confdefs.h. */ 12458$ac_includes_default 12459 typedef short ac__type_sizeof_; 12460int 12461main () 12462{ 12463static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 12464test_array [0] = 0 12465 12466 ; 12467 return 0; 12468} 12469_ACEOF 12470rm -f conftest.$ac_objext 12471if { (ac_try="$ac_compile" 12472case "(($ac_try" in 12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12474 *) ac_try_echo=$ac_try;; 12475esac 12476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12477 (eval "$ac_compile") 2>conftest.er1 12478 ac_status=$? 12479 grep -v '^ *+' conftest.er1 >conftest.err 12480 rm -f conftest.er1 12481 cat conftest.err >&5 12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12483 (exit $ac_status); } && { 12484 test -z "$ac_c_werror_flag" || 12485 test ! -s conftest.err 12486 } && test -s conftest.$ac_objext; then 12487 ac_lo=0 ac_mid=0 12488 while :; do 12489 cat >conftest.$ac_ext <<_ACEOF 12490/* confdefs.h. */ 12491_ACEOF 12492cat confdefs.h >>conftest.$ac_ext 12493cat >>conftest.$ac_ext <<_ACEOF 12494/* end confdefs.h. */ 12495$ac_includes_default 12496 typedef short ac__type_sizeof_; 12497int 12498main () 12499{ 12500static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12501test_array [0] = 0 12502 12503 ; 12504 return 0; 12505} 12506_ACEOF 12507rm -f conftest.$ac_objext 12508if { (ac_try="$ac_compile" 12509case "(($ac_try" in 12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12511 *) ac_try_echo=$ac_try;; 12512esac 12513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12514 (eval "$ac_compile") 2>conftest.er1 12515 ac_status=$? 12516 grep -v '^ *+' conftest.er1 >conftest.err 12517 rm -f conftest.er1 12518 cat conftest.err >&5 12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12520 (exit $ac_status); } && { 12521 test -z "$ac_c_werror_flag" || 12522 test ! -s conftest.err 12523 } && test -s conftest.$ac_objext; then 12524 ac_hi=$ac_mid; break 12525else 12526 echo "$as_me: failed program was:" >&5 12527sed 's/^/| /' conftest.$ac_ext >&5 12528 12529 ac_lo=`expr $ac_mid + 1` 12530 if test $ac_lo -le $ac_mid; then 12531 ac_lo= ac_hi= 12532 break 12533 fi 12534 ac_mid=`expr 2 '*' $ac_mid + 1` 12535fi 12536 12537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12538 done 12539else 12540 echo "$as_me: failed program was:" >&5 12541sed 's/^/| /' conftest.$ac_ext >&5 12542 12543 cat >conftest.$ac_ext <<_ACEOF 12544/* confdefs.h. */ 12545_ACEOF 12546cat confdefs.h >>conftest.$ac_ext 12547cat >>conftest.$ac_ext <<_ACEOF 12548/* end confdefs.h. */ 12549$ac_includes_default 12550 typedef short ac__type_sizeof_; 12551int 12552main () 12553{ 12554static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 12555test_array [0] = 0 12556 12557 ; 12558 return 0; 12559} 12560_ACEOF 12561rm -f conftest.$ac_objext 12562if { (ac_try="$ac_compile" 12563case "(($ac_try" in 12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12565 *) ac_try_echo=$ac_try;; 12566esac 12567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12568 (eval "$ac_compile") 2>conftest.er1 12569 ac_status=$? 12570 grep -v '^ *+' conftest.er1 >conftest.err 12571 rm -f conftest.er1 12572 cat conftest.err >&5 12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12574 (exit $ac_status); } && { 12575 test -z "$ac_c_werror_flag" || 12576 test ! -s conftest.err 12577 } && test -s conftest.$ac_objext; then 12578 ac_hi=-1 ac_mid=-1 12579 while :; do 12580 cat >conftest.$ac_ext <<_ACEOF 12581/* confdefs.h. */ 12582_ACEOF 12583cat confdefs.h >>conftest.$ac_ext 12584cat >>conftest.$ac_ext <<_ACEOF 12585/* end confdefs.h. */ 12586$ac_includes_default 12587 typedef short ac__type_sizeof_; 12588int 12589main () 12590{ 12591static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 12592test_array [0] = 0 12593 12594 ; 12595 return 0; 12596} 12597_ACEOF 12598rm -f conftest.$ac_objext 12599if { (ac_try="$ac_compile" 12600case "(($ac_try" in 12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12602 *) ac_try_echo=$ac_try;; 12603esac 12604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12605 (eval "$ac_compile") 2>conftest.er1 12606 ac_status=$? 12607 grep -v '^ *+' conftest.er1 >conftest.err 12608 rm -f conftest.er1 12609 cat conftest.err >&5 12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12611 (exit $ac_status); } && { 12612 test -z "$ac_c_werror_flag" || 12613 test ! -s conftest.err 12614 } && test -s conftest.$ac_objext; then 12615 ac_lo=$ac_mid; break 12616else 12617 echo "$as_me: failed program was:" >&5 12618sed 's/^/| /' conftest.$ac_ext >&5 12619 12620 ac_hi=`expr '(' $ac_mid ')' - 1` 12621 if test $ac_mid -le $ac_hi; then 12622 ac_lo= ac_hi= 12623 break 12624 fi 12625 ac_mid=`expr 2 '*' $ac_mid` 12626fi 12627 12628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12629 done 12630else 12631 echo "$as_me: failed program was:" >&5 12632sed 's/^/| /' conftest.$ac_ext >&5 12633 12634 ac_lo= ac_hi= 12635fi 12636 12637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12638fi 12639 12640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12641# Binary search between lo and hi bounds. 12642while test "x$ac_lo" != "x$ac_hi"; do 12643 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12644 cat >conftest.$ac_ext <<_ACEOF 12645/* confdefs.h. */ 12646_ACEOF 12647cat confdefs.h >>conftest.$ac_ext 12648cat >>conftest.$ac_ext <<_ACEOF 12649/* end confdefs.h. */ 12650$ac_includes_default 12651 typedef short ac__type_sizeof_; 12652int 12653main () 12654{ 12655static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12656test_array [0] = 0 12657 12658 ; 12659 return 0; 12660} 12661_ACEOF 12662rm -f conftest.$ac_objext 12663if { (ac_try="$ac_compile" 12664case "(($ac_try" in 12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12666 *) ac_try_echo=$ac_try;; 12667esac 12668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12669 (eval "$ac_compile") 2>conftest.er1 12670 ac_status=$? 12671 grep -v '^ *+' conftest.er1 >conftest.err 12672 rm -f conftest.er1 12673 cat conftest.err >&5 12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12675 (exit $ac_status); } && { 12676 test -z "$ac_c_werror_flag" || 12677 test ! -s conftest.err 12678 } && test -s conftest.$ac_objext; then 12679 ac_hi=$ac_mid 12680else 12681 echo "$as_me: failed program was:" >&5 12682sed 's/^/| /' conftest.$ac_ext >&5 12683 12684 ac_lo=`expr '(' $ac_mid ')' + 1` 12685fi 12686 12687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12688done 12689case $ac_lo in 12690?*) ac_cv_sizeof_short=$ac_lo;; 12691'') if test "$ac_cv_type_short" = yes; then 12692 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 12693See \`config.log' for more details." >&5 12694echo "$as_me: error: cannot compute sizeof (short) 12695See \`config.log' for more details." >&2;} 12696 { (exit 77); exit 77; }; } 12697 else 12698 ac_cv_sizeof_short=0 12699 fi ;; 12700esac 12701else 12702 cat >conftest.$ac_ext <<_ACEOF 12703/* confdefs.h. */ 12704_ACEOF 12705cat confdefs.h >>conftest.$ac_ext 12706cat >>conftest.$ac_ext <<_ACEOF 12707/* end confdefs.h. */ 12708$ac_includes_default 12709 typedef short ac__type_sizeof_; 12710static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 12711static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 12712#include <stdio.h> 12713#include <stdlib.h> 12714int 12715main () 12716{ 12717 12718 FILE *f = fopen ("conftest.val", "w"); 12719 if (! f) 12720 return 1; 12721 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 12722 { 12723 long int i = longval (); 12724 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12725 return 1; 12726 fprintf (f, "%ld\n", i); 12727 } 12728 else 12729 { 12730 unsigned long int i = ulongval (); 12731 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12732 return 1; 12733 fprintf (f, "%lu\n", i); 12734 } 12735 return ferror (f) || fclose (f) != 0; 12736 12737 ; 12738 return 0; 12739} 12740_ACEOF 12741rm -f conftest$ac_exeext 12742if { (ac_try="$ac_link" 12743case "(($ac_try" in 12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12745 *) ac_try_echo=$ac_try;; 12746esac 12747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12748 (eval "$ac_link") 2>&5 12749 ac_status=$? 12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12752 { (case "(($ac_try" in 12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12754 *) ac_try_echo=$ac_try;; 12755esac 12756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12757 (eval "$ac_try") 2>&5 12758 ac_status=$? 12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12760 (exit $ac_status); }; }; then 12761 ac_cv_sizeof_short=`cat conftest.val` 12762else 12763 echo "$as_me: program exited with status $ac_status" >&5 12764echo "$as_me: failed program was:" >&5 12765sed 's/^/| /' conftest.$ac_ext >&5 12766 12767( exit $ac_status ) 12768if test "$ac_cv_type_short" = yes; then 12769 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 12770See \`config.log' for more details." >&5 12771echo "$as_me: error: cannot compute sizeof (short) 12772See \`config.log' for more details." >&2;} 12773 { (exit 77); exit 77; }; } 12774 else 12775 ac_cv_sizeof_short=0 12776 fi 12777fi 12778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12779fi 12780rm -f conftest.val 12781fi 12782{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 12783echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 12784 12785 12786 12787cat >>confdefs.h <<_ACEOF 12788#define SIZEOF_SHORT $ac_cv_sizeof_short 12789_ACEOF 12790 12791 12792{ echo "$as_me:$LINENO: checking for int" >&5 12793echo $ECHO_N "checking for int... $ECHO_C" >&6; } 12794if test "${ac_cv_type_int+set}" = set; then 12795 echo $ECHO_N "(cached) $ECHO_C" >&6 12796else 12797 cat >conftest.$ac_ext <<_ACEOF 12798/* confdefs.h. */ 12799_ACEOF 12800cat confdefs.h >>conftest.$ac_ext 12801cat >>conftest.$ac_ext <<_ACEOF 12802/* end confdefs.h. */ 12803$ac_includes_default 12804typedef int ac__type_new_; 12805int 12806main () 12807{ 12808if ((ac__type_new_ *) 0) 12809 return 0; 12810if (sizeof (ac__type_new_)) 12811 return 0; 12812 ; 12813 return 0; 12814} 12815_ACEOF 12816rm -f conftest.$ac_objext 12817if { (ac_try="$ac_compile" 12818case "(($ac_try" in 12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12820 *) ac_try_echo=$ac_try;; 12821esac 12822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12823 (eval "$ac_compile") 2>conftest.er1 12824 ac_status=$? 12825 grep -v '^ *+' conftest.er1 >conftest.err 12826 rm -f conftest.er1 12827 cat conftest.err >&5 12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12829 (exit $ac_status); } && { 12830 test -z "$ac_c_werror_flag" || 12831 test ! -s conftest.err 12832 } && test -s conftest.$ac_objext; then 12833 ac_cv_type_int=yes 12834else 12835 echo "$as_me: failed program was:" >&5 12836sed 's/^/| /' conftest.$ac_ext >&5 12837 12838 ac_cv_type_int=no 12839fi 12840 12841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12842fi 12843{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 12844echo "${ECHO_T}$ac_cv_type_int" >&6; } 12845 12846# The cast to long int works around a bug in the HP C Compiler 12847# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12848# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12849# This bug is HP SR number 8606223364. 12850{ echo "$as_me:$LINENO: checking size of int" >&5 12851echo $ECHO_N "checking size of int... $ECHO_C" >&6; } 12852if test "${ac_cv_sizeof_int+set}" = set; then 12853 echo $ECHO_N "(cached) $ECHO_C" >&6 12854else 12855 if test "$cross_compiling" = yes; then 12856 # Depending upon the size, compute the lo and hi bounds. 12857cat >conftest.$ac_ext <<_ACEOF 12858/* confdefs.h. */ 12859_ACEOF 12860cat confdefs.h >>conftest.$ac_ext 12861cat >>conftest.$ac_ext <<_ACEOF 12862/* end confdefs.h. */ 12863$ac_includes_default 12864 typedef int ac__type_sizeof_; 12865int 12866main () 12867{ 12868static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 12869test_array [0] = 0 12870 12871 ; 12872 return 0; 12873} 12874_ACEOF 12875rm -f conftest.$ac_objext 12876if { (ac_try="$ac_compile" 12877case "(($ac_try" in 12878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12879 *) ac_try_echo=$ac_try;; 12880esac 12881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12882 (eval "$ac_compile") 2>conftest.er1 12883 ac_status=$? 12884 grep -v '^ *+' conftest.er1 >conftest.err 12885 rm -f conftest.er1 12886 cat conftest.err >&5 12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12888 (exit $ac_status); } && { 12889 test -z "$ac_c_werror_flag" || 12890 test ! -s conftest.err 12891 } && test -s conftest.$ac_objext; then 12892 ac_lo=0 ac_mid=0 12893 while :; do 12894 cat >conftest.$ac_ext <<_ACEOF 12895/* confdefs.h. */ 12896_ACEOF 12897cat confdefs.h >>conftest.$ac_ext 12898cat >>conftest.$ac_ext <<_ACEOF 12899/* end confdefs.h. */ 12900$ac_includes_default 12901 typedef int ac__type_sizeof_; 12902int 12903main () 12904{ 12905static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12906test_array [0] = 0 12907 12908 ; 12909 return 0; 12910} 12911_ACEOF 12912rm -f conftest.$ac_objext 12913if { (ac_try="$ac_compile" 12914case "(($ac_try" in 12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12916 *) ac_try_echo=$ac_try;; 12917esac 12918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12919 (eval "$ac_compile") 2>conftest.er1 12920 ac_status=$? 12921 grep -v '^ *+' conftest.er1 >conftest.err 12922 rm -f conftest.er1 12923 cat conftest.err >&5 12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12925 (exit $ac_status); } && { 12926 test -z "$ac_c_werror_flag" || 12927 test ! -s conftest.err 12928 } && test -s conftest.$ac_objext; then 12929 ac_hi=$ac_mid; break 12930else 12931 echo "$as_me: failed program was:" >&5 12932sed 's/^/| /' conftest.$ac_ext >&5 12933 12934 ac_lo=`expr $ac_mid + 1` 12935 if test $ac_lo -le $ac_mid; then 12936 ac_lo= ac_hi= 12937 break 12938 fi 12939 ac_mid=`expr 2 '*' $ac_mid + 1` 12940fi 12941 12942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12943 done 12944else 12945 echo "$as_me: failed program was:" >&5 12946sed 's/^/| /' conftest.$ac_ext >&5 12947 12948 cat >conftest.$ac_ext <<_ACEOF 12949/* confdefs.h. */ 12950_ACEOF 12951cat confdefs.h >>conftest.$ac_ext 12952cat >>conftest.$ac_ext <<_ACEOF 12953/* end confdefs.h. */ 12954$ac_includes_default 12955 typedef int ac__type_sizeof_; 12956int 12957main () 12958{ 12959static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 12960test_array [0] = 0 12961 12962 ; 12963 return 0; 12964} 12965_ACEOF 12966rm -f conftest.$ac_objext 12967if { (ac_try="$ac_compile" 12968case "(($ac_try" in 12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12970 *) ac_try_echo=$ac_try;; 12971esac 12972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12973 (eval "$ac_compile") 2>conftest.er1 12974 ac_status=$? 12975 grep -v '^ *+' conftest.er1 >conftest.err 12976 rm -f conftest.er1 12977 cat conftest.err >&5 12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12979 (exit $ac_status); } && { 12980 test -z "$ac_c_werror_flag" || 12981 test ! -s conftest.err 12982 } && test -s conftest.$ac_objext; then 12983 ac_hi=-1 ac_mid=-1 12984 while :; do 12985 cat >conftest.$ac_ext <<_ACEOF 12986/* confdefs.h. */ 12987_ACEOF 12988cat confdefs.h >>conftest.$ac_ext 12989cat >>conftest.$ac_ext <<_ACEOF 12990/* end confdefs.h. */ 12991$ac_includes_default 12992 typedef int ac__type_sizeof_; 12993int 12994main () 12995{ 12996static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 12997test_array [0] = 0 12998 12999 ; 13000 return 0; 13001} 13002_ACEOF 13003rm -f conftest.$ac_objext 13004if { (ac_try="$ac_compile" 13005case "(($ac_try" in 13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13007 *) ac_try_echo=$ac_try;; 13008esac 13009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13010 (eval "$ac_compile") 2>conftest.er1 13011 ac_status=$? 13012 grep -v '^ *+' conftest.er1 >conftest.err 13013 rm -f conftest.er1 13014 cat conftest.err >&5 13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13016 (exit $ac_status); } && { 13017 test -z "$ac_c_werror_flag" || 13018 test ! -s conftest.err 13019 } && test -s conftest.$ac_objext; then 13020 ac_lo=$ac_mid; break 13021else 13022 echo "$as_me: failed program was:" >&5 13023sed 's/^/| /' conftest.$ac_ext >&5 13024 13025 ac_hi=`expr '(' $ac_mid ')' - 1` 13026 if test $ac_mid -le $ac_hi; then 13027 ac_lo= ac_hi= 13028 break 13029 fi 13030 ac_mid=`expr 2 '*' $ac_mid` 13031fi 13032 13033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13034 done 13035else 13036 echo "$as_me: failed program was:" >&5 13037sed 's/^/| /' conftest.$ac_ext >&5 13038 13039 ac_lo= ac_hi= 13040fi 13041 13042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13043fi 13044 13045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13046# Binary search between lo and hi bounds. 13047while test "x$ac_lo" != "x$ac_hi"; do 13048 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13049 cat >conftest.$ac_ext <<_ACEOF 13050/* confdefs.h. */ 13051_ACEOF 13052cat confdefs.h >>conftest.$ac_ext 13053cat >>conftest.$ac_ext <<_ACEOF 13054/* end confdefs.h. */ 13055$ac_includes_default 13056 typedef int ac__type_sizeof_; 13057int 13058main () 13059{ 13060static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13061test_array [0] = 0 13062 13063 ; 13064 return 0; 13065} 13066_ACEOF 13067rm -f conftest.$ac_objext 13068if { (ac_try="$ac_compile" 13069case "(($ac_try" in 13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13071 *) ac_try_echo=$ac_try;; 13072esac 13073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13074 (eval "$ac_compile") 2>conftest.er1 13075 ac_status=$? 13076 grep -v '^ *+' conftest.er1 >conftest.err 13077 rm -f conftest.er1 13078 cat conftest.err >&5 13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13080 (exit $ac_status); } && { 13081 test -z "$ac_c_werror_flag" || 13082 test ! -s conftest.err 13083 } && test -s conftest.$ac_objext; then 13084 ac_hi=$ac_mid 13085else 13086 echo "$as_me: failed program was:" >&5 13087sed 's/^/| /' conftest.$ac_ext >&5 13088 13089 ac_lo=`expr '(' $ac_mid ')' + 1` 13090fi 13091 13092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13093done 13094case $ac_lo in 13095?*) ac_cv_sizeof_int=$ac_lo;; 13096'') if test "$ac_cv_type_int" = yes; then 13097 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 13098See \`config.log' for more details." >&5 13099echo "$as_me: error: cannot compute sizeof (int) 13100See \`config.log' for more details." >&2;} 13101 { (exit 77); exit 77; }; } 13102 else 13103 ac_cv_sizeof_int=0 13104 fi ;; 13105esac 13106else 13107 cat >conftest.$ac_ext <<_ACEOF 13108/* confdefs.h. */ 13109_ACEOF 13110cat confdefs.h >>conftest.$ac_ext 13111cat >>conftest.$ac_ext <<_ACEOF 13112/* end confdefs.h. */ 13113$ac_includes_default 13114 typedef int ac__type_sizeof_; 13115static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 13116static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 13117#include <stdio.h> 13118#include <stdlib.h> 13119int 13120main () 13121{ 13122 13123 FILE *f = fopen ("conftest.val", "w"); 13124 if (! f) 13125 return 1; 13126 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 13127 { 13128 long int i = longval (); 13129 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13130 return 1; 13131 fprintf (f, "%ld\n", i); 13132 } 13133 else 13134 { 13135 unsigned long int i = ulongval (); 13136 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13137 return 1; 13138 fprintf (f, "%lu\n", i); 13139 } 13140 return ferror (f) || fclose (f) != 0; 13141 13142 ; 13143 return 0; 13144} 13145_ACEOF 13146rm -f conftest$ac_exeext 13147if { (ac_try="$ac_link" 13148case "(($ac_try" in 13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13150 *) ac_try_echo=$ac_try;; 13151esac 13152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13153 (eval "$ac_link") 2>&5 13154 ac_status=$? 13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13157 { (case "(($ac_try" in 13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13159 *) ac_try_echo=$ac_try;; 13160esac 13161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13162 (eval "$ac_try") 2>&5 13163 ac_status=$? 13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13165 (exit $ac_status); }; }; then 13166 ac_cv_sizeof_int=`cat conftest.val` 13167else 13168 echo "$as_me: program exited with status $ac_status" >&5 13169echo "$as_me: failed program was:" >&5 13170sed 's/^/| /' conftest.$ac_ext >&5 13171 13172( exit $ac_status ) 13173if test "$ac_cv_type_int" = yes; then 13174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 13175See \`config.log' for more details." >&5 13176echo "$as_me: error: cannot compute sizeof (int) 13177See \`config.log' for more details." >&2;} 13178 { (exit 77); exit 77; }; } 13179 else 13180 ac_cv_sizeof_int=0 13181 fi 13182fi 13183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13184fi 13185rm -f conftest.val 13186fi 13187{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 13188echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } 13189 13190 13191 13192cat >>confdefs.h <<_ACEOF 13193#define SIZEOF_INT $ac_cv_sizeof_int 13194_ACEOF 13195 13196 13197{ echo "$as_me:$LINENO: checking for long" >&5 13198echo $ECHO_N "checking for long... $ECHO_C" >&6; } 13199if test "${ac_cv_type_long+set}" = set; then 13200 echo $ECHO_N "(cached) $ECHO_C" >&6 13201else 13202 cat >conftest.$ac_ext <<_ACEOF 13203/* confdefs.h. */ 13204_ACEOF 13205cat confdefs.h >>conftest.$ac_ext 13206cat >>conftest.$ac_ext <<_ACEOF 13207/* end confdefs.h. */ 13208$ac_includes_default 13209typedef long ac__type_new_; 13210int 13211main () 13212{ 13213if ((ac__type_new_ *) 0) 13214 return 0; 13215if (sizeof (ac__type_new_)) 13216 return 0; 13217 ; 13218 return 0; 13219} 13220_ACEOF 13221rm -f conftest.$ac_objext 13222if { (ac_try="$ac_compile" 13223case "(($ac_try" in 13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13225 *) ac_try_echo=$ac_try;; 13226esac 13227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13228 (eval "$ac_compile") 2>conftest.er1 13229 ac_status=$? 13230 grep -v '^ *+' conftest.er1 >conftest.err 13231 rm -f conftest.er1 13232 cat conftest.err >&5 13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13234 (exit $ac_status); } && { 13235 test -z "$ac_c_werror_flag" || 13236 test ! -s conftest.err 13237 } && test -s conftest.$ac_objext; then 13238 ac_cv_type_long=yes 13239else 13240 echo "$as_me: failed program was:" >&5 13241sed 's/^/| /' conftest.$ac_ext >&5 13242 13243 ac_cv_type_long=no 13244fi 13245 13246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13247fi 13248{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 13249echo "${ECHO_T}$ac_cv_type_long" >&6; } 13250 13251# The cast to long int works around a bug in the HP C Compiler 13252# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13253# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13254# This bug is HP SR number 8606223364. 13255{ echo "$as_me:$LINENO: checking size of long" >&5 13256echo $ECHO_N "checking size of long... $ECHO_C" >&6; } 13257if test "${ac_cv_sizeof_long+set}" = set; then 13258 echo $ECHO_N "(cached) $ECHO_C" >&6 13259else 13260 if test "$cross_compiling" = yes; then 13261 # Depending upon the size, compute the lo and hi bounds. 13262cat >conftest.$ac_ext <<_ACEOF 13263/* confdefs.h. */ 13264_ACEOF 13265cat confdefs.h >>conftest.$ac_ext 13266cat >>conftest.$ac_ext <<_ACEOF 13267/* end confdefs.h. */ 13268$ac_includes_default 13269 typedef long ac__type_sizeof_; 13270int 13271main () 13272{ 13273static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 13274test_array [0] = 0 13275 13276 ; 13277 return 0; 13278} 13279_ACEOF 13280rm -f conftest.$ac_objext 13281if { (ac_try="$ac_compile" 13282case "(($ac_try" in 13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13284 *) ac_try_echo=$ac_try;; 13285esac 13286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13287 (eval "$ac_compile") 2>conftest.er1 13288 ac_status=$? 13289 grep -v '^ *+' conftest.er1 >conftest.err 13290 rm -f conftest.er1 13291 cat conftest.err >&5 13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13293 (exit $ac_status); } && { 13294 test -z "$ac_c_werror_flag" || 13295 test ! -s conftest.err 13296 } && test -s conftest.$ac_objext; then 13297 ac_lo=0 ac_mid=0 13298 while :; do 13299 cat >conftest.$ac_ext <<_ACEOF 13300/* confdefs.h. */ 13301_ACEOF 13302cat confdefs.h >>conftest.$ac_ext 13303cat >>conftest.$ac_ext <<_ACEOF 13304/* end confdefs.h. */ 13305$ac_includes_default 13306 typedef long ac__type_sizeof_; 13307int 13308main () 13309{ 13310static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13311test_array [0] = 0 13312 13313 ; 13314 return 0; 13315} 13316_ACEOF 13317rm -f conftest.$ac_objext 13318if { (ac_try="$ac_compile" 13319case "(($ac_try" in 13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13321 *) ac_try_echo=$ac_try;; 13322esac 13323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13324 (eval "$ac_compile") 2>conftest.er1 13325 ac_status=$? 13326 grep -v '^ *+' conftest.er1 >conftest.err 13327 rm -f conftest.er1 13328 cat conftest.err >&5 13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13330 (exit $ac_status); } && { 13331 test -z "$ac_c_werror_flag" || 13332 test ! -s conftest.err 13333 } && test -s conftest.$ac_objext; then 13334 ac_hi=$ac_mid; break 13335else 13336 echo "$as_me: failed program was:" >&5 13337sed 's/^/| /' conftest.$ac_ext >&5 13338 13339 ac_lo=`expr $ac_mid + 1` 13340 if test $ac_lo -le $ac_mid; then 13341 ac_lo= ac_hi= 13342 break 13343 fi 13344 ac_mid=`expr 2 '*' $ac_mid + 1` 13345fi 13346 13347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13348 done 13349else 13350 echo "$as_me: failed program was:" >&5 13351sed 's/^/| /' conftest.$ac_ext >&5 13352 13353 cat >conftest.$ac_ext <<_ACEOF 13354/* confdefs.h. */ 13355_ACEOF 13356cat confdefs.h >>conftest.$ac_ext 13357cat >>conftest.$ac_ext <<_ACEOF 13358/* end confdefs.h. */ 13359$ac_includes_default 13360 typedef long ac__type_sizeof_; 13361int 13362main () 13363{ 13364static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 13365test_array [0] = 0 13366 13367 ; 13368 return 0; 13369} 13370_ACEOF 13371rm -f conftest.$ac_objext 13372if { (ac_try="$ac_compile" 13373case "(($ac_try" in 13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13375 *) ac_try_echo=$ac_try;; 13376esac 13377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13378 (eval "$ac_compile") 2>conftest.er1 13379 ac_status=$? 13380 grep -v '^ *+' conftest.er1 >conftest.err 13381 rm -f conftest.er1 13382 cat conftest.err >&5 13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13384 (exit $ac_status); } && { 13385 test -z "$ac_c_werror_flag" || 13386 test ! -s conftest.err 13387 } && test -s conftest.$ac_objext; then 13388 ac_hi=-1 ac_mid=-1 13389 while :; do 13390 cat >conftest.$ac_ext <<_ACEOF 13391/* confdefs.h. */ 13392_ACEOF 13393cat confdefs.h >>conftest.$ac_ext 13394cat >>conftest.$ac_ext <<_ACEOF 13395/* end confdefs.h. */ 13396$ac_includes_default 13397 typedef long ac__type_sizeof_; 13398int 13399main () 13400{ 13401static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 13402test_array [0] = 0 13403 13404 ; 13405 return 0; 13406} 13407_ACEOF 13408rm -f conftest.$ac_objext 13409if { (ac_try="$ac_compile" 13410case "(($ac_try" in 13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13412 *) ac_try_echo=$ac_try;; 13413esac 13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13415 (eval "$ac_compile") 2>conftest.er1 13416 ac_status=$? 13417 grep -v '^ *+' conftest.er1 >conftest.err 13418 rm -f conftest.er1 13419 cat conftest.err >&5 13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13421 (exit $ac_status); } && { 13422 test -z "$ac_c_werror_flag" || 13423 test ! -s conftest.err 13424 } && test -s conftest.$ac_objext; then 13425 ac_lo=$ac_mid; break 13426else 13427 echo "$as_me: failed program was:" >&5 13428sed 's/^/| /' conftest.$ac_ext >&5 13429 13430 ac_hi=`expr '(' $ac_mid ')' - 1` 13431 if test $ac_mid -le $ac_hi; then 13432 ac_lo= ac_hi= 13433 break 13434 fi 13435 ac_mid=`expr 2 '*' $ac_mid` 13436fi 13437 13438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13439 done 13440else 13441 echo "$as_me: failed program was:" >&5 13442sed 's/^/| /' conftest.$ac_ext >&5 13443 13444 ac_lo= ac_hi= 13445fi 13446 13447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13448fi 13449 13450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13451# Binary search between lo and hi bounds. 13452while test "x$ac_lo" != "x$ac_hi"; do 13453 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13454 cat >conftest.$ac_ext <<_ACEOF 13455/* confdefs.h. */ 13456_ACEOF 13457cat confdefs.h >>conftest.$ac_ext 13458cat >>conftest.$ac_ext <<_ACEOF 13459/* end confdefs.h. */ 13460$ac_includes_default 13461 typedef long ac__type_sizeof_; 13462int 13463main () 13464{ 13465static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13466test_array [0] = 0 13467 13468 ; 13469 return 0; 13470} 13471_ACEOF 13472rm -f conftest.$ac_objext 13473if { (ac_try="$ac_compile" 13474case "(($ac_try" in 13475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13476 *) ac_try_echo=$ac_try;; 13477esac 13478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13479 (eval "$ac_compile") 2>conftest.er1 13480 ac_status=$? 13481 grep -v '^ *+' conftest.er1 >conftest.err 13482 rm -f conftest.er1 13483 cat conftest.err >&5 13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13485 (exit $ac_status); } && { 13486 test -z "$ac_c_werror_flag" || 13487 test ! -s conftest.err 13488 } && test -s conftest.$ac_objext; then 13489 ac_hi=$ac_mid 13490else 13491 echo "$as_me: failed program was:" >&5 13492sed 's/^/| /' conftest.$ac_ext >&5 13493 13494 ac_lo=`expr '(' $ac_mid ')' + 1` 13495fi 13496 13497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13498done 13499case $ac_lo in 13500?*) ac_cv_sizeof_long=$ac_lo;; 13501'') if test "$ac_cv_type_long" = yes; then 13502 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 13503See \`config.log' for more details." >&5 13504echo "$as_me: error: cannot compute sizeof (long) 13505See \`config.log' for more details." >&2;} 13506 { (exit 77); exit 77; }; } 13507 else 13508 ac_cv_sizeof_long=0 13509 fi ;; 13510esac 13511else 13512 cat >conftest.$ac_ext <<_ACEOF 13513/* confdefs.h. */ 13514_ACEOF 13515cat confdefs.h >>conftest.$ac_ext 13516cat >>conftest.$ac_ext <<_ACEOF 13517/* end confdefs.h. */ 13518$ac_includes_default 13519 typedef long ac__type_sizeof_; 13520static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 13521static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 13522#include <stdio.h> 13523#include <stdlib.h> 13524int 13525main () 13526{ 13527 13528 FILE *f = fopen ("conftest.val", "w"); 13529 if (! f) 13530 return 1; 13531 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 13532 { 13533 long int i = longval (); 13534 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13535 return 1; 13536 fprintf (f, "%ld\n", i); 13537 } 13538 else 13539 { 13540 unsigned long int i = ulongval (); 13541 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13542 return 1; 13543 fprintf (f, "%lu\n", i); 13544 } 13545 return ferror (f) || fclose (f) != 0; 13546 13547 ; 13548 return 0; 13549} 13550_ACEOF 13551rm -f conftest$ac_exeext 13552if { (ac_try="$ac_link" 13553case "(($ac_try" in 13554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13555 *) ac_try_echo=$ac_try;; 13556esac 13557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13558 (eval "$ac_link") 2>&5 13559 ac_status=$? 13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13562 { (case "(($ac_try" in 13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13564 *) ac_try_echo=$ac_try;; 13565esac 13566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13567 (eval "$ac_try") 2>&5 13568 ac_status=$? 13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13570 (exit $ac_status); }; }; then 13571 ac_cv_sizeof_long=`cat conftest.val` 13572else 13573 echo "$as_me: program exited with status $ac_status" >&5 13574echo "$as_me: failed program was:" >&5 13575sed 's/^/| /' conftest.$ac_ext >&5 13576 13577( exit $ac_status ) 13578if test "$ac_cv_type_long" = yes; then 13579 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 13580See \`config.log' for more details." >&5 13581echo "$as_me: error: cannot compute sizeof (long) 13582See \`config.log' for more details." >&2;} 13583 { (exit 77); exit 77; }; } 13584 else 13585 ac_cv_sizeof_long=0 13586 fi 13587fi 13588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13589fi 13590rm -f conftest.val 13591fi 13592{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 13593echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } 13594 13595 13596 13597cat >>confdefs.h <<_ACEOF 13598#define SIZEOF_LONG $ac_cv_sizeof_long 13599_ACEOF 13600 13601 13602{ echo "$as_me:$LINENO: checking for long long" >&5 13603echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 13604if test "${ac_cv_type_long_long+set}" = set; then 13605 echo $ECHO_N "(cached) $ECHO_C" >&6 13606else 13607 cat >conftest.$ac_ext <<_ACEOF 13608/* confdefs.h. */ 13609_ACEOF 13610cat confdefs.h >>conftest.$ac_ext 13611cat >>conftest.$ac_ext <<_ACEOF 13612/* end confdefs.h. */ 13613$ac_includes_default 13614typedef long long ac__type_new_; 13615int 13616main () 13617{ 13618if ((ac__type_new_ *) 0) 13619 return 0; 13620if (sizeof (ac__type_new_)) 13621 return 0; 13622 ; 13623 return 0; 13624} 13625_ACEOF 13626rm -f conftest.$ac_objext 13627if { (ac_try="$ac_compile" 13628case "(($ac_try" in 13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13630 *) ac_try_echo=$ac_try;; 13631esac 13632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13633 (eval "$ac_compile") 2>conftest.er1 13634 ac_status=$? 13635 grep -v '^ *+' conftest.er1 >conftest.err 13636 rm -f conftest.er1 13637 cat conftest.err >&5 13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13639 (exit $ac_status); } && { 13640 test -z "$ac_c_werror_flag" || 13641 test ! -s conftest.err 13642 } && test -s conftest.$ac_objext; then 13643 ac_cv_type_long_long=yes 13644else 13645 echo "$as_me: failed program was:" >&5 13646sed 's/^/| /' conftest.$ac_ext >&5 13647 13648 ac_cv_type_long_long=no 13649fi 13650 13651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13652fi 13653{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 13654echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 13655 13656# The cast to long int works around a bug in the HP C Compiler 13657# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13658# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13659# This bug is HP SR number 8606223364. 13660{ echo "$as_me:$LINENO: checking size of long long" >&5 13661echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } 13662if test "${ac_cv_sizeof_long_long+set}" = set; then 13663 echo $ECHO_N "(cached) $ECHO_C" >&6 13664else 13665 if test "$cross_compiling" = yes; then 13666 # Depending upon the size, compute the lo and hi bounds. 13667cat >conftest.$ac_ext <<_ACEOF 13668/* confdefs.h. */ 13669_ACEOF 13670cat confdefs.h >>conftest.$ac_ext 13671cat >>conftest.$ac_ext <<_ACEOF 13672/* end confdefs.h. */ 13673$ac_includes_default 13674 typedef long long ac__type_sizeof_; 13675int 13676main () 13677{ 13678static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 13679test_array [0] = 0 13680 13681 ; 13682 return 0; 13683} 13684_ACEOF 13685rm -f conftest.$ac_objext 13686if { (ac_try="$ac_compile" 13687case "(($ac_try" in 13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13689 *) ac_try_echo=$ac_try;; 13690esac 13691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13692 (eval "$ac_compile") 2>conftest.er1 13693 ac_status=$? 13694 grep -v '^ *+' conftest.er1 >conftest.err 13695 rm -f conftest.er1 13696 cat conftest.err >&5 13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13698 (exit $ac_status); } && { 13699 test -z "$ac_c_werror_flag" || 13700 test ! -s conftest.err 13701 } && test -s conftest.$ac_objext; then 13702 ac_lo=0 ac_mid=0 13703 while :; do 13704 cat >conftest.$ac_ext <<_ACEOF 13705/* confdefs.h. */ 13706_ACEOF 13707cat confdefs.h >>conftest.$ac_ext 13708cat >>conftest.$ac_ext <<_ACEOF 13709/* end confdefs.h. */ 13710$ac_includes_default 13711 typedef long long ac__type_sizeof_; 13712int 13713main () 13714{ 13715static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13716test_array [0] = 0 13717 13718 ; 13719 return 0; 13720} 13721_ACEOF 13722rm -f conftest.$ac_objext 13723if { (ac_try="$ac_compile" 13724case "(($ac_try" in 13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13726 *) ac_try_echo=$ac_try;; 13727esac 13728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13729 (eval "$ac_compile") 2>conftest.er1 13730 ac_status=$? 13731 grep -v '^ *+' conftest.er1 >conftest.err 13732 rm -f conftest.er1 13733 cat conftest.err >&5 13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13735 (exit $ac_status); } && { 13736 test -z "$ac_c_werror_flag" || 13737 test ! -s conftest.err 13738 } && test -s conftest.$ac_objext; then 13739 ac_hi=$ac_mid; break 13740else 13741 echo "$as_me: failed program was:" >&5 13742sed 's/^/| /' conftest.$ac_ext >&5 13743 13744 ac_lo=`expr $ac_mid + 1` 13745 if test $ac_lo -le $ac_mid; then 13746 ac_lo= ac_hi= 13747 break 13748 fi 13749 ac_mid=`expr 2 '*' $ac_mid + 1` 13750fi 13751 13752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13753 done 13754else 13755 echo "$as_me: failed program was:" >&5 13756sed 's/^/| /' conftest.$ac_ext >&5 13757 13758 cat >conftest.$ac_ext <<_ACEOF 13759/* confdefs.h. */ 13760_ACEOF 13761cat confdefs.h >>conftest.$ac_ext 13762cat >>conftest.$ac_ext <<_ACEOF 13763/* end confdefs.h. */ 13764$ac_includes_default 13765 typedef long long ac__type_sizeof_; 13766int 13767main () 13768{ 13769static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 13770test_array [0] = 0 13771 13772 ; 13773 return 0; 13774} 13775_ACEOF 13776rm -f conftest.$ac_objext 13777if { (ac_try="$ac_compile" 13778case "(($ac_try" in 13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13780 *) ac_try_echo=$ac_try;; 13781esac 13782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13783 (eval "$ac_compile") 2>conftest.er1 13784 ac_status=$? 13785 grep -v '^ *+' conftest.er1 >conftest.err 13786 rm -f conftest.er1 13787 cat conftest.err >&5 13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13789 (exit $ac_status); } && { 13790 test -z "$ac_c_werror_flag" || 13791 test ! -s conftest.err 13792 } && test -s conftest.$ac_objext; then 13793 ac_hi=-1 ac_mid=-1 13794 while :; do 13795 cat >conftest.$ac_ext <<_ACEOF 13796/* confdefs.h. */ 13797_ACEOF 13798cat confdefs.h >>conftest.$ac_ext 13799cat >>conftest.$ac_ext <<_ACEOF 13800/* end confdefs.h. */ 13801$ac_includes_default 13802 typedef long long ac__type_sizeof_; 13803int 13804main () 13805{ 13806static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 13807test_array [0] = 0 13808 13809 ; 13810 return 0; 13811} 13812_ACEOF 13813rm -f conftest.$ac_objext 13814if { (ac_try="$ac_compile" 13815case "(($ac_try" in 13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13817 *) ac_try_echo=$ac_try;; 13818esac 13819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13820 (eval "$ac_compile") 2>conftest.er1 13821 ac_status=$? 13822 grep -v '^ *+' conftest.er1 >conftest.err 13823 rm -f conftest.er1 13824 cat conftest.err >&5 13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13826 (exit $ac_status); } && { 13827 test -z "$ac_c_werror_flag" || 13828 test ! -s conftest.err 13829 } && test -s conftest.$ac_objext; then 13830 ac_lo=$ac_mid; break 13831else 13832 echo "$as_me: failed program was:" >&5 13833sed 's/^/| /' conftest.$ac_ext >&5 13834 13835 ac_hi=`expr '(' $ac_mid ')' - 1` 13836 if test $ac_mid -le $ac_hi; then 13837 ac_lo= ac_hi= 13838 break 13839 fi 13840 ac_mid=`expr 2 '*' $ac_mid` 13841fi 13842 13843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13844 done 13845else 13846 echo "$as_me: failed program was:" >&5 13847sed 's/^/| /' conftest.$ac_ext >&5 13848 13849 ac_lo= ac_hi= 13850fi 13851 13852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13853fi 13854 13855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13856# Binary search between lo and hi bounds. 13857while test "x$ac_lo" != "x$ac_hi"; do 13858 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13859 cat >conftest.$ac_ext <<_ACEOF 13860/* confdefs.h. */ 13861_ACEOF 13862cat confdefs.h >>conftest.$ac_ext 13863cat >>conftest.$ac_ext <<_ACEOF 13864/* end confdefs.h. */ 13865$ac_includes_default 13866 typedef long long ac__type_sizeof_; 13867int 13868main () 13869{ 13870static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13871test_array [0] = 0 13872 13873 ; 13874 return 0; 13875} 13876_ACEOF 13877rm -f conftest.$ac_objext 13878if { (ac_try="$ac_compile" 13879case "(($ac_try" in 13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13881 *) ac_try_echo=$ac_try;; 13882esac 13883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13884 (eval "$ac_compile") 2>conftest.er1 13885 ac_status=$? 13886 grep -v '^ *+' conftest.er1 >conftest.err 13887 rm -f conftest.er1 13888 cat conftest.err >&5 13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13890 (exit $ac_status); } && { 13891 test -z "$ac_c_werror_flag" || 13892 test ! -s conftest.err 13893 } && test -s conftest.$ac_objext; then 13894 ac_hi=$ac_mid 13895else 13896 echo "$as_me: failed program was:" >&5 13897sed 's/^/| /' conftest.$ac_ext >&5 13898 13899 ac_lo=`expr '(' $ac_mid ')' + 1` 13900fi 13901 13902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13903done 13904case $ac_lo in 13905?*) ac_cv_sizeof_long_long=$ac_lo;; 13906'') if test "$ac_cv_type_long_long" = yes; then 13907 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 13908See \`config.log' for more details." >&5 13909echo "$as_me: error: cannot compute sizeof (long long) 13910See \`config.log' for more details." >&2;} 13911 { (exit 77); exit 77; }; } 13912 else 13913 ac_cv_sizeof_long_long=0 13914 fi ;; 13915esac 13916else 13917 cat >conftest.$ac_ext <<_ACEOF 13918/* confdefs.h. */ 13919_ACEOF 13920cat confdefs.h >>conftest.$ac_ext 13921cat >>conftest.$ac_ext <<_ACEOF 13922/* end confdefs.h. */ 13923$ac_includes_default 13924 typedef long long ac__type_sizeof_; 13925static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 13926static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 13927#include <stdio.h> 13928#include <stdlib.h> 13929int 13930main () 13931{ 13932 13933 FILE *f = fopen ("conftest.val", "w"); 13934 if (! f) 13935 return 1; 13936 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 13937 { 13938 long int i = longval (); 13939 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13940 return 1; 13941 fprintf (f, "%ld\n", i); 13942 } 13943 else 13944 { 13945 unsigned long int i = ulongval (); 13946 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13947 return 1; 13948 fprintf (f, "%lu\n", i); 13949 } 13950 return ferror (f) || fclose (f) != 0; 13951 13952 ; 13953 return 0; 13954} 13955_ACEOF 13956rm -f conftest$ac_exeext 13957if { (ac_try="$ac_link" 13958case "(($ac_try" in 13959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13960 *) ac_try_echo=$ac_try;; 13961esac 13962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13963 (eval "$ac_link") 2>&5 13964 ac_status=$? 13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13967 { (case "(($ac_try" in 13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13969 *) ac_try_echo=$ac_try;; 13970esac 13971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13972 (eval "$ac_try") 2>&5 13973 ac_status=$? 13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13975 (exit $ac_status); }; }; then 13976 ac_cv_sizeof_long_long=`cat conftest.val` 13977else 13978 echo "$as_me: program exited with status $ac_status" >&5 13979echo "$as_me: failed program was:" >&5 13980sed 's/^/| /' conftest.$ac_ext >&5 13981 13982( exit $ac_status ) 13983if test "$ac_cv_type_long_long" = yes; then 13984 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 13985See \`config.log' for more details." >&5 13986echo "$as_me: error: cannot compute sizeof (long long) 13987See \`config.log' for more details." >&2;} 13988 { (exit 77); exit 77; }; } 13989 else 13990 ac_cv_sizeof_long_long=0 13991 fi 13992fi 13993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13994fi 13995rm -f conftest.val 13996fi 13997{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 13998echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } 13999 14000 14001 14002cat >>confdefs.h <<_ACEOF 14003#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 14004_ACEOF 14005 14006 14007SIZEOF_SHORT=$ac_cv_sizeof_short 14008SIZEOF_INT=$ac_cv_sizeof_int 14009SIZEOF_LONG=$ac_cv_sizeof_long 14010SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long 14011 14012 14013 14014 14015{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 14016echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 14017if test "${ac_cv_c_bigendian+set}" = set; then 14018 echo $ECHO_N "(cached) $ECHO_C" >&6 14019else 14020 # See if sys/param.h defines the BYTE_ORDER macro. 14021cat >conftest.$ac_ext <<_ACEOF 14022/* confdefs.h. */ 14023_ACEOF 14024cat confdefs.h >>conftest.$ac_ext 14025cat >>conftest.$ac_ext <<_ACEOF 14026/* end confdefs.h. */ 14027#include <sys/types.h> 14028#include <sys/param.h> 14029 14030int 14031main () 14032{ 14033#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 14034 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 14035 bogus endian macros 14036#endif 14037 14038 ; 14039 return 0; 14040} 14041_ACEOF 14042rm -f conftest.$ac_objext 14043if { (ac_try="$ac_compile" 14044case "(($ac_try" in 14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14046 *) ac_try_echo=$ac_try;; 14047esac 14048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14049 (eval "$ac_compile") 2>conftest.er1 14050 ac_status=$? 14051 grep -v '^ *+' conftest.er1 >conftest.err 14052 rm -f conftest.er1 14053 cat conftest.err >&5 14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14055 (exit $ac_status); } && { 14056 test -z "$ac_c_werror_flag" || 14057 test ! -s conftest.err 14058 } && test -s conftest.$ac_objext; then 14059 # It does; now see whether it defined to BIG_ENDIAN or not. 14060cat >conftest.$ac_ext <<_ACEOF 14061/* confdefs.h. */ 14062_ACEOF 14063cat confdefs.h >>conftest.$ac_ext 14064cat >>conftest.$ac_ext <<_ACEOF 14065/* end confdefs.h. */ 14066#include <sys/types.h> 14067#include <sys/param.h> 14068 14069int 14070main () 14071{ 14072#if BYTE_ORDER != BIG_ENDIAN 14073 not big endian 14074#endif 14075 14076 ; 14077 return 0; 14078} 14079_ACEOF 14080rm -f conftest.$ac_objext 14081if { (ac_try="$ac_compile" 14082case "(($ac_try" in 14083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14084 *) ac_try_echo=$ac_try;; 14085esac 14086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14087 (eval "$ac_compile") 2>conftest.er1 14088 ac_status=$? 14089 grep -v '^ *+' conftest.er1 >conftest.err 14090 rm -f conftest.er1 14091 cat conftest.err >&5 14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14093 (exit $ac_status); } && { 14094 test -z "$ac_c_werror_flag" || 14095 test ! -s conftest.err 14096 } && test -s conftest.$ac_objext; then 14097 ac_cv_c_bigendian=yes 14098else 14099 echo "$as_me: failed program was:" >&5 14100sed 's/^/| /' conftest.$ac_ext >&5 14101 14102 ac_cv_c_bigendian=no 14103fi 14104 14105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14106else 14107 echo "$as_me: failed program was:" >&5 14108sed 's/^/| /' conftest.$ac_ext >&5 14109 14110 # It does not; compile a test program. 14111if test "$cross_compiling" = yes; then 14112 # try to guess the endianness by grepping values into an object file 14113 ac_cv_c_bigendian=unknown 14114 cat >conftest.$ac_ext <<_ACEOF 14115/* confdefs.h. */ 14116_ACEOF 14117cat confdefs.h >>conftest.$ac_ext 14118cat >>conftest.$ac_ext <<_ACEOF 14119/* end confdefs.h. */ 14120short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14121short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14122void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 14123short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14124short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14125void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 14126int 14127main () 14128{ 14129 _ascii (); _ebcdic (); 14130 ; 14131 return 0; 14132} 14133_ACEOF 14134rm -f conftest.$ac_objext 14135if { (ac_try="$ac_compile" 14136case "(($ac_try" in 14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14138 *) ac_try_echo=$ac_try;; 14139esac 14140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14141 (eval "$ac_compile") 2>conftest.er1 14142 ac_status=$? 14143 grep -v '^ *+' conftest.er1 >conftest.err 14144 rm -f conftest.er1 14145 cat conftest.err >&5 14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14147 (exit $ac_status); } && { 14148 test -z "$ac_c_werror_flag" || 14149 test ! -s conftest.err 14150 } && test -s conftest.$ac_objext; then 14151 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 14152 ac_cv_c_bigendian=yes 14153fi 14154if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14155 if test "$ac_cv_c_bigendian" = unknown; then 14156 ac_cv_c_bigendian=no 14157 else 14158 # finding both strings is unlikely to happen, but who knows? 14159 ac_cv_c_bigendian=unknown 14160 fi 14161fi 14162else 14163 echo "$as_me: failed program was:" >&5 14164sed 's/^/| /' conftest.$ac_ext >&5 14165 14166 14167fi 14168 14169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14170else 14171 cat >conftest.$ac_ext <<_ACEOF 14172/* confdefs.h. */ 14173_ACEOF 14174cat confdefs.h >>conftest.$ac_ext 14175cat >>conftest.$ac_ext <<_ACEOF 14176/* end confdefs.h. */ 14177$ac_includes_default 14178int 14179main () 14180{ 14181 14182 /* Are we little or big endian? From Harbison&Steele. */ 14183 union 14184 { 14185 long int l; 14186 char c[sizeof (long int)]; 14187 } u; 14188 u.l = 1; 14189 return u.c[sizeof (long int) - 1] == 1; 14190 14191 ; 14192 return 0; 14193} 14194_ACEOF 14195rm -f conftest$ac_exeext 14196if { (ac_try="$ac_link" 14197case "(($ac_try" in 14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14199 *) ac_try_echo=$ac_try;; 14200esac 14201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14202 (eval "$ac_link") 2>&5 14203 ac_status=$? 14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14206 { (case "(($ac_try" in 14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14208 *) ac_try_echo=$ac_try;; 14209esac 14210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14211 (eval "$ac_try") 2>&5 14212 ac_status=$? 14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14214 (exit $ac_status); }; }; then 14215 ac_cv_c_bigendian=no 14216else 14217 echo "$as_me: program exited with status $ac_status" >&5 14218echo "$as_me: failed program was:" >&5 14219sed 's/^/| /' conftest.$ac_ext >&5 14220 14221( exit $ac_status ) 14222ac_cv_c_bigendian=yes 14223fi 14224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14225fi 14226 14227 14228fi 14229 14230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14231fi 14232{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 14233echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 14234case $ac_cv_c_bigendian in 14235 yes) 14236 14237cat >>confdefs.h <<\_ACEOF 14238#define WORDS_BIGENDIAN 1 14239_ACEOF 14240 ;; 14241 no) 14242 ;; 14243 *) 14244 { { echo "$as_me:$LINENO: error: unknown endianness 14245presetting ac_cv_c_bigendian=no (or yes) will help" >&5 14246echo "$as_me: error: unknown endianness 14247presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 14248 { (exit 1); exit 1; }; } ;; 14249esac 14250 14251BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh 14252ASM_TYPES_HEADER=./asm_types.h 14253 14254echo "/* These defines are needed for the public ext2fs.h header file */" \ 14255 > public_config.h 14256if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then 14257 uniq tmp_config.$$ >> public_config.h 14258else 14259 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h 14260fi 14261if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then 14262 uniq tmp_config.$$ >> public_config.h 14263else 14264 echo "#undef WORDS_BIGENDIAN" >> public_config.h 14265fi 14266rm -f tmp_config.$$ 14267PUBLIC_CONFIG_HEADER=./public_config.h 14268 14269 14270for ac_header in inttypes.h 14271do 14272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14274 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14277 echo $ECHO_N "(cached) $ECHO_C" >&6 14278fi 14279ac_res=`eval echo '${'$as_ac_Header'}'` 14280 { echo "$as_me:$LINENO: result: $ac_res" >&5 14281echo "${ECHO_T}$ac_res" >&6; } 14282else 14283 # Is the header compilable? 14284{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14285echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14286cat >conftest.$ac_ext <<_ACEOF 14287/* confdefs.h. */ 14288_ACEOF 14289cat confdefs.h >>conftest.$ac_ext 14290cat >>conftest.$ac_ext <<_ACEOF 14291/* end confdefs.h. */ 14292$ac_includes_default 14293#include <$ac_header> 14294_ACEOF 14295rm -f conftest.$ac_objext 14296if { (ac_try="$ac_compile" 14297case "(($ac_try" in 14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14299 *) ac_try_echo=$ac_try;; 14300esac 14301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14302 (eval "$ac_compile") 2>conftest.er1 14303 ac_status=$? 14304 grep -v '^ *+' conftest.er1 >conftest.err 14305 rm -f conftest.er1 14306 cat conftest.err >&5 14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14308 (exit $ac_status); } && { 14309 test -z "$ac_c_werror_flag" || 14310 test ! -s conftest.err 14311 } && test -s conftest.$ac_objext; then 14312 ac_header_compiler=yes 14313else 14314 echo "$as_me: failed program was:" >&5 14315sed 's/^/| /' conftest.$ac_ext >&5 14316 14317 ac_header_compiler=no 14318fi 14319 14320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14321{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14322echo "${ECHO_T}$ac_header_compiler" >&6; } 14323 14324# Is the header present? 14325{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14327cat >conftest.$ac_ext <<_ACEOF 14328/* confdefs.h. */ 14329_ACEOF 14330cat confdefs.h >>conftest.$ac_ext 14331cat >>conftest.$ac_ext <<_ACEOF 14332/* end confdefs.h. */ 14333#include <$ac_header> 14334_ACEOF 14335if { (ac_try="$ac_cpp conftest.$ac_ext" 14336case "(($ac_try" in 14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14338 *) ac_try_echo=$ac_try;; 14339esac 14340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14342 ac_status=$? 14343 grep -v '^ *+' conftest.er1 >conftest.err 14344 rm -f conftest.er1 14345 cat conftest.err >&5 14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14347 (exit $ac_status); } >/dev/null && { 14348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 14349 test ! -s conftest.err 14350 }; then 14351 ac_header_preproc=yes 14352else 14353 echo "$as_me: failed program was:" >&5 14354sed 's/^/| /' conftest.$ac_ext >&5 14355 14356 ac_header_preproc=no 14357fi 14358 14359rm -f conftest.err conftest.$ac_ext 14360{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14361echo "${ECHO_T}$ac_header_preproc" >&6; } 14362 14363# So? What about this header? 14364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14365 yes:no: ) 14366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14367echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14369echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14370 ac_header_preproc=yes 14371 ;; 14372 no:yes:* ) 14373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14376echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14378echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14380echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14384echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14385 14386 ;; 14387esac 14388{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14391 echo $ECHO_N "(cached) $ECHO_C" >&6 14392else 14393 eval "$as_ac_Header=\$ac_header_preproc" 14394fi 14395ac_res=`eval echo '${'$as_ac_Header'}'` 14396 { echo "$as_me:$LINENO: result: $ac_res" >&5 14397echo "${ECHO_T}$ac_res" >&6; } 14398 14399fi 14400if test `eval echo '${'$as_ac_Header'}'` = yes; then 14401 cat >>confdefs.h <<_ACEOF 14402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14403_ACEOF 14404 14405fi 14406 14407done 14408 14409{ echo "$as_me:$LINENO: checking for intptr_t" >&5 14410echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } 14411if test "${ac_cv_type_intptr_t+set}" = set; then 14412 echo $ECHO_N "(cached) $ECHO_C" >&6 14413else 14414 cat >conftest.$ac_ext <<_ACEOF 14415/* confdefs.h. */ 14416_ACEOF 14417cat confdefs.h >>conftest.$ac_ext 14418cat >>conftest.$ac_ext <<_ACEOF 14419/* end confdefs.h. */ 14420$ac_includes_default 14421typedef intptr_t ac__type_new_; 14422int 14423main () 14424{ 14425if ((ac__type_new_ *) 0) 14426 return 0; 14427if (sizeof (ac__type_new_)) 14428 return 0; 14429 ; 14430 return 0; 14431} 14432_ACEOF 14433rm -f conftest.$ac_objext 14434if { (ac_try="$ac_compile" 14435case "(($ac_try" in 14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14437 *) ac_try_echo=$ac_try;; 14438esac 14439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14440 (eval "$ac_compile") 2>conftest.er1 14441 ac_status=$? 14442 grep -v '^ *+' conftest.er1 >conftest.err 14443 rm -f conftest.er1 14444 cat conftest.err >&5 14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14446 (exit $ac_status); } && { 14447 test -z "$ac_c_werror_flag" || 14448 test ! -s conftest.err 14449 } && test -s conftest.$ac_objext; then 14450 ac_cv_type_intptr_t=yes 14451else 14452 echo "$as_me: failed program was:" >&5 14453sed 's/^/| /' conftest.$ac_ext >&5 14454 14455 ac_cv_type_intptr_t=no 14456fi 14457 14458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14459fi 14460{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 14461echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } 14462if test $ac_cv_type_intptr_t = yes; then 14463 14464cat >>confdefs.h <<_ACEOF 14465#define HAVE_INTPTR_T 1 14466_ACEOF 14467 14468 14469fi 14470 14471{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 14472echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; } 14473if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then 14474 echo $ECHO_N "(cached) $ECHO_C" >&6 14475else 14476 cat >conftest.$ac_ext <<_ACEOF 14477/* confdefs.h. */ 14478_ACEOF 14479cat confdefs.h >>conftest.$ac_ext 14480cat >>conftest.$ac_ext <<_ACEOF 14481/* end confdefs.h. */ 14482#include <sys/stat.h> 14483int 14484main () 14485{ 14486struct stat stat; stat.st_flags = 0; 14487 ; 14488 return 0; 14489} 14490_ACEOF 14491rm -f conftest.$ac_objext 14492if { (ac_try="$ac_compile" 14493case "(($ac_try" in 14494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14495 *) ac_try_echo=$ac_try;; 14496esac 14497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14498 (eval "$ac_compile") 2>conftest.er1 14499 ac_status=$? 14500 grep -v '^ *+' conftest.er1 >conftest.err 14501 rm -f conftest.er1 14502 cat conftest.err >&5 14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14504 (exit $ac_status); } && { 14505 test -z "$ac_c_werror_flag" || 14506 test ! -s conftest.err 14507 } && test -s conftest.$ac_objext; then 14508 e2fsprogs_cv_struct_st_flags=yes 14509else 14510 echo "$as_me: failed program was:" >&5 14511sed 's/^/| /' conftest.$ac_ext >&5 14512 14513 e2fsprogs_cv_struct_st_flags=no 14514fi 14515 14516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14517fi 14518 14519{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 14520echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; } 14521if test "$e2fsprogs_cv_struct_st_flags" = yes; then 14522 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 14523echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; } 14524 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then 14525 echo $ECHO_N "(cached) $ECHO_C" >&6 14526else 14527 cat >conftest.$ac_ext <<_ACEOF 14528/* confdefs.h. */ 14529_ACEOF 14530cat confdefs.h >>conftest.$ac_ext 14531cat >>conftest.$ac_ext <<_ACEOF 14532/* end confdefs.h. */ 14533#include <sys/stat.h> 14534int 14535main () 14536{ 14537struct stat stat; stat.st_flags |= UF_IMMUTABLE; 14538 ; 14539 return 0; 14540} 14541_ACEOF 14542rm -f conftest.$ac_objext 14543if { (ac_try="$ac_compile" 14544case "(($ac_try" in 14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14546 *) ac_try_echo=$ac_try;; 14547esac 14548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14549 (eval "$ac_compile") 2>conftest.er1 14550 ac_status=$? 14551 grep -v '^ *+' conftest.er1 >conftest.err 14552 rm -f conftest.er1 14553 cat conftest.err >&5 14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14555 (exit $ac_status); } && { 14556 test -z "$ac_c_werror_flag" || 14557 test ! -s conftest.err 14558 } && test -s conftest.$ac_objext; then 14559 e2fsprogs_cv_struct_st_flags_immut=yes 14560else 14561 echo "$as_me: failed program was:" >&5 14562sed 's/^/| /' conftest.$ac_ext >&5 14563 14564 e2fsprogs_cv_struct_st_flags_immut=no 14565fi 14566 14567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14568fi 14569 14570 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 14571echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; } 14572 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then 14573 cat >>confdefs.h <<\_ACEOF 14574#define HAVE_STAT_FLAGS 1 14575_ACEOF 14576 14577 fi 14578fi 14579{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 14580echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } 14581if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then 14582 echo $ECHO_N "(cached) $ECHO_C" >&6 14583else 14584 cat >conftest.$ac_ext <<_ACEOF 14585/* confdefs.h. */ 14586_ACEOF 14587cat confdefs.h >>conftest.$ac_ext 14588cat >>conftest.$ac_ext <<_ACEOF 14589/* end confdefs.h. */ 14590#include <sys/types.h> 14591 #include <sys/socket.h> 14592 14593int 14594main () 14595{ 14596static struct sockaddr ac_aggr; 14597if (ac_aggr.sa_len) 14598return 0; 14599 ; 14600 return 0; 14601} 14602_ACEOF 14603rm -f conftest.$ac_objext 14604if { (ac_try="$ac_compile" 14605case "(($ac_try" in 14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14607 *) ac_try_echo=$ac_try;; 14608esac 14609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14610 (eval "$ac_compile") 2>conftest.er1 14611 ac_status=$? 14612 grep -v '^ *+' conftest.er1 >conftest.err 14613 rm -f conftest.er1 14614 cat conftest.err >&5 14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14616 (exit $ac_status); } && { 14617 test -z "$ac_c_werror_flag" || 14618 test ! -s conftest.err 14619 } && test -s conftest.$ac_objext; then 14620 ac_cv_member_struct_sockaddr_sa_len=yes 14621else 14622 echo "$as_me: failed program was:" >&5 14623sed 's/^/| /' conftest.$ac_ext >&5 14624 14625 cat >conftest.$ac_ext <<_ACEOF 14626/* confdefs.h. */ 14627_ACEOF 14628cat confdefs.h >>conftest.$ac_ext 14629cat >>conftest.$ac_ext <<_ACEOF 14630/* end confdefs.h. */ 14631#include <sys/types.h> 14632 #include <sys/socket.h> 14633 14634int 14635main () 14636{ 14637static struct sockaddr ac_aggr; 14638if (sizeof ac_aggr.sa_len) 14639return 0; 14640 ; 14641 return 0; 14642} 14643_ACEOF 14644rm -f conftest.$ac_objext 14645if { (ac_try="$ac_compile" 14646case "(($ac_try" in 14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14648 *) ac_try_echo=$ac_try;; 14649esac 14650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14651 (eval "$ac_compile") 2>conftest.er1 14652 ac_status=$? 14653 grep -v '^ *+' conftest.er1 >conftest.err 14654 rm -f conftest.er1 14655 cat conftest.err >&5 14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14657 (exit $ac_status); } && { 14658 test -z "$ac_c_werror_flag" || 14659 test ! -s conftest.err 14660 } && test -s conftest.$ac_objext; then 14661 ac_cv_member_struct_sockaddr_sa_len=yes 14662else 14663 echo "$as_me: failed program was:" >&5 14664sed 's/^/| /' conftest.$ac_ext >&5 14665 14666 ac_cv_member_struct_sockaddr_sa_len=no 14667fi 14668 14669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14670fi 14671 14672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14673fi 14674{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 14675echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } 14676if test $ac_cv_member_struct_sockaddr_sa_len = yes; then 14677 14678cat >>confdefs.h <<_ACEOF 14679#define HAVE_SA_LEN 1 14680_ACEOF 14681 14682fi 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep 14716do 14717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14718{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14720if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14721 echo $ECHO_N "(cached) $ECHO_C" >&6 14722else 14723 cat >conftest.$ac_ext <<_ACEOF 14724/* confdefs.h. */ 14725_ACEOF 14726cat confdefs.h >>conftest.$ac_ext 14727cat >>conftest.$ac_ext <<_ACEOF 14728/* end confdefs.h. */ 14729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14730 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14731#define $ac_func innocuous_$ac_func 14732 14733/* System header to define __stub macros and hopefully few prototypes, 14734 which can conflict with char $ac_func (); below. 14735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14736 <limits.h> exists even on freestanding compilers. */ 14737 14738#ifdef __STDC__ 14739# include <limits.h> 14740#else 14741# include <assert.h> 14742#endif 14743 14744#undef $ac_func 14745 14746/* Override any GCC internal prototype to avoid an error. 14747 Use char because int might match the return type of a GCC 14748 builtin and then its argument prototype would still apply. */ 14749#ifdef __cplusplus 14750extern "C" 14751#endif 14752char $ac_func (); 14753/* The GNU C library defines this for functions which it implements 14754 to always fail with ENOSYS. Some functions are actually named 14755 something starting with __ and the normal name is an alias. */ 14756#if defined __stub_$ac_func || defined __stub___$ac_func 14757choke me 14758#endif 14759 14760int 14761main () 14762{ 14763return $ac_func (); 14764 ; 14765 return 0; 14766} 14767_ACEOF 14768rm -f conftest.$ac_objext conftest$ac_exeext 14769if { (ac_try="$ac_link" 14770case "(($ac_try" in 14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14772 *) ac_try_echo=$ac_try;; 14773esac 14774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14775 (eval "$ac_link") 2>conftest.er1 14776 ac_status=$? 14777 grep -v '^ *+' conftest.er1 >conftest.err 14778 rm -f conftest.er1 14779 cat conftest.err >&5 14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14781 (exit $ac_status); } && { 14782 test -z "$ac_c_werror_flag" || 14783 test ! -s conftest.err 14784 } && test -s conftest$ac_exeext && 14785 $as_test_x conftest$ac_exeext; then 14786 eval "$as_ac_var=yes" 14787else 14788 echo "$as_me: failed program was:" >&5 14789sed 's/^/| /' conftest.$ac_ext >&5 14790 14791 eval "$as_ac_var=no" 14792fi 14793 14794rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14795 conftest$ac_exeext conftest.$ac_ext 14796fi 14797ac_res=`eval echo '${'$as_ac_var'}'` 14798 { echo "$as_me:$LINENO: result: $ac_res" >&5 14799echo "${ECHO_T}$ac_res" >&6; } 14800if test `eval echo '${'$as_ac_var'}'` = yes; then 14801 cat >>confdefs.h <<_ACEOF 14802#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14803_ACEOF 14804 14805fi 14806done 14807 14808SOCKET_LIB='' 14809{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 14810echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } 14811if test "${ac_cv_lib_socket_socket+set}" = set; then 14812 echo $ECHO_N "(cached) $ECHO_C" >&6 14813else 14814 ac_check_lib_save_LIBS=$LIBS 14815LIBS="-lsocket $LIBS" 14816cat >conftest.$ac_ext <<_ACEOF 14817/* confdefs.h. */ 14818_ACEOF 14819cat confdefs.h >>conftest.$ac_ext 14820cat >>conftest.$ac_ext <<_ACEOF 14821/* end confdefs.h. */ 14822 14823/* Override any GCC internal prototype to avoid an error. 14824 Use char because int might match the return type of a GCC 14825 builtin and then its argument prototype would still apply. */ 14826#ifdef __cplusplus 14827extern "C" 14828#endif 14829char socket (); 14830int 14831main () 14832{ 14833return socket (); 14834 ; 14835 return 0; 14836} 14837_ACEOF 14838rm -f conftest.$ac_objext conftest$ac_exeext 14839if { (ac_try="$ac_link" 14840case "(($ac_try" in 14841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14842 *) ac_try_echo=$ac_try;; 14843esac 14844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14845 (eval "$ac_link") 2>conftest.er1 14846 ac_status=$? 14847 grep -v '^ *+' conftest.er1 >conftest.err 14848 rm -f conftest.er1 14849 cat conftest.err >&5 14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14851 (exit $ac_status); } && { 14852 test -z "$ac_c_werror_flag" || 14853 test ! -s conftest.err 14854 } && test -s conftest$ac_exeext && 14855 $as_test_x conftest$ac_exeext; then 14856 ac_cv_lib_socket_socket=yes 14857else 14858 echo "$as_me: failed program was:" >&5 14859sed 's/^/| /' conftest.$ac_ext >&5 14860 14861 ac_cv_lib_socket_socket=no 14862fi 14863 14864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14865 conftest$ac_exeext conftest.$ac_ext 14866LIBS=$ac_check_lib_save_LIBS 14867fi 14868{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 14869echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 14870if test $ac_cv_lib_socket_socket = yes; then 14871 SOCKET_LIB=-lsocket 14872fi 14873 14874 14875DLOPEN_LIB='' 14876{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 14877echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 14878if test "${ac_cv_lib_dl_dlopen+set}" = set; then 14879 echo $ECHO_N "(cached) $ECHO_C" >&6 14880else 14881 ac_check_lib_save_LIBS=$LIBS 14882LIBS="-ldl $LIBS" 14883cat >conftest.$ac_ext <<_ACEOF 14884/* confdefs.h. */ 14885_ACEOF 14886cat confdefs.h >>conftest.$ac_ext 14887cat >>conftest.$ac_ext <<_ACEOF 14888/* end confdefs.h. */ 14889 14890/* Override any GCC internal prototype to avoid an error. 14891 Use char because int might match the return type of a GCC 14892 builtin and then its argument prototype would still apply. */ 14893#ifdef __cplusplus 14894extern "C" 14895#endif 14896char dlopen (); 14897int 14898main () 14899{ 14900return dlopen (); 14901 ; 14902 return 0; 14903} 14904_ACEOF 14905rm -f conftest.$ac_objext conftest$ac_exeext 14906if { (ac_try="$ac_link" 14907case "(($ac_try" in 14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14909 *) ac_try_echo=$ac_try;; 14910esac 14911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14912 (eval "$ac_link") 2>conftest.er1 14913 ac_status=$? 14914 grep -v '^ *+' conftest.er1 >conftest.err 14915 rm -f conftest.er1 14916 cat conftest.err >&5 14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14918 (exit $ac_status); } && { 14919 test -z "$ac_c_werror_flag" || 14920 test ! -s conftest.err 14921 } && test -s conftest$ac_exeext && 14922 $as_test_x conftest$ac_exeext; then 14923 ac_cv_lib_dl_dlopen=yes 14924else 14925 echo "$as_me: failed program was:" >&5 14926sed 's/^/| /' conftest.$ac_ext >&5 14927 14928 ac_cv_lib_dl_dlopen=no 14929fi 14930 14931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14932 conftest$ac_exeext conftest.$ac_ext 14933LIBS=$ac_check_lib_save_LIBS 14934fi 14935{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 14936echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 14937if test $ac_cv_lib_dl_dlopen = yes; then 14938 DLOPEN_LIB=-ldl 14939cat >>confdefs.h <<\_ACEOF 14940#define HAVE_DLOPEN 1 14941_ACEOF 14942 14943fi 14944 14945 14946{ echo "$as_me:$LINENO: checking for optreset" >&5 14947echo $ECHO_N "checking for optreset... $ECHO_C" >&6; } 14948if test "${ac_cv_have_optreset+set}" = set; then 14949 echo $ECHO_N "(cached) $ECHO_C" >&6 14950else 14951 cat >conftest.$ac_ext <<_ACEOF 14952/* confdefs.h. */ 14953_ACEOF 14954cat confdefs.h >>conftest.$ac_ext 14955cat >>conftest.$ac_ext <<_ACEOF 14956/* end confdefs.h. */ 14957#include <unistd.h> 14958 14959_ACEOF 14960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14961 $EGREP "optreset" >/dev/null 2>&1; then 14962 ac_cv_have_optreset=yes 14963else 14964 ac_cv_have_optreset=no 14965fi 14966rm -f conftest* 14967 14968fi 14969{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 14970echo "${ECHO_T}$ac_cv_have_optreset" >&6; } 14971if test $ac_cv_have_optreset = yes; then 14972 cat >>confdefs.h <<\_ACEOF 14973#define HAVE_OPTRESET 1 14974_ACEOF 14975 14976fi 14977SEM_INIT_LIB='' 14978{ echo "$as_me:$LINENO: checking for sem_init" >&5 14979echo $ECHO_N "checking for sem_init... $ECHO_C" >&6; } 14980if test "${ac_cv_func_sem_init+set}" = set; then 14981 echo $ECHO_N "(cached) $ECHO_C" >&6 14982else 14983 cat >conftest.$ac_ext <<_ACEOF 14984/* confdefs.h. */ 14985_ACEOF 14986cat confdefs.h >>conftest.$ac_ext 14987cat >>conftest.$ac_ext <<_ACEOF 14988/* end confdefs.h. */ 14989/* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init. 14990 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14991#define sem_init innocuous_sem_init 14992 14993/* System header to define __stub macros and hopefully few prototypes, 14994 which can conflict with char sem_init (); below. 14995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14996 <limits.h> exists even on freestanding compilers. */ 14997 14998#ifdef __STDC__ 14999# include <limits.h> 15000#else 15001# include <assert.h> 15002#endif 15003 15004#undef sem_init 15005 15006/* Override any GCC internal prototype to avoid an error. 15007 Use char because int might match the return type of a GCC 15008 builtin and then its argument prototype would still apply. */ 15009#ifdef __cplusplus 15010extern "C" 15011#endif 15012char sem_init (); 15013/* The GNU C library defines this for functions which it implements 15014 to always fail with ENOSYS. Some functions are actually named 15015 something starting with __ and the normal name is an alias. */ 15016#if defined __stub_sem_init || defined __stub___sem_init 15017choke me 15018#endif 15019 15020int 15021main () 15022{ 15023return sem_init (); 15024 ; 15025 return 0; 15026} 15027_ACEOF 15028rm -f conftest.$ac_objext conftest$ac_exeext 15029if { (ac_try="$ac_link" 15030case "(($ac_try" in 15031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15032 *) ac_try_echo=$ac_try;; 15033esac 15034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15035 (eval "$ac_link") 2>conftest.er1 15036 ac_status=$? 15037 grep -v '^ *+' conftest.er1 >conftest.err 15038 rm -f conftest.er1 15039 cat conftest.err >&5 15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15041 (exit $ac_status); } && { 15042 test -z "$ac_c_werror_flag" || 15043 test ! -s conftest.err 15044 } && test -s conftest$ac_exeext && 15045 $as_test_x conftest$ac_exeext; then 15046 ac_cv_func_sem_init=yes 15047else 15048 echo "$as_me: failed program was:" >&5 15049sed 's/^/| /' conftest.$ac_ext >&5 15050 15051 ac_cv_func_sem_init=no 15052fi 15053 15054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15055 conftest$ac_exeext conftest.$ac_ext 15056fi 15057{ echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5 15058echo "${ECHO_T}$ac_cv_func_sem_init" >&6; } 15059if test $ac_cv_func_sem_init = yes; then 15060 : 15061else 15062 { echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5 15063echo $ECHO_N "checking for sem_init in -lpthread... $ECHO_C" >&6; } 15064if test "${ac_cv_lib_pthread_sem_init+set}" = set; then 15065 echo $ECHO_N "(cached) $ECHO_C" >&6 15066else 15067 ac_check_lib_save_LIBS=$LIBS 15068LIBS="-lpthread $LIBS" 15069cat >conftest.$ac_ext <<_ACEOF 15070/* confdefs.h. */ 15071_ACEOF 15072cat confdefs.h >>conftest.$ac_ext 15073cat >>conftest.$ac_ext <<_ACEOF 15074/* end confdefs.h. */ 15075 15076/* Override any GCC internal prototype to avoid an error. 15077 Use char because int might match the return type of a GCC 15078 builtin and then its argument prototype would still apply. */ 15079#ifdef __cplusplus 15080extern "C" 15081#endif 15082char sem_init (); 15083int 15084main () 15085{ 15086return sem_init (); 15087 ; 15088 return 0; 15089} 15090_ACEOF 15091rm -f conftest.$ac_objext conftest$ac_exeext 15092if { (ac_try="$ac_link" 15093case "(($ac_try" in 15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15095 *) ac_try_echo=$ac_try;; 15096esac 15097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15098 (eval "$ac_link") 2>conftest.er1 15099 ac_status=$? 15100 grep -v '^ *+' conftest.er1 >conftest.err 15101 rm -f conftest.er1 15102 cat conftest.err >&5 15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15104 (exit $ac_status); } && { 15105 test -z "$ac_c_werror_flag" || 15106 test ! -s conftest.err 15107 } && test -s conftest$ac_exeext && 15108 $as_test_x conftest$ac_exeext; then 15109 ac_cv_lib_pthread_sem_init=yes 15110else 15111 echo "$as_me: failed program was:" >&5 15112sed 's/^/| /' conftest.$ac_ext >&5 15113 15114 ac_cv_lib_pthread_sem_init=no 15115fi 15116 15117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15118 conftest$ac_exeext conftest.$ac_ext 15119LIBS=$ac_check_lib_save_LIBS 15120fi 15121{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5 15122echo "${ECHO_T}$ac_cv_lib_pthread_sem_init" >&6; } 15123if test $ac_cv_lib_pthread_sem_init = yes; then 15124 cat >>confdefs.h <<\_ACEOF 15125#define HAVE_SEM_INIT 1 15126_ACEOF 15127 15128 SEM_INIT_LIB=-lpthread 15129else 15130 { echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5 15131echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6; } 15132if test "${ac_cv_lib_rt_sem_init+set}" = set; then 15133 echo $ECHO_N "(cached) $ECHO_C" >&6 15134else 15135 ac_check_lib_save_LIBS=$LIBS 15136LIBS="-lrt $LIBS" 15137cat >conftest.$ac_ext <<_ACEOF 15138/* confdefs.h. */ 15139_ACEOF 15140cat confdefs.h >>conftest.$ac_ext 15141cat >>conftest.$ac_ext <<_ACEOF 15142/* end confdefs.h. */ 15143 15144/* Override any GCC internal prototype to avoid an error. 15145 Use char because int might match the return type of a GCC 15146 builtin and then its argument prototype would still apply. */ 15147#ifdef __cplusplus 15148extern "C" 15149#endif 15150char sem_init (); 15151int 15152main () 15153{ 15154return sem_init (); 15155 ; 15156 return 0; 15157} 15158_ACEOF 15159rm -f conftest.$ac_objext conftest$ac_exeext 15160if { (ac_try="$ac_link" 15161case "(($ac_try" in 15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15163 *) ac_try_echo=$ac_try;; 15164esac 15165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15166 (eval "$ac_link") 2>conftest.er1 15167 ac_status=$? 15168 grep -v '^ *+' conftest.er1 >conftest.err 15169 rm -f conftest.er1 15170 cat conftest.err >&5 15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15172 (exit $ac_status); } && { 15173 test -z "$ac_c_werror_flag" || 15174 test ! -s conftest.err 15175 } && test -s conftest$ac_exeext && 15176 $as_test_x conftest$ac_exeext; then 15177 ac_cv_lib_rt_sem_init=yes 15178else 15179 echo "$as_me: failed program was:" >&5 15180sed 's/^/| /' conftest.$ac_ext >&5 15181 15182 ac_cv_lib_rt_sem_init=no 15183fi 15184 15185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15186 conftest$ac_exeext conftest.$ac_ext 15187LIBS=$ac_check_lib_save_LIBS 15188fi 15189{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5 15190echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6; } 15191if test $ac_cv_lib_rt_sem_init = yes; then 15192 cat >>confdefs.h <<\_ACEOF 15193#define HAVE_SEM_INIT 1 15194_ACEOF 15195 15196 SEM_INIT_LIB=-lrt 15197else 15198 { echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5 15199echo $ECHO_N "checking for sem_init in -lposix4... $ECHO_C" >&6; } 15200if test "${ac_cv_lib_posix4_sem_init+set}" = set; then 15201 echo $ECHO_N "(cached) $ECHO_C" >&6 15202else 15203 ac_check_lib_save_LIBS=$LIBS 15204LIBS="-lposix4 $LIBS" 15205cat >conftest.$ac_ext <<_ACEOF 15206/* confdefs.h. */ 15207_ACEOF 15208cat confdefs.h >>conftest.$ac_ext 15209cat >>conftest.$ac_ext <<_ACEOF 15210/* end confdefs.h. */ 15211 15212/* Override any GCC internal prototype to avoid an error. 15213 Use char because int might match the return type of a GCC 15214 builtin and then its argument prototype would still apply. */ 15215#ifdef __cplusplus 15216extern "C" 15217#endif 15218char sem_init (); 15219int 15220main () 15221{ 15222return sem_init (); 15223 ; 15224 return 0; 15225} 15226_ACEOF 15227rm -f conftest.$ac_objext conftest$ac_exeext 15228if { (ac_try="$ac_link" 15229case "(($ac_try" in 15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15231 *) ac_try_echo=$ac_try;; 15232esac 15233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15234 (eval "$ac_link") 2>conftest.er1 15235 ac_status=$? 15236 grep -v '^ *+' conftest.er1 >conftest.err 15237 rm -f conftest.er1 15238 cat conftest.err >&5 15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15240 (exit $ac_status); } && { 15241 test -z "$ac_c_werror_flag" || 15242 test ! -s conftest.err 15243 } && test -s conftest$ac_exeext && 15244 $as_test_x conftest$ac_exeext; then 15245 ac_cv_lib_posix4_sem_init=yes 15246else 15247 echo "$as_me: failed program was:" >&5 15248sed 's/^/| /' conftest.$ac_ext >&5 15249 15250 ac_cv_lib_posix4_sem_init=no 15251fi 15252 15253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15254 conftest$ac_exeext conftest.$ac_ext 15255LIBS=$ac_check_lib_save_LIBS 15256fi 15257{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5 15258echo "${ECHO_T}$ac_cv_lib_posix4_sem_init" >&6; } 15259if test $ac_cv_lib_posix4_sem_init = yes; then 15260 cat >>confdefs.h <<\_ACEOF 15261#define HAVE_SEM_INIT 1 15262_ACEOF 15263 15264 SEM_INIT_LIB=-lposix4 15265fi 15266 15267fi 15268 15269fi 15270 15271fi 15272 15273{ echo "$as_me:$LINENO: checking for unified diff option" >&5 15274echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; } 15275if diff -u $0 $0 > /dev/null 2>&1 ; then 15276 UNI_DIFF_OPTS=-u 15277else 15278 UNI_DIFF_OPTS=-c 15279fi 15280{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 15281echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; } 15282 15283case "$host_os" in 15284linux*) 15285 cat >>confdefs.h <<\_ACEOF 15286#define HAVE_EXT2_IOCTLS 1 15287_ACEOF 15288 15289 ;; 15290esac 15291LINUX_CMT="#" 15292CYGWIN_CMT="#" 15293UNIX_CMT= 15294case "$host_os" in 15295linux*) 15296 LINUX_CMT= 15297 ;; 15298cygwin) 15299 CYGWIN_CMT= 15300 UNIX_CMT="#" 15301 ;; 15302esac 15303 15304 15305 15306case "$host_os" in 15307linux* | gnu* | k*bsd*-gnu) 15308 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then 15309 root_prefix=""; 15310 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5 15311echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; } 15312 fi 15313 ;; 15314esac 15315case "$host_os" in 15316linux* | gnu* | k*bsd*-gnu) 15317 if test "$prefix" = NONE ; then 15318 prefix="/usr"; 15319 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5 15320echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; } 15321 if test "$mandir" = '${prefix}/man' ; then 15322 { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5 15323echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; } 15324 mandir=/usr/share/man 15325 fi 15326 fi 15327;; 15328esac 15329if test "$root_prefix" = NONE ; then 15330 if test "$prefix" = NONE ; then 15331 root_prefix="$ac_default_prefix" 15332 else 15333 root_prefix="$prefix" 15334 fi 15335 root_bindir=$bindir 15336 root_sbindir=$sbindir 15337 root_libdir=$libdir 15338 root_sysconfdir=$sysconfdir 15339else 15340 root_bindir='${root_prefix}/bin' 15341 root_sbindir='${root_prefix}/sbin' 15342 root_libdir='${root_prefix}/lib' 15343 root_sysconfdir='${root_prefix}/etc' 15344fi 15345if test "$bindir" != '${exec_prefix}/bin'; then 15346 root_bindir=$bindir 15347 { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5 15348echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; } 15349fi 15350if test "$sbindir" != '${exec_prefix}/sbin'; then 15351 root_sbindir=$sbindir 15352 { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5 15353echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; } 15354fi 15355if test "$libdir" != '${exec_prefix}/lib'; then 15356 root_libdir=$libdir 15357 { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5 15358echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; } 15359fi 15360if test "$sysconfdir" != '${prefix}/etc'; then 15361 root_sysconfdir=$sysconfdir 15362 { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5 15363echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; } 15364fi 15365 15366 15367 15368 15369 15370{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 15371echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; } 15372if test "${ac_cv_e2fsprogs_use_static+set}" = set; then 15373 echo $ECHO_N "(cached) $ECHO_C" >&6 15374else 15375 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" 15376cat >conftest.$ac_ext <<_ACEOF 15377/* confdefs.h. */ 15378_ACEOF 15379cat confdefs.h >>conftest.$ac_ext 15380cat >>conftest.$ac_ext <<_ACEOF 15381/* end confdefs.h. */ 15382#include <stdio.h> 15383int 15384main () 15385{ 15386fflush(stdout); 15387 ; 15388 return 0; 15389} 15390_ACEOF 15391rm -f conftest.$ac_objext conftest$ac_exeext 15392if { (ac_try="$ac_link" 15393case "(($ac_try" in 15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15395 *) ac_try_echo=$ac_try;; 15396esac 15397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15398 (eval "$ac_link") 2>conftest.er1 15399 ac_status=$? 15400 grep -v '^ *+' conftest.er1 >conftest.err 15401 rm -f conftest.er1 15402 cat conftest.err >&5 15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15404 (exit $ac_status); } && { 15405 test -z "$ac_c_werror_flag" || 15406 test ! -s conftest.err 15407 } && test -s conftest$ac_exeext && 15408 $as_test_x conftest$ac_exeext; then 15409 ac_cv_e2fsprogs_use_static=yes 15410else 15411 echo "$as_me: failed program was:" >&5 15412sed 's/^/| /' conftest.$ac_ext >&5 15413 15414 ac_cv_e2fsprogs_use_static=no 15415fi 15416 15417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15418 conftest$ac_exeext conftest.$ac_ext 15419LDFLAGS=$SAVE_LDFLAGS 15420fi 15421 15422case "$host_os" in 15423solaris2.*) 15424 ac_cv_e2fsprogs_use_static=no 15425;; 15426esac 15427{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 15428echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; } 15429LDFLAG_STATIC= 15430if test $ac_cv_e2fsprogs_use_static = yes; then 15431 LDFLAG_STATIC=-static 15432fi 15433 15434case "$host_os" in 15435darwin*) 15436 { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5 15437echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; } 15438 cat >>confdefs.h <<\_ACEOF 15439#define _INTL_REDIRECT_MACROS 1 15440_ACEOF 15441 15442 ;; 15443esac 15444SS_DIR=`cd ${srcdir}/lib/ss; pwd` 15445ET_DIR=`cd ${srcdir}/lib/et; pwd` 15446 15447 15448if test "$cross_compiling" = yes ; then 15449 DO_TEST_SUITE= 15450else 15451 DO_TEST_SUITE=check 15452fi 15453 15454INTL_FLAGS= 15455if test "$USE_INCLUDED_LIBINTL" = "yes" ; then 15456 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' 15457fi 15458 15459if test $cross_compiling = no; then 15460 BUILD_CFLAGS="$CFLAGS" 15461 BUILD_LDFLAGS="$LDFLAGS" 15462else 15463 BUILD_CFLAGS= 15464 BUILD_LDFLAGS= 15465fi 15466 15467 15468test -d lib || mkdir lib 15469test -d include || mkdir include 15470test -d include/linux || mkdir include/linux 15471test -d include/asm || mkdir include/asm 15472for i in MCONFIG Makefile e2fsprogs.spec \ 15473 util/Makefile util/subst.conf util/gen-tarball \ 15474 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ 15475 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ 15476 lib/uuid/Makefile lib/uuid/uuid_types.h \ 15477 lib/blkid/Makefile lib/blkid/blkid_types.h \ 15478 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ 15479 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ 15480 misc/Makefile ext2ed/Makefile e2fsck/Makefile \ 15481 debugfs/Makefile tests/Makefile tests/progs/Makefile \ 15482 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do 15483 if test -d `dirname ${srcdir}/$i` ; then 15484 outlist="$outlist $i" 15485 fi 15486done 15487ac_config_files="$ac_config_files $outlist" 15488 15489cat >confcache <<\_ACEOF 15490# This file is a shell script that caches the results of configure 15491# tests run on this system so they can be shared between configure 15492# scripts and configure runs, see configure's option --config-cache. 15493# It is not useful on other systems. If it contains results you don't 15494# want to keep, you may remove or edit it. 15495# 15496# config.status only pays attention to the cache file if you give it 15497# the --recheck option to rerun configure. 15498# 15499# `ac_cv_env_foo' variables (set or unset) will be overridden when 15500# loading this file, other *unset* `ac_cv_foo' will be assigned the 15501# following values. 15502 15503_ACEOF 15504 15505# The following way of writing the cache mishandles newlines in values, 15506# but we know of no workaround that is simple, portable, and efficient. 15507# So, we kill variables containing newlines. 15508# Ultrix sh set writes to stderr and can't be redirected directly, 15509# and sets the high bit in the cache file unless we assign to the vars. 15510( 15511 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15512 eval ac_val=\$$ac_var 15513 case $ac_val in #( 15514 *${as_nl}*) 15515 case $ac_var in #( 15516 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 15517echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 15518 esac 15519 case $ac_var in #( 15520 _ | IFS | as_nl) ;; #( 15521 *) $as_unset $ac_var ;; 15522 esac ;; 15523 esac 15524 done 15525 15526 (set) 2>&1 | 15527 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15528 *${as_nl}ac_space=\ *) 15529 # `set' does not quote correctly, so add quotes (double-quote 15530 # substitution turns \\\\ into \\, and sed turns \\ into \). 15531 sed -n \ 15532 "s/'/'\\\\''/g; 15533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15534 ;; #( 15535 *) 15536 # `set' quotes correctly as required by POSIX, so do not add quotes. 15537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15538 ;; 15539 esac | 15540 sort 15541) | 15542 sed ' 15543 /^ac_cv_env_/b end 15544 t clear 15545 :clear 15546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15547 t end 15548 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15549 :end' >>confcache 15550if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15551 if test -w "$cache_file"; then 15552 test "x$cache_file" != "x/dev/null" && 15553 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 15554echo "$as_me: updating cache $cache_file" >&6;} 15555 cat confcache >$cache_file 15556 else 15557 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 15558echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15559 fi 15560fi 15561rm -f confcache 15562 15563test "x$prefix" = xNONE && prefix=$ac_default_prefix 15564# Let make expand exec_prefix. 15565test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15566 15567# Transform confdefs.h into DEFS. 15568# Protect against shell expansion while executing Makefile rules. 15569# Protect against Makefile macro expansion. 15570# 15571# If the first sed substitution is executed (which looks for macros that 15572# take arguments), then branch to the quote section. Otherwise, 15573# look for a macro that doesn't take arguments. 15574ac_script=' 15575t clear 15576:clear 15577s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 15578t quote 15579s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 15580t quote 15581b any 15582:quote 15583s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 15584s/\[/\\&/g 15585s/\]/\\&/g 15586s/\$/$$/g 15587H 15588:any 15589${ 15590 g 15591 s/^\n// 15592 s/\n/ /g 15593 p 15594} 15595' 15596DEFS=`sed -n "$ac_script" confdefs.h` 15597 15598 15599ac_libobjs= 15600ac_ltlibobjs= 15601for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15602 # 1. Remove the extension, and $U if already installed. 15603 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15604 ac_i=`echo "$ac_i" | sed "$ac_script"` 15605 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15606 # will be set to the directory where LIBOBJS objects are built. 15607 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15608 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 15609done 15610LIBOBJS=$ac_libobjs 15611 15612LTLIBOBJS=$ac_ltlibobjs 15613 15614 15615 15616: ${CONFIG_STATUS=./config.status} 15617ac_clean_files_save=$ac_clean_files 15618ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15619{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 15620echo "$as_me: creating $CONFIG_STATUS" >&6;} 15621cat >$CONFIG_STATUS <<_ACEOF 15622#! $SHELL 15623# Generated by $as_me. 15624# Run this file to recreate the current configuration. 15625# Compiler output produced by configure, useful for debugging 15626# configure, is in config.log if it exists. 15627 15628debug=false 15629ac_cs_recheck=false 15630ac_cs_silent=false 15631SHELL=\${CONFIG_SHELL-$SHELL} 15632_ACEOF 15633 15634cat >>$CONFIG_STATUS <<\_ACEOF 15635## --------------------- ## 15636## M4sh Initialization. ## 15637## --------------------- ## 15638 15639# Be more Bourne compatible 15640DUALCASE=1; export DUALCASE # for MKS sh 15641if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15642 emulate sh 15643 NULLCMD=: 15644 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 15645 # is contrary to our usage. Disable this feature. 15646 alias -g '${1+"$@"}'='"$@"' 15647 setopt NO_GLOB_SUBST 15648else 15649 case `(set -o) 2>/dev/null` in 15650 *posix*) set -o posix ;; 15651esac 15652 15653fi 15654 15655 15656 15657 15658# PATH needs CR 15659# Avoid depending upon Character Ranges. 15660as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15661as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15662as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15663as_cr_digits='0123456789' 15664as_cr_alnum=$as_cr_Letters$as_cr_digits 15665 15666# The user is always right. 15667if test "${PATH_SEPARATOR+set}" != set; then 15668 echo "#! /bin/sh" >conf$$.sh 15669 echo "exit 0" >>conf$$.sh 15670 chmod +x conf$$.sh 15671 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 15672 PATH_SEPARATOR=';' 15673 else 15674 PATH_SEPARATOR=: 15675 fi 15676 rm -f conf$$.sh 15677fi 15678 15679# Support unset when possible. 15680if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 15681 as_unset=unset 15682else 15683 as_unset=false 15684fi 15685 15686 15687# IFS 15688# We need space, tab and new line, in precisely that order. Quoting is 15689# there to prevent editors from complaining about space-tab. 15690# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15691# splitting by setting IFS to empty value.) 15692as_nl=' 15693' 15694IFS=" "" $as_nl" 15695 15696# Find who we are. Look in the path if we contain no directory separator. 15697case $0 in 15698 *[\\/]* ) as_myself=$0 ;; 15699 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15700for as_dir in $PATH 15701do 15702 IFS=$as_save_IFS 15703 test -z "$as_dir" && as_dir=. 15704 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15705done 15706IFS=$as_save_IFS 15707 15708 ;; 15709esac 15710# We did not find ourselves, most probably we were run as `sh COMMAND' 15711# in which case we are not to be found in the path. 15712if test "x$as_myself" = x; then 15713 as_myself=$0 15714fi 15715if test ! -f "$as_myself"; then 15716 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15717 { (exit 1); exit 1; } 15718fi 15719 15720# Work around bugs in pre-3.0 UWIN ksh. 15721for as_var in ENV MAIL MAILPATH 15722do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 15723done 15724PS1='$ ' 15725PS2='> ' 15726PS4='+ ' 15727 15728# NLS nuisances. 15729for as_var in \ 15730 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 15731 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 15732 LC_TELEPHONE LC_TIME 15733do 15734 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 15735 eval $as_var=C; export $as_var 15736 else 15737 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 15738 fi 15739done 15740 15741# Required to use basename. 15742if expr a : '\(a\)' >/dev/null 2>&1 && 15743 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15744 as_expr=expr 15745else 15746 as_expr=false 15747fi 15748 15749if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15750 as_basename=basename 15751else 15752 as_basename=false 15753fi 15754 15755 15756# Name of the executable. 15757as_me=`$as_basename -- "$0" || 15758$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15759 X"$0" : 'X\(//\)$' \| \ 15760 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15761echo X/"$0" | 15762 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15763 s//\1/ 15764 q 15765 } 15766 /^X\/\(\/\/\)$/{ 15767 s//\1/ 15768 q 15769 } 15770 /^X\/\(\/\).*/{ 15771 s//\1/ 15772 q 15773 } 15774 s/.*/./; q'` 15775 15776# CDPATH. 15777$as_unset CDPATH 15778 15779 15780 15781 as_lineno_1=$LINENO 15782 as_lineno_2=$LINENO 15783 test "x$as_lineno_1" != "x$as_lineno_2" && 15784 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 15785 15786 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 15787 # uniformly replaced by the line number. The first 'sed' inserts a 15788 # line-number line after each line using $LINENO; the second 'sed' 15789 # does the real work. The second script uses 'N' to pair each 15790 # line-number line with the line containing $LINENO, and appends 15791 # trailing '-' during substitution so that $LINENO is not a special 15792 # case at line end. 15793 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 15794 # scripts with optimization help from Paolo Bonzini. Blame Lee 15795 # E. McMahon (1931-1989) for sed's syntax. :-) 15796 sed -n ' 15797 p 15798 /[$]LINENO/= 15799 ' <$as_myself | 15800 sed ' 15801 s/[$]LINENO.*/&-/ 15802 t lineno 15803 b 15804 :lineno 15805 N 15806 :loop 15807 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 15808 t loop 15809 s/-\n.*// 15810 ' >$as_me.lineno && 15811 chmod +x "$as_me.lineno" || 15812 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 15813 { (exit 1); exit 1; }; } 15814 15815 # Don't try to exec as it changes $[0], causing all sort of problems 15816 # (the dirname of $[0] is not the place where we might find the 15817 # original and so on. Autoconf is especially sensitive to this). 15818 . "./$as_me.lineno" 15819 # Exit status is that of the last command. 15820 exit 15821} 15822 15823 15824if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15825 as_dirname=dirname 15826else 15827 as_dirname=false 15828fi 15829 15830ECHO_C= ECHO_N= ECHO_T= 15831case `echo -n x` in 15832-n*) 15833 case `echo 'x\c'` in 15834 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15835 *) ECHO_C='\c';; 15836 esac;; 15837*) 15838 ECHO_N='-n';; 15839esac 15840 15841if expr a : '\(a\)' >/dev/null 2>&1 && 15842 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15843 as_expr=expr 15844else 15845 as_expr=false 15846fi 15847 15848rm -f conf$$ conf$$.exe conf$$.file 15849if test -d conf$$.dir; then 15850 rm -f conf$$.dir/conf$$.file 15851else 15852 rm -f conf$$.dir 15853 mkdir conf$$.dir 15854fi 15855echo >conf$$.file 15856if ln -s conf$$.file conf$$ 2>/dev/null; then 15857 as_ln_s='ln -s' 15858 # ... but there are two gotchas: 15859 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15860 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15861 # In both cases, we have to default to `cp -p'. 15862 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15863 as_ln_s='cp -p' 15864elif ln conf$$.file conf$$ 2>/dev/null; then 15865 as_ln_s=ln 15866else 15867 as_ln_s='cp -p' 15868fi 15869rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15870rmdir conf$$.dir 2>/dev/null 15871 15872if mkdir -p . 2>/dev/null; then 15873 as_mkdir_p=: 15874else 15875 test -d ./-p && rmdir ./-p 15876 as_mkdir_p=false 15877fi 15878 15879if test -x / >/dev/null 2>&1; then 15880 as_test_x='test -x' 15881else 15882 if ls -dL / >/dev/null 2>&1; then 15883 as_ls_L_option=L 15884 else 15885 as_ls_L_option= 15886 fi 15887 as_test_x=' 15888 eval sh -c '\'' 15889 if test -d "$1"; then 15890 test -d "$1/."; 15891 else 15892 case $1 in 15893 -*)set "./$1";; 15894 esac; 15895 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 15896 ???[sx]*):;;*)false;;esac;fi 15897 '\'' sh 15898 ' 15899fi 15900as_executable_p=$as_test_x 15901 15902# Sed expression to map a string onto a valid CPP name. 15903as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15904 15905# Sed expression to map a string onto a valid variable name. 15906as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15907 15908 15909exec 6>&1 15910 15911# Save the log message, to keep $[0] and so on meaningful, and to 15912# report actual input values of CONFIG_FILES etc. instead of their 15913# values after options handling. 15914ac_log=" 15915This file was extended by $as_me, which was 15916generated by GNU Autoconf 2.61. Invocation command line was 15917 15918 CONFIG_FILES = $CONFIG_FILES 15919 CONFIG_HEADERS = $CONFIG_HEADERS 15920 CONFIG_LINKS = $CONFIG_LINKS 15921 CONFIG_COMMANDS = $CONFIG_COMMANDS 15922 $ $0 $@ 15923 15924on `(hostname || uname -n) 2>/dev/null | sed 1q` 15925" 15926 15927_ACEOF 15928 15929cat >>$CONFIG_STATUS <<_ACEOF 15930# Files that config.status was made for. 15931config_files="$ac_config_files" 15932config_commands="$ac_config_commands" 15933 15934_ACEOF 15935 15936cat >>$CONFIG_STATUS <<\_ACEOF 15937ac_cs_usage="\ 15938\`$as_me' instantiates files from templates according to the 15939current configuration. 15940 15941Usage: $0 [OPTIONS] [FILE]... 15942 15943 -h, --help print this help, then exit 15944 -V, --version print version number and configuration settings, then exit 15945 -q, --quiet do not print progress messages 15946 -d, --debug don't remove temporary files 15947 --recheck update $as_me by reconfiguring in the same conditions 15948 --file=FILE[:TEMPLATE] 15949 instantiate the configuration file FILE 15950 15951Configuration files: 15952$config_files 15953 15954Configuration commands: 15955$config_commands 15956 15957Report bugs to <bug-autoconf@gnu.org>." 15958 15959_ACEOF 15960cat >>$CONFIG_STATUS <<_ACEOF 15961ac_cs_version="\\ 15962config.status 15963configured by $0, generated by GNU Autoconf 2.61, 15964 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 15965 15966Copyright (C) 2006 Free Software Foundation, Inc. 15967This config.status script is free software; the Free Software Foundation 15968gives unlimited permission to copy, distribute and modify it." 15969 15970ac_pwd='$ac_pwd' 15971srcdir='$srcdir' 15972INSTALL='$INSTALL' 15973_ACEOF 15974 15975cat >>$CONFIG_STATUS <<\_ACEOF 15976# If no file are specified by the user, then we need to provide default 15977# value. By we need to know if files were specified by the user. 15978ac_need_defaults=: 15979while test $# != 0 15980do 15981 case $1 in 15982 --*=*) 15983 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15984 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15985 ac_shift=: 15986 ;; 15987 *) 15988 ac_option=$1 15989 ac_optarg=$2 15990 ac_shift=shift 15991 ;; 15992 esac 15993 15994 case $ac_option in 15995 # Handling of the options. 15996 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15997 ac_cs_recheck=: ;; 15998 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15999 echo "$ac_cs_version"; exit ;; 16000 --debug | --debu | --deb | --de | --d | -d ) 16001 debug=: ;; 16002 --file | --fil | --fi | --f ) 16003 $ac_shift 16004 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 16005 ac_need_defaults=false;; 16006 --he | --h | --help | --hel | -h ) 16007 echo "$ac_cs_usage"; exit ;; 16008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16009 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16010 ac_cs_silent=: ;; 16011 16012 # This is an error. 16013 -*) { echo "$as_me: error: unrecognized option: $1 16014Try \`$0 --help' for more information." >&2 16015 { (exit 1); exit 1; }; } ;; 16016 16017 *) ac_config_targets="$ac_config_targets $1" 16018 ac_need_defaults=false ;; 16019 16020 esac 16021 shift 16022done 16023 16024ac_configure_extra_args= 16025 16026if $ac_cs_silent; then 16027 exec 6>/dev/null 16028 ac_configure_extra_args="$ac_configure_extra_args --silent" 16029fi 16030 16031_ACEOF 16032cat >>$CONFIG_STATUS <<_ACEOF 16033if \$ac_cs_recheck; then 16034 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 16035 CONFIG_SHELL=$SHELL 16036 export CONFIG_SHELL 16037 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16038fi 16039 16040_ACEOF 16041cat >>$CONFIG_STATUS <<\_ACEOF 16042exec 5>>config.log 16043{ 16044 echo 16045 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16046## Running $as_me. ## 16047_ASBOX 16048 echo "$ac_log" 16049} >&5 16050 16051_ACEOF 16052cat >>$CONFIG_STATUS <<_ACEOF 16053# 16054# INIT-COMMANDS 16055# 16056# Capture the value of obsolete ALL_LINGUAS because we need it to compute 16057 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 16058 # from automake. 16059 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 16060 # Capture the value of LINGUAS because we need it to compute CATALOGS. 16061 LINGUAS="${LINGUAS-%UNSET%}" 16062 16063 16064_ACEOF 16065 16066cat >>$CONFIG_STATUS <<\_ACEOF 16067 16068# Handling of arguments. 16069for ac_config_target in $ac_config_targets 16070do 16071 case $ac_config_target in 16072 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 16073 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; 16074 16075 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 16076echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 16077 { (exit 1); exit 1; }; };; 16078 esac 16079done 16080 16081 16082# If the user did not use the arguments to specify the items to instantiate, 16083# then the envvar interface is used. Set only those that are not. 16084# We use the long form for the default assignment because of an extremely 16085# bizarre bug on SunOS 4.1.3. 16086if $ac_need_defaults; then 16087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16088 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16089fi 16090 16091# Have a temporary directory for convenience. Make it in the build tree 16092# simply because there is no reason against having it here, and in addition, 16093# creating and moving files from /tmp can sometimes cause problems. 16094# Hook for its removal unless debugging. 16095# Note that there is a small window in which the directory will not be cleaned: 16096# after its creation but before its name has been assigned to `$tmp'. 16097$debug || 16098{ 16099 tmp= 16100 trap 'exit_status=$? 16101 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16102' 0 16103 trap '{ (exit 1); exit 1; }' 1 2 13 15 16104} 16105# Create a (secure) tmp directory for tmp files. 16106 16107{ 16108 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16109 test -n "$tmp" && test -d "$tmp" 16110} || 16111{ 16112 tmp=./conf$$-$RANDOM 16113 (umask 077 && mkdir "$tmp") 16114} || 16115{ 16116 echo "$me: cannot create a temporary directory in ." >&2 16117 { (exit 1); exit 1; } 16118} 16119 16120# 16121# Set up the sed scripts for CONFIG_FILES section. 16122# 16123 16124# No need to generate the scripts if there are no CONFIG_FILES. 16125# This happens for instance when ./config.status config.h 16126if test -n "$CONFIG_FILES"; then 16127 16128_ACEOF 16129 16130# Create sed commands to just substitute file output variables. 16131 16132# Remaining file output variables are in a fragment that also has non-file 16133# output varibles. 16134 16135 16136 16137ac_delim='%!_!# ' 16138for ac_last_try in false false false false false :; do 16139 cat >conf$$subs.sed <<_ACEOF 16140SHELL!$SHELL$ac_delim 16141PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 16142PACKAGE_NAME!$PACKAGE_NAME$ac_delim 16143PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 16144PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 16145PACKAGE_STRING!$PACKAGE_STRING$ac_delim 16146PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 16147exec_prefix!$exec_prefix$ac_delim 16148prefix!$prefix$ac_delim 16149program_transform_name!$program_transform_name$ac_delim 16150bindir!$bindir$ac_delim 16151sbindir!$sbindir$ac_delim 16152libexecdir!$libexecdir$ac_delim 16153datarootdir!$datarootdir$ac_delim 16154datadir!$datadir$ac_delim 16155sysconfdir!$sysconfdir$ac_delim 16156sharedstatedir!$sharedstatedir$ac_delim 16157localstatedir!$localstatedir$ac_delim 16158includedir!$includedir$ac_delim 16159oldincludedir!$oldincludedir$ac_delim 16160docdir!$docdir$ac_delim 16161infodir!$infodir$ac_delim 16162htmldir!$htmldir$ac_delim 16163dvidir!$dvidir$ac_delim 16164pdfdir!$pdfdir$ac_delim 16165psdir!$psdir$ac_delim 16166libdir!$libdir$ac_delim 16167localedir!$localedir$ac_delim 16168mandir!$mandir$ac_delim 16169DEFS!$DEFS$ac_delim 16170ECHO_C!$ECHO_C$ac_delim 16171ECHO_N!$ECHO_N$ac_delim 16172ECHO_T!$ECHO_T$ac_delim 16173LIBS!$LIBS$ac_delim 16174build_alias!$build_alias$ac_delim 16175host_alias!$host_alias$ac_delim 16176target_alias!$target_alias$ac_delim 16177E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim 16178E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim 16179E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim 16180E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim 16181E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim 16182build!$build$ac_delim 16183build_cpu!$build_cpu$ac_delim 16184build_vendor!$build_vendor$ac_delim 16185build_os!$build_os$ac_delim 16186host!$host$ac_delim 16187host_cpu!$host_cpu$ac_delim 16188host_vendor!$host_vendor$ac_delim 16189host_os!$host_os$ac_delim 16190CC!$CC$ac_delim 16191CFLAGS!$CFLAGS$ac_delim 16192LDFLAGS!$LDFLAGS$ac_delim 16193CPPFLAGS!$CPPFLAGS$ac_delim 16194ac_ct_CC!$ac_ct_CC$ac_delim 16195EXEEXT!$EXEEXT$ac_delim 16196OBJEXT!$OBJEXT$ac_delim 16197CPP!$CPP$ac_delim 16198LD!$LD$ac_delim 16199GREP!$GREP$ac_delim 16200EGREP!$EGREP$ac_delim 16201LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim 16202MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim 16203HTREE_CMT!$HTREE_CMT$ac_delim 16204ELF_CMT!$ELF_CMT$ac_delim 16205BSDLIB_CMT!$BSDLIB_CMT$ac_delim 16206PROFILE_CMT!$PROFILE_CMT$ac_delim 16207CHECKER_CMT!$CHECKER_CMT$ac_delim 16208LIB_EXT!$LIB_EXT$ac_delim 16209STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim 16210PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim 16211LDFLAG_DYNAMIC!$LDFLAG_DYNAMIC$ac_delim 16212PRIVATE_LIBS_CMT!$PRIVATE_LIBS_CMT$ac_delim 16213_ACEOF 16214 16215 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then 16216 break 16217 elif $ac_last_try; then 16218 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 16219echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 16220 { (exit 1); exit 1; }; } 16221 else 16222 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16223 fi 16224done 16225 16226ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 16227if test -n "$ac_eof"; then 16228 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 16229 ac_eof=`expr $ac_eof + 1` 16230fi 16231 16232cat >>$CONFIG_STATUS <<_ACEOF 16233cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 16234/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16235/^[ ]*@MCONFIG@[ ]*$/{ 16236r $MCONFIG 16237d 16238} 16239/^[ ]*@MAKEFILE_ELF@[ ]*$/{ 16240r $MAKEFILE_ELF 16241d 16242} 16243/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{ 16244r $MAKEFILE_BSDLIB 16245d 16246} 16247/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{ 16248r $MAKEFILE_PROFILE 16249d 16250} 16251/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{ 16252r $MAKEFILE_CHECKER 16253d 16254} 16255/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{ 16256r $MAKEFILE_LIBRARY 16257d 16258} 16259/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{ 16260r $ASM_TYPES_HEADER 16261d 16262} 16263/^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{ 16264r $PUBLIC_CONFIG_HEADER 16265d 16266} 16267_ACEOF 16268sed ' 16269s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 16270s/^/s,@/; s/!/@,|#_!!_#|/ 16271:n 16272t n 16273s/'"$ac_delim"'$/,g/; t 16274s/$/\\/; p 16275N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 16276' >>$CONFIG_STATUS <conf$$subs.sed 16277rm -f conf$$subs.sed 16278cat >>$CONFIG_STATUS <<_ACEOF 16279CEOF$ac_eof 16280_ACEOF 16281 16282 16283ac_delim='%!_!# ' 16284for ac_last_try in false false false false false :; do 16285 cat >conf$$subs.sed <<_ACEOF 16286TEST_IO_CMT!$TEST_IO_CMT$ac_delim 16287DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim 16288IMAGER_CMT!$IMAGER_CMT$ac_delim 16289RESIZER_CMT!$RESIZER_CMT$ac_delim 16290FSCK_PROG!$FSCK_PROG$ac_delim 16291FSCK_MAN!$FSCK_MAN$ac_delim 16292E2INITRD_PROG!$E2INITRD_PROG$ac_delim 16293E2INITRD_MAN!$E2INITRD_MAN$ac_delim 16294UUIDD_CMT!$UUIDD_CMT$ac_delim 16295GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim 16296PACKAGE!$PACKAGE$ac_delim 16297VERSION!$VERSION$ac_delim 16298SET_MAKE!$SET_MAKE$ac_delim 16299INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 16300INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 16301INSTALL_DATA!$INSTALL_DATA$ac_delim 16302MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim 16303USE_NLS!$USE_NLS$ac_delim 16304MSGFMT!$MSGFMT$ac_delim 16305GMSGFMT!$GMSGFMT$ac_delim 16306XGETTEXT!$XGETTEXT$ac_delim 16307MSGMERGE!$MSGMERGE$ac_delim 16308RANLIB!$RANLIB$ac_delim 16309ALLOCA!$ALLOCA$ac_delim 16310GLIBC21!$GLIBC21$ac_delim 16311HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim 16312HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim 16313HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim 16314HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim 16315LIBICONV!$LIBICONV$ac_delim 16316LTLIBICONV!$LTLIBICONV$ac_delim 16317INTLBISON!$INTLBISON$ac_delim 16318BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim 16319USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim 16320CATOBJEXT!$CATOBJEXT$ac_delim 16321DATADIRNAME!$DATADIRNAME$ac_delim 16322INSTOBJEXT!$INSTOBJEXT$ac_delim 16323GENCAT!$GENCAT$ac_delim 16324INTLOBJS!$INTLOBJS$ac_delim 16325INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim 16326INTLLIBS!$INTLLIBS$ac_delim 16327LIBINTL!$LIBINTL$ac_delim 16328LTLIBINTL!$LTLIBINTL$ac_delim 16329POSUB!$POSUB$ac_delim 16330BINARY_TYPE!$BINARY_TYPE$ac_delim 16331LN!$LN$ac_delim 16332LN_S!$LN_S$ac_delim 16333MV!$MV$ac_delim 16334CP!$CP$ac_delim 16335RM!$RM$ac_delim 16336CHMOD!$CHMOD$ac_delim 16337AWK!$AWK$ac_delim 16338SED!$SED$ac_delim 16339PERL!$PERL$ac_delim 16340LDCONFIG!$LDCONFIG$ac_delim 16341AR!$AR$ac_delim 16342STRIP!$STRIP$ac_delim 16343MAKEINFO!$MAKEINFO$ac_delim 16344BUILD_CC!$BUILD_CC$ac_delim 16345SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim 16346SIZEOF_INT!$SIZEOF_INT$ac_delim 16347SIZEOF_LONG!$SIZEOF_LONG$ac_delim 16348SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim 16349SOCKET_LIB!$SOCKET_LIB$ac_delim 16350DLOPEN_LIB!$DLOPEN_LIB$ac_delim 16351SEM_INIT_LIB!$SEM_INIT_LIB$ac_delim 16352UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim 16353LINUX_CMT!$LINUX_CMT$ac_delim 16354CYGWIN_CMT!$CYGWIN_CMT$ac_delim 16355UNIX_CMT!$UNIX_CMT$ac_delim 16356root_prefix!$root_prefix$ac_delim 16357root_bindir!$root_bindir$ac_delim 16358root_sbindir!$root_sbindir$ac_delim 16359root_libdir!$root_libdir$ac_delim 16360root_sysconfdir!$root_sysconfdir$ac_delim 16361LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim 16362SS_DIR!$SS_DIR$ac_delim 16363ET_DIR!$ET_DIR$ac_delim 16364DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim 16365INTL_FLAGS!$INTL_FLAGS$ac_delim 16366BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim 16367BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim 16368LIBOBJS!$LIBOBJS$ac_delim 16369LTLIBOBJS!$LTLIBOBJS$ac_delim 16370_ACEOF 16371 16372 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then 16373 break 16374 elif $ac_last_try; then 16375 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 16376echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 16377 { (exit 1); exit 1; }; } 16378 else 16379 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16380 fi 16381done 16382 16383ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 16384if test -n "$ac_eof"; then 16385 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 16386 ac_eof=`expr $ac_eof + 1` 16387fi 16388 16389cat >>$CONFIG_STATUS <<_ACEOF 16390cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 16391/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 16392_ACEOF 16393sed ' 16394s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 16395s/^/s,@/; s/!/@,|#_!!_#|/ 16396:n 16397t n 16398s/'"$ac_delim"'$/,g/; t 16399s/$/\\/; p 16400N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 16401' >>$CONFIG_STATUS <conf$$subs.sed 16402rm -f conf$$subs.sed 16403cat >>$CONFIG_STATUS <<_ACEOF 16404:end 16405s/|#_!!_#|//g 16406CEOF$ac_eof 16407_ACEOF 16408 16409 16410# VPATH may cause trouble with some makes, so we remove $(srcdir), 16411# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 16412# trailing colons and then remove the whole line if VPATH becomes empty 16413# (actually we leave an empty line to preserve line numbers). 16414if test "x$srcdir" = x.; then 16415 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 16416s/:*\$(srcdir):*/:/ 16417s/:*\${srcdir}:*/:/ 16418s/:*@srcdir@:*/:/ 16419s/^\([^=]*=[ ]*\):*/\1/ 16420s/:*$// 16421s/^[^=]*=[ ]*$// 16422}' 16423fi 16424 16425cat >>$CONFIG_STATUS <<\_ACEOF 16426fi # test -n "$CONFIG_FILES" 16427 16428 16429for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS 16430do 16431 case $ac_tag in 16432 :[FHLC]) ac_mode=$ac_tag; continue;; 16433 esac 16434 case $ac_mode$ac_tag in 16435 :[FHL]*:*);; 16436 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 16437echo "$as_me: error: Invalid tag $ac_tag." >&2;} 16438 { (exit 1); exit 1; }; };; 16439 :[FH]-) ac_tag=-:-;; 16440 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16441 esac 16442 ac_save_IFS=$IFS 16443 IFS=: 16444 set x $ac_tag 16445 IFS=$ac_save_IFS 16446 shift 16447 ac_file=$1 16448 shift 16449 16450 case $ac_mode in 16451 :L) ac_source=$1;; 16452 :[FH]) 16453 ac_file_inputs= 16454 for ac_f 16455 do 16456 case $ac_f in 16457 -) ac_f="$tmp/stdin";; 16458 *) # Look for the file first in the build tree, then in the source tree 16459 # (if the path is not absolute). The absolute path cannot be DOS-style, 16460 # because $ac_f cannot contain `:'. 16461 test -f "$ac_f" || 16462 case $ac_f in 16463 [\\/$]*) false;; 16464 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16465 esac || 16466 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 16467echo "$as_me: error: cannot find input file: $ac_f" >&2;} 16468 { (exit 1); exit 1; }; };; 16469 esac 16470 ac_file_inputs="$ac_file_inputs $ac_f" 16471 done 16472 16473 # Let's still pretend it is `configure' which instantiates (i.e., don't 16474 # use $as_me), people would be surprised to read: 16475 # /* config.h. Generated by config.status. */ 16476 configure_input="Generated from "`IFS=: 16477 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 16478 if test x"$ac_file" != x-; then 16479 configure_input="$ac_file. $configure_input" 16480 { echo "$as_me:$LINENO: creating $ac_file" >&5 16481echo "$as_me: creating $ac_file" >&6;} 16482 fi 16483 16484 case $ac_tag in 16485 *:-:* | *:-) cat >"$tmp/stdin";; 16486 esac 16487 ;; 16488 esac 16489 16490 ac_dir=`$as_dirname -- "$ac_file" || 16491$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16492 X"$ac_file" : 'X\(//\)[^/]' \| \ 16493 X"$ac_file" : 'X\(//\)$' \| \ 16494 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16495echo X"$ac_file" | 16496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16497 s//\1/ 16498 q 16499 } 16500 /^X\(\/\/\)[^/].*/{ 16501 s//\1/ 16502 q 16503 } 16504 /^X\(\/\/\)$/{ 16505 s//\1/ 16506 q 16507 } 16508 /^X\(\/\).*/{ 16509 s//\1/ 16510 q 16511 } 16512 s/.*/./; q'` 16513 { as_dir="$ac_dir" 16514 case $as_dir in #( 16515 -*) as_dir=./$as_dir;; 16516 esac 16517 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 16518 as_dirs= 16519 while :; do 16520 case $as_dir in #( 16521 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 16522 *) as_qdir=$as_dir;; 16523 esac 16524 as_dirs="'$as_qdir' $as_dirs" 16525 as_dir=`$as_dirname -- "$as_dir" || 16526$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16527 X"$as_dir" : 'X\(//\)[^/]' \| \ 16528 X"$as_dir" : 'X\(//\)$' \| \ 16529 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16530echo X"$as_dir" | 16531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16532 s//\1/ 16533 q 16534 } 16535 /^X\(\/\/\)[^/].*/{ 16536 s//\1/ 16537 q 16538 } 16539 /^X\(\/\/\)$/{ 16540 s//\1/ 16541 q 16542 } 16543 /^X\(\/\).*/{ 16544 s//\1/ 16545 q 16546 } 16547 s/.*/./; q'` 16548 test -d "$as_dir" && break 16549 done 16550 test -z "$as_dirs" || eval "mkdir $as_dirs" 16551 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 16552echo "$as_me: error: cannot create directory $as_dir" >&2;} 16553 { (exit 1); exit 1; }; }; } 16554 ac_builddir=. 16555 16556case "$ac_dir" in 16557.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16558*) 16559 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 16560 # A ".." for each directory in $ac_dir_suffix. 16561 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 16562 case $ac_top_builddir_sub in 16563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16565 esac ;; 16566esac 16567ac_abs_top_builddir=$ac_pwd 16568ac_abs_builddir=$ac_pwd$ac_dir_suffix 16569# for backward compatibility: 16570ac_top_builddir=$ac_top_build_prefix 16571 16572case $srcdir in 16573 .) # We are building in place. 16574 ac_srcdir=. 16575 ac_top_srcdir=$ac_top_builddir_sub 16576 ac_abs_top_srcdir=$ac_pwd ;; 16577 [\\/]* | ?:[\\/]* ) # Absolute name. 16578 ac_srcdir=$srcdir$ac_dir_suffix; 16579 ac_top_srcdir=$srcdir 16580 ac_abs_top_srcdir=$srcdir ;; 16581 *) # Relative name. 16582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16583 ac_top_srcdir=$ac_top_build_prefix$srcdir 16584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16585esac 16586ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16587 16588 16589 case $ac_mode in 16590 :F) 16591 # 16592 # CONFIG_FILE 16593 # 16594 16595 case $INSTALL in 16596 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16597 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16598 esac 16599_ACEOF 16600 16601cat >>$CONFIG_STATUS <<\_ACEOF 16602# If the template does not know about datarootdir, expand it. 16603# FIXME: This hack should be removed a few years after 2.60. 16604ac_datarootdir_hack=; ac_datarootdir_seen= 16605 16606case `sed -n '/datarootdir/ { 16607 p 16608 q 16609} 16610/@datadir@/p 16611/@docdir@/p 16612/@infodir@/p 16613/@localedir@/p 16614/@mandir@/p 16615' $ac_file_inputs` in 16616*datarootdir*) ac_datarootdir_seen=yes;; 16617*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16618 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16619echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16620_ACEOF 16621cat >>$CONFIG_STATUS <<_ACEOF 16622 ac_datarootdir_hack=' 16623 s&@datadir@&$datadir&g 16624 s&@docdir@&$docdir&g 16625 s&@infodir@&$infodir&g 16626 s&@localedir@&$localedir&g 16627 s&@mandir@&$mandir&g 16628 s&\\\${datarootdir}&$datarootdir&g' ;; 16629esac 16630_ACEOF 16631 16632# Neutralize VPATH when `$srcdir' = `.'. 16633# Shell code in configure.ac might set extrasub. 16634# FIXME: do we really want to maintain this feature? 16635cat >>$CONFIG_STATUS <<_ACEOF 16636 sed "$ac_vpsub 16637$extrasub 16638_ACEOF 16639cat >>$CONFIG_STATUS <<\_ACEOF 16640:t 16641/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16642s&@configure_input@&$configure_input&;t t 16643s&@top_builddir@&$ac_top_builddir_sub&;t t 16644s&@srcdir@&$ac_srcdir&;t t 16645s&@abs_srcdir@&$ac_abs_srcdir&;t t 16646s&@top_srcdir@&$ac_top_srcdir&;t t 16647s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16648s&@builddir@&$ac_builddir&;t t 16649s&@abs_builddir@&$ac_abs_builddir&;t t 16650s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16651s&@INSTALL@&$ac_INSTALL&;t t 16652$ac_datarootdir_hack 16653" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 16654 16655test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16656 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16657 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16658 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16659which seems to be undefined. Please make sure it is defined." >&5 16660echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16661which seems to be undefined. Please make sure it is defined." >&2;} 16662 16663 rm -f "$tmp/stdin" 16664 case $ac_file in 16665 -) cat "$tmp/out"; rm -f "$tmp/out";; 16666 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 16667 esac 16668 ;; 16669 16670 16671 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 16672echo "$as_me: executing $ac_file commands" >&6;} 16673 ;; 16674 esac 16675 16676 16677 case $ac_file$ac_mode in 16678 "default-1":C) 16679 for ac_file in $CONFIG_FILES; do 16680 # Support "outfile[:infile[:infile...]]" 16681 case "$ac_file" in 16682 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 16683 esac 16684 # PO directories have a Makefile.in generated from Makefile.in.in. 16685 case "$ac_file" in */Makefile.in) 16686 # Adjust a relative srcdir. 16687 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 16688 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 16689 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 16690 # In autoconf-2.13 it is called $ac_given_srcdir. 16691 # In autoconf-2.50 it is called $srcdir. 16692 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 16693 case "$ac_given_srcdir" in 16694 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 16695 /*) top_srcdir="$ac_given_srcdir" ;; 16696 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 16697 esac 16698 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 16699 rm -f "$ac_dir/POTFILES" 16700 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 16701 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 16702 POMAKEFILEDEPS="POTFILES.in" 16703 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 16704 # on $ac_dir but don't depend on user-specified configuration 16705 # parameters. 16706 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 16707 # The LINGUAS file contains the set of available languages. 16708 if test -n "$OBSOLETE_ALL_LINGUAS"; then 16709 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 16710 fi 16711 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 16712 # Hide the ALL_LINGUAS assigment from automake. 16713 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 16714 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 16715 else 16716 # The set of available languages was given in configure.in. 16717 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 16718 fi 16719 # Compute POFILES 16720 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 16721 # Compute UPDATEPOFILES 16722 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 16723 # Compute DUMMYPOFILES 16724 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 16725 # Compute GMOFILES 16726 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 16727 case "$ac_given_srcdir" in 16728 .) srcdirpre= ;; 16729 *) srcdirpre='$(srcdir)/' ;; 16730 esac 16731 POFILES= 16732 UPDATEPOFILES= 16733 DUMMYPOFILES= 16734 GMOFILES= 16735 for lang in $ALL_LINGUAS; do 16736 POFILES="$POFILES $srcdirpre$lang.po" 16737 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 16738 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 16739 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 16740 done 16741 # CATALOGS depends on both $ac_dir and the user's LINGUAS 16742 # environment variable. 16743 INST_LINGUAS= 16744 if test -n "$ALL_LINGUAS"; then 16745 for presentlang in $ALL_LINGUAS; do 16746 useit=no 16747 if test "%UNSET%" != "$LINGUAS"; then 16748 desiredlanguages="$LINGUAS" 16749 else 16750 desiredlanguages="$ALL_LINGUAS" 16751 fi 16752 for desiredlang in $desiredlanguages; do 16753 # Use the presentlang catalog if desiredlang is 16754 # a. equal to presentlang, or 16755 # b. a variant of presentlang (because in this case, 16756 # presentlang can be used as a fallback for messages 16757 # which are not translated in the desiredlang catalog). 16758 case "$desiredlang" in 16759 "$presentlang"*) useit=yes;; 16760 esac 16761 done 16762 if test $useit = yes; then 16763 INST_LINGUAS="$INST_LINGUAS $presentlang" 16764 fi 16765 done 16766 fi 16767 CATALOGS= 16768 if test -n "$INST_LINGUAS"; then 16769 for lang in $INST_LINGUAS; do 16770 CATALOGS="$CATALOGS $lang.gmo" 16771 done 16772 fi 16773 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 16774 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 16775 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 16776 if test -f "$f"; then 16777 case "$f" in 16778 *.orig | *.bak | *~) ;; 16779 *) cat "$f" >> "$ac_dir/Makefile" ;; 16780 esac 16781 fi 16782 done 16783 fi 16784 ;; 16785 esac 16786 done ;; 16787 16788 esac 16789done # for ac_tag 16790 16791 16792{ (exit 0); exit 0; } 16793_ACEOF 16794chmod +x $CONFIG_STATUS 16795ac_clean_files=$ac_clean_files_save 16796 16797 16798# configure is writing to config.log, and then calls config.status. 16799# config.status does its own redirection, appending to config.log. 16800# Unfortunately, on DOS this fails, as config.log is still kept open 16801# by configure, so config.status won't be able to write to it; its 16802# output is simply discarded. So we exec the FD to /dev/null, 16803# effectively closing config.log, so it can be properly (re)opened and 16804# appended to by config.status. When coming back to configure, we 16805# need to make the FD available again. 16806if test "$no_create" != yes; then 16807 ac_cs_success=: 16808 ac_config_status_args= 16809 test "$silent" = yes && 16810 ac_config_status_args="$ac_config_status_args --quiet" 16811 exec 5>/dev/null 16812 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16813 exec 5>>config.log 16814 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16815 # would make configure fail if this is the last instruction. 16816 $ac_cs_success || { (exit 1); exit 1; } 16817fi 16818 16819if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi 16820