1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.56 for FULL-PACKAGE-NAME VERSION. 4@%:@ 5@%:@ Report bugs to <BUG-REPORT-ADDRESS>. 6@%:@ 7@%:@ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 8@%:@ Free Software Foundation, Inc. 9@%:@ This configure script is free software; the Free Software Foundation 10@%:@ gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be Bourne compatible 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23 set -o posix 24fi 25 26# Support unset when possible. 27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 as_mkdir_p=false 224fi 225 226as_executable_p="test -f" 227 228# Sed expression to map a string onto a valid CPP name. 229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 230 231# Sed expression to map a string onto a valid variable name. 232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 233 234 235# IFS 236# We need space, tab and new line, in precisely that order. 237as_nl=' 238' 239IFS=" $as_nl" 240 241# CDPATH. 242$as_unset CDPATH 243 244 245# Name of the host. 246# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 247# so uname gets run too. 248ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 249 250exec 6>&1 251 252# 253# Initializations. 254# 255ac_default_prefix=/usr/local 256ac_config_libobj_dir=. 257cross_compiling=no 258subdirs= 259MFLAGS= 260MAKEFLAGS= 261SHELL=${CONFIG_SHELL-/bin/sh} 262 263# Maximum number of lines to put in a shell here document. 264# This variable seems obsolete. It should probably be removed, and 265# only ac_max_sed_lines should be used. 266: ${ac_max_here_lines=38} 267 268# Identity of this package. 269PACKAGE_NAME='FULL-PACKAGE-NAME' 270PACKAGE_TARNAME='full-package-name' 271PACKAGE_VERSION='VERSION' 272PACKAGE_STRING='FULL-PACKAGE-NAME VERSION' 273PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS' 274 275ac_unique_file="src/ai.cpp" 276# Factoring default headers for most tests. 277ac_includes_default="\ 278#include <stdio.h> 279#if HAVE_SYS_TYPES_H 280# include <sys/types.h> 281#endif 282#if HAVE_SYS_STAT_H 283# include <sys/stat.h> 284#endif 285#if STDC_HEADERS 286# include <stdlib.h> 287# include <stddef.h> 288#else 289# if HAVE_STDLIB_H 290# include <stdlib.h> 291# endif 292#endif 293#if HAVE_STRING_H 294# if !STDC_HEADERS && HAVE_MEMORY_H 295# include <memory.h> 296# endif 297# include <string.h> 298#endif 299#if HAVE_STRINGS_H 300# include <strings.h> 301#endif 302#if HAVE_INTTYPES_H 303# include <inttypes.h> 304#else 305# if HAVE_STDINT_H 306# include <stdint.h> 307# endif 308#endif 309#if HAVE_UNISTD_H 310# include <unistd.h> 311#endif" 312 313ac_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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC SET_MAKE CPP EGREP LIB@&t@OBJS LTLIBOBJS' 314ac_subst_files='' 315 316# Initialize some variables set by options. 317ac_init_help= 318ac_init_version=false 319# The variables have the same names as the options, with 320# dashes changed to underlines. 321cache_file=/dev/null 322exec_prefix=NONE 323no_create= 324no_recursion= 325prefix=NONE 326program_prefix=NONE 327program_suffix=NONE 328program_transform_name=s,x,x, 329silent= 330site= 331srcdir= 332verbose= 333x_includes=NONE 334x_libraries=NONE 335 336# Installation directory options. 337# These are left unexpanded so users can "make install exec_prefix=/foo" 338# and all the variables that are supposed to be based on exec_prefix 339# by default will actually change. 340# Use braces instead of parens because sh, perl, etc. also accept them. 341bindir='${exec_prefix}/bin' 342sbindir='${exec_prefix}/sbin' 343libexecdir='${exec_prefix}/libexec' 344datadir='${prefix}/share' 345sysconfdir='${prefix}/etc' 346sharedstatedir='${prefix}/com' 347localstatedir='${prefix}/var' 348libdir='${exec_prefix}/lib' 349includedir='${prefix}/include' 350oldincludedir='/usr/include' 351infodir='${prefix}/info' 352mandir='${prefix}/man' 353 354ac_prev= 355for ac_option 356do 357 # If the previous option needs an argument, assign it. 358 if test -n "$ac_prev"; then 359 eval "$ac_prev=\$ac_option" 360 ac_prev= 361 continue 362 fi 363 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 365 366 # Accept the important Cygnus configure options, so we can diagnose typos. 367 368 case $ac_option in 369 370 -bindir | --bindir | --bindi | --bind | --bin | --bi) 371 ac_prev=bindir ;; 372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 373 bindir=$ac_optarg ;; 374 375 -build | --build | --buil | --bui | --bu) 376 ac_prev=build_alias ;; 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 378 build_alias=$ac_optarg ;; 379 380 -cache-file | --cache-file | --cache-fil | --cache-fi \ 381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 382 ac_prev=cache_file ;; 383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 385 cache_file=$ac_optarg ;; 386 387 --config-cache | -C) 388 cache_file=config.cache ;; 389 390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 391 ac_prev=datadir ;; 392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 393 | --da=*) 394 datadir=$ac_optarg ;; 395 396 -disable-* | --disable-*) 397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 398 # Reject names that are not valid shell variable names. 399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 401 { (exit 1); exit 1; }; } 402 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 403 eval "enable_$ac_feature=no" ;; 404 405 -enable-* | --enable-*) 406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 407 # Reject names that are not valid shell variable names. 408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 410 { (exit 1); exit 1; }; } 411 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 412 case $ac_option in 413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 414 *) ac_optarg=yes ;; 415 esac 416 eval "enable_$ac_feature='$ac_optarg'" ;; 417 418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 420 | --exec | --exe | --ex) 421 ac_prev=exec_prefix ;; 422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 424 | --exec=* | --exe=* | --ex=*) 425 exec_prefix=$ac_optarg ;; 426 427 -gas | --gas | --ga | --g) 428 # Obsolete; use --with-gas. 429 with_gas=yes ;; 430 431 -help | --help | --hel | --he | -h) 432 ac_init_help=long ;; 433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 434 ac_init_help=recursive ;; 435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 436 ac_init_help=short ;; 437 438 -host | --host | --hos | --ho) 439 ac_prev=host_alias ;; 440 -host=* | --host=* | --hos=* | --ho=*) 441 host_alias=$ac_optarg ;; 442 443 -includedir | --includedir | --includedi | --included | --include \ 444 | --includ | --inclu | --incl | --inc) 445 ac_prev=includedir ;; 446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 447 | --includ=* | --inclu=* | --incl=* | --inc=*) 448 includedir=$ac_optarg ;; 449 450 -infodir | --infodir | --infodi | --infod | --info | --inf) 451 ac_prev=infodir ;; 452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 453 infodir=$ac_optarg ;; 454 455 -libdir | --libdir | --libdi | --libd) 456 ac_prev=libdir ;; 457 -libdir=* | --libdir=* | --libdi=* | --libd=*) 458 libdir=$ac_optarg ;; 459 460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 461 | --libexe | --libex | --libe) 462 ac_prev=libexecdir ;; 463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 464 | --libexe=* | --libex=* | --libe=*) 465 libexecdir=$ac_optarg ;; 466 467 -localstatedir | --localstatedir | --localstatedi | --localstated \ 468 | --localstate | --localstat | --localsta | --localst \ 469 | --locals | --local | --loca | --loc | --lo) 470 ac_prev=localstatedir ;; 471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 474 localstatedir=$ac_optarg ;; 475 476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 477 ac_prev=mandir ;; 478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 479 mandir=$ac_optarg ;; 480 481 -nfp | --nfp | --nf) 482 # Obsolete; use --without-fp. 483 with_fp=no ;; 484 485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 486 | --no-cr | --no-c | -n) 487 no_create=yes ;; 488 489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 491 no_recursion=yes ;; 492 493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 495 | --oldin | --oldi | --old | --ol | --o) 496 ac_prev=oldincludedir ;; 497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 500 oldincludedir=$ac_optarg ;; 501 502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 503 ac_prev=prefix ;; 504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 505 prefix=$ac_optarg ;; 506 507 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 508 | --program-pre | --program-pr | --program-p) 509 ac_prev=program_prefix ;; 510 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 512 program_prefix=$ac_optarg ;; 513 514 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 515 | --program-suf | --program-su | --program-s) 516 ac_prev=program_suffix ;; 517 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 519 program_suffix=$ac_optarg ;; 520 521 -program-transform-name | --program-transform-name \ 522 | --program-transform-nam | --program-transform-na \ 523 | --program-transform-n | --program-transform- \ 524 | --program-transform | --program-transfor \ 525 | --program-transfo | --program-transf \ 526 | --program-trans | --program-tran \ 527 | --progr-tra | --program-tr | --program-t) 528 ac_prev=program_transform_name ;; 529 -program-transform-name=* | --program-transform-name=* \ 530 | --program-transform-nam=* | --program-transform-na=* \ 531 | --program-transform-n=* | --program-transform-=* \ 532 | --program-transform=* | --program-transfor=* \ 533 | --program-transfo=* | --program-transf=* \ 534 | --program-trans=* | --program-tran=* \ 535 | --progr-tra=* | --program-tr=* | --program-t=*) 536 program_transform_name=$ac_optarg ;; 537 538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 539 | -silent | --silent | --silen | --sile | --sil) 540 silent=yes ;; 541 542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 543 ac_prev=sbindir ;; 544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 545 | --sbi=* | --sb=*) 546 sbindir=$ac_optarg ;; 547 548 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 550 | --sharedst | --shareds | --shared | --share | --shar \ 551 | --sha | --sh) 552 ac_prev=sharedstatedir ;; 553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 556 | --sha=* | --sh=*) 557 sharedstatedir=$ac_optarg ;; 558 559 -site | --site | --sit) 560 ac_prev=site ;; 561 -site=* | --site=* | --sit=*) 562 site=$ac_optarg ;; 563 564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 565 ac_prev=srcdir ;; 566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 567 srcdir=$ac_optarg ;; 568 569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 570 | --syscon | --sysco | --sysc | --sys | --sy) 571 ac_prev=sysconfdir ;; 572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 574 sysconfdir=$ac_optarg ;; 575 576 -target | --target | --targe | --targ | --tar | --ta | --t) 577 ac_prev=target_alias ;; 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 579 target_alias=$ac_optarg ;; 580 581 -v | -verbose | --verbose | --verbos | --verbo | --verb) 582 verbose=yes ;; 583 584 -version | --version | --versio | --versi | --vers | -V) 585 ac_init_version=: ;; 586 587 -with-* | --with-*) 588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 589 # Reject names that are not valid shell variable names. 590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 591 { echo "$as_me: error: invalid package name: $ac_package" >&2 592 { (exit 1); exit 1; }; } 593 ac_package=`echo $ac_package| sed 's/-/_/g'` 594 case $ac_option in 595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 596 *) ac_optarg=yes ;; 597 esac 598 eval "with_$ac_package='$ac_optarg'" ;; 599 600 -without-* | --without-*) 601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 602 # Reject names that are not valid shell variable names. 603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 604 { echo "$as_me: error: invalid package name: $ac_package" >&2 605 { (exit 1); exit 1; }; } 606 ac_package=`echo $ac_package | sed 's/-/_/g'` 607 eval "with_$ac_package=no" ;; 608 609 --x) 610 # Obsolete; use --with-x. 611 with_x=yes ;; 612 613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 614 | --x-incl | --x-inc | --x-in | --x-i) 615 ac_prev=x_includes ;; 616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 618 x_includes=$ac_optarg ;; 619 620 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 622 ac_prev=x_libraries ;; 623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 625 x_libraries=$ac_optarg ;; 626 627 -*) { echo "$as_me: error: unrecognized option: $ac_option 628Try \`$0 --help' for more information." >&2 629 { (exit 1); exit 1; }; } 630 ;; 631 632 *=*) 633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 634 # Reject names that are not valid shell variable names. 635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 637 { (exit 1); exit 1; }; } 638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 639 eval "$ac_envvar='$ac_optarg'" 640 export $ac_envvar ;; 641 642 *) 643 # FIXME: should be removed in autoconf 3.0. 644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 648 ;; 649 650 esac 651done 652 653if test -n "$ac_prev"; then 654 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 655 { echo "$as_me: error: missing argument to $ac_option" >&2 656 { (exit 1); exit 1; }; } 657fi 658 659# Be sure to have absolute paths. 660for ac_var in exec_prefix prefix 661do 662 eval ac_val=$`echo $ac_var` 663 case $ac_val in 664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 666 { (exit 1); exit 1; }; };; 667 esac 668done 669 670# Be sure to have absolute paths. 671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 672 localstatedir libdir includedir oldincludedir infodir mandir 673do 674 eval ac_val=$`echo $ac_var` 675 case $ac_val in 676 [\\/$]* | ?:[\\/]* ) ;; 677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 678 { (exit 1); exit 1; }; };; 679 esac 680done 681 682# There might be people who depend on the old broken behavior: `$host' 683# used to hold the argument of --host etc. 684# FIXME: To remove some day. 685build=$build_alias 686host=$host_alias 687target=$target_alias 688 689# FIXME: To remove some day. 690if test "x$host_alias" != x; then 691 if test "x$build_alias" = x; then 692 cross_compiling=maybe 693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 694 If a cross compiler is detected then cross compile mode will be used." >&2 695 elif test "x$build_alias" != "x$host_alias"; then 696 cross_compiling=yes 697 fi 698fi 699 700ac_tool_prefix= 701test -n "$host_alias" && ac_tool_prefix=$host_alias- 702 703test "$silent" = yes && exec 6>/dev/null 704 705 706# Find the source files, if location was not specified. 707if test -z "$srcdir"; then 708 ac_srcdir_defaulted=yes 709 # Try the directory containing this script, then its parent. 710 ac_confdir=`(dirname "$0") 2>/dev/null || 711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 712 X"$0" : 'X\(//\)[^/]' \| \ 713 X"$0" : 'X\(//\)$' \| \ 714 X"$0" : 'X\(/\)' \| \ 715 . : '\(.\)' 2>/dev/null || 716echo X"$0" | 717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 718 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 719 /^X\(\/\/\)$/{ s//\1/; q; } 720 /^X\(\/\).*/{ s//\1/; q; } 721 s/.*/./; q'` 722 srcdir=$ac_confdir 723 if test ! -r $srcdir/$ac_unique_file; then 724 srcdir=.. 725 fi 726else 727 ac_srcdir_defaulted=no 728fi 729if test ! -r $srcdir/$ac_unique_file; then 730 if test "$ac_srcdir_defaulted" = yes; then 731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 732 { (exit 1); exit 1; }; } 733 else 734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 735 { (exit 1); exit 1; }; } 736 fi 737fi 738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 740 { (exit 1); exit 1; }; } 741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 742ac_env_build_alias_set=${build_alias+set} 743ac_env_build_alias_value=$build_alias 744ac_cv_env_build_alias_set=${build_alias+set} 745ac_cv_env_build_alias_value=$build_alias 746ac_env_host_alias_set=${host_alias+set} 747ac_env_host_alias_value=$host_alias 748ac_cv_env_host_alias_set=${host_alias+set} 749ac_cv_env_host_alias_value=$host_alias 750ac_env_target_alias_set=${target_alias+set} 751ac_env_target_alias_value=$target_alias 752ac_cv_env_target_alias_set=${target_alias+set} 753ac_cv_env_target_alias_value=$target_alias 754ac_env_CXX_set=${CXX+set} 755ac_env_CXX_value=$CXX 756ac_cv_env_CXX_set=${CXX+set} 757ac_cv_env_CXX_value=$CXX 758ac_env_CXXFLAGS_set=${CXXFLAGS+set} 759ac_env_CXXFLAGS_value=$CXXFLAGS 760ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 761ac_cv_env_CXXFLAGS_value=$CXXFLAGS 762ac_env_LDFLAGS_set=${LDFLAGS+set} 763ac_env_LDFLAGS_value=$LDFLAGS 764ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 765ac_cv_env_LDFLAGS_value=$LDFLAGS 766ac_env_CPPFLAGS_set=${CPPFLAGS+set} 767ac_env_CPPFLAGS_value=$CPPFLAGS 768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 769ac_cv_env_CPPFLAGS_value=$CPPFLAGS 770ac_env_CC_set=${CC+set} 771ac_env_CC_value=$CC 772ac_cv_env_CC_set=${CC+set} 773ac_cv_env_CC_value=$CC 774ac_env_CFLAGS_set=${CFLAGS+set} 775ac_env_CFLAGS_value=$CFLAGS 776ac_cv_env_CFLAGS_set=${CFLAGS+set} 777ac_cv_env_CFLAGS_value=$CFLAGS 778ac_env_CPP_set=${CPP+set} 779ac_env_CPP_value=$CPP 780ac_cv_env_CPP_set=${CPP+set} 781ac_cv_env_CPP_value=$CPP 782 783# 784# Report the --help message. 785# 786if test "$ac_init_help" = "long"; then 787 # Omit some internal or obsolete options to make the list less imposing. 788 # This message is too long to be a string in the A/UX 3.1 sh. 789 cat <<_ACEOF 790\`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems. 791 792Usage: $0 [OPTION]... [VAR=VALUE]... 793 794To assign environment variables (e.g., CC, CFLAGS...), specify them as 795VAR=VALUE. See below for descriptions of some of the useful variables. 796 797Defaults for the options are specified in brackets. 798 799Configuration: 800 -h, --help display this help and exit 801 --help=short display options specific to this package 802 --help=recursive display the short help of all the included packages 803 -V, --version display version information and exit 804 -q, --quiet, --silent do not print \`checking...' messages 805 --cache-file=FILE cache test results in FILE [disabled] 806 -C, --config-cache alias for \`--cache-file=config.cache' 807 -n, --no-create do not create output files 808 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 809 810_ACEOF 811 812 cat <<_ACEOF 813Installation directories: 814 --prefix=PREFIX install architecture-independent files in PREFIX 815 [$ac_default_prefix] 816 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 817 [PREFIX] 818 819By default, \`make install' will install all the files in 820\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 821an installation prefix other than \`$ac_default_prefix' using \`--prefix', 822for instance \`--prefix=\$HOME'. 823 824For better control, use the options below. 825 826Fine tuning of the installation directories: 827 --bindir=DIR user executables [EPREFIX/bin] 828 --sbindir=DIR system admin executables [EPREFIX/sbin] 829 --libexecdir=DIR program executables [EPREFIX/libexec] 830 --datadir=DIR read-only architecture-independent data [PREFIX/share] 831 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 832 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 833 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 834 --libdir=DIR object code libraries [EPREFIX/lib] 835 --includedir=DIR C header files [PREFIX/include] 836 --oldincludedir=DIR C header files for non-gcc [/usr/include] 837 --infodir=DIR info documentation [PREFIX/info] 838 --mandir=DIR man documentation [PREFIX/man] 839_ACEOF 840 841 cat <<\_ACEOF 842_ACEOF 843fi 844 845if test -n "$ac_init_help"; then 846 case $ac_init_help in 847 short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";; 848 esac 849 cat <<\_ACEOF 850 851Some influential environment variables: 852 CXX C++ compiler command 853 CXXFLAGS C++ compiler flags 854 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 855 nonstandard directory <lib dir> 856 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 857 headers in a nonstandard directory <include dir> 858 CC C compiler command 859 CFLAGS C compiler flags 860 CPP C preprocessor 861 862Use these variables to override the choices made by `configure' or to help 863it to find libraries and programs with nonstandard names/locations. 864 865Report bugs to <BUG-REPORT-ADDRESS>. 866_ACEOF 867fi 868 869if test "$ac_init_help" = "recursive"; then 870 # If there are subdirs, report their specific --help. 871 ac_popdir=`pwd` 872 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 873 test -d $ac_dir || continue 874 ac_builddir=. 875 876if test "$ac_dir" != .; then 877 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 878 # A "../" for each directory in $ac_dir_suffix. 879 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 880else 881 ac_dir_suffix= ac_top_builddir= 882fi 883 884case $srcdir in 885 .) # No --srcdir option. We are building in place. 886 ac_srcdir=. 887 if test -z "$ac_top_builddir"; then 888 ac_top_srcdir=. 889 else 890 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 891 fi ;; 892 [\\/]* | ?:[\\/]* ) # Absolute path. 893 ac_srcdir=$srcdir$ac_dir_suffix; 894 ac_top_srcdir=$srcdir ;; 895 *) # Relative path. 896 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 897 ac_top_srcdir=$ac_top_builddir$srcdir ;; 898esac 899# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 900# absolute. 901ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 902ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 903ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 904ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 905 906 cd $ac_dir 907 # Check for guested configure; otherwise get Cygnus style configure. 908 if test -f $ac_srcdir/configure.gnu; then 909 echo 910 $SHELL $ac_srcdir/configure.gnu --help=recursive 911 elif test -f $ac_srcdir/configure; then 912 echo 913 $SHELL $ac_srcdir/configure --help=recursive 914 elif test -f $ac_srcdir/configure.ac || 915 test -f $ac_srcdir/configure.in; then 916 echo 917 $ac_configure --help 918 else 919 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 920 fi 921 cd $ac_popdir 922 done 923fi 924 925test -n "$ac_init_help" && exit 0 926if $ac_init_version; then 927 cat <<\_ACEOF 928FULL-PACKAGE-NAME configure VERSION 929generated by GNU Autoconf 2.56 930 931Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 932Free Software Foundation, Inc. 933This configure script is free software; the Free Software Foundation 934gives unlimited permission to copy, distribute and modify it. 935_ACEOF 936 exit 0 937fi 938exec 5>config.log 939cat >&5 <<_ACEOF 940This file contains any messages produced by compilers while 941running configure, to aid debugging if configure makes a mistake. 942 943It was created by FULL-PACKAGE-NAME $as_me VERSION, which was 944generated by GNU Autoconf 2.56. Invocation command line was 945 946 $ $0 $@ 947 948_ACEOF 949{ 950cat <<_ASUNAME 951@%:@@%:@ --------- @%:@@%:@ 952@%:@@%:@ Platform. @%:@@%:@ 953@%:@@%:@ --------- @%:@@%:@ 954 955hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 956uname -m = `(uname -m) 2>/dev/null || echo unknown` 957uname -r = `(uname -r) 2>/dev/null || echo unknown` 958uname -s = `(uname -s) 2>/dev/null || echo unknown` 959uname -v = `(uname -v) 2>/dev/null || echo unknown` 960 961/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 962/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 963 964/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 965/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 966/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 967hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 968/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 969/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 970/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 971 972_ASUNAME 973 974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 975for as_dir in $PATH 976do 977 IFS=$as_save_IFS 978 test -z "$as_dir" && as_dir=. 979 echo "PATH: $as_dir" 980done 981 982} >&5 983 984cat >&5 <<_ACEOF 985 986 987@%:@@%:@ ----------- @%:@@%:@ 988@%:@@%:@ Core tests. @%:@@%:@ 989@%:@@%:@ ----------- @%:@@%:@ 990 991_ACEOF 992 993 994# Keep a trace of the command line. 995# Strip out --no-create and --no-recursion so they do not pile up. 996# Strip out --silent because we don't want to record it for future runs. 997# Also quote any args containing shell meta-characters. 998# Make two passes to allow for proper duplicate-argument suppression. 999ac_configure_args= 1000ac_configure_args0= 1001ac_configure_args1= 1002ac_sep= 1003ac_must_keep_next=false 1004for ac_pass in 1 2 1005do 1006 for ac_arg 1007 do 1008 case $ac_arg in 1009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1011 | -silent | --silent | --silen | --sile | --sil) 1012 continue ;; 1013 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1014 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1015 esac 1016 case $ac_pass in 1017 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1018 2) 1019 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1020 if test $ac_must_keep_next = true; then 1021 ac_must_keep_next=false # Got value, back to normal. 1022 else 1023 case $ac_arg in 1024 *=* | --config-cache | -C | -disable-* | --disable-* \ 1025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1027 | -with-* | --with-* | -without-* | --without-* | --x) 1028 case "$ac_configure_args0 " in 1029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1030 esac 1031 ;; 1032 -* ) ac_must_keep_next=true ;; 1033 esac 1034 fi 1035 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1036 # Get rid of the leading space. 1037 ac_sep=" " 1038 ;; 1039 esac 1040 done 1041done 1042$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1043$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1044 1045# When interrupted or exit'd, cleanup temporary files, and complete 1046# config.log. We remove comments because anyway the quotes in there 1047# would cause problems or look ugly. 1048# WARNING: Be sure not to use single quotes in there, as some shells, 1049# such as our DU 5.0 friend, will then `close' the trap. 1050trap 'exit_status=$? 1051 # Save into config.log some information that might help in debugging. 1052 { 1053 echo 1054 1055 cat <<\_ASBOX 1056@%:@@%:@ ---------------- @%:@@%:@ 1057@%:@@%:@ Cache variables. @%:@@%:@ 1058@%:@@%:@ ---------------- @%:@@%:@ 1059_ASBOX 1060 echo 1061 # The following way of writing the cache mishandles newlines in values, 1062{ 1063 (set) 2>&1 | 1064 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1065 *ac_space=\ *) 1066 sed -n \ 1067 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1069 ;; 1070 *) 1071 sed -n \ 1072 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1073 ;; 1074 esac; 1075} 1076 echo 1077 1078 cat <<\_ASBOX 1079@%:@@%:@ ----------------- @%:@@%:@ 1080@%:@@%:@ Output variables. @%:@@%:@ 1081@%:@@%:@ ----------------- @%:@@%:@ 1082_ASBOX 1083 echo 1084 for ac_var in $ac_subst_vars 1085 do 1086 eval ac_val=$`echo $ac_var` 1087 echo "$ac_var='"'"'$ac_val'"'"'" 1088 done | sort 1089 echo 1090 1091 if test -n "$ac_subst_files"; then 1092 cat <<\_ASBOX 1093@%:@@%:@ ------------- @%:@@%:@ 1094@%:@@%:@ Output files. @%:@@%:@ 1095@%:@@%:@ ------------- @%:@@%:@ 1096_ASBOX 1097 echo 1098 for ac_var in $ac_subst_files 1099 do 1100 eval ac_val=$`echo $ac_var` 1101 echo "$ac_var='"'"'$ac_val'"'"'" 1102 done | sort 1103 echo 1104 fi 1105 1106 if test -s confdefs.h; then 1107 cat <<\_ASBOX 1108@%:@@%:@ ----------- @%:@@%:@ 1109@%:@@%:@ confdefs.h. @%:@@%:@ 1110@%:@@%:@ ----------- @%:@@%:@ 1111_ASBOX 1112 echo 1113 sed "/^$/d" confdefs.h | sort 1114 echo 1115 fi 1116 test "$ac_signal" != 0 && 1117 echo "$as_me: caught signal $ac_signal" 1118 echo "$as_me: exit $exit_status" 1119 } >&5 1120 rm -f core core.* *.core && 1121 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1122 exit $exit_status 1123 ' 0 1124for ac_signal in 1 2 13 15; do 1125 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1126done 1127ac_signal=0 1128 1129# confdefs.h avoids OS command line length limits that DEFS can exceed. 1130rm -rf conftest* confdefs.h 1131# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1132echo >confdefs.h 1133 1134# Predefined preprocessor variables. 1135 1136cat >>confdefs.h <<_ACEOF 1137@%:@define PACKAGE_NAME "$PACKAGE_NAME" 1138_ACEOF 1139 1140 1141cat >>confdefs.h <<_ACEOF 1142@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1143_ACEOF 1144 1145 1146cat >>confdefs.h <<_ACEOF 1147@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 1148_ACEOF 1149 1150 1151cat >>confdefs.h <<_ACEOF 1152@%:@define PACKAGE_STRING "$PACKAGE_STRING" 1153_ACEOF 1154 1155 1156cat >>confdefs.h <<_ACEOF 1157@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1158_ACEOF 1159 1160 1161# Let the site file select an alternate cache file if it wants to. 1162# Prefer explicitly selected file to automatically selected ones. 1163if test -z "$CONFIG_SITE"; then 1164 if test "x$prefix" != xNONE; then 1165 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1166 else 1167 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1168 fi 1169fi 1170for ac_site_file in $CONFIG_SITE; do 1171 if test -r "$ac_site_file"; then 1172 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1173echo "$as_me: loading site script $ac_site_file" >&6;} 1174 sed 's/^/| /' "$ac_site_file" >&5 1175 . "$ac_site_file" 1176 fi 1177done 1178 1179if test -r "$cache_file"; then 1180 # Some versions of bash will fail to source /dev/null (special 1181 # files actually), so we avoid doing that. 1182 if test -f "$cache_file"; then 1183 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1184echo "$as_me: loading cache $cache_file" >&6;} 1185 case $cache_file in 1186 [\\/]* | ?:[\\/]* ) . $cache_file;; 1187 *) . ./$cache_file;; 1188 esac 1189 fi 1190else 1191 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1192echo "$as_me: creating cache $cache_file" >&6;} 1193 >$cache_file 1194fi 1195 1196# Check that the precious variables saved in the cache have kept the same 1197# value. 1198ac_cache_corrupted=false 1199for ac_var in `(set) 2>&1 | 1200 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1201 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1202 eval ac_new_set=\$ac_env_${ac_var}_set 1203 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1204 eval ac_new_val="\$ac_env_${ac_var}_value" 1205 case $ac_old_set,$ac_new_set in 1206 set,) 1207 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1208echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1209 ac_cache_corrupted=: ;; 1210 ,set) 1211 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1212echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1213 ac_cache_corrupted=: ;; 1214 ,);; 1215 *) 1216 if test "x$ac_old_val" != "x$ac_new_val"; then 1217 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1218echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1219 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1220echo "$as_me: former value: $ac_old_val" >&2;} 1221 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1222echo "$as_me: current value: $ac_new_val" >&2;} 1223 ac_cache_corrupted=: 1224 fi;; 1225 esac 1226 # Pass precious variables to config.status. 1227 if test "$ac_new_set" = set; then 1228 case $ac_new_val in 1229 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1230 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1231 *) ac_arg=$ac_var=$ac_new_val ;; 1232 esac 1233 case " $ac_configure_args " in 1234 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1235 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1236 esac 1237 fi 1238done 1239if $ac_cache_corrupted; then 1240 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1241echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1242 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1243echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1244 { (exit 1); exit 1; }; } 1245fi 1246 1247ac_ext=c 1248ac_cpp='$CPP $CPPFLAGS' 1249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1251ac_compiler_gnu=$ac_cv_c_compiler_gnu 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 ac_config_headers="$ac_config_headers config.h" 1281 1282 1283# Checks for programs. 1284ac_ext=cc 1285ac_cpp='$CXXCPP $CPPFLAGS' 1286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1289if test -n "$ac_tool_prefix"; then 1290 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1291 do 1292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1293set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1294echo "$as_me:$LINENO: checking for $ac_word" >&5 1295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1296if test "${ac_cv_prog_CXX+set}" = set; then 1297 echo $ECHO_N "(cached) $ECHO_C" >&6 1298else 1299 if test -n "$CXX"; then 1300 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1301else 1302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1303for as_dir in $PATH 1304do 1305 IFS=$as_save_IFS 1306 test -z "$as_dir" && as_dir=. 1307 for ac_exec_ext in '' $ac_executable_extensions; do 1308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1309 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1311 break 2 1312 fi 1313done 1314done 1315 1316fi 1317fi 1318CXX=$ac_cv_prog_CXX 1319if test -n "$CXX"; then 1320 echo "$as_me:$LINENO: result: $CXX" >&5 1321echo "${ECHO_T}$CXX" >&6 1322else 1323 echo "$as_me:$LINENO: result: no" >&5 1324echo "${ECHO_T}no" >&6 1325fi 1326 1327 test -n "$CXX" && break 1328 done 1329fi 1330if test -z "$CXX"; then 1331 ac_ct_CXX=$CXX 1332 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1333do 1334 # Extract the first word of "$ac_prog", so it can be a program name with args. 1335set dummy $ac_prog; ac_word=$2 1336echo "$as_me:$LINENO: checking for $ac_word" >&5 1337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1338if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 1339 echo $ECHO_N "(cached) $ECHO_C" >&6 1340else 1341 if test -n "$ac_ct_CXX"; then 1342 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1343else 1344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1345for as_dir in $PATH 1346do 1347 IFS=$as_save_IFS 1348 test -z "$as_dir" && as_dir=. 1349 for ac_exec_ext in '' $ac_executable_extensions; do 1350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1351 ac_cv_prog_ac_ct_CXX="$ac_prog" 1352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1353 break 2 1354 fi 1355done 1356done 1357 1358fi 1359fi 1360ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1361if test -n "$ac_ct_CXX"; then 1362 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 1363echo "${ECHO_T}$ac_ct_CXX" >&6 1364else 1365 echo "$as_me:$LINENO: result: no" >&5 1366echo "${ECHO_T}no" >&6 1367fi 1368 1369 test -n "$ac_ct_CXX" && break 1370done 1371test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 1372 1373 CXX=$ac_ct_CXX 1374fi 1375 1376 1377# Provide some information about the compiler. 1378echo "$as_me:$LINENO:" \ 1379 "checking for C++ compiler version" >&5 1380ac_compiler=`set X $ac_compile; echo $2` 1381{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1382 (eval $ac_compiler --version </dev/null >&5) 2>&5 1383 ac_status=$? 1384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1385 (exit $ac_status); } 1386{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1387 (eval $ac_compiler -v </dev/null >&5) 2>&5 1388 ac_status=$? 1389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1390 (exit $ac_status); } 1391{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1392 (eval $ac_compiler -V </dev/null >&5) 2>&5 1393 ac_status=$? 1394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1395 (exit $ac_status); } 1396 1397cat >conftest.$ac_ext <<_ACEOF 1398#line $LINENO "configure" 1399/* confdefs.h. */ 1400_ACEOF 1401cat confdefs.h >>conftest.$ac_ext 1402cat >>conftest.$ac_ext <<_ACEOF 1403/* end confdefs.h. */ 1404 1405int 1406main () 1407{ 1408 1409 ; 1410 return 0; 1411} 1412_ACEOF 1413ac_clean_files_save=$ac_clean_files 1414ac_clean_files="$ac_clean_files a.out a.exe b.out" 1415# Try to create an executable without -o first, disregard a.out. 1416# It will help us diagnose broken compilers, and finding out an intuition 1417# of exeext. 1418echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 1419echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 1420ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1421if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1422 (eval $ac_link_default) 2>&5 1423 ac_status=$? 1424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1425 (exit $ac_status); }; then 1426 # Find the output, starting from the most likely. This scheme is 1427# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1428# resort. 1429 1430# Be careful to initialize this variable, since it used to be cached. 1431# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1432ac_cv_exeext= 1433# b.out is created by i960 compilers. 1434for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1435do 1436 test -f "$ac_file" || continue 1437 case $ac_file in 1438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1439 ;; 1440 conftest.$ac_ext ) 1441 # This is the source file. 1442 ;; 1443 [ab].out ) 1444 # We found the default executable, but exeext='' is most 1445 # certainly right. 1446 break;; 1447 *.* ) 1448 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1449 # FIXME: I believe we export ac_cv_exeext for Libtool, 1450 # but it would be cool to find out if it's true. Does anybody 1451 # maintain Libtool? --akim. 1452 export ac_cv_exeext 1453 break;; 1454 * ) 1455 break;; 1456 esac 1457done 1458else 1459 echo "$as_me: failed program was:" >&5 1460sed 's/^/| /' conftest.$ac_ext >&5 1461 1462{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 1463See \`config.log' for more details." >&5 1464echo "$as_me: error: C++ compiler cannot create executables 1465See \`config.log' for more details." >&2;} 1466 { (exit 77); exit 77; }; } 1467fi 1468 1469ac_exeext=$ac_cv_exeext 1470echo "$as_me:$LINENO: result: $ac_file" >&5 1471echo "${ECHO_T}$ac_file" >&6 1472 1473# Check the compiler produces executables we can run. If not, either 1474# the compiler is broken, or we cross compile. 1475echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 1476echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 1477# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1478# If not cross compiling, check that we can run a simple program. 1479if test "$cross_compiling" != yes; then 1480 if { ac_try='./$ac_file' 1481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1482 (eval $ac_try) 2>&5 1483 ac_status=$? 1484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1485 (exit $ac_status); }; }; then 1486 cross_compiling=no 1487 else 1488 if test "$cross_compiling" = maybe; then 1489 cross_compiling=yes 1490 else 1491 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 1492If you meant to cross compile, use \`--host'. 1493See \`config.log' for more details." >&5 1494echo "$as_me: error: cannot run C++ compiled programs. 1495If you meant to cross compile, use \`--host'. 1496See \`config.log' for more details." >&2;} 1497 { (exit 1); exit 1; }; } 1498 fi 1499 fi 1500fi 1501echo "$as_me:$LINENO: result: yes" >&5 1502echo "${ECHO_T}yes" >&6 1503 1504rm -f a.out a.exe conftest$ac_cv_exeext b.out 1505ac_clean_files=$ac_clean_files_save 1506# Check the compiler produces executables we can run. If not, either 1507# the compiler is broken, or we cross compile. 1508echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1509echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1510echo "$as_me:$LINENO: result: $cross_compiling" >&5 1511echo "${ECHO_T}$cross_compiling" >&6 1512 1513echo "$as_me:$LINENO: checking for suffix of executables" >&5 1514echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1516 (eval $ac_link) 2>&5 1517 ac_status=$? 1518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1519 (exit $ac_status); }; then 1520 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1521# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1522# work properly (i.e., refer to `conftest.exe'), while it won't with 1523# `rm'. 1524for ac_file in conftest.exe conftest conftest.*; do 1525 test -f "$ac_file" || continue 1526 case $ac_file in 1527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1528 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1529 export ac_cv_exeext 1530 break;; 1531 * ) break;; 1532 esac 1533done 1534else 1535 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1536See \`config.log' for more details." >&5 1537echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1538See \`config.log' for more details." >&2;} 1539 { (exit 1); exit 1; }; } 1540fi 1541 1542rm -f conftest$ac_cv_exeext 1543echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1544echo "${ECHO_T}$ac_cv_exeext" >&6 1545 1546rm -f conftest.$ac_ext 1547EXEEXT=$ac_cv_exeext 1548ac_exeext=$EXEEXT 1549echo "$as_me:$LINENO: checking for suffix of object files" >&5 1550echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1551if test "${ac_cv_objext+set}" = set; then 1552 echo $ECHO_N "(cached) $ECHO_C" >&6 1553else 1554 cat >conftest.$ac_ext <<_ACEOF 1555#line $LINENO "configure" 1556/* confdefs.h. */ 1557_ACEOF 1558cat confdefs.h >>conftest.$ac_ext 1559cat >>conftest.$ac_ext <<_ACEOF 1560/* end confdefs.h. */ 1561 1562int 1563main () 1564{ 1565 1566 ; 1567 return 0; 1568} 1569_ACEOF 1570rm -f conftest.o conftest.obj 1571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1572 (eval $ac_compile) 2>&5 1573 ac_status=$? 1574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1575 (exit $ac_status); }; then 1576 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1577 case $ac_file in 1578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1579 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1580 break;; 1581 esac 1582done 1583else 1584 echo "$as_me: failed program was:" >&5 1585sed 's/^/| /' conftest.$ac_ext >&5 1586 1587{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1588See \`config.log' for more details." >&5 1589echo "$as_me: error: cannot compute suffix of object files: cannot compile 1590See \`config.log' for more details." >&2;} 1591 { (exit 1); exit 1; }; } 1592fi 1593 1594rm -f conftest.$ac_cv_objext conftest.$ac_ext 1595fi 1596echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1597echo "${ECHO_T}$ac_cv_objext" >&6 1598OBJEXT=$ac_cv_objext 1599ac_objext=$OBJEXT 1600echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 1601echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 1602if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 1603 echo $ECHO_N "(cached) $ECHO_C" >&6 1604else 1605 cat >conftest.$ac_ext <<_ACEOF 1606#line $LINENO "configure" 1607/* confdefs.h. */ 1608_ACEOF 1609cat confdefs.h >>conftest.$ac_ext 1610cat >>conftest.$ac_ext <<_ACEOF 1611/* end confdefs.h. */ 1612 1613int 1614main () 1615{ 1616#ifndef __GNUC__ 1617 choke me 1618#endif 1619 1620 ; 1621 return 0; 1622} 1623_ACEOF 1624rm -f conftest.$ac_objext 1625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1626 (eval $ac_compile) 2>&5 1627 ac_status=$? 1628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1629 (exit $ac_status); } && 1630 { ac_try='test -s conftest.$ac_objext' 1631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1632 (eval $ac_try) 2>&5 1633 ac_status=$? 1634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1635 (exit $ac_status); }; }; then 1636 ac_compiler_gnu=yes 1637else 1638 echo "$as_me: failed program was:" >&5 1639sed 's/^/| /' conftest.$ac_ext >&5 1640 1641ac_compiler_gnu=no 1642fi 1643rm -f conftest.$ac_objext conftest.$ac_ext 1644ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 1645 1646fi 1647echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 1648echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 1649GXX=`test $ac_compiler_gnu = yes && echo yes` 1650ac_test_CXXFLAGS=${CXXFLAGS+set} 1651ac_save_CXXFLAGS=$CXXFLAGS 1652CXXFLAGS="-g" 1653echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 1654echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 1655if test "${ac_cv_prog_cxx_g+set}" = set; then 1656 echo $ECHO_N "(cached) $ECHO_C" >&6 1657else 1658 cat >conftest.$ac_ext <<_ACEOF 1659#line $LINENO "configure" 1660/* confdefs.h. */ 1661_ACEOF 1662cat confdefs.h >>conftest.$ac_ext 1663cat >>conftest.$ac_ext <<_ACEOF 1664/* end confdefs.h. */ 1665 1666int 1667main () 1668{ 1669 1670 ; 1671 return 0; 1672} 1673_ACEOF 1674rm -f conftest.$ac_objext 1675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1676 (eval $ac_compile) 2>&5 1677 ac_status=$? 1678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1679 (exit $ac_status); } && 1680 { ac_try='test -s conftest.$ac_objext' 1681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1682 (eval $ac_try) 2>&5 1683 ac_status=$? 1684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1685 (exit $ac_status); }; }; then 1686 ac_cv_prog_cxx_g=yes 1687else 1688 echo "$as_me: failed program was:" >&5 1689sed 's/^/| /' conftest.$ac_ext >&5 1690 1691ac_cv_prog_cxx_g=no 1692fi 1693rm -f conftest.$ac_objext conftest.$ac_ext 1694fi 1695echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 1696echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 1697if test "$ac_test_CXXFLAGS" = set; then 1698 CXXFLAGS=$ac_save_CXXFLAGS 1699elif test $ac_cv_prog_cxx_g = yes; then 1700 if test "$GXX" = yes; then 1701 CXXFLAGS="-g -O2" 1702 else 1703 CXXFLAGS="-g" 1704 fi 1705else 1706 if test "$GXX" = yes; then 1707 CXXFLAGS="-O2" 1708 else 1709 CXXFLAGS= 1710 fi 1711fi 1712for ac_declaration in \ 1713 ''\ 1714 '#include <stdlib.h>' \ 1715 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1716 'extern "C" void std::exit (int); using std::exit;' \ 1717 'extern "C" void exit (int) throw ();' \ 1718 'extern "C" void exit (int);' \ 1719 'void exit (int);' 1720do 1721 cat >conftest.$ac_ext <<_ACEOF 1722#line $LINENO "configure" 1723/* confdefs.h. */ 1724_ACEOF 1725cat confdefs.h >>conftest.$ac_ext 1726cat >>conftest.$ac_ext <<_ACEOF 1727/* end confdefs.h. */ 1728@%:@include <stdlib.h> 1729$ac_declaration 1730int 1731main () 1732{ 1733exit (42); 1734 ; 1735 return 0; 1736} 1737_ACEOF 1738rm -f conftest.$ac_objext 1739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1740 (eval $ac_compile) 2>&5 1741 ac_status=$? 1742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1743 (exit $ac_status); } && 1744 { ac_try='test -s conftest.$ac_objext' 1745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1746 (eval $ac_try) 2>&5 1747 ac_status=$? 1748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1749 (exit $ac_status); }; }; then 1750 : 1751else 1752 echo "$as_me: failed program was:" >&5 1753sed 's/^/| /' conftest.$ac_ext >&5 1754 1755continue 1756fi 1757rm -f conftest.$ac_objext conftest.$ac_ext 1758 cat >conftest.$ac_ext <<_ACEOF 1759#line $LINENO "configure" 1760/* confdefs.h. */ 1761_ACEOF 1762cat confdefs.h >>conftest.$ac_ext 1763cat >>conftest.$ac_ext <<_ACEOF 1764/* end confdefs.h. */ 1765$ac_declaration 1766int 1767main () 1768{ 1769exit (42); 1770 ; 1771 return 0; 1772} 1773_ACEOF 1774rm -f conftest.$ac_objext 1775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1776 (eval $ac_compile) 2>&5 1777 ac_status=$? 1778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1779 (exit $ac_status); } && 1780 { ac_try='test -s conftest.$ac_objext' 1781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1782 (eval $ac_try) 2>&5 1783 ac_status=$? 1784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1785 (exit $ac_status); }; }; then 1786 break 1787else 1788 echo "$as_me: failed program was:" >&5 1789sed 's/^/| /' conftest.$ac_ext >&5 1790 1791fi 1792rm -f conftest.$ac_objext conftest.$ac_ext 1793done 1794rm -f conftest* 1795if test -n "$ac_declaration"; then 1796 echo '#ifdef __cplusplus' >>confdefs.h 1797 echo $ac_declaration >>confdefs.h 1798 echo '#endif' >>confdefs.h 1799fi 1800 1801ac_ext=c 1802ac_cpp='$CPP $CPPFLAGS' 1803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1805ac_compiler_gnu=$ac_cv_c_compiler_gnu 1806 1807ac_ext=c 1808ac_cpp='$CPP $CPPFLAGS' 1809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1811ac_compiler_gnu=$ac_cv_c_compiler_gnu 1812if test -n "$ac_tool_prefix"; then 1813 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1814set dummy ${ac_tool_prefix}gcc; ac_word=$2 1815echo "$as_me:$LINENO: checking for $ac_word" >&5 1816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1817if test "${ac_cv_prog_CC+set}" = set; then 1818 echo $ECHO_N "(cached) $ECHO_C" >&6 1819else 1820 if test -n "$CC"; then 1821 ac_cv_prog_CC="$CC" # Let the user override the test. 1822else 1823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1824for as_dir in $PATH 1825do 1826 IFS=$as_save_IFS 1827 test -z "$as_dir" && as_dir=. 1828 for ac_exec_ext in '' $ac_executable_extensions; do 1829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1830 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1832 break 2 1833 fi 1834done 1835done 1836 1837fi 1838fi 1839CC=$ac_cv_prog_CC 1840if test -n "$CC"; then 1841 echo "$as_me:$LINENO: result: $CC" >&5 1842echo "${ECHO_T}$CC" >&6 1843else 1844 echo "$as_me:$LINENO: result: no" >&5 1845echo "${ECHO_T}no" >&6 1846fi 1847 1848fi 1849if test -z "$ac_cv_prog_CC"; then 1850 ac_ct_CC=$CC 1851 # Extract the first word of "gcc", so it can be a program name with args. 1852set dummy gcc; ac_word=$2 1853echo "$as_me:$LINENO: checking for $ac_word" >&5 1854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1855if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1856 echo $ECHO_N "(cached) $ECHO_C" >&6 1857else 1858 if test -n "$ac_ct_CC"; then 1859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1860else 1861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1862for as_dir in $PATH 1863do 1864 IFS=$as_save_IFS 1865 test -z "$as_dir" && as_dir=. 1866 for ac_exec_ext in '' $ac_executable_extensions; do 1867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1868 ac_cv_prog_ac_ct_CC="gcc" 1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1870 break 2 1871 fi 1872done 1873done 1874 1875fi 1876fi 1877ac_ct_CC=$ac_cv_prog_ac_ct_CC 1878if test -n "$ac_ct_CC"; then 1879 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1880echo "${ECHO_T}$ac_ct_CC" >&6 1881else 1882 echo "$as_me:$LINENO: result: no" >&5 1883echo "${ECHO_T}no" >&6 1884fi 1885 1886 CC=$ac_ct_CC 1887else 1888 CC="$ac_cv_prog_CC" 1889fi 1890 1891if test -z "$CC"; then 1892 if test -n "$ac_tool_prefix"; then 1893 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1894set dummy ${ac_tool_prefix}cc; ac_word=$2 1895echo "$as_me:$LINENO: checking for $ac_word" >&5 1896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1897if test "${ac_cv_prog_CC+set}" = set; then 1898 echo $ECHO_N "(cached) $ECHO_C" >&6 1899else 1900 if test -n "$CC"; then 1901 ac_cv_prog_CC="$CC" # Let the user override the test. 1902else 1903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1904for as_dir in $PATH 1905do 1906 IFS=$as_save_IFS 1907 test -z "$as_dir" && as_dir=. 1908 for ac_exec_ext in '' $ac_executable_extensions; do 1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1910 ac_cv_prog_CC="${ac_tool_prefix}cc" 1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1912 break 2 1913 fi 1914done 1915done 1916 1917fi 1918fi 1919CC=$ac_cv_prog_CC 1920if test -n "$CC"; then 1921 echo "$as_me:$LINENO: result: $CC" >&5 1922echo "${ECHO_T}$CC" >&6 1923else 1924 echo "$as_me:$LINENO: result: no" >&5 1925echo "${ECHO_T}no" >&6 1926fi 1927 1928fi 1929if test -z "$ac_cv_prog_CC"; then 1930 ac_ct_CC=$CC 1931 # Extract the first word of "cc", so it can be a program name with args. 1932set dummy cc; ac_word=$2 1933echo "$as_me:$LINENO: checking for $ac_word" >&5 1934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1935if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1936 echo $ECHO_N "(cached) $ECHO_C" >&6 1937else 1938 if test -n "$ac_ct_CC"; then 1939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1940else 1941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1942for as_dir in $PATH 1943do 1944 IFS=$as_save_IFS 1945 test -z "$as_dir" && as_dir=. 1946 for ac_exec_ext in '' $ac_executable_extensions; do 1947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1948 ac_cv_prog_ac_ct_CC="cc" 1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1950 break 2 1951 fi 1952done 1953done 1954 1955fi 1956fi 1957ac_ct_CC=$ac_cv_prog_ac_ct_CC 1958if test -n "$ac_ct_CC"; then 1959 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1960echo "${ECHO_T}$ac_ct_CC" >&6 1961else 1962 echo "$as_me:$LINENO: result: no" >&5 1963echo "${ECHO_T}no" >&6 1964fi 1965 1966 CC=$ac_ct_CC 1967else 1968 CC="$ac_cv_prog_CC" 1969fi 1970 1971fi 1972if test -z "$CC"; then 1973 # Extract the first word of "cc", so it can be a program name with args. 1974set dummy cc; ac_word=$2 1975echo "$as_me:$LINENO: checking for $ac_word" >&5 1976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1977if test "${ac_cv_prog_CC+set}" = set; then 1978 echo $ECHO_N "(cached) $ECHO_C" >&6 1979else 1980 if test -n "$CC"; then 1981 ac_cv_prog_CC="$CC" # Let the user override the test. 1982else 1983 ac_prog_rejected=no 1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1985for as_dir in $PATH 1986do 1987 IFS=$as_save_IFS 1988 test -z "$as_dir" && as_dir=. 1989 for ac_exec_ext in '' $ac_executable_extensions; do 1990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1991 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1992 ac_prog_rejected=yes 1993 continue 1994 fi 1995 ac_cv_prog_CC="cc" 1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1997 break 2 1998 fi 1999done 2000done 2001 2002if test $ac_prog_rejected = yes; then 2003 # We found a bogon in the path, so make sure we never use it. 2004 set dummy $ac_cv_prog_CC 2005 shift 2006 if test $@%:@ != 0; then 2007 # We chose a different compiler from the bogus one. 2008 # However, it has the same basename, so the bogon will be chosen 2009 # first if we set CC to just the basename; use the full file name. 2010 shift 2011 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2012 fi 2013fi 2014fi 2015fi 2016CC=$ac_cv_prog_CC 2017if test -n "$CC"; then 2018 echo "$as_me:$LINENO: result: $CC" >&5 2019echo "${ECHO_T}$CC" >&6 2020else 2021 echo "$as_me:$LINENO: result: no" >&5 2022echo "${ECHO_T}no" >&6 2023fi 2024 2025fi 2026if test -z "$CC"; then 2027 if test -n "$ac_tool_prefix"; then 2028 for ac_prog in cl 2029 do 2030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2031set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2032echo "$as_me:$LINENO: checking for $ac_word" >&5 2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2034if test "${ac_cv_prog_CC+set}" = set; then 2035 echo $ECHO_N "(cached) $ECHO_C" >&6 2036else 2037 if test -n "$CC"; then 2038 ac_cv_prog_CC="$CC" # Let the user override the test. 2039else 2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2041for as_dir in $PATH 2042do 2043 IFS=$as_save_IFS 2044 test -z "$as_dir" && as_dir=. 2045 for ac_exec_ext in '' $ac_executable_extensions; do 2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2047 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2049 break 2 2050 fi 2051done 2052done 2053 2054fi 2055fi 2056CC=$ac_cv_prog_CC 2057if test -n "$CC"; then 2058 echo "$as_me:$LINENO: result: $CC" >&5 2059echo "${ECHO_T}$CC" >&6 2060else 2061 echo "$as_me:$LINENO: result: no" >&5 2062echo "${ECHO_T}no" >&6 2063fi 2064 2065 test -n "$CC" && break 2066 done 2067fi 2068if test -z "$CC"; then 2069 ac_ct_CC=$CC 2070 for ac_prog in cl 2071do 2072 # Extract the first word of "$ac_prog", so it can be a program name with args. 2073set dummy $ac_prog; ac_word=$2 2074echo "$as_me:$LINENO: checking for $ac_word" >&5 2075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2076if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2077 echo $ECHO_N "(cached) $ECHO_C" >&6 2078else 2079 if test -n "$ac_ct_CC"; then 2080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2081else 2082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2083for as_dir in $PATH 2084do 2085 IFS=$as_save_IFS 2086 test -z "$as_dir" && as_dir=. 2087 for ac_exec_ext in '' $ac_executable_extensions; do 2088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2089 ac_cv_prog_ac_ct_CC="$ac_prog" 2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2091 break 2 2092 fi 2093done 2094done 2095 2096fi 2097fi 2098ac_ct_CC=$ac_cv_prog_ac_ct_CC 2099if test -n "$ac_ct_CC"; then 2100 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2101echo "${ECHO_T}$ac_ct_CC" >&6 2102else 2103 echo "$as_me:$LINENO: result: no" >&5 2104echo "${ECHO_T}no" >&6 2105fi 2106 2107 test -n "$ac_ct_CC" && break 2108done 2109 2110 CC=$ac_ct_CC 2111fi 2112 2113fi 2114 2115 2116test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2117See \`config.log' for more details." >&5 2118echo "$as_me: error: no acceptable C compiler found in \$PATH 2119See \`config.log' for more details." >&2;} 2120 { (exit 1); exit 1; }; } 2121 2122# Provide some information about the compiler. 2123echo "$as_me:$LINENO:" \ 2124 "checking for C compiler version" >&5 2125ac_compiler=`set X $ac_compile; echo $2` 2126{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2127 (eval $ac_compiler --version </dev/null >&5) 2>&5 2128 ac_status=$? 2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2130 (exit $ac_status); } 2131{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2132 (eval $ac_compiler -v </dev/null >&5) 2>&5 2133 ac_status=$? 2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2135 (exit $ac_status); } 2136{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2137 (eval $ac_compiler -V </dev/null >&5) 2>&5 2138 ac_status=$? 2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2140 (exit $ac_status); } 2141 2142echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2143echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2144if test "${ac_cv_c_compiler_gnu+set}" = set; then 2145 echo $ECHO_N "(cached) $ECHO_C" >&6 2146else 2147 cat >conftest.$ac_ext <<_ACEOF 2148#line $LINENO "configure" 2149/* confdefs.h. */ 2150_ACEOF 2151cat confdefs.h >>conftest.$ac_ext 2152cat >>conftest.$ac_ext <<_ACEOF 2153/* end confdefs.h. */ 2154 2155int 2156main () 2157{ 2158#ifndef __GNUC__ 2159 choke me 2160#endif 2161 2162 ; 2163 return 0; 2164} 2165_ACEOF 2166rm -f conftest.$ac_objext 2167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2168 (eval $ac_compile) 2>&5 2169 ac_status=$? 2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2171 (exit $ac_status); } && 2172 { ac_try='test -s conftest.$ac_objext' 2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2174 (eval $ac_try) 2>&5 2175 ac_status=$? 2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2177 (exit $ac_status); }; }; then 2178 ac_compiler_gnu=yes 2179else 2180 echo "$as_me: failed program was:" >&5 2181sed 's/^/| /' conftest.$ac_ext >&5 2182 2183ac_compiler_gnu=no 2184fi 2185rm -f conftest.$ac_objext conftest.$ac_ext 2186ac_cv_c_compiler_gnu=$ac_compiler_gnu 2187 2188fi 2189echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2190echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2191GCC=`test $ac_compiler_gnu = yes && echo yes` 2192ac_test_CFLAGS=${CFLAGS+set} 2193ac_save_CFLAGS=$CFLAGS 2194CFLAGS="-g" 2195echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2196echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2197if test "${ac_cv_prog_cc_g+set}" = set; then 2198 echo $ECHO_N "(cached) $ECHO_C" >&6 2199else 2200 cat >conftest.$ac_ext <<_ACEOF 2201#line $LINENO "configure" 2202/* confdefs.h. */ 2203_ACEOF 2204cat confdefs.h >>conftest.$ac_ext 2205cat >>conftest.$ac_ext <<_ACEOF 2206/* end confdefs.h. */ 2207 2208int 2209main () 2210{ 2211 2212 ; 2213 return 0; 2214} 2215_ACEOF 2216rm -f conftest.$ac_objext 2217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2218 (eval $ac_compile) 2>&5 2219 ac_status=$? 2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2221 (exit $ac_status); } && 2222 { ac_try='test -s conftest.$ac_objext' 2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2224 (eval $ac_try) 2>&5 2225 ac_status=$? 2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2227 (exit $ac_status); }; }; then 2228 ac_cv_prog_cc_g=yes 2229else 2230 echo "$as_me: failed program was:" >&5 2231sed 's/^/| /' conftest.$ac_ext >&5 2232 2233ac_cv_prog_cc_g=no 2234fi 2235rm -f conftest.$ac_objext conftest.$ac_ext 2236fi 2237echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2238echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2239if test "$ac_test_CFLAGS" = set; then 2240 CFLAGS=$ac_save_CFLAGS 2241elif test $ac_cv_prog_cc_g = yes; then 2242 if test "$GCC" = yes; then 2243 CFLAGS="-g -O2" 2244 else 2245 CFLAGS="-g" 2246 fi 2247else 2248 if test "$GCC" = yes; then 2249 CFLAGS="-O2" 2250 else 2251 CFLAGS= 2252 fi 2253fi 2254echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2255echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2256if test "${ac_cv_prog_cc_stdc+set}" = set; then 2257 echo $ECHO_N "(cached) $ECHO_C" >&6 2258else 2259 ac_cv_prog_cc_stdc=no 2260ac_save_CC=$CC 2261cat >conftest.$ac_ext <<_ACEOF 2262#line $LINENO "configure" 2263/* confdefs.h. */ 2264_ACEOF 2265cat confdefs.h >>conftest.$ac_ext 2266cat >>conftest.$ac_ext <<_ACEOF 2267/* end confdefs.h. */ 2268#include <stdarg.h> 2269#include <stdio.h> 2270#include <sys/types.h> 2271#include <sys/stat.h> 2272/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2273struct buf { int x; }; 2274FILE * (*rcsopen) (struct buf *, struct stat *, int); 2275static char *e (p, i) 2276 char **p; 2277 int i; 2278{ 2279 return p[i]; 2280} 2281static char *f (char * (*g) (char **, int), char **p, ...) 2282{ 2283 char *s; 2284 va_list v; 2285 va_start (v,p); 2286 s = g (p, va_arg (v,int)); 2287 va_end (v); 2288 return s; 2289} 2290int test (int i, double x); 2291struct s1 {int (*f) (int a);}; 2292struct s2 {int (*f) (double a);}; 2293int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2294int argc; 2295char **argv; 2296int 2297main () 2298{ 2299return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2300 ; 2301 return 0; 2302} 2303_ACEOF 2304# Don't try gcc -ansi; that turns off useful extensions and 2305# breaks some systems' header files. 2306# AIX -qlanglvl=ansi 2307# Ultrix and OSF/1 -std1 2308# HP-UX 10.20 and later -Ae 2309# HP-UX older versions -Aa -D_HPUX_SOURCE 2310# SVR4 -Xc -D__EXTENSIONS__ 2311for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2312do 2313 CC="$ac_save_CC $ac_arg" 2314 rm -f conftest.$ac_objext 2315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2316 (eval $ac_compile) 2>&5 2317 ac_status=$? 2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2319 (exit $ac_status); } && 2320 { ac_try='test -s conftest.$ac_objext' 2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2322 (eval $ac_try) 2>&5 2323 ac_status=$? 2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2325 (exit $ac_status); }; }; then 2326 ac_cv_prog_cc_stdc=$ac_arg 2327break 2328else 2329 echo "$as_me: failed program was:" >&5 2330sed 's/^/| /' conftest.$ac_ext >&5 2331 2332fi 2333rm -f conftest.$ac_objext 2334done 2335rm -f conftest.$ac_ext conftest.$ac_objext 2336CC=$ac_save_CC 2337 2338fi 2339 2340case "x$ac_cv_prog_cc_stdc" in 2341 x|xno) 2342 echo "$as_me:$LINENO: result: none needed" >&5 2343echo "${ECHO_T}none needed" >&6 ;; 2344 *) 2345 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2346echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2347 CC="$CC $ac_cv_prog_cc_stdc" ;; 2348esac 2349 2350# Some people use a C++ compiler to compile C. Since we use `exit', 2351# in C++ we need to declare it. In case someone uses the same compiler 2352# for both compiling C and C++ we need to have the C++ compiler decide 2353# the declaration of exit, since it's the most demanding environment. 2354cat >conftest.$ac_ext <<_ACEOF 2355@%:@ifndef __cplusplus 2356 choke me 2357@%:@endif 2358_ACEOF 2359rm -f conftest.$ac_objext 2360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2361 (eval $ac_compile) 2>&5 2362 ac_status=$? 2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2364 (exit $ac_status); } && 2365 { ac_try='test -s conftest.$ac_objext' 2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2367 (eval $ac_try) 2>&5 2368 ac_status=$? 2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2370 (exit $ac_status); }; }; then 2371 for ac_declaration in \ 2372 ''\ 2373 '#include <stdlib.h>' \ 2374 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2375 'extern "C" void std::exit (int); using std::exit;' \ 2376 'extern "C" void exit (int) throw ();' \ 2377 'extern "C" void exit (int);' \ 2378 'void exit (int);' 2379do 2380 cat >conftest.$ac_ext <<_ACEOF 2381#line $LINENO "configure" 2382/* confdefs.h. */ 2383_ACEOF 2384cat confdefs.h >>conftest.$ac_ext 2385cat >>conftest.$ac_ext <<_ACEOF 2386/* end confdefs.h. */ 2387@%:@include <stdlib.h> 2388$ac_declaration 2389int 2390main () 2391{ 2392exit (42); 2393 ; 2394 return 0; 2395} 2396_ACEOF 2397rm -f conftest.$ac_objext 2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2399 (eval $ac_compile) 2>&5 2400 ac_status=$? 2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2402 (exit $ac_status); } && 2403 { ac_try='test -s conftest.$ac_objext' 2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2405 (eval $ac_try) 2>&5 2406 ac_status=$? 2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2408 (exit $ac_status); }; }; then 2409 : 2410else 2411 echo "$as_me: failed program was:" >&5 2412sed 's/^/| /' conftest.$ac_ext >&5 2413 2414continue 2415fi 2416rm -f conftest.$ac_objext conftest.$ac_ext 2417 cat >conftest.$ac_ext <<_ACEOF 2418#line $LINENO "configure" 2419/* confdefs.h. */ 2420_ACEOF 2421cat confdefs.h >>conftest.$ac_ext 2422cat >>conftest.$ac_ext <<_ACEOF 2423/* end confdefs.h. */ 2424$ac_declaration 2425int 2426main () 2427{ 2428exit (42); 2429 ; 2430 return 0; 2431} 2432_ACEOF 2433rm -f conftest.$ac_objext 2434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2435 (eval $ac_compile) 2>&5 2436 ac_status=$? 2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2438 (exit $ac_status); } && 2439 { ac_try='test -s conftest.$ac_objext' 2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2441 (eval $ac_try) 2>&5 2442 ac_status=$? 2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2444 (exit $ac_status); }; }; then 2445 break 2446else 2447 echo "$as_me: failed program was:" >&5 2448sed 's/^/| /' conftest.$ac_ext >&5 2449 2450fi 2451rm -f conftest.$ac_objext conftest.$ac_ext 2452done 2453rm -f conftest* 2454if test -n "$ac_declaration"; then 2455 echo '#ifdef __cplusplus' >>confdefs.h 2456 echo $ac_declaration >>confdefs.h 2457 echo '#endif' >>confdefs.h 2458fi 2459 2460else 2461 echo "$as_me: failed program was:" >&5 2462sed 's/^/| /' conftest.$ac_ext >&5 2463 2464fi 2465rm -f conftest.$ac_objext conftest.$ac_ext 2466ac_ext=c 2467ac_cpp='$CPP $CPPFLAGS' 2468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2470ac_compiler_gnu=$ac_cv_c_compiler_gnu 2471 2472echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2473echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2474set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2475if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2476 echo $ECHO_N "(cached) $ECHO_C" >&6 2477else 2478 cat >conftest.make <<\_ACEOF 2479all: 2480 @echo 'ac_maketemp="$(MAKE)"' 2481_ACEOF 2482# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2483eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2484if test -n "$ac_maketemp"; then 2485 eval ac_cv_prog_make_${ac_make}_set=yes 2486else 2487 eval ac_cv_prog_make_${ac_make}_set=no 2488fi 2489rm -f conftest.make 2490fi 2491if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2492 echo "$as_me:$LINENO: result: yes" >&5 2493echo "${ECHO_T}yes" >&6 2494 SET_MAKE= 2495else 2496 echo "$as_me:$LINENO: result: no" >&5 2497echo "${ECHO_T}no" >&6 2498 SET_MAKE="MAKE=${MAKE-make}" 2499fi 2500 2501 2502# Checks for libraries. 2503 2504# Checks for header files. 2505 2506# Checks for typedefs, structures, and compiler characteristics. 2507 2508ac_ext=c 2509ac_cpp='$CPP $CPPFLAGS' 2510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2512ac_compiler_gnu=$ac_cv_c_compiler_gnu 2513echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2514echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2515# On Suns, sometimes $CPP names a directory. 2516if test -n "$CPP" && test -d "$CPP"; then 2517 CPP= 2518fi 2519if test -z "$CPP"; then 2520 if test "${ac_cv_prog_CPP+set}" = set; then 2521 echo $ECHO_N "(cached) $ECHO_C" >&6 2522else 2523 # Double quotes because CPP needs to be expanded 2524 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2525 do 2526 ac_preproc_ok=false 2527for ac_c_preproc_warn_flag in '' yes 2528do 2529 # Use a header file that comes with gcc, so configuring glibc 2530 # with a fresh cross-compiler works. 2531 # On the NeXT, cc -E runs the code through the compiler's parser, 2532 # not just through cpp. "Syntax error" is here to catch this case. 2533 cat >conftest.$ac_ext <<_ACEOF 2534#line $LINENO "configure" 2535/* confdefs.h. */ 2536_ACEOF 2537cat confdefs.h >>conftest.$ac_ext 2538cat >>conftest.$ac_ext <<_ACEOF 2539/* end confdefs.h. */ 2540@%:@include <assert.h> 2541 Syntax error 2542_ACEOF 2543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2545 ac_status=$? 2546 grep -v '^ *+' conftest.er1 >conftest.err 2547 rm -f conftest.er1 2548 cat conftest.err >&5 2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2550 (exit $ac_status); } >/dev/null; then 2551 if test -s conftest.err; then 2552 ac_cpp_err=$ac_c_preproc_warn_flag 2553 else 2554 ac_cpp_err= 2555 fi 2556else 2557 ac_cpp_err=yes 2558fi 2559if test -z "$ac_cpp_err"; then 2560 : 2561else 2562 echo "$as_me: failed program was:" >&5 2563sed 's/^/| /' conftest.$ac_ext >&5 2564 2565 # Broken: fails on valid input. 2566continue 2567fi 2568rm -f conftest.err conftest.$ac_ext 2569 2570 # OK, works on sane cases. Now check whether non-existent headers 2571 # can be detected and how. 2572 cat >conftest.$ac_ext <<_ACEOF 2573#line $LINENO "configure" 2574/* confdefs.h. */ 2575_ACEOF 2576cat confdefs.h >>conftest.$ac_ext 2577cat >>conftest.$ac_ext <<_ACEOF 2578/* end confdefs.h. */ 2579@%:@include <ac_nonexistent.h> 2580_ACEOF 2581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2583 ac_status=$? 2584 grep -v '^ *+' conftest.er1 >conftest.err 2585 rm -f conftest.er1 2586 cat conftest.err >&5 2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2588 (exit $ac_status); } >/dev/null; then 2589 if test -s conftest.err; then 2590 ac_cpp_err=$ac_c_preproc_warn_flag 2591 else 2592 ac_cpp_err= 2593 fi 2594else 2595 ac_cpp_err=yes 2596fi 2597if test -z "$ac_cpp_err"; then 2598 # Broken: success on invalid input. 2599continue 2600else 2601 echo "$as_me: failed program was:" >&5 2602sed 's/^/| /' conftest.$ac_ext >&5 2603 2604 # Passes both tests. 2605ac_preproc_ok=: 2606break 2607fi 2608rm -f conftest.err conftest.$ac_ext 2609 2610done 2611# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2612rm -f conftest.err conftest.$ac_ext 2613if $ac_preproc_ok; then 2614 break 2615fi 2616 2617 done 2618 ac_cv_prog_CPP=$CPP 2619 2620fi 2621 CPP=$ac_cv_prog_CPP 2622else 2623 ac_cv_prog_CPP=$CPP 2624fi 2625echo "$as_me:$LINENO: result: $CPP" >&5 2626echo "${ECHO_T}$CPP" >&6 2627ac_preproc_ok=false 2628for ac_c_preproc_warn_flag in '' yes 2629do 2630 # Use a header file that comes with gcc, so configuring glibc 2631 # with a fresh cross-compiler works. 2632 # On the NeXT, cc -E runs the code through the compiler's parser, 2633 # not just through cpp. "Syntax error" is here to catch this case. 2634 cat >conftest.$ac_ext <<_ACEOF 2635#line $LINENO "configure" 2636/* confdefs.h. */ 2637_ACEOF 2638cat confdefs.h >>conftest.$ac_ext 2639cat >>conftest.$ac_ext <<_ACEOF 2640/* end confdefs.h. */ 2641@%:@include <assert.h> 2642 Syntax error 2643_ACEOF 2644if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2646 ac_status=$? 2647 grep -v '^ *+' conftest.er1 >conftest.err 2648 rm -f conftest.er1 2649 cat conftest.err >&5 2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2651 (exit $ac_status); } >/dev/null; then 2652 if test -s conftest.err; then 2653 ac_cpp_err=$ac_c_preproc_warn_flag 2654 else 2655 ac_cpp_err= 2656 fi 2657else 2658 ac_cpp_err=yes 2659fi 2660if test -z "$ac_cpp_err"; then 2661 : 2662else 2663 echo "$as_me: failed program was:" >&5 2664sed 's/^/| /' conftest.$ac_ext >&5 2665 2666 # Broken: fails on valid input. 2667continue 2668fi 2669rm -f conftest.err conftest.$ac_ext 2670 2671 # OK, works on sane cases. Now check whether non-existent headers 2672 # can be detected and how. 2673 cat >conftest.$ac_ext <<_ACEOF 2674#line $LINENO "configure" 2675/* confdefs.h. */ 2676_ACEOF 2677cat confdefs.h >>conftest.$ac_ext 2678cat >>conftest.$ac_ext <<_ACEOF 2679/* end confdefs.h. */ 2680@%:@include <ac_nonexistent.h> 2681_ACEOF 2682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2684 ac_status=$? 2685 grep -v '^ *+' conftest.er1 >conftest.err 2686 rm -f conftest.er1 2687 cat conftest.err >&5 2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2689 (exit $ac_status); } >/dev/null; then 2690 if test -s conftest.err; then 2691 ac_cpp_err=$ac_c_preproc_warn_flag 2692 else 2693 ac_cpp_err= 2694 fi 2695else 2696 ac_cpp_err=yes 2697fi 2698if test -z "$ac_cpp_err"; then 2699 # Broken: success on invalid input. 2700continue 2701else 2702 echo "$as_me: failed program was:" >&5 2703sed 's/^/| /' conftest.$ac_ext >&5 2704 2705 # Passes both tests. 2706ac_preproc_ok=: 2707break 2708fi 2709rm -f conftest.err conftest.$ac_ext 2710 2711done 2712# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2713rm -f conftest.err conftest.$ac_ext 2714if $ac_preproc_ok; then 2715 : 2716else 2717 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2718See \`config.log' for more details." >&5 2719echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2720See \`config.log' for more details." >&2;} 2721 { (exit 1); exit 1; }; } 2722fi 2723 2724ac_ext=c 2725ac_cpp='$CPP $CPPFLAGS' 2726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2728ac_compiler_gnu=$ac_cv_c_compiler_gnu 2729 2730 2731echo "$as_me:$LINENO: checking for egrep" >&5 2732echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2733if test "${ac_cv_prog_egrep+set}" = set; then 2734 echo $ECHO_N "(cached) $ECHO_C" >&6 2735else 2736 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2737 then ac_cv_prog_egrep='grep -E' 2738 else ac_cv_prog_egrep='egrep' 2739 fi 2740fi 2741echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2742echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2743 EGREP=$ac_cv_prog_egrep 2744 2745 2746echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2747echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2748if test "${ac_cv_header_stdc+set}" = set; then 2749 echo $ECHO_N "(cached) $ECHO_C" >&6 2750else 2751 cat >conftest.$ac_ext <<_ACEOF 2752#line $LINENO "configure" 2753/* confdefs.h. */ 2754_ACEOF 2755cat confdefs.h >>conftest.$ac_ext 2756cat >>conftest.$ac_ext <<_ACEOF 2757/* end confdefs.h. */ 2758#include <stdlib.h> 2759#include <stdarg.h> 2760#include <string.h> 2761#include <float.h> 2762 2763int 2764main () 2765{ 2766 2767 ; 2768 return 0; 2769} 2770_ACEOF 2771rm -f conftest.$ac_objext 2772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2773 (eval $ac_compile) 2>&5 2774 ac_status=$? 2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2776 (exit $ac_status); } && 2777 { ac_try='test -s conftest.$ac_objext' 2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2779 (eval $ac_try) 2>&5 2780 ac_status=$? 2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2782 (exit $ac_status); }; }; then 2783 ac_cv_header_stdc=yes 2784else 2785 echo "$as_me: failed program was:" >&5 2786sed 's/^/| /' conftest.$ac_ext >&5 2787 2788ac_cv_header_stdc=no 2789fi 2790rm -f conftest.$ac_objext conftest.$ac_ext 2791 2792if test $ac_cv_header_stdc = yes; then 2793 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2794 cat >conftest.$ac_ext <<_ACEOF 2795#line $LINENO "configure" 2796/* confdefs.h. */ 2797_ACEOF 2798cat confdefs.h >>conftest.$ac_ext 2799cat >>conftest.$ac_ext <<_ACEOF 2800/* end confdefs.h. */ 2801#include <string.h> 2802 2803_ACEOF 2804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2805 $EGREP "memchr" >/dev/null 2>&1; then 2806 : 2807else 2808 ac_cv_header_stdc=no 2809fi 2810rm -f conftest* 2811 2812fi 2813 2814if test $ac_cv_header_stdc = yes; then 2815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2816 cat >conftest.$ac_ext <<_ACEOF 2817#line $LINENO "configure" 2818/* confdefs.h. */ 2819_ACEOF 2820cat confdefs.h >>conftest.$ac_ext 2821cat >>conftest.$ac_ext <<_ACEOF 2822/* end confdefs.h. */ 2823#include <stdlib.h> 2824 2825_ACEOF 2826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2827 $EGREP "free" >/dev/null 2>&1; then 2828 : 2829else 2830 ac_cv_header_stdc=no 2831fi 2832rm -f conftest* 2833 2834fi 2835 2836if test $ac_cv_header_stdc = yes; then 2837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2838 if test "$cross_compiling" = yes; then 2839 : 2840else 2841 cat >conftest.$ac_ext <<_ACEOF 2842#line $LINENO "configure" 2843/* confdefs.h. */ 2844_ACEOF 2845cat confdefs.h >>conftest.$ac_ext 2846cat >>conftest.$ac_ext <<_ACEOF 2847/* end confdefs.h. */ 2848#include <ctype.h> 2849#if ((' ' & 0x0FF) == 0x020) 2850# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2851# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2852#else 2853# define ISLOWER(c) \ 2854 (('a' <= (c) && (c) <= 'i') \ 2855 || ('j' <= (c) && (c) <= 'r') \ 2856 || ('s' <= (c) && (c) <= 'z')) 2857# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2858#endif 2859 2860#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2861int 2862main () 2863{ 2864 int i; 2865 for (i = 0; i < 256; i++) 2866 if (XOR (islower (i), ISLOWER (i)) 2867 || toupper (i) != TOUPPER (i)) 2868 exit(2); 2869 exit (0); 2870} 2871_ACEOF 2872rm -f conftest$ac_exeext 2873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2874 (eval $ac_link) 2>&5 2875 ac_status=$? 2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2879 (eval $ac_try) 2>&5 2880 ac_status=$? 2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2882 (exit $ac_status); }; }; then 2883 : 2884else 2885 echo "$as_me: program exited with status $ac_status" >&5 2886echo "$as_me: failed program was:" >&5 2887sed 's/^/| /' conftest.$ac_ext >&5 2888 2889( exit $ac_status ) 2890ac_cv_header_stdc=no 2891fi 2892rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2893fi 2894fi 2895fi 2896echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 2897echo "${ECHO_T}$ac_cv_header_stdc" >&6 2898if test $ac_cv_header_stdc = yes; then 2899 2900cat >>confdefs.h <<\_ACEOF 2901@%:@define STDC_HEADERS 1 2902_ACEOF 2903 2904fi 2905 2906# On IRIX 5.3, sys/types and inttypes.h are conflicting. 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 2917 inttypes.h stdint.h unistd.h 2918do 2919as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 2920echo "$as_me:$LINENO: checking for $ac_header" >&5 2921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2922if eval "test \"\${$as_ac_Header+set}\" = set"; then 2923 echo $ECHO_N "(cached) $ECHO_C" >&6 2924else 2925 cat >conftest.$ac_ext <<_ACEOF 2926#line $LINENO "configure" 2927/* confdefs.h. */ 2928_ACEOF 2929cat confdefs.h >>conftest.$ac_ext 2930cat >>conftest.$ac_ext <<_ACEOF 2931/* end confdefs.h. */ 2932$ac_includes_default 2933 2934@%:@include <$ac_header> 2935_ACEOF 2936rm -f conftest.$ac_objext 2937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2938 (eval $ac_compile) 2>&5 2939 ac_status=$? 2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2941 (exit $ac_status); } && 2942 { ac_try='test -s conftest.$ac_objext' 2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2944 (eval $ac_try) 2>&5 2945 ac_status=$? 2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2947 (exit $ac_status); }; }; then 2948 eval "$as_ac_Header=yes" 2949else 2950 echo "$as_me: failed program was:" >&5 2951sed 's/^/| /' conftest.$ac_ext >&5 2952 2953eval "$as_ac_Header=no" 2954fi 2955rm -f conftest.$ac_objext conftest.$ac_ext 2956fi 2957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 2958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 2959if test `eval echo '${'$as_ac_Header'}'` = yes; then 2960 cat >>confdefs.h <<_ACEOF 2961@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 2962_ACEOF 2963 2964fi 2965 2966done 2967 2968 2969echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 2970echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 2971if test "${ac_cv_header_stdbool_h+set}" = set; then 2972 echo $ECHO_N "(cached) $ECHO_C" >&6 2973else 2974 cat >conftest.$ac_ext <<_ACEOF 2975#line $LINENO "configure" 2976/* confdefs.h. */ 2977_ACEOF 2978cat confdefs.h >>conftest.$ac_ext 2979cat >>conftest.$ac_ext <<_ACEOF 2980/* end confdefs.h. */ 2981 2982#include <stdbool.h> 2983#ifndef bool 2984# error bool is not defined 2985#endif 2986#ifndef false 2987# error false is not defined 2988#endif 2989#if false 2990# error false is not 0 2991#endif 2992#ifndef true 2993# error true is not defined 2994#endif 2995#if true != 1 2996# error true is not 1 2997#endif 2998#ifndef __bool_true_false_are_defined 2999# error __bool_true_false_are_defined is not defined 3000#endif 3001 3002 struct s { _Bool s: 1; _Bool t; } s; 3003 3004 char a[true == 1 ? 1 : -1]; 3005 char b[false == 0 ? 1 : -1]; 3006 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 3007 char d[(bool) -0.5 == true ? 1 : -1]; 3008 bool e = &s; 3009 char f[(_Bool) -0.0 == false ? 1 : -1]; 3010 char g[true]; 3011 char h[sizeof (_Bool)]; 3012 char i[sizeof s.t]; 3013 3014int 3015main () 3016{ 3017 return !a + !b + !c + !d + !e + !f + !g + !h + !i; 3018 ; 3019 return 0; 3020} 3021_ACEOF 3022rm -f conftest.$ac_objext 3023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3024 (eval $ac_compile) 2>&5 3025 ac_status=$? 3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3027 (exit $ac_status); } && 3028 { ac_try='test -s conftest.$ac_objext' 3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3030 (eval $ac_try) 2>&5 3031 ac_status=$? 3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3033 (exit $ac_status); }; }; then 3034 ac_cv_header_stdbool_h=yes 3035else 3036 echo "$as_me: failed program was:" >&5 3037sed 's/^/| /' conftest.$ac_ext >&5 3038 3039ac_cv_header_stdbool_h=no 3040fi 3041rm -f conftest.$ac_objext conftest.$ac_ext 3042fi 3043echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 3044echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 3045echo "$as_me:$LINENO: checking for _Bool" >&5 3046echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 3047if test "${ac_cv_type__Bool+set}" = set; then 3048 echo $ECHO_N "(cached) $ECHO_C" >&6 3049else 3050 cat >conftest.$ac_ext <<_ACEOF 3051#line $LINENO "configure" 3052/* confdefs.h. */ 3053_ACEOF 3054cat confdefs.h >>conftest.$ac_ext 3055cat >>conftest.$ac_ext <<_ACEOF 3056/* end confdefs.h. */ 3057$ac_includes_default 3058int 3059main () 3060{ 3061if ((_Bool *) 0) 3062 return 0; 3063if (sizeof (_Bool)) 3064 return 0; 3065 ; 3066 return 0; 3067} 3068_ACEOF 3069rm -f conftest.$ac_objext 3070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3071 (eval $ac_compile) 2>&5 3072 ac_status=$? 3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3074 (exit $ac_status); } && 3075 { ac_try='test -s conftest.$ac_objext' 3076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3077 (eval $ac_try) 2>&5 3078 ac_status=$? 3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3080 (exit $ac_status); }; }; then 3081 ac_cv_type__Bool=yes 3082else 3083 echo "$as_me: failed program was:" >&5 3084sed 's/^/| /' conftest.$ac_ext >&5 3085 3086ac_cv_type__Bool=no 3087fi 3088rm -f conftest.$ac_objext conftest.$ac_ext 3089fi 3090echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 3091echo "${ECHO_T}$ac_cv_type__Bool" >&6 3092if test $ac_cv_type__Bool = yes; then 3093 3094cat >>confdefs.h <<_ACEOF 3095@%:@define HAVE__BOOL 1 3096_ACEOF 3097 3098 3099fi 3100 3101if test $ac_cv_header_stdbool_h = yes; then 3102 3103cat >>confdefs.h <<\_ACEOF 3104@%:@define HAVE_STDBOOL_H 1 3105_ACEOF 3106 3107fi 3108 3109echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3110echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3111if test "${ac_cv_c_const+set}" = set; then 3112 echo $ECHO_N "(cached) $ECHO_C" >&6 3113else 3114 cat >conftest.$ac_ext <<_ACEOF 3115#line $LINENO "configure" 3116/* confdefs.h. */ 3117_ACEOF 3118cat confdefs.h >>conftest.$ac_ext 3119cat >>conftest.$ac_ext <<_ACEOF 3120/* end confdefs.h. */ 3121 3122int 3123main () 3124{ 3125/* FIXME: Include the comments suggested by Paul. */ 3126#ifndef __cplusplus 3127 /* Ultrix mips cc rejects this. */ 3128 typedef int charset[2]; 3129 const charset x; 3130 /* SunOS 4.1.1 cc rejects this. */ 3131 char const *const *ccp; 3132 char **p; 3133 /* NEC SVR4.0.2 mips cc rejects this. */ 3134 struct point {int x, y;}; 3135 static struct point const zero = {0,0}; 3136 /* AIX XL C 1.02.0.0 rejects this. 3137 It does not let you subtract one const X* pointer from another in 3138 an arm of an if-expression whose if-part is not a constant 3139 expression */ 3140 const char *g = "string"; 3141 ccp = &g + (g ? g-g : 0); 3142 /* HPUX 7.0 cc rejects these. */ 3143 ++ccp; 3144 p = (char**) ccp; 3145 ccp = (char const *const *) p; 3146 { /* SCO 3.2v4 cc rejects this. */ 3147 char *t; 3148 char const *s = 0 ? (char *) 0 : (char const *) 0; 3149 3150 *t++ = 0; 3151 } 3152 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3153 int x[] = {25, 17}; 3154 const int *foo = &x[0]; 3155 ++foo; 3156 } 3157 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3158 typedef const int *iptr; 3159 iptr p = 0; 3160 ++p; 3161 } 3162 { /* AIX XL C 1.02.0.0 rejects this saying 3163 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3164 struct s { int j; const int *ap[3]; }; 3165 struct s *b; b->j = 5; 3166 } 3167 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3168 const int foo = 10; 3169 } 3170#endif 3171 3172 ; 3173 return 0; 3174} 3175_ACEOF 3176rm -f conftest.$ac_objext 3177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3178 (eval $ac_compile) 2>&5 3179 ac_status=$? 3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 (exit $ac_status); } && 3182 { ac_try='test -s conftest.$ac_objext' 3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3184 (eval $ac_try) 2>&5 3185 ac_status=$? 3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 (exit $ac_status); }; }; then 3188 ac_cv_c_const=yes 3189else 3190 echo "$as_me: failed program was:" >&5 3191sed 's/^/| /' conftest.$ac_ext >&5 3192 3193ac_cv_c_const=no 3194fi 3195rm -f conftest.$ac_objext conftest.$ac_ext 3196fi 3197echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3198echo "${ECHO_T}$ac_cv_c_const" >&6 3199if test $ac_cv_c_const = no; then 3200 3201cat >>confdefs.h <<\_ACEOF 3202@%:@define const 3203_ACEOF 3204 3205fi 3206 3207 3208# Checks for library functions. 3209 3210for ac_func in sqrt 3211do 3212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3213echo "$as_me:$LINENO: checking for $ac_func" >&5 3214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3215if eval "test \"\${$as_ac_var+set}\" = set"; then 3216 echo $ECHO_N "(cached) $ECHO_C" >&6 3217else 3218 cat >conftest.$ac_ext <<_ACEOF 3219#line $LINENO "configure" 3220/* confdefs.h. */ 3221_ACEOF 3222cat confdefs.h >>conftest.$ac_ext 3223cat >>conftest.$ac_ext <<_ACEOF 3224/* end confdefs.h. */ 3225/* System header to define __stub macros and hopefully few prototypes, 3226 which can conflict with char $ac_func (); below. */ 3227#include <assert.h> 3228/* Override any gcc2 internal prototype to avoid an error. */ 3229#ifdef __cplusplus 3230extern "C" 3231{ 3232#endif 3233/* We use char because int might match the return type of a gcc2 3234 builtin and then its argument prototype would still apply. */ 3235char $ac_func (); 3236/* The GNU C library defines this for functions which it implements 3237 to always fail with ENOSYS. Some functions are actually named 3238 something starting with __ and the normal name is an alias. */ 3239#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3240choke me 3241#else 3242char (*f) () = $ac_func; 3243#endif 3244#ifdef __cplusplus 3245} 3246#endif 3247 3248int 3249main () 3250{ 3251 3252 ; 3253 return 0; 3254} 3255_ACEOF 3256rm -f conftest.$ac_objext conftest$ac_exeext 3257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3258 (eval $ac_link) 2>&5 3259 ac_status=$? 3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3261 (exit $ac_status); } && 3262 { ac_try='test -s conftest$ac_exeext' 3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3264 (eval $ac_try) 2>&5 3265 ac_status=$? 3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3267 (exit $ac_status); }; }; then 3268 eval "$as_ac_var=yes" 3269else 3270 echo "$as_me: failed program was:" >&5 3271sed 's/^/| /' conftest.$ac_ext >&5 3272 3273eval "$as_ac_var=no" 3274fi 3275rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3276fi 3277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 3278echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3279if test `eval echo '${'$as_ac_var'}'` = yes; then 3280 cat >>confdefs.h <<_ACEOF 3281@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3282_ACEOF 3283 3284fi 3285done 3286 3287 3288# Check for wxWidgets 3289vers=`wx-config --version | awk 'BEGIN { FS = "."; } { printf "% d", ($1 * 1000 + $2) * 1000 + $3;}'` 3290echo "$as_me:$LINENO: checking for wxWidgets 2.6.0 or later" >&5 3291echo $ECHO_N "checking for wxWidgets 2.6.0 or later... $ECHO_C" >&6 3292if test "$vers" -lt 2006000; then 3293 { { echo "$as_me:$LINENO: error: no" >&5 3294echo "$as_me: error: no" >&2;} 3295 { (exit 1); exit 1; }; } 3296else 3297 echo "$as_me:$LINENO: result: yes" >&5 3298echo "${ECHO_T}yes" >&6 3299fi 3300 3301 ac_config_files="$ac_config_files makefile src/Makefile" 3302 3303cat >confcache <<\_ACEOF 3304# This file is a shell script that caches the results of configure 3305# tests run on this system so they can be shared between configure 3306# scripts and configure runs, see configure's option --config-cache. 3307# It is not useful on other systems. If it contains results you don't 3308# want to keep, you may remove or edit it. 3309# 3310# config.status only pays attention to the cache file if you give it 3311# the --recheck option to rerun configure. 3312# 3313# `ac_cv_env_foo' variables (set or unset) will be overridden when 3314# loading this file, other *unset* `ac_cv_foo' will be assigned the 3315# following values. 3316 3317_ACEOF 3318 3319# The following way of writing the cache mishandles newlines in values, 3320# but we know of no workaround that is simple, portable, and efficient. 3321# So, don't put newlines in cache variables' values. 3322# Ultrix sh set writes to stderr and can't be redirected directly, 3323# and sets the high bit in the cache file unless we assign to the vars. 3324{ 3325 (set) 2>&1 | 3326 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3327 *ac_space=\ *) 3328 # `set' does not quote correctly, so add quotes (double-quote 3329 # substitution turns \\\\ into \\, and sed turns \\ into \). 3330 sed -n \ 3331 "s/'/'\\\\''/g; 3332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 3333 ;; 3334 *) 3335 # `set' quotes correctly as required by POSIX, so do not add quotes. 3336 sed -n \ 3337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 3338 ;; 3339 esac; 3340} | 3341 sed ' 3342 t clear 3343 : clear 3344 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 3345 t end 3346 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3347 : end' >>confcache 3348if diff $cache_file confcache >/dev/null 2>&1; then :; else 3349 if test -w $cache_file; then 3350 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 3351 cat confcache >$cache_file 3352 else 3353 echo "not updating unwritable cache $cache_file" 3354 fi 3355fi 3356rm -f confcache 3357 3358test "x$prefix" = xNONE && prefix=$ac_default_prefix 3359# Let make expand exec_prefix. 3360test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3361 3362# VPATH may cause trouble with some makes, so we remove $(srcdir), 3363# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 3364# trailing colons and then remove the whole line if VPATH becomes empty 3365# (actually we leave an empty line to preserve line numbers). 3366if test "x$srcdir" = x.; then 3367 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 3368s/:*\$(srcdir):*/:/; 3369s/:*\${srcdir}:*/:/; 3370s/:*@srcdir@:*/:/; 3371s/^\([^=]*=[ ]*\):*/\1/; 3372s/:*$//; 3373s/^[^=]*=[ ]*$//; 3374}' 3375fi 3376 3377DEFS=-DHAVE_CONFIG_H 3378 3379ac_libobjs= 3380ac_ltlibobjs= 3381for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 3382 # 1. Remove the extension, and $U if already installed. 3383 ac_i=`echo "$ac_i" | 3384 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 3385 # 2. Add them. 3386 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 3387 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 3388done 3389LIB@&t@OBJS=$ac_libobjs 3390 3391LTLIBOBJS=$ac_ltlibobjs 3392 3393 3394 3395: ${CONFIG_STATUS=./config.status} 3396ac_clean_files_save=$ac_clean_files 3397ac_clean_files="$ac_clean_files $CONFIG_STATUS" 3398{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 3399echo "$as_me: creating $CONFIG_STATUS" >&6;} 3400cat >$CONFIG_STATUS <<_ACEOF 3401#! $SHELL 3402# Generated by $as_me. 3403# Run this file to recreate the current configuration. 3404# Compiler output produced by configure, useful for debugging 3405# configure, is in config.log if it exists. 3406 3407debug=false 3408ac_cs_recheck=false 3409ac_cs_silent=false 3410SHELL=\${CONFIG_SHELL-$SHELL} 3411_ACEOF 3412 3413cat >>$CONFIG_STATUS <<\_ACEOF 3414## --------------------- ## 3415## M4sh Initialization. ## 3416## --------------------- ## 3417 3418# Be Bourne compatible 3419if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 3420 emulate sh 3421 NULLCMD=: 3422 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 3423 # is contrary to our usage. Disable this feature. 3424 alias -g '${1+"$@"}'='"$@"' 3425elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 3426 set -o posix 3427fi 3428 3429# Support unset when possible. 3430if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 3431 as_unset=unset 3432else 3433 as_unset=false 3434fi 3435 3436 3437# Work around bugs in pre-3.0 UWIN ksh. 3438$as_unset ENV MAIL MAILPATH 3439PS1='$ ' 3440PS2='> ' 3441PS4='+ ' 3442 3443# NLS nuisances. 3444for as_var in \ 3445 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 3446 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 3447 LC_TELEPHONE LC_TIME 3448do 3449 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 3450 eval $as_var=C; export $as_var 3451 else 3452 $as_unset $as_var 3453 fi 3454done 3455 3456# Required to use basename. 3457if expr a : '\(a\)' >/dev/null 2>&1; then 3458 as_expr=expr 3459else 3460 as_expr=false 3461fi 3462 3463if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 3464 as_basename=basename 3465else 3466 as_basename=false 3467fi 3468 3469 3470# Name of the executable. 3471as_me=`$as_basename "$0" || 3472$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 3473 X"$0" : 'X\(//\)$' \| \ 3474 X"$0" : 'X\(/\)$' \| \ 3475 . : '\(.\)' 2>/dev/null || 3476echo X/"$0" | 3477 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 3478 /^X\/\(\/\/\)$/{ s//\1/; q; } 3479 /^X\/\(\/\).*/{ s//\1/; q; } 3480 s/.*/./; q'` 3481 3482 3483# PATH needs CR, and LINENO needs CR and PATH. 3484# Avoid depending upon Character Ranges. 3485as_cr_letters='abcdefghijklmnopqrstuvwxyz' 3486as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 3487as_cr_Letters=$as_cr_letters$as_cr_LETTERS 3488as_cr_digits='0123456789' 3489as_cr_alnum=$as_cr_Letters$as_cr_digits 3490 3491# The user is always right. 3492if test "${PATH_SEPARATOR+set}" != set; then 3493 echo "#! /bin/sh" >conf$$.sh 3494 echo "exit 0" >>conf$$.sh 3495 chmod +x conf$$.sh 3496 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3497 PATH_SEPARATOR=';' 3498 else 3499 PATH_SEPARATOR=: 3500 fi 3501 rm -f conf$$.sh 3502fi 3503 3504 3505 as_lineno_1=$LINENO 3506 as_lineno_2=$LINENO 3507 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 3508 test "x$as_lineno_1" != "x$as_lineno_2" && 3509 test "x$as_lineno_3" = "x$as_lineno_2" || { 3510 # Find who we are. Look in the path if we contain no path at all 3511 # relative or not. 3512 case $0 in 3513 *[\\/]* ) as_myself=$0 ;; 3514 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3515for as_dir in $PATH 3516do 3517 IFS=$as_save_IFS 3518 test -z "$as_dir" && as_dir=. 3519 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 3520done 3521 3522 ;; 3523 esac 3524 # We did not find ourselves, most probably we were run as `sh COMMAND' 3525 # in which case we are not to be found in the path. 3526 if test "x$as_myself" = x; then 3527 as_myself=$0 3528 fi 3529 if test ! -f "$as_myself"; then 3530 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 3531echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 3532 { (exit 1); exit 1; }; } 3533 fi 3534 case $CONFIG_SHELL in 3535 '') 3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3537for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 3538do 3539 IFS=$as_save_IFS 3540 test -z "$as_dir" && as_dir=. 3541 for as_base in sh bash ksh sh5; do 3542 case $as_dir in 3543 /*) 3544 if ("$as_dir/$as_base" -c ' 3545 as_lineno_1=$LINENO 3546 as_lineno_2=$LINENO 3547 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 3548 test "x$as_lineno_1" != "x$as_lineno_2" && 3549 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 3550 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 3551 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 3552 CONFIG_SHELL=$as_dir/$as_base 3553 export CONFIG_SHELL 3554 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 3555 fi;; 3556 esac 3557 done 3558done 3559;; 3560 esac 3561 3562 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 3563 # uniformly replaced by the line number. The first 'sed' inserts a 3564 # line-number line before each line; the second 'sed' does the real 3565 # work. The second script uses 'N' to pair each line-number line 3566 # with the numbered line, and appends trailing '-' during 3567 # substitution so that $LINENO is not a special case at line end. 3568 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 3569 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 3570 sed '=' <$as_myself | 3571 sed ' 3572 N 3573 s,$,-, 3574 : loop 3575 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 3576 t loop 3577 s,-$,, 3578 s,^['$as_cr_digits']*\n,, 3579 ' >$as_me.lineno && 3580 chmod +x $as_me.lineno || 3581 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 3582echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 3583 { (exit 1); exit 1; }; } 3584 3585 # Don't try to exec as it changes $[0], causing all sort of problems 3586 # (the dirname of $[0] is not the place where we might find the 3587 # original and so on. Autoconf is especially sensible to this). 3588 . ./$as_me.lineno 3589 # Exit status is that of the last command. 3590 exit 3591} 3592 3593 3594case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 3595 *c*,-n*) ECHO_N= ECHO_C=' 3596' ECHO_T=' ' ;; 3597 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 3598 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 3599esac 3600 3601if expr a : '\(a\)' >/dev/null 2>&1; then 3602 as_expr=expr 3603else 3604 as_expr=false 3605fi 3606 3607rm -f conf$$ conf$$.exe conf$$.file 3608echo >conf$$.file 3609if ln -s conf$$.file conf$$ 2>/dev/null; then 3610 # We could just check for DJGPP; but this test a) works b) is more generic 3611 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 3612 if test -f conf$$.exe; then 3613 # Don't use ln at all; we don't have any links 3614 as_ln_s='cp -p' 3615 else 3616 as_ln_s='ln -s' 3617 fi 3618elif ln conf$$.file conf$$ 2>/dev/null; then 3619 as_ln_s=ln 3620else 3621 as_ln_s='cp -p' 3622fi 3623rm -f conf$$ conf$$.exe conf$$.file 3624 3625if mkdir -p . 2>/dev/null; then 3626 as_mkdir_p=: 3627else 3628 as_mkdir_p=false 3629fi 3630 3631as_executable_p="test -f" 3632 3633# Sed expression to map a string onto a valid CPP name. 3634as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 3635 3636# Sed expression to map a string onto a valid variable name. 3637as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 3638 3639 3640# IFS 3641# We need space, tab and new line, in precisely that order. 3642as_nl=' 3643' 3644IFS=" $as_nl" 3645 3646# CDPATH. 3647$as_unset CDPATH 3648 3649exec 6>&1 3650 3651# Open the log real soon, to keep \$[0] and so on meaningful, and to 3652# report actual input values of CONFIG_FILES etc. instead of their 3653# values after options handling. Logging --version etc. is OK. 3654exec 5>>config.log 3655{ 3656 echo 3657 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 3658@%:@@%:@ Running $as_me. @%:@@%:@ 3659_ASBOX 3660} >&5 3661cat >&5 <<_CSEOF 3662 3663This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was 3664generated by GNU Autoconf 2.56. Invocation command line was 3665 3666 CONFIG_FILES = $CONFIG_FILES 3667 CONFIG_HEADERS = $CONFIG_HEADERS 3668 CONFIG_LINKS = $CONFIG_LINKS 3669 CONFIG_COMMANDS = $CONFIG_COMMANDS 3670 $ $0 $@ 3671 3672_CSEOF 3673echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 3674echo >&5 3675_ACEOF 3676 3677# Files that config.status was made for. 3678if test -n "$ac_config_files"; then 3679 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 3680fi 3681 3682if test -n "$ac_config_headers"; then 3683 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 3684fi 3685 3686if test -n "$ac_config_links"; then 3687 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 3688fi 3689 3690if test -n "$ac_config_commands"; then 3691 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 3692fi 3693 3694cat >>$CONFIG_STATUS <<\_ACEOF 3695 3696ac_cs_usage="\ 3697\`$as_me' instantiates files from templates according to the 3698current configuration. 3699 3700Usage: $0 [OPTIONS] [FILE]... 3701 3702 -h, --help print this help, then exit 3703 -V, --version print version number, then exit 3704 -q, --quiet do not print progress messages 3705 -d, --debug don't remove temporary files 3706 --recheck update $as_me by reconfiguring in the same conditions 3707 --file=FILE[:TEMPLATE] 3708 instantiate the configuration file FILE 3709 --header=FILE[:TEMPLATE] 3710 instantiate the configuration header FILE 3711 3712Configuration files: 3713$config_files 3714 3715Configuration headers: 3716$config_headers 3717 3718Report bugs to <bug-autoconf@gnu.org>." 3719_ACEOF 3720 3721cat >>$CONFIG_STATUS <<_ACEOF 3722ac_cs_version="\\ 3723FULL-PACKAGE-NAME config.status VERSION 3724configured by $0, generated by GNU Autoconf 2.56, 3725 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 3726 3727Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 3728Free Software Foundation, Inc. 3729This config.status script is free software; the Free Software Foundation 3730gives unlimited permission to copy, distribute and modify it." 3731srcdir=$srcdir 3732_ACEOF 3733 3734cat >>$CONFIG_STATUS <<\_ACEOF 3735# If no file are specified by the user, then we need to provide default 3736# value. By we need to know if files were specified by the user. 3737ac_need_defaults=: 3738while test $# != 0 3739do 3740 case $1 in 3741 --*=*) 3742 ac_option=`expr "x$1" : 'x\([^=]*\)='` 3743 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 3744 ac_shift=: 3745 ;; 3746 -*) 3747 ac_option=$1 3748 ac_optarg=$2 3749 ac_shift=shift 3750 ;; 3751 *) # This is not an option, so the user has probably given explicit 3752 # arguments. 3753 ac_option=$1 3754 ac_need_defaults=false;; 3755 esac 3756 3757 case $ac_option in 3758 # Handling of the options. 3759_ACEOF 3760cat >>$CONFIG_STATUS <<\_ACEOF 3761 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3762 ac_cs_recheck=: ;; 3763 --version | --vers* | -V ) 3764 echo "$ac_cs_version"; exit 0 ;; 3765 --he | --h) 3766 # Conflict between --help and --header 3767 { { echo "$as_me:$LINENO: error: ambiguous option: $1 3768Try \`$0 --help' for more information." >&5 3769echo "$as_me: error: ambiguous option: $1 3770Try \`$0 --help' for more information." >&2;} 3771 { (exit 1); exit 1; }; };; 3772 --help | --hel | -h ) 3773 echo "$ac_cs_usage"; exit 0 ;; 3774 --debug | --d* | -d ) 3775 debug=: ;; 3776 --file | --fil | --fi | --f ) 3777 $ac_shift 3778 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 3779 ac_need_defaults=false;; 3780 --header | --heade | --head | --hea ) 3781 $ac_shift 3782 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 3783 ac_need_defaults=false;; 3784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3785 | -silent | --silent | --silen | --sile | --sil | --si | --s) 3786 ac_cs_silent=: ;; 3787 3788 # This is an error. 3789 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 3790Try \`$0 --help' for more information." >&5 3791echo "$as_me: error: unrecognized option: $1 3792Try \`$0 --help' for more information." >&2;} 3793 { (exit 1); exit 1; }; } ;; 3794 3795 *) ac_config_targets="$ac_config_targets $1" ;; 3796 3797 esac 3798 shift 3799done 3800 3801ac_configure_extra_args= 3802 3803if $ac_cs_silent; then 3804 exec 6>/dev/null 3805 ac_configure_extra_args="$ac_configure_extra_args --silent" 3806fi 3807 3808_ACEOF 3809cat >>$CONFIG_STATUS <<_ACEOF 3810if \$ac_cs_recheck; then 3811 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 3812 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 3813fi 3814 3815_ACEOF 3816 3817 3818 3819 3820 3821cat >>$CONFIG_STATUS <<\_ACEOF 3822for ac_config_target in $ac_config_targets 3823do 3824 case "$ac_config_target" in 3825 # Handling of arguments. 3826 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;; 3827 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 3828 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 3829 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 3830echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 3831 { (exit 1); exit 1; }; };; 3832 esac 3833done 3834 3835# If the user did not use the arguments to specify the items to instantiate, 3836# then the envvar interface is used. Set only those that are not. 3837# We use the long form for the default assignment because of an extremely 3838# bizarre bug on SunOS 4.1.3. 3839if $ac_need_defaults; then 3840 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 3841 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 3842fi 3843 3844# Have a temporary directory for convenience. Make it in the build tree 3845# simply because there is no reason to put it here, and in addition, 3846# creating and moving files from /tmp can sometimes cause problems. 3847# Create a temporary directory, and hook for its removal unless debugging. 3848$debug || 3849{ 3850 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 3851 trap '{ (exit 1); exit 1; }' 1 2 13 15 3852} 3853 3854# Create a (secure) tmp directory for tmp files. 3855 3856{ 3857 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 3858 test -n "$tmp" && test -d "$tmp" 3859} || 3860{ 3861 tmp=./confstat$$-$RANDOM 3862 (umask 077 && mkdir $tmp) 3863} || 3864{ 3865 echo "$me: cannot create a temporary directory in ." >&2 3866 { (exit 1); exit 1; } 3867} 3868 3869_ACEOF 3870 3871cat >>$CONFIG_STATUS <<_ACEOF 3872 3873# 3874# CONFIG_FILES section. 3875# 3876 3877# No need to generate the scripts if there are no CONFIG_FILES. 3878# This happens for instance when ./config.status config.h 3879if test -n "\$CONFIG_FILES"; then 3880 # Protect against being on the right side of a sed subst in config.status. 3881 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 3882 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 3883s,@SHELL@,$SHELL,;t t 3884s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 3885s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 3886s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 3887s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 3888s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 3889s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 3890s,@exec_prefix@,$exec_prefix,;t t 3891s,@prefix@,$prefix,;t t 3892s,@program_transform_name@,$program_transform_name,;t t 3893s,@bindir@,$bindir,;t t 3894s,@sbindir@,$sbindir,;t t 3895s,@libexecdir@,$libexecdir,;t t 3896s,@datadir@,$datadir,;t t 3897s,@sysconfdir@,$sysconfdir,;t t 3898s,@sharedstatedir@,$sharedstatedir,;t t 3899s,@localstatedir@,$localstatedir,;t t 3900s,@libdir@,$libdir,;t t 3901s,@includedir@,$includedir,;t t 3902s,@oldincludedir@,$oldincludedir,;t t 3903s,@infodir@,$infodir,;t t 3904s,@mandir@,$mandir,;t t 3905s,@build_alias@,$build_alias,;t t 3906s,@host_alias@,$host_alias,;t t 3907s,@target_alias@,$target_alias,;t t 3908s,@DEFS@,$DEFS,;t t 3909s,@ECHO_C@,$ECHO_C,;t t 3910s,@ECHO_N@,$ECHO_N,;t t 3911s,@ECHO_T@,$ECHO_T,;t t 3912s,@LIBS@,$LIBS,;t t 3913s,@CXX@,$CXX,;t t 3914s,@CXXFLAGS@,$CXXFLAGS,;t t 3915s,@LDFLAGS@,$LDFLAGS,;t t 3916s,@CPPFLAGS@,$CPPFLAGS,;t t 3917s,@ac_ct_CXX@,$ac_ct_CXX,;t t 3918s,@EXEEXT@,$EXEEXT,;t t 3919s,@OBJEXT@,$OBJEXT,;t t 3920s,@CC@,$CC,;t t 3921s,@CFLAGS@,$CFLAGS,;t t 3922s,@ac_ct_CC@,$ac_ct_CC,;t t 3923s,@SET_MAKE@,$SET_MAKE,;t t 3924s,@CPP@,$CPP,;t t 3925s,@EGREP@,$EGREP,;t t 3926s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t 3927s,@LTLIBOBJS@,$LTLIBOBJS,;t t 3928CEOF 3929 3930_ACEOF 3931 3932 cat >>$CONFIG_STATUS <<\_ACEOF 3933 # Split the substitutions into bite-sized pieces for seds with 3934 # small command number limits, like on Digital OSF/1 and HP-UX. 3935 ac_max_sed_lines=48 3936 ac_sed_frag=1 # Number of current file. 3937 ac_beg=1 # First line for current file. 3938 ac_end=$ac_max_sed_lines # Line after last line for current file. 3939 ac_more_lines=: 3940 ac_sed_cmds= 3941 while $ac_more_lines; do 3942 if test $ac_beg -gt 1; then 3943 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 3944 else 3945 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 3946 fi 3947 if test ! -s $tmp/subs.frag; then 3948 ac_more_lines=false 3949 else 3950 # The purpose of the label and of the branching condition is to 3951 # speed up the sed processing (if there are no `@' at all, there 3952 # is no need to browse any of the substitutions). 3953 # These are the two extra sed commands mentioned above. 3954 (echo ':t 3955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 3956 if test -z "$ac_sed_cmds"; then 3957 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 3958 else 3959 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 3960 fi 3961 ac_sed_frag=`expr $ac_sed_frag + 1` 3962 ac_beg=$ac_end 3963 ac_end=`expr $ac_end + $ac_max_sed_lines` 3964 fi 3965 done 3966 if test -z "$ac_sed_cmds"; then 3967 ac_sed_cmds=cat 3968 fi 3969fi # test -n "$CONFIG_FILES" 3970 3971_ACEOF 3972cat >>$CONFIG_STATUS <<\_ACEOF 3973for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 3974 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3975 case $ac_file in 3976 - | *:- | *:-:* ) # input from stdin 3977 cat >$tmp/stdin 3978 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3979 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3980 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3981 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3982 * ) ac_file_in=$ac_file.in ;; 3983 esac 3984 3985 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 3986 ac_dir=`(dirname "$ac_file") 2>/dev/null || 3987$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3988 X"$ac_file" : 'X\(//\)[^/]' \| \ 3989 X"$ac_file" : 'X\(//\)$' \| \ 3990 X"$ac_file" : 'X\(/\)' \| \ 3991 . : '\(.\)' 2>/dev/null || 3992echo X"$ac_file" | 3993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3994 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3995 /^X\(\/\/\)$/{ s//\1/; q; } 3996 /^X\(\/\).*/{ s//\1/; q; } 3997 s/.*/./; q'` 3998 { if $as_mkdir_p; then 3999 mkdir -p "$ac_dir" 4000 else 4001 as_dir="$ac_dir" 4002 as_dirs= 4003 while test ! -d "$as_dir"; do 4004 as_dirs="$as_dir $as_dirs" 4005 as_dir=`(dirname "$as_dir") 2>/dev/null || 4006$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4007 X"$as_dir" : 'X\(//\)[^/]' \| \ 4008 X"$as_dir" : 'X\(//\)$' \| \ 4009 X"$as_dir" : 'X\(/\)' \| \ 4010 . : '\(.\)' 2>/dev/null || 4011echo X"$as_dir" | 4012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4013 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4014 /^X\(\/\/\)$/{ s//\1/; q; } 4015 /^X\(\/\).*/{ s//\1/; q; } 4016 s/.*/./; q'` 4017 done 4018 test ! -n "$as_dirs" || mkdir $as_dirs 4019 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 4020echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 4021 { (exit 1); exit 1; }; }; } 4022 4023 ac_builddir=. 4024 4025if test "$ac_dir" != .; then 4026 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 4027 # A "../" for each directory in $ac_dir_suffix. 4028 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 4029else 4030 ac_dir_suffix= ac_top_builddir= 4031fi 4032 4033case $srcdir in 4034 .) # No --srcdir option. We are building in place. 4035 ac_srcdir=. 4036 if test -z "$ac_top_builddir"; then 4037 ac_top_srcdir=. 4038 else 4039 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 4040 fi ;; 4041 [\\/]* | ?:[\\/]* ) # Absolute path. 4042 ac_srcdir=$srcdir$ac_dir_suffix; 4043 ac_top_srcdir=$srcdir ;; 4044 *) # Relative path. 4045 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 4046 ac_top_srcdir=$ac_top_builddir$srcdir ;; 4047esac 4048# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 4049# absolute. 4050ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 4051ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 4052ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 4053ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 4054 4055 4056 4057 if test x"$ac_file" != x-; then 4058 { echo "$as_me:$LINENO: creating $ac_file" >&5 4059echo "$as_me: creating $ac_file" >&6;} 4060 rm -f "$ac_file" 4061 fi 4062 # Let's still pretend it is `configure' which instantiates (i.e., don't 4063 # use $as_me), people would be surprised to read: 4064 # /* config.h. Generated by config.status. */ 4065 if test x"$ac_file" = x-; then 4066 configure_input= 4067 else 4068 configure_input="$ac_file. " 4069 fi 4070 configure_input=$configure_input"Generated from `echo $ac_file_in | 4071 sed 's,.*/,,'` by configure." 4072 4073 # First look for the input files in the build tree, otherwise in the 4074 # src tree. 4075 ac_file_inputs=`IFS=: 4076 for f in $ac_file_in; do 4077 case $f in 4078 -) echo $tmp/stdin ;; 4079 [\\/$]*) 4080 # Absolute (can't be DOS-style, as IFS=:) 4081 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 4082echo "$as_me: error: cannot find input file: $f" >&2;} 4083 { (exit 1); exit 1; }; } 4084 echo $f;; 4085 *) # Relative 4086 if test -f "$f"; then 4087 # Build tree 4088 echo $f 4089 elif test -f "$srcdir/$f"; then 4090 # Source tree 4091 echo $srcdir/$f 4092 else 4093 # /dev/null tree 4094 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 4095echo "$as_me: error: cannot find input file: $f" >&2;} 4096 { (exit 1); exit 1; }; } 4097 fi;; 4098 esac 4099 done` || { (exit 1); exit 1; } 4100_ACEOF 4101cat >>$CONFIG_STATUS <<_ACEOF 4102 sed "$ac_vpsub 4103$extrasub 4104_ACEOF 4105cat >>$CONFIG_STATUS <<\_ACEOF 4106:t 4107/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 4108s,@configure_input@,$configure_input,;t t 4109s,@srcdir@,$ac_srcdir,;t t 4110s,@abs_srcdir@,$ac_abs_srcdir,;t t 4111s,@top_srcdir@,$ac_top_srcdir,;t t 4112s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 4113s,@builddir@,$ac_builddir,;t t 4114s,@abs_builddir@,$ac_abs_builddir,;t t 4115s,@top_builddir@,$ac_top_builddir,;t t 4116s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 4117" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 4118 rm -f $tmp/stdin 4119 if test x"$ac_file" != x-; then 4120 mv $tmp/out $ac_file 4121 else 4122 cat $tmp/out 4123 rm -f $tmp/out 4124 fi 4125 4126done 4127_ACEOF 4128cat >>$CONFIG_STATUS <<\_ACEOF 4129 4130# 4131# CONFIG_HEADER section. 4132# 4133 4134# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 4135# NAME is the cpp macro being defined and VALUE is the value it is being given. 4136# 4137# ac_d sets the value in "#define NAME VALUE" lines. 4138ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 4139ac_dB='[ ].*$,\1#\2' 4140ac_dC=' ' 4141ac_dD=',;t' 4142# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 4143ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4144ac_uB='$,\1#\2define\3' 4145ac_uC=' ' 4146ac_uD=',;t' 4147 4148for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 4149 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4150 case $ac_file in 4151 - | *:- | *:-:* ) # input from stdin 4152 cat >$tmp/stdin 4153 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4154 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4155 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4156 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4157 * ) ac_file_in=$ac_file.in ;; 4158 esac 4159 4160 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 4161echo "$as_me: creating $ac_file" >&6;} 4162 4163 # First look for the input files in the build tree, otherwise in the 4164 # src tree. 4165 ac_file_inputs=`IFS=: 4166 for f in $ac_file_in; do 4167 case $f in 4168 -) echo $tmp/stdin ;; 4169 [\\/$]*) 4170 # Absolute (can't be DOS-style, as IFS=:) 4171 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 4172echo "$as_me: error: cannot find input file: $f" >&2;} 4173 { (exit 1); exit 1; }; } 4174 echo $f;; 4175 *) # Relative 4176 if test -f "$f"; then 4177 # Build tree 4178 echo $f 4179 elif test -f "$srcdir/$f"; then 4180 # Source tree 4181 echo $srcdir/$f 4182 else 4183 # /dev/null tree 4184 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 4185echo "$as_me: error: cannot find input file: $f" >&2;} 4186 { (exit 1); exit 1; }; } 4187 fi;; 4188 esac 4189 done` || { (exit 1); exit 1; } 4190 # Remove the trailing spaces. 4191 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 4192 4193_ACEOF 4194 4195# Transform confdefs.h into two sed scripts, `conftest.defines' and 4196# `conftest.undefs', that substitutes the proper values into 4197# config.h.in to produce config.h. The first handles `#define' 4198# templates, and the second `#undef' templates. 4199# And first: Protect against being on the right side of a sed subst in 4200# config.status. Protect against being in an unquoted here document 4201# in config.status. 4202rm -f conftest.defines conftest.undefs 4203# Using a here document instead of a string reduces the quoting nightmare. 4204# Putting comments in sed scripts is not portable. 4205# 4206# `end' is used to avoid that the second main sed command (meant for 4207# 0-ary CPP macros) applies to n-ary macro definitions. 4208# See the Autoconf documentation for `clear'. 4209cat >confdef2sed.sed <<\_ACEOF 4210s/[\\&,]/\\&/g 4211s,[\\$`],\\&,g 4212t clear 4213: clear 4214s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 4215t end 4216s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 4217: end 4218_ACEOF 4219# If some macros were called several times there might be several times 4220# the same #defines, which is useless. Nevertheless, we may not want to 4221# sort them, since we want the *last* AC-DEFINE to be honored. 4222uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 4223sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 4224rm -f confdef2sed.sed 4225 4226# This sed command replaces #undef with comments. This is necessary, for 4227# example, in the case of _POSIX_SOURCE, which is predefined and required 4228# on some systems where configure will not decide to define it. 4229cat >>conftest.undefs <<\_ACEOF 4230s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 4231_ACEOF 4232 4233# Break up conftest.defines because some shells have a limit on the size 4234# of here documents, and old seds have small limits too (100 cmds). 4235echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 4236echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 4237echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 4238echo ' :' >>$CONFIG_STATUS 4239rm -f conftest.tail 4240while grep . conftest.defines >/dev/null 4241do 4242 # Write a limited-size here document to $tmp/defines.sed. 4243 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 4244 # Speed up: don't consider the non `#define' lines. 4245 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 4246 # Work around the forget-to-reset-the-flag bug. 4247 echo 't clr' >>$CONFIG_STATUS 4248 echo ': clr' >>$CONFIG_STATUS 4249 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 4250 echo 'CEOF 4251 sed -f $tmp/defines.sed $tmp/in >$tmp/out 4252 rm -f $tmp/in 4253 mv $tmp/out $tmp/in 4254' >>$CONFIG_STATUS 4255 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 4256 rm -f conftest.defines 4257 mv conftest.tail conftest.defines 4258done 4259rm -f conftest.defines 4260echo ' fi # grep' >>$CONFIG_STATUS 4261echo >>$CONFIG_STATUS 4262 4263# Break up conftest.undefs because some shells have a limit on the size 4264# of here documents, and old seds have small limits too (100 cmds). 4265echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 4266rm -f conftest.tail 4267while grep . conftest.undefs >/dev/null 4268do 4269 # Write a limited-size here document to $tmp/undefs.sed. 4270 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 4271 # Speed up: don't consider the non `#undef' 4272 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 4273 # Work around the forget-to-reset-the-flag bug. 4274 echo 't clr' >>$CONFIG_STATUS 4275 echo ': clr' >>$CONFIG_STATUS 4276 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 4277 echo 'CEOF 4278 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 4279 rm -f $tmp/in 4280 mv $tmp/out $tmp/in 4281' >>$CONFIG_STATUS 4282 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 4283 rm -f conftest.undefs 4284 mv conftest.tail conftest.undefs 4285done 4286rm -f conftest.undefs 4287 4288cat >>$CONFIG_STATUS <<\_ACEOF 4289 # Let's still pretend it is `configure' which instantiates (i.e., don't 4290 # use $as_me), people would be surprised to read: 4291 # /* config.h. Generated by config.status. */ 4292 if test x"$ac_file" = x-; then 4293 echo "/* Generated by configure. */" >$tmp/config.h 4294 else 4295 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 4296 fi 4297 cat $tmp/in >>$tmp/config.h 4298 rm -f $tmp/in 4299 if test x"$ac_file" != x-; then 4300 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 4301 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 4302echo "$as_me: $ac_file is unchanged" >&6;} 4303 else 4304 ac_dir=`(dirname "$ac_file") 2>/dev/null || 4305$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4306 X"$ac_file" : 'X\(//\)[^/]' \| \ 4307 X"$ac_file" : 'X\(//\)$' \| \ 4308 X"$ac_file" : 'X\(/\)' \| \ 4309 . : '\(.\)' 2>/dev/null || 4310echo X"$ac_file" | 4311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4312 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4313 /^X\(\/\/\)$/{ s//\1/; q; } 4314 /^X\(\/\).*/{ s//\1/; q; } 4315 s/.*/./; q'` 4316 { if $as_mkdir_p; then 4317 mkdir -p "$ac_dir" 4318 else 4319 as_dir="$ac_dir" 4320 as_dirs= 4321 while test ! -d "$as_dir"; do 4322 as_dirs="$as_dir $as_dirs" 4323 as_dir=`(dirname "$as_dir") 2>/dev/null || 4324$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4325 X"$as_dir" : 'X\(//\)[^/]' \| \ 4326 X"$as_dir" : 'X\(//\)$' \| \ 4327 X"$as_dir" : 'X\(/\)' \| \ 4328 . : '\(.\)' 2>/dev/null || 4329echo X"$as_dir" | 4330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4331 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4332 /^X\(\/\/\)$/{ s//\1/; q; } 4333 /^X\(\/\).*/{ s//\1/; q; } 4334 s/.*/./; q'` 4335 done 4336 test ! -n "$as_dirs" || mkdir $as_dirs 4337 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 4338echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 4339 { (exit 1); exit 1; }; }; } 4340 4341 rm -f $ac_file 4342 mv $tmp/config.h $ac_file 4343 fi 4344 else 4345 cat $tmp/config.h 4346 rm -f $tmp/config.h 4347 fi 4348done 4349_ACEOF 4350 4351cat >>$CONFIG_STATUS <<\_ACEOF 4352 4353{ (exit 0); exit 0; } 4354_ACEOF 4355chmod +x $CONFIG_STATUS 4356ac_clean_files=$ac_clean_files_save 4357 4358 4359# configure is writing to config.log, and then calls config.status. 4360# config.status does its own redirection, appending to config.log. 4361# Unfortunately, on DOS this fails, as config.log is still kept open 4362# by configure, so config.status won't be able to write to it; its 4363# output is simply discarded. So we exec the FD to /dev/null, 4364# effectively closing config.log, so it can be properly (re)opened and 4365# appended to by config.status. When coming back to configure, we 4366# need to make the FD available again. 4367if test "$no_create" != yes; then 4368 ac_cs_success=: 4369 ac_config_status_args= 4370 test "$silent" = yes && 4371 ac_config_status_args="$ac_config_status_args --quiet" 4372 exec 5>/dev/null 4373 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 4374 exec 5>>config.log 4375 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 4376 # would make configure fail if this is the last instruction. 4377 $ac_cs_success || { (exit 1); exit 1; } 4378fi 4379 4380 4381AM_INIT_AUTOMAKE 4382