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="../generic/tcl.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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AR ac_ct_AR RANLIB ac_ct_RANLIB RC ac_ct_RC SET_MAKE TCL_THREADS CYGPATH CELIB_DIR DL_LIBS CFLAGS_DEBUG CFLAGS_OPTIMIZE CFLAGS_WARNING CFLAGS_DEFAULT LDFLAGS_DEFAULT VC_MANIFEST_EMBED_DLL VC_MANIFEST_EMBED_EXE TCL_WIN_VERSION MACHINE TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_PATCH_LEVEL TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_STUB_LIB_PATH TCL_INCLUDE_SPEC TCL_BUILD_STUB_LIB_SPEC TCL_BUILD_STUB_LIB_PATH TCL_DLL_FILE TCL_SRC_DIR TCL_BIN_DIR TCL_DBGX CFG_TCL_SHARED_LIB_SUFFIX CFG_TCL_UNSHARED_LIB_SUFFIX CFG_TCL_EXPORT_FILE_SUFFIX EXTRA_CFLAGS DEPARG CC_OBJNAME CC_EXENAME LDFLAGS_DEBUG LDFLAGS_OPTIMIZE LDFLAGS_CONSOLE LDFLAGS_WINDOW STLIB_LD SHLIB_LD SHLIB_LD_LIBS SHLIB_CFLAGS SHLIB_SUFFIX TCL_SHARED_BUILD LIBS_GUI DLLSUFFIX LIBPREFIX LIBSUFFIX EXESUFFIX LIBRARIES MAKE_LIB MAKE_STUB_LIB POST_MAKE_LIB MAKE_DLL MAKE_EXE TCL_BUILD_LIB_SPEC TCL_LD_SEARCH_FLAGS TCL_NEEDS_EXP_FILE TCL_BUILD_EXP_FILE TCL_EXP_FILE TCL_LIB_VERSIONS_OK TCL_PACKAGE_PATH TCL_DDE_VERSION TCL_DDE_MAJOR_VERSION TCL_DDE_MINOR_VERSION TCL_REG_VERSION TCL_REG_MAJOR_VERSION TCL_REG_MINOR_VERSION RC_OUT RC_TYPE RC_INCLUDE RC_DEFINE RC_DEFINES RES 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_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 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_CPP_set=${CPP+set} 770ac_env_CPP_value=$CPP 771ac_cv_env_CPP_set=${CPP+set} 772ac_cv_env_CPP_value=$CPP 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 (default: off) 844 --enable-shared build and link with shared libraries (default: on) 845 --enable-64bit enable 64bit support (where applicable) 846 --enable-wince enable Win/CE support (where applicable) 847 --enable-symbols build with debugging symbols (default: off) 848 --enable-embedded-manifest 849 embed manifest if possible (default: yes) 850 851Optional Packages: 852 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 853 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 854 --with-encoding encoding for configuration values 855 --with-celib=DIR use Windows/CE support library from DIR 856 857Some influential environment variables: 858 CC C compiler command 859 CFLAGS C compiler flags 860 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 861 nonstandard directory <lib dir> 862 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 863 headers in a nonstandard directory <include dir> 864 CPP C preprocessor 865 866Use these variables to override the choices made by `configure' or to help 867it to find libraries and programs with nonstandard names/locations. 868 869_ACEOF 870fi 871 872if test "$ac_init_help" = "recursive"; then 873 # If there are subdirs, report their specific --help. 874 ac_popdir=`pwd` 875 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 876 test -d $ac_dir || continue 877 ac_builddir=. 878 879if test "$ac_dir" != .; then 880 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 881 # A "../" for each directory in $ac_dir_suffix. 882 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 883else 884 ac_dir_suffix= ac_top_builddir= 885fi 886 887case $srcdir in 888 .) # No --srcdir option. We are building in place. 889 ac_srcdir=. 890 if test -z "$ac_top_builddir"; then 891 ac_top_srcdir=. 892 else 893 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 894 fi ;; 895 [\\/]* | ?:[\\/]* ) # Absolute path. 896 ac_srcdir=$srcdir$ac_dir_suffix; 897 ac_top_srcdir=$srcdir ;; 898 *) # Relative path. 899 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 900 ac_top_srcdir=$ac_top_builddir$srcdir ;; 901esac 902 903# Do not use `cd foo && pwd` to compute absolute paths, because 904# the directories may not exist. 905case `pwd` in 906.) ac_abs_builddir="$ac_dir";; 907*) 908 case "$ac_dir" in 909 .) ac_abs_builddir=`pwd`;; 910 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 911 *) ac_abs_builddir=`pwd`/"$ac_dir";; 912 esac;; 913esac 914case $ac_abs_builddir in 915.) ac_abs_top_builddir=${ac_top_builddir}.;; 916*) 917 case ${ac_top_builddir}. in 918 .) ac_abs_top_builddir=$ac_abs_builddir;; 919 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 920 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 921 esac;; 922esac 923case $ac_abs_builddir in 924.) ac_abs_srcdir=$ac_srcdir;; 925*) 926 case $ac_srcdir in 927 .) ac_abs_srcdir=$ac_abs_builddir;; 928 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 929 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 930 esac;; 931esac 932case $ac_abs_builddir in 933.) ac_abs_top_srcdir=$ac_top_srcdir;; 934*) 935 case $ac_top_srcdir in 936 .) ac_abs_top_srcdir=$ac_abs_builddir;; 937 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 938 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 939 esac;; 940esac 941 942 cd $ac_dir 943 # Check for guested configure; otherwise get Cygnus style configure. 944 if test -f $ac_srcdir/configure.gnu; then 945 echo 946 $SHELL $ac_srcdir/configure.gnu --help=recursive 947 elif test -f $ac_srcdir/configure; then 948 echo 949 $SHELL $ac_srcdir/configure --help=recursive 950 elif test -f $ac_srcdir/configure.ac || 951 test -f $ac_srcdir/configure.in; then 952 echo 953 $ac_configure --help 954 else 955 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 956 fi 957 cd $ac_popdir 958 done 959fi 960 961test -n "$ac_init_help" && exit 0 962if $ac_init_version; then 963 cat <<\_ACEOF 964 965Copyright (C) 2003 Free Software Foundation, Inc. 966This configure script is free software; the Free Software Foundation 967gives unlimited permission to copy, distribute and modify it. 968_ACEOF 969 exit 0 970fi 971exec 5>config.log 972cat >&5 <<_ACEOF 973This file contains any messages produced by compilers while 974running configure, to aid debugging if configure makes a mistake. 975 976It was created by $as_me, which was 977generated by GNU Autoconf 2.59. Invocation command line was 978 979 $ $0 $@ 980 981_ACEOF 982{ 983cat <<_ASUNAME 984## --------- ## 985## Platform. ## 986## --------- ## 987 988hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 989uname -m = `(uname -m) 2>/dev/null || echo unknown` 990uname -r = `(uname -r) 2>/dev/null || echo unknown` 991uname -s = `(uname -s) 2>/dev/null || echo unknown` 992uname -v = `(uname -v) 2>/dev/null || echo unknown` 993 994/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 995/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 996 997/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 998/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 999/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1000hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1001/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1002/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1003/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1004 1005_ASUNAME 1006 1007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1008for as_dir in $PATH 1009do 1010 IFS=$as_save_IFS 1011 test -z "$as_dir" && as_dir=. 1012 echo "PATH: $as_dir" 1013done 1014 1015} >&5 1016 1017cat >&5 <<_ACEOF 1018 1019 1020## ----------- ## 1021## Core tests. ## 1022## ----------- ## 1023 1024_ACEOF 1025 1026 1027# Keep a trace of the command line. 1028# Strip out --no-create and --no-recursion so they do not pile up. 1029# Strip out --silent because we don't want to record it for future runs. 1030# Also quote any args containing shell meta-characters. 1031# Make two passes to allow for proper duplicate-argument suppression. 1032ac_configure_args= 1033ac_configure_args0= 1034ac_configure_args1= 1035ac_sep= 1036ac_must_keep_next=false 1037for ac_pass in 1 2 1038do 1039 for ac_arg 1040 do 1041 case $ac_arg in 1042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1044 | -silent | --silent | --silen | --sile | --sil) 1045 continue ;; 1046 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1047 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1048 esac 1049 case $ac_pass in 1050 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1051 2) 1052 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1053 if test $ac_must_keep_next = true; then 1054 ac_must_keep_next=false # Got value, back to normal. 1055 else 1056 case $ac_arg in 1057 *=* | --config-cache | -C | -disable-* | --disable-* \ 1058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1060 | -with-* | --with-* | -without-* | --without-* | --x) 1061 case "$ac_configure_args0 " in 1062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1063 esac 1064 ;; 1065 -* ) ac_must_keep_next=true ;; 1066 esac 1067 fi 1068 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1069 # Get rid of the leading space. 1070 ac_sep=" " 1071 ;; 1072 esac 1073 done 1074done 1075$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1076$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1077 1078# When interrupted or exit'd, cleanup temporary files, and complete 1079# config.log. We remove comments because anyway the quotes in there 1080# would cause problems or look ugly. 1081# WARNING: Be sure not to use single quotes in there, as some shells, 1082# such as our DU 5.0 friend, will then `close' the trap. 1083trap 'exit_status=$? 1084 # Save into config.log some information that might help in debugging. 1085 { 1086 echo 1087 1088 cat <<\_ASBOX 1089## ---------------- ## 1090## Cache variables. ## 1091## ---------------- ## 1092_ASBOX 1093 echo 1094 # The following way of writing the cache mishandles newlines in values, 1095{ 1096 (set) 2>&1 | 1097 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1098 *ac_space=\ *) 1099 sed -n \ 1100 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1102 ;; 1103 *) 1104 sed -n \ 1105 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1106 ;; 1107 esac; 1108} 1109 echo 1110 1111 cat <<\_ASBOX 1112## ----------------- ## 1113## Output variables. ## 1114## ----------------- ## 1115_ASBOX 1116 echo 1117 for ac_var in $ac_subst_vars 1118 do 1119 eval ac_val=$`echo $ac_var` 1120 echo "$ac_var='"'"'$ac_val'"'"'" 1121 done | sort 1122 echo 1123 1124 if test -n "$ac_subst_files"; then 1125 cat <<\_ASBOX 1126## ------------- ## 1127## Output files. ## 1128## ------------- ## 1129_ASBOX 1130 echo 1131 for ac_var in $ac_subst_files 1132 do 1133 eval ac_val=$`echo $ac_var` 1134 echo "$ac_var='"'"'$ac_val'"'"'" 1135 done | sort 1136 echo 1137 fi 1138 1139 if test -s confdefs.h; then 1140 cat <<\_ASBOX 1141## ----------- ## 1142## confdefs.h. ## 1143## ----------- ## 1144_ASBOX 1145 echo 1146 sed "/^$/d" confdefs.h | sort 1147 echo 1148 fi 1149 test "$ac_signal" != 0 && 1150 echo "$as_me: caught signal $ac_signal" 1151 echo "$as_me: exit $exit_status" 1152 } >&5 1153 rm -f core *.core && 1154 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1155 exit $exit_status 1156 ' 0 1157for ac_signal in 1 2 13 15; do 1158 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1159done 1160ac_signal=0 1161 1162# confdefs.h avoids OS command line length limits that DEFS can exceed. 1163rm -rf conftest* confdefs.h 1164# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1165echo >confdefs.h 1166 1167# Predefined preprocessor variables. 1168 1169cat >>confdefs.h <<_ACEOF 1170#define PACKAGE_NAME "$PACKAGE_NAME" 1171_ACEOF 1172 1173 1174cat >>confdefs.h <<_ACEOF 1175#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1176_ACEOF 1177 1178 1179cat >>confdefs.h <<_ACEOF 1180#define PACKAGE_VERSION "$PACKAGE_VERSION" 1181_ACEOF 1182 1183 1184cat >>confdefs.h <<_ACEOF 1185#define PACKAGE_STRING "$PACKAGE_STRING" 1186_ACEOF 1187 1188 1189cat >>confdefs.h <<_ACEOF 1190#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1191_ACEOF 1192 1193 1194# Let the site file select an alternate cache file if it wants to. 1195# Prefer explicitly selected file to automatically selected ones. 1196if test -z "$CONFIG_SITE"; then 1197 if test "x$prefix" != xNONE; then 1198 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1199 else 1200 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1201 fi 1202fi 1203for ac_site_file in $CONFIG_SITE; do 1204 if test -r "$ac_site_file"; then 1205 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1206echo "$as_me: loading site script $ac_site_file" >&6;} 1207 sed 's/^/| /' "$ac_site_file" >&5 1208 . "$ac_site_file" 1209 fi 1210done 1211 1212if test -r "$cache_file"; then 1213 # Some versions of bash will fail to source /dev/null (special 1214 # files actually), so we avoid doing that. 1215 if test -f "$cache_file"; then 1216 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1217echo "$as_me: loading cache $cache_file" >&6;} 1218 case $cache_file in 1219 [\\/]* | ?:[\\/]* ) . $cache_file;; 1220 *) . ./$cache_file;; 1221 esac 1222 fi 1223else 1224 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1225echo "$as_me: creating cache $cache_file" >&6;} 1226 >$cache_file 1227fi 1228 1229# Check that the precious variables saved in the cache have kept the same 1230# value. 1231ac_cache_corrupted=false 1232for ac_var in `(set) 2>&1 | 1233 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1234 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1235 eval ac_new_set=\$ac_env_${ac_var}_set 1236 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1237 eval ac_new_val="\$ac_env_${ac_var}_value" 1238 case $ac_old_set,$ac_new_set in 1239 set,) 1240 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1241echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1242 ac_cache_corrupted=: ;; 1243 ,set) 1244 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1245echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1246 ac_cache_corrupted=: ;; 1247 ,);; 1248 *) 1249 if test "x$ac_old_val" != "x$ac_new_val"; then 1250 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1251echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1252 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1253echo "$as_me: former value: $ac_old_val" >&2;} 1254 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1255echo "$as_me: current value: $ac_new_val" >&2;} 1256 ac_cache_corrupted=: 1257 fi;; 1258 esac 1259 # Pass precious variables to config.status. 1260 if test "$ac_new_set" = set; then 1261 case $ac_new_val in 1262 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1263 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1264 *) ac_arg=$ac_var=$ac_new_val ;; 1265 esac 1266 case " $ac_configure_args " in 1267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1268 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1269 esac 1270 fi 1271done 1272if $ac_cache_corrupted; then 1273 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1274echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1275 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1276echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1277 { (exit 1); exit 1; }; } 1278fi 1279 1280ac_ext=c 1281ac_cpp='$CPP $CPPFLAGS' 1282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1284ac_compiler_gnu=$ac_cv_c_compiler_gnu 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306# The following define is needed when building with Cygwin since newer 1307# versions of autoconf incorrectly set SHELL to /bin/bash instead of 1308# /bin/sh. The bash shell seems to suffer from some strange failures. 1309SHELL=/bin/sh 1310 1311TCL_VERSION=8.5 1312TCL_MAJOR_VERSION=8 1313TCL_MINOR_VERSION=5 1314TCL_PATCH_LEVEL=".19" 1315VER=$TCL_MAJOR_VERSION$TCL_MINOR_VERSION 1316 1317TCL_DDE_VERSION=1.3 1318TCL_DDE_MAJOR_VERSION=1 1319TCL_DDE_MINOR_VERSION=3 1320DDEVER=$TCL_DDE_MAJOR_VERSION$TCL_DDE_MINOR_VERSION 1321 1322TCL_REG_VERSION=1.2 1323TCL_REG_MAJOR_VERSION=1 1324TCL_REG_MINOR_VERSION=2 1325REGVER=$TCL_REG_MAJOR_VERSION$TCL_REG_MINOR_VERSION 1326 1327#------------------------------------------------------------------------ 1328# Handle the --prefix=... option 1329#------------------------------------------------------------------------ 1330 1331if test "${prefix}" = "NONE"; then 1332 prefix=/usr/local 1333fi 1334if test "${exec_prefix}" = "NONE"; then 1335 exec_prefix=$prefix 1336fi 1337# libdir must be a fully qualified path (not ${exec_prefix}/lib) 1338eval libdir="$libdir" 1339 1340#------------------------------------------------------------------------ 1341# Standard compiler checks 1342#------------------------------------------------------------------------ 1343 1344# If the user did not set CFLAGS, set it now to keep 1345# the AC_PROG_CC macro from adding "-g -O2". 1346if test "${CFLAGS+set}" != "set" ; then 1347 CFLAGS="" 1348fi 1349 1350ac_ext=c 1351ac_cpp='$CPP $CPPFLAGS' 1352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1354ac_compiler_gnu=$ac_cv_c_compiler_gnu 1355if test -n "$ac_tool_prefix"; then 1356 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1357set dummy ${ac_tool_prefix}gcc; ac_word=$2 1358echo "$as_me:$LINENO: checking for $ac_word" >&5 1359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1360if test "${ac_cv_prog_CC+set}" = set; then 1361 echo $ECHO_N "(cached) $ECHO_C" >&6 1362else 1363 if test -n "$CC"; then 1364 ac_cv_prog_CC="$CC" # Let the user override the test. 1365else 1366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1367for as_dir in $PATH 1368do 1369 IFS=$as_save_IFS 1370 test -z "$as_dir" && as_dir=. 1371 for ac_exec_ext in '' $ac_executable_extensions; do 1372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1373 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1375 break 2 1376 fi 1377done 1378done 1379 1380fi 1381fi 1382CC=$ac_cv_prog_CC 1383if test -n "$CC"; then 1384 echo "$as_me:$LINENO: result: $CC" >&5 1385echo "${ECHO_T}$CC" >&6 1386else 1387 echo "$as_me:$LINENO: result: no" >&5 1388echo "${ECHO_T}no" >&6 1389fi 1390 1391fi 1392if test -z "$ac_cv_prog_CC"; then 1393 ac_ct_CC=$CC 1394 # Extract the first word of "gcc", so it can be a program name with args. 1395set dummy gcc; ac_word=$2 1396echo "$as_me:$LINENO: checking for $ac_word" >&5 1397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1398if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1399 echo $ECHO_N "(cached) $ECHO_C" >&6 1400else 1401 if test -n "$ac_ct_CC"; then 1402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1403else 1404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1405for as_dir in $PATH 1406do 1407 IFS=$as_save_IFS 1408 test -z "$as_dir" && as_dir=. 1409 for ac_exec_ext in '' $ac_executable_extensions; do 1410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1411 ac_cv_prog_ac_ct_CC="gcc" 1412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1413 break 2 1414 fi 1415done 1416done 1417 1418fi 1419fi 1420ac_ct_CC=$ac_cv_prog_ac_ct_CC 1421if test -n "$ac_ct_CC"; then 1422 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1423echo "${ECHO_T}$ac_ct_CC" >&6 1424else 1425 echo "$as_me:$LINENO: result: no" >&5 1426echo "${ECHO_T}no" >&6 1427fi 1428 1429 CC=$ac_ct_CC 1430else 1431 CC="$ac_cv_prog_CC" 1432fi 1433 1434if test -z "$CC"; then 1435 if test -n "$ac_tool_prefix"; then 1436 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1437set dummy ${ac_tool_prefix}cc; ac_word=$2 1438echo "$as_me:$LINENO: checking for $ac_word" >&5 1439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1440if test "${ac_cv_prog_CC+set}" = set; then 1441 echo $ECHO_N "(cached) $ECHO_C" >&6 1442else 1443 if test -n "$CC"; then 1444 ac_cv_prog_CC="$CC" # Let the user override the test. 1445else 1446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1447for as_dir in $PATH 1448do 1449 IFS=$as_save_IFS 1450 test -z "$as_dir" && as_dir=. 1451 for ac_exec_ext in '' $ac_executable_extensions; do 1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1453 ac_cv_prog_CC="${ac_tool_prefix}cc" 1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1455 break 2 1456 fi 1457done 1458done 1459 1460fi 1461fi 1462CC=$ac_cv_prog_CC 1463if test -n "$CC"; then 1464 echo "$as_me:$LINENO: result: $CC" >&5 1465echo "${ECHO_T}$CC" >&6 1466else 1467 echo "$as_me:$LINENO: result: no" >&5 1468echo "${ECHO_T}no" >&6 1469fi 1470 1471fi 1472if test -z "$ac_cv_prog_CC"; then 1473 ac_ct_CC=$CC 1474 # Extract the first word of "cc", so it can be a program name with args. 1475set dummy cc; ac_word=$2 1476echo "$as_me:$LINENO: checking for $ac_word" >&5 1477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1478if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1479 echo $ECHO_N "(cached) $ECHO_C" >&6 1480else 1481 if test -n "$ac_ct_CC"; then 1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1483else 1484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1485for as_dir in $PATH 1486do 1487 IFS=$as_save_IFS 1488 test -z "$as_dir" && as_dir=. 1489 for ac_exec_ext in '' $ac_executable_extensions; do 1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1491 ac_cv_prog_ac_ct_CC="cc" 1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1493 break 2 1494 fi 1495done 1496done 1497 1498fi 1499fi 1500ac_ct_CC=$ac_cv_prog_ac_ct_CC 1501if test -n "$ac_ct_CC"; then 1502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1503echo "${ECHO_T}$ac_ct_CC" >&6 1504else 1505 echo "$as_me:$LINENO: result: no" >&5 1506echo "${ECHO_T}no" >&6 1507fi 1508 1509 CC=$ac_ct_CC 1510else 1511 CC="$ac_cv_prog_CC" 1512fi 1513 1514fi 1515if test -z "$CC"; then 1516 # Extract the first word of "cc", so it can be a program name with args. 1517set dummy cc; ac_word=$2 1518echo "$as_me:$LINENO: checking for $ac_word" >&5 1519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1520if test "${ac_cv_prog_CC+set}" = set; then 1521 echo $ECHO_N "(cached) $ECHO_C" >&6 1522else 1523 if test -n "$CC"; then 1524 ac_cv_prog_CC="$CC" # Let the user override the test. 1525else 1526 ac_prog_rejected=no 1527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1528for as_dir in $PATH 1529do 1530 IFS=$as_save_IFS 1531 test -z "$as_dir" && as_dir=. 1532 for ac_exec_ext in '' $ac_executable_extensions; do 1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1534 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1535 ac_prog_rejected=yes 1536 continue 1537 fi 1538 ac_cv_prog_CC="cc" 1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1540 break 2 1541 fi 1542done 1543done 1544 1545if test $ac_prog_rejected = yes; then 1546 # We found a bogon in the path, so make sure we never use it. 1547 set dummy $ac_cv_prog_CC 1548 shift 1549 if test $# != 0; then 1550 # We chose a different compiler from the bogus one. 1551 # However, it has the same basename, so the bogon will be chosen 1552 # first if we set CC to just the basename; use the full file name. 1553 shift 1554 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1555 fi 1556fi 1557fi 1558fi 1559CC=$ac_cv_prog_CC 1560if test -n "$CC"; then 1561 echo "$as_me:$LINENO: result: $CC" >&5 1562echo "${ECHO_T}$CC" >&6 1563else 1564 echo "$as_me:$LINENO: result: no" >&5 1565echo "${ECHO_T}no" >&6 1566fi 1567 1568fi 1569if test -z "$CC"; then 1570 if test -n "$ac_tool_prefix"; then 1571 for ac_prog in cl 1572 do 1573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1574set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1575echo "$as_me:$LINENO: checking for $ac_word" >&5 1576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1577if test "${ac_cv_prog_CC+set}" = set; then 1578 echo $ECHO_N "(cached) $ECHO_C" >&6 1579else 1580 if test -n "$CC"; then 1581 ac_cv_prog_CC="$CC" # Let the user override the test. 1582else 1583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1584for as_dir in $PATH 1585do 1586 IFS=$as_save_IFS 1587 test -z "$as_dir" && as_dir=. 1588 for ac_exec_ext in '' $ac_executable_extensions; do 1589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1590 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1592 break 2 1593 fi 1594done 1595done 1596 1597fi 1598fi 1599CC=$ac_cv_prog_CC 1600if test -n "$CC"; then 1601 echo "$as_me:$LINENO: result: $CC" >&5 1602echo "${ECHO_T}$CC" >&6 1603else 1604 echo "$as_me:$LINENO: result: no" >&5 1605echo "${ECHO_T}no" >&6 1606fi 1607 1608 test -n "$CC" && break 1609 done 1610fi 1611if test -z "$CC"; then 1612 ac_ct_CC=$CC 1613 for ac_prog in cl 1614do 1615 # Extract the first word of "$ac_prog", so it can be a program name with args. 1616set dummy $ac_prog; ac_word=$2 1617echo "$as_me:$LINENO: checking for $ac_word" >&5 1618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1619if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1620 echo $ECHO_N "(cached) $ECHO_C" >&6 1621else 1622 if test -n "$ac_ct_CC"; then 1623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1624else 1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1626for as_dir in $PATH 1627do 1628 IFS=$as_save_IFS 1629 test -z "$as_dir" && as_dir=. 1630 for ac_exec_ext in '' $ac_executable_extensions; do 1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1632 ac_cv_prog_ac_ct_CC="$ac_prog" 1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1634 break 2 1635 fi 1636done 1637done 1638 1639fi 1640fi 1641ac_ct_CC=$ac_cv_prog_ac_ct_CC 1642if test -n "$ac_ct_CC"; then 1643 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1644echo "${ECHO_T}$ac_ct_CC" >&6 1645else 1646 echo "$as_me:$LINENO: result: no" >&5 1647echo "${ECHO_T}no" >&6 1648fi 1649 1650 test -n "$ac_ct_CC" && break 1651done 1652 1653 CC=$ac_ct_CC 1654fi 1655 1656fi 1657 1658 1659test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1660See \`config.log' for more details." >&5 1661echo "$as_me: error: no acceptable C compiler found in \$PATH 1662See \`config.log' for more details." >&2;} 1663 { (exit 1); exit 1; }; } 1664 1665# Provide some information about the compiler. 1666echo "$as_me:$LINENO:" \ 1667 "checking for C compiler version" >&5 1668ac_compiler=`set X $ac_compile; echo $2` 1669{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1670 (eval $ac_compiler --version </dev/null >&5) 2>&5 1671 ac_status=$? 1672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1673 (exit $ac_status); } 1674{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1675 (eval $ac_compiler -v </dev/null >&5) 2>&5 1676 ac_status=$? 1677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1678 (exit $ac_status); } 1679{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1680 (eval $ac_compiler -V </dev/null >&5) 2>&5 1681 ac_status=$? 1682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1683 (exit $ac_status); } 1684 1685cat >conftest.$ac_ext <<_ACEOF 1686/* confdefs.h. */ 1687_ACEOF 1688cat confdefs.h >>conftest.$ac_ext 1689cat >>conftest.$ac_ext <<_ACEOF 1690/* end confdefs.h. */ 1691 1692int 1693main () 1694{ 1695 1696 ; 1697 return 0; 1698} 1699_ACEOF 1700ac_clean_files_save=$ac_clean_files 1701ac_clean_files="$ac_clean_files a.out a.exe b.out" 1702# Try to create an executable without -o first, disregard a.out. 1703# It will help us diagnose broken compilers, and finding out an intuition 1704# of exeext. 1705echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1706echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1707ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1708if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1709 (eval $ac_link_default) 2>&5 1710 ac_status=$? 1711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1712 (exit $ac_status); }; then 1713 # Find the output, starting from the most likely. This scheme is 1714# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1715# resort. 1716 1717# Be careful to initialize this variable, since it used to be cached. 1718# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1719ac_cv_exeext= 1720# b.out is created by i960 compilers. 1721for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1722do 1723 test -f "$ac_file" || continue 1724 case $ac_file in 1725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1726 ;; 1727 conftest.$ac_ext ) 1728 # This is the source file. 1729 ;; 1730 [ab].out ) 1731 # We found the default executable, but exeext='' is most 1732 # certainly right. 1733 break;; 1734 *.* ) 1735 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1736 # FIXME: I believe we export ac_cv_exeext for Libtool, 1737 # but it would be cool to find out if it's true. Does anybody 1738 # maintain Libtool? --akim. 1739 export ac_cv_exeext 1740 break;; 1741 * ) 1742 break;; 1743 esac 1744done 1745else 1746 echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1750See \`config.log' for more details." >&5 1751echo "$as_me: error: C compiler cannot create executables 1752See \`config.log' for more details." >&2;} 1753 { (exit 77); exit 77; }; } 1754fi 1755 1756ac_exeext=$ac_cv_exeext 1757echo "$as_me:$LINENO: result: $ac_file" >&5 1758echo "${ECHO_T}$ac_file" >&6 1759 1760# Check the compiler produces executables we can run. If not, either 1761# the compiler is broken, or we cross compile. 1762echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1763echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1764# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1765# If not cross compiling, check that we can run a simple program. 1766if test "$cross_compiling" != yes; then 1767 if { ac_try='./$ac_file' 1768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1769 (eval $ac_try) 2>&5 1770 ac_status=$? 1771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1772 (exit $ac_status); }; }; then 1773 cross_compiling=no 1774 else 1775 if test "$cross_compiling" = maybe; then 1776 cross_compiling=yes 1777 else 1778 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1779If you meant to cross compile, use \`--host'. 1780See \`config.log' for more details." >&5 1781echo "$as_me: error: cannot run C compiled programs. 1782If you meant to cross compile, use \`--host'. 1783See \`config.log' for more details." >&2;} 1784 { (exit 1); exit 1; }; } 1785 fi 1786 fi 1787fi 1788echo "$as_me:$LINENO: result: yes" >&5 1789echo "${ECHO_T}yes" >&6 1790 1791rm -f a.out a.exe conftest$ac_cv_exeext b.out 1792ac_clean_files=$ac_clean_files_save 1793# Check the compiler produces executables we can run. If not, either 1794# the compiler is broken, or we cross compile. 1795echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1796echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1797echo "$as_me:$LINENO: result: $cross_compiling" >&5 1798echo "${ECHO_T}$cross_compiling" >&6 1799 1800echo "$as_me:$LINENO: checking for suffix of executables" >&5 1801echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1803 (eval $ac_link) 2>&5 1804 ac_status=$? 1805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1806 (exit $ac_status); }; then 1807 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1808# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1809# work properly (i.e., refer to `conftest.exe'), while it won't with 1810# `rm'. 1811for ac_file in conftest.exe conftest conftest.*; do 1812 test -f "$ac_file" || continue 1813 case $ac_file in 1814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1815 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1816 export ac_cv_exeext 1817 break;; 1818 * ) break;; 1819 esac 1820done 1821else 1822 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1823See \`config.log' for more details." >&5 1824echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1825See \`config.log' for more details." >&2;} 1826 { (exit 1); exit 1; }; } 1827fi 1828 1829rm -f conftest$ac_cv_exeext 1830echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1831echo "${ECHO_T}$ac_cv_exeext" >&6 1832 1833rm -f conftest.$ac_ext 1834EXEEXT=$ac_cv_exeext 1835ac_exeext=$EXEEXT 1836echo "$as_me:$LINENO: checking for suffix of object files" >&5 1837echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1838if test "${ac_cv_objext+set}" = set; then 1839 echo $ECHO_N "(cached) $ECHO_C" >&6 1840else 1841 cat >conftest.$ac_ext <<_ACEOF 1842/* confdefs.h. */ 1843_ACEOF 1844cat confdefs.h >>conftest.$ac_ext 1845cat >>conftest.$ac_ext <<_ACEOF 1846/* end confdefs.h. */ 1847 1848int 1849main () 1850{ 1851 1852 ; 1853 return 0; 1854} 1855_ACEOF 1856rm -f conftest.o conftest.obj 1857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1858 (eval $ac_compile) 2>&5 1859 ac_status=$? 1860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1861 (exit $ac_status); }; then 1862 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1863 case $ac_file in 1864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1865 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1866 break;; 1867 esac 1868done 1869else 1870 echo "$as_me: failed program was:" >&5 1871sed 's/^/| /' conftest.$ac_ext >&5 1872 1873{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1874See \`config.log' for more details." >&5 1875echo "$as_me: error: cannot compute suffix of object files: cannot compile 1876See \`config.log' for more details." >&2;} 1877 { (exit 1); exit 1; }; } 1878fi 1879 1880rm -f conftest.$ac_cv_objext conftest.$ac_ext 1881fi 1882echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1883echo "${ECHO_T}$ac_cv_objext" >&6 1884OBJEXT=$ac_cv_objext 1885ac_objext=$OBJEXT 1886echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1887echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1888if test "${ac_cv_c_compiler_gnu+set}" = set; then 1889 echo $ECHO_N "(cached) $ECHO_C" >&6 1890else 1891 cat >conftest.$ac_ext <<_ACEOF 1892/* confdefs.h. */ 1893_ACEOF 1894cat confdefs.h >>conftest.$ac_ext 1895cat >>conftest.$ac_ext <<_ACEOF 1896/* end confdefs.h. */ 1897 1898int 1899main () 1900{ 1901#ifndef __GNUC__ 1902 choke me 1903#endif 1904 1905 ; 1906 return 0; 1907} 1908_ACEOF 1909rm -f conftest.$ac_objext 1910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1911 (eval $ac_compile) 2>conftest.er1 1912 ac_status=$? 1913 grep -v '^ *+' conftest.er1 >conftest.err 1914 rm -f conftest.er1 1915 cat conftest.err >&5 1916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1917 (exit $ac_status); } && 1918 { ac_try='test -z "$ac_c_werror_flag" 1919 || test ! -s conftest.err' 1920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1921 (eval $ac_try) 2>&5 1922 ac_status=$? 1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1924 (exit $ac_status); }; } && 1925 { ac_try='test -s conftest.$ac_objext' 1926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1927 (eval $ac_try) 2>&5 1928 ac_status=$? 1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1930 (exit $ac_status); }; }; then 1931 ac_compiler_gnu=yes 1932else 1933 echo "$as_me: failed program was:" >&5 1934sed 's/^/| /' conftest.$ac_ext >&5 1935 1936ac_compiler_gnu=no 1937fi 1938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1939ac_cv_c_compiler_gnu=$ac_compiler_gnu 1940 1941fi 1942echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1943echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1944GCC=`test $ac_compiler_gnu = yes && echo yes` 1945ac_test_CFLAGS=${CFLAGS+set} 1946ac_save_CFLAGS=$CFLAGS 1947CFLAGS="-g" 1948echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1949echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1950if test "${ac_cv_prog_cc_g+set}" = set; then 1951 echo $ECHO_N "(cached) $ECHO_C" >&6 1952else 1953 cat >conftest.$ac_ext <<_ACEOF 1954/* confdefs.h. */ 1955_ACEOF 1956cat confdefs.h >>conftest.$ac_ext 1957cat >>conftest.$ac_ext <<_ACEOF 1958/* end confdefs.h. */ 1959 1960int 1961main () 1962{ 1963 1964 ; 1965 return 0; 1966} 1967_ACEOF 1968rm -f conftest.$ac_objext 1969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1970 (eval $ac_compile) 2>conftest.er1 1971 ac_status=$? 1972 grep -v '^ *+' conftest.er1 >conftest.err 1973 rm -f conftest.er1 1974 cat conftest.err >&5 1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1976 (exit $ac_status); } && 1977 { ac_try='test -z "$ac_c_werror_flag" 1978 || test ! -s conftest.err' 1979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1980 (eval $ac_try) 2>&5 1981 ac_status=$? 1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1983 (exit $ac_status); }; } && 1984 { ac_try='test -s conftest.$ac_objext' 1985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1986 (eval $ac_try) 2>&5 1987 ac_status=$? 1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1989 (exit $ac_status); }; }; then 1990 ac_cv_prog_cc_g=yes 1991else 1992 echo "$as_me: failed program was:" >&5 1993sed 's/^/| /' conftest.$ac_ext >&5 1994 1995ac_cv_prog_cc_g=no 1996fi 1997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1998fi 1999echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2000echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2001if test "$ac_test_CFLAGS" = set; then 2002 CFLAGS=$ac_save_CFLAGS 2003elif test $ac_cv_prog_cc_g = yes; then 2004 if test "$GCC" = yes; then 2005 CFLAGS="-g -O2" 2006 else 2007 CFLAGS="-g" 2008 fi 2009else 2010 if test "$GCC" = yes; then 2011 CFLAGS="-O2" 2012 else 2013 CFLAGS= 2014 fi 2015fi 2016echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2017echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2018if test "${ac_cv_prog_cc_stdc+set}" = set; then 2019 echo $ECHO_N "(cached) $ECHO_C" >&6 2020else 2021 ac_cv_prog_cc_stdc=no 2022ac_save_CC=$CC 2023cat >conftest.$ac_ext <<_ACEOF 2024/* confdefs.h. */ 2025_ACEOF 2026cat confdefs.h >>conftest.$ac_ext 2027cat >>conftest.$ac_ext <<_ACEOF 2028/* end confdefs.h. */ 2029#include <stdarg.h> 2030#include <stdio.h> 2031#include <sys/types.h> 2032#include <sys/stat.h> 2033/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2034struct buf { int x; }; 2035FILE * (*rcsopen) (struct buf *, struct stat *, int); 2036static char *e (p, i) 2037 char **p; 2038 int i; 2039{ 2040 return p[i]; 2041} 2042static char *f (char * (*g) (char **, int), char **p, ...) 2043{ 2044 char *s; 2045 va_list v; 2046 va_start (v,p); 2047 s = g (p, va_arg (v,int)); 2048 va_end (v); 2049 return s; 2050} 2051 2052/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2053 function prototypes and stuff, but not '\xHH' hex character constants. 2054 These don't provoke an error unfortunately, instead are silently treated 2055 as 'x'. The following induces an error, until -std1 is added to get 2056 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2057 array size at least. It's necessary to write '\x00'==0 to get something 2058 that's true only with -std1. */ 2059int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2060 2061int test (int i, double x); 2062struct s1 {int (*f) (int a);}; 2063struct s2 {int (*f) (double a);}; 2064int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2065int argc; 2066char **argv; 2067int 2068main () 2069{ 2070return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2071 ; 2072 return 0; 2073} 2074_ACEOF 2075# Don't try gcc -ansi; that turns off useful extensions and 2076# breaks some systems' header files. 2077# AIX -qlanglvl=ansi 2078# Ultrix and OSF/1 -std1 2079# HP-UX 10.20 and later -Ae 2080# HP-UX older versions -Aa -D_HPUX_SOURCE 2081# SVR4 -Xc -D__EXTENSIONS__ 2082for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2083do 2084 CC="$ac_save_CC $ac_arg" 2085 rm -f conftest.$ac_objext 2086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2087 (eval $ac_compile) 2>conftest.er1 2088 ac_status=$? 2089 grep -v '^ *+' conftest.er1 >conftest.err 2090 rm -f conftest.er1 2091 cat conftest.err >&5 2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2093 (exit $ac_status); } && 2094 { ac_try='test -z "$ac_c_werror_flag" 2095 || test ! -s conftest.err' 2096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2097 (eval $ac_try) 2>&5 2098 ac_status=$? 2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2100 (exit $ac_status); }; } && 2101 { ac_try='test -s conftest.$ac_objext' 2102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2103 (eval $ac_try) 2>&5 2104 ac_status=$? 2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2106 (exit $ac_status); }; }; then 2107 ac_cv_prog_cc_stdc=$ac_arg 2108break 2109else 2110 echo "$as_me: failed program was:" >&5 2111sed 's/^/| /' conftest.$ac_ext >&5 2112 2113fi 2114rm -f conftest.err conftest.$ac_objext 2115done 2116rm -f conftest.$ac_ext conftest.$ac_objext 2117CC=$ac_save_CC 2118 2119fi 2120 2121case "x$ac_cv_prog_cc_stdc" in 2122 x|xno) 2123 echo "$as_me:$LINENO: result: none needed" >&5 2124echo "${ECHO_T}none needed" >&6 ;; 2125 *) 2126 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2127echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2128 CC="$CC $ac_cv_prog_cc_stdc" ;; 2129esac 2130 2131# Some people use a C++ compiler to compile C. Since we use `exit', 2132# in C++ we need to declare it. In case someone uses the same compiler 2133# for both compiling C and C++ we need to have the C++ compiler decide 2134# the declaration of exit, since it's the most demanding environment. 2135cat >conftest.$ac_ext <<_ACEOF 2136#ifndef __cplusplus 2137 choke me 2138#endif 2139_ACEOF 2140rm -f conftest.$ac_objext 2141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2142 (eval $ac_compile) 2>conftest.er1 2143 ac_status=$? 2144 grep -v '^ *+' conftest.er1 >conftest.err 2145 rm -f conftest.er1 2146 cat conftest.err >&5 2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2148 (exit $ac_status); } && 2149 { ac_try='test -z "$ac_c_werror_flag" 2150 || test ! -s conftest.err' 2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2152 (eval $ac_try) 2>&5 2153 ac_status=$? 2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2155 (exit $ac_status); }; } && 2156 { ac_try='test -s conftest.$ac_objext' 2157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2158 (eval $ac_try) 2>&5 2159 ac_status=$? 2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2161 (exit $ac_status); }; }; then 2162 for ac_declaration in \ 2163 '' \ 2164 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2165 'extern "C" void std::exit (int); using std::exit;' \ 2166 'extern "C" void exit (int) throw ();' \ 2167 'extern "C" void exit (int);' \ 2168 'void exit (int);' 2169do 2170 cat >conftest.$ac_ext <<_ACEOF 2171/* confdefs.h. */ 2172_ACEOF 2173cat confdefs.h >>conftest.$ac_ext 2174cat >>conftest.$ac_ext <<_ACEOF 2175/* end confdefs.h. */ 2176$ac_declaration 2177#include <stdlib.h> 2178int 2179main () 2180{ 2181exit (42); 2182 ; 2183 return 0; 2184} 2185_ACEOF 2186rm -f conftest.$ac_objext 2187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2188 (eval $ac_compile) 2>conftest.er1 2189 ac_status=$? 2190 grep -v '^ *+' conftest.er1 >conftest.err 2191 rm -f conftest.er1 2192 cat conftest.err >&5 2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2194 (exit $ac_status); } && 2195 { ac_try='test -z "$ac_c_werror_flag" 2196 || test ! -s conftest.err' 2197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2198 (eval $ac_try) 2>&5 2199 ac_status=$? 2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2201 (exit $ac_status); }; } && 2202 { ac_try='test -s conftest.$ac_objext' 2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2204 (eval $ac_try) 2>&5 2205 ac_status=$? 2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2207 (exit $ac_status); }; }; then 2208 : 2209else 2210 echo "$as_me: failed program was:" >&5 2211sed 's/^/| /' conftest.$ac_ext >&5 2212 2213continue 2214fi 2215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2216 cat >conftest.$ac_ext <<_ACEOF 2217/* confdefs.h. */ 2218_ACEOF 2219cat confdefs.h >>conftest.$ac_ext 2220cat >>conftest.$ac_ext <<_ACEOF 2221/* end confdefs.h. */ 2222$ac_declaration 2223int 2224main () 2225{ 2226exit (42); 2227 ; 2228 return 0; 2229} 2230_ACEOF 2231rm -f conftest.$ac_objext 2232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2233 (eval $ac_compile) 2>conftest.er1 2234 ac_status=$? 2235 grep -v '^ *+' conftest.er1 >conftest.err 2236 rm -f conftest.er1 2237 cat conftest.err >&5 2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2239 (exit $ac_status); } && 2240 { ac_try='test -z "$ac_c_werror_flag" 2241 || test ! -s conftest.err' 2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2243 (eval $ac_try) 2>&5 2244 ac_status=$? 2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2246 (exit $ac_status); }; } && 2247 { ac_try='test -s conftest.$ac_objext' 2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2249 (eval $ac_try) 2>&5 2250 ac_status=$? 2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2252 (exit $ac_status); }; }; then 2253 break 2254else 2255 echo "$as_me: failed program was:" >&5 2256sed 's/^/| /' conftest.$ac_ext >&5 2257 2258fi 2259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2260done 2261rm -f conftest* 2262if test -n "$ac_declaration"; then 2263 echo '#ifdef __cplusplus' >>confdefs.h 2264 echo $ac_declaration >>confdefs.h 2265 echo '#endif' >>confdefs.h 2266fi 2267 2268else 2269 echo "$as_me: failed program was:" >&5 2270sed 's/^/| /' conftest.$ac_ext >&5 2271 2272fi 2273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2274ac_ext=c 2275ac_cpp='$CPP $CPPFLAGS' 2276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2278ac_compiler_gnu=$ac_cv_c_compiler_gnu 2279 2280 2281echo "$as_me:$LINENO: checking for inline" >&5 2282echo $ECHO_N "checking for inline... $ECHO_C" >&6 2283if test "${ac_cv_c_inline+set}" = set; then 2284 echo $ECHO_N "(cached) $ECHO_C" >&6 2285else 2286 ac_cv_c_inline=no 2287for ac_kw in inline __inline__ __inline; do 2288 cat >conftest.$ac_ext <<_ACEOF 2289/* confdefs.h. */ 2290_ACEOF 2291cat confdefs.h >>conftest.$ac_ext 2292cat >>conftest.$ac_ext <<_ACEOF 2293/* end confdefs.h. */ 2294#ifndef __cplusplus 2295typedef int foo_t; 2296static $ac_kw foo_t static_foo () {return 0; } 2297$ac_kw foo_t foo () {return 0; } 2298#endif 2299 2300_ACEOF 2301rm -f conftest.$ac_objext 2302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2303 (eval $ac_compile) 2>conftest.er1 2304 ac_status=$? 2305 grep -v '^ *+' conftest.er1 >conftest.err 2306 rm -f conftest.er1 2307 cat conftest.err >&5 2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2309 (exit $ac_status); } && 2310 { ac_try='test -z "$ac_c_werror_flag" 2311 || test ! -s conftest.err' 2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2313 (eval $ac_try) 2>&5 2314 ac_status=$? 2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2316 (exit $ac_status); }; } && 2317 { ac_try='test -s conftest.$ac_objext' 2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2319 (eval $ac_try) 2>&5 2320 ac_status=$? 2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2322 (exit $ac_status); }; }; then 2323 ac_cv_c_inline=$ac_kw; break 2324else 2325 echo "$as_me: failed program was:" >&5 2326sed 's/^/| /' conftest.$ac_ext >&5 2327 2328fi 2329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2330done 2331 2332fi 2333echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 2334echo "${ECHO_T}$ac_cv_c_inline" >&6 2335 2336 2337case $ac_cv_c_inline in 2338 inline | yes) ;; 2339 *) 2340 case $ac_cv_c_inline in 2341 no) ac_val=;; 2342 *) ac_val=$ac_cv_c_inline;; 2343 esac 2344 cat >>confdefs.h <<_ACEOF 2345#ifndef __cplusplus 2346#define inline $ac_val 2347#endif 2348_ACEOF 2349 ;; 2350esac 2351 2352ac_ext=c 2353ac_cpp='$CPP $CPPFLAGS' 2354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2356ac_compiler_gnu=$ac_cv_c_compiler_gnu 2357echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2358echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2359# On Suns, sometimes $CPP names a directory. 2360if test -n "$CPP" && test -d "$CPP"; then 2361 CPP= 2362fi 2363if test -z "$CPP"; then 2364 if test "${ac_cv_prog_CPP+set}" = set; then 2365 echo $ECHO_N "(cached) $ECHO_C" >&6 2366else 2367 # Double quotes because CPP needs to be expanded 2368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2369 do 2370 ac_preproc_ok=false 2371for ac_c_preproc_warn_flag in '' yes 2372do 2373 # Use a header file that comes with gcc, so configuring glibc 2374 # with a fresh cross-compiler works. 2375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2376 # <limits.h> exists even on freestanding compilers. 2377 # On the NeXT, cc -E runs the code through the compiler's parser, 2378 # not just through cpp. "Syntax error" is here to catch this case. 2379 cat >conftest.$ac_ext <<_ACEOF 2380/* confdefs.h. */ 2381_ACEOF 2382cat confdefs.h >>conftest.$ac_ext 2383cat >>conftest.$ac_ext <<_ACEOF 2384/* end confdefs.h. */ 2385#ifdef __STDC__ 2386# include <limits.h> 2387#else 2388# include <assert.h> 2389#endif 2390 Syntax error 2391_ACEOF 2392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2394 ac_status=$? 2395 grep -v '^ *+' conftest.er1 >conftest.err 2396 rm -f conftest.er1 2397 cat conftest.err >&5 2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2399 (exit $ac_status); } >/dev/null; then 2400 if test -s conftest.err; then 2401 ac_cpp_err=$ac_c_preproc_warn_flag 2402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2403 else 2404 ac_cpp_err= 2405 fi 2406else 2407 ac_cpp_err=yes 2408fi 2409if test -z "$ac_cpp_err"; then 2410 : 2411else 2412 echo "$as_me: failed program was:" >&5 2413sed 's/^/| /' conftest.$ac_ext >&5 2414 2415 # Broken: fails on valid input. 2416continue 2417fi 2418rm -f conftest.err conftest.$ac_ext 2419 2420 # OK, works on sane cases. Now check whether non-existent headers 2421 # can be detected and how. 2422 cat >conftest.$ac_ext <<_ACEOF 2423/* confdefs.h. */ 2424_ACEOF 2425cat confdefs.h >>conftest.$ac_ext 2426cat >>conftest.$ac_ext <<_ACEOF 2427/* end confdefs.h. */ 2428#include <ac_nonexistent.h> 2429_ACEOF 2430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2432 ac_status=$? 2433 grep -v '^ *+' conftest.er1 >conftest.err 2434 rm -f conftest.er1 2435 cat conftest.err >&5 2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2437 (exit $ac_status); } >/dev/null; then 2438 if test -s conftest.err; then 2439 ac_cpp_err=$ac_c_preproc_warn_flag 2440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2441 else 2442 ac_cpp_err= 2443 fi 2444else 2445 ac_cpp_err=yes 2446fi 2447if test -z "$ac_cpp_err"; then 2448 # Broken: success on invalid input. 2449continue 2450else 2451 echo "$as_me: failed program was:" >&5 2452sed 's/^/| /' conftest.$ac_ext >&5 2453 2454 # Passes both tests. 2455ac_preproc_ok=: 2456break 2457fi 2458rm -f conftest.err conftest.$ac_ext 2459 2460done 2461# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2462rm -f conftest.err conftest.$ac_ext 2463if $ac_preproc_ok; then 2464 break 2465fi 2466 2467 done 2468 ac_cv_prog_CPP=$CPP 2469 2470fi 2471 CPP=$ac_cv_prog_CPP 2472else 2473 ac_cv_prog_CPP=$CPP 2474fi 2475echo "$as_me:$LINENO: result: $CPP" >&5 2476echo "${ECHO_T}$CPP" >&6 2477ac_preproc_ok=false 2478for ac_c_preproc_warn_flag in '' yes 2479do 2480 # Use a header file that comes with gcc, so configuring glibc 2481 # with a fresh cross-compiler works. 2482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2483 # <limits.h> exists even on freestanding compilers. 2484 # On the NeXT, cc -E runs the code through the compiler's parser, 2485 # not just through cpp. "Syntax error" is here to catch this case. 2486 cat >conftest.$ac_ext <<_ACEOF 2487/* confdefs.h. */ 2488_ACEOF 2489cat confdefs.h >>conftest.$ac_ext 2490cat >>conftest.$ac_ext <<_ACEOF 2491/* end confdefs.h. */ 2492#ifdef __STDC__ 2493# include <limits.h> 2494#else 2495# include <assert.h> 2496#endif 2497 Syntax error 2498_ACEOF 2499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2501 ac_status=$? 2502 grep -v '^ *+' conftest.er1 >conftest.err 2503 rm -f conftest.er1 2504 cat conftest.err >&5 2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2506 (exit $ac_status); } >/dev/null; then 2507 if test -s conftest.err; then 2508 ac_cpp_err=$ac_c_preproc_warn_flag 2509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2510 else 2511 ac_cpp_err= 2512 fi 2513else 2514 ac_cpp_err=yes 2515fi 2516if test -z "$ac_cpp_err"; then 2517 : 2518else 2519 echo "$as_me: failed program was:" >&5 2520sed 's/^/| /' conftest.$ac_ext >&5 2521 2522 # Broken: fails on valid input. 2523continue 2524fi 2525rm -f conftest.err conftest.$ac_ext 2526 2527 # OK, works on sane cases. Now check whether non-existent headers 2528 # can be detected and how. 2529 cat >conftest.$ac_ext <<_ACEOF 2530/* confdefs.h. */ 2531_ACEOF 2532cat confdefs.h >>conftest.$ac_ext 2533cat >>conftest.$ac_ext <<_ACEOF 2534/* end confdefs.h. */ 2535#include <ac_nonexistent.h> 2536_ACEOF 2537if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2539 ac_status=$? 2540 grep -v '^ *+' conftest.er1 >conftest.err 2541 rm -f conftest.er1 2542 cat conftest.err >&5 2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2544 (exit $ac_status); } >/dev/null; then 2545 if test -s conftest.err; then 2546 ac_cpp_err=$ac_c_preproc_warn_flag 2547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2548 else 2549 ac_cpp_err= 2550 fi 2551else 2552 ac_cpp_err=yes 2553fi 2554if test -z "$ac_cpp_err"; then 2555 # Broken: success on invalid input. 2556continue 2557else 2558 echo "$as_me: failed program was:" >&5 2559sed 's/^/| /' conftest.$ac_ext >&5 2560 2561 # Passes both tests. 2562ac_preproc_ok=: 2563break 2564fi 2565rm -f conftest.err conftest.$ac_ext 2566 2567done 2568# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2569rm -f conftest.err conftest.$ac_ext 2570if $ac_preproc_ok; then 2571 : 2572else 2573 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2574See \`config.log' for more details." >&5 2575echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2576See \`config.log' for more details." >&2;} 2577 { (exit 1); exit 1; }; } 2578fi 2579 2580ac_ext=c 2581ac_cpp='$CPP $CPPFLAGS' 2582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2584ac_compiler_gnu=$ac_cv_c_compiler_gnu 2585 2586 2587echo "$as_me:$LINENO: checking for egrep" >&5 2588echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2589if test "${ac_cv_prog_egrep+set}" = set; then 2590 echo $ECHO_N "(cached) $ECHO_C" >&6 2591else 2592 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2593 then ac_cv_prog_egrep='grep -E' 2594 else ac_cv_prog_egrep='egrep' 2595 fi 2596fi 2597echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2598echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2599 EGREP=$ac_cv_prog_egrep 2600 2601 2602echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2603echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2604if test "${ac_cv_header_stdc+set}" = set; then 2605 echo $ECHO_N "(cached) $ECHO_C" >&6 2606else 2607 cat >conftest.$ac_ext <<_ACEOF 2608/* confdefs.h. */ 2609_ACEOF 2610cat confdefs.h >>conftest.$ac_ext 2611cat >>conftest.$ac_ext <<_ACEOF 2612/* end confdefs.h. */ 2613#include <stdlib.h> 2614#include <stdarg.h> 2615#include <string.h> 2616#include <float.h> 2617 2618int 2619main () 2620{ 2621 2622 ; 2623 return 0; 2624} 2625_ACEOF 2626rm -f conftest.$ac_objext 2627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2628 (eval $ac_compile) 2>conftest.er1 2629 ac_status=$? 2630 grep -v '^ *+' conftest.er1 >conftest.err 2631 rm -f conftest.er1 2632 cat conftest.err >&5 2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2634 (exit $ac_status); } && 2635 { ac_try='test -z "$ac_c_werror_flag" 2636 || test ! -s conftest.err' 2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2638 (eval $ac_try) 2>&5 2639 ac_status=$? 2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2641 (exit $ac_status); }; } && 2642 { ac_try='test -s conftest.$ac_objext' 2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2644 (eval $ac_try) 2>&5 2645 ac_status=$? 2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2647 (exit $ac_status); }; }; then 2648 ac_cv_header_stdc=yes 2649else 2650 echo "$as_me: failed program was:" >&5 2651sed 's/^/| /' conftest.$ac_ext >&5 2652 2653ac_cv_header_stdc=no 2654fi 2655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2656 2657if test $ac_cv_header_stdc = yes; then 2658 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2659 cat >conftest.$ac_ext <<_ACEOF 2660/* confdefs.h. */ 2661_ACEOF 2662cat confdefs.h >>conftest.$ac_ext 2663cat >>conftest.$ac_ext <<_ACEOF 2664/* end confdefs.h. */ 2665#include <string.h> 2666 2667_ACEOF 2668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2669 $EGREP "memchr" >/dev/null 2>&1; then 2670 : 2671else 2672 ac_cv_header_stdc=no 2673fi 2674rm -f conftest* 2675 2676fi 2677 2678if test $ac_cv_header_stdc = yes; then 2679 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2680 cat >conftest.$ac_ext <<_ACEOF 2681/* confdefs.h. */ 2682_ACEOF 2683cat confdefs.h >>conftest.$ac_ext 2684cat >>conftest.$ac_ext <<_ACEOF 2685/* end confdefs.h. */ 2686#include <stdlib.h> 2687 2688_ACEOF 2689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2690 $EGREP "free" >/dev/null 2>&1; then 2691 : 2692else 2693 ac_cv_header_stdc=no 2694fi 2695rm -f conftest* 2696 2697fi 2698 2699if test $ac_cv_header_stdc = yes; then 2700 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2701 if test "$cross_compiling" = yes; then 2702 : 2703else 2704 cat >conftest.$ac_ext <<_ACEOF 2705/* confdefs.h. */ 2706_ACEOF 2707cat confdefs.h >>conftest.$ac_ext 2708cat >>conftest.$ac_ext <<_ACEOF 2709/* end confdefs.h. */ 2710#include <ctype.h> 2711#if ((' ' & 0x0FF) == 0x020) 2712# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2713# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2714#else 2715# define ISLOWER(c) \ 2716 (('a' <= (c) && (c) <= 'i') \ 2717 || ('j' <= (c) && (c) <= 'r') \ 2718 || ('s' <= (c) && (c) <= 'z')) 2719# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2720#endif 2721 2722#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2723int 2724main () 2725{ 2726 int i; 2727 for (i = 0; i < 256; i++) 2728 if (XOR (islower (i), ISLOWER (i)) 2729 || toupper (i) != TOUPPER (i)) 2730 exit(2); 2731 exit (0); 2732} 2733_ACEOF 2734rm -f conftest$ac_exeext 2735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2736 (eval $ac_link) 2>&5 2737 ac_status=$? 2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2741 (eval $ac_try) 2>&5 2742 ac_status=$? 2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2744 (exit $ac_status); }; }; then 2745 : 2746else 2747 echo "$as_me: program exited with status $ac_status" >&5 2748echo "$as_me: failed program was:" >&5 2749sed 's/^/| /' conftest.$ac_ext >&5 2750 2751( exit $ac_status ) 2752ac_cv_header_stdc=no 2753fi 2754rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2755fi 2756fi 2757fi 2758echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 2759echo "${ECHO_T}$ac_cv_header_stdc" >&6 2760if test $ac_cv_header_stdc = yes; then 2761 2762cat >>confdefs.h <<\_ACEOF 2763#define STDC_HEADERS 1 2764_ACEOF 2765 2766fi 2767 2768 2769if test -n "$ac_tool_prefix"; then 2770 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 2771set dummy ${ac_tool_prefix}ar; ac_word=$2 2772echo "$as_me:$LINENO: checking for $ac_word" >&5 2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2774if test "${ac_cv_prog_AR+set}" = set; then 2775 echo $ECHO_N "(cached) $ECHO_C" >&6 2776else 2777 if test -n "$AR"; then 2778 ac_cv_prog_AR="$AR" # Let the user override the test. 2779else 2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2781for as_dir in $PATH 2782do 2783 IFS=$as_save_IFS 2784 test -z "$as_dir" && as_dir=. 2785 for ac_exec_ext in '' $ac_executable_extensions; do 2786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2787 ac_cv_prog_AR="${ac_tool_prefix}ar" 2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2789 break 2 2790 fi 2791done 2792done 2793 2794fi 2795fi 2796AR=$ac_cv_prog_AR 2797if test -n "$AR"; then 2798 echo "$as_me:$LINENO: result: $AR" >&5 2799echo "${ECHO_T}$AR" >&6 2800else 2801 echo "$as_me:$LINENO: result: no" >&5 2802echo "${ECHO_T}no" >&6 2803fi 2804 2805fi 2806if test -z "$ac_cv_prog_AR"; then 2807 ac_ct_AR=$AR 2808 # Extract the first word of "ar", so it can be a program name with args. 2809set dummy ar; ac_word=$2 2810echo "$as_me:$LINENO: checking for $ac_word" >&5 2811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2812if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 2813 echo $ECHO_N "(cached) $ECHO_C" >&6 2814else 2815 if test -n "$ac_ct_AR"; then 2816 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 2817else 2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2819for as_dir in $PATH 2820do 2821 IFS=$as_save_IFS 2822 test -z "$as_dir" && as_dir=. 2823 for ac_exec_ext in '' $ac_executable_extensions; do 2824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2825 ac_cv_prog_ac_ct_AR="ar" 2826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2827 break 2 2828 fi 2829done 2830done 2831 2832fi 2833fi 2834ac_ct_AR=$ac_cv_prog_ac_ct_AR 2835if test -n "$ac_ct_AR"; then 2836 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 2837echo "${ECHO_T}$ac_ct_AR" >&6 2838else 2839 echo "$as_me:$LINENO: result: no" >&5 2840echo "${ECHO_T}no" >&6 2841fi 2842 2843 AR=$ac_ct_AR 2844else 2845 AR="$ac_cv_prog_AR" 2846fi 2847 2848if test -n "$ac_tool_prefix"; then 2849 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2850set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2851echo "$as_me:$LINENO: checking for $ac_word" >&5 2852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2853if test "${ac_cv_prog_RANLIB+set}" = set; then 2854 echo $ECHO_N "(cached) $ECHO_C" >&6 2855else 2856 if test -n "$RANLIB"; then 2857 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2858else 2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2860for as_dir in $PATH 2861do 2862 IFS=$as_save_IFS 2863 test -z "$as_dir" && as_dir=. 2864 for ac_exec_ext in '' $ac_executable_extensions; do 2865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2866 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2868 break 2 2869 fi 2870done 2871done 2872 2873fi 2874fi 2875RANLIB=$ac_cv_prog_RANLIB 2876if test -n "$RANLIB"; then 2877 echo "$as_me:$LINENO: result: $RANLIB" >&5 2878echo "${ECHO_T}$RANLIB" >&6 2879else 2880 echo "$as_me:$LINENO: result: no" >&5 2881echo "${ECHO_T}no" >&6 2882fi 2883 2884fi 2885if test -z "$ac_cv_prog_RANLIB"; then 2886 ac_ct_RANLIB=$RANLIB 2887 # Extract the first word of "ranlib", so it can be a program name with args. 2888set dummy ranlib; ac_word=$2 2889echo "$as_me:$LINENO: checking for $ac_word" >&5 2890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2891if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2892 echo $ECHO_N "(cached) $ECHO_C" >&6 2893else 2894 if test -n "$ac_ct_RANLIB"; then 2895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2896else 2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2898for as_dir in $PATH 2899do 2900 IFS=$as_save_IFS 2901 test -z "$as_dir" && as_dir=. 2902 for ac_exec_ext in '' $ac_executable_extensions; do 2903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2904 ac_cv_prog_ac_ct_RANLIB="ranlib" 2905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2906 break 2 2907 fi 2908done 2909done 2910 2911fi 2912fi 2913ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2914if test -n "$ac_ct_RANLIB"; then 2915 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2916echo "${ECHO_T}$ac_ct_RANLIB" >&6 2917else 2918 echo "$as_me:$LINENO: result: no" >&5 2919echo "${ECHO_T}no" >&6 2920fi 2921 2922 RANLIB=$ac_ct_RANLIB 2923else 2924 RANLIB="$ac_cv_prog_RANLIB" 2925fi 2926 2927if test -n "$ac_tool_prefix"; then 2928 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 2929set dummy ${ac_tool_prefix}windres; ac_word=$2 2930echo "$as_me:$LINENO: checking for $ac_word" >&5 2931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2932if test "${ac_cv_prog_RC+set}" = set; then 2933 echo $ECHO_N "(cached) $ECHO_C" >&6 2934else 2935 if test -n "$RC"; then 2936 ac_cv_prog_RC="$RC" # Let the user override the test. 2937else 2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939for as_dir in $PATH 2940do 2941 IFS=$as_save_IFS 2942 test -z "$as_dir" && as_dir=. 2943 for ac_exec_ext in '' $ac_executable_extensions; do 2944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2945 ac_cv_prog_RC="${ac_tool_prefix}windres" 2946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2947 break 2 2948 fi 2949done 2950done 2951 2952fi 2953fi 2954RC=$ac_cv_prog_RC 2955if test -n "$RC"; then 2956 echo "$as_me:$LINENO: result: $RC" >&5 2957echo "${ECHO_T}$RC" >&6 2958else 2959 echo "$as_me:$LINENO: result: no" >&5 2960echo "${ECHO_T}no" >&6 2961fi 2962 2963fi 2964if test -z "$ac_cv_prog_RC"; then 2965 ac_ct_RC=$RC 2966 # Extract the first word of "windres", so it can be a program name with args. 2967set dummy windres; ac_word=$2 2968echo "$as_me:$LINENO: checking for $ac_word" >&5 2969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2970if test "${ac_cv_prog_ac_ct_RC+set}" = set; then 2971 echo $ECHO_N "(cached) $ECHO_C" >&6 2972else 2973 if test -n "$ac_ct_RC"; then 2974 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 2975else 2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2977for as_dir in $PATH 2978do 2979 IFS=$as_save_IFS 2980 test -z "$as_dir" && as_dir=. 2981 for ac_exec_ext in '' $ac_executable_extensions; do 2982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2983 ac_cv_prog_ac_ct_RC="windres" 2984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2985 break 2 2986 fi 2987done 2988done 2989 2990fi 2991fi 2992ac_ct_RC=$ac_cv_prog_ac_ct_RC 2993if test -n "$ac_ct_RC"; then 2994 echo "$as_me:$LINENO: result: $ac_ct_RC" >&5 2995echo "${ECHO_T}$ac_ct_RC" >&6 2996else 2997 echo "$as_me:$LINENO: result: no" >&5 2998echo "${ECHO_T}no" >&6 2999fi 3000 3001 RC=$ac_ct_RC 3002else 3003 RC="$ac_cv_prog_RC" 3004fi 3005 3006 3007#-------------------------------------------------------------------- 3008# Checks to see if the make program sets the $MAKE variable. 3009#-------------------------------------------------------------------- 3010 3011echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3012echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3013set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3014if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3015 echo $ECHO_N "(cached) $ECHO_C" >&6 3016else 3017 cat >conftest.make <<\_ACEOF 3018all: 3019 @echo 'ac_maketemp="$(MAKE)"' 3020_ACEOF 3021# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3022eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3023if test -n "$ac_maketemp"; then 3024 eval ac_cv_prog_make_${ac_make}_set=yes 3025else 3026 eval ac_cv_prog_make_${ac_make}_set=no 3027fi 3028rm -f conftest.make 3029fi 3030if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3031 echo "$as_me:$LINENO: result: yes" >&5 3032echo "${ECHO_T}yes" >&6 3033 SET_MAKE= 3034else 3035 echo "$as_me:$LINENO: result: no" >&5 3036echo "${ECHO_T}no" >&6 3037 SET_MAKE="MAKE=${MAKE-make}" 3038fi 3039 3040 3041#-------------------------------------------------------------------- 3042# Determines the correct binary file extension (.o, .obj, .exe etc.) 3043#-------------------------------------------------------------------- 3044 3045 3046 3047 3048#-------------------------------------------------------------------- 3049# Check whether --enable-threads or --disable-threads was given. 3050#-------------------------------------------------------------------- 3051 3052 3053 echo "$as_me:$LINENO: checking for building with threads" >&5 3054echo $ECHO_N "checking for building with threads... $ECHO_C" >&6 3055 # Check whether --enable-threads or --disable-threads was given. 3056if test "${enable_threads+set}" = set; then 3057 enableval="$enable_threads" 3058 tcl_ok=$enableval 3059else 3060 tcl_ok=no 3061fi; 3062 3063 if test "$tcl_ok" = "yes"; then 3064 echo "$as_me:$LINENO: result: yes" >&5 3065echo "${ECHO_T}yes" >&6 3066 TCL_THREADS=1 3067 cat >>confdefs.h <<\_ACEOF 3068#define TCL_THREADS 1 3069_ACEOF 3070 3071 # USE_THREAD_ALLOC tells us to try the special thread-based 3072 # allocator that significantly reduces lock contention 3073 cat >>confdefs.h <<\_ACEOF 3074#define USE_THREAD_ALLOC 1 3075_ACEOF 3076 3077 else 3078 TCL_THREADS=0 3079 echo "$as_me:$LINENO: result: no (default)" >&5 3080echo "${ECHO_T}no (default)" >&6 3081 fi 3082 3083 3084 3085#------------------------------------------------------------------------ 3086# Embedded configuration information, encoding to use for the values, TIP #59 3087#------------------------------------------------------------------------ 3088 3089 3090 3091# Check whether --with-encoding or --without-encoding was given. 3092if test "${with_encoding+set}" = set; then 3093 withval="$with_encoding" 3094 with_tcencoding=${withval} 3095fi; 3096 3097 if test x"${with_tcencoding}" != x ; then 3098 cat >>confdefs.h <<_ACEOF 3099#define TCL_CFGVAL_ENCODING "${with_tcencoding}" 3100_ACEOF 3101 3102 else 3103 # Default encoding on windows is not "iso8859-1" 3104 cat >>confdefs.h <<\_ACEOF 3105#define TCL_CFGVAL_ENCODING "cp1252" 3106_ACEOF 3107 3108 fi 3109 3110 3111#-------------------------------------------------------------------- 3112# The statements below define a collection of symbols related to 3113# building libtcl as a shared library instead of a static library. 3114#-------------------------------------------------------------------- 3115 3116 3117 echo "$as_me:$LINENO: checking how to build libraries" >&5 3118echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6 3119 # Check whether --enable-shared or --disable-shared was given. 3120if test "${enable_shared+set}" = set; then 3121 enableval="$enable_shared" 3122 tcl_ok=$enableval 3123else 3124 tcl_ok=yes 3125fi; 3126 3127 if test "${enable_shared+set}" = set; then 3128 enableval="$enable_shared" 3129 tcl_ok=$enableval 3130 else 3131 tcl_ok=yes 3132 fi 3133 3134 if test "$tcl_ok" = "yes" ; then 3135 echo "$as_me:$LINENO: result: shared" >&5 3136echo "${ECHO_T}shared" >&6 3137 SHARED_BUILD=1 3138 else 3139 echo "$as_me:$LINENO: result: static" >&5 3140echo "${ECHO_T}static" >&6 3141 SHARED_BUILD=0 3142 3143cat >>confdefs.h <<\_ACEOF 3144#define STATIC_BUILD 1 3145_ACEOF 3146 3147 fi 3148 3149 3150#-------------------------------------------------------------------- 3151# The statements below define a collection of compile flags. This 3152# macro depends on the value of SHARED_BUILD, and should be called 3153# after SC_ENABLE_SHARED checks the configure switches. 3154#-------------------------------------------------------------------- 3155 3156# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3167 inttypes.h stdint.h unistd.h 3168do 3169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3170echo "$as_me:$LINENO: checking for $ac_header" >&5 3171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3172if eval "test \"\${$as_ac_Header+set}\" = set"; then 3173 echo $ECHO_N "(cached) $ECHO_C" >&6 3174else 3175 cat >conftest.$ac_ext <<_ACEOF 3176/* confdefs.h. */ 3177_ACEOF 3178cat confdefs.h >>conftest.$ac_ext 3179cat >>conftest.$ac_ext <<_ACEOF 3180/* end confdefs.h. */ 3181$ac_includes_default 3182 3183#include <$ac_header> 3184_ACEOF 3185rm -f conftest.$ac_objext 3186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3187 (eval $ac_compile) 2>conftest.er1 3188 ac_status=$? 3189 grep -v '^ *+' conftest.er1 >conftest.err 3190 rm -f conftest.er1 3191 cat conftest.err >&5 3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3193 (exit $ac_status); } && 3194 { ac_try='test -z "$ac_c_werror_flag" 3195 || test ! -s conftest.err' 3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3197 (eval $ac_try) 2>&5 3198 ac_status=$? 3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3200 (exit $ac_status); }; } && 3201 { ac_try='test -s conftest.$ac_objext' 3202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3203 (eval $ac_try) 2>&5 3204 ac_status=$? 3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3206 (exit $ac_status); }; }; then 3207 eval "$as_ac_Header=yes" 3208else 3209 echo "$as_me: failed program was:" >&5 3210sed 's/^/| /' conftest.$ac_ext >&5 3211 3212eval "$as_ac_Header=no" 3213fi 3214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3215fi 3216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3218if test `eval echo '${'$as_ac_Header'}'` = yes; then 3219 cat >>confdefs.h <<_ACEOF 3220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3221_ACEOF 3222 3223fi 3224 3225done 3226 3227 3228 3229 3230 # Step 0: Enable 64 bit support? 3231 3232 echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 3233echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6 3234 # Check whether --enable-64bit or --disable-64bit was given. 3235if test "${enable_64bit+set}" = set; then 3236 enableval="$enable_64bit" 3237 do64bit=$enableval 3238else 3239 do64bit=no 3240fi; 3241 echo "$as_me:$LINENO: result: $do64bit" >&5 3242echo "${ECHO_T}$do64bit" >&6 3243 3244 # Cross-compiling options for Windows/CE builds 3245 3246 echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 3247echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6 3248 # Check whether --enable-wince or --disable-wince was given. 3249if test "${enable_wince+set}" = set; then 3250 enableval="$enable_wince" 3251 doWince=$enableval 3252else 3253 doWince=no 3254fi; 3255 echo "$as_me:$LINENO: result: $doWince" >&5 3256echo "${ECHO_T}$doWince" >&6 3257 3258 echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 3259echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6 3260 3261# Check whether --with-celib or --without-celib was given. 3262if test "${with_celib+set}" = set; then 3263 withval="$with_celib" 3264 CELIB_DIR=$withval 3265else 3266 CELIB_DIR=NO_CELIB 3267fi; 3268 echo "$as_me:$LINENO: result: $CELIB_DIR" >&5 3269echo "${ECHO_T}$CELIB_DIR" >&6 3270 3271 # Set some defaults (may get changed below) 3272 EXTRA_CFLAGS="" 3273 3274 # Extract the first word of "cygpath", so it can be a program name with args. 3275set dummy cygpath; ac_word=$2 3276echo "$as_me:$LINENO: checking for $ac_word" >&5 3277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3278if test "${ac_cv_prog_CYGPATH+set}" = set; then 3279 echo $ECHO_N "(cached) $ECHO_C" >&6 3280else 3281 if test -n "$CYGPATH"; then 3282 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 3283else 3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3285for as_dir in $PATH 3286do 3287 IFS=$as_save_IFS 3288 test -z "$as_dir" && as_dir=. 3289 for ac_exec_ext in '' $ac_executable_extensions; do 3290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3291 ac_cv_prog_CYGPATH="cygpath -m" 3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3293 break 2 3294 fi 3295done 3296done 3297 3298 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 3299fi 3300fi 3301CYGPATH=$ac_cv_prog_CYGPATH 3302if test -n "$CYGPATH"; then 3303 echo "$as_me:$LINENO: result: $CYGPATH" >&5 3304echo "${ECHO_T}$CYGPATH" >&6 3305else 3306 echo "$as_me:$LINENO: result: no" >&5 3307echo "${ECHO_T}no" >&6 3308fi 3309 3310 3311 SHLIB_SUFFIX=".dll" 3312 3313 # MACHINE is IX86 for LINK, but this is used by the manifest, 3314 # which requires x86|amd64|ia64. 3315 MACHINE="X86" 3316 3317 if test "$GCC" = "yes"; then 3318 3319 echo "$as_me:$LINENO: checking for cross-compile version of gcc" >&5 3320echo $ECHO_N "checking for cross-compile version of gcc... $ECHO_C" >&6 3321if test "${ac_cv_cross+set}" = set; then 3322 echo $ECHO_N "(cached) $ECHO_C" >&6 3323else 3324 cat >conftest.$ac_ext <<_ACEOF 3325/* confdefs.h. */ 3326_ACEOF 3327cat confdefs.h >>conftest.$ac_ext 3328cat >>conftest.$ac_ext <<_ACEOF 3329/* end confdefs.h. */ 3330 3331 #ifndef __WIN32__ 3332 #error cross-compiler 3333 #endif 3334 3335int 3336main () 3337{ 3338 3339 ; 3340 return 0; 3341} 3342_ACEOF 3343rm -f conftest.$ac_objext 3344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3345 (eval $ac_compile) 2>conftest.er1 3346 ac_status=$? 3347 grep -v '^ *+' conftest.er1 >conftest.err 3348 rm -f conftest.er1 3349 cat conftest.err >&5 3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3351 (exit $ac_status); } && 3352 { ac_try='test -z "$ac_c_werror_flag" 3353 || test ! -s conftest.err' 3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3355 (eval $ac_try) 2>&5 3356 ac_status=$? 3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3358 (exit $ac_status); }; } && 3359 { ac_try='test -s conftest.$ac_objext' 3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3361 (eval $ac_try) 2>&5 3362 ac_status=$? 3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3364 (exit $ac_status); }; }; then 3365 ac_cv_cross=no 3366else 3367 echo "$as_me: failed program was:" >&5 3368sed 's/^/| /' conftest.$ac_ext >&5 3369 3370ac_cv_cross=yes 3371fi 3372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3373 3374fi 3375echo "$as_me:$LINENO: result: $ac_cv_cross" >&5 3376echo "${ECHO_T}$ac_cv_cross" >&6 3377 3378 if test "$ac_cv_cross" = "yes"; then 3379 case "$do64bit" in 3380 amd64|x64|yes) 3381 CC="x86_64-w64-mingw32-gcc" 3382 LD="x86_64-w64-mingw32-ld" 3383 AR="x86_64-w64-mingw32-ar" 3384 RANLIB="x86_64-w64-mingw32-ranlib" 3385 RC="x86_64-w64-mingw32-windres" 3386 ;; 3387 *) 3388 CC="i686-w64-mingw32-gcc" 3389 LD="i686-w64-mingw32-ld" 3390 AR="i686-w64-mingw32-ar" 3391 RANLIB="i686-w64-mingw32-ranlib" 3392 RC="i686-w64-mingw32-windres" 3393 ;; 3394 esac 3395 fi 3396 fi 3397 3398 # Check for a bug in gcc's windres that causes the 3399 # compile to fail when a Windows native path is 3400 # passed into windres. The mingw toolchain requires 3401 # Windows native paths while Cygwin should work 3402 # with both. Avoid the bug by passing a POSIX 3403 # path when using the Cygwin toolchain. 3404 3405 if test "$GCC" = "yes" && test "$CYGPATH" != "echo" ; then 3406 conftest=/tmp/conftest.rc 3407 echo "STRINGTABLE BEGIN" > $conftest 3408 echo "101 \"name\"" >> $conftest 3409 echo "END" >> $conftest 3410 3411 echo "$as_me:$LINENO: checking for Windows native path bug in windres" >&5 3412echo $ECHO_N "checking for Windows native path bug in windres... $ECHO_C" >&6 3413 cyg_conftest=`$CYGPATH $conftest` 3414 if { ac_try='$RC -o conftest.res.o $cyg_conftest' 3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3416 (eval $ac_try) 2>&5 3417 ac_status=$? 3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3419 (exit $ac_status); }; } ; then 3420 echo "$as_me:$LINENO: result: no" >&5 3421echo "${ECHO_T}no" >&6 3422 else 3423 echo "$as_me:$LINENO: result: yes" >&5 3424echo "${ECHO_T}yes" >&6 3425 CYGPATH=echo 3426 fi 3427 conftest= 3428 cyg_conftest= 3429 fi 3430 3431 if test "$CYGPATH" = "echo"; then 3432 DEPARG='"$<"' 3433 else 3434 DEPARG='"$(shell $(CYGPATH) $<)"' 3435 fi 3436 3437 # set various compiler flags depending on whether we are using gcc or cl 3438 3439 if test "${GCC}" = "yes" ; then 3440 extra_cflags="-pipe" 3441 extra_ldflags="-pipe -static-libgcc" 3442 echo "$as_me:$LINENO: checking for mingw32 version of gcc" >&5 3443echo $ECHO_N "checking for mingw32 version of gcc... $ECHO_C" >&6 3444if test "${ac_cv_win32+set}" = set; then 3445 echo $ECHO_N "(cached) $ECHO_C" >&6 3446else 3447 cat >conftest.$ac_ext <<_ACEOF 3448/* confdefs.h. */ 3449_ACEOF 3450cat confdefs.h >>conftest.$ac_ext 3451cat >>conftest.$ac_ext <<_ACEOF 3452/* end confdefs.h. */ 3453 3454 #ifdef __WIN32__ 3455 #error win32 3456 #endif 3457 3458int 3459main () 3460{ 3461 3462 ; 3463 return 0; 3464} 3465_ACEOF 3466rm -f conftest.$ac_objext 3467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3468 (eval $ac_compile) 2>conftest.er1 3469 ac_status=$? 3470 grep -v '^ *+' conftest.er1 >conftest.err 3471 rm -f conftest.er1 3472 cat conftest.err >&5 3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3474 (exit $ac_status); } && 3475 { ac_try='test -z "$ac_c_werror_flag" 3476 || test ! -s conftest.err' 3477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3478 (eval $ac_try) 2>&5 3479 ac_status=$? 3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3481 (exit $ac_status); }; } && 3482 { ac_try='test -s conftest.$ac_objext' 3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3484 (eval $ac_try) 2>&5 3485 ac_status=$? 3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3487 (exit $ac_status); }; }; then 3488 ac_cv_win32=no 3489else 3490 echo "$as_me: failed program was:" >&5 3491sed 's/^/| /' conftest.$ac_ext >&5 3492 3493ac_cv_win32=yes 3494fi 3495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3496 3497fi 3498echo "$as_me:$LINENO: result: $ac_cv_win32" >&5 3499echo "${ECHO_T}$ac_cv_win32" >&6 3500 if test "$ac_cv_win32" != "yes"; then 3501 { { echo "$as_me:$LINENO: error: ${CC} cannot produce win32 executables." >&5 3502echo "$as_me: error: ${CC} cannot produce win32 executables." >&2;} 3503 { (exit 1); exit 1; }; } 3504 fi 3505 fi 3506 3507 echo "$as_me:$LINENO: checking compiler flags" >&5 3508echo $ECHO_N "checking compiler flags... $ECHO_C" >&6 3509 if test "${GCC}" = "yes" ; then 3510 SHLIB_LD="" 3511 SHLIB_LD_LIBS="" 3512 LIBS="-lws2_32" 3513 # mingw needs to link ole32 and oleaut32 for [send], but MSVC doesn't 3514 LIBS_GUI="-lgdi32 -lcomdlg32 -limm32 -lcomctl32 -lshell32 -luuid -lole32 -loleaut32" 3515 STLIB_LD='${AR} cr' 3516 RC_OUT=-o 3517 RC_TYPE= 3518 RC_INCLUDE=--include 3519 RC_DEFINE=--define 3520 RES=res.o 3521 MAKE_LIB="\${STLIB_LD} \$@" 3522 MAKE_STUB_LIB="\${STLIB_LD} \$@" 3523 POST_MAKE_LIB="\${RANLIB} \$@" 3524 MAKE_EXE="\${CC} -o \$@" 3525 LIBPREFIX="lib" 3526 3527 if test "${SHARED_BUILD}" = "0" ; then 3528 # static 3529 echo "$as_me:$LINENO: result: using static flags" >&5 3530echo "${ECHO_T}using static flags" >&6 3531 runtime= 3532 MAKE_DLL="echo " 3533 LIBSUFFIX="s\${DBGX}.a" 3534 LIBFLAGSUFFIX="s\${DBGX}" 3535 LIBRARIES="\${STATIC_LIBRARIES}" 3536 EXESUFFIX="s\${DBGX}.exe" 3537 else 3538 # dynamic 3539 echo "$as_me:$LINENO: result: using shared flags" >&5 3540echo "${ECHO_T}using shared flags" >&6 3541 3542 # ad-hoc check to see if CC supports -shared. 3543 if "${CC}" -shared 2>&1 | egrep ': -shared not supported' >/dev/null; then 3544 { { echo "$as_me:$LINENO: error: ${CC} does not support the -shared option. 3545 You will need to upgrade to a newer version of the toolchain." >&5 3546echo "$as_me: error: ${CC} does not support the -shared option. 3547 You will need to upgrade to a newer version of the toolchain." >&2;} 3548 { (exit 1); exit 1; }; } 3549 fi 3550 3551 runtime= 3552 # Link with gcc since ld does not link to default libs like 3553 # -luser32 and -lmsvcrt by default. 3554 SHLIB_LD='${CC} -shared' 3555 SHLIB_LD_LIBS='${LIBS}' 3556 # Add SHLIB_LD_LIBS to the Make rule, not here. 3557 MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -o \$@ ${extra_ldflags} \ 3558 -Wl,--out-implib,\$(patsubst %.dll,lib%.a,\$@)" 3559 3560 LIBSUFFIX="\${DBGX}.a" 3561 LIBFLAGSUFFIX="\${DBGX}" 3562 EXESUFFIX="\${DBGX}.exe" 3563 LIBRARIES="\${SHARED_LIBRARIES}" 3564 fi 3565 # DLLSUFFIX is separate because it is the building block for 3566 # users of tclConfig.sh that may build shared or static. 3567 DLLSUFFIX="\${DBGX}.dll" 3568 SHLIB_SUFFIX=.dll 3569 3570 EXTRA_CFLAGS="${extra_cflags}" 3571 3572 CFLAGS_DEBUG=-g 3573 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 3574 CFLAGS_WARNING="-Wall" 3575 LDFLAGS_DEBUG= 3576 LDFLAGS_OPTIMIZE= 3577 3578 # Specify the CC output file names based on the target name 3579 CC_OBJNAME="-o \$@" 3580 CC_EXENAME="-o \$@" 3581 3582 # Specify linker flags depending on the type of app being 3583 # built -- Console vs. Window. 3584 # 3585 # ORIGINAL COMMENT: 3586 # We need to pass -e _WinMain@16 so that ld will use 3587 # WinMain() instead of main() as the entry point. We can't 3588 # use autoconf to check for this case since it would need 3589 # to run an executable and that does not work when 3590 # cross compiling. Remove this -e workaround once we 3591 # require a gcc that does not have this bug. 3592 # 3593 # MK NOTE: Tk should use a different mechanism. This causes 3594 # interesting problems, such as wish dying at startup. 3595 #LDFLAGS_WINDOW="-mwindows -e _WinMain@16 ${extra_ldflags}" 3596 LDFLAGS_CONSOLE="-mconsole ${extra_ldflags}" 3597 LDFLAGS_WINDOW="-mwindows ${extra_ldflags}" 3598 3599 case "$do64bit" in 3600 amd64|x64|yes) 3601 MACHINE="AMD64" ; # assume AMD64 as default 64-bit build 3602 echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 3603echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6 3604 ;; 3605 ia64) 3606 MACHINE="IA64" 3607 echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 3608echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6 3609 ;; 3610 *) 3611 cat >conftest.$ac_ext <<_ACEOF 3612/* confdefs.h. */ 3613_ACEOF 3614cat confdefs.h >>conftest.$ac_ext 3615cat >>conftest.$ac_ext <<_ACEOF 3616/* end confdefs.h. */ 3617 3618 #ifndef _WIN64 3619 #error 32-bit 3620 #endif 3621 3622int 3623main () 3624{ 3625 3626 ; 3627 return 0; 3628} 3629_ACEOF 3630rm -f conftest.$ac_objext 3631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3632 (eval $ac_compile) 2>conftest.er1 3633 ac_status=$? 3634 grep -v '^ *+' conftest.er1 >conftest.err 3635 rm -f conftest.er1 3636 cat conftest.err >&5 3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3638 (exit $ac_status); } && 3639 { ac_try='test -z "$ac_c_werror_flag" 3640 || test ! -s conftest.err' 3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3642 (eval $ac_try) 2>&5 3643 ac_status=$? 3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3645 (exit $ac_status); }; } && 3646 { ac_try='test -s conftest.$ac_objext' 3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3648 (eval $ac_try) 2>&5 3649 ac_status=$? 3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3651 (exit $ac_status); }; }; then 3652 tcl_win_64bit=yes 3653else 3654 echo "$as_me: failed program was:" >&5 3655sed 's/^/| /' conftest.$ac_ext >&5 3656 3657tcl_win_64bit=no 3658 3659fi 3660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3661 if test "$tcl_win_64bit" = "yes" ; then 3662 do64bit=amd64 3663 MACHINE="AMD64" 3664 echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 3665echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6 3666 fi 3667 ;; 3668 esac 3669 else 3670 if test "${SHARED_BUILD}" = "0" ; then 3671 # static 3672 echo "$as_me:$LINENO: result: using static flags" >&5 3673echo "${ECHO_T}using static flags" >&6 3674 runtime=-MT 3675 MAKE_DLL="echo " 3676 LIBSUFFIX="s\${DBGX}.lib" 3677 LIBFLAGSUFFIX="s\${DBGX}" 3678 LIBRARIES="\${STATIC_LIBRARIES}" 3679 EXESUFFIX="s\${DBGX}.exe" 3680 SHLIB_LD_LIBS="" 3681 else 3682 # dynamic 3683 echo "$as_me:$LINENO: result: using shared flags" >&5 3684echo "${ECHO_T}using shared flags" >&6 3685 runtime=-MD 3686 # Add SHLIB_LD_LIBS to the Make rule, not here. 3687 MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -out:\$@" 3688 LIBSUFFIX="\${DBGX}.lib" 3689 LIBFLAGSUFFIX="\${DBGX}" 3690 EXESUFFIX="\${DBGX}.exe" 3691 LIBRARIES="\${SHARED_LIBRARIES}" 3692 SHLIB_LD_LIBS='${LIBS}' 3693 case "x`echo \${VisualStudioVersion}`" in 3694 x1[4-9]*) 3695 lflags="${lflags} -nodefaultlib:libucrt.lib" 3696 ;; 3697 *) 3698 ;; 3699 esac 3700 fi 3701 # DLLSUFFIX is separate because it is the building block for 3702 # users of tclConfig.sh that may build shared or static. 3703 DLLSUFFIX="\${DBGX}.dll" 3704 3705 # This is a 2-stage check to make sure we have the 64-bit SDK 3706 # We have to know where the SDK is installed. 3707 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 3708 if test "$do64bit" != "no" ; then 3709 if test "x${MSSDK}x" = "xx" ; then 3710 MSSDK="C:/Progra~1/Microsoft Platform SDK" 3711 fi 3712 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 3713 PATH64="" 3714 case "$do64bit" in 3715 amd64|x64|yes) 3716 MACHINE="AMD64" ; # assume AMD64 as default 64-bit build 3717 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 3718 ;; 3719 ia64) 3720 MACHINE="IA64" 3721 PATH64="${MSSDK}/Bin/Win64" 3722 ;; 3723 esac 3724 if test ! -d "${PATH64}" ; then 3725 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK" >&5 3726echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK" >&2;} 3727 fi 3728 echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 3729echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6 3730 fi 3731 3732 LIBS="user32.lib advapi32.lib ws2_32.lib" 3733 3734 case "x`echo \${VisualStudioVersion}`" in 3735 x1[4-9]*) 3736 LIBS="$LIBS ucrt.lib" 3737 ;; 3738 *) 3739 ;; 3740 esac 3741 3742 if test "$do64bit" != "no" ; then 3743 # The space-based-path will work for the Makefile, but will 3744 # not work if AC_TRY_COMPILE is called. TEA has the 3745 # TEA_PATH_NOSPACE to avoid this issue. 3746 # Check if _WIN64 is already recognized, and if so we don't 3747 # need to modify CC. 3748 echo "$as_me:$LINENO: checking whether _WIN64 is declared" >&5 3749echo $ECHO_N "checking whether _WIN64 is declared... $ECHO_C" >&6 3750if test "${ac_cv_have_decl__WIN64+set}" = set; then 3751 echo $ECHO_N "(cached) $ECHO_C" >&6 3752else 3753 cat >conftest.$ac_ext <<_ACEOF 3754/* confdefs.h. */ 3755_ACEOF 3756cat confdefs.h >>conftest.$ac_ext 3757cat >>conftest.$ac_ext <<_ACEOF 3758/* end confdefs.h. */ 3759$ac_includes_default 3760int 3761main () 3762{ 3763#ifndef _WIN64 3764 char *p = (char *) _WIN64; 3765#endif 3766 3767 ; 3768 return 0; 3769} 3770_ACEOF 3771rm -f conftest.$ac_objext 3772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3773 (eval $ac_compile) 2>conftest.er1 3774 ac_status=$? 3775 grep -v '^ *+' conftest.er1 >conftest.err 3776 rm -f conftest.er1 3777 cat conftest.err >&5 3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3779 (exit $ac_status); } && 3780 { ac_try='test -z "$ac_c_werror_flag" 3781 || test ! -s conftest.err' 3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3783 (eval $ac_try) 2>&5 3784 ac_status=$? 3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3786 (exit $ac_status); }; } && 3787 { ac_try='test -s conftest.$ac_objext' 3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3789 (eval $ac_try) 2>&5 3790 ac_status=$? 3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3792 (exit $ac_status); }; }; then 3793 ac_cv_have_decl__WIN64=yes 3794else 3795 echo "$as_me: failed program was:" >&5 3796sed 's/^/| /' conftest.$ac_ext >&5 3797 3798ac_cv_have_decl__WIN64=no 3799fi 3800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3801fi 3802echo "$as_me:$LINENO: result: $ac_cv_have_decl__WIN64" >&5 3803echo "${ECHO_T}$ac_cv_have_decl__WIN64" >&6 3804if test $ac_cv_have_decl__WIN64 = yes; then 3805 : 3806else 3807 CC="\"${PATH64}/cl.exe\" -I\"${MSSDK}/Include\" \ 3808 -I\"${MSSDK}/Include/crt\" \ 3809 -I\"${MSSDK}/Include/crt/sys\"" 3810fi 3811 3812 RC="\"${MSSDK}/bin/rc.exe\"" 3813 CFLAGS_DEBUG="-nologo -Zi -Od ${runtime}d" 3814 # Do not use -O2 for Win64 - this has proved buggy in code gen. 3815 CFLAGS_OPTIMIZE="-nologo -O1 ${runtime}" 3816 lflags="${lflags} -nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 3817 LINKBIN="\"${PATH64}/link.exe\"" 3818 # Avoid 'unresolved external symbol __security_cookie' errors. 3819 # c.f. http://support.microsoft.com/?id=894573 3820 LIBS="$LIBS bufferoverflowU.lib" 3821 else 3822 RC="rc" 3823 # -Od - no optimization 3824 # -WX - warnings as errors 3825 CFLAGS_DEBUG="-nologo -Z7 -Od -WX ${runtime}d" 3826 # -O2 - create fast code (/Og /Oi /Ot /Oy /Ob2 /Gs /GF /Gy) 3827 CFLAGS_OPTIMIZE="-nologo -O2 ${runtime}" 3828 lflags="${lflags} -nologo" 3829 LINKBIN="link" 3830 fi 3831 3832 if test "$doWince" != "no" ; then 3833 # Set defaults for common evc4/PPC2003 setup 3834 # Currently Tcl requires 300+, possibly 420+ for sockets 3835 CEVERSION=420; # could be 211 300 301 400 420 ... 3836 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 3837 ARCH=ARM; # could be ARM MIPS X86EM ... 3838 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 3839 if test "$doWince" != "yes"; then 3840 # If !yes then the user specified something 3841 # Reset ARCH to allow user to skip specifying it 3842 ARCH= 3843 eval `echo $doWince | awk -F "," '{ \ 3844 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 3845 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 3846 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 3847 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 3848 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 3849 }'` 3850 if test "x${ARCH}" = "x" ; then 3851 ARCH=$TARGETCPU; 3852 fi 3853 fi 3854 OSVERSION=WCE$CEVERSION; 3855 if test "x${WCEROOT}" = "x" ; then 3856 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 3857 if test ! -d "${WCEROOT}" ; then 3858 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 3859 fi 3860 fi 3861 if test "x${SDKROOT}" = "x" ; then 3862 SDKROOT="C:/Program Files/Windows CE Tools" 3863 if test ! -d "${SDKROOT}" ; then 3864 SDKROOT="C:/Windows CE Tools" 3865 fi 3866 fi 3867 # The space-based-path will work for the Makefile, but will 3868 # not work if AC_TRY_COMPILE is called. 3869 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 3870 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 3871 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 3872 if test ! -d "${CELIB_DIR}/inc"; then 3873 { { echo "$as_me:$LINENO: error: Invalid celib directory \"${CELIB_DIR}\"" >&5 3874echo "$as_me: error: Invalid celib directory \"${CELIB_DIR}\"" >&2;} 3875 { (exit 1); exit 1; }; } 3876 fi 3877 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"\ 3878 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 3879 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 3880echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 3881 { (exit 1); exit 1; }; } 3882 else 3883 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 3884 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 3885 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 3886 fi 3887 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 3888 fi 3889 fi 3890 3891 if test "$doWince" != "no" ; then 3892 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 3893 if test "${TARGETCPU}" = "X86"; then 3894 CC="${CEBINROOT}/cl.exe" 3895 else 3896 CC="${CEBINROOT}/cl${ARCH}.exe" 3897 fi 3898 CC="\"${CC}\" -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 3899 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 3900 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 3901 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _DLL _WINDOWS" 3902 for i in $defs ; do 3903 cat >>confdefs.h <<_ACEOF 3904#define $i 1 3905_ACEOF 3906 3907 done 3908# if test "${ARCH}" = "X86EM"; then 3909# AC_DEFINE_UNQUOTED(_WIN32_WCE_EMULATION) 3910# fi 3911 cat >>confdefs.h <<_ACEOF 3912#define _WIN32_WCE $CEVERSION 3913_ACEOF 3914 3915 cat >>confdefs.h <<_ACEOF 3916#define UNDER_CE $CEVERSION 3917_ACEOF 3918 3919 CFLAGS_DEBUG="-nologo -Zi -Od" 3920 CFLAGS_OPTIMIZE="-nologo -O2" 3921 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 3922 lflags="-nodefaultlib -MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 3923 LINKBIN="\"${CEBINROOT}/link.exe\"" 3924 3925 if test "${CEVERSION}" -lt 400 ; then 3926 LIBS="coredll.lib corelibc.lib winsock.lib" 3927 else 3928 LIBS="coredll.lib corelibc.lib ws2.lib" 3929 fi 3930 # celib currently stuck at wce300 status 3931 #LIBS="$LIBS \${CELIB_DIR}/wince-${ARCH}-pocket-${OSVERSION}-release/celib.lib" 3932 LIBS="$LIBS \"\${CELIB_DIR}/wince-${ARCH}-pocket-wce300-release/celib.lib\"" 3933 LIBS_GUI="commctrl.lib commdlg.lib" 3934 else 3935 LIBS_GUI="gdi32.lib comdlg32.lib imm32.lib comctl32.lib shell32.lib uuid.lib" 3936 fi 3937 3938 SHLIB_LD="${LINKBIN} -dll -incremental:no ${lflags}" 3939 # link -lib only works when -lib is the first arg 3940 STLIB_LD="${LINKBIN} -lib ${lflags}" 3941 RC_OUT=-fo 3942 RC_TYPE=-r 3943 RC_INCLUDE=-i 3944 RC_DEFINE=-d 3945 RES=res 3946 MAKE_LIB="\${STLIB_LD} -out:\$@" 3947 MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@" 3948 POST_MAKE_LIB= 3949 MAKE_EXE="\${CC} -Fe\$@" 3950 LIBPREFIX="" 3951 3952 CFLAGS_DEBUG="${CFLAGS_DEBUG} -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE" 3953 CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE" 3954 3955 EXTRA_CFLAGS="" 3956 CFLAGS_WARNING="-W3" 3957 LDFLAGS_DEBUG="-debug" 3958 LDFLAGS_OPTIMIZE="-release" 3959 3960 # Specify the CC output file names based on the target name 3961 CC_OBJNAME="-Fo\$@" 3962 CC_EXENAME="-Fe\"\$(shell \$(CYGPATH) '\$@')\"" 3963 3964 # Specify linker flags depending on the type of app being 3965 # built -- Console vs. Window. 3966 if test "$doWince" != "no" -a "${TARGETCPU}" != "X86"; then 3967 LDFLAGS_CONSOLE="-link ${lflags}" 3968 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 3969 else 3970 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 3971 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 3972 fi 3973 fi 3974 3975 if test "$do64bit" != "no" ; then 3976 cat >>confdefs.h <<\_ACEOF 3977#define TCL_CFG_DO64BIT 1 3978_ACEOF 3979 3980 fi 3981 3982 if test "${GCC}" = "yes" ; then 3983 echo "$as_me:$LINENO: checking for SEH support in compiler" >&5 3984echo $ECHO_N "checking for SEH support in compiler... $ECHO_C" >&6 3985if test "${tcl_cv_seh+set}" = set; then 3986 echo $ECHO_N "(cached) $ECHO_C" >&6 3987else 3988 if test "$cross_compiling" = yes; then 3989 tcl_cv_seh=no 3990else 3991 cat >conftest.$ac_ext <<_ACEOF 3992/* confdefs.h. */ 3993_ACEOF 3994cat confdefs.h >>conftest.$ac_ext 3995cat >>conftest.$ac_ext <<_ACEOF 3996/* end confdefs.h. */ 3997 3998 #define WIN32_LEAN_AND_MEAN 3999 #include <windows.h> 4000 #undef WIN32_LEAN_AND_MEAN 4001 4002 int main(int argc, char** argv) { 4003 int a, b = 0; 4004 __try { 4005 a = 666 / b; 4006 } 4007 __except (EXCEPTION_EXECUTE_HANDLER) { 4008 return 0; 4009 } 4010 return 1; 4011 } 4012 4013_ACEOF 4014rm -f conftest$ac_exeext 4015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4016 (eval $ac_link) 2>&5 4017 ac_status=$? 4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4021 (eval $ac_try) 2>&5 4022 ac_status=$? 4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4024 (exit $ac_status); }; }; then 4025 tcl_cv_seh=yes 4026else 4027 echo "$as_me: program exited with status $ac_status" >&5 4028echo "$as_me: failed program was:" >&5 4029sed 's/^/| /' conftest.$ac_ext >&5 4030 4031( exit $ac_status ) 4032tcl_cv_seh=no 4033fi 4034rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4035fi 4036 4037fi 4038echo "$as_me:$LINENO: result: $tcl_cv_seh" >&5 4039echo "${ECHO_T}$tcl_cv_seh" >&6 4040 if test "$tcl_cv_seh" = "no" ; then 4041 4042cat >>confdefs.h <<\_ACEOF 4043#define HAVE_NO_SEH 1 4044_ACEOF 4045 4046 fi 4047 4048 # 4049 # Check to see if the excpt.h include file provided contains the 4050 # definition for EXCEPTION_DISPOSITION; if not, which is the case 4051 # with Cygwin's version as of 2002-04-10, define it to be int, 4052 # sufficient for getting the current code to work. 4053 # 4054 echo "$as_me:$LINENO: checking for EXCEPTION_DISPOSITION support in include files" >&5 4055echo $ECHO_N "checking for EXCEPTION_DISPOSITION support in include files... $ECHO_C" >&6 4056if test "${tcl_cv_eh_disposition+set}" = set; then 4057 echo $ECHO_N "(cached) $ECHO_C" >&6 4058else 4059 cat >conftest.$ac_ext <<_ACEOF 4060/* confdefs.h. */ 4061_ACEOF 4062cat confdefs.h >>conftest.$ac_ext 4063cat >>conftest.$ac_ext <<_ACEOF 4064/* end confdefs.h. */ 4065 4066# define WIN32_LEAN_AND_MEAN 4067# include <windows.h> 4068# undef WIN32_LEAN_AND_MEAN 4069 4070int 4071main () 4072{ 4073 4074 EXCEPTION_DISPOSITION x; 4075 4076 ; 4077 return 0; 4078} 4079_ACEOF 4080rm -f conftest.$ac_objext 4081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4082 (eval $ac_compile) 2>conftest.er1 4083 ac_status=$? 4084 grep -v '^ *+' conftest.er1 >conftest.err 4085 rm -f conftest.er1 4086 cat conftest.err >&5 4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4088 (exit $ac_status); } && 4089 { ac_try='test -z "$ac_c_werror_flag" 4090 || test ! -s conftest.err' 4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4092 (eval $ac_try) 2>&5 4093 ac_status=$? 4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4095 (exit $ac_status); }; } && 4096 { ac_try='test -s conftest.$ac_objext' 4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4098 (eval $ac_try) 2>&5 4099 ac_status=$? 4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4101 (exit $ac_status); }; }; then 4102 tcl_cv_eh_disposition=yes 4103else 4104 echo "$as_me: failed program was:" >&5 4105sed 's/^/| /' conftest.$ac_ext >&5 4106 4107tcl_cv_eh_disposition=no 4108fi 4109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4110 4111fi 4112echo "$as_me:$LINENO: result: $tcl_cv_eh_disposition" >&5 4113echo "${ECHO_T}$tcl_cv_eh_disposition" >&6 4114 if test "$tcl_cv_eh_disposition" = "no" ; then 4115 4116cat >>confdefs.h <<\_ACEOF 4117#define EXCEPTION_DISPOSITION int 4118_ACEOF 4119 4120 fi 4121 4122 # Check to see if winnt.h defines CHAR, SHORT, and LONG 4123 # even if VOID has already been #defined. The win32api 4124 # used by mingw and cygwin is known to do this. 4125 4126 echo "$as_me:$LINENO: checking for winnt.h that ignores VOID define" >&5 4127echo $ECHO_N "checking for winnt.h that ignores VOID define... $ECHO_C" >&6 4128if test "${tcl_cv_winnt_ignore_void+set}" = set; then 4129 echo $ECHO_N "(cached) $ECHO_C" >&6 4130else 4131 cat >conftest.$ac_ext <<_ACEOF 4132/* confdefs.h. */ 4133_ACEOF 4134cat confdefs.h >>conftest.$ac_ext 4135cat >>conftest.$ac_ext <<_ACEOF 4136/* end confdefs.h. */ 4137 4138 #define VOID void 4139 #define WIN32_LEAN_AND_MEAN 4140 #include <windows.h> 4141 #undef WIN32_LEAN_AND_MEAN 4142 4143int 4144main () 4145{ 4146 4147 CHAR c; 4148 SHORT s; 4149 LONG l; 4150 4151 ; 4152 return 0; 4153} 4154_ACEOF 4155rm -f conftest.$ac_objext 4156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4157 (eval $ac_compile) 2>conftest.er1 4158 ac_status=$? 4159 grep -v '^ *+' conftest.er1 >conftest.err 4160 rm -f conftest.er1 4161 cat conftest.err >&5 4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4163 (exit $ac_status); } && 4164 { ac_try='test -z "$ac_c_werror_flag" 4165 || test ! -s conftest.err' 4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4167 (eval $ac_try) 2>&5 4168 ac_status=$? 4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4170 (exit $ac_status); }; } && 4171 { ac_try='test -s conftest.$ac_objext' 4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4173 (eval $ac_try) 2>&5 4174 ac_status=$? 4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4176 (exit $ac_status); }; }; then 4177 tcl_cv_winnt_ignore_void=yes 4178else 4179 echo "$as_me: failed program was:" >&5 4180sed 's/^/| /' conftest.$ac_ext >&5 4181 4182tcl_cv_winnt_ignore_void=no 4183fi 4184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4185 4186fi 4187echo "$as_me:$LINENO: result: $tcl_cv_winnt_ignore_void" >&5 4188echo "${ECHO_T}$tcl_cv_winnt_ignore_void" >&6 4189 if test "$tcl_cv_winnt_ignore_void" = "yes" ; then 4190 4191cat >>confdefs.h <<\_ACEOF 4192#define HAVE_WINNT_IGNORE_VOID 1 4193_ACEOF 4194 4195 fi 4196 4197 # See if the compiler supports casting to a union type. 4198 # This is used to stop gcc from printing a compiler 4199 # warning when initializing a union member. 4200 4201 echo "$as_me:$LINENO: checking for cast to union support" >&5 4202echo $ECHO_N "checking for cast to union support... $ECHO_C" >&6 4203if test "${tcl_cv_cast_to_union+set}" = set; then 4204 echo $ECHO_N "(cached) $ECHO_C" >&6 4205else 4206 cat >conftest.$ac_ext <<_ACEOF 4207/* confdefs.h. */ 4208_ACEOF 4209cat confdefs.h >>conftest.$ac_ext 4210cat >>conftest.$ac_ext <<_ACEOF 4211/* end confdefs.h. */ 4212 4213int 4214main () 4215{ 4216 4217 union foo { int i; double d; }; 4218 union foo f = (union foo) (int) 0; 4219 4220 ; 4221 return 0; 4222} 4223_ACEOF 4224rm -f conftest.$ac_objext 4225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4226 (eval $ac_compile) 2>conftest.er1 4227 ac_status=$? 4228 grep -v '^ *+' conftest.er1 >conftest.err 4229 rm -f conftest.er1 4230 cat conftest.err >&5 4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4232 (exit $ac_status); } && 4233 { ac_try='test -z "$ac_c_werror_flag" 4234 || test ! -s conftest.err' 4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4236 (eval $ac_try) 2>&5 4237 ac_status=$? 4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4239 (exit $ac_status); }; } && 4240 { ac_try='test -s conftest.$ac_objext' 4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4242 (eval $ac_try) 2>&5 4243 ac_status=$? 4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4245 (exit $ac_status); }; }; then 4246 tcl_cv_cast_to_union=yes 4247else 4248 echo "$as_me: failed program was:" >&5 4249sed 's/^/| /' conftest.$ac_ext >&5 4250 4251tcl_cv_cast_to_union=no 4252fi 4253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4254 4255fi 4256echo "$as_me:$LINENO: result: $tcl_cv_cast_to_union" >&5 4257echo "${ECHO_T}$tcl_cv_cast_to_union" >&6 4258 if test "$tcl_cv_cast_to_union" = "yes"; then 4259 4260cat >>confdefs.h <<\_ACEOF 4261#define HAVE_CAST_TO_UNION 1 4262_ACEOF 4263 4264 fi 4265 fi 4266 4267 # DL_LIBS is empty, but then we match the Unix version 4268 4269 4270 4271 4272 4273 4274echo "$as_me:$LINENO: checking for intptr_t" >&5 4275echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6 4276if test "${ac_cv_type_intptr_t+set}" = set; then 4277 echo $ECHO_N "(cached) $ECHO_C" >&6 4278else 4279 cat >conftest.$ac_ext <<_ACEOF 4280/* confdefs.h. */ 4281_ACEOF 4282cat confdefs.h >>conftest.$ac_ext 4283cat >>conftest.$ac_ext <<_ACEOF 4284/* end confdefs.h. */ 4285$ac_includes_default 4286int 4287main () 4288{ 4289if ((intptr_t *) 0) 4290 return 0; 4291if (sizeof (intptr_t)) 4292 return 0; 4293 ; 4294 return 0; 4295} 4296_ACEOF 4297rm -f conftest.$ac_objext 4298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4299 (eval $ac_compile) 2>conftest.er1 4300 ac_status=$? 4301 grep -v '^ *+' conftest.er1 >conftest.err 4302 rm -f conftest.er1 4303 cat conftest.err >&5 4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4305 (exit $ac_status); } && 4306 { ac_try='test -z "$ac_c_werror_flag" 4307 || test ! -s conftest.err' 4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4309 (eval $ac_try) 2>&5 4310 ac_status=$? 4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4312 (exit $ac_status); }; } && 4313 { ac_try='test -s conftest.$ac_objext' 4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4315 (eval $ac_try) 2>&5 4316 ac_status=$? 4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4318 (exit $ac_status); }; }; then 4319 ac_cv_type_intptr_t=yes 4320else 4321 echo "$as_me: failed program was:" >&5 4322sed 's/^/| /' conftest.$ac_ext >&5 4323 4324ac_cv_type_intptr_t=no 4325fi 4326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4327fi 4328echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 4329echo "${ECHO_T}$ac_cv_type_intptr_t" >&6 4330if test $ac_cv_type_intptr_t = yes; then 4331 4332 4333cat >>confdefs.h <<\_ACEOF 4334#define HAVE_INTPTR_T 1 4335_ACEOF 4336 4337else 4338 4339 echo "$as_me:$LINENO: checking for pointer-size signed integer type" >&5 4340echo $ECHO_N "checking for pointer-size signed integer type... $ECHO_C" >&6 4341if test "${tcl_cv_intptr_t+set}" = set; then 4342 echo $ECHO_N "(cached) $ECHO_C" >&6 4343else 4344 4345 for tcl_cv_intptr_t in "int" "long" "long long" none; do 4346 if test "$tcl_cv_intptr_t" != none; then 4347 cat >conftest.$ac_ext <<_ACEOF 4348/* confdefs.h. */ 4349_ACEOF 4350cat confdefs.h >>conftest.$ac_ext 4351cat >>conftest.$ac_ext <<_ACEOF 4352/* end confdefs.h. */ 4353$ac_includes_default 4354int 4355main () 4356{ 4357static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_intptr_t))]; 4358test_array [0] = 0 4359 4360 ; 4361 return 0; 4362} 4363_ACEOF 4364rm -f conftest.$ac_objext 4365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4366 (eval $ac_compile) 2>conftest.er1 4367 ac_status=$? 4368 grep -v '^ *+' conftest.er1 >conftest.err 4369 rm -f conftest.er1 4370 cat conftest.err >&5 4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4372 (exit $ac_status); } && 4373 { ac_try='test -z "$ac_c_werror_flag" 4374 || test ! -s conftest.err' 4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4376 (eval $ac_try) 2>&5 4377 ac_status=$? 4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4379 (exit $ac_status); }; } && 4380 { ac_try='test -s conftest.$ac_objext' 4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4382 (eval $ac_try) 2>&5 4383 ac_status=$? 4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4385 (exit $ac_status); }; }; then 4386 tcl_ok=yes 4387else 4388 echo "$as_me: failed program was:" >&5 4389sed 's/^/| /' conftest.$ac_ext >&5 4390 4391tcl_ok=no 4392fi 4393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4394 test "$tcl_ok" = yes && break; fi 4395 done 4396fi 4397echo "$as_me:$LINENO: result: $tcl_cv_intptr_t" >&5 4398echo "${ECHO_T}$tcl_cv_intptr_t" >&6 4399 if test "$tcl_cv_intptr_t" != none; then 4400 4401cat >>confdefs.h <<_ACEOF 4402#define intptr_t $tcl_cv_intptr_t 4403_ACEOF 4404 4405 fi 4406 4407fi 4408 4409echo "$as_me:$LINENO: checking for uintptr_t" >&5 4410echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 4411if test "${ac_cv_type_uintptr_t+set}" = set; then 4412 echo $ECHO_N "(cached) $ECHO_C" >&6 4413else 4414 cat >conftest.$ac_ext <<_ACEOF 4415/* confdefs.h. */ 4416_ACEOF 4417cat confdefs.h >>conftest.$ac_ext 4418cat >>conftest.$ac_ext <<_ACEOF 4419/* end confdefs.h. */ 4420$ac_includes_default 4421int 4422main () 4423{ 4424if ((uintptr_t *) 0) 4425 return 0; 4426if (sizeof (uintptr_t)) 4427 return 0; 4428 ; 4429 return 0; 4430} 4431_ACEOF 4432rm -f conftest.$ac_objext 4433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4434 (eval $ac_compile) 2>conftest.er1 4435 ac_status=$? 4436 grep -v '^ *+' conftest.er1 >conftest.err 4437 rm -f conftest.er1 4438 cat conftest.err >&5 4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4440 (exit $ac_status); } && 4441 { ac_try='test -z "$ac_c_werror_flag" 4442 || test ! -s conftest.err' 4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4444 (eval $ac_try) 2>&5 4445 ac_status=$? 4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4447 (exit $ac_status); }; } && 4448 { ac_try='test -s conftest.$ac_objext' 4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4450 (eval $ac_try) 2>&5 4451 ac_status=$? 4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4453 (exit $ac_status); }; }; then 4454 ac_cv_type_uintptr_t=yes 4455else 4456 echo "$as_me: failed program was:" >&5 4457sed 's/^/| /' conftest.$ac_ext >&5 4458 4459ac_cv_type_uintptr_t=no 4460fi 4461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4462fi 4463echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 4464echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 4465if test $ac_cv_type_uintptr_t = yes; then 4466 4467 4468cat >>confdefs.h <<\_ACEOF 4469#define HAVE_UINTPTR_T 1 4470_ACEOF 4471 4472else 4473 4474 echo "$as_me:$LINENO: checking for pointer-size unsigned integer type" >&5 4475echo $ECHO_N "checking for pointer-size unsigned integer type... $ECHO_C" >&6 4476if test "${tcl_cv_uintptr_t+set}" = set; then 4477 echo $ECHO_N "(cached) $ECHO_C" >&6 4478else 4479 4480 for tcl_cv_uintptr_t in "unsigned int" "unsigned long" "unsigned long long" \ 4481 none; do 4482 if test "$tcl_cv_uintptr_t" != none; then 4483 cat >conftest.$ac_ext <<_ACEOF 4484/* confdefs.h. */ 4485_ACEOF 4486cat confdefs.h >>conftest.$ac_ext 4487cat >>conftest.$ac_ext <<_ACEOF 4488/* end confdefs.h. */ 4489$ac_includes_default 4490int 4491main () 4492{ 4493static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_uintptr_t))]; 4494test_array [0] = 0 4495 4496 ; 4497 return 0; 4498} 4499_ACEOF 4500rm -f conftest.$ac_objext 4501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4502 (eval $ac_compile) 2>conftest.er1 4503 ac_status=$? 4504 grep -v '^ *+' conftest.er1 >conftest.err 4505 rm -f conftest.er1 4506 cat conftest.err >&5 4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4508 (exit $ac_status); } && 4509 { ac_try='test -z "$ac_c_werror_flag" 4510 || test ! -s conftest.err' 4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4512 (eval $ac_try) 2>&5 4513 ac_status=$? 4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4515 (exit $ac_status); }; } && 4516 { ac_try='test -s conftest.$ac_objext' 4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4518 (eval $ac_try) 2>&5 4519 ac_status=$? 4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4521 (exit $ac_status); }; }; then 4522 tcl_ok=yes 4523else 4524 echo "$as_me: failed program was:" >&5 4525sed 's/^/| /' conftest.$ac_ext >&5 4526 4527tcl_ok=no 4528fi 4529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4530 test "$tcl_ok" = yes && break; fi 4531 done 4532fi 4533echo "$as_me:$LINENO: result: $tcl_cv_uintptr_t" >&5 4534echo "${ECHO_T}$tcl_cv_uintptr_t" >&6 4535 if test "$tcl_cv_uintptr_t" != none; then 4536 4537cat >>confdefs.h <<_ACEOF 4538#define uintptr_t $tcl_cv_uintptr_t 4539_ACEOF 4540 4541 fi 4542 4543fi 4544 4545#-------------------------------------------------------------------- 4546# Perform additinal compiler tests. 4547#-------------------------------------------------------------------- 4548 4549# See if declarations like FINDEX_INFO_LEVELS are 4550# missing from winbase.h. This is known to be 4551# a problem with VC++ 5.2. 4552 4553echo "$as_me:$LINENO: checking for FINDEX_INFO_LEVELS in winbase.h" >&5 4554echo $ECHO_N "checking for FINDEX_INFO_LEVELS in winbase.h... $ECHO_C" >&6 4555if test "${tcl_cv_findex_enums+set}" = set; then 4556 echo $ECHO_N "(cached) $ECHO_C" >&6 4557else 4558 cat >conftest.$ac_ext <<_ACEOF 4559/* confdefs.h. */ 4560_ACEOF 4561cat confdefs.h >>conftest.$ac_ext 4562cat >>conftest.$ac_ext <<_ACEOF 4563/* end confdefs.h. */ 4564 4565#define WIN32_LEAN_AND_MEAN 4566#include <windows.h> 4567#undef WIN32_LEAN_AND_MEAN 4568 4569int 4570main () 4571{ 4572 4573 FINDEX_INFO_LEVELS i; 4574 FINDEX_SEARCH_OPS j; 4575 4576 ; 4577 return 0; 4578} 4579_ACEOF 4580rm -f conftest.$ac_objext 4581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4582 (eval $ac_compile) 2>conftest.er1 4583 ac_status=$? 4584 grep -v '^ *+' conftest.er1 >conftest.err 4585 rm -f conftest.er1 4586 cat conftest.err >&5 4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4588 (exit $ac_status); } && 4589 { ac_try='test -z "$ac_c_werror_flag" 4590 || test ! -s conftest.err' 4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4592 (eval $ac_try) 2>&5 4593 ac_status=$? 4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4595 (exit $ac_status); }; } && 4596 { ac_try='test -s conftest.$ac_objext' 4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4598 (eval $ac_try) 2>&5 4599 ac_status=$? 4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4601 (exit $ac_status); }; }; then 4602 tcl_cv_findex_enums=yes 4603else 4604 echo "$as_me: failed program was:" >&5 4605sed 's/^/| /' conftest.$ac_ext >&5 4606 4607tcl_cv_findex_enums=no 4608fi 4609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4610 4611fi 4612echo "$as_me:$LINENO: result: $tcl_cv_findex_enums" >&5 4613echo "${ECHO_T}$tcl_cv_findex_enums" >&6 4614if test "$tcl_cv_findex_enums" = "no"; then 4615 4616cat >>confdefs.h <<\_ACEOF 4617#define HAVE_NO_FINDEX_ENUMS 1 4618_ACEOF 4619 4620fi 4621 4622#-------------------------------------------------------------------- 4623# Set the default compiler switches based on the --enable-symbols 4624# option. This macro depends on C flags, and should be called 4625# after SC_CONFIG_CFLAGS macro is called. 4626#-------------------------------------------------------------------- 4627 4628 4629 echo "$as_me:$LINENO: checking for build with symbols" >&5 4630echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6 4631 # Check whether --enable-symbols or --disable-symbols was given. 4632if test "${enable_symbols+set}" = set; then 4633 enableval="$enable_symbols" 4634 tcl_ok=$enableval 4635else 4636 tcl_ok=no 4637fi; 4638# FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT. 4639 if test "$tcl_ok" = "no"; then 4640 CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)' 4641 LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)' 4642 DBGX="" 4643 4644cat >>confdefs.h <<\_ACEOF 4645#define NDEBUG 1 4646_ACEOF 4647 4648 echo "$as_me:$LINENO: result: no" >&5 4649echo "${ECHO_T}no" >&6 4650 4651 cat >>confdefs.h <<\_ACEOF 4652#define TCL_CFG_OPTIMIZED 1 4653_ACEOF 4654 4655 else 4656 CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' 4657 LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' 4658 DBGX=g 4659 if test "$tcl_ok" = "yes"; then 4660 echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 4661echo "${ECHO_T}yes (standard debugging)" >&6 4662 fi 4663 fi 4664 4665 4666 4667 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 4668 4669cat >>confdefs.h <<\_ACEOF 4670#define TCL_MEM_DEBUG 1 4671_ACEOF 4672 4673 fi 4674 4675 if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then 4676 4677cat >>confdefs.h <<\_ACEOF 4678#define TCL_COMPILE_DEBUG 1 4679_ACEOF 4680 4681 4682cat >>confdefs.h <<\_ACEOF 4683#define TCL_COMPILE_STATS 1 4684_ACEOF 4685 4686 fi 4687 4688 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 4689 if test "$tcl_ok" = "all"; then 4690 echo "$as_me:$LINENO: result: enabled symbols mem compile debugging" >&5 4691echo "${ECHO_T}enabled symbols mem compile debugging" >&6 4692 else 4693 echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 4694echo "${ECHO_T}enabled $tcl_ok debugging" >&6 4695 fi 4696 fi 4697 4698 4699TCL_DBGX=${DBGX} 4700 4701#-------------------------------------------------------------------- 4702# Embed the manifest if we can determine how 4703#-------------------------------------------------------------------- 4704 4705 4706 echo "$as_me:$LINENO: checking whether to embed manifest" >&5 4707echo $ECHO_N "checking whether to embed manifest... $ECHO_C" >&6 4708 # Check whether --enable-embedded-manifest or --disable-embedded-manifest was given. 4709if test "${enable_embedded_manifest+set}" = set; then 4710 enableval="$enable_embedded_manifest" 4711 embed_ok=$enableval 4712else 4713 embed_ok=yes 4714fi; 4715 4716 VC_MANIFEST_EMBED_DLL= 4717 VC_MANIFEST_EMBED_EXE= 4718 result=no 4719 if test "$embed_ok" = "yes" -a "${SHARED_BUILD}" = "1" \ 4720 -a "$GCC" != "yes" ; then 4721 # Add the magic to embed the manifest into the dll/exe 4722 cat >conftest.$ac_ext <<_ACEOF 4723/* confdefs.h. */ 4724_ACEOF 4725cat confdefs.h >>conftest.$ac_ext 4726cat >>conftest.$ac_ext <<_ACEOF 4727/* end confdefs.h. */ 4728 4729#if defined(_MSC_VER) && _MSC_VER >= 1400 4730print("manifest needed") 4731#endif 4732 4733_ACEOF 4734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4735 $EGREP "manifest needed" >/dev/null 2>&1; then 4736 4737 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 4738 # Could add 'if test -f' check, but manifest should be created 4739 # in this compiler case 4740 # Add in a manifest argument that may be specified 4741 # XXX Needs improvement so that the test for existence accounts 4742 # XXX for a provided (known) manifest 4743 VC_MANIFEST_EMBED_DLL="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2 ; fi" 4744 VC_MANIFEST_EMBED_EXE="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1 ; fi" 4745 result=yes 4746 if test "x" != x ; then 4747 result="yes ()" 4748 fi 4749 4750fi 4751rm -f conftest* 4752 4753 fi 4754 echo "$as_me:$LINENO: result: $result" >&5 4755echo "${ECHO_T}$result" >&6 4756 4757 4758 4759 4760#------------------------------------------------------------------------ 4761# tclConfig.sh refers to this by a different name 4762#------------------------------------------------------------------------ 4763 4764TCL_SHARED_BUILD=${SHARED_BUILD} 4765 4766#-------------------------------------------------------------------- 4767# Perform final evaluations of variables with possible substitutions. 4768#-------------------------------------------------------------------- 4769 4770TCL_SHARED_LIB_SUFFIX="\${NODOT_VERSION}${DLLSUFFIX}" 4771TCL_UNSHARED_LIB_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}" 4772TCL_EXPORT_FILE_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}" 4773 4774eval "TCL_SRC_DIR=\"`cd $srcdir/..; $CYGPATH $(pwd)`\"" 4775 4776eval "TCL_DLL_FILE=tcl${VER}${DLLSUFFIX}" 4777 4778eval "TCL_LIB_FILE=${LIBPREFIX}tcl$VER${LIBSUFFIX}" 4779 4780eval "TCL_LIB_FLAG=\"-ltcl${VER}${LIBFLAGSUFFIX}\"" 4781eval "TCL_BUILD_LIB_SPEC=\"-L`$CYGPATH $(pwd)` ${TCL_LIB_FLAG}\"" 4782eval "TCL_LIB_SPEC=\"-L${libdir} ${TCL_LIB_FLAG}\"" 4783 4784eval "TCL_STUB_LIB_FILE=\"${LIBPREFIX}tclstub${VER}${LIBSUFFIX}\"" 4785eval "TCL_STUB_LIB_FLAG=\"-ltclstub${VER}${LIBFLAGSUFFIX}\"" 4786eval "TCL_BUILD_STUB_LIB_SPEC=\"-L`$CYGPATH $(pwd)` ${TCL_STUB_LIB_FLAG}\"" 4787eval "TCL_STUB_LIB_SPEC=\"-L${libdir} ${TCL_STUB_LIB_FLAG}\"" 4788eval "TCL_BUILD_STUB_LIB_PATH=\"`$CYGPATH $(pwd)`/${TCL_STUB_LIB_FILE}\"" 4789eval "TCL_STUB_LIB_PATH=\"${libdir}/${TCL_STUB_LIB_FILE}\"" 4790 4791# Install time header dir can be set via --includedir 4792eval "TCL_INCLUDE_SPEC=\"-I${includedir}\"" 4793 4794 4795eval "DLLSUFFIX=${DLLSUFFIX}" 4796eval "LIBPREFIX=${LIBPREFIX}" 4797eval "LIBSUFFIX=${LIBSUFFIX}" 4798eval "EXESUFFIX=${EXESUFFIX}" 4799 4800CFG_TCL_SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX} 4801CFG_TCL_UNSHARED_LIB_SUFFIX=${TCL_UNSHARED_LIB_SUFFIX} 4802CFG_TCL_EXPORT_FILE_SUFFIX=${TCL_EXPORT_FILE_SUFFIX} 4803 4804#-------------------------------------------------------------------- 4805# Adjust the defines for how the resources are built depending 4806# on symbols and static vs. shared. 4807#-------------------------------------------------------------------- 4808 4809if test ${SHARED_BUILD} = 0 ; then 4810 if test "${DBGX}" = "g"; then 4811 RC_DEFINES="${RC_DEFINE} STATIC_BUILD ${RC_DEFINE} DEBUG" 4812 else 4813 RC_DEFINES="${RC_DEFINE} STATIC_BUILD" 4814 fi 4815else 4816 if test "${DBGX}" = "g"; then 4817 RC_DEFINES="${RC_DEFINE} DEBUG" 4818 else 4819 RC_DEFINES="" 4820 fi 4821fi 4822 4823#-------------------------------------------------------------------- 4824# The statements below define the symbol TCL_PACKAGE_PATH, which 4825# gives a list of directories that may contain packages. The list 4826# consists of one directory for machine-dependent binaries and 4827# another for platform-independent scripts. 4828#-------------------------------------------------------------------- 4829 4830if test "$prefix/lib" != "$libdir"; then 4831 TCL_PACKAGE_PATH="${libdir} ${prefix}/lib" 4832else 4833 TCL_PACKAGE_PATH="${prefix}/lib" 4834fi 4835 4836# The tclsh.exe.manifest requires these 4837# TCL_WIN_VERSION is the 4 dotted pair Windows version format which needs 4838# the release level, and must account for interim release versioning 4839case "$TCL_PATCH_LEVEL" in 4840 *a*) TCL_RELEASE_LEVEL=0 ;; 4841 *b*) TCL_RELEASE_LEVEL=1 ;; 4842 *) TCL_RELEASE_LEVEL=2 ;; 4843esac 4844TCL_WIN_VERSION="$TCL_VERSION.$TCL_RELEASE_LEVEL.`echo $TCL_PATCH_LEVEL | tr -d ab.`" 4845 4846# X86|AMD64|IA64 for manifest 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856# empty on win 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874# win/tcl.m4 doesn't set (CFLAGS) 4875 4876 4877 4878 4879 4880 4881 4882# win/tcl.m4 doesn't set (LDFLAGS) 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911# empty on win, but needs sub'ing 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921# win only 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 ac_config_files="$ac_config_files Makefile tclConfig.sh tcl.hpj tclsh.exe.manifest" 4938cat >confcache <<\_ACEOF 4939# This file is a shell script that caches the results of configure 4940# tests run on this system so they can be shared between configure 4941# scripts and configure runs, see configure's option --config-cache. 4942# It is not useful on other systems. If it contains results you don't 4943# want to keep, you may remove or edit it. 4944# 4945# config.status only pays attention to the cache file if you give it 4946# the --recheck option to rerun configure. 4947# 4948# `ac_cv_env_foo' variables (set or unset) will be overridden when 4949# loading this file, other *unset* `ac_cv_foo' will be assigned the 4950# following values. 4951 4952_ACEOF 4953 4954# The following way of writing the cache mishandles newlines in values, 4955# but we know of no workaround that is simple, portable, and efficient. 4956# So, don't put newlines in cache variables' values. 4957# Ultrix sh set writes to stderr and can't be redirected directly, 4958# and sets the high bit in the cache file unless we assign to the vars. 4959{ 4960 (set) 2>&1 | 4961 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4962 *ac_space=\ *) 4963 # `set' does not quote correctly, so add quotes (double-quote 4964 # substitution turns \\\\ into \\, and sed turns \\ into \). 4965 sed -n \ 4966 "s/'/'\\\\''/g; 4967 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4968 ;; 4969 *) 4970 # `set' quotes correctly as required by POSIX, so do not add quotes. 4971 sed -n \ 4972 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 4973 ;; 4974 esac; 4975} | 4976 sed ' 4977 t clear 4978 : clear 4979 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4980 t end 4981 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4982 : end' >>confcache 4983if diff $cache_file confcache >/dev/null 2>&1; then :; else 4984 if test -w $cache_file; then 4985 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 4986 cat confcache >$cache_file 4987 else 4988 echo "not updating unwritable cache $cache_file" 4989 fi 4990fi 4991rm -f confcache 4992 4993test "x$prefix" = xNONE && prefix=$ac_default_prefix 4994# Let make expand exec_prefix. 4995test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4996 4997# VPATH may cause trouble with some makes, so we remove $(srcdir), 4998# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 4999# trailing colons and then remove the whole line if VPATH becomes empty 5000# (actually we leave an empty line to preserve line numbers). 5001if test "x$srcdir" = x.; then 5002 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5003s/:*\$(srcdir):*/:/; 5004s/:*\${srcdir}:*/:/; 5005s/:*@srcdir@:*/:/; 5006s/^\([^=]*=[ ]*\):*/\1/; 5007s/:*$//; 5008s/^[^=]*=[ ]*$//; 5009}' 5010fi 5011 5012# Transform confdefs.h into DEFS. 5013# Protect against shell expansion while executing Makefile rules. 5014# Protect against Makefile macro expansion. 5015# 5016# If the first sed substitution is executed (which looks for macros that 5017# take arguments), then we branch to the quote section. Otherwise, 5018# look for a macro that doesn't take arguments. 5019cat >confdef2opt.sed <<\_ACEOF 5020t clear 5021: clear 5022s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 5023t quote 5024s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 5025t quote 5026d 5027: quote 5028s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 5029s,\[,\\&,g 5030s,\],\\&,g 5031s,\$,$$,g 5032p 5033_ACEOF 5034# We use echo to avoid assuming a particular line-breaking character. 5035# The extra dot is to prevent the shell from consuming trailing 5036# line-breaks from the sub-command output. A line-break within 5037# single-quotes doesn't work because, if this script is created in a 5038# platform that uses two characters for line-breaks (e.g., DOS), tr 5039# would break. 5040ac_LF_and_DOT=`echo; echo .` 5041DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 5042rm -f confdef2opt.sed 5043 5044 5045ac_libobjs= 5046ac_ltlibobjs= 5047for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5048 # 1. Remove the extension, and $U if already installed. 5049 ac_i=`echo "$ac_i" | 5050 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 5051 # 2. Add them. 5052 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 5053 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 5054done 5055LIBOBJS=$ac_libobjs 5056 5057LTLIBOBJS=$ac_ltlibobjs 5058 5059 5060 5061: ${CONFIG_STATUS=./config.status} 5062ac_clean_files_save=$ac_clean_files 5063ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5064{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 5065echo "$as_me: creating $CONFIG_STATUS" >&6;} 5066cat >$CONFIG_STATUS <<_ACEOF 5067#! $SHELL 5068# Generated by $as_me. 5069# Run this file to recreate the current configuration. 5070# Compiler output produced by configure, useful for debugging 5071# configure, is in config.log if it exists. 5072 5073debug=false 5074ac_cs_recheck=false 5075ac_cs_silent=false 5076SHELL=\${CONFIG_SHELL-$SHELL} 5077_ACEOF 5078 5079cat >>$CONFIG_STATUS <<\_ACEOF 5080## --------------------- ## 5081## M4sh Initialization. ## 5082## --------------------- ## 5083 5084# Be Bourne compatible 5085if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5086 emulate sh 5087 NULLCMD=: 5088 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 5089 # is contrary to our usage. Disable this feature. 5090 alias -g '${1+"$@"}'='"$@"' 5091elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 5092 set -o posix 5093fi 5094DUALCASE=1; export DUALCASE # for MKS sh 5095 5096# Support unset when possible. 5097if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5098 as_unset=unset 5099else 5100 as_unset=false 5101fi 5102 5103 5104# Work around bugs in pre-3.0 UWIN ksh. 5105$as_unset ENV MAIL MAILPATH 5106PS1='$ ' 5107PS2='> ' 5108PS4='+ ' 5109 5110# NLS nuisances. 5111for as_var in \ 5112 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 5113 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 5114 LC_TELEPHONE LC_TIME 5115do 5116 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 5117 eval $as_var=C; export $as_var 5118 else 5119 $as_unset $as_var 5120 fi 5121done 5122 5123# Required to use basename. 5124if expr a : '\(a\)' >/dev/null 2>&1; then 5125 as_expr=expr 5126else 5127 as_expr=false 5128fi 5129 5130if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 5131 as_basename=basename 5132else 5133 as_basename=false 5134fi 5135 5136 5137# Name of the executable. 5138as_me=`$as_basename "$0" || 5139$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5140 X"$0" : 'X\(//\)$' \| \ 5141 X"$0" : 'X\(/\)$' \| \ 5142 . : '\(.\)' 2>/dev/null || 5143echo X/"$0" | 5144 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 5145 /^X\/\(\/\/\)$/{ s//\1/; q; } 5146 /^X\/\(\/\).*/{ s//\1/; q; } 5147 s/.*/./; q'` 5148 5149 5150# PATH needs CR, and LINENO needs CR and PATH. 5151# Avoid depending upon Character Ranges. 5152as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5153as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5154as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5155as_cr_digits='0123456789' 5156as_cr_alnum=$as_cr_Letters$as_cr_digits 5157 5158# The user is always right. 5159if test "${PATH_SEPARATOR+set}" != set; then 5160 echo "#! /bin/sh" >conf$$.sh 5161 echo "exit 0" >>conf$$.sh 5162 chmod +x conf$$.sh 5163 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5164 PATH_SEPARATOR=';' 5165 else 5166 PATH_SEPARATOR=: 5167 fi 5168 rm -f conf$$.sh 5169fi 5170 5171 5172 as_lineno_1=$LINENO 5173 as_lineno_2=$LINENO 5174 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 5175 test "x$as_lineno_1" != "x$as_lineno_2" && 5176 test "x$as_lineno_3" = "x$as_lineno_2" || { 5177 # Find who we are. Look in the path if we contain no path at all 5178 # relative or not. 5179 case $0 in 5180 *[\\/]* ) as_myself=$0 ;; 5181 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5182for as_dir in $PATH 5183do 5184 IFS=$as_save_IFS 5185 test -z "$as_dir" && as_dir=. 5186 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5187done 5188 5189 ;; 5190 esac 5191 # We did not find ourselves, most probably we were run as `sh COMMAND' 5192 # in which case we are not to be found in the path. 5193 if test "x$as_myself" = x; then 5194 as_myself=$0 5195 fi 5196 if test ! -f "$as_myself"; then 5197 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 5198echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 5199 { (exit 1); exit 1; }; } 5200 fi 5201 case $CONFIG_SHELL in 5202 '') 5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5204for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 5205do 5206 IFS=$as_save_IFS 5207 test -z "$as_dir" && as_dir=. 5208 for as_base in sh bash ksh sh5; do 5209 case $as_dir in 5210 /*) 5211 if ("$as_dir/$as_base" -c ' 5212 as_lineno_1=$LINENO 5213 as_lineno_2=$LINENO 5214 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 5215 test "x$as_lineno_1" != "x$as_lineno_2" && 5216 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 5217 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 5218 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 5219 CONFIG_SHELL=$as_dir/$as_base 5220 export CONFIG_SHELL 5221 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 5222 fi;; 5223 esac 5224 done 5225done 5226;; 5227 esac 5228 5229 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 5230 # uniformly replaced by the line number. The first 'sed' inserts a 5231 # line-number line before each line; the second 'sed' does the real 5232 # work. The second script uses 'N' to pair each line-number line 5233 # with the numbered line, and appends trailing '-' during 5234 # substitution so that $LINENO is not a special case at line end. 5235 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 5236 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 5237 sed '=' <$as_myself | 5238 sed ' 5239 N 5240 s,$,-, 5241 : loop 5242 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 5243 t loop 5244 s,-$,, 5245 s,^['$as_cr_digits']*\n,, 5246 ' >$as_me.lineno && 5247 chmod +x $as_me.lineno || 5248 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 5249echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 5250 { (exit 1); exit 1; }; } 5251 5252 # Don't try to exec as it changes $[0], causing all sort of problems 5253 # (the dirname of $[0] is not the place where we might find the 5254 # original and so on. Autoconf is especially sensible to this). 5255 . ./$as_me.lineno 5256 # Exit status is that of the last command. 5257 exit 5258} 5259 5260 5261case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 5262 *c*,-n*) ECHO_N= ECHO_C=' 5263' ECHO_T=' ' ;; 5264 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 5265 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 5266esac 5267 5268if expr a : '\(a\)' >/dev/null 2>&1; then 5269 as_expr=expr 5270else 5271 as_expr=false 5272fi 5273 5274rm -f conf$$ conf$$.exe conf$$.file 5275echo >conf$$.file 5276if ln -s conf$$.file conf$$ 2>/dev/null; then 5277 # We could just check for DJGPP; but this test a) works b) is more generic 5278 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 5279 if test -f conf$$.exe; then 5280 # Don't use ln at all; we don't have any links 5281 as_ln_s='cp -p' 5282 else 5283 as_ln_s='ln -s' 5284 fi 5285elif ln conf$$.file conf$$ 2>/dev/null; then 5286 as_ln_s=ln 5287else 5288 as_ln_s='cp -p' 5289fi 5290rm -f conf$$ conf$$.exe conf$$.file 5291 5292if mkdir -p . 2>/dev/null; then 5293 as_mkdir_p=: 5294else 5295 test -d ./-p && rmdir ./-p 5296 as_mkdir_p=false 5297fi 5298 5299as_executable_p="test -f" 5300 5301# Sed expression to map a string onto a valid CPP name. 5302as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5303 5304# Sed expression to map a string onto a valid variable name. 5305as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5306 5307 5308# IFS 5309# We need space, tab and new line, in precisely that order. 5310as_nl=' 5311' 5312IFS=" $as_nl" 5313 5314# CDPATH. 5315$as_unset CDPATH 5316 5317exec 6>&1 5318 5319# Open the log real soon, to keep \$[0] and so on meaningful, and to 5320# report actual input values of CONFIG_FILES etc. instead of their 5321# values after options handling. Logging --version etc. is OK. 5322exec 5>>config.log 5323{ 5324 echo 5325 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5326## Running $as_me. ## 5327_ASBOX 5328} >&5 5329cat >&5 <<_CSEOF 5330 5331This file was extended by $as_me, which was 5332generated by GNU Autoconf 2.59. Invocation command line was 5333 5334 CONFIG_FILES = $CONFIG_FILES 5335 CONFIG_HEADERS = $CONFIG_HEADERS 5336 CONFIG_LINKS = $CONFIG_LINKS 5337 CONFIG_COMMANDS = $CONFIG_COMMANDS 5338 $ $0 $@ 5339 5340_CSEOF 5341echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 5342echo >&5 5343_ACEOF 5344 5345# Files that config.status was made for. 5346if test -n "$ac_config_files"; then 5347 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 5348fi 5349 5350if test -n "$ac_config_headers"; then 5351 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 5352fi 5353 5354if test -n "$ac_config_links"; then 5355 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 5356fi 5357 5358if test -n "$ac_config_commands"; then 5359 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 5360fi 5361 5362cat >>$CONFIG_STATUS <<\_ACEOF 5363 5364ac_cs_usage="\ 5365\`$as_me' instantiates files from templates according to the 5366current configuration. 5367 5368Usage: $0 [OPTIONS] [FILE]... 5369 5370 -h, --help print this help, then exit 5371 -V, --version print version number, then exit 5372 -q, --quiet do not print progress messages 5373 -d, --debug don't remove temporary files 5374 --recheck update $as_me by reconfiguring in the same conditions 5375 --file=FILE[:TEMPLATE] 5376 instantiate the configuration file FILE 5377 5378Configuration files: 5379$config_files 5380 5381Report bugs to <bug-autoconf@gnu.org>." 5382_ACEOF 5383 5384cat >>$CONFIG_STATUS <<_ACEOF 5385ac_cs_version="\\ 5386config.status 5387configured by $0, generated by GNU Autoconf 2.59, 5388 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 5389 5390Copyright (C) 2003 Free Software Foundation, Inc. 5391This config.status script is free software; the Free Software Foundation 5392gives unlimited permission to copy, distribute and modify it." 5393srcdir=$srcdir 5394_ACEOF 5395 5396cat >>$CONFIG_STATUS <<\_ACEOF 5397# If no file are specified by the user, then we need to provide default 5398# value. By we need to know if files were specified by the user. 5399ac_need_defaults=: 5400while test $# != 0 5401do 5402 case $1 in 5403 --*=*) 5404 ac_option=`expr "x$1" : 'x\([^=]*\)='` 5405 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5406 ac_shift=: 5407 ;; 5408 -*) 5409 ac_option=$1 5410 ac_optarg=$2 5411 ac_shift=shift 5412 ;; 5413 *) # This is not an option, so the user has probably given explicit 5414 # arguments. 5415 ac_option=$1 5416 ac_need_defaults=false;; 5417 esac 5418 5419 case $ac_option in 5420 # Handling of the options. 5421_ACEOF 5422cat >>$CONFIG_STATUS <<\_ACEOF 5423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5424 ac_cs_recheck=: ;; 5425 --version | --vers* | -V ) 5426 echo "$ac_cs_version"; exit 0 ;; 5427 --he | --h) 5428 # Conflict between --help and --header 5429 { { echo "$as_me:$LINENO: error: ambiguous option: $1 5430Try \`$0 --help' for more information." >&5 5431echo "$as_me: error: ambiguous option: $1 5432Try \`$0 --help' for more information." >&2;} 5433 { (exit 1); exit 1; }; };; 5434 --help | --hel | -h ) 5435 echo "$ac_cs_usage"; exit 0 ;; 5436 --debug | --d* | -d ) 5437 debug=: ;; 5438 --file | --fil | --fi | --f ) 5439 $ac_shift 5440 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 5441 ac_need_defaults=false;; 5442 --header | --heade | --head | --hea ) 5443 $ac_shift 5444 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 5445 ac_need_defaults=false;; 5446 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5447 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5448 ac_cs_silent=: ;; 5449 5450 # This is an error. 5451 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 5452Try \`$0 --help' for more information." >&5 5453echo "$as_me: error: unrecognized option: $1 5454Try \`$0 --help' for more information." >&2;} 5455 { (exit 1); exit 1; }; } ;; 5456 5457 *) ac_config_targets="$ac_config_targets $1" ;; 5458 5459 esac 5460 shift 5461done 5462 5463ac_configure_extra_args= 5464 5465if $ac_cs_silent; then 5466 exec 6>/dev/null 5467 ac_configure_extra_args="$ac_configure_extra_args --silent" 5468fi 5469 5470_ACEOF 5471cat >>$CONFIG_STATUS <<_ACEOF 5472if \$ac_cs_recheck; then 5473 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 5474 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5475fi 5476 5477_ACEOF 5478 5479 5480 5481 5482 5483cat >>$CONFIG_STATUS <<\_ACEOF 5484for ac_config_target in $ac_config_targets 5485do 5486 case "$ac_config_target" in 5487 # Handling of arguments. 5488 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5489 "tclConfig.sh" ) CONFIG_FILES="$CONFIG_FILES tclConfig.sh" ;; 5490 "tcl.hpj" ) CONFIG_FILES="$CONFIG_FILES tcl.hpj" ;; 5491 "tclsh.exe.manifest" ) CONFIG_FILES="$CONFIG_FILES tclsh.exe.manifest" ;; 5492 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 5493echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 5494 { (exit 1); exit 1; }; };; 5495 esac 5496done 5497 5498# If the user did not use the arguments to specify the items to instantiate, 5499# then the envvar interface is used. Set only those that are not. 5500# We use the long form for the default assignment because of an extremely 5501# bizarre bug on SunOS 4.1.3. 5502if $ac_need_defaults; then 5503 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5504fi 5505 5506# Have a temporary directory for convenience. Make it in the build tree 5507# simply because there is no reason to put it here, and in addition, 5508# creating and moving files from /tmp can sometimes cause problems. 5509# Create a temporary directory, and hook for its removal unless debugging. 5510$debug || 5511{ 5512 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5513 trap '{ (exit 1); exit 1; }' 1 2 13 15 5514} 5515 5516# Create a (secure) tmp directory for tmp files. 5517 5518{ 5519 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 5520 test -n "$tmp" && test -d "$tmp" 5521} || 5522{ 5523 tmp=./confstat$$-$RANDOM 5524 (umask 077 && mkdir $tmp) 5525} || 5526{ 5527 echo "$me: cannot create a temporary directory in ." >&2 5528 { (exit 1); exit 1; } 5529} 5530 5531_ACEOF 5532 5533cat >>$CONFIG_STATUS <<_ACEOF 5534 5535# 5536# CONFIG_FILES section. 5537# 5538 5539# No need to generate the scripts if there are no CONFIG_FILES. 5540# This happens for instance when ./config.status config.h 5541if test -n "\$CONFIG_FILES"; then 5542 # Protect against being on the right side of a sed subst in config.status. 5543 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 5544 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 5545s,@SHELL@,$SHELL,;t t 5546s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 5547s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 5548s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 5549s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 5550s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 5551s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 5552s,@exec_prefix@,$exec_prefix,;t t 5553s,@prefix@,$prefix,;t t 5554s,@program_transform_name@,$program_transform_name,;t t 5555s,@bindir@,$bindir,;t t 5556s,@sbindir@,$sbindir,;t t 5557s,@libexecdir@,$libexecdir,;t t 5558s,@datadir@,$datadir,;t t 5559s,@sysconfdir@,$sysconfdir,;t t 5560s,@sharedstatedir@,$sharedstatedir,;t t 5561s,@localstatedir@,$localstatedir,;t t 5562s,@libdir@,$libdir,;t t 5563s,@includedir@,$includedir,;t t 5564s,@oldincludedir@,$oldincludedir,;t t 5565s,@infodir@,$infodir,;t t 5566s,@mandir@,$mandir,;t t 5567s,@build_alias@,$build_alias,;t t 5568s,@host_alias@,$host_alias,;t t 5569s,@target_alias@,$target_alias,;t t 5570s,@DEFS@,$DEFS,;t t 5571s,@ECHO_C@,$ECHO_C,;t t 5572s,@ECHO_N@,$ECHO_N,;t t 5573s,@ECHO_T@,$ECHO_T,;t t 5574s,@LIBS@,$LIBS,;t t 5575s,@CC@,$CC,;t t 5576s,@CFLAGS@,$CFLAGS,;t t 5577s,@LDFLAGS@,$LDFLAGS,;t t 5578s,@CPPFLAGS@,$CPPFLAGS,;t t 5579s,@ac_ct_CC@,$ac_ct_CC,;t t 5580s,@EXEEXT@,$EXEEXT,;t t 5581s,@OBJEXT@,$OBJEXT,;t t 5582s,@CPP@,$CPP,;t t 5583s,@EGREP@,$EGREP,;t t 5584s,@AR@,$AR,;t t 5585s,@ac_ct_AR@,$ac_ct_AR,;t t 5586s,@RANLIB@,$RANLIB,;t t 5587s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 5588s,@RC@,$RC,;t t 5589s,@ac_ct_RC@,$ac_ct_RC,;t t 5590s,@SET_MAKE@,$SET_MAKE,;t t 5591s,@TCL_THREADS@,$TCL_THREADS,;t t 5592s,@CYGPATH@,$CYGPATH,;t t 5593s,@CELIB_DIR@,$CELIB_DIR,;t t 5594s,@DL_LIBS@,$DL_LIBS,;t t 5595s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t 5596s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t 5597s,@CFLAGS_WARNING@,$CFLAGS_WARNING,;t t 5598s,@CFLAGS_DEFAULT@,$CFLAGS_DEFAULT,;t t 5599s,@LDFLAGS_DEFAULT@,$LDFLAGS_DEFAULT,;t t 5600s,@VC_MANIFEST_EMBED_DLL@,$VC_MANIFEST_EMBED_DLL,;t t 5601s,@VC_MANIFEST_EMBED_EXE@,$VC_MANIFEST_EMBED_EXE,;t t 5602s,@TCL_WIN_VERSION@,$TCL_WIN_VERSION,;t t 5603s,@MACHINE@,$MACHINE,;t t 5604s,@TCL_VERSION@,$TCL_VERSION,;t t 5605s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t 5606s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t 5607s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t 5608s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t 5609s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t 5610s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t 5611s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t 5612s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t 5613s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t 5614s,@TCL_STUB_LIB_PATH@,$TCL_STUB_LIB_PATH,;t t 5615s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t 5616s,@TCL_BUILD_STUB_LIB_SPEC@,$TCL_BUILD_STUB_LIB_SPEC,;t t 5617s,@TCL_BUILD_STUB_LIB_PATH@,$TCL_BUILD_STUB_LIB_PATH,;t t 5618s,@TCL_DLL_FILE@,$TCL_DLL_FILE,;t t 5619s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t 5620s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t 5621s,@TCL_DBGX@,$TCL_DBGX,;t t 5622s,@CFG_TCL_SHARED_LIB_SUFFIX@,$CFG_TCL_SHARED_LIB_SUFFIX,;t t 5623s,@CFG_TCL_UNSHARED_LIB_SUFFIX@,$CFG_TCL_UNSHARED_LIB_SUFFIX,;t t 5624s,@CFG_TCL_EXPORT_FILE_SUFFIX@,$CFG_TCL_EXPORT_FILE_SUFFIX,;t t 5625s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t 5626s,@DEPARG@,$DEPARG,;t t 5627s,@CC_OBJNAME@,$CC_OBJNAME,;t t 5628s,@CC_EXENAME@,$CC_EXENAME,;t t 5629s,@LDFLAGS_DEBUG@,$LDFLAGS_DEBUG,;t t 5630s,@LDFLAGS_OPTIMIZE@,$LDFLAGS_OPTIMIZE,;t t 5631s,@LDFLAGS_CONSOLE@,$LDFLAGS_CONSOLE,;t t 5632s,@LDFLAGS_WINDOW@,$LDFLAGS_WINDOW,;t t 5633s,@STLIB_LD@,$STLIB_LD,;t t 5634s,@SHLIB_LD@,$SHLIB_LD,;t t 5635s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t 5636s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t 5637s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t 5638s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t 5639s,@LIBS_GUI@,$LIBS_GUI,;t t 5640s,@DLLSUFFIX@,$DLLSUFFIX,;t t 5641s,@LIBPREFIX@,$LIBPREFIX,;t t 5642s,@LIBSUFFIX@,$LIBSUFFIX,;t t 5643s,@EXESUFFIX@,$EXESUFFIX,;t t 5644s,@LIBRARIES@,$LIBRARIES,;t t 5645s,@MAKE_LIB@,$MAKE_LIB,;t t 5646s,@MAKE_STUB_LIB@,$MAKE_STUB_LIB,;t t 5647s,@POST_MAKE_LIB@,$POST_MAKE_LIB,;t t 5648s,@MAKE_DLL@,$MAKE_DLL,;t t 5649s,@MAKE_EXE@,$MAKE_EXE,;t t 5650s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t 5651s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t 5652s,@TCL_NEEDS_EXP_FILE@,$TCL_NEEDS_EXP_FILE,;t t 5653s,@TCL_BUILD_EXP_FILE@,$TCL_BUILD_EXP_FILE,;t t 5654s,@TCL_EXP_FILE@,$TCL_EXP_FILE,;t t 5655s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t 5656s,@TCL_PACKAGE_PATH@,$TCL_PACKAGE_PATH,;t t 5657s,@TCL_DDE_VERSION@,$TCL_DDE_VERSION,;t t 5658s,@TCL_DDE_MAJOR_VERSION@,$TCL_DDE_MAJOR_VERSION,;t t 5659s,@TCL_DDE_MINOR_VERSION@,$TCL_DDE_MINOR_VERSION,;t t 5660s,@TCL_REG_VERSION@,$TCL_REG_VERSION,;t t 5661s,@TCL_REG_MAJOR_VERSION@,$TCL_REG_MAJOR_VERSION,;t t 5662s,@TCL_REG_MINOR_VERSION@,$TCL_REG_MINOR_VERSION,;t t 5663s,@RC_OUT@,$RC_OUT,;t t 5664s,@RC_TYPE@,$RC_TYPE,;t t 5665s,@RC_INCLUDE@,$RC_INCLUDE,;t t 5666s,@RC_DEFINE@,$RC_DEFINE,;t t 5667s,@RC_DEFINES@,$RC_DEFINES,;t t 5668s,@RES@,$RES,;t t 5669s,@LIBOBJS@,$LIBOBJS,;t t 5670s,@LTLIBOBJS@,$LTLIBOBJS,;t t 5671CEOF 5672 5673_ACEOF 5674 5675 cat >>$CONFIG_STATUS <<\_ACEOF 5676 # Split the substitutions into bite-sized pieces for seds with 5677 # small command number limits, like on Digital OSF/1 and HP-UX. 5678 ac_max_sed_lines=48 5679 ac_sed_frag=1 # Number of current file. 5680 ac_beg=1 # First line for current file. 5681 ac_end=$ac_max_sed_lines # Line after last line for current file. 5682 ac_more_lines=: 5683 ac_sed_cmds= 5684 while $ac_more_lines; do 5685 if test $ac_beg -gt 1; then 5686 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5687 else 5688 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5689 fi 5690 if test ! -s $tmp/subs.frag; then 5691 ac_more_lines=false 5692 else 5693 # The purpose of the label and of the branching condition is to 5694 # speed up the sed processing (if there are no `@' at all, there 5695 # is no need to browse any of the substitutions). 5696 # These are the two extra sed commands mentioned above. 5697 (echo ':t 5698 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 5699 if test -z "$ac_sed_cmds"; then 5700 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 5701 else 5702 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 5703 fi 5704 ac_sed_frag=`expr $ac_sed_frag + 1` 5705 ac_beg=$ac_end 5706 ac_end=`expr $ac_end + $ac_max_sed_lines` 5707 fi 5708 done 5709 if test -z "$ac_sed_cmds"; then 5710 ac_sed_cmds=cat 5711 fi 5712fi # test -n "$CONFIG_FILES" 5713 5714_ACEOF 5715cat >>$CONFIG_STATUS <<\_ACEOF 5716for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 5717 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5718 case $ac_file in 5719 - | *:- | *:-:* ) # input from stdin 5720 cat >$tmp/stdin 5721 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5722 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5723 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5724 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5725 * ) ac_file_in=$ac_file.in ;; 5726 esac 5727 5728 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 5729 ac_dir=`(dirname "$ac_file") 2>/dev/null || 5730$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5731 X"$ac_file" : 'X\(//\)[^/]' \| \ 5732 X"$ac_file" : 'X\(//\)$' \| \ 5733 X"$ac_file" : 'X\(/\)' \| \ 5734 . : '\(.\)' 2>/dev/null || 5735echo X"$ac_file" | 5736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5737 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5738 /^X\(\/\/\)$/{ s//\1/; q; } 5739 /^X\(\/\).*/{ s//\1/; q; } 5740 s/.*/./; q'` 5741 { if $as_mkdir_p; then 5742 mkdir -p "$ac_dir" 5743 else 5744 as_dir="$ac_dir" 5745 as_dirs= 5746 while test ! -d "$as_dir"; do 5747 as_dirs="$as_dir $as_dirs" 5748 as_dir=`(dirname "$as_dir") 2>/dev/null || 5749$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5750 X"$as_dir" : 'X\(//\)[^/]' \| \ 5751 X"$as_dir" : 'X\(//\)$' \| \ 5752 X"$as_dir" : 'X\(/\)' \| \ 5753 . : '\(.\)' 2>/dev/null || 5754echo X"$as_dir" | 5755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5756 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5757 /^X\(\/\/\)$/{ s//\1/; q; } 5758 /^X\(\/\).*/{ s//\1/; q; } 5759 s/.*/./; q'` 5760 done 5761 test ! -n "$as_dirs" || mkdir $as_dirs 5762 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 5763echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 5764 { (exit 1); exit 1; }; }; } 5765 5766 ac_builddir=. 5767 5768if test "$ac_dir" != .; then 5769 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 5770 # A "../" for each directory in $ac_dir_suffix. 5771 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 5772else 5773 ac_dir_suffix= ac_top_builddir= 5774fi 5775 5776case $srcdir in 5777 .) # No --srcdir option. We are building in place. 5778 ac_srcdir=. 5779 if test -z "$ac_top_builddir"; then 5780 ac_top_srcdir=. 5781 else 5782 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 5783 fi ;; 5784 [\\/]* | ?:[\\/]* ) # Absolute path. 5785 ac_srcdir=$srcdir$ac_dir_suffix; 5786 ac_top_srcdir=$srcdir ;; 5787 *) # Relative path. 5788 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 5789 ac_top_srcdir=$ac_top_builddir$srcdir ;; 5790esac 5791 5792# Do not use `cd foo && pwd` to compute absolute paths, because 5793# the directories may not exist. 5794case `pwd` in 5795.) ac_abs_builddir="$ac_dir";; 5796*) 5797 case "$ac_dir" in 5798 .) ac_abs_builddir=`pwd`;; 5799 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 5800 *) ac_abs_builddir=`pwd`/"$ac_dir";; 5801 esac;; 5802esac 5803case $ac_abs_builddir in 5804.) ac_abs_top_builddir=${ac_top_builddir}.;; 5805*) 5806 case ${ac_top_builddir}. in 5807 .) ac_abs_top_builddir=$ac_abs_builddir;; 5808 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 5809 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 5810 esac;; 5811esac 5812case $ac_abs_builddir in 5813.) ac_abs_srcdir=$ac_srcdir;; 5814*) 5815 case $ac_srcdir in 5816 .) ac_abs_srcdir=$ac_abs_builddir;; 5817 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 5818 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 5819 esac;; 5820esac 5821case $ac_abs_builddir in 5822.) ac_abs_top_srcdir=$ac_top_srcdir;; 5823*) 5824 case $ac_top_srcdir in 5825 .) ac_abs_top_srcdir=$ac_abs_builddir;; 5826 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 5827 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 5828 esac;; 5829esac 5830 5831 5832 5833 if test x"$ac_file" != x-; then 5834 { echo "$as_me:$LINENO: creating $ac_file" >&5 5835echo "$as_me: creating $ac_file" >&6;} 5836 rm -f "$ac_file" 5837 fi 5838 # Let's still pretend it is `configure' which instantiates (i.e., don't 5839 # use $as_me), people would be surprised to read: 5840 # /* config.h. Generated by config.status. */ 5841 if test x"$ac_file" = x-; then 5842 configure_input= 5843 else 5844 configure_input="$ac_file. " 5845 fi 5846 configure_input=$configure_input"Generated from `echo $ac_file_in | 5847 sed 's,.*/,,'` by configure." 5848 5849 # First look for the input files in the build tree, otherwise in the 5850 # src tree. 5851 ac_file_inputs=`IFS=: 5852 for f in $ac_file_in; do 5853 case $f in 5854 -) echo $tmp/stdin ;; 5855 [\\/$]*) 5856 # Absolute (can't be DOS-style, as IFS=:) 5857 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5858echo "$as_me: error: cannot find input file: $f" >&2;} 5859 { (exit 1); exit 1; }; } 5860 echo "$f";; 5861 *) # Relative 5862 if test -f "$f"; then 5863 # Build tree 5864 echo "$f" 5865 elif test -f "$srcdir/$f"; then 5866 # Source tree 5867 echo "$srcdir/$f" 5868 else 5869 # /dev/null tree 5870 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5871echo "$as_me: error: cannot find input file: $f" >&2;} 5872 { (exit 1); exit 1; }; } 5873 fi;; 5874 esac 5875 done` || { (exit 1); exit 1; } 5876_ACEOF 5877cat >>$CONFIG_STATUS <<_ACEOF 5878 sed "$ac_vpsub 5879$extrasub 5880_ACEOF 5881cat >>$CONFIG_STATUS <<\_ACEOF 5882:t 5883/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5884s,@configure_input@,$configure_input,;t t 5885s,@srcdir@,$ac_srcdir,;t t 5886s,@abs_srcdir@,$ac_abs_srcdir,;t t 5887s,@top_srcdir@,$ac_top_srcdir,;t t 5888s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 5889s,@builddir@,$ac_builddir,;t t 5890s,@abs_builddir@,$ac_abs_builddir,;t t 5891s,@top_builddir@,$ac_top_builddir,;t t 5892s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 5893" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5894 rm -f $tmp/stdin 5895 if test x"$ac_file" != x-; then 5896 mv $tmp/out $ac_file 5897 else 5898 cat $tmp/out 5899 rm -f $tmp/out 5900 fi 5901 5902done 5903_ACEOF 5904 5905cat >>$CONFIG_STATUS <<\_ACEOF 5906 5907{ (exit 0); exit 0; } 5908_ACEOF 5909chmod +x $CONFIG_STATUS 5910ac_clean_files=$ac_clean_files_save 5911 5912 5913# configure is writing to config.log, and then calls config.status. 5914# config.status does its own redirection, appending to config.log. 5915# Unfortunately, on DOS this fails, as config.log is still kept open 5916# by configure, so config.status won't be able to write to it; its 5917# output is simply discarded. So we exec the FD to /dev/null, 5918# effectively closing config.log, so it can be properly (re)opened and 5919# appended to by config.status. When coming back to configure, we 5920# need to make the FD available again. 5921if test "$no_create" != yes; then 5922 ac_cs_success=: 5923 ac_config_status_args= 5924 test "$silent" = yes && 5925 ac_config_status_args="$ac_config_status_args --quiet" 5926 exec 5>/dev/null 5927 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 5928 exec 5>>config.log 5929 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5930 # would make configure fail if this is the last instruction. 5931 $ac_cs_success || { (exit 1); exit 1; } 5932fi 5933 5934 5935