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