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