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="vnccrack.cpp" 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 CC CFLAGS ac_ct_CC 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 732ac_env_CC_set=${CC+set} 733ac_env_CC_value=$CC 734ac_cv_env_CC_set=${CC+set} 735ac_cv_env_CC_value=$CC 736ac_env_CFLAGS_set=${CFLAGS+set} 737ac_env_CFLAGS_value=$CFLAGS 738ac_cv_env_CFLAGS_set=${CFLAGS+set} 739ac_cv_env_CFLAGS_value=$CFLAGS 740 741# 742# Report the --help message. 743# 744if test "$ac_init_help" = "long"; then 745 # Omit some internal or obsolete options to make the list less imposing. 746 # This message is too long to be a string in the A/UX 3.1 sh. 747 cat <<_ACEOF 748\`configure' configures this package to adapt to many kinds of systems. 749 750Usage: $0 [OPTION]... [VAR=VALUE]... 751 752To assign environment variables (e.g., CC, CFLAGS...), specify them as 753VAR=VALUE. See below for descriptions of some of the useful variables. 754 755Defaults for the options are specified in brackets. 756 757Configuration: 758 -h, --help display this help and exit 759 --help=short display options specific to this package 760 --help=recursive display the short help of all the included packages 761 -V, --version display version information and exit 762 -q, --quiet, --silent do not print \`checking...' messages 763 --cache-file=FILE cache test results in FILE [disabled] 764 -C, --config-cache alias for \`--cache-file=config.cache' 765 -n, --no-create do not create output files 766 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 767 768_ACEOF 769 770 cat <<_ACEOF 771Installation directories: 772 --prefix=PREFIX install architecture-independent files in PREFIX 773 [$ac_default_prefix] 774 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 775 [PREFIX] 776 777By default, \`make install' will install all the files in 778\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 779an installation prefix other than \`$ac_default_prefix' using \`--prefix', 780for instance \`--prefix=\$HOME'. 781 782For better control, use the options below. 783 784Fine tuning of the installation directories: 785 --bindir=DIR user executables [EPREFIX/bin] 786 --sbindir=DIR system admin executables [EPREFIX/sbin] 787 --libexecdir=DIR program executables [EPREFIX/libexec] 788 --datadir=DIR read-only architecture-independent data [PREFIX/share] 789 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 790 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 791 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 792 --libdir=DIR object code libraries [EPREFIX/lib] 793 --includedir=DIR C header files [PREFIX/include] 794 --oldincludedir=DIR C header files for non-gcc [/usr/include] 795 --infodir=DIR info documentation [PREFIX/info] 796 --mandir=DIR man documentation [PREFIX/man] 797_ACEOF 798 799 cat <<\_ACEOF 800_ACEOF 801fi 802 803if test -n "$ac_init_help"; then 804 805 cat <<\_ACEOF 806 807Some influential environment variables: 808 CXX C++ compiler command 809 CXXFLAGS C++ compiler flags 810 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 811 nonstandard directory <lib dir> 812 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 813 headers in a nonstandard directory <include dir> 814 CC C compiler command 815 CFLAGS C compiler flags 816 817Use these variables to override the choices made by `configure' or to help 818it to find libraries and programs with nonstandard names/locations. 819 820_ACEOF 821fi 822 823if test "$ac_init_help" = "recursive"; then 824 # If there are subdirs, report their specific --help. 825 ac_popdir=`pwd` 826 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 827 test -d $ac_dir || continue 828 ac_builddir=. 829 830if test "$ac_dir" != .; then 831 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 832 # A "../" for each directory in $ac_dir_suffix. 833 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 834else 835 ac_dir_suffix= ac_top_builddir= 836fi 837 838case $srcdir in 839 .) # No --srcdir option. We are building in place. 840 ac_srcdir=. 841 if test -z "$ac_top_builddir"; then 842 ac_top_srcdir=. 843 else 844 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 845 fi ;; 846 [\\/]* | ?:[\\/]* ) # Absolute path. 847 ac_srcdir=$srcdir$ac_dir_suffix; 848 ac_top_srcdir=$srcdir ;; 849 *) # Relative path. 850 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 851 ac_top_srcdir=$ac_top_builddir$srcdir ;; 852esac 853 854# Do not use `cd foo && pwd` to compute absolute paths, because 855# the directories may not exist. 856case `pwd` in 857.) ac_abs_builddir="$ac_dir";; 858*) 859 case "$ac_dir" in 860 .) ac_abs_builddir=`pwd`;; 861 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 862 *) ac_abs_builddir=`pwd`/"$ac_dir";; 863 esac;; 864esac 865case $ac_abs_builddir in 866.) ac_abs_top_builddir=${ac_top_builddir}.;; 867*) 868 case ${ac_top_builddir}. in 869 .) ac_abs_top_builddir=$ac_abs_builddir;; 870 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 871 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 872 esac;; 873esac 874case $ac_abs_builddir in 875.) ac_abs_srcdir=$ac_srcdir;; 876*) 877 case $ac_srcdir in 878 .) ac_abs_srcdir=$ac_abs_builddir;; 879 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 880 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 881 esac;; 882esac 883case $ac_abs_builddir in 884.) ac_abs_top_srcdir=$ac_top_srcdir;; 885*) 886 case $ac_top_srcdir in 887 .) ac_abs_top_srcdir=$ac_abs_builddir;; 888 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 889 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 890 esac;; 891esac 892 893 cd $ac_dir 894 # Check for guested configure; otherwise get Cygnus style configure. 895 if test -f $ac_srcdir/configure.gnu; then 896 echo 897 $SHELL $ac_srcdir/configure.gnu --help=recursive 898 elif test -f $ac_srcdir/configure; then 899 echo 900 $SHELL $ac_srcdir/configure --help=recursive 901 elif test -f $ac_srcdir/configure.ac || 902 test -f $ac_srcdir/configure.in; then 903 echo 904 $ac_configure --help 905 else 906 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 907 fi 908 cd $ac_popdir 909 done 910fi 911 912test -n "$ac_init_help" && exit 0 913if $ac_init_version; then 914 cat <<\_ACEOF 915 916Copyright (C) 2003 Free Software Foundation, Inc. 917This configure script is free software; the Free Software Foundation 918gives unlimited permission to copy, distribute and modify it. 919_ACEOF 920 exit 0 921fi 922exec 5>config.log 923cat >&5 <<_ACEOF 924This file contains any messages produced by compilers while 925running configure, to aid debugging if configure makes a mistake. 926 927It was created by $as_me, which was 928generated by GNU Autoconf 2.59. Invocation command line was 929 930 $ $0 $@ 931 932_ACEOF 933{ 934cat <<_ASUNAME 935## --------- ## 936## Platform. ## 937## --------- ## 938 939hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 940uname -m = `(uname -m) 2>/dev/null || echo unknown` 941uname -r = `(uname -r) 2>/dev/null || echo unknown` 942uname -s = `(uname -s) 2>/dev/null || echo unknown` 943uname -v = `(uname -v) 2>/dev/null || echo unknown` 944 945/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 946/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 947 948/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 949/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 950/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 951hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 952/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 953/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 954/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 955 956_ASUNAME 957 958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 959for as_dir in $PATH 960do 961 IFS=$as_save_IFS 962 test -z "$as_dir" && as_dir=. 963 echo "PATH: $as_dir" 964done 965 966} >&5 967 968cat >&5 <<_ACEOF 969 970 971## ----------- ## 972## Core tests. ## 973## ----------- ## 974 975_ACEOF 976 977 978# Keep a trace of the command line. 979# Strip out --no-create and --no-recursion so they do not pile up. 980# Strip out --silent because we don't want to record it for future runs. 981# Also quote any args containing shell meta-characters. 982# Make two passes to allow for proper duplicate-argument suppression. 983ac_configure_args= 984ac_configure_args0= 985ac_configure_args1= 986ac_sep= 987ac_must_keep_next=false 988for ac_pass in 1 2 989do 990 for ac_arg 991 do 992 case $ac_arg in 993 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 995 | -silent | --silent | --silen | --sile | --sil) 996 continue ;; 997 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 998 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 999 esac 1000 case $ac_pass in 1001 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1002 2) 1003 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1004 if test $ac_must_keep_next = true; then 1005 ac_must_keep_next=false # Got value, back to normal. 1006 else 1007 case $ac_arg in 1008 *=* | --config-cache | -C | -disable-* | --disable-* \ 1009 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1010 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1011 | -with-* | --with-* | -without-* | --without-* | --x) 1012 case "$ac_configure_args0 " in 1013 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1014 esac 1015 ;; 1016 -* ) ac_must_keep_next=true ;; 1017 esac 1018 fi 1019 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1020 # Get rid of the leading space. 1021 ac_sep=" " 1022 ;; 1023 esac 1024 done 1025done 1026$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1027$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1028 1029# When interrupted or exit'd, cleanup temporary files, and complete 1030# config.log. We remove comments because anyway the quotes in there 1031# would cause problems or look ugly. 1032# WARNING: Be sure not to use single quotes in there, as some shells, 1033# such as our DU 5.0 friend, will then `close' the trap. 1034trap 'exit_status=$? 1035 # Save into config.log some information that might help in debugging. 1036 { 1037 echo 1038 1039 cat <<\_ASBOX 1040## ---------------- ## 1041## Cache variables. ## 1042## ---------------- ## 1043_ASBOX 1044 echo 1045 # The following way of writing the cache mishandles newlines in values, 1046{ 1047 (set) 2>&1 | 1048 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1049 *ac_space=\ *) 1050 sed -n \ 1051 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1053 ;; 1054 *) 1055 sed -n \ 1056 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1057 ;; 1058 esac; 1059} 1060 echo 1061 1062 cat <<\_ASBOX 1063## ----------------- ## 1064## Output variables. ## 1065## ----------------- ## 1066_ASBOX 1067 echo 1068 for ac_var in $ac_subst_vars 1069 do 1070 eval ac_val=$`echo $ac_var` 1071 echo "$ac_var='"'"'$ac_val'"'"'" 1072 done | sort 1073 echo 1074 1075 if test -n "$ac_subst_files"; then 1076 cat <<\_ASBOX 1077## ------------- ## 1078## Output files. ## 1079## ------------- ## 1080_ASBOX 1081 echo 1082 for ac_var in $ac_subst_files 1083 do 1084 eval ac_val=$`echo $ac_var` 1085 echo "$ac_var='"'"'$ac_val'"'"'" 1086 done | sort 1087 echo 1088 fi 1089 1090 if test -s confdefs.h; then 1091 cat <<\_ASBOX 1092## ----------- ## 1093## confdefs.h. ## 1094## ----------- ## 1095_ASBOX 1096 echo 1097 sed "/^$/d" confdefs.h | sort 1098 echo 1099 fi 1100 test "$ac_signal" != 0 && 1101 echo "$as_me: caught signal $ac_signal" 1102 echo "$as_me: exit $exit_status" 1103 } >&5 1104 rm -f core *.core && 1105 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1106 exit $exit_status 1107 ' 0 1108for ac_signal in 1 2 13 15; do 1109 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1110done 1111ac_signal=0 1112 1113# confdefs.h avoids OS command line length limits that DEFS can exceed. 1114rm -rf conftest* confdefs.h 1115# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1116echo >confdefs.h 1117 1118# Predefined preprocessor variables. 1119 1120cat >>confdefs.h <<_ACEOF 1121#define PACKAGE_NAME "$PACKAGE_NAME" 1122_ACEOF 1123 1124 1125cat >>confdefs.h <<_ACEOF 1126#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1127_ACEOF 1128 1129 1130cat >>confdefs.h <<_ACEOF 1131#define PACKAGE_VERSION "$PACKAGE_VERSION" 1132_ACEOF 1133 1134 1135cat >>confdefs.h <<_ACEOF 1136#define PACKAGE_STRING "$PACKAGE_STRING" 1137_ACEOF 1138 1139 1140cat >>confdefs.h <<_ACEOF 1141#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1142_ACEOF 1143 1144 1145# Let the site file select an alternate cache file if it wants to. 1146# Prefer explicitly selected file to automatically selected ones. 1147if test -z "$CONFIG_SITE"; then 1148 if test "x$prefix" != xNONE; then 1149 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1150 else 1151 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1152 fi 1153fi 1154for ac_site_file in $CONFIG_SITE; do 1155 if test -r "$ac_site_file"; then 1156 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1157echo "$as_me: loading site script $ac_site_file" >&6;} 1158 sed 's/^/| /' "$ac_site_file" >&5 1159 . "$ac_site_file" 1160 fi 1161done 1162 1163if test -r "$cache_file"; then 1164 # Some versions of bash will fail to source /dev/null (special 1165 # files actually), so we avoid doing that. 1166 if test -f "$cache_file"; then 1167 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1168echo "$as_me: loading cache $cache_file" >&6;} 1169 case $cache_file in 1170 [\\/]* | ?:[\\/]* ) . $cache_file;; 1171 *) . ./$cache_file;; 1172 esac 1173 fi 1174else 1175 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1176echo "$as_me: creating cache $cache_file" >&6;} 1177 >$cache_file 1178fi 1179 1180# Check that the precious variables saved in the cache have kept the same 1181# value. 1182ac_cache_corrupted=false 1183for ac_var in `(set) 2>&1 | 1184 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1185 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1186 eval ac_new_set=\$ac_env_${ac_var}_set 1187 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1188 eval ac_new_val="\$ac_env_${ac_var}_value" 1189 case $ac_old_set,$ac_new_set in 1190 set,) 1191 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1192echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1193 ac_cache_corrupted=: ;; 1194 ,set) 1195 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1196echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1197 ac_cache_corrupted=: ;; 1198 ,);; 1199 *) 1200 if test "x$ac_old_val" != "x$ac_new_val"; then 1201 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1202echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1203 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1204echo "$as_me: former value: $ac_old_val" >&2;} 1205 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1206echo "$as_me: current value: $ac_new_val" >&2;} 1207 ac_cache_corrupted=: 1208 fi;; 1209 esac 1210 # Pass precious variables to config.status. 1211 if test "$ac_new_set" = set; then 1212 case $ac_new_val in 1213 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1214 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1215 *) ac_arg=$ac_var=$ac_new_val ;; 1216 esac 1217 case " $ac_configure_args " in 1218 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1219 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1220 esac 1221 fi 1222done 1223if $ac_cache_corrupted; then 1224 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1225echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1226 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1227echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1228 { (exit 1); exit 1; }; } 1229fi 1230 1231ac_ext=c 1232ac_cpp='$CPP $CPPFLAGS' 1233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1235ac_compiler_gnu=$ac_cv_c_compiler_gnu 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256ac_ext=cc 1257ac_cpp='$CXXCPP $CPPFLAGS' 1258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1261if test -n "$ac_tool_prefix"; then 1262 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1263 do 1264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1265set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1266echo "$as_me:$LINENO: checking for $ac_word" >&5 1267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1268if test "${ac_cv_prog_CXX+set}" = set; then 1269 echo $ECHO_N "(cached) $ECHO_C" >&6 1270else 1271 if test -n "$CXX"; then 1272 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1273else 1274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1275for as_dir in $PATH 1276do 1277 IFS=$as_save_IFS 1278 test -z "$as_dir" && as_dir=. 1279 for ac_exec_ext in '' $ac_executable_extensions; do 1280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1281 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1283 break 2 1284 fi 1285done 1286done 1287 1288fi 1289fi 1290CXX=$ac_cv_prog_CXX 1291if test -n "$CXX"; then 1292 echo "$as_me:$LINENO: result: $CXX" >&5 1293echo "${ECHO_T}$CXX" >&6 1294else 1295 echo "$as_me:$LINENO: result: no" >&5 1296echo "${ECHO_T}no" >&6 1297fi 1298 1299 test -n "$CXX" && break 1300 done 1301fi 1302if test -z "$CXX"; then 1303 ac_ct_CXX=$CXX 1304 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1305do 1306 # Extract the first word of "$ac_prog", so it can be a program name with args. 1307set dummy $ac_prog; ac_word=$2 1308echo "$as_me:$LINENO: checking for $ac_word" >&5 1309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1310if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 1311 echo $ECHO_N "(cached) $ECHO_C" >&6 1312else 1313 if test -n "$ac_ct_CXX"; then 1314 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1315else 1316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1317for as_dir in $PATH 1318do 1319 IFS=$as_save_IFS 1320 test -z "$as_dir" && as_dir=. 1321 for ac_exec_ext in '' $ac_executable_extensions; do 1322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1323 ac_cv_prog_ac_ct_CXX="$ac_prog" 1324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1325 break 2 1326 fi 1327done 1328done 1329 1330fi 1331fi 1332ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1333if test -n "$ac_ct_CXX"; then 1334 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 1335echo "${ECHO_T}$ac_ct_CXX" >&6 1336else 1337 echo "$as_me:$LINENO: result: no" >&5 1338echo "${ECHO_T}no" >&6 1339fi 1340 1341 test -n "$ac_ct_CXX" && break 1342done 1343test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 1344 1345 CXX=$ac_ct_CXX 1346fi 1347 1348 1349# Provide some information about the compiler. 1350echo "$as_me:$LINENO:" \ 1351 "checking for C++ compiler version" >&5 1352ac_compiler=`set X $ac_compile; echo $2` 1353{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1354 (eval $ac_compiler --version </dev/null >&5) 2>&5 1355 ac_status=$? 1356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1357 (exit $ac_status); } 1358{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1359 (eval $ac_compiler -v </dev/null >&5) 2>&5 1360 ac_status=$? 1361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1362 (exit $ac_status); } 1363{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1364 (eval $ac_compiler -V </dev/null >&5) 2>&5 1365 ac_status=$? 1366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1367 (exit $ac_status); } 1368 1369cat >conftest.$ac_ext <<_ACEOF 1370/* confdefs.h. */ 1371_ACEOF 1372cat confdefs.h >>conftest.$ac_ext 1373cat >>conftest.$ac_ext <<_ACEOF 1374/* end confdefs.h. */ 1375 1376int 1377main () 1378{ 1379 1380 ; 1381 return 0; 1382} 1383_ACEOF 1384ac_clean_files_save=$ac_clean_files 1385ac_clean_files="$ac_clean_files a.out a.exe b.out" 1386# Try to create an executable without -o first, disregard a.out. 1387# It will help us diagnose broken compilers, and finding out an intuition 1388# of exeext. 1389echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 1390echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 1391ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1392if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1393 (eval $ac_link_default) 2>&5 1394 ac_status=$? 1395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1396 (exit $ac_status); }; then 1397 # Find the output, starting from the most likely. This scheme is 1398# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1399# resort. 1400 1401# Be careful to initialize this variable, since it used to be cached. 1402# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1403ac_cv_exeext= 1404# b.out is created by i960 compilers. 1405for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1406do 1407 test -f "$ac_file" || continue 1408 case $ac_file in 1409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1410 ;; 1411 conftest.$ac_ext ) 1412 # This is the source file. 1413 ;; 1414 [ab].out ) 1415 # We found the default executable, but exeext='' is most 1416 # certainly right. 1417 break;; 1418 *.* ) 1419 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1420 # FIXME: I believe we export ac_cv_exeext for Libtool, 1421 # but it would be cool to find out if it's true. Does anybody 1422 # maintain Libtool? --akim. 1423 export ac_cv_exeext 1424 break;; 1425 * ) 1426 break;; 1427 esac 1428done 1429else 1430 echo "$as_me: failed program was:" >&5 1431sed 's/^/| /' conftest.$ac_ext >&5 1432 1433{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 1434See \`config.log' for more details." >&5 1435echo "$as_me: error: C++ compiler cannot create executables 1436See \`config.log' for more details." >&2;} 1437 { (exit 77); exit 77; }; } 1438fi 1439 1440ac_exeext=$ac_cv_exeext 1441echo "$as_me:$LINENO: result: $ac_file" >&5 1442echo "${ECHO_T}$ac_file" >&6 1443 1444# Check the compiler produces executables we can run. If not, either 1445# the compiler is broken, or we cross compile. 1446echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 1447echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 1448# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1449# If not cross compiling, check that we can run a simple program. 1450if test "$cross_compiling" != yes; then 1451 if { ac_try='./$ac_file' 1452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1453 (eval $ac_try) 2>&5 1454 ac_status=$? 1455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1456 (exit $ac_status); }; }; then 1457 cross_compiling=no 1458 else 1459 if test "$cross_compiling" = maybe; then 1460 cross_compiling=yes 1461 else 1462 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 1463If you meant to cross compile, use \`--host'. 1464See \`config.log' for more details." >&5 1465echo "$as_me: error: cannot run C++ compiled programs. 1466If you meant to cross compile, use \`--host'. 1467See \`config.log' for more details." >&2;} 1468 { (exit 1); exit 1; }; } 1469 fi 1470 fi 1471fi 1472echo "$as_me:$LINENO: result: yes" >&5 1473echo "${ECHO_T}yes" >&6 1474 1475rm -f a.out a.exe conftest$ac_cv_exeext b.out 1476ac_clean_files=$ac_clean_files_save 1477# Check the compiler produces executables we can run. If not, either 1478# the compiler is broken, or we cross compile. 1479echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1480echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1481echo "$as_me:$LINENO: result: $cross_compiling" >&5 1482echo "${ECHO_T}$cross_compiling" >&6 1483 1484echo "$as_me:$LINENO: checking for suffix of executables" >&5 1485echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1487 (eval $ac_link) 2>&5 1488 ac_status=$? 1489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1490 (exit $ac_status); }; then 1491 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1492# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1493# work properly (i.e., refer to `conftest.exe'), while it won't with 1494# `rm'. 1495for ac_file in conftest.exe conftest conftest.*; do 1496 test -f "$ac_file" || continue 1497 case $ac_file in 1498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1499 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1500 export ac_cv_exeext 1501 break;; 1502 * ) break;; 1503 esac 1504done 1505else 1506 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1507See \`config.log' for more details." >&5 1508echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1509See \`config.log' for more details." >&2;} 1510 { (exit 1); exit 1; }; } 1511fi 1512 1513rm -f conftest$ac_cv_exeext 1514echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1515echo "${ECHO_T}$ac_cv_exeext" >&6 1516 1517rm -f conftest.$ac_ext 1518EXEEXT=$ac_cv_exeext 1519ac_exeext=$EXEEXT 1520echo "$as_me:$LINENO: checking for suffix of object files" >&5 1521echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1522if test "${ac_cv_objext+set}" = set; then 1523 echo $ECHO_N "(cached) $ECHO_C" >&6 1524else 1525 cat >conftest.$ac_ext <<_ACEOF 1526/* confdefs.h. */ 1527_ACEOF 1528cat confdefs.h >>conftest.$ac_ext 1529cat >>conftest.$ac_ext <<_ACEOF 1530/* end confdefs.h. */ 1531 1532int 1533main () 1534{ 1535 1536 ; 1537 return 0; 1538} 1539_ACEOF 1540rm -f conftest.o conftest.obj 1541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1542 (eval $ac_compile) 2>&5 1543 ac_status=$? 1544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1545 (exit $ac_status); }; then 1546 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1547 case $ac_file in 1548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1549 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1550 break;; 1551 esac 1552done 1553else 1554 echo "$as_me: failed program was:" >&5 1555sed 's/^/| /' conftest.$ac_ext >&5 1556 1557{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1558See \`config.log' for more details." >&5 1559echo "$as_me: error: cannot compute suffix of object files: cannot compile 1560See \`config.log' for more details." >&2;} 1561 { (exit 1); exit 1; }; } 1562fi 1563 1564rm -f conftest.$ac_cv_objext conftest.$ac_ext 1565fi 1566echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1567echo "${ECHO_T}$ac_cv_objext" >&6 1568OBJEXT=$ac_cv_objext 1569ac_objext=$OBJEXT 1570echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 1571echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 1572if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 1573 echo $ECHO_N "(cached) $ECHO_C" >&6 1574else 1575 cat >conftest.$ac_ext <<_ACEOF 1576/* confdefs.h. */ 1577_ACEOF 1578cat confdefs.h >>conftest.$ac_ext 1579cat >>conftest.$ac_ext <<_ACEOF 1580/* end confdefs.h. */ 1581 1582int 1583main () 1584{ 1585#ifndef __GNUC__ 1586 choke me 1587#endif 1588 1589 ; 1590 return 0; 1591} 1592_ACEOF 1593rm -f conftest.$ac_objext 1594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1595 (eval $ac_compile) 2>conftest.er1 1596 ac_status=$? 1597 grep -v '^ *+' conftest.er1 >conftest.err 1598 rm -f conftest.er1 1599 cat conftest.err >&5 1600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1601 (exit $ac_status); } && 1602 { ac_try='test -z "$ac_cxx_werror_flag" 1603 || test ! -s conftest.err' 1604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1605 (eval $ac_try) 2>&5 1606 ac_status=$? 1607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1608 (exit $ac_status); }; } && 1609 { ac_try='test -s conftest.$ac_objext' 1610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1611 (eval $ac_try) 2>&5 1612 ac_status=$? 1613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1614 (exit $ac_status); }; }; then 1615 ac_compiler_gnu=yes 1616else 1617 echo "$as_me: failed program was:" >&5 1618sed 's/^/| /' conftest.$ac_ext >&5 1619 1620ac_compiler_gnu=no 1621fi 1622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1623ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 1624 1625fi 1626echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 1627echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 1628GXX=`test $ac_compiler_gnu = yes && echo yes` 1629ac_test_CXXFLAGS=${CXXFLAGS+set} 1630ac_save_CXXFLAGS=$CXXFLAGS 1631CXXFLAGS="-g" 1632echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 1633echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 1634if test "${ac_cv_prog_cxx_g+set}" = set; then 1635 echo $ECHO_N "(cached) $ECHO_C" >&6 1636else 1637 cat >conftest.$ac_ext <<_ACEOF 1638/* confdefs.h. */ 1639_ACEOF 1640cat confdefs.h >>conftest.$ac_ext 1641cat >>conftest.$ac_ext <<_ACEOF 1642/* end confdefs.h. */ 1643 1644int 1645main () 1646{ 1647 1648 ; 1649 return 0; 1650} 1651_ACEOF 1652rm -f conftest.$ac_objext 1653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1654 (eval $ac_compile) 2>conftest.er1 1655 ac_status=$? 1656 grep -v '^ *+' conftest.er1 >conftest.err 1657 rm -f conftest.er1 1658 cat conftest.err >&5 1659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1660 (exit $ac_status); } && 1661 { ac_try='test -z "$ac_cxx_werror_flag" 1662 || test ! -s conftest.err' 1663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1664 (eval $ac_try) 2>&5 1665 ac_status=$? 1666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1667 (exit $ac_status); }; } && 1668 { ac_try='test -s conftest.$ac_objext' 1669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1670 (eval $ac_try) 2>&5 1671 ac_status=$? 1672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1673 (exit $ac_status); }; }; then 1674 ac_cv_prog_cxx_g=yes 1675else 1676 echo "$as_me: failed program was:" >&5 1677sed 's/^/| /' conftest.$ac_ext >&5 1678 1679ac_cv_prog_cxx_g=no 1680fi 1681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1682fi 1683echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 1684echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 1685if test "$ac_test_CXXFLAGS" = set; then 1686 CXXFLAGS=$ac_save_CXXFLAGS 1687elif test $ac_cv_prog_cxx_g = yes; then 1688 if test "$GXX" = yes; then 1689 CXXFLAGS="-g -O2" 1690 else 1691 CXXFLAGS="-g" 1692 fi 1693else 1694 if test "$GXX" = yes; then 1695 CXXFLAGS="-O2" 1696 else 1697 CXXFLAGS= 1698 fi 1699fi 1700for ac_declaration in \ 1701 '' \ 1702 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1703 'extern "C" void std::exit (int); using std::exit;' \ 1704 'extern "C" void exit (int) throw ();' \ 1705 'extern "C" void exit (int);' \ 1706 'void exit (int);' 1707do 1708 cat >conftest.$ac_ext <<_ACEOF 1709/* confdefs.h. */ 1710_ACEOF 1711cat confdefs.h >>conftest.$ac_ext 1712cat >>conftest.$ac_ext <<_ACEOF 1713/* end confdefs.h. */ 1714$ac_declaration 1715#include <stdlib.h> 1716int 1717main () 1718{ 1719exit (42); 1720 ; 1721 return 0; 1722} 1723_ACEOF 1724rm -f conftest.$ac_objext 1725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1726 (eval $ac_compile) 2>conftest.er1 1727 ac_status=$? 1728 grep -v '^ *+' conftest.er1 >conftest.err 1729 rm -f conftest.er1 1730 cat conftest.err >&5 1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1732 (exit $ac_status); } && 1733 { ac_try='test -z "$ac_cxx_werror_flag" 1734 || 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" 1779 || test ! -s conftest.err' 1780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1781 (eval $ac_try) 2>&5 1782 ac_status=$? 1783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1784 (exit $ac_status); }; } && 1785 { ac_try='test -s conftest.$ac_objext' 1786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1787 (eval $ac_try) 2>&5 1788 ac_status=$? 1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1790 (exit $ac_status); }; }; then 1791 break 1792else 1793 echo "$as_me: failed program was:" >&5 1794sed 's/^/| /' conftest.$ac_ext >&5 1795 1796fi 1797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1798done 1799rm -f conftest* 1800if test -n "$ac_declaration"; then 1801 echo '#ifdef __cplusplus' >>confdefs.h 1802 echo $ac_declaration >>confdefs.h 1803 echo '#endif' >>confdefs.h 1804fi 1805 1806ac_ext=c 1807ac_cpp='$CPP $CPPFLAGS' 1808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1810ac_compiler_gnu=$ac_cv_c_compiler_gnu 1811 1812 1813ac_ext=c 1814ac_cpp='$CPP $CPPFLAGS' 1815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1817ac_compiler_gnu=$ac_cv_c_compiler_gnu 1818if test -n "$ac_tool_prefix"; then 1819 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1820set dummy ${ac_tool_prefix}gcc; ac_word=$2 1821echo "$as_me:$LINENO: checking for $ac_word" >&5 1822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1823if test "${ac_cv_prog_CC+set}" = set; then 1824 echo $ECHO_N "(cached) $ECHO_C" >&6 1825else 1826 if test -n "$CC"; then 1827 ac_cv_prog_CC="$CC" # Let the user override the test. 1828else 1829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1830for as_dir in $PATH 1831do 1832 IFS=$as_save_IFS 1833 test -z "$as_dir" && as_dir=. 1834 for ac_exec_ext in '' $ac_executable_extensions; do 1835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1836 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1838 break 2 1839 fi 1840done 1841done 1842 1843fi 1844fi 1845CC=$ac_cv_prog_CC 1846if test -n "$CC"; then 1847 echo "$as_me:$LINENO: result: $CC" >&5 1848echo "${ECHO_T}$CC" >&6 1849else 1850 echo "$as_me:$LINENO: result: no" >&5 1851echo "${ECHO_T}no" >&6 1852fi 1853 1854fi 1855if test -z "$ac_cv_prog_CC"; then 1856 ac_ct_CC=$CC 1857 # Extract the first word of "gcc", so it can be a program name with args. 1858set dummy gcc; ac_word=$2 1859echo "$as_me:$LINENO: checking for $ac_word" >&5 1860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1861if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1862 echo $ECHO_N "(cached) $ECHO_C" >&6 1863else 1864 if test -n "$ac_ct_CC"; then 1865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1866else 1867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1868for as_dir in $PATH 1869do 1870 IFS=$as_save_IFS 1871 test -z "$as_dir" && as_dir=. 1872 for ac_exec_ext in '' $ac_executable_extensions; do 1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1874 ac_cv_prog_ac_ct_CC="gcc" 1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1876 break 2 1877 fi 1878done 1879done 1880 1881fi 1882fi 1883ac_ct_CC=$ac_cv_prog_ac_ct_CC 1884if test -n "$ac_ct_CC"; then 1885 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1886echo "${ECHO_T}$ac_ct_CC" >&6 1887else 1888 echo "$as_me:$LINENO: result: no" >&5 1889echo "${ECHO_T}no" >&6 1890fi 1891 1892 CC=$ac_ct_CC 1893else 1894 CC="$ac_cv_prog_CC" 1895fi 1896 1897if test -z "$CC"; then 1898 if test -n "$ac_tool_prefix"; then 1899 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1900set dummy ${ac_tool_prefix}cc; ac_word=$2 1901echo "$as_me:$LINENO: checking for $ac_word" >&5 1902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1903if test "${ac_cv_prog_CC+set}" = set; then 1904 echo $ECHO_N "(cached) $ECHO_C" >&6 1905else 1906 if test -n "$CC"; then 1907 ac_cv_prog_CC="$CC" # Let the user override the test. 1908else 1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1910for as_dir in $PATH 1911do 1912 IFS=$as_save_IFS 1913 test -z "$as_dir" && as_dir=. 1914 for ac_exec_ext in '' $ac_executable_extensions; do 1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1916 ac_cv_prog_CC="${ac_tool_prefix}cc" 1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1918 break 2 1919 fi 1920done 1921done 1922 1923fi 1924fi 1925CC=$ac_cv_prog_CC 1926if test -n "$CC"; then 1927 echo "$as_me:$LINENO: result: $CC" >&5 1928echo "${ECHO_T}$CC" >&6 1929else 1930 echo "$as_me:$LINENO: result: no" >&5 1931echo "${ECHO_T}no" >&6 1932fi 1933 1934fi 1935if test -z "$ac_cv_prog_CC"; then 1936 ac_ct_CC=$CC 1937 # Extract the first word of "cc", so it can be a program name with args. 1938set dummy cc; ac_word=$2 1939echo "$as_me:$LINENO: checking for $ac_word" >&5 1940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1941if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1942 echo $ECHO_N "(cached) $ECHO_C" >&6 1943else 1944 if test -n "$ac_ct_CC"; then 1945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1946else 1947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1948for as_dir in $PATH 1949do 1950 IFS=$as_save_IFS 1951 test -z "$as_dir" && as_dir=. 1952 for ac_exec_ext in '' $ac_executable_extensions; do 1953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1954 ac_cv_prog_ac_ct_CC="cc" 1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1956 break 2 1957 fi 1958done 1959done 1960 1961fi 1962fi 1963ac_ct_CC=$ac_cv_prog_ac_ct_CC 1964if test -n "$ac_ct_CC"; then 1965 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1966echo "${ECHO_T}$ac_ct_CC" >&6 1967else 1968 echo "$as_me:$LINENO: result: no" >&5 1969echo "${ECHO_T}no" >&6 1970fi 1971 1972 CC=$ac_ct_CC 1973else 1974 CC="$ac_cv_prog_CC" 1975fi 1976 1977fi 1978if test -z "$CC"; then 1979 # Extract the first word of "cc", so it can be a program name with args. 1980set dummy cc; ac_word=$2 1981echo "$as_me:$LINENO: checking for $ac_word" >&5 1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1983if test "${ac_cv_prog_CC+set}" = set; then 1984 echo $ECHO_N "(cached) $ECHO_C" >&6 1985else 1986 if test -n "$CC"; then 1987 ac_cv_prog_CC="$CC" # Let the user override the test. 1988else 1989 ac_prog_rejected=no 1990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1991for as_dir in $PATH 1992do 1993 IFS=$as_save_IFS 1994 test -z "$as_dir" && as_dir=. 1995 for ac_exec_ext in '' $ac_executable_extensions; do 1996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1997 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1998 ac_prog_rejected=yes 1999 continue 2000 fi 2001 ac_cv_prog_CC="cc" 2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2003 break 2 2004 fi 2005done 2006done 2007 2008if test $ac_prog_rejected = yes; then 2009 # We found a bogon in the path, so make sure we never use it. 2010 set dummy $ac_cv_prog_CC 2011 shift 2012 if test $# != 0; then 2013 # We chose a different compiler from the bogus one. 2014 # However, it has the same basename, so the bogon will be chosen 2015 # first if we set CC to just the basename; use the full file name. 2016 shift 2017 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2018 fi 2019fi 2020fi 2021fi 2022CC=$ac_cv_prog_CC 2023if test -n "$CC"; then 2024 echo "$as_me:$LINENO: result: $CC" >&5 2025echo "${ECHO_T}$CC" >&6 2026else 2027 echo "$as_me:$LINENO: result: no" >&5 2028echo "${ECHO_T}no" >&6 2029fi 2030 2031fi 2032if test -z "$CC"; then 2033 if test -n "$ac_tool_prefix"; then 2034 for ac_prog in cl 2035 do 2036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2037set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2038echo "$as_me:$LINENO: checking for $ac_word" >&5 2039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2040if test "${ac_cv_prog_CC+set}" = set; then 2041 echo $ECHO_N "(cached) $ECHO_C" >&6 2042else 2043 if test -n "$CC"; then 2044 ac_cv_prog_CC="$CC" # Let the user override the test. 2045else 2046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2047for as_dir in $PATH 2048do 2049 IFS=$as_save_IFS 2050 test -z "$as_dir" && as_dir=. 2051 for ac_exec_ext in '' $ac_executable_extensions; do 2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2053 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2055 break 2 2056 fi 2057done 2058done 2059 2060fi 2061fi 2062CC=$ac_cv_prog_CC 2063if test -n "$CC"; then 2064 echo "$as_me:$LINENO: result: $CC" >&5 2065echo "${ECHO_T}$CC" >&6 2066else 2067 echo "$as_me:$LINENO: result: no" >&5 2068echo "${ECHO_T}no" >&6 2069fi 2070 2071 test -n "$CC" && break 2072 done 2073fi 2074if test -z "$CC"; then 2075 ac_ct_CC=$CC 2076 for ac_prog in cl 2077do 2078 # Extract the first word of "$ac_prog", so it can be a program name with args. 2079set dummy $ac_prog; ac_word=$2 2080echo "$as_me:$LINENO: checking for $ac_word" >&5 2081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2082if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2083 echo $ECHO_N "(cached) $ECHO_C" >&6 2084else 2085 if test -n "$ac_ct_CC"; then 2086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2087else 2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2089for as_dir in $PATH 2090do 2091 IFS=$as_save_IFS 2092 test -z "$as_dir" && as_dir=. 2093 for ac_exec_ext in '' $ac_executable_extensions; do 2094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2095 ac_cv_prog_ac_ct_CC="$ac_prog" 2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2097 break 2 2098 fi 2099done 2100done 2101 2102fi 2103fi 2104ac_ct_CC=$ac_cv_prog_ac_ct_CC 2105if test -n "$ac_ct_CC"; then 2106 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2107echo "${ECHO_T}$ac_ct_CC" >&6 2108else 2109 echo "$as_me:$LINENO: result: no" >&5 2110echo "${ECHO_T}no" >&6 2111fi 2112 2113 test -n "$ac_ct_CC" && break 2114done 2115 2116 CC=$ac_ct_CC 2117fi 2118 2119fi 2120 2121 2122test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2123See \`config.log' for more details." >&5 2124echo "$as_me: error: no acceptable C compiler found in \$PATH 2125See \`config.log' for more details." >&2;} 2126 { (exit 1); exit 1; }; } 2127 2128# Provide some information about the compiler. 2129echo "$as_me:$LINENO:" \ 2130 "checking for C compiler version" >&5 2131ac_compiler=`set X $ac_compile; echo $2` 2132{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2133 (eval $ac_compiler --version </dev/null >&5) 2>&5 2134 ac_status=$? 2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2136 (exit $ac_status); } 2137{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2138 (eval $ac_compiler -v </dev/null >&5) 2>&5 2139 ac_status=$? 2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2141 (exit $ac_status); } 2142{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2143 (eval $ac_compiler -V </dev/null >&5) 2>&5 2144 ac_status=$? 2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2146 (exit $ac_status); } 2147 2148echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2149echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2150if test "${ac_cv_c_compiler_gnu+set}" = set; then 2151 echo $ECHO_N "(cached) $ECHO_C" >&6 2152else 2153 cat >conftest.$ac_ext <<_ACEOF 2154/* confdefs.h. */ 2155_ACEOF 2156cat confdefs.h >>conftest.$ac_ext 2157cat >>conftest.$ac_ext <<_ACEOF 2158/* end confdefs.h. */ 2159 2160int 2161main () 2162{ 2163#ifndef __GNUC__ 2164 choke me 2165#endif 2166 2167 ; 2168 return 0; 2169} 2170_ACEOF 2171rm -f conftest.$ac_objext 2172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2173 (eval $ac_compile) 2>conftest.er1 2174 ac_status=$? 2175 grep -v '^ *+' conftest.er1 >conftest.err 2176 rm -f conftest.er1 2177 cat conftest.err >&5 2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2179 (exit $ac_status); } && 2180 { ac_try='test -z "$ac_c_werror_flag" 2181 || test ! -s conftest.err' 2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2183 (eval $ac_try) 2>&5 2184 ac_status=$? 2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2186 (exit $ac_status); }; } && 2187 { ac_try='test -s conftest.$ac_objext' 2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2189 (eval $ac_try) 2>&5 2190 ac_status=$? 2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2192 (exit $ac_status); }; }; then 2193 ac_compiler_gnu=yes 2194else 2195 echo "$as_me: failed program was:" >&5 2196sed 's/^/| /' conftest.$ac_ext >&5 2197 2198ac_compiler_gnu=no 2199fi 2200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2201ac_cv_c_compiler_gnu=$ac_compiler_gnu 2202 2203fi 2204echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2205echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2206GCC=`test $ac_compiler_gnu = yes && echo yes` 2207ac_test_CFLAGS=${CFLAGS+set} 2208ac_save_CFLAGS=$CFLAGS 2209CFLAGS="-g" 2210echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2211echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2212if test "${ac_cv_prog_cc_g+set}" = set; then 2213 echo $ECHO_N "(cached) $ECHO_C" >&6 2214else 2215 cat >conftest.$ac_ext <<_ACEOF 2216/* confdefs.h. */ 2217_ACEOF 2218cat confdefs.h >>conftest.$ac_ext 2219cat >>conftest.$ac_ext <<_ACEOF 2220/* end confdefs.h. */ 2221 2222int 2223main () 2224{ 2225 2226 ; 2227 return 0; 2228} 2229_ACEOF 2230rm -f conftest.$ac_objext 2231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2232 (eval $ac_compile) 2>conftest.er1 2233 ac_status=$? 2234 grep -v '^ *+' conftest.er1 >conftest.err 2235 rm -f conftest.er1 2236 cat conftest.err >&5 2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2238 (exit $ac_status); } && 2239 { ac_try='test -z "$ac_c_werror_flag" 2240 || test ! -s conftest.err' 2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2242 (eval $ac_try) 2>&5 2243 ac_status=$? 2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2245 (exit $ac_status); }; } && 2246 { ac_try='test -s conftest.$ac_objext' 2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2248 (eval $ac_try) 2>&5 2249 ac_status=$? 2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2251 (exit $ac_status); }; }; then 2252 ac_cv_prog_cc_g=yes 2253else 2254 echo "$as_me: failed program was:" >&5 2255sed 's/^/| /' conftest.$ac_ext >&5 2256 2257ac_cv_prog_cc_g=no 2258fi 2259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2260fi 2261echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2262echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2263if test "$ac_test_CFLAGS" = set; then 2264 CFLAGS=$ac_save_CFLAGS 2265elif test $ac_cv_prog_cc_g = yes; then 2266 if test "$GCC" = yes; then 2267 CFLAGS="-g -O2" 2268 else 2269 CFLAGS="-g" 2270 fi 2271else 2272 if test "$GCC" = yes; then 2273 CFLAGS="-O2" 2274 else 2275 CFLAGS= 2276 fi 2277fi 2278echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2279echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2280if test "${ac_cv_prog_cc_stdc+set}" = set; then 2281 echo $ECHO_N "(cached) $ECHO_C" >&6 2282else 2283 ac_cv_prog_cc_stdc=no 2284ac_save_CC=$CC 2285cat >conftest.$ac_ext <<_ACEOF 2286/* confdefs.h. */ 2287_ACEOF 2288cat confdefs.h >>conftest.$ac_ext 2289cat >>conftest.$ac_ext <<_ACEOF 2290/* end confdefs.h. */ 2291#include <stdarg.h> 2292#include <stdio.h> 2293#include <sys/types.h> 2294#include <sys/stat.h> 2295/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2296struct buf { int x; }; 2297FILE * (*rcsopen) (struct buf *, struct stat *, int); 2298static char *e (p, i) 2299 char **p; 2300 int i; 2301{ 2302 return p[i]; 2303} 2304static char *f (char * (*g) (char **, int), char **p, ...) 2305{ 2306 char *s; 2307 va_list v; 2308 va_start (v,p); 2309 s = g (p, va_arg (v,int)); 2310 va_end (v); 2311 return s; 2312} 2313 2314/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2315 function prototypes and stuff, but not '\xHH' hex character constants. 2316 These don't provoke an error unfortunately, instead are silently treated 2317 as 'x'. The following induces an error, until -std1 is added to get 2318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2319 array size at least. It's necessary to write '\x00'==0 to get something 2320 that's true only with -std1. */ 2321int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2322 2323int test (int i, double x); 2324struct s1 {int (*f) (int a);}; 2325struct s2 {int (*f) (double a);}; 2326int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2327int argc; 2328char **argv; 2329int 2330main () 2331{ 2332return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2333 ; 2334 return 0; 2335} 2336_ACEOF 2337# Don't try gcc -ansi; that turns off useful extensions and 2338# breaks some systems' header files. 2339# AIX -qlanglvl=ansi 2340# Ultrix and OSF/1 -std1 2341# HP-UX 10.20 and later -Ae 2342# HP-UX older versions -Aa -D_HPUX_SOURCE 2343# SVR4 -Xc -D__EXTENSIONS__ 2344for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2345do 2346 CC="$ac_save_CC $ac_arg" 2347 rm -f conftest.$ac_objext 2348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2349 (eval $ac_compile) 2>conftest.er1 2350 ac_status=$? 2351 grep -v '^ *+' conftest.er1 >conftest.err 2352 rm -f conftest.er1 2353 cat conftest.err >&5 2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2355 (exit $ac_status); } && 2356 { ac_try='test -z "$ac_c_werror_flag" 2357 || test ! -s conftest.err' 2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2359 (eval $ac_try) 2>&5 2360 ac_status=$? 2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2362 (exit $ac_status); }; } && 2363 { ac_try='test -s conftest.$ac_objext' 2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2365 (eval $ac_try) 2>&5 2366 ac_status=$? 2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2368 (exit $ac_status); }; }; then 2369 ac_cv_prog_cc_stdc=$ac_arg 2370break 2371else 2372 echo "$as_me: failed program was:" >&5 2373sed 's/^/| /' conftest.$ac_ext >&5 2374 2375fi 2376rm -f conftest.err conftest.$ac_objext 2377done 2378rm -f conftest.$ac_ext conftest.$ac_objext 2379CC=$ac_save_CC 2380 2381fi 2382 2383case "x$ac_cv_prog_cc_stdc" in 2384 x|xno) 2385 echo "$as_me:$LINENO: result: none needed" >&5 2386echo "${ECHO_T}none needed" >&6 ;; 2387 *) 2388 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2389echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2390 CC="$CC $ac_cv_prog_cc_stdc" ;; 2391esac 2392 2393# Some people use a C++ compiler to compile C. Since we use `exit', 2394# in C++ we need to declare it. In case someone uses the same compiler 2395# for both compiling C and C++ we need to have the C++ compiler decide 2396# the declaration of exit, since it's the most demanding environment. 2397cat >conftest.$ac_ext <<_ACEOF 2398#ifndef __cplusplus 2399 choke me 2400#endif 2401_ACEOF 2402rm -f conftest.$ac_objext 2403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2404 (eval $ac_compile) 2>conftest.er1 2405 ac_status=$? 2406 grep -v '^ *+' conftest.er1 >conftest.err 2407 rm -f conftest.er1 2408 cat conftest.err >&5 2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2410 (exit $ac_status); } && 2411 { ac_try='test -z "$ac_c_werror_flag" 2412 || test ! -s conftest.err' 2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2414 (eval $ac_try) 2>&5 2415 ac_status=$? 2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2417 (exit $ac_status); }; } && 2418 { ac_try='test -s conftest.$ac_objext' 2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2420 (eval $ac_try) 2>&5 2421 ac_status=$? 2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2423 (exit $ac_status); }; }; then 2424 for ac_declaration in \ 2425 '' \ 2426 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2427 'extern "C" void std::exit (int); using std::exit;' \ 2428 'extern "C" void exit (int) throw ();' \ 2429 'extern "C" void exit (int);' \ 2430 'void exit (int);' 2431do 2432 cat >conftest.$ac_ext <<_ACEOF 2433/* confdefs.h. */ 2434_ACEOF 2435cat confdefs.h >>conftest.$ac_ext 2436cat >>conftest.$ac_ext <<_ACEOF 2437/* end confdefs.h. */ 2438$ac_declaration 2439#include <stdlib.h> 2440int 2441main () 2442{ 2443exit (42); 2444 ; 2445 return 0; 2446} 2447_ACEOF 2448rm -f conftest.$ac_objext 2449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2450 (eval $ac_compile) 2>conftest.er1 2451 ac_status=$? 2452 grep -v '^ *+' conftest.er1 >conftest.err 2453 rm -f conftest.er1 2454 cat conftest.err >&5 2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2456 (exit $ac_status); } && 2457 { ac_try='test -z "$ac_c_werror_flag" 2458 || test ! -s conftest.err' 2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2460 (eval $ac_try) 2>&5 2461 ac_status=$? 2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2463 (exit $ac_status); }; } && 2464 { ac_try='test -s conftest.$ac_objext' 2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2466 (eval $ac_try) 2>&5 2467 ac_status=$? 2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2469 (exit $ac_status); }; }; then 2470 : 2471else 2472 echo "$as_me: failed program was:" >&5 2473sed 's/^/| /' conftest.$ac_ext >&5 2474 2475continue 2476fi 2477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2478 cat >conftest.$ac_ext <<_ACEOF 2479/* confdefs.h. */ 2480_ACEOF 2481cat confdefs.h >>conftest.$ac_ext 2482cat >>conftest.$ac_ext <<_ACEOF 2483/* end confdefs.h. */ 2484$ac_declaration 2485int 2486main () 2487{ 2488exit (42); 2489 ; 2490 return 0; 2491} 2492_ACEOF 2493rm -f conftest.$ac_objext 2494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2495 (eval $ac_compile) 2>conftest.er1 2496 ac_status=$? 2497 grep -v '^ *+' conftest.er1 >conftest.err 2498 rm -f conftest.er1 2499 cat conftest.err >&5 2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2501 (exit $ac_status); } && 2502 { ac_try='test -z "$ac_c_werror_flag" 2503 || test ! -s conftest.err' 2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2505 (eval $ac_try) 2>&5 2506 ac_status=$? 2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2508 (exit $ac_status); }; } && 2509 { ac_try='test -s conftest.$ac_objext' 2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2511 (eval $ac_try) 2>&5 2512 ac_status=$? 2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2514 (exit $ac_status); }; }; then 2515 break 2516else 2517 echo "$as_me: failed program was:" >&5 2518sed 's/^/| /' conftest.$ac_ext >&5 2519 2520fi 2521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2522done 2523rm -f conftest* 2524if test -n "$ac_declaration"; then 2525 echo '#ifdef __cplusplus' >>confdefs.h 2526 echo $ac_declaration >>confdefs.h 2527 echo '#endif' >>confdefs.h 2528fi 2529 2530else 2531 echo "$as_me: failed program was:" >&5 2532sed 's/^/| /' conftest.$ac_ext >&5 2533 2534fi 2535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2536ac_ext=c 2537ac_cpp='$CPP $CPPFLAGS' 2538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2540ac_compiler_gnu=$ac_cv_c_compiler_gnu 2541 2542 2543 2544echo "$as_me:$LINENO: checking for DES_set_key_unchecked in -lcrypto" >&5 2545echo $ECHO_N "checking for DES_set_key_unchecked in -lcrypto... $ECHO_C" >&6 2546if test "${ac_cv_lib_crypto_DES_set_key_unchecked+set}" = set; then 2547 echo $ECHO_N "(cached) $ECHO_C" >&6 2548else 2549 ac_check_lib_save_LIBS=$LIBS 2550LIBS="-lcrypto $LIBS" 2551cat >conftest.$ac_ext <<_ACEOF 2552/* confdefs.h. */ 2553_ACEOF 2554cat confdefs.h >>conftest.$ac_ext 2555cat >>conftest.$ac_ext <<_ACEOF 2556/* end confdefs.h. */ 2557 2558/* Override any gcc2 internal prototype to avoid an error. */ 2559#ifdef __cplusplus 2560extern "C" 2561#endif 2562/* We use char because int might match the return type of a gcc2 2563 builtin and then its argument prototype would still apply. */ 2564char DES_set_key_unchecked (); 2565int 2566main () 2567{ 2568DES_set_key_unchecked (); 2569 ; 2570 return 0; 2571} 2572_ACEOF 2573rm -f conftest.$ac_objext conftest$ac_exeext 2574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2575 (eval $ac_link) 2>conftest.er1 2576 ac_status=$? 2577 grep -v '^ *+' conftest.er1 >conftest.err 2578 rm -f conftest.er1 2579 cat conftest.err >&5 2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2581 (exit $ac_status); } && 2582 { ac_try='test -z "$ac_c_werror_flag" 2583 || test ! -s conftest.err' 2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2585 (eval $ac_try) 2>&5 2586 ac_status=$? 2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2588 (exit $ac_status); }; } && 2589 { ac_try='test -s conftest$ac_exeext' 2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2591 (eval $ac_try) 2>&5 2592 ac_status=$? 2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2594 (exit $ac_status); }; }; then 2595 ac_cv_lib_crypto_DES_set_key_unchecked=yes 2596else 2597 echo "$as_me: failed program was:" >&5 2598sed 's/^/| /' conftest.$ac_ext >&5 2599 2600ac_cv_lib_crypto_DES_set_key_unchecked=no 2601fi 2602rm -f conftest.err conftest.$ac_objext \ 2603 conftest$ac_exeext conftest.$ac_ext 2604LIBS=$ac_check_lib_save_LIBS 2605fi 2606echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_set_key_unchecked" >&5 2607echo "${ECHO_T}$ac_cv_lib_crypto_DES_set_key_unchecked" >&6 2608if test $ac_cv_lib_crypto_DES_set_key_unchecked = yes; then 2609 cat >>confdefs.h <<_ACEOF 2610#define HAVE_LIBCRYPTO 1 2611_ACEOF 2612 2613 LIBS="-lcrypto $LIBS" 2614 2615fi 2616 2617 2618if test x$ac_cv_lib_crypto_DES_set_key_unchecked != xyes 2619then 2620 { { echo "$as_me:$LINENO: error: \"Couldn't find working OpenSSL\"" >&5 2621echo "$as_me: error: \"Couldn't find working OpenSSL\"" >&2;} 2622 { (exit 1); exit 1; }; } 2623fi 2624 2625 ac_config_files="$ac_config_files Makefile" 2626cat >confcache <<\_ACEOF 2627# This file is a shell script that caches the results of configure 2628# tests run on this system so they can be shared between configure 2629# scripts and configure runs, see configure's option --config-cache. 2630# It is not useful on other systems. If it contains results you don't 2631# want to keep, you may remove or edit it. 2632# 2633# config.status only pays attention to the cache file if you give it 2634# the --recheck option to rerun configure. 2635# 2636# `ac_cv_env_foo' variables (set or unset) will be overridden when 2637# loading this file, other *unset* `ac_cv_foo' will be assigned the 2638# following values. 2639 2640_ACEOF 2641 2642# The following way of writing the cache mishandles newlines in values, 2643# but we know of no workaround that is simple, portable, and efficient. 2644# So, don't put newlines in cache variables' values. 2645# Ultrix sh set writes to stderr and can't be redirected directly, 2646# and sets the high bit in the cache file unless we assign to the vars. 2647{ 2648 (set) 2>&1 | 2649 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2650 *ac_space=\ *) 2651 # `set' does not quote correctly, so add quotes (double-quote 2652 # substitution turns \\\\ into \\, and sed turns \\ into \). 2653 sed -n \ 2654 "s/'/'\\\\''/g; 2655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 2656 ;; 2657 *) 2658 # `set' quotes correctly as required by POSIX, so do not add quotes. 2659 sed -n \ 2660 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 2661 ;; 2662 esac; 2663} | 2664 sed ' 2665 t clear 2666 : clear 2667 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 2668 t end 2669 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 2670 : end' >>confcache 2671if diff $cache_file confcache >/dev/null 2>&1; then :; else 2672 if test -w $cache_file; then 2673 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 2674 cat confcache >$cache_file 2675 else 2676 echo "not updating unwritable cache $cache_file" 2677 fi 2678fi 2679rm -f confcache 2680 2681test "x$prefix" = xNONE && prefix=$ac_default_prefix 2682# Let make expand exec_prefix. 2683test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2684 2685# VPATH may cause trouble with some makes, so we remove $(srcdir), 2686# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 2687# trailing colons and then remove the whole line if VPATH becomes empty 2688# (actually we leave an empty line to preserve line numbers). 2689if test "x$srcdir" = x.; then 2690 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 2691s/:*\$(srcdir):*/:/; 2692s/:*\${srcdir}:*/:/; 2693s/:*@srcdir@:*/:/; 2694s/^\([^=]*=[ ]*\):*/\1/; 2695s/:*$//; 2696s/^[^=]*=[ ]*$//; 2697}' 2698fi 2699 2700# Transform confdefs.h into DEFS. 2701# Protect against shell expansion while executing Makefile rules. 2702# Protect against Makefile macro expansion. 2703# 2704# If the first sed substitution is executed (which looks for macros that 2705# take arguments), then we branch to the quote section. Otherwise, 2706# look for a macro that doesn't take arguments. 2707cat >confdef2opt.sed <<\_ACEOF 2708t clear 2709: clear 2710s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 2711t quote 2712s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 2713t quote 2714d 2715: quote 2716s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 2717s,\[,\\&,g 2718s,\],\\&,g 2719s,\$,$$,g 2720p 2721_ACEOF 2722# We use echo to avoid assuming a particular line-breaking character. 2723# The extra dot is to prevent the shell from consuming trailing 2724# line-breaks from the sub-command output. A line-break within 2725# single-quotes doesn't work because, if this script is created in a 2726# platform that uses two characters for line-breaks (e.g., DOS), tr 2727# would break. 2728ac_LF_and_DOT=`echo; echo .` 2729DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 2730rm -f confdef2opt.sed 2731 2732 2733ac_libobjs= 2734ac_ltlibobjs= 2735for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 2736 # 1. Remove the extension, and $U if already installed. 2737 ac_i=`echo "$ac_i" | 2738 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 2739 # 2. Add them. 2740 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 2741 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 2742done 2743LIBOBJS=$ac_libobjs 2744 2745LTLIBOBJS=$ac_ltlibobjs 2746 2747 2748 2749: ${CONFIG_STATUS=./config.status} 2750ac_clean_files_save=$ac_clean_files 2751ac_clean_files="$ac_clean_files $CONFIG_STATUS" 2752{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 2753echo "$as_me: creating $CONFIG_STATUS" >&6;} 2754cat >$CONFIG_STATUS <<_ACEOF 2755#! $SHELL 2756# Generated by $as_me. 2757# Run this file to recreate the current configuration. 2758# Compiler output produced by configure, useful for debugging 2759# configure, is in config.log if it exists. 2760 2761debug=false 2762ac_cs_recheck=false 2763ac_cs_silent=false 2764SHELL=\${CONFIG_SHELL-$SHELL} 2765_ACEOF 2766 2767cat >>$CONFIG_STATUS <<\_ACEOF 2768## --------------------- ## 2769## M4sh Initialization. ## 2770## --------------------- ## 2771 2772# Be Bourne compatible 2773if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 2774 emulate sh 2775 NULLCMD=: 2776 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 2777 # is contrary to our usage. Disable this feature. 2778 alias -g '${1+"$@"}'='"$@"' 2779elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 2780 set -o posix 2781fi 2782DUALCASE=1; export DUALCASE # for MKS sh 2783 2784# Support unset when possible. 2785if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 2786 as_unset=unset 2787else 2788 as_unset=false 2789fi 2790 2791 2792# Work around bugs in pre-3.0 UWIN ksh. 2793$as_unset ENV MAIL MAILPATH 2794PS1='$ ' 2795PS2='> ' 2796PS4='+ ' 2797 2798# NLS nuisances. 2799for as_var in \ 2800 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 2801 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 2802 LC_TELEPHONE LC_TIME 2803do 2804 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 2805 eval $as_var=C; export $as_var 2806 else 2807 $as_unset $as_var 2808 fi 2809done 2810 2811# Required to use basename. 2812if expr a : '\(a\)' >/dev/null 2>&1; then 2813 as_expr=expr 2814else 2815 as_expr=false 2816fi 2817 2818if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 2819 as_basename=basename 2820else 2821 as_basename=false 2822fi 2823 2824 2825# Name of the executable. 2826as_me=`$as_basename "$0" || 2827$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 2828 X"$0" : 'X\(//\)$' \| \ 2829 X"$0" : 'X\(/\)$' \| \ 2830 . : '\(.\)' 2>/dev/null || 2831echo X/"$0" | 2832 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 2833 /^X\/\(\/\/\)$/{ s//\1/; q; } 2834 /^X\/\(\/\).*/{ s//\1/; q; } 2835 s/.*/./; q'` 2836 2837 2838# PATH needs CR, and LINENO needs CR and PATH. 2839# Avoid depending upon Character Ranges. 2840as_cr_letters='abcdefghijklmnopqrstuvwxyz' 2841as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 2842as_cr_Letters=$as_cr_letters$as_cr_LETTERS 2843as_cr_digits='0123456789' 2844as_cr_alnum=$as_cr_Letters$as_cr_digits 2845 2846# The user is always right. 2847if test "${PATH_SEPARATOR+set}" != set; then 2848 echo "#! /bin/sh" >conf$$.sh 2849 echo "exit 0" >>conf$$.sh 2850 chmod +x conf$$.sh 2851 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 2852 PATH_SEPARATOR=';' 2853 else 2854 PATH_SEPARATOR=: 2855 fi 2856 rm -f conf$$.sh 2857fi 2858 2859 2860 as_lineno_1=$LINENO 2861 as_lineno_2=$LINENO 2862 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 2863 test "x$as_lineno_1" != "x$as_lineno_2" && 2864 test "x$as_lineno_3" = "x$as_lineno_2" || { 2865 # Find who we are. Look in the path if we contain no path at all 2866 # relative or not. 2867 case $0 in 2868 *[\\/]* ) as_myself=$0 ;; 2869 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2870for as_dir in $PATH 2871do 2872 IFS=$as_save_IFS 2873 test -z "$as_dir" && as_dir=. 2874 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 2875done 2876 2877 ;; 2878 esac 2879 # We did not find ourselves, most probably we were run as `sh COMMAND' 2880 # in which case we are not to be found in the path. 2881 if test "x$as_myself" = x; then 2882 as_myself=$0 2883 fi 2884 if test ! -f "$as_myself"; then 2885 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 2886echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 2887 { (exit 1); exit 1; }; } 2888 fi 2889 case $CONFIG_SHELL in 2890 '') 2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2892for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2893do 2894 IFS=$as_save_IFS 2895 test -z "$as_dir" && as_dir=. 2896 for as_base in sh bash ksh sh5; do 2897 case $as_dir in 2898 /*) 2899 if ("$as_dir/$as_base" -c ' 2900 as_lineno_1=$LINENO 2901 as_lineno_2=$LINENO 2902 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 2903 test "x$as_lineno_1" != "x$as_lineno_2" && 2904 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 2905 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 2906 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 2907 CONFIG_SHELL=$as_dir/$as_base 2908 export CONFIG_SHELL 2909 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 2910 fi;; 2911 esac 2912 done 2913done 2914;; 2915 esac 2916 2917 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 2918 # uniformly replaced by the line number. The first 'sed' inserts a 2919 # line-number line before each line; the second 'sed' does the real 2920 # work. The second script uses 'N' to pair each line-number line 2921 # with the numbered line, and appends trailing '-' during 2922 # substitution so that $LINENO is not a special case at line end. 2923 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 2924 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 2925 sed '=' <$as_myself | 2926 sed ' 2927 N 2928 s,$,-, 2929 : loop 2930 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 2931 t loop 2932 s,-$,, 2933 s,^['$as_cr_digits']*\n,, 2934 ' >$as_me.lineno && 2935 chmod +x $as_me.lineno || 2936 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 2937echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 2938 { (exit 1); exit 1; }; } 2939 2940 # Don't try to exec as it changes $[0], causing all sort of problems 2941 # (the dirname of $[0] is not the place where we might find the 2942 # original and so on. Autoconf is especially sensible to this). 2943 . ./$as_me.lineno 2944 # Exit status is that of the last command. 2945 exit 2946} 2947 2948 2949case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 2950 *c*,-n*) ECHO_N= ECHO_C=' 2951' ECHO_T=' ' ;; 2952 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 2953 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 2954esac 2955 2956if expr a : '\(a\)' >/dev/null 2>&1; then 2957 as_expr=expr 2958else 2959 as_expr=false 2960fi 2961 2962rm -f conf$$ conf$$.exe conf$$.file 2963echo >conf$$.file 2964if ln -s conf$$.file conf$$ 2>/dev/null; then 2965 # We could just check for DJGPP; but this test a) works b) is more generic 2966 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 2967 if test -f conf$$.exe; then 2968 # Don't use ln at all; we don't have any links 2969 as_ln_s='cp -p' 2970 else 2971 as_ln_s='ln -s' 2972 fi 2973elif ln conf$$.file conf$$ 2>/dev/null; then 2974 as_ln_s=ln 2975else 2976 as_ln_s='cp -p' 2977fi 2978rm -f conf$$ conf$$.exe conf$$.file 2979 2980if mkdir -p . 2>/dev/null; then 2981 as_mkdir_p=: 2982else 2983 test -d ./-p && rmdir ./-p 2984 as_mkdir_p=false 2985fi 2986 2987as_executable_p="test -f" 2988 2989# Sed expression to map a string onto a valid CPP name. 2990as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 2991 2992# Sed expression to map a string onto a valid variable name. 2993as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 2994 2995 2996# IFS 2997# We need space, tab and new line, in precisely that order. 2998as_nl=' 2999' 3000IFS=" $as_nl" 3001 3002# CDPATH. 3003$as_unset CDPATH 3004 3005exec 6>&1 3006 3007# Open the log real soon, to keep \$[0] and so on meaningful, and to 3008# report actual input values of CONFIG_FILES etc. instead of their 3009# values after options handling. Logging --version etc. is OK. 3010exec 5>>config.log 3011{ 3012 echo 3013 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 3014## Running $as_me. ## 3015_ASBOX 3016} >&5 3017cat >&5 <<_CSEOF 3018 3019This file was extended by $as_me, which was 3020generated by GNU Autoconf 2.59. Invocation command line was 3021 3022 CONFIG_FILES = $CONFIG_FILES 3023 CONFIG_HEADERS = $CONFIG_HEADERS 3024 CONFIG_LINKS = $CONFIG_LINKS 3025 CONFIG_COMMANDS = $CONFIG_COMMANDS 3026 $ $0 $@ 3027 3028_CSEOF 3029echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 3030echo >&5 3031_ACEOF 3032 3033# Files that config.status was made for. 3034if test -n "$ac_config_files"; then 3035 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 3036fi 3037 3038if test -n "$ac_config_headers"; then 3039 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 3040fi 3041 3042if test -n "$ac_config_links"; then 3043 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 3044fi 3045 3046if test -n "$ac_config_commands"; then 3047 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 3048fi 3049 3050cat >>$CONFIG_STATUS <<\_ACEOF 3051 3052ac_cs_usage="\ 3053\`$as_me' instantiates files from templates according to the 3054current configuration. 3055 3056Usage: $0 [OPTIONS] [FILE]... 3057 3058 -h, --help print this help, then exit 3059 -V, --version print version number, then exit 3060 -q, --quiet do not print progress messages 3061 -d, --debug don't remove temporary files 3062 --recheck update $as_me by reconfiguring in the same conditions 3063 --file=FILE[:TEMPLATE] 3064 instantiate the configuration file FILE 3065 3066Configuration files: 3067$config_files 3068 3069Report bugs to <bug-autoconf@gnu.org>." 3070_ACEOF 3071 3072cat >>$CONFIG_STATUS <<_ACEOF 3073ac_cs_version="\\ 3074config.status 3075configured by $0, generated by GNU Autoconf 2.59, 3076 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 3077 3078Copyright (C) 2003 Free Software Foundation, Inc. 3079This config.status script is free software; the Free Software Foundation 3080gives unlimited permission to copy, distribute and modify it." 3081srcdir=$srcdir 3082_ACEOF 3083 3084cat >>$CONFIG_STATUS <<\_ACEOF 3085# If no file are specified by the user, then we need to provide default 3086# value. By we need to know if files were specified by the user. 3087ac_need_defaults=: 3088while test $# != 0 3089do 3090 case $1 in 3091 --*=*) 3092 ac_option=`expr "x$1" : 'x\([^=]*\)='` 3093 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 3094 ac_shift=: 3095 ;; 3096 -*) 3097 ac_option=$1 3098 ac_optarg=$2 3099 ac_shift=shift 3100 ;; 3101 *) # This is not an option, so the user has probably given explicit 3102 # arguments. 3103 ac_option=$1 3104 ac_need_defaults=false;; 3105 esac 3106 3107 case $ac_option in 3108 # Handling of the options. 3109_ACEOF 3110cat >>$CONFIG_STATUS <<\_ACEOF 3111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3112 ac_cs_recheck=: ;; 3113 --version | --vers* | -V ) 3114 echo "$ac_cs_version"; exit 0 ;; 3115 --he | --h) 3116 # Conflict between --help and --header 3117 { { echo "$as_me:$LINENO: error: ambiguous option: $1 3118Try \`$0 --help' for more information." >&5 3119echo "$as_me: error: ambiguous option: $1 3120Try \`$0 --help' for more information." >&2;} 3121 { (exit 1); exit 1; }; };; 3122 --help | --hel | -h ) 3123 echo "$ac_cs_usage"; exit 0 ;; 3124 --debug | --d* | -d ) 3125 debug=: ;; 3126 --file | --fil | --fi | --f ) 3127 $ac_shift 3128 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 3129 ac_need_defaults=false;; 3130 --header | --heade | --head | --hea ) 3131 $ac_shift 3132 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 3133 ac_need_defaults=false;; 3134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3135 | -silent | --silent | --silen | --sile | --sil | --si | --s) 3136 ac_cs_silent=: ;; 3137 3138 # This is an error. 3139 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 3140Try \`$0 --help' for more information." >&5 3141echo "$as_me: error: unrecognized option: $1 3142Try \`$0 --help' for more information." >&2;} 3143 { (exit 1); exit 1; }; } ;; 3144 3145 *) ac_config_targets="$ac_config_targets $1" ;; 3146 3147 esac 3148 shift 3149done 3150 3151ac_configure_extra_args= 3152 3153if $ac_cs_silent; then 3154 exec 6>/dev/null 3155 ac_configure_extra_args="$ac_configure_extra_args --silent" 3156fi 3157 3158_ACEOF 3159cat >>$CONFIG_STATUS <<_ACEOF 3160if \$ac_cs_recheck; then 3161 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 3162 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 3163fi 3164 3165_ACEOF 3166 3167 3168 3169 3170 3171cat >>$CONFIG_STATUS <<\_ACEOF 3172for ac_config_target in $ac_config_targets 3173do 3174 case "$ac_config_target" in 3175 # Handling of arguments. 3176 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 3177 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 3178echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 3179 { (exit 1); exit 1; }; };; 3180 esac 3181done 3182 3183# If the user did not use the arguments to specify the items to instantiate, 3184# then the envvar interface is used. Set only those that are not. 3185# We use the long form for the default assignment because of an extremely 3186# bizarre bug on SunOS 4.1.3. 3187if $ac_need_defaults; then 3188 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 3189fi 3190 3191# Have a temporary directory for convenience. Make it in the build tree 3192# simply because there is no reason to put it here, and in addition, 3193# creating and moving files from /tmp can sometimes cause problems. 3194# Create a temporary directory, and hook for its removal unless debugging. 3195$debug || 3196{ 3197 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 3198 trap '{ (exit 1); exit 1; }' 1 2 13 15 3199} 3200 3201# Create a (secure) tmp directory for tmp files. 3202 3203{ 3204 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 3205 test -n "$tmp" && test -d "$tmp" 3206} || 3207{ 3208 tmp=./confstat$$-$RANDOM 3209 (umask 077 && mkdir $tmp) 3210} || 3211{ 3212 echo "$me: cannot create a temporary directory in ." >&2 3213 { (exit 1); exit 1; } 3214} 3215 3216_ACEOF 3217 3218cat >>$CONFIG_STATUS <<_ACEOF 3219 3220# 3221# CONFIG_FILES section. 3222# 3223 3224# No need to generate the scripts if there are no CONFIG_FILES. 3225# This happens for instance when ./config.status config.h 3226if test -n "\$CONFIG_FILES"; then 3227 # Protect against being on the right side of a sed subst in config.status. 3228 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 3229 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 3230s,@SHELL@,$SHELL,;t t 3231s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 3232s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 3233s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 3234s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 3235s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 3236s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 3237s,@exec_prefix@,$exec_prefix,;t t 3238s,@prefix@,$prefix,;t t 3239s,@program_transform_name@,$program_transform_name,;t t 3240s,@bindir@,$bindir,;t t 3241s,@sbindir@,$sbindir,;t t 3242s,@libexecdir@,$libexecdir,;t t 3243s,@datadir@,$datadir,;t t 3244s,@sysconfdir@,$sysconfdir,;t t 3245s,@sharedstatedir@,$sharedstatedir,;t t 3246s,@localstatedir@,$localstatedir,;t t 3247s,@libdir@,$libdir,;t t 3248s,@includedir@,$includedir,;t t 3249s,@oldincludedir@,$oldincludedir,;t t 3250s,@infodir@,$infodir,;t t 3251s,@mandir@,$mandir,;t t 3252s,@build_alias@,$build_alias,;t t 3253s,@host_alias@,$host_alias,;t t 3254s,@target_alias@,$target_alias,;t t 3255s,@DEFS@,$DEFS,;t t 3256s,@ECHO_C@,$ECHO_C,;t t 3257s,@ECHO_N@,$ECHO_N,;t t 3258s,@ECHO_T@,$ECHO_T,;t t 3259s,@LIBS@,$LIBS,;t t 3260s,@CXX@,$CXX,;t t 3261s,@CXXFLAGS@,$CXXFLAGS,;t t 3262s,@LDFLAGS@,$LDFLAGS,;t t 3263s,@CPPFLAGS@,$CPPFLAGS,;t t 3264s,@ac_ct_CXX@,$ac_ct_CXX,;t t 3265s,@EXEEXT@,$EXEEXT,;t t 3266s,@OBJEXT@,$OBJEXT,;t t 3267s,@CC@,$CC,;t t 3268s,@CFLAGS@,$CFLAGS,;t t 3269s,@ac_ct_CC@,$ac_ct_CC,;t t 3270s,@LIBOBJS@,$LIBOBJS,;t t 3271s,@LTLIBOBJS@,$LTLIBOBJS,;t t 3272CEOF 3273 3274_ACEOF 3275 3276 cat >>$CONFIG_STATUS <<\_ACEOF 3277 # Split the substitutions into bite-sized pieces for seds with 3278 # small command number limits, like on Digital OSF/1 and HP-UX. 3279 ac_max_sed_lines=48 3280 ac_sed_frag=1 # Number of current file. 3281 ac_beg=1 # First line for current file. 3282 ac_end=$ac_max_sed_lines # Line after last line for current file. 3283 ac_more_lines=: 3284 ac_sed_cmds= 3285 while $ac_more_lines; do 3286 if test $ac_beg -gt 1; then 3287 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 3288 else 3289 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 3290 fi 3291 if test ! -s $tmp/subs.frag; then 3292 ac_more_lines=false 3293 else 3294 # The purpose of the label and of the branching condition is to 3295 # speed up the sed processing (if there are no `@' at all, there 3296 # is no need to browse any of the substitutions). 3297 # These are the two extra sed commands mentioned above. 3298 (echo ':t 3299 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 3300 if test -z "$ac_sed_cmds"; then 3301 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 3302 else 3303 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 3304 fi 3305 ac_sed_frag=`expr $ac_sed_frag + 1` 3306 ac_beg=$ac_end 3307 ac_end=`expr $ac_end + $ac_max_sed_lines` 3308 fi 3309 done 3310 if test -z "$ac_sed_cmds"; then 3311 ac_sed_cmds=cat 3312 fi 3313fi # test -n "$CONFIG_FILES" 3314 3315_ACEOF 3316cat >>$CONFIG_STATUS <<\_ACEOF 3317for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 3318 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3319 case $ac_file in 3320 - | *:- | *:-:* ) # input from stdin 3321 cat >$tmp/stdin 3322 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3323 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3324 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3325 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3326 * ) ac_file_in=$ac_file.in ;; 3327 esac 3328 3329 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 3330 ac_dir=`(dirname "$ac_file") 2>/dev/null || 3331$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3332 X"$ac_file" : 'X\(//\)[^/]' \| \ 3333 X"$ac_file" : 'X\(//\)$' \| \ 3334 X"$ac_file" : 'X\(/\)' \| \ 3335 . : '\(.\)' 2>/dev/null || 3336echo X"$ac_file" | 3337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3338 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3339 /^X\(\/\/\)$/{ s//\1/; q; } 3340 /^X\(\/\).*/{ s//\1/; q; } 3341 s/.*/./; q'` 3342 { if $as_mkdir_p; then 3343 mkdir -p "$ac_dir" 3344 else 3345 as_dir="$ac_dir" 3346 as_dirs= 3347 while test ! -d "$as_dir"; do 3348 as_dirs="$as_dir $as_dirs" 3349 as_dir=`(dirname "$as_dir") 2>/dev/null || 3350$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3351 X"$as_dir" : 'X\(//\)[^/]' \| \ 3352 X"$as_dir" : 'X\(//\)$' \| \ 3353 X"$as_dir" : 'X\(/\)' \| \ 3354 . : '\(.\)' 2>/dev/null || 3355echo X"$as_dir" | 3356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3357 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3358 /^X\(\/\/\)$/{ s//\1/; q; } 3359 /^X\(\/\).*/{ s//\1/; q; } 3360 s/.*/./; q'` 3361 done 3362 test ! -n "$as_dirs" || mkdir $as_dirs 3363 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 3364echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 3365 { (exit 1); exit 1; }; }; } 3366 3367 ac_builddir=. 3368 3369if test "$ac_dir" != .; then 3370 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 3371 # A "../" for each directory in $ac_dir_suffix. 3372 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 3373else 3374 ac_dir_suffix= ac_top_builddir= 3375fi 3376 3377case $srcdir in 3378 .) # No --srcdir option. We are building in place. 3379 ac_srcdir=. 3380 if test -z "$ac_top_builddir"; then 3381 ac_top_srcdir=. 3382 else 3383 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 3384 fi ;; 3385 [\\/]* | ?:[\\/]* ) # Absolute path. 3386 ac_srcdir=$srcdir$ac_dir_suffix; 3387 ac_top_srcdir=$srcdir ;; 3388 *) # Relative path. 3389 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 3390 ac_top_srcdir=$ac_top_builddir$srcdir ;; 3391esac 3392 3393# Do not use `cd foo && pwd` to compute absolute paths, because 3394# the directories may not exist. 3395case `pwd` in 3396.) ac_abs_builddir="$ac_dir";; 3397*) 3398 case "$ac_dir" in 3399 .) ac_abs_builddir=`pwd`;; 3400 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 3401 *) ac_abs_builddir=`pwd`/"$ac_dir";; 3402 esac;; 3403esac 3404case $ac_abs_builddir in 3405.) ac_abs_top_builddir=${ac_top_builddir}.;; 3406*) 3407 case ${ac_top_builddir}. in 3408 .) ac_abs_top_builddir=$ac_abs_builddir;; 3409 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 3410 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 3411 esac;; 3412esac 3413case $ac_abs_builddir in 3414.) ac_abs_srcdir=$ac_srcdir;; 3415*) 3416 case $ac_srcdir in 3417 .) ac_abs_srcdir=$ac_abs_builddir;; 3418 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 3419 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 3420 esac;; 3421esac 3422case $ac_abs_builddir in 3423.) ac_abs_top_srcdir=$ac_top_srcdir;; 3424*) 3425 case $ac_top_srcdir in 3426 .) ac_abs_top_srcdir=$ac_abs_builddir;; 3427 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 3428 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 3429 esac;; 3430esac 3431 3432 3433 3434 if test x"$ac_file" != x-; then 3435 { echo "$as_me:$LINENO: creating $ac_file" >&5 3436echo "$as_me: creating $ac_file" >&6;} 3437 rm -f "$ac_file" 3438 fi 3439 # Let's still pretend it is `configure' which instantiates (i.e., don't 3440 # use $as_me), people would be surprised to read: 3441 # /* config.h. Generated by config.status. */ 3442 if test x"$ac_file" = x-; then 3443 configure_input= 3444 else 3445 configure_input="$ac_file. " 3446 fi 3447 configure_input=$configure_input"Generated from `echo $ac_file_in | 3448 sed 's,.*/,,'` by configure." 3449 3450 # First look for the input files in the build tree, otherwise in the 3451 # src tree. 3452 ac_file_inputs=`IFS=: 3453 for f in $ac_file_in; do 3454 case $f in 3455 -) echo $tmp/stdin ;; 3456 [\\/$]*) 3457 # Absolute (can't be DOS-style, as IFS=:) 3458 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3459echo "$as_me: error: cannot find input file: $f" >&2;} 3460 { (exit 1); exit 1; }; } 3461 echo "$f";; 3462 *) # Relative 3463 if test -f "$f"; then 3464 # Build tree 3465 echo "$f" 3466 elif test -f "$srcdir/$f"; then 3467 # Source tree 3468 echo "$srcdir/$f" 3469 else 3470 # /dev/null tree 3471 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3472echo "$as_me: error: cannot find input file: $f" >&2;} 3473 { (exit 1); exit 1; }; } 3474 fi;; 3475 esac 3476 done` || { (exit 1); exit 1; } 3477_ACEOF 3478cat >>$CONFIG_STATUS <<_ACEOF 3479 sed "$ac_vpsub 3480$extrasub 3481_ACEOF 3482cat >>$CONFIG_STATUS <<\_ACEOF 3483:t 3484/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 3485s,@configure_input@,$configure_input,;t t 3486s,@srcdir@,$ac_srcdir,;t t 3487s,@abs_srcdir@,$ac_abs_srcdir,;t t 3488s,@top_srcdir@,$ac_top_srcdir,;t t 3489s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 3490s,@builddir@,$ac_builddir,;t t 3491s,@abs_builddir@,$ac_abs_builddir,;t t 3492s,@top_builddir@,$ac_top_builddir,;t t 3493s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 3494" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 3495 rm -f $tmp/stdin 3496 if test x"$ac_file" != x-; then 3497 mv $tmp/out $ac_file 3498 else 3499 cat $tmp/out 3500 rm -f $tmp/out 3501 fi 3502 3503done 3504_ACEOF 3505 3506cat >>$CONFIG_STATUS <<\_ACEOF 3507 3508{ (exit 0); exit 0; } 3509_ACEOF 3510chmod +x $CONFIG_STATUS 3511ac_clean_files=$ac_clean_files_save 3512 3513 3514# configure is writing to config.log, and then calls config.status. 3515# config.status does its own redirection, appending to config.log. 3516# Unfortunately, on DOS this fails, as config.log is still kept open 3517# by configure, so config.status won't be able to write to it; its 3518# output is simply discarded. So we exec the FD to /dev/null, 3519# effectively closing config.log, so it can be properly (re)opened and 3520# appended to by config.status. When coming back to configure, we 3521# need to make the FD available again. 3522if test "$no_create" != yes; then 3523 ac_cs_success=: 3524 ac_config_status_args= 3525 test "$silent" = yes && 3526 ac_config_status_args="$ac_config_status_args --quiet" 3527 exec 5>/dev/null 3528 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 3529 exec 5>>config.log 3530 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 3531 # would make configure fail if this is the last instruction. 3532 $ac_cs_success || { (exit 1); exit 1; } 3533fi 3534 3535