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