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