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