1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME= 269PACKAGE_TARNAME= 270PACKAGE_VERSION= 271PACKAGE_STRING= 272PACKAGE_BUGREPORT= 273 274ac_unique_file="mod_db4.c" 275ac_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 APXS HAVE_SEMUN LIBOBJS LTLIBOBJS' 276ac_subst_files='' 277 278# Initialize some variables set by options. 279ac_init_help= 280ac_init_version=false 281# The variables have the same names as the options, with 282# dashes changed to underlines. 283cache_file=/dev/null 284exec_prefix=NONE 285no_create= 286no_recursion= 287prefix=NONE 288program_prefix=NONE 289program_suffix=NONE 290program_transform_name=s,x,x, 291silent= 292site= 293srcdir= 294verbose= 295x_includes=NONE 296x_libraries=NONE 297 298# Installation directory options. 299# These are left unexpanded so users can "make install exec_prefix=/foo" 300# and all the variables that are supposed to be based on exec_prefix 301# by default will actually change. 302# Use braces instead of parens because sh, perl, etc. also accept them. 303bindir='${exec_prefix}/bin' 304sbindir='${exec_prefix}/sbin' 305libexecdir='${exec_prefix}/libexec' 306datadir='${prefix}/share' 307sysconfdir='${prefix}/etc' 308sharedstatedir='${prefix}/com' 309localstatedir='${prefix}/var' 310libdir='${exec_prefix}/lib' 311includedir='${prefix}/include' 312oldincludedir='/usr/include' 313infodir='${prefix}/info' 314mandir='${prefix}/man' 315 316ac_prev= 317for ac_option 318do 319 # If the previous option needs an argument, assign it. 320 if test -n "$ac_prev"; then 321 eval "$ac_prev=\$ac_option" 322 ac_prev= 323 continue 324 fi 325 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 327 328 # Accept the important Cygnus configure options, so we can diagnose typos. 329 330 case $ac_option in 331 332 -bindir | --bindir | --bindi | --bind | --bin | --bi) 333 ac_prev=bindir ;; 334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 335 bindir=$ac_optarg ;; 336 337 -build | --build | --buil | --bui | --bu) 338 ac_prev=build_alias ;; 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 340 build_alias=$ac_optarg ;; 341 342 -cache-file | --cache-file | --cache-fil | --cache-fi \ 343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 344 ac_prev=cache_file ;; 345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 347 cache_file=$ac_optarg ;; 348 349 --config-cache | -C) 350 cache_file=config.cache ;; 351 352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 353 ac_prev=datadir ;; 354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 355 | --da=*) 356 datadir=$ac_optarg ;; 357 358 -disable-* | --disable-*) 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 360 # Reject names that are not valid shell variable names. 361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 363 { (exit 1); exit 1; }; } 364 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 365 eval "enable_$ac_feature=no" ;; 366 367 -enable-* | --enable-*) 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 369 # Reject names that are not valid shell variable names. 370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 372 { (exit 1); exit 1; }; } 373 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 374 case $ac_option in 375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 376 *) ac_optarg=yes ;; 377 esac 378 eval "enable_$ac_feature='$ac_optarg'" ;; 379 380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 382 | --exec | --exe | --ex) 383 ac_prev=exec_prefix ;; 384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 386 | --exec=* | --exe=* | --ex=*) 387 exec_prefix=$ac_optarg ;; 388 389 -gas | --gas | --ga | --g) 390 # Obsolete; use --with-gas. 391 with_gas=yes ;; 392 393 -help | --help | --hel | --he | -h) 394 ac_init_help=long ;; 395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 396 ac_init_help=recursive ;; 397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 398 ac_init_help=short ;; 399 400 -host | --host | --hos | --ho) 401 ac_prev=host_alias ;; 402 -host=* | --host=* | --hos=* | --ho=*) 403 host_alias=$ac_optarg ;; 404 405 -includedir | --includedir | --includedi | --included | --include \ 406 | --includ | --inclu | --incl | --inc) 407 ac_prev=includedir ;; 408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 409 | --includ=* | --inclu=* | --incl=* | --inc=*) 410 includedir=$ac_optarg ;; 411 412 -infodir | --infodir | --infodi | --infod | --info | --inf) 413 ac_prev=infodir ;; 414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 415 infodir=$ac_optarg ;; 416 417 -libdir | --libdir | --libdi | --libd) 418 ac_prev=libdir ;; 419 -libdir=* | --libdir=* | --libdi=* | --libd=*) 420 libdir=$ac_optarg ;; 421 422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 423 | --libexe | --libex | --libe) 424 ac_prev=libexecdir ;; 425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 426 | --libexe=* | --libex=* | --libe=*) 427 libexecdir=$ac_optarg ;; 428 429 -localstatedir | --localstatedir | --localstatedi | --localstated \ 430 | --localstate | --localstat | --localsta | --localst \ 431 | --locals | --local | --loca | --loc | --lo) 432 ac_prev=localstatedir ;; 433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 436 localstatedir=$ac_optarg ;; 437 438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 439 ac_prev=mandir ;; 440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 441 mandir=$ac_optarg ;; 442 443 -nfp | --nfp | --nf) 444 # Obsolete; use --without-fp. 445 with_fp=no ;; 446 447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 448 | --no-cr | --no-c | -n) 449 no_create=yes ;; 450 451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 453 no_recursion=yes ;; 454 455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 457 | --oldin | --oldi | --old | --ol | --o) 458 ac_prev=oldincludedir ;; 459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 462 oldincludedir=$ac_optarg ;; 463 464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 465 ac_prev=prefix ;; 466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 467 prefix=$ac_optarg ;; 468 469 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 470 | --program-pre | --program-pr | --program-p) 471 ac_prev=program_prefix ;; 472 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 474 program_prefix=$ac_optarg ;; 475 476 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 477 | --program-suf | --program-su | --program-s) 478 ac_prev=program_suffix ;; 479 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 481 program_suffix=$ac_optarg ;; 482 483 -program-transform-name | --program-transform-name \ 484 | --program-transform-nam | --program-transform-na \ 485 | --program-transform-n | --program-transform- \ 486 | --program-transform | --program-transfor \ 487 | --program-transfo | --program-transf \ 488 | --program-trans | --program-tran \ 489 | --progr-tra | --program-tr | --program-t) 490 ac_prev=program_transform_name ;; 491 -program-transform-name=* | --program-transform-name=* \ 492 | --program-transform-nam=* | --program-transform-na=* \ 493 | --program-transform-n=* | --program-transform-=* \ 494 | --program-transform=* | --program-transfor=* \ 495 | --program-transfo=* | --program-transf=* \ 496 | --program-trans=* | --program-tran=* \ 497 | --progr-tra=* | --program-tr=* | --program-t=*) 498 program_transform_name=$ac_optarg ;; 499 500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 501 | -silent | --silent | --silen | --sile | --sil) 502 silent=yes ;; 503 504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 505 ac_prev=sbindir ;; 506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 507 | --sbi=* | --sb=*) 508 sbindir=$ac_optarg ;; 509 510 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 512 | --sharedst | --shareds | --shared | --share | --shar \ 513 | --sha | --sh) 514 ac_prev=sharedstatedir ;; 515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 518 | --sha=* | --sh=*) 519 sharedstatedir=$ac_optarg ;; 520 521 -site | --site | --sit) 522 ac_prev=site ;; 523 -site=* | --site=* | --sit=*) 524 site=$ac_optarg ;; 525 526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 527 ac_prev=srcdir ;; 528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 529 srcdir=$ac_optarg ;; 530 531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 532 | --syscon | --sysco | --sysc | --sys | --sy) 533 ac_prev=sysconfdir ;; 534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 536 sysconfdir=$ac_optarg ;; 537 538 -target | --target | --targe | --targ | --tar | --ta | --t) 539 ac_prev=target_alias ;; 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 541 target_alias=$ac_optarg ;; 542 543 -v | -verbose | --verbose | --verbos | --verbo | --verb) 544 verbose=yes ;; 545 546 -version | --version | --versio | --versi | --vers | -V) 547 ac_init_version=: ;; 548 549 -with-* | --with-*) 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 551 # Reject names that are not valid shell variable names. 552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 553 { echo "$as_me: error: invalid package name: $ac_package" >&2 554 { (exit 1); exit 1; }; } 555 ac_package=`echo $ac_package| sed 's/-/_/g'` 556 case $ac_option in 557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 558 *) ac_optarg=yes ;; 559 esac 560 eval "with_$ac_package='$ac_optarg'" ;; 561 562 -without-* | --without-*) 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 564 # Reject names that are not valid shell variable names. 565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 566 { echo "$as_me: error: invalid package name: $ac_package" >&2 567 { (exit 1); exit 1; }; } 568 ac_package=`echo $ac_package | sed 's/-/_/g'` 569 eval "with_$ac_package=no" ;; 570 571 --x) 572 # Obsolete; use --with-x. 573 with_x=yes ;; 574 575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 576 | --x-incl | --x-inc | --x-in | --x-i) 577 ac_prev=x_includes ;; 578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 580 x_includes=$ac_optarg ;; 581 582 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 584 ac_prev=x_libraries ;; 585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 587 x_libraries=$ac_optarg ;; 588 589 -*) { echo "$as_me: error: unrecognized option: $ac_option 590Try \`$0 --help' for more information." >&2 591 { (exit 1); exit 1; }; } 592 ;; 593 594 *=*) 595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 596 # Reject names that are not valid shell variable names. 597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 599 { (exit 1); exit 1; }; } 600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 601 eval "$ac_envvar='$ac_optarg'" 602 export $ac_envvar ;; 603 604 *) 605 # FIXME: should be removed in autoconf 3.0. 606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 610 ;; 611 612 esac 613done 614 615if test -n "$ac_prev"; then 616 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 617 { echo "$as_me: error: missing argument to $ac_option" >&2 618 { (exit 1); exit 1; }; } 619fi 620 621# Be sure to have absolute paths. 622for ac_var in exec_prefix prefix 623do 624 eval ac_val=$`echo $ac_var` 625 case $ac_val in 626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 628 { (exit 1); exit 1; }; };; 629 esac 630done 631 632# Be sure to have absolute paths. 633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 634 localstatedir libdir includedir oldincludedir infodir mandir 635do 636 eval ac_val=$`echo $ac_var` 637 case $ac_val in 638 [\\/$]* | ?:[\\/]* ) ;; 639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 640 { (exit 1); exit 1; }; };; 641 esac 642done 643 644# There might be people who depend on the old broken behavior: `$host' 645# used to hold the argument of --host etc. 646# FIXME: To remove some day. 647build=$build_alias 648host=$host_alias 649target=$target_alias 650 651# FIXME: To remove some day. 652if test "x$host_alias" != x; then 653 if test "x$build_alias" = x; then 654 cross_compiling=maybe 655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 656 If a cross compiler is detected then cross compile mode will be used." >&2 657 elif test "x$build_alias" != "x$host_alias"; then 658 cross_compiling=yes 659 fi 660fi 661 662ac_tool_prefix= 663test -n "$host_alias" && ac_tool_prefix=$host_alias- 664 665test "$silent" = yes && exec 6>/dev/null 666 667 668# Find the source files, if location was not specified. 669if test -z "$srcdir"; then 670 ac_srcdir_defaulted=yes 671 # Try the directory containing this script, then its parent. 672 ac_confdir=`(dirname "$0") 2>/dev/null || 673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 674 X"$0" : 'X\(//\)[^/]' \| \ 675 X"$0" : 'X\(//\)$' \| \ 676 X"$0" : 'X\(/\)' \| \ 677 . : '\(.\)' 2>/dev/null || 678echo X"$0" | 679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 680 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 681 /^X\(\/\/\)$/{ s//\1/; q; } 682 /^X\(\/\).*/{ s//\1/; q; } 683 s/.*/./; q'` 684 srcdir=$ac_confdir 685 if test ! -r $srcdir/$ac_unique_file; then 686 srcdir=.. 687 fi 688else 689 ac_srcdir_defaulted=no 690fi 691if test ! -r $srcdir/$ac_unique_file; then 692 if test "$ac_srcdir_defaulted" = yes; then 693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 694 { (exit 1); exit 1; }; } 695 else 696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 697 { (exit 1); exit 1; }; } 698 fi 699fi 700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 702 { (exit 1); exit 1; }; } 703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 704ac_env_build_alias_set=${build_alias+set} 705ac_env_build_alias_value=$build_alias 706ac_cv_env_build_alias_set=${build_alias+set} 707ac_cv_env_build_alias_value=$build_alias 708ac_env_host_alias_set=${host_alias+set} 709ac_env_host_alias_value=$host_alias 710ac_cv_env_host_alias_set=${host_alias+set} 711ac_cv_env_host_alias_value=$host_alias 712ac_env_target_alias_set=${target_alias+set} 713ac_env_target_alias_value=$target_alias 714ac_cv_env_target_alias_set=${target_alias+set} 715ac_cv_env_target_alias_value=$target_alias 716ac_env_CXX_set=${CXX+set} 717ac_env_CXX_value=$CXX 718ac_cv_env_CXX_set=${CXX+set} 719ac_cv_env_CXX_value=$CXX 720ac_env_CXXFLAGS_set=${CXXFLAGS+set} 721ac_env_CXXFLAGS_value=$CXXFLAGS 722ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 723ac_cv_env_CXXFLAGS_value=$CXXFLAGS 724ac_env_LDFLAGS_set=${LDFLAGS+set} 725ac_env_LDFLAGS_value=$LDFLAGS 726ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 727ac_cv_env_LDFLAGS_value=$LDFLAGS 728ac_env_CPPFLAGS_set=${CPPFLAGS+set} 729ac_env_CPPFLAGS_value=$CPPFLAGS 730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 731ac_cv_env_CPPFLAGS_value=$CPPFLAGS 732 733# 734# Report the --help message. 735# 736if test "$ac_init_help" = "long"; then 737 # Omit some internal or obsolete options to make the list less imposing. 738 # This message is too long to be a string in the A/UX 3.1 sh. 739 cat <<_ACEOF 740\`configure' configures this package to adapt to many kinds of systems. 741 742Usage: $0 [OPTION]... [VAR=VALUE]... 743 744To assign environment variables (e.g., CC, CFLAGS...), specify them as 745VAR=VALUE. See below for descriptions of some of the useful variables. 746 747Defaults for the options are specified in brackets. 748 749Configuration: 750 -h, --help display this help and exit 751 --help=short display options specific to this package 752 --help=recursive display the short help of all the included packages 753 -V, --version display version information and exit 754 -q, --quiet, --silent do not print \`checking...' messages 755 --cache-file=FILE cache test results in FILE [disabled] 756 -C, --config-cache alias for \`--cache-file=config.cache' 757 -n, --no-create do not create output files 758 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 759 760_ACEOF 761 762 cat <<_ACEOF 763Installation directories: 764 --prefix=PREFIX install architecture-independent files in PREFIX 765 [$ac_default_prefix] 766 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 767 [PREFIX] 768 769By default, \`make install' will install all the files in 770\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 771an installation prefix other than \`$ac_default_prefix' using \`--prefix', 772for instance \`--prefix=\$HOME'. 773 774For better control, use the options below. 775 776Fine tuning of the installation directories: 777 --bindir=DIR user executables [EPREFIX/bin] 778 --sbindir=DIR system admin executables [EPREFIX/sbin] 779 --libexecdir=DIR program executables [EPREFIX/libexec] 780 --datadir=DIR read-only architecture-independent data [PREFIX/share] 781 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 782 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 783 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 784 --libdir=DIR object code libraries [EPREFIX/lib] 785 --includedir=DIR C header files [PREFIX/include] 786 --oldincludedir=DIR C header files for non-gcc [/usr/include] 787 --infodir=DIR info documentation [PREFIX/info] 788 --mandir=DIR man documentation [PREFIX/man] 789_ACEOF 790 791 cat <<\_ACEOF 792_ACEOF 793fi 794 795if test -n "$ac_init_help"; then 796 797 cat <<\_ACEOF 798 799Optional Packages: 800 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 801 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 802 --with-cxxflags Specify additional flags to pass to compiler 803 --with-ldflags Specify additional flags to pass to linker 804 --with-libs Specify additional libraries 805 --with-mm Specify additional libraries 806 --with-db4 Specify additional libraries 807 --with-apxs=FILE Build shared Apache module. FILE is optional 808 pathname to the Apache apxs tool; defaults to 809 "apxs". 810 811Some influential environment variables: 812 CXX C++ compiler command 813 CXXFLAGS C++ compiler flags 814 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 815 nonstandard directory <lib dir> 816 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 817 headers in a nonstandard directory <include dir> 818 819Use these variables to override the choices made by `configure' or to help 820it to find libraries and programs with nonstandard names/locations. 821 822_ACEOF 823fi 824 825if test "$ac_init_help" = "recursive"; then 826 # If there are subdirs, report their specific --help. 827 ac_popdir=`pwd` 828 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 829 test -d $ac_dir || continue 830 ac_builddir=. 831 832if test "$ac_dir" != .; then 833 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 834 # A "../" for each directory in $ac_dir_suffix. 835 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 836else 837 ac_dir_suffix= ac_top_builddir= 838fi 839 840case $srcdir in 841 .) # No --srcdir option. We are building in place. 842 ac_srcdir=. 843 if test -z "$ac_top_builddir"; then 844 ac_top_srcdir=. 845 else 846 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 847 fi ;; 848 [\\/]* | ?:[\\/]* ) # Absolute path. 849 ac_srcdir=$srcdir$ac_dir_suffix; 850 ac_top_srcdir=$srcdir ;; 851 *) # Relative path. 852 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 853 ac_top_srcdir=$ac_top_builddir$srcdir ;; 854esac 855 856# Do not use `cd foo && pwd` to compute absolute paths, because 857# the directories may not exist. 858case `pwd` in 859.) ac_abs_builddir="$ac_dir";; 860*) 861 case "$ac_dir" in 862 .) ac_abs_builddir=`pwd`;; 863 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 864 *) ac_abs_builddir=`pwd`/"$ac_dir";; 865 esac;; 866esac 867case $ac_abs_builddir in 868.) ac_abs_top_builddir=${ac_top_builddir}.;; 869*) 870 case ${ac_top_builddir}. in 871 .) ac_abs_top_builddir=$ac_abs_builddir;; 872 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 873 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 874 esac;; 875esac 876case $ac_abs_builddir in 877.) ac_abs_srcdir=$ac_srcdir;; 878*) 879 case $ac_srcdir in 880 .) ac_abs_srcdir=$ac_abs_builddir;; 881 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 882 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 883 esac;; 884esac 885case $ac_abs_builddir in 886.) ac_abs_top_srcdir=$ac_top_srcdir;; 887*) 888 case $ac_top_srcdir in 889 .) ac_abs_top_srcdir=$ac_abs_builddir;; 890 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 891 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 892 esac;; 893esac 894 895 cd $ac_dir 896 # Check for guested configure; otherwise get Cygnus style configure. 897 if test -f $ac_srcdir/configure.gnu; then 898 echo 899 $SHELL $ac_srcdir/configure.gnu --help=recursive 900 elif test -f $ac_srcdir/configure; then 901 echo 902 $SHELL $ac_srcdir/configure --help=recursive 903 elif test -f $ac_srcdir/configure.ac || 904 test -f $ac_srcdir/configure.in; then 905 echo 906 $ac_configure --help 907 else 908 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 909 fi 910 cd "$ac_popdir" 911 done 912fi 913 914test -n "$ac_init_help" && exit 0 915if $ac_init_version; then 916 cat <<\_ACEOF 917 918Copyright (C) 2003 Free Software Foundation, Inc. 919This configure script is free software; the Free Software Foundation 920gives unlimited permission to copy, distribute and modify it. 921_ACEOF 922 exit 0 923fi 924exec 5>config.log 925cat >&5 <<_ACEOF 926This file contains any messages produced by compilers while 927running configure, to aid debugging if configure makes a mistake. 928 929It was created by $as_me, which was 930generated by GNU Autoconf 2.59. Invocation command line was 931 932 $ $0 $@ 933 934_ACEOF 935{ 936cat <<_ASUNAME 937## --------- ## 938## Platform. ## 939## --------- ## 940 941hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 942uname -m = `(uname -m) 2>/dev/null || echo unknown` 943uname -r = `(uname -r) 2>/dev/null || echo unknown` 944uname -s = `(uname -s) 2>/dev/null || echo unknown` 945uname -v = `(uname -v) 2>/dev/null || echo unknown` 946 947/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 948/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 949 950/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 951/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 952/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 953hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 954/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 955/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 956/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 957 958_ASUNAME 959 960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 961for as_dir in $PATH 962do 963 IFS=$as_save_IFS 964 test -z "$as_dir" && as_dir=. 965 echo "PATH: $as_dir" 966done 967 968} >&5 969 970cat >&5 <<_ACEOF 971 972 973## ----------- ## 974## Core tests. ## 975## ----------- ## 976 977_ACEOF 978 979 980# Keep a trace of the command line. 981# Strip out --no-create and --no-recursion so they do not pile up. 982# Strip out --silent because we don't want to record it for future runs. 983# Also quote any args containing shell meta-characters. 984# Make two passes to allow for proper duplicate-argument suppression. 985ac_configure_args= 986ac_configure_args0= 987ac_configure_args1= 988ac_sep= 989ac_must_keep_next=false 990for ac_pass in 1 2 991do 992 for ac_arg 993 do 994 case $ac_arg in 995 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 997 | -silent | --silent | --silen | --sile | --sil) 998 continue ;; 999 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1000 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1001 esac 1002 case $ac_pass in 1003 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1004 2) 1005 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1006 if test $ac_must_keep_next = true; then 1007 ac_must_keep_next=false # Got value, back to normal. 1008 else 1009 case $ac_arg in 1010 *=* | --config-cache | -C | -disable-* | --disable-* \ 1011 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1012 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1013 | -with-* | --with-* | -without-* | --without-* | --x) 1014 case "$ac_configure_args0 " in 1015 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1016 esac 1017 ;; 1018 -* ) ac_must_keep_next=true ;; 1019 esac 1020 fi 1021 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1022 # Get rid of the leading space. 1023 ac_sep=" " 1024 ;; 1025 esac 1026 done 1027done 1028$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1029$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1030 1031# When interrupted or exit'd, cleanup temporary files, and complete 1032# config.log. We remove comments because anyway the quotes in there 1033# would cause problems or look ugly. 1034# WARNING: Be sure not to use single quotes in there, as some shells, 1035# such as our DU 5.0 friend, will then `close' the trap. 1036trap 'exit_status=$? 1037 # Save into config.log some information that might help in debugging. 1038 { 1039 echo 1040 1041 cat <<\_ASBOX 1042## ---------------- ## 1043## Cache variables. ## 1044## ---------------- ## 1045_ASBOX 1046 echo 1047 # The following way of writing the cache mishandles newlines in values, 1048{ 1049 (set) 2>&1 | 1050 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1051 *ac_space=\ *) 1052 sed -n \ 1053 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1055 ;; 1056 *) 1057 sed -n \ 1058 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1059 ;; 1060 esac; 1061} 1062 echo 1063 1064 cat <<\_ASBOX 1065## ----------------- ## 1066## Output variables. ## 1067## ----------------- ## 1068_ASBOX 1069 echo 1070 for ac_var in $ac_subst_vars 1071 do 1072 eval ac_val=$`echo $ac_var` 1073 echo "$ac_var='"'"'$ac_val'"'"'" 1074 done | sort 1075 echo 1076 1077 if test -n "$ac_subst_files"; then 1078 cat <<\_ASBOX 1079## ------------- ## 1080## Output files. ## 1081## ------------- ## 1082_ASBOX 1083 echo 1084 for ac_var in $ac_subst_files 1085 do 1086 eval ac_val=$`echo $ac_var` 1087 echo "$ac_var='"'"'$ac_val'"'"'" 1088 done | sort 1089 echo 1090 fi 1091 1092 if test -s confdefs.h; then 1093 cat <<\_ASBOX 1094## ----------- ## 1095## confdefs.h. ## 1096## ----------- ## 1097_ASBOX 1098 echo 1099 sed "/^$/d" confdefs.h | sort 1100 echo 1101 fi 1102 test "$ac_signal" != 0 && 1103 echo "$as_me: caught signal $ac_signal" 1104 echo "$as_me: exit $exit_status" 1105 } >&5 1106 rm -f core *.core && 1107 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1108 exit $exit_status 1109 ' 0 1110for ac_signal in 1 2 13 15; do 1111 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1112done 1113ac_signal=0 1114 1115# confdefs.h avoids OS command line length limits that DEFS can exceed. 1116rm -rf conftest* confdefs.h 1117# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1118echo >confdefs.h 1119 1120# Predefined preprocessor variables. 1121 1122cat >>confdefs.h <<_ACEOF 1123#define PACKAGE_NAME "$PACKAGE_NAME" 1124_ACEOF 1125 1126 1127cat >>confdefs.h <<_ACEOF 1128#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1129_ACEOF 1130 1131 1132cat >>confdefs.h <<_ACEOF 1133#define PACKAGE_VERSION "$PACKAGE_VERSION" 1134_ACEOF 1135 1136 1137cat >>confdefs.h <<_ACEOF 1138#define PACKAGE_STRING "$PACKAGE_STRING" 1139_ACEOF 1140 1141 1142cat >>confdefs.h <<_ACEOF 1143#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1144_ACEOF 1145 1146 1147# Let the site file select an alternate cache file if it wants to. 1148# Prefer explicitly selected file to automatically selected ones. 1149if test -z "$CONFIG_SITE"; then 1150 if test "x$prefix" != xNONE; then 1151 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1152 else 1153 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1154 fi 1155fi 1156for ac_site_file in $CONFIG_SITE; do 1157 if test -r "$ac_site_file"; then 1158 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1159echo "$as_me: loading site script $ac_site_file" >&6;} 1160 sed 's/^/| /' "$ac_site_file" >&5 1161 . "$ac_site_file" 1162 fi 1163done 1164 1165if test -r "$cache_file"; then 1166 # Some versions of bash will fail to source /dev/null (special 1167 # files actually), so we avoid doing that. 1168 if test -f "$cache_file"; then 1169 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1170echo "$as_me: loading cache $cache_file" >&6;} 1171 case $cache_file in 1172 [\\/]* | ?:[\\/]* ) . $cache_file;; 1173 *) . ./$cache_file;; 1174 esac 1175 fi 1176else 1177 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1178echo "$as_me: creating cache $cache_file" >&6;} 1179 >$cache_file 1180fi 1181 1182# Check that the precious variables saved in the cache have kept the same 1183# value. 1184ac_cache_corrupted=false 1185for ac_var in `(set) 2>&1 | 1186 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1187 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1188 eval ac_new_set=\$ac_env_${ac_var}_set 1189 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1190 eval ac_new_val="\$ac_env_${ac_var}_value" 1191 case $ac_old_set,$ac_new_set in 1192 set,) 1193 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1194echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1195 ac_cache_corrupted=: ;; 1196 ,set) 1197 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1198echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1199 ac_cache_corrupted=: ;; 1200 ,);; 1201 *) 1202 if test "x$ac_old_val" != "x$ac_new_val"; then 1203 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1204echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1205 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1206echo "$as_me: former value: $ac_old_val" >&2;} 1207 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1208echo "$as_me: current value: $ac_new_val" >&2;} 1209 ac_cache_corrupted=: 1210 fi;; 1211 esac 1212 # Pass precious variables to config.status. 1213 if test "$ac_new_set" = set; then 1214 case $ac_new_val in 1215 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1216 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1217 *) ac_arg=$ac_var=$ac_new_val ;; 1218 esac 1219 case " $ac_configure_args " in 1220 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1221 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1222 esac 1223 fi 1224done 1225if $ac_cache_corrupted; then 1226 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1227echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1228 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1229echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1230 { (exit 1); exit 1; }; } 1231fi 1232 1233ac_ext=c 1234ac_cpp='$CPP $CPPFLAGS' 1235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1237ac_compiler_gnu=$ac_cv_c_compiler_gnu 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 ac_config_headers="$ac_config_headers config.h" 1258 1259ac_ext=cc 1260ac_cpp='$CXXCPP $CPPFLAGS' 1261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1264if test -n "$ac_tool_prefix"; then 1265 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1266 do 1267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1268set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1269echo "$as_me:$LINENO: checking for $ac_word" >&5 1270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1271if test "${ac_cv_prog_CXX+set}" = set; then 1272 echo $ECHO_N "(cached) $ECHO_C" >&6 1273else 1274 if test -n "$CXX"; then 1275 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1276else 1277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1278for as_dir in $PATH 1279do 1280 IFS=$as_save_IFS 1281 test -z "$as_dir" && as_dir=. 1282 for ac_exec_ext in '' $ac_executable_extensions; do 1283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1284 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1286 break 2 1287 fi 1288done 1289done 1290 1291fi 1292fi 1293CXX=$ac_cv_prog_CXX 1294if test -n "$CXX"; then 1295 echo "$as_me:$LINENO: result: $CXX" >&5 1296echo "${ECHO_T}$CXX" >&6 1297else 1298 echo "$as_me:$LINENO: result: no" >&5 1299echo "${ECHO_T}no" >&6 1300fi 1301 1302 test -n "$CXX" && break 1303 done 1304fi 1305if test -z "$CXX"; then 1306 ac_ct_CXX=$CXX 1307 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1308do 1309 # Extract the first word of "$ac_prog", so it can be a program name with args. 1310set dummy $ac_prog; ac_word=$2 1311echo "$as_me:$LINENO: checking for $ac_word" >&5 1312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1313if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 1314 echo $ECHO_N "(cached) $ECHO_C" >&6 1315else 1316 if test -n "$ac_ct_CXX"; then 1317 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1318else 1319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1320for as_dir in $PATH 1321do 1322 IFS=$as_save_IFS 1323 test -z "$as_dir" && as_dir=. 1324 for ac_exec_ext in '' $ac_executable_extensions; do 1325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1326 ac_cv_prog_ac_ct_CXX="$ac_prog" 1327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1328 break 2 1329 fi 1330done 1331done 1332 1333fi 1334fi 1335ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1336if test -n "$ac_ct_CXX"; then 1337 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 1338echo "${ECHO_T}$ac_ct_CXX" >&6 1339else 1340 echo "$as_me:$LINENO: result: no" >&5 1341echo "${ECHO_T}no" >&6 1342fi 1343 1344 test -n "$ac_ct_CXX" && break 1345done 1346test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 1347 1348 CXX=$ac_ct_CXX 1349fi 1350 1351 1352# Provide some information about the compiler. 1353echo "$as_me:$LINENO:" \ 1354 "checking for C++ compiler version" >&5 1355ac_compiler=`set X $ac_compile; echo $2` 1356{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1357 (eval $ac_compiler --version </dev/null >&5) 2>&5 1358 ac_status=$? 1359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1360 (exit $ac_status); } 1361{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1362 (eval $ac_compiler -v </dev/null >&5) 2>&5 1363 ac_status=$? 1364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1365 (exit $ac_status); } 1366{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1367 (eval $ac_compiler -V </dev/null >&5) 2>&5 1368 ac_status=$? 1369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1370 (exit $ac_status); } 1371 1372cat >conftest.$ac_ext <<_ACEOF 1373/* confdefs.h. */ 1374_ACEOF 1375cat confdefs.h >>conftest.$ac_ext 1376cat >>conftest.$ac_ext <<_ACEOF 1377/* end confdefs.h. */ 1378 1379int 1380main () 1381{ 1382 1383 ; 1384 return 0; 1385} 1386_ACEOF 1387ac_clean_files_save=$ac_clean_files 1388ac_clean_files="$ac_clean_files a.out a.exe b.out" 1389# Try to create an executable without -o first, disregard a.out. 1390# It will help us diagnose broken compilers, and finding out an intuition 1391# of exeext. 1392echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 1393echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 1394ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1395if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1396 (eval $ac_link_default) 2>&5 1397 ac_status=$? 1398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1399 (exit $ac_status); }; then 1400 # Find the output, starting from the most likely. This scheme is 1401# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1402# resort. 1403 1404# Be careful to initialize this variable, since it used to be cached. 1405# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1406ac_cv_exeext= 1407# b.out is created by i960 compilers. 1408for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1409do 1410 test -f "$ac_file" || continue 1411 case $ac_file in 1412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1413 ;; 1414 conftest.$ac_ext ) 1415 # This is the source file. 1416 ;; 1417 [ab].out ) 1418 # We found the default executable, but exeext='' is most 1419 # certainly right. 1420 break;; 1421 *.* ) 1422 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1423 # FIXME: I believe we export ac_cv_exeext for Libtool, 1424 # but it would be cool to find out if it's true. Does anybody 1425 # maintain Libtool? --akim. 1426 export ac_cv_exeext 1427 break;; 1428 * ) 1429 break;; 1430 esac 1431done 1432else 1433 echo "$as_me: failed program was:" >&5 1434sed 's/^/| /' conftest.$ac_ext >&5 1435 1436{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 1437See \`config.log' for more details." >&5 1438echo "$as_me: error: C++ compiler cannot create executables 1439See \`config.log' for more details." >&2;} 1440 { (exit 77); exit 77; }; } 1441fi 1442 1443ac_exeext=$ac_cv_exeext 1444echo "$as_me:$LINENO: result: $ac_file" >&5 1445echo "${ECHO_T}$ac_file" >&6 1446 1447# Check the compiler produces executables we can run. If not, either 1448# the compiler is broken, or we cross compile. 1449echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 1450echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 1451# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1452# If not cross compiling, check that we can run a simple program. 1453if test "$cross_compiling" != yes; then 1454 if { ac_try='./$ac_file' 1455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1456 (eval $ac_try) 2>&5 1457 ac_status=$? 1458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1459 (exit $ac_status); }; }; then 1460 cross_compiling=no 1461 else 1462 if test "$cross_compiling" = maybe; then 1463 cross_compiling=yes 1464 else 1465 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 1466If you meant to cross compile, use \`--host'. 1467See \`config.log' for more details." >&5 1468echo "$as_me: error: cannot run C++ compiled programs. 1469If you meant to cross compile, use \`--host'. 1470See \`config.log' for more details." >&2;} 1471 { (exit 1); exit 1; }; } 1472 fi 1473 fi 1474fi 1475echo "$as_me:$LINENO: result: yes" >&5 1476echo "${ECHO_T}yes" >&6 1477 1478rm -f a.out a.exe conftest$ac_cv_exeext b.out 1479ac_clean_files=$ac_clean_files_save 1480# Check the compiler produces executables we can run. If not, either 1481# the compiler is broken, or we cross compile. 1482echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1483echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1484echo "$as_me:$LINENO: result: $cross_compiling" >&5 1485echo "${ECHO_T}$cross_compiling" >&6 1486 1487echo "$as_me:$LINENO: checking for suffix of executables" >&5 1488echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1490 (eval $ac_link) 2>&5 1491 ac_status=$? 1492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1493 (exit $ac_status); }; then 1494 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1495# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1496# work properly (i.e., refer to `conftest.exe'), while it won't with 1497# `rm'. 1498for ac_file in conftest.exe conftest conftest.*; do 1499 test -f "$ac_file" || continue 1500 case $ac_file in 1501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1502 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1503 export ac_cv_exeext 1504 break;; 1505 * ) break;; 1506 esac 1507done 1508else 1509 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1510See \`config.log' for more details." >&5 1511echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1512See \`config.log' for more details." >&2;} 1513 { (exit 1); exit 1; }; } 1514fi 1515 1516rm -f conftest$ac_cv_exeext 1517echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1518echo "${ECHO_T}$ac_cv_exeext" >&6 1519 1520rm -f conftest.$ac_ext 1521EXEEXT=$ac_cv_exeext 1522ac_exeext=$EXEEXT 1523echo "$as_me:$LINENO: checking for suffix of object files" >&5 1524echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1525if test "${ac_cv_objext+set}" = set; then 1526 echo $ECHO_N "(cached) $ECHO_C" >&6 1527else 1528 cat >conftest.$ac_ext <<_ACEOF 1529/* confdefs.h. */ 1530_ACEOF 1531cat confdefs.h >>conftest.$ac_ext 1532cat >>conftest.$ac_ext <<_ACEOF 1533/* end confdefs.h. */ 1534 1535int 1536main () 1537{ 1538 1539 ; 1540 return 0; 1541} 1542_ACEOF 1543rm -f conftest.o conftest.obj 1544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1545 (eval $ac_compile) 2>&5 1546 ac_status=$? 1547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1548 (exit $ac_status); }; then 1549 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1550 case $ac_file in 1551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1553 break;; 1554 esac 1555done 1556else 1557 echo "$as_me: failed program was:" >&5 1558sed 's/^/| /' conftest.$ac_ext >&5 1559 1560{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1561See \`config.log' for more details." >&5 1562echo "$as_me: error: cannot compute suffix of object files: cannot compile 1563See \`config.log' for more details." >&2;} 1564 { (exit 1); exit 1; }; } 1565fi 1566 1567rm -f conftest.$ac_cv_objext conftest.$ac_ext 1568fi 1569echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1570echo "${ECHO_T}$ac_cv_objext" >&6 1571OBJEXT=$ac_cv_objext 1572ac_objext=$OBJEXT 1573echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 1574echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 1575if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 1576 echo $ECHO_N "(cached) $ECHO_C" >&6 1577else 1578 cat >conftest.$ac_ext <<_ACEOF 1579/* confdefs.h. */ 1580_ACEOF 1581cat confdefs.h >>conftest.$ac_ext 1582cat >>conftest.$ac_ext <<_ACEOF 1583/* end confdefs.h. */ 1584 1585int 1586main () 1587{ 1588#ifndef __GNUC__ 1589 choke me 1590#endif 1591 1592 ; 1593 return 0; 1594} 1595_ACEOF 1596rm -f conftest.$ac_objext 1597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1598 (eval $ac_compile) 2>conftest.er1 1599 ac_status=$? 1600 grep -v '^ *+' conftest.er1 >conftest.err 1601 rm -f conftest.er1 1602 cat conftest.err >&5 1603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1604 (exit $ac_status); } && 1605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 1606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1607 (eval $ac_try) 2>&5 1608 ac_status=$? 1609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1610 (exit $ac_status); }; } && 1611 { ac_try='test -s conftest.$ac_objext' 1612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1613 (eval $ac_try) 2>&5 1614 ac_status=$? 1615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1616 (exit $ac_status); }; }; then 1617 ac_compiler_gnu=yes 1618else 1619 echo "$as_me: failed program was:" >&5 1620sed 's/^/| /' conftest.$ac_ext >&5 1621 1622ac_compiler_gnu=no 1623fi 1624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1625ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 1626 1627fi 1628echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 1629echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 1630GXX=`test $ac_compiler_gnu = yes && echo yes` 1631ac_test_CXXFLAGS=${CXXFLAGS+set} 1632ac_save_CXXFLAGS=$CXXFLAGS 1633CXXFLAGS="-g" 1634echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 1635echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 1636if test "${ac_cv_prog_cxx_g+set}" = set; then 1637 echo $ECHO_N "(cached) $ECHO_C" >&6 1638else 1639 cat >conftest.$ac_ext <<_ACEOF 1640/* confdefs.h. */ 1641_ACEOF 1642cat confdefs.h >>conftest.$ac_ext 1643cat >>conftest.$ac_ext <<_ACEOF 1644/* end confdefs.h. */ 1645 1646int 1647main () 1648{ 1649 1650 ; 1651 return 0; 1652} 1653_ACEOF 1654rm -f conftest.$ac_objext 1655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1656 (eval $ac_compile) 2>conftest.er1 1657 ac_status=$? 1658 grep -v '^ *+' conftest.er1 >conftest.err 1659 rm -f conftest.er1 1660 cat conftest.err >&5 1661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1662 (exit $ac_status); } && 1663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 1664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1665 (eval $ac_try) 2>&5 1666 ac_status=$? 1667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1668 (exit $ac_status); }; } && 1669 { ac_try='test -s conftest.$ac_objext' 1670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1671 (eval $ac_try) 2>&5 1672 ac_status=$? 1673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1674 (exit $ac_status); }; }; then 1675 ac_cv_prog_cxx_g=yes 1676else 1677 echo "$as_me: failed program was:" >&5 1678sed 's/^/| /' conftest.$ac_ext >&5 1679 1680ac_cv_prog_cxx_g=no 1681fi 1682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1683fi 1684echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 1685echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 1686if test "$ac_test_CXXFLAGS" = set; then 1687 CXXFLAGS=$ac_save_CXXFLAGS 1688elif test $ac_cv_prog_cxx_g = yes; then 1689 if test "$GXX" = yes; then 1690 CXXFLAGS="-g -O2" 1691 else 1692 CXXFLAGS="-g" 1693 fi 1694else 1695 if test "$GXX" = yes; then 1696 CXXFLAGS="-O2" 1697 else 1698 CXXFLAGS= 1699 fi 1700fi 1701for ac_declaration in \ 1702 '' \ 1703 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1704 'extern "C" void std::exit (int); using std::exit;' \ 1705 'extern "C" void exit (int) throw ();' \ 1706 'extern "C" void exit (int);' \ 1707 'void exit (int);' 1708do 1709 cat >conftest.$ac_ext <<_ACEOF 1710/* confdefs.h. */ 1711_ACEOF 1712cat confdefs.h >>conftest.$ac_ext 1713cat >>conftest.$ac_ext <<_ACEOF 1714/* end confdefs.h. */ 1715$ac_declaration 1716#include <stdlib.h> 1717int 1718main () 1719{ 1720exit (42); 1721 ; 1722 return 0; 1723} 1724_ACEOF 1725rm -f conftest.$ac_objext 1726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1727 (eval $ac_compile) 2>conftest.er1 1728 ac_status=$? 1729 grep -v '^ *+' conftest.er1 >conftest.err 1730 rm -f conftest.er1 1731 cat conftest.err >&5 1732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1733 (exit $ac_status); } && 1734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 1735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1736 (eval $ac_try) 2>&5 1737 ac_status=$? 1738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1739 (exit $ac_status); }; } && 1740 { ac_try='test -s conftest.$ac_objext' 1741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1742 (eval $ac_try) 2>&5 1743 ac_status=$? 1744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1745 (exit $ac_status); }; }; then 1746 : 1747else 1748 echo "$as_me: failed program was:" >&5 1749sed 's/^/| /' conftest.$ac_ext >&5 1750 1751continue 1752fi 1753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1754 cat >conftest.$ac_ext <<_ACEOF 1755/* confdefs.h. */ 1756_ACEOF 1757cat confdefs.h >>conftest.$ac_ext 1758cat >>conftest.$ac_ext <<_ACEOF 1759/* end confdefs.h. */ 1760$ac_declaration 1761int 1762main () 1763{ 1764exit (42); 1765 ; 1766 return 0; 1767} 1768_ACEOF 1769rm -f conftest.$ac_objext 1770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1771 (eval $ac_compile) 2>conftest.er1 1772 ac_status=$? 1773 grep -v '^ *+' conftest.er1 >conftest.err 1774 rm -f conftest.er1 1775 cat conftest.err >&5 1776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1777 (exit $ac_status); } && 1778 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 1779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1780 (eval $ac_try) 2>&5 1781 ac_status=$? 1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1783 (exit $ac_status); }; } && 1784 { ac_try='test -s conftest.$ac_objext' 1785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1786 (eval $ac_try) 2>&5 1787 ac_status=$? 1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1789 (exit $ac_status); }; }; then 1790 break 1791else 1792 echo "$as_me: failed program was:" >&5 1793sed 's/^/| /' conftest.$ac_ext >&5 1794 1795fi 1796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1797done 1798rm -f conftest* 1799if test -n "$ac_declaration"; then 1800 echo '#ifdef __cplusplus' >>confdefs.h 1801 echo $ac_declaration >>confdefs.h 1802 echo '#endif' >>confdefs.h 1803fi 1804 1805ac_ext=c 1806ac_cpp='$CPP $CPPFLAGS' 1807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1809ac_compiler_gnu=$ac_cv_c_compiler_gnu 1810 1811 1812ac_ext=cc 1813ac_cpp='$CXXCPP $CPPFLAGS' 1814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1817 1818if test "$cross_compiling" = no; then 1819 echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5 1820echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6 1821fi 1822 1823if test "$cross_compiling" = yes; then 1824 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 1825See \`config.log' for more details." >&5 1826echo "$as_me: error: cannot run test program while cross compiling 1827See \`config.log' for more details." >&2;} 1828 { (exit 1); exit 1; }; } 1829else 1830 cat >conftest.$ac_ext <<_ACEOF 1831/* confdefs.h. */ 1832_ACEOF 1833cat confdefs.h >>conftest.$ac_ext 1834cat >>conftest.$ac_ext <<_ACEOF 1835/* end confdefs.h. */ 1836int main() { return 0; } 1837_ACEOF 1838rm -f conftest$ac_exeext 1839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1840 (eval $ac_link) 2>&5 1841 ac_status=$? 1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 1844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1845 (eval $ac_try) 2>&5 1846 ac_status=$? 1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1848 (exit $ac_status); }; }; then 1849 echo "$as_me:$LINENO: result: yes" >&5 1850echo "${ECHO_T}yes" >&6 1851else 1852 echo "$as_me: program exited with status $ac_status" >&5 1853echo "$as_me: failed program was:" >&5 1854sed 's/^/| /' conftest.$ac_ext >&5 1855 1856( exit $ac_status ) 1857echo "$as_me:$LINENO: result: no" >&5 1858echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5 1859echo "$as_me: error: a working C++ compiler is required" >&2;} 1860 { (exit 1); exit 1; }; } 1861fi 1862rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 1863fi 1864 1865# Allow user to specify flags 1866 1867# Check whether --with-cxxflags or --without-cxxflags was given. 1868if test "${with_cxxflags+set}" = set; then 1869 withval="$with_cxxflags" 1870 1871 if test "x$withval" != "xno" ; then 1872 CXXFLAGS="$withval $CXXFLAGS" 1873 fi 1874 1875 1876fi; 1877CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-O2//g;' | sed -e 's/-g//g;'` 1878 1879# Check whether --with-ldflags or --without-ldflags was given. 1880if test "${with_ldflags+set}" = set; then 1881 withval="$with_ldflags" 1882 1883 if test "x$withval" != "xno" ; then 1884 LDFLAGS="$withval $LDFLAGS" 1885 fi 1886 1887 1888fi; 1889 1890 1891# Check whether --with-libs or --without-libs was given. 1892if test "${with_libs+set}" = set; then 1893 withval="$with_libs" 1894 1895 if test "x$withval" != "xno" ; then 1896 LIBS="$withval $LIBS" 1897 fi 1898 1899 1900fi; 1901 1902 1903# Check whether --with-mm or --without-mm was given. 1904if test "${with_mm+set}" = set; then 1905 withval="$with_mm" 1906 1907 if test "x$withval" != "xno" ; then 1908 LIBS="-L$withval/lib $LIBS" 1909 CPPFLAGS="-I$withval/include $CPPFLAGS" 1910 fi 1911 1912 1913 1914fi; 1915 1916 1917# Check whether --with-db4 or --without-db4 was given. 1918if test "${with_db4+set}" = set; then 1919 withval="$with_db4" 1920 1921 if test "x$withval" != "xno" ; then 1922 LIBS="-L$withval/lib $LIBS" 1923 CPPFLAGS="-I$withval/include $CPPFLAGS" 1924 fi 1925 1926 1927 1928fi; 1929 1930 1931# Check whether --with-apxs or --without-apxs was given. 1932if test "${with_apxs+set}" = set; then 1933 withval="$with_apxs" 1934 1935 if test "$withval" = "yes"; then 1936 withval="apxs" 1937 fi 1938 APXS="$withval" 1939 1940 1941else 1942 1943 { { echo "$as_me:$LINENO: error: apxs is required" >&5 1944echo "$as_me: error: apxs is required" >&2;} 1945 { (exit 1); exit 1; }; } 1946 1947fi; 1948 1949LIBS="$LIBS -ldb_cxx" 1950 1951echo "$as_me:$LINENO: checking for union semun" >&5 1952echo $ECHO_N "checking for union semun... $ECHO_C" >&6 1953if test "${cv_semun+set}" = set; then 1954 echo $ECHO_N "(cached) $ECHO_C" >&6 1955else 1956 cat >conftest.$ac_ext <<_ACEOF 1957/* confdefs.h. */ 1958_ACEOF 1959cat confdefs.h >>conftest.$ac_ext 1960cat >>conftest.$ac_ext <<_ACEOF 1961/* end confdefs.h. */ 1962 1963#include <sys/types.h> 1964#include <sys/ipc.h> 1965#include <sys/sem.h> 1966 1967int 1968main () 1969{ 1970union semun x; 1971 ; 1972 return 0; 1973} 1974_ACEOF 1975rm -f conftest.$ac_objext 1976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1977 (eval $ac_compile) 2>conftest.er1 1978 ac_status=$? 1979 grep -v '^ *+' conftest.er1 >conftest.err 1980 rm -f conftest.er1 1981 cat conftest.err >&5 1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1983 (exit $ac_status); } && 1984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 1985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1986 (eval $ac_try) 2>&5 1987 ac_status=$? 1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1989 (exit $ac_status); }; } && 1990 { ac_try='test -s conftest.$ac_objext' 1991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1992 (eval $ac_try) 2>&5 1993 ac_status=$? 1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1995 (exit $ac_status); }; }; then 1996 1997 cv_semun=yes 1998 1999else 2000 echo "$as_me: failed program was:" >&5 2001sed 's/^/| /' conftest.$ac_ext >&5 2002 2003 2004 cv_semun=no 2005 2006fi 2007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2008 2009fi 2010echo "$as_me:$LINENO: result: $cv_semun" >&5 2011echo "${ECHO_T}$cv_semun" >&6 2012if test "$cv_semun" = "yes"; then 2013 2014cat >>confdefs.h <<\_ACEOF 2015#define HAVE_SEMUN 1 2016_ACEOF 2017 2018else 2019 2020cat >>confdefs.h <<\_ACEOF 2021#define HAVE_SEMUN 0 2022_ACEOF 2023 2024fi 2025 2026 2027 2028 2029 2030 2031 2032echo "$as_me:$LINENO: checking for mm_core_create in -lmm" >&5 2033echo $ECHO_N "checking for mm_core_create in -lmm... $ECHO_C" >&6 2034if test "${ac_cv_lib_mm_mm_core_create+set}" = set; then 2035 echo $ECHO_N "(cached) $ECHO_C" >&6 2036else 2037 ac_check_lib_save_LIBS=$LIBS 2038LIBS="-lmm $LIBS" 2039cat >conftest.$ac_ext <<_ACEOF 2040/* confdefs.h. */ 2041_ACEOF 2042cat confdefs.h >>conftest.$ac_ext 2043cat >>conftest.$ac_ext <<_ACEOF 2044/* end confdefs.h. */ 2045 2046/* Override any gcc2 internal prototype to avoid an error. */ 2047#ifdef __cplusplus 2048extern "C" 2049#endif 2050/* We use char because int might match the return type of a gcc2 2051 builtin and then its argument prototype would still apply. */ 2052char mm_core_create (); 2053int 2054main () 2055{ 2056mm_core_create (); 2057 ; 2058 return 0; 2059} 2060_ACEOF 2061rm -f conftest.$ac_objext conftest$ac_exeext 2062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2063 (eval $ac_link) 2>conftest.er1 2064 ac_status=$? 2065 grep -v '^ *+' conftest.er1 >conftest.err 2066 rm -f conftest.er1 2067 cat conftest.err >&5 2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2069 (exit $ac_status); } && 2070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2072 (eval $ac_try) 2>&5 2073 ac_status=$? 2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2075 (exit $ac_status); }; } && 2076 { ac_try='test -s conftest$ac_exeext' 2077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2078 (eval $ac_try) 2>&5 2079 ac_status=$? 2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2081 (exit $ac_status); }; }; then 2082 ac_cv_lib_mm_mm_core_create=yes 2083else 2084 echo "$as_me: failed program was:" >&5 2085sed 's/^/| /' conftest.$ac_ext >&5 2086 2087ac_cv_lib_mm_mm_core_create=no 2088fi 2089rm -f conftest.err conftest.$ac_objext \ 2090 conftest$ac_exeext conftest.$ac_ext 2091LIBS=$ac_check_lib_save_LIBS 2092fi 2093echo "$as_me:$LINENO: result: $ac_cv_lib_mm_mm_core_create" >&5 2094echo "${ECHO_T}$ac_cv_lib_mm_mm_core_create" >&6 2095if test $ac_cv_lib_mm_mm_core_create = yes; then 2096 cat >>confdefs.h <<_ACEOF 2097#define HAVE_LIBMM 1 2098_ACEOF 2099 2100 LIBS="-lmm $LIBS" 2101 2102else 2103 { { echo "$as_me:$LINENO: error: libmm required" >&5 2104echo "$as_me: error: libmm required" >&2;} 2105 { (exit 1); exit 1; }; } 2106fi 2107 2108 2109 2110 ac_config_files="$ac_config_files Makefile" 2111cat >confcache <<\_ACEOF 2112# This file is a shell script that caches the results of configure 2113# tests run on this system so they can be shared between configure 2114# scripts and configure runs, see configure's option --config-cache. 2115# It is not useful on other systems. If it contains results you don't 2116# want to keep, you may remove or edit it. 2117# 2118# config.status only pays attention to the cache file if you give it 2119# the --recheck option to rerun configure. 2120# 2121# `ac_cv_env_foo' variables (set or unset) will be overridden when 2122# loading this file, other *unset* `ac_cv_foo' will be assigned the 2123# following values. 2124 2125_ACEOF 2126 2127# The following way of writing the cache mishandles newlines in values, 2128# but we know of no workaround that is simple, portable, and efficient. 2129# So, don't put newlines in cache variables' values. 2130# Ultrix sh set writes to stderr and can't be redirected directly, 2131# and sets the high bit in the cache file unless we assign to the vars. 2132{ 2133 (set) 2>&1 | 2134 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2135 *ac_space=\ *) 2136 # `set' does not quote correctly, so add quotes (double-quote 2137 # substitution turns \\\\ into \\, and sed turns \\ into \). 2138 sed -n \ 2139 "s/'/'\\\\''/g; 2140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 2141 ;; 2142 *) 2143 # `set' quotes correctly as required by POSIX, so do not add quotes. 2144 sed -n \ 2145 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 2146 ;; 2147 esac; 2148} | 2149 sed ' 2150 t clear 2151 : clear 2152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 2153 t end 2154 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 2155 : end' >>confcache 2156if diff $cache_file confcache >/dev/null 2>&1; then :; else 2157 if test -w $cache_file; then 2158 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 2159 cat confcache >$cache_file 2160 else 2161 echo "not updating unwritable cache $cache_file" 2162 fi 2163fi 2164rm -f confcache 2165 2166test "x$prefix" = xNONE && prefix=$ac_default_prefix 2167# Let make expand exec_prefix. 2168test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2169 2170# VPATH may cause trouble with some makes, so we remove $(srcdir), 2171# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 2172# trailing colons and then remove the whole line if VPATH becomes empty 2173# (actually we leave an empty line to preserve line numbers). 2174if test "x$srcdir" = x.; then 2175 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 2176s/:*\$(srcdir):*/:/; 2177s/:*\${srcdir}:*/:/; 2178s/:*@srcdir@:*/:/; 2179s/^\([^=]*=[ ]*\):*/\1/; 2180s/:*$//; 2181s/^[^=]*=[ ]*$//; 2182}' 2183fi 2184 2185DEFS=-DHAVE_CONFIG_H 2186 2187ac_libobjs= 2188ac_ltlibobjs= 2189for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 2190 # 1. Remove the extension, and $U if already installed. 2191 ac_i=`echo "$ac_i" | 2192 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 2193 # 2. Add them. 2194 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 2195 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 2196done 2197LIBOBJS=$ac_libobjs 2198 2199LTLIBOBJS=$ac_ltlibobjs 2200 2201 2202 2203: ${CONFIG_STATUS=./config.status} 2204ac_clean_files_save=$ac_clean_files 2205ac_clean_files="$ac_clean_files $CONFIG_STATUS" 2206{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 2207echo "$as_me: creating $CONFIG_STATUS" >&6;} 2208cat >$CONFIG_STATUS <<_ACEOF 2209#! $SHELL 2210# Generated by $as_me. 2211# Run this file to recreate the current configuration. 2212# Compiler output produced by configure, useful for debugging 2213# configure, is in config.log if it exists. 2214 2215debug=false 2216ac_cs_recheck=false 2217ac_cs_silent=false 2218SHELL=\${CONFIG_SHELL-$SHELL} 2219_ACEOF 2220 2221cat >>$CONFIG_STATUS <<\_ACEOF 2222## --------------------- ## 2223## M4sh Initialization. ## 2224## --------------------- ## 2225 2226# Be Bourne compatible 2227if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 2228 emulate sh 2229 NULLCMD=: 2230 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 2231 # is contrary to our usage. Disable this feature. 2232 alias -g '${1+"$@"}'='"$@"' 2233elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 2234 set -o posix 2235fi 2236DUALCASE=1; export DUALCASE # for MKS sh 2237 2238# Support unset when possible. 2239if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 2240 as_unset=unset 2241else 2242 as_unset=false 2243fi 2244 2245 2246# Work around bugs in pre-3.0 UWIN ksh. 2247$as_unset ENV MAIL MAILPATH 2248PS1='$ ' 2249PS2='> ' 2250PS4='+ ' 2251 2252# NLS nuisances. 2253for as_var in \ 2254 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 2255 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 2256 LC_TELEPHONE LC_TIME 2257do 2258 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 2259 eval $as_var=C; export $as_var 2260 else 2261 $as_unset $as_var 2262 fi 2263done 2264 2265# Required to use basename. 2266if expr a : '\(a\)' >/dev/null 2>&1; then 2267 as_expr=expr 2268else 2269 as_expr=false 2270fi 2271 2272if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 2273 as_basename=basename 2274else 2275 as_basename=false 2276fi 2277 2278 2279# Name of the executable. 2280as_me=`$as_basename "$0" || 2281$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 2282 X"$0" : 'X\(//\)$' \| \ 2283 X"$0" : 'X\(/\)$' \| \ 2284 . : '\(.\)' 2>/dev/null || 2285echo X/"$0" | 2286 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 2287 /^X\/\(\/\/\)$/{ s//\1/; q; } 2288 /^X\/\(\/\).*/{ s//\1/; q; } 2289 s/.*/./; q'` 2290 2291 2292# PATH needs CR, and LINENO needs CR and PATH. 2293# Avoid depending upon Character Ranges. 2294as_cr_letters='abcdefghijklmnopqrstuvwxyz' 2295as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 2296as_cr_Letters=$as_cr_letters$as_cr_LETTERS 2297as_cr_digits='0123456789' 2298as_cr_alnum=$as_cr_Letters$as_cr_digits 2299 2300# The user is always right. 2301if test "${PATH_SEPARATOR+set}" != set; then 2302 echo "#! /bin/sh" >conf$$.sh 2303 echo "exit 0" >>conf$$.sh 2304 chmod +x conf$$.sh 2305 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 2306 PATH_SEPARATOR=';' 2307 else 2308 PATH_SEPARATOR=: 2309 fi 2310 rm -f conf$$.sh 2311fi 2312 2313 2314 as_lineno_1=$LINENO 2315 as_lineno_2=$LINENO 2316 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 2317 test "x$as_lineno_1" != "x$as_lineno_2" && 2318 test "x$as_lineno_3" = "x$as_lineno_2" || { 2319 # Find who we are. Look in the path if we contain no path at all 2320 # relative or not. 2321 case $0 in 2322 *[\\/]* ) as_myself=$0 ;; 2323 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2324for as_dir in $PATH 2325do 2326 IFS=$as_save_IFS 2327 test -z "$as_dir" && as_dir=. 2328 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 2329done 2330 2331 ;; 2332 esac 2333 # We did not find ourselves, most probably we were run as `sh COMMAND' 2334 # in which case we are not to be found in the path. 2335 if test "x$as_myself" = x; then 2336 as_myself=$0 2337 fi 2338 if test ! -f "$as_myself"; then 2339 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 2340echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 2341 { (exit 1); exit 1; }; } 2342 fi 2343 case $CONFIG_SHELL in 2344 '') 2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2346for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2347do 2348 IFS=$as_save_IFS 2349 test -z "$as_dir" && as_dir=. 2350 for as_base in sh bash ksh sh5; do 2351 case $as_dir in 2352 /*) 2353 if ("$as_dir/$as_base" -c ' 2354 as_lineno_1=$LINENO 2355 as_lineno_2=$LINENO 2356 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 2357 test "x$as_lineno_1" != "x$as_lineno_2" && 2358 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 2359 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 2360 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 2361 CONFIG_SHELL=$as_dir/$as_base 2362 export CONFIG_SHELL 2363 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 2364 fi;; 2365 esac 2366 done 2367done 2368;; 2369 esac 2370 2371 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 2372 # uniformly replaced by the line number. The first 'sed' inserts a 2373 # line-number line before each line; the second 'sed' does the real 2374 # work. The second script uses 'N' to pair each line-number line 2375 # with the numbered line, and appends trailing '-' during 2376 # substitution so that $LINENO is not a special case at line end. 2377 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 2378 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 2379 sed '=' <$as_myself | 2380 sed ' 2381 N 2382 s,$,-, 2383 : loop 2384 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 2385 t loop 2386 s,-$,, 2387 s,^['$as_cr_digits']*\n,, 2388 ' >$as_me.lineno && 2389 chmod +x $as_me.lineno || 2390 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 2391echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 2392 { (exit 1); exit 1; }; } 2393 2394 # Don't try to exec as it changes $[0], causing all sort of problems 2395 # (the dirname of $[0] is not the place where we might find the 2396 # original and so on. Autoconf is especially sensible to this). 2397 . ./$as_me.lineno 2398 # Exit status is that of the last command. 2399 exit 2400} 2401 2402 2403case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 2404 *c*,-n*) ECHO_N= ECHO_C=' 2405' ECHO_T=' ' ;; 2406 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 2407 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 2408esac 2409 2410if expr a : '\(a\)' >/dev/null 2>&1; then 2411 as_expr=expr 2412else 2413 as_expr=false 2414fi 2415 2416rm -f conf$$ conf$$.exe conf$$.file 2417echo >conf$$.file 2418if ln -s conf$$.file conf$$ 2>/dev/null; then 2419 # We could just check for DJGPP; but this test a) works b) is more generic 2420 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 2421 if test -f conf$$.exe; then 2422 # Don't use ln at all; we don't have any links 2423 as_ln_s='cp -p' 2424 else 2425 as_ln_s='ln -s' 2426 fi 2427elif ln conf$$.file conf$$ 2>/dev/null; then 2428 as_ln_s=ln 2429else 2430 as_ln_s='cp -p' 2431fi 2432rm -f conf$$ conf$$.exe conf$$.file 2433 2434if mkdir -p . 2>/dev/null; then 2435 as_mkdir_p=: 2436else 2437 test -d ./-p && rmdir ./-p 2438 as_mkdir_p=false 2439fi 2440 2441as_executable_p="test -f" 2442 2443# Sed expression to map a string onto a valid CPP name. 2444as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 2445 2446# Sed expression to map a string onto a valid variable name. 2447as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 2448 2449 2450# IFS 2451# We need space, tab and new line, in precisely that order. 2452as_nl=' 2453' 2454IFS=" $as_nl" 2455 2456# CDPATH. 2457$as_unset CDPATH 2458 2459exec 6>&1 2460 2461# Open the log real soon, to keep \$[0] and so on meaningful, and to 2462# report actual input values of CONFIG_FILES etc. instead of their 2463# values after options handling. Logging --version etc. is OK. 2464exec 5>>config.log 2465{ 2466 echo 2467 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 2468## Running $as_me. ## 2469_ASBOX 2470} >&5 2471cat >&5 <<_CSEOF 2472 2473This file was extended by $as_me, which was 2474generated by GNU Autoconf 2.59. Invocation command line was 2475 2476 CONFIG_FILES = $CONFIG_FILES 2477 CONFIG_HEADERS = $CONFIG_HEADERS 2478 CONFIG_LINKS = $CONFIG_LINKS 2479 CONFIG_COMMANDS = $CONFIG_COMMANDS 2480 $ $0 $@ 2481 2482_CSEOF 2483echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 2484echo >&5 2485_ACEOF 2486 2487# Files that config.status was made for. 2488if test -n "$ac_config_files"; then 2489 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 2490fi 2491 2492if test -n "$ac_config_headers"; then 2493 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 2494fi 2495 2496if test -n "$ac_config_links"; then 2497 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 2498fi 2499 2500if test -n "$ac_config_commands"; then 2501 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 2502fi 2503 2504cat >>$CONFIG_STATUS <<\_ACEOF 2505 2506ac_cs_usage="\ 2507\`$as_me' instantiates files from templates according to the 2508current configuration. 2509 2510Usage: $0 [OPTIONS] [FILE]... 2511 2512 -h, --help print this help, then exit 2513 -V, --version print version number, then exit 2514 -q, --quiet do not print progress messages 2515 -d, --debug don't remove temporary files 2516 --recheck update $as_me by reconfiguring in the same conditions 2517 --file=FILE[:TEMPLATE] 2518 instantiate the configuration file FILE 2519 --header=FILE[:TEMPLATE] 2520 instantiate the configuration header FILE 2521 2522Configuration files: 2523$config_files 2524 2525Configuration headers: 2526$config_headers 2527 2528Report bugs to <bug-autoconf@gnu.org>." 2529_ACEOF 2530 2531cat >>$CONFIG_STATUS <<_ACEOF 2532ac_cs_version="\\ 2533config.status 2534configured by $0, generated by GNU Autoconf 2.59, 2535 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 2536 2537Copyright (C) 2003 Free Software Foundation, Inc. 2538This config.status script is free software; the Free Software Foundation 2539gives unlimited permission to copy, distribute and modify it." 2540srcdir=$srcdir 2541_ACEOF 2542 2543cat >>$CONFIG_STATUS <<\_ACEOF 2544# If no file are specified by the user, then we need to provide default 2545# value. By we need to know if files were specified by the user. 2546ac_need_defaults=: 2547while test $# != 0 2548do 2549 case $1 in 2550 --*=*) 2551 ac_option=`expr "x$1" : 'x\([^=]*\)='` 2552 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 2553 ac_shift=: 2554 ;; 2555 -*) 2556 ac_option=$1 2557 ac_optarg=$2 2558 ac_shift=shift 2559 ;; 2560 *) # This is not an option, so the user has probably given explicit 2561 # arguments. 2562 ac_option=$1 2563 ac_need_defaults=false;; 2564 esac 2565 2566 case $ac_option in 2567 # Handling of the options. 2568_ACEOF 2569cat >>$CONFIG_STATUS <<\_ACEOF 2570 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2571 ac_cs_recheck=: ;; 2572 --version | --vers* | -V ) 2573 echo "$ac_cs_version"; exit 0 ;; 2574 --he | --h) 2575 # Conflict between --help and --header 2576 { { echo "$as_me:$LINENO: error: ambiguous option: $1 2577Try \`$0 --help' for more information." >&5 2578echo "$as_me: error: ambiguous option: $1 2579Try \`$0 --help' for more information." >&2;} 2580 { (exit 1); exit 1; }; };; 2581 --help | --hel | -h ) 2582 echo "$ac_cs_usage"; exit 0 ;; 2583 --debug | --d* | -d ) 2584 debug=: ;; 2585 --file | --fil | --fi | --f ) 2586 $ac_shift 2587 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 2588 ac_need_defaults=false;; 2589 --header | --heade | --head | --hea ) 2590 $ac_shift 2591 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 2592 ac_need_defaults=false;; 2593 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2594 | -silent | --silent | --silen | --sile | --sil | --si | --s) 2595 ac_cs_silent=: ;; 2596 2597 # This is an error. 2598 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 2599Try \`$0 --help' for more information." >&5 2600echo "$as_me: error: unrecognized option: $1 2601Try \`$0 --help' for more information." >&2;} 2602 { (exit 1); exit 1; }; } ;; 2603 2604 *) ac_config_targets="$ac_config_targets $1" ;; 2605 2606 esac 2607 shift 2608done 2609 2610ac_configure_extra_args= 2611 2612if $ac_cs_silent; then 2613 exec 6>/dev/null 2614 ac_configure_extra_args="$ac_configure_extra_args --silent" 2615fi 2616 2617_ACEOF 2618cat >>$CONFIG_STATUS <<_ACEOF 2619if \$ac_cs_recheck; then 2620 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 2621 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 2622fi 2623 2624_ACEOF 2625 2626 2627 2628 2629 2630cat >>$CONFIG_STATUS <<\_ACEOF 2631for ac_config_target in $ac_config_targets 2632do 2633 case "$ac_config_target" in 2634 # Handling of arguments. 2635 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 2636 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 2637 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 2638echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 2639 { (exit 1); exit 1; }; };; 2640 esac 2641done 2642 2643# If the user did not use the arguments to specify the items to instantiate, 2644# then the envvar interface is used. Set only those that are not. 2645# We use the long form for the default assignment because of an extremely 2646# bizarre bug on SunOS 4.1.3. 2647if $ac_need_defaults; then 2648 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 2649 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 2650fi 2651 2652# Have a temporary directory for convenience. Make it in the build tree 2653# simply because there is no reason to put it here, and in addition, 2654# creating and moving files from /tmp can sometimes cause problems. 2655# Create a temporary directory, and hook for its removal unless debugging. 2656$debug || 2657{ 2658 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 2659 trap '{ (exit 1); exit 1; }' 1 2 13 15 2660} 2661 2662# Create a (secure) tmp directory for tmp files. 2663 2664{ 2665 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 2666 test -n "$tmp" && test -d "$tmp" 2667} || 2668{ 2669 tmp=./confstat$$-$RANDOM 2670 (umask 077 && mkdir $tmp) 2671} || 2672{ 2673 echo "$me: cannot create a temporary directory in ." >&2 2674 { (exit 1); exit 1; } 2675} 2676 2677_ACEOF 2678 2679cat >>$CONFIG_STATUS <<_ACEOF 2680 2681# 2682# CONFIG_FILES section. 2683# 2684 2685# No need to generate the scripts if there are no CONFIG_FILES. 2686# This happens for instance when ./config.status config.h 2687if test -n "\$CONFIG_FILES"; then 2688 # Protect against being on the right side of a sed subst in config.status. 2689 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 2690 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 2691s,@SHELL@,$SHELL,;t t 2692s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 2693s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 2694s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 2695s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 2696s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 2697s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 2698s,@exec_prefix@,$exec_prefix,;t t 2699s,@prefix@,$prefix,;t t 2700s,@program_transform_name@,$program_transform_name,;t t 2701s,@bindir@,$bindir,;t t 2702s,@sbindir@,$sbindir,;t t 2703s,@libexecdir@,$libexecdir,;t t 2704s,@datadir@,$datadir,;t t 2705s,@sysconfdir@,$sysconfdir,;t t 2706s,@sharedstatedir@,$sharedstatedir,;t t 2707s,@localstatedir@,$localstatedir,;t t 2708s,@libdir@,$libdir,;t t 2709s,@includedir@,$includedir,;t t 2710s,@oldincludedir@,$oldincludedir,;t t 2711s,@infodir@,$infodir,;t t 2712s,@mandir@,$mandir,;t t 2713s,@build_alias@,$build_alias,;t t 2714s,@host_alias@,$host_alias,;t t 2715s,@target_alias@,$target_alias,;t t 2716s,@DEFS@,$DEFS,;t t 2717s,@ECHO_C@,$ECHO_C,;t t 2718s,@ECHO_N@,$ECHO_N,;t t 2719s,@ECHO_T@,$ECHO_T,;t t 2720s,@LIBS@,$LIBS,;t t 2721s,@CXX@,$CXX,;t t 2722s,@CXXFLAGS@,$CXXFLAGS,;t t 2723s,@LDFLAGS@,$LDFLAGS,;t t 2724s,@CPPFLAGS@,$CPPFLAGS,;t t 2725s,@ac_ct_CXX@,$ac_ct_CXX,;t t 2726s,@EXEEXT@,$EXEEXT,;t t 2727s,@OBJEXT@,$OBJEXT,;t t 2728s,@APXS@,$APXS,;t t 2729s,@HAVE_SEMUN@,$HAVE_SEMUN,;t t 2730s,@LIBOBJS@,$LIBOBJS,;t t 2731s,@LTLIBOBJS@,$LTLIBOBJS,;t t 2732CEOF 2733 2734_ACEOF 2735 2736 cat >>$CONFIG_STATUS <<\_ACEOF 2737 # Split the substitutions into bite-sized pieces for seds with 2738 # small command number limits, like on Digital OSF/1 and HP-UX. 2739 ac_max_sed_lines=48 2740 ac_sed_frag=1 # Number of current file. 2741 ac_beg=1 # First line for current file. 2742 ac_end=$ac_max_sed_lines # Line after last line for current file. 2743 ac_more_lines=: 2744 ac_sed_cmds= 2745 while $ac_more_lines; do 2746 if test $ac_beg -gt 1; then 2747 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 2748 else 2749 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 2750 fi 2751 if test ! -s $tmp/subs.frag; then 2752 ac_more_lines=false 2753 else 2754 # The purpose of the label and of the branching condition is to 2755 # speed up the sed processing (if there are no `@' at all, there 2756 # is no need to browse any of the substitutions). 2757 # These are the two extra sed commands mentioned above. 2758 (echo ':t 2759 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 2760 if test -z "$ac_sed_cmds"; then 2761 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 2762 else 2763 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 2764 fi 2765 ac_sed_frag=`expr $ac_sed_frag + 1` 2766 ac_beg=$ac_end 2767 ac_end=`expr $ac_end + $ac_max_sed_lines` 2768 fi 2769 done 2770 if test -z "$ac_sed_cmds"; then 2771 ac_sed_cmds=cat 2772 fi 2773fi # test -n "$CONFIG_FILES" 2774 2775_ACEOF 2776cat >>$CONFIG_STATUS <<\_ACEOF 2777for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 2778 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2779 case $ac_file in 2780 - | *:- | *:-:* ) # input from stdin 2781 cat >$tmp/stdin 2782 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 2783 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 2784 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 2785 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 2786 * ) ac_file_in=$ac_file.in ;; 2787 esac 2788 2789 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 2790 ac_dir=`(dirname "$ac_file") 2>/dev/null || 2791$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 2792 X"$ac_file" : 'X\(//\)[^/]' \| \ 2793 X"$ac_file" : 'X\(//\)$' \| \ 2794 X"$ac_file" : 'X\(/\)' \| \ 2795 . : '\(.\)' 2>/dev/null || 2796echo X"$ac_file" | 2797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 2798 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 2799 /^X\(\/\/\)$/{ s//\1/; q; } 2800 /^X\(\/\).*/{ s//\1/; q; } 2801 s/.*/./; q'` 2802 { if $as_mkdir_p; then 2803 mkdir -p "$ac_dir" 2804 else 2805 as_dir="$ac_dir" 2806 as_dirs= 2807 while test ! -d "$as_dir"; do 2808 as_dirs="$as_dir $as_dirs" 2809 as_dir=`(dirname "$as_dir") 2>/dev/null || 2810$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 2811 X"$as_dir" : 'X\(//\)[^/]' \| \ 2812 X"$as_dir" : 'X\(//\)$' \| \ 2813 X"$as_dir" : 'X\(/\)' \| \ 2814 . : '\(.\)' 2>/dev/null || 2815echo X"$as_dir" | 2816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 2817 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 2818 /^X\(\/\/\)$/{ s//\1/; q; } 2819 /^X\(\/\).*/{ s//\1/; q; } 2820 s/.*/./; q'` 2821 done 2822 test ! -n "$as_dirs" || mkdir $as_dirs 2823 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 2824echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 2825 { (exit 1); exit 1; }; }; } 2826 2827 ac_builddir=. 2828 2829if test "$ac_dir" != .; then 2830 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 2831 # A "../" for each directory in $ac_dir_suffix. 2832 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 2833else 2834 ac_dir_suffix= ac_top_builddir= 2835fi 2836 2837case $srcdir in 2838 .) # No --srcdir option. We are building in place. 2839 ac_srcdir=. 2840 if test -z "$ac_top_builddir"; then 2841 ac_top_srcdir=. 2842 else 2843 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 2844 fi ;; 2845 [\\/]* | ?:[\\/]* ) # Absolute path. 2846 ac_srcdir=$srcdir$ac_dir_suffix; 2847 ac_top_srcdir=$srcdir ;; 2848 *) # Relative path. 2849 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 2850 ac_top_srcdir=$ac_top_builddir$srcdir ;; 2851esac 2852 2853# Do not use `cd foo && pwd` to compute absolute paths, because 2854# the directories may not exist. 2855case `pwd` in 2856.) ac_abs_builddir="$ac_dir";; 2857*) 2858 case "$ac_dir" in 2859 .) ac_abs_builddir=`pwd`;; 2860 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 2861 *) ac_abs_builddir=`pwd`/"$ac_dir";; 2862 esac;; 2863esac 2864case $ac_abs_builddir in 2865.) ac_abs_top_builddir=${ac_top_builddir}.;; 2866*) 2867 case ${ac_top_builddir}. in 2868 .) ac_abs_top_builddir=$ac_abs_builddir;; 2869 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 2870 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 2871 esac;; 2872esac 2873case $ac_abs_builddir in 2874.) ac_abs_srcdir=$ac_srcdir;; 2875*) 2876 case $ac_srcdir in 2877 .) ac_abs_srcdir=$ac_abs_builddir;; 2878 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 2879 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 2880 esac;; 2881esac 2882case $ac_abs_builddir in 2883.) ac_abs_top_srcdir=$ac_top_srcdir;; 2884*) 2885 case $ac_top_srcdir in 2886 .) ac_abs_top_srcdir=$ac_abs_builddir;; 2887 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 2888 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 2889 esac;; 2890esac 2891 2892 2893 2894 # Let's still pretend it is `configure' which instantiates (i.e., don't 2895 # use $as_me), people would be surprised to read: 2896 # /* config.h. Generated by config.status. */ 2897 if test x"$ac_file" = x-; then 2898 configure_input= 2899 else 2900 configure_input="$ac_file. " 2901 fi 2902 configure_input=$configure_input"Generated from `echo $ac_file_in | 2903 sed 's,.*/,,'` by configure." 2904 2905 # First look for the input files in the build tree, otherwise in the 2906 # src tree. 2907 ac_file_inputs=`IFS=: 2908 for f in $ac_file_in; do 2909 case $f in 2910 -) echo $tmp/stdin ;; 2911 [\\/$]*) 2912 # Absolute (can't be DOS-style, as IFS=:) 2913 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 2914echo "$as_me: error: cannot find input file: $f" >&2;} 2915 { (exit 1); exit 1; }; } 2916 echo "$f";; 2917 *) # Relative 2918 if test -f "$f"; then 2919 # Build tree 2920 echo "$f" 2921 elif test -f "$srcdir/$f"; then 2922 # Source tree 2923 echo "$srcdir/$f" 2924 else 2925 # /dev/null tree 2926 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 2927echo "$as_me: error: cannot find input file: $f" >&2;} 2928 { (exit 1); exit 1; }; } 2929 fi;; 2930 esac 2931 done` || { (exit 1); exit 1; } 2932 2933 if test x"$ac_file" != x-; then 2934 { echo "$as_me:$LINENO: creating $ac_file" >&5 2935echo "$as_me: creating $ac_file" >&6;} 2936 rm -f "$ac_file" 2937 fi 2938_ACEOF 2939cat >>$CONFIG_STATUS <<_ACEOF 2940 sed "$ac_vpsub 2941$extrasub 2942_ACEOF 2943cat >>$CONFIG_STATUS <<\_ACEOF 2944:t 2945/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 2946s,@configure_input@,$configure_input,;t t 2947s,@srcdir@,$ac_srcdir,;t t 2948s,@abs_srcdir@,$ac_abs_srcdir,;t t 2949s,@top_srcdir@,$ac_top_srcdir,;t t 2950s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 2951s,@builddir@,$ac_builddir,;t t 2952s,@abs_builddir@,$ac_abs_builddir,;t t 2953s,@top_builddir@,$ac_top_builddir,;t t 2954s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 2955" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 2956 rm -f $tmp/stdin 2957 if test x"$ac_file" != x-; then 2958 mv $tmp/out $ac_file 2959 else 2960 cat $tmp/out 2961 rm -f $tmp/out 2962 fi 2963 2964done 2965_ACEOF 2966cat >>$CONFIG_STATUS <<\_ACEOF 2967 2968# 2969# CONFIG_HEADER section. 2970# 2971 2972# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 2973# NAME is the cpp macro being defined and VALUE is the value it is being given. 2974# 2975# ac_d sets the value in "#define NAME VALUE" lines. 2976ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 2977ac_dB='[ ].*$,\1#\2' 2978ac_dC=' ' 2979ac_dD=',;t' 2980# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2981ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2982ac_uB='$,\1#\2define\3' 2983ac_uC=' ' 2984ac_uD=',;t' 2985 2986for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 2987 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2988 case $ac_file in 2989 - | *:- | *:-:* ) # input from stdin 2990 cat >$tmp/stdin 2991 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 2992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 2993 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 2994 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 2995 * ) ac_file_in=$ac_file.in ;; 2996 esac 2997 2998 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 2999echo "$as_me: creating $ac_file" >&6;} 3000 3001 # First look for the input files in the build tree, otherwise in the 3002 # src tree. 3003 ac_file_inputs=`IFS=: 3004 for f in $ac_file_in; do 3005 case $f in 3006 -) echo $tmp/stdin ;; 3007 [\\/$]*) 3008 # Absolute (can't be DOS-style, as IFS=:) 3009 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3010echo "$as_me: error: cannot find input file: $f" >&2;} 3011 { (exit 1); exit 1; }; } 3012 # Do quote $f, to prevent DOS paths from being IFS'd. 3013 echo "$f";; 3014 *) # Relative 3015 if test -f "$f"; then 3016 # Build tree 3017 echo "$f" 3018 elif test -f "$srcdir/$f"; then 3019 # Source tree 3020 echo "$srcdir/$f" 3021 else 3022 # /dev/null tree 3023 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3024echo "$as_me: error: cannot find input file: $f" >&2;} 3025 { (exit 1); exit 1; }; } 3026 fi;; 3027 esac 3028 done` || { (exit 1); exit 1; } 3029 # Remove the trailing spaces. 3030 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 3031 3032_ACEOF 3033 3034# Transform confdefs.h into two sed scripts, `conftest.defines' and 3035# `conftest.undefs', that substitutes the proper values into 3036# config.h.in to produce config.h. The first handles `#define' 3037# templates, and the second `#undef' templates. 3038# And first: Protect against being on the right side of a sed subst in 3039# config.status. Protect against being in an unquoted here document 3040# in config.status. 3041rm -f conftest.defines conftest.undefs 3042# Using a here document instead of a string reduces the quoting nightmare. 3043# Putting comments in sed scripts is not portable. 3044# 3045# `end' is used to avoid that the second main sed command (meant for 3046# 0-ary CPP macros) applies to n-ary macro definitions. 3047# See the Autoconf documentation for `clear'. 3048cat >confdef2sed.sed <<\_ACEOF 3049s/[\\&,]/\\&/g 3050s,[\\$`],\\&,g 3051t clear 3052: clear 3053s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 3054t end 3055s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 3056: end 3057_ACEOF 3058# If some macros were called several times there might be several times 3059# the same #defines, which is useless. Nevertheless, we may not want to 3060# sort them, since we want the *last* AC-DEFINE to be honored. 3061uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 3062sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 3063rm -f confdef2sed.sed 3064 3065# This sed command replaces #undef with comments. This is necessary, for 3066# example, in the case of _POSIX_SOURCE, which is predefined and required 3067# on some systems where configure will not decide to define it. 3068cat >>conftest.undefs <<\_ACEOF 3069s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 3070_ACEOF 3071 3072# Break up conftest.defines because some shells have a limit on the size 3073# of here documents, and old seds have small limits too (100 cmds). 3074echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 3075echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 3076echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 3077echo ' :' >>$CONFIG_STATUS 3078rm -f conftest.tail 3079while grep . conftest.defines >/dev/null 3080do 3081 # Write a limited-size here document to $tmp/defines.sed. 3082 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 3083 # Speed up: don't consider the non `#define' lines. 3084 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 3085 # Work around the forget-to-reset-the-flag bug. 3086 echo 't clr' >>$CONFIG_STATUS 3087 echo ': clr' >>$CONFIG_STATUS 3088 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 3089 echo 'CEOF 3090 sed -f $tmp/defines.sed $tmp/in >$tmp/out 3091 rm -f $tmp/in 3092 mv $tmp/out $tmp/in 3093' >>$CONFIG_STATUS 3094 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 3095 rm -f conftest.defines 3096 mv conftest.tail conftest.defines 3097done 3098rm -f conftest.defines 3099echo ' fi # grep' >>$CONFIG_STATUS 3100echo >>$CONFIG_STATUS 3101 3102# Break up conftest.undefs because some shells have a limit on the size 3103# of here documents, and old seds have small limits too (100 cmds). 3104echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 3105rm -f conftest.tail 3106while grep . conftest.undefs >/dev/null 3107do 3108 # Write a limited-size here document to $tmp/undefs.sed. 3109 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 3110 # Speed up: don't consider the non `#undef' 3111 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 3112 # Work around the forget-to-reset-the-flag bug. 3113 echo 't clr' >>$CONFIG_STATUS 3114 echo ': clr' >>$CONFIG_STATUS 3115 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 3116 echo 'CEOF 3117 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 3118 rm -f $tmp/in 3119 mv $tmp/out $tmp/in 3120' >>$CONFIG_STATUS 3121 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 3122 rm -f conftest.undefs 3123 mv conftest.tail conftest.undefs 3124done 3125rm -f conftest.undefs 3126 3127cat >>$CONFIG_STATUS <<\_ACEOF 3128 # Let's still pretend it is `configure' which instantiates (i.e., don't 3129 # use $as_me), people would be surprised to read: 3130 # /* config.h. Generated by config.status. */ 3131 if test x"$ac_file" = x-; then 3132 echo "/* Generated by configure. */" >$tmp/config.h 3133 else 3134 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 3135 fi 3136 cat $tmp/in >>$tmp/config.h 3137 rm -f $tmp/in 3138 if test x"$ac_file" != x-; then 3139 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 3140 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 3141echo "$as_me: $ac_file is unchanged" >&6;} 3142 else 3143 ac_dir=`(dirname "$ac_file") 2>/dev/null || 3144$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3145 X"$ac_file" : 'X\(//\)[^/]' \| \ 3146 X"$ac_file" : 'X\(//\)$' \| \ 3147 X"$ac_file" : 'X\(/\)' \| \ 3148 . : '\(.\)' 2>/dev/null || 3149echo X"$ac_file" | 3150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3151 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3152 /^X\(\/\/\)$/{ s//\1/; q; } 3153 /^X\(\/\).*/{ s//\1/; q; } 3154 s/.*/./; q'` 3155 { if $as_mkdir_p; then 3156 mkdir -p "$ac_dir" 3157 else 3158 as_dir="$ac_dir" 3159 as_dirs= 3160 while test ! -d "$as_dir"; do 3161 as_dirs="$as_dir $as_dirs" 3162 as_dir=`(dirname "$as_dir") 2>/dev/null || 3163$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3164 X"$as_dir" : 'X\(//\)[^/]' \| \ 3165 X"$as_dir" : 'X\(//\)$' \| \ 3166 X"$as_dir" : 'X\(/\)' \| \ 3167 . : '\(.\)' 2>/dev/null || 3168echo X"$as_dir" | 3169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3170 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3171 /^X\(\/\/\)$/{ s//\1/; q; } 3172 /^X\(\/\).*/{ s//\1/; q; } 3173 s/.*/./; q'` 3174 done 3175 test ! -n "$as_dirs" || mkdir $as_dirs 3176 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 3177echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 3178 { (exit 1); exit 1; }; }; } 3179 3180 rm -f $ac_file 3181 mv $tmp/config.h $ac_file 3182 fi 3183 else 3184 cat $tmp/config.h 3185 rm -f $tmp/config.h 3186 fi 3187done 3188_ACEOF 3189 3190cat >>$CONFIG_STATUS <<\_ACEOF 3191 3192{ (exit 0); exit 0; } 3193_ACEOF 3194chmod +x $CONFIG_STATUS 3195ac_clean_files=$ac_clean_files_save 3196 3197 3198# configure is writing to config.log, and then calls config.status. 3199# config.status does its own redirection, appending to config.log. 3200# Unfortunately, on DOS this fails, as config.log is still kept open 3201# by configure, so config.status won't be able to write to it; its 3202# output is simply discarded. So we exec the FD to /dev/null, 3203# effectively closing config.log, so it can be properly (re)opened and 3204# appended to by config.status. When coming back to configure, we 3205# need to make the FD available again. 3206if test "$no_create" != yes; then 3207 ac_cs_success=: 3208 ac_config_status_args= 3209 test "$silent" = yes && 3210 ac_config_status_args="$ac_config_status_args --quiet" 3211 exec 5>/dev/null 3212 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 3213 exec 5>>config.log 3214 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 3215 # would make configure fail if this is the last instruction. 3216 $ac_cs_success || { (exit 1); exit 1; } 3217fi 3218 3219 3220