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