1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for vfs 1.3. 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='vfs' 269PACKAGE_TARNAME='vfs' 270PACKAGE_VERSION='1.3' 271PACKAGE_STRING='vfs 1.3' 272PACKAGE_BUGREPORT='' 273 274# Factoring default headers for most tests. 275ac_includes_default="\ 276#include <stdio.h> 277#if HAVE_SYS_TYPES_H 278# include <sys/types.h> 279#endif 280#if HAVE_SYS_STAT_H 281# include <sys/stat.h> 282#endif 283#if STDC_HEADERS 284# include <stdlib.h> 285# include <stddef.h> 286#else 287# if HAVE_STDLIB_H 288# include <stdlib.h> 289# endif 290#endif 291#if HAVE_STRING_H 292# if !STDC_HEADERS && HAVE_MEMORY_H 293# include <memory.h> 294# endif 295# include <string.h> 296#endif 297#if HAVE_STRINGS_H 298# include <strings.h> 299#endif 300#if HAVE_INTTYPES_H 301# include <inttypes.h> 302#else 303# if HAVE_STDINT_H 304# include <stdint.h> 305# endif 306#endif 307#if HAVE_UNISTD_H 308# include <unistd.h> 309#endif" 310 311ac_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 CYGPATH EXEEXT PKG_LIB_FILE PKG_STUB_LIB_FILE PKG_STUB_SOURCES PKG_STUB_OBJECTS PKG_TCL_SOURCES PKG_HEADERS PKG_INCLUDES PKG_LIBS PKG_CFLAGS TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_LIBS TCL_DEFS TCL_EXTRA_CFLAGS TCL_LD_FLAGS TCL_SHLIB_LD_LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE RANLIB ac_ct_RANLIB EGREP MATH_LIBS PKG_SOURCES PKG_OBJECTS TCL_TOP_DIR_NATIVE TCL_GENERIC_DIR_NATIVE TCL_UNIX_DIR_NATIVE TCL_WIN_DIR_NATIVE TCL_BMAP_DIR_NATIVE TCL_TOOL_DIR_NATIVE TCL_PLATFORM_DIR_NATIVE TCL_INCLUDES CLEANFILES TCL_THREADS SHARED_BUILD AR CELIB_DIR LIBOBJS DL_LIBS CFLAGS_DEBUG CFLAGS_OPTIMIZE CFLAGS_WARNING STLIB_LD SHLIB_LD SHLIB_LD_LIBS SHLIB_CFLAGS LD_LIBRARY_PATH_VAR TCL_DBGX CFLAGS_DEFAULT LDFLAGS_DEFAULT MAKE_LIB MAKE_SHARED_LIB MAKE_STATIC_LIB MAKE_STUB_LIB RANLIB_STUB TCLSH_PROG LTLIBOBJS' 312ac_subst_files='' 313 314# Initialize some variables set by options. 315ac_init_help= 316ac_init_version=false 317# The variables have the same names as the options, with 318# dashes changed to underlines. 319cache_file=/dev/null 320exec_prefix=NONE 321no_create= 322no_recursion= 323prefix=NONE 324program_prefix=NONE 325program_suffix=NONE 326program_transform_name=s,x,x, 327silent= 328site= 329srcdir= 330verbose= 331x_includes=NONE 332x_libraries=NONE 333 334# Installation directory options. 335# These are left unexpanded so users can "make install exec_prefix=/foo" 336# and all the variables that are supposed to be based on exec_prefix 337# by default will actually change. 338# Use braces instead of parens because sh, perl, etc. also accept them. 339bindir='${exec_prefix}/bin' 340sbindir='${exec_prefix}/sbin' 341libexecdir='${exec_prefix}/libexec' 342datadir='${prefix}/share' 343sysconfdir='${prefix}/etc' 344sharedstatedir='${prefix}/com' 345localstatedir='${prefix}/var' 346libdir='${exec_prefix}/lib' 347includedir='${prefix}/include' 348oldincludedir='/usr/include' 349infodir='${prefix}/info' 350mandir='${prefix}/man' 351 352ac_prev= 353for ac_option 354do 355 # If the previous option needs an argument, assign it. 356 if test -n "$ac_prev"; then 357 eval "$ac_prev=\$ac_option" 358 ac_prev= 359 continue 360 fi 361 362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 363 364 # Accept the important Cygnus configure options, so we can diagnose typos. 365 366 case $ac_option in 367 368 -bindir | --bindir | --bindi | --bind | --bin | --bi) 369 ac_prev=bindir ;; 370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 371 bindir=$ac_optarg ;; 372 373 -build | --build | --buil | --bui | --bu) 374 ac_prev=build_alias ;; 375 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 376 build_alias=$ac_optarg ;; 377 378 -cache-file | --cache-file | --cache-fil | --cache-fi \ 379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 380 ac_prev=cache_file ;; 381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 383 cache_file=$ac_optarg ;; 384 385 --config-cache | -C) 386 cache_file=config.cache ;; 387 388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 389 ac_prev=datadir ;; 390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 391 | --da=*) 392 datadir=$ac_optarg ;; 393 394 -disable-* | --disable-*) 395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 396 # Reject names that are not valid shell variable names. 397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 399 { (exit 1); exit 1; }; } 400 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 401 eval "enable_$ac_feature=no" ;; 402 403 -enable-* | --enable-*) 404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 405 # Reject names that are not valid shell variable names. 406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 408 { (exit 1); exit 1; }; } 409 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 410 case $ac_option in 411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 412 *) ac_optarg=yes ;; 413 esac 414 eval "enable_$ac_feature='$ac_optarg'" ;; 415 416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 418 | --exec | --exe | --ex) 419 ac_prev=exec_prefix ;; 420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 422 | --exec=* | --exe=* | --ex=*) 423 exec_prefix=$ac_optarg ;; 424 425 -gas | --gas | --ga | --g) 426 # Obsolete; use --with-gas. 427 with_gas=yes ;; 428 429 -help | --help | --hel | --he | -h) 430 ac_init_help=long ;; 431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 432 ac_init_help=recursive ;; 433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 434 ac_init_help=short ;; 435 436 -host | --host | --hos | --ho) 437 ac_prev=host_alias ;; 438 -host=* | --host=* | --hos=* | --ho=*) 439 host_alias=$ac_optarg ;; 440 441 -includedir | --includedir | --includedi | --included | --include \ 442 | --includ | --inclu | --incl | --inc) 443 ac_prev=includedir ;; 444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 445 | --includ=* | --inclu=* | --incl=* | --inc=*) 446 includedir=$ac_optarg ;; 447 448 -infodir | --infodir | --infodi | --infod | --info | --inf) 449 ac_prev=infodir ;; 450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 451 infodir=$ac_optarg ;; 452 453 -libdir | --libdir | --libdi | --libd) 454 ac_prev=libdir ;; 455 -libdir=* | --libdir=* | --libdi=* | --libd=*) 456 libdir=$ac_optarg ;; 457 458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 459 | --libexe | --libex | --libe) 460 ac_prev=libexecdir ;; 461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 462 | --libexe=* | --libex=* | --libe=*) 463 libexecdir=$ac_optarg ;; 464 465 -localstatedir | --localstatedir | --localstatedi | --localstated \ 466 | --localstate | --localstat | --localsta | --localst \ 467 | --locals | --local | --loca | --loc | --lo) 468 ac_prev=localstatedir ;; 469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 472 localstatedir=$ac_optarg ;; 473 474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 475 ac_prev=mandir ;; 476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 477 mandir=$ac_optarg ;; 478 479 -nfp | --nfp | --nf) 480 # Obsolete; use --without-fp. 481 with_fp=no ;; 482 483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 484 | --no-cr | --no-c | -n) 485 no_create=yes ;; 486 487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 489 no_recursion=yes ;; 490 491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 493 | --oldin | --oldi | --old | --ol | --o) 494 ac_prev=oldincludedir ;; 495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 498 oldincludedir=$ac_optarg ;; 499 500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 501 ac_prev=prefix ;; 502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 503 prefix=$ac_optarg ;; 504 505 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 506 | --program-pre | --program-pr | --program-p) 507 ac_prev=program_prefix ;; 508 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 510 program_prefix=$ac_optarg ;; 511 512 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 513 | --program-suf | --program-su | --program-s) 514 ac_prev=program_suffix ;; 515 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 517 program_suffix=$ac_optarg ;; 518 519 -program-transform-name | --program-transform-name \ 520 | --program-transform-nam | --program-transform-na \ 521 | --program-transform-n | --program-transform- \ 522 | --program-transform | --program-transfor \ 523 | --program-transfo | --program-transf \ 524 | --program-trans | --program-tran \ 525 | --progr-tra | --program-tr | --program-t) 526 ac_prev=program_transform_name ;; 527 -program-transform-name=* | --program-transform-name=* \ 528 | --program-transform-nam=* | --program-transform-na=* \ 529 | --program-transform-n=* | --program-transform-=* \ 530 | --program-transform=* | --program-transfor=* \ 531 | --program-transfo=* | --program-transf=* \ 532 | --program-trans=* | --program-tran=* \ 533 | --progr-tra=* | --program-tr=* | --program-t=*) 534 program_transform_name=$ac_optarg ;; 535 536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 537 | -silent | --silent | --silen | --sile | --sil) 538 silent=yes ;; 539 540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 541 ac_prev=sbindir ;; 542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 543 | --sbi=* | --sb=*) 544 sbindir=$ac_optarg ;; 545 546 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 548 | --sharedst | --shareds | --shared | --share | --shar \ 549 | --sha | --sh) 550 ac_prev=sharedstatedir ;; 551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 554 | --sha=* | --sh=*) 555 sharedstatedir=$ac_optarg ;; 556 557 -site | --site | --sit) 558 ac_prev=site ;; 559 -site=* | --site=* | --sit=*) 560 site=$ac_optarg ;; 561 562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 563 ac_prev=srcdir ;; 564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 565 srcdir=$ac_optarg ;; 566 567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 568 | --syscon | --sysco | --sysc | --sys | --sy) 569 ac_prev=sysconfdir ;; 570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 572 sysconfdir=$ac_optarg ;; 573 574 -target | --target | --targe | --targ | --tar | --ta | --t) 575 ac_prev=target_alias ;; 576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 577 target_alias=$ac_optarg ;; 578 579 -v | -verbose | --verbose | --verbos | --verbo | --verb) 580 verbose=yes ;; 581 582 -version | --version | --versio | --versi | --vers | -V) 583 ac_init_version=: ;; 584 585 -with-* | --with-*) 586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 587 # Reject names that are not valid shell variable names. 588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 589 { echo "$as_me: error: invalid package name: $ac_package" >&2 590 { (exit 1); exit 1; }; } 591 ac_package=`echo $ac_package| sed 's/-/_/g'` 592 case $ac_option in 593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 594 *) ac_optarg=yes ;; 595 esac 596 eval "with_$ac_package='$ac_optarg'" ;; 597 598 -without-* | --without-*) 599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 600 # Reject names that are not valid shell variable names. 601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 602 { echo "$as_me: error: invalid package name: $ac_package" >&2 603 { (exit 1); exit 1; }; } 604 ac_package=`echo $ac_package | sed 's/-/_/g'` 605 eval "with_$ac_package=no" ;; 606 607 --x) 608 # Obsolete; use --with-x. 609 with_x=yes ;; 610 611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 612 | --x-incl | --x-inc | --x-in | --x-i) 613 ac_prev=x_includes ;; 614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 616 x_includes=$ac_optarg ;; 617 618 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 620 ac_prev=x_libraries ;; 621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 623 x_libraries=$ac_optarg ;; 624 625 -*) { echo "$as_me: error: unrecognized option: $ac_option 626Try \`$0 --help' for more information." >&2 627 { (exit 1); exit 1; }; } 628 ;; 629 630 *=*) 631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 632 # Reject names that are not valid shell variable names. 633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 635 { (exit 1); exit 1; }; } 636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 637 eval "$ac_envvar='$ac_optarg'" 638 export $ac_envvar ;; 639 640 *) 641 # FIXME: should be removed in autoconf 3.0. 642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 646 ;; 647 648 esac 649done 650 651if test -n "$ac_prev"; then 652 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 653 { echo "$as_me: error: missing argument to $ac_option" >&2 654 { (exit 1); exit 1; }; } 655fi 656 657# Be sure to have absolute paths. 658for ac_var in exec_prefix prefix 659do 660 eval ac_val=$`echo $ac_var` 661 case $ac_val in 662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 664 { (exit 1); exit 1; }; };; 665 esac 666done 667 668# Be sure to have absolute paths. 669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 670 localstatedir libdir includedir oldincludedir infodir mandir 671do 672 eval ac_val=$`echo $ac_var` 673 case $ac_val in 674 [\\/$]* | ?:[\\/]* ) ;; 675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 676 { (exit 1); exit 1; }; };; 677 esac 678done 679 680# There might be people who depend on the old broken behavior: `$host' 681# used to hold the argument of --host etc. 682# FIXME: To remove some day. 683build=$build_alias 684host=$host_alias 685target=$target_alias 686 687# FIXME: To remove some day. 688if test "x$host_alias" != x; then 689 if test "x$build_alias" = x; then 690 cross_compiling=maybe 691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 692 If a cross compiler is detected then cross compile mode will be used." >&2 693 elif test "x$build_alias" != "x$host_alias"; then 694 cross_compiling=yes 695 fi 696fi 697 698ac_tool_prefix= 699test -n "$host_alias" && ac_tool_prefix=$host_alias- 700 701test "$silent" = yes && exec 6>/dev/null 702 703 704# Find the source files, if location was not specified. 705if test -z "$srcdir"; then 706 ac_srcdir_defaulted=yes 707 # Try the directory containing this script, then its parent. 708 ac_confdir=`(dirname "$0") 2>/dev/null || 709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 710 X"$0" : 'X\(//\)[^/]' \| \ 711 X"$0" : 'X\(//\)$' \| \ 712 X"$0" : 'X\(/\)' \| \ 713 . : '\(.\)' 2>/dev/null || 714echo X"$0" | 715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 716 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 717 /^X\(\/\/\)$/{ s//\1/; q; } 718 /^X\(\/\).*/{ s//\1/; q; } 719 s/.*/./; q'` 720 srcdir=$ac_confdir 721 if test ! -r $srcdir/$ac_unique_file; then 722 srcdir=.. 723 fi 724else 725 ac_srcdir_defaulted=no 726fi 727if test ! -r $srcdir/$ac_unique_file; then 728 if test "$ac_srcdir_defaulted" = yes; then 729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 730 { (exit 1); exit 1; }; } 731 else 732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 733 { (exit 1); exit 1; }; } 734 fi 735fi 736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 738 { (exit 1); exit 1; }; } 739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 740ac_env_build_alias_set=${build_alias+set} 741ac_env_build_alias_value=$build_alias 742ac_cv_env_build_alias_set=${build_alias+set} 743ac_cv_env_build_alias_value=$build_alias 744ac_env_host_alias_set=${host_alias+set} 745ac_env_host_alias_value=$host_alias 746ac_cv_env_host_alias_set=${host_alias+set} 747ac_cv_env_host_alias_value=$host_alias 748ac_env_target_alias_set=${target_alias+set} 749ac_env_target_alias_value=$target_alias 750ac_cv_env_target_alias_set=${target_alias+set} 751ac_cv_env_target_alias_value=$target_alias 752ac_env_CC_set=${CC+set} 753ac_env_CC_value=$CC 754ac_cv_env_CC_set=${CC+set} 755ac_cv_env_CC_value=$CC 756ac_env_CFLAGS_set=${CFLAGS+set} 757ac_env_CFLAGS_value=$CFLAGS 758ac_cv_env_CFLAGS_set=${CFLAGS+set} 759ac_cv_env_CFLAGS_value=$CFLAGS 760ac_env_LDFLAGS_set=${LDFLAGS+set} 761ac_env_LDFLAGS_value=$LDFLAGS 762ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 763ac_cv_env_LDFLAGS_value=$LDFLAGS 764ac_env_CPPFLAGS_set=${CPPFLAGS+set} 765ac_env_CPPFLAGS_value=$CPPFLAGS 766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 767ac_cv_env_CPPFLAGS_value=$CPPFLAGS 768ac_env_CPP_set=${CPP+set} 769ac_env_CPP_value=$CPP 770ac_cv_env_CPP_set=${CPP+set} 771ac_cv_env_CPP_value=$CPP 772 773# 774# Report the --help message. 775# 776if test "$ac_init_help" = "long"; then 777 # Omit some internal or obsolete options to make the list less imposing. 778 # This message is too long to be a string in the A/UX 3.1 sh. 779 cat <<_ACEOF 780\`configure' configures vfs 1.3 to adapt to many kinds of systems. 781 782Usage: $0 [OPTION]... [VAR=VALUE]... 783 784To assign environment variables (e.g., CC, CFLAGS...), specify them as 785VAR=VALUE. See below for descriptions of some of the useful variables. 786 787Defaults for the options are specified in brackets. 788 789Configuration: 790 -h, --help display this help and exit 791 --help=short display options specific to this package 792 --help=recursive display the short help of all the included packages 793 -V, --version display version information and exit 794 -q, --quiet, --silent do not print \`checking...' messages 795 --cache-file=FILE cache test results in FILE [disabled] 796 -C, --config-cache alias for \`--cache-file=config.cache' 797 -n, --no-create do not create output files 798 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 799 800_ACEOF 801 802 cat <<_ACEOF 803Installation directories: 804 --prefix=PREFIX install architecture-independent files in PREFIX 805 [$ac_default_prefix] 806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 807 [PREFIX] 808 809By default, \`make install' will install all the files in 810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 811an installation prefix other than \`$ac_default_prefix' using \`--prefix', 812for instance \`--prefix=\$HOME'. 813 814For better control, use the options below. 815 816Fine tuning of the installation directories: 817 --bindir=DIR user executables [EPREFIX/bin] 818 --sbindir=DIR system admin executables [EPREFIX/sbin] 819 --libexecdir=DIR program executables [EPREFIX/libexec] 820 --datadir=DIR read-only architecture-independent data [PREFIX/share] 821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 823 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 824 --libdir=DIR object code libraries [EPREFIX/lib] 825 --includedir=DIR C header files [PREFIX/include] 826 --oldincludedir=DIR C header files for non-gcc [/usr/include] 827 --infodir=DIR info documentation [PREFIX/info] 828 --mandir=DIR man documentation [PREFIX/man] 829_ACEOF 830 831 cat <<\_ACEOF 832_ACEOF 833fi 834 835if test -n "$ac_init_help"; then 836 case $ac_init_help in 837 short | recursive ) echo "Configuration of vfs 1.3:";; 838 esac 839 cat <<\_ACEOF 840 841Optional Features: 842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 844 --enable-threads build with threads 845 --enable-shared build and link with shared libraries (default: on) 846 --enable-64bit enable 64bit support (default: off) 847 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 848 --enable-wince enable Win/CE support (where applicable) 849 --enable-load allow dynamic loading and "load" command (default: 850 on) 851 --enable-symbols build with debugging symbols (default: off) 852 853Optional Packages: 854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 856 --with-tcl directory containing tcl configuration 857 (tclConfig.sh) 858 --with-celib=DIR use Windows/CE support library from DIR 859 860Some influential environment variables: 861 CC C compiler command 862 CFLAGS C compiler flags 863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 864 nonstandard directory <lib dir> 865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 866 headers in a nonstandard directory <include dir> 867 CPP C preprocessor 868 869Use these variables to override the choices made by `configure' or to help 870it to find libraries and programs with nonstandard names/locations. 871 872_ACEOF 873fi 874 875if test "$ac_init_help" = "recursive"; then 876 # If there are subdirs, report their specific --help. 877 ac_popdir=`pwd` 878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 879 test -d $ac_dir || continue 880 ac_builddir=. 881 882if test "$ac_dir" != .; then 883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 884 # A "../" for each directory in $ac_dir_suffix. 885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 886else 887 ac_dir_suffix= ac_top_builddir= 888fi 889 890case $srcdir in 891 .) # No --srcdir option. We are building in place. 892 ac_srcdir=. 893 if test -z "$ac_top_builddir"; then 894 ac_top_srcdir=. 895 else 896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 897 fi ;; 898 [\\/]* | ?:[\\/]* ) # Absolute path. 899 ac_srcdir=$srcdir$ac_dir_suffix; 900 ac_top_srcdir=$srcdir ;; 901 *) # Relative path. 902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 903 ac_top_srcdir=$ac_top_builddir$srcdir ;; 904esac 905 906# Do not use `cd foo && pwd` to compute absolute paths, because 907# the directories may not exist. 908case `pwd` in 909.) ac_abs_builddir="$ac_dir";; 910*) 911 case "$ac_dir" in 912 .) ac_abs_builddir=`pwd`;; 913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 914 *) ac_abs_builddir=`pwd`/"$ac_dir";; 915 esac;; 916esac 917case $ac_abs_builddir in 918.) ac_abs_top_builddir=${ac_top_builddir}.;; 919*) 920 case ${ac_top_builddir}. in 921 .) ac_abs_top_builddir=$ac_abs_builddir;; 922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 924 esac;; 925esac 926case $ac_abs_builddir in 927.) ac_abs_srcdir=$ac_srcdir;; 928*) 929 case $ac_srcdir in 930 .) ac_abs_srcdir=$ac_abs_builddir;; 931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 933 esac;; 934esac 935case $ac_abs_builddir in 936.) ac_abs_top_srcdir=$ac_top_srcdir;; 937*) 938 case $ac_top_srcdir in 939 .) ac_abs_top_srcdir=$ac_abs_builddir;; 940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 942 esac;; 943esac 944 945 cd $ac_dir 946 # Check for guested configure; otherwise get Cygnus style configure. 947 if test -f $ac_srcdir/configure.gnu; then 948 echo 949 $SHELL $ac_srcdir/configure.gnu --help=recursive 950 elif test -f $ac_srcdir/configure; then 951 echo 952 $SHELL $ac_srcdir/configure --help=recursive 953 elif test -f $ac_srcdir/configure.ac || 954 test -f $ac_srcdir/configure.in; then 955 echo 956 $ac_configure --help 957 else 958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 959 fi 960 cd $ac_popdir 961 done 962fi 963 964test -n "$ac_init_help" && exit 0 965if $ac_init_version; then 966 cat <<\_ACEOF 967vfs configure 1.3 968generated by GNU Autoconf 2.59 969 970Copyright (C) 2003 Free Software Foundation, Inc. 971This configure script is free software; the Free Software Foundation 972gives unlimited permission to copy, distribute and modify it. 973_ACEOF 974 exit 0 975fi 976exec 5>config.log 977cat >&5 <<_ACEOF 978This file contains any messages produced by compilers while 979running configure, to aid debugging if configure makes a mistake. 980 981It was created by vfs $as_me 1.3, which was 982generated by GNU Autoconf 2.59. Invocation command line was 983 984 $ $0 $@ 985 986_ACEOF 987{ 988cat <<_ASUNAME 989## --------- ## 990## Platform. ## 991## --------- ## 992 993hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 994uname -m = `(uname -m) 2>/dev/null || echo unknown` 995uname -r = `(uname -r) 2>/dev/null || echo unknown` 996uname -s = `(uname -s) 2>/dev/null || echo unknown` 997uname -v = `(uname -v) 2>/dev/null || echo unknown` 998 999/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1000/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1001 1002/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1003/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1004/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1005hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1006/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1007/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1008/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1009 1010_ASUNAME 1011 1012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1013for as_dir in $PATH 1014do 1015 IFS=$as_save_IFS 1016 test -z "$as_dir" && as_dir=. 1017 echo "PATH: $as_dir" 1018done 1019 1020} >&5 1021 1022cat >&5 <<_ACEOF 1023 1024 1025## ----------- ## 1026## Core tests. ## 1027## ----------- ## 1028 1029_ACEOF 1030 1031 1032# Keep a trace of the command line. 1033# Strip out --no-create and --no-recursion so they do not pile up. 1034# Strip out --silent because we don't want to record it for future runs. 1035# Also quote any args containing shell meta-characters. 1036# Make two passes to allow for proper duplicate-argument suppression. 1037ac_configure_args= 1038ac_configure_args0= 1039ac_configure_args1= 1040ac_sep= 1041ac_must_keep_next=false 1042for ac_pass in 1 2 1043do 1044 for ac_arg 1045 do 1046 case $ac_arg in 1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1049 | -silent | --silent | --silen | --sile | --sil) 1050 continue ;; 1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1053 esac 1054 case $ac_pass in 1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1056 2) 1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1058 if test $ac_must_keep_next = true; then 1059 ac_must_keep_next=false # Got value, back to normal. 1060 else 1061 case $ac_arg in 1062 *=* | --config-cache | -C | -disable-* | --disable-* \ 1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1065 | -with-* | --with-* | -without-* | --without-* | --x) 1066 case "$ac_configure_args0 " in 1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1068 esac 1069 ;; 1070 -* ) ac_must_keep_next=true ;; 1071 esac 1072 fi 1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1074 # Get rid of the leading space. 1075 ac_sep=" " 1076 ;; 1077 esac 1078 done 1079done 1080$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1081$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1082 1083# When interrupted or exit'd, cleanup temporary files, and complete 1084# config.log. We remove comments because anyway the quotes in there 1085# would cause problems or look ugly. 1086# WARNING: Be sure not to use single quotes in there, as some shells, 1087# such as our DU 5.0 friend, will then `close' the trap. 1088trap 'exit_status=$? 1089 # Save into config.log some information that might help in debugging. 1090 { 1091 echo 1092 1093 cat <<\_ASBOX 1094## ---------------- ## 1095## Cache variables. ## 1096## ---------------- ## 1097_ASBOX 1098 echo 1099 # The following way of writing the cache mishandles newlines in values, 1100{ 1101 (set) 2>&1 | 1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1103 *ac_space=\ *) 1104 sed -n \ 1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1107 ;; 1108 *) 1109 sed -n \ 1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1111 ;; 1112 esac; 1113} 1114 echo 1115 1116 cat <<\_ASBOX 1117## ----------------- ## 1118## Output variables. ## 1119## ----------------- ## 1120_ASBOX 1121 echo 1122 for ac_var in $ac_subst_vars 1123 do 1124 eval ac_val=$`echo $ac_var` 1125 echo "$ac_var='"'"'$ac_val'"'"'" 1126 done | sort 1127 echo 1128 1129 if test -n "$ac_subst_files"; then 1130 cat <<\_ASBOX 1131## ------------- ## 1132## Output files. ## 1133## ------------- ## 1134_ASBOX 1135 echo 1136 for ac_var in $ac_subst_files 1137 do 1138 eval ac_val=$`echo $ac_var` 1139 echo "$ac_var='"'"'$ac_val'"'"'" 1140 done | sort 1141 echo 1142 fi 1143 1144 if test -s confdefs.h; then 1145 cat <<\_ASBOX 1146## ----------- ## 1147## confdefs.h. ## 1148## ----------- ## 1149_ASBOX 1150 echo 1151 sed "/^$/d" confdefs.h | sort 1152 echo 1153 fi 1154 test "$ac_signal" != 0 && 1155 echo "$as_me: caught signal $ac_signal" 1156 echo "$as_me: exit $exit_status" 1157 } >&5 1158 rm -f core *.core && 1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1160 exit $exit_status 1161 ' 0 1162for ac_signal in 1 2 13 15; do 1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1164done 1165ac_signal=0 1166 1167# confdefs.h avoids OS command line length limits that DEFS can exceed. 1168rm -rf conftest* confdefs.h 1169# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1170echo >confdefs.h 1171 1172# Predefined preprocessor variables. 1173 1174cat >>confdefs.h <<_ACEOF 1175#define PACKAGE_NAME "$PACKAGE_NAME" 1176_ACEOF 1177 1178 1179cat >>confdefs.h <<_ACEOF 1180#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1181_ACEOF 1182 1183 1184cat >>confdefs.h <<_ACEOF 1185#define PACKAGE_VERSION "$PACKAGE_VERSION" 1186_ACEOF 1187 1188 1189cat >>confdefs.h <<_ACEOF 1190#define PACKAGE_STRING "$PACKAGE_STRING" 1191_ACEOF 1192 1193 1194cat >>confdefs.h <<_ACEOF 1195#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1196_ACEOF 1197 1198 1199# Let the site file select an alternate cache file if it wants to. 1200# Prefer explicitly selected file to automatically selected ones. 1201if test -z "$CONFIG_SITE"; then 1202 if test "x$prefix" != xNONE; then 1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1204 else 1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1206 fi 1207fi 1208for ac_site_file in $CONFIG_SITE; do 1209 if test -r "$ac_site_file"; then 1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1211echo "$as_me: loading site script $ac_site_file" >&6;} 1212 sed 's/^/| /' "$ac_site_file" >&5 1213 . "$ac_site_file" 1214 fi 1215done 1216 1217if test -r "$cache_file"; then 1218 # Some versions of bash will fail to source /dev/null (special 1219 # files actually), so we avoid doing that. 1220 if test -f "$cache_file"; then 1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1222echo "$as_me: loading cache $cache_file" >&6;} 1223 case $cache_file in 1224 [\\/]* | ?:[\\/]* ) . $cache_file;; 1225 *) . ./$cache_file;; 1226 esac 1227 fi 1228else 1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1230echo "$as_me: creating cache $cache_file" >&6;} 1231 >$cache_file 1232fi 1233 1234# Check that the precious variables saved in the cache have kept the same 1235# value. 1236ac_cache_corrupted=false 1237for ac_var in `(set) 2>&1 | 1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1240 eval ac_new_set=\$ac_env_${ac_var}_set 1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1242 eval ac_new_val="\$ac_env_${ac_var}_value" 1243 case $ac_old_set,$ac_new_set in 1244 set,) 1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1246echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1247 ac_cache_corrupted=: ;; 1248 ,set) 1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1250echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1251 ac_cache_corrupted=: ;; 1252 ,);; 1253 *) 1254 if test "x$ac_old_val" != "x$ac_new_val"; then 1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1256echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1258echo "$as_me: former value: $ac_old_val" >&2;} 1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1260echo "$as_me: current value: $ac_new_val" >&2;} 1261 ac_cache_corrupted=: 1262 fi;; 1263 esac 1264 # Pass precious variables to config.status. 1265 if test "$ac_new_set" = set; then 1266 case $ac_new_val in 1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1269 *) ac_arg=$ac_var=$ac_new_val ;; 1270 esac 1271 case " $ac_configure_args " in 1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1274 esac 1275 fi 1276done 1277if $ac_cache_corrupted; then 1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1279echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1281echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1282 { (exit 1); exit 1; }; } 1283fi 1284 1285ac_ext=c 1286ac_cpp='$CPP $CPPFLAGS' 1287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1289ac_compiler_gnu=$ac_cv_c_compiler_gnu 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318#-------------------------------------------------------------------- 1319# Call TEA_INIT as the first TEA_ macro to set up initial vars. 1320# This will define a ${TEA_PLATFORM} variable == "unix" or "windows" 1321# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. 1322#-------------------------------------------------------------------- 1323 1324 1325 # TEA extensions pass this us the version of TEA they think they 1326 # are compatible with. 1327 TEA_VERSION="3.5" 1328 1329 echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1330echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6 1331 if test x"${PACKAGE_NAME}" = x ; then 1332 { { echo "$as_me:$LINENO: error: 1333The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1334echo "$as_me: error: 1335The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1336 { (exit 1); exit 1; }; } 1337 fi 1338 if test x"3.5" = x ; then 1339 { { echo "$as_me:$LINENO: error: 1340TEA version not specified." >&5 1341echo "$as_me: error: 1342TEA version not specified." >&2;} 1343 { (exit 1); exit 1; }; } 1344 elif test "3.5" != "${TEA_VERSION}" ; then 1345 echo "$as_me:$LINENO: result: warning: requested TEA version \"3.5\", have \"${TEA_VERSION}\"" >&5 1346echo "${ECHO_T}warning: requested TEA version \"3.5\", have \"${TEA_VERSION}\"" >&6 1347 else 1348 echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1349echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6 1350 fi 1351 case "`uname -s`" in 1352 *win32*|*WIN32*|*CYGWIN_NT*|*CYGWIN_9*|*CYGWIN_ME*|*MINGW32_*) 1353 # Extract the first word of "cygpath", so it can be a program name with args. 1354set dummy cygpath; ac_word=$2 1355echo "$as_me:$LINENO: checking for $ac_word" >&5 1356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1357if test "${ac_cv_prog_CYGPATH+set}" = set; then 1358 echo $ECHO_N "(cached) $ECHO_C" >&6 1359else 1360 if test -n "$CYGPATH"; then 1361 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1362else 1363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1364for as_dir in $PATH 1365do 1366 IFS=$as_save_IFS 1367 test -z "$as_dir" && as_dir=. 1368 for ac_exec_ext in '' $ac_executable_extensions; do 1369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1370 ac_cv_prog_CYGPATH="cygpath -w" 1371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1372 break 2 1373 fi 1374done 1375done 1376 1377 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1378fi 1379fi 1380CYGPATH=$ac_cv_prog_CYGPATH 1381if test -n "$CYGPATH"; then 1382 echo "$as_me:$LINENO: result: $CYGPATH" >&5 1383echo "${ECHO_T}$CYGPATH" >&6 1384else 1385 echo "$as_me:$LINENO: result: no" >&5 1386echo "${ECHO_T}no" >&6 1387fi 1388 1389 EXEEXT=".exe" 1390 TEA_PLATFORM="windows" 1391 ;; 1392 *) 1393 CYGPATH=echo 1394 EXEEXT="" 1395 TEA_PLATFORM="unix" 1396 ;; 1397 esac 1398 1399 # Check if exec_prefix is set. If not use fall back to prefix. 1400 # Note when adjusted, so that TEA_PREFIX can correct for this. 1401 # This is needed for recursive configures, since autoconf propagates 1402 # $prefix, but not $exec_prefix (doh!). 1403 if test x$exec_prefix = xNONE ; then 1404 exec_prefix_default=yes 1405 exec_prefix=$prefix 1406 fi 1407 1408 1409 1410 1411 # This package name must be replaced statically for AC_SUBST to work 1412 1413 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1414 1415 1416 # We AC_SUBST these here to ensure they are subst'ed, 1417 # in case the user doesn't call TEA_ADD_... 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427ac_aux_dir= 1428for ac_dir in tclconfig $srcdir/tclconfig; do 1429 if test -f $ac_dir/install-sh; then 1430 ac_aux_dir=$ac_dir 1431 ac_install_sh="$ac_aux_dir/install-sh -c" 1432 break 1433 elif test -f $ac_dir/install.sh; then 1434 ac_aux_dir=$ac_dir 1435 ac_install_sh="$ac_aux_dir/install.sh -c" 1436 break 1437 elif test -f $ac_dir/shtool; then 1438 ac_aux_dir=$ac_dir 1439 ac_install_sh="$ac_aux_dir/shtool install -c" 1440 break 1441 fi 1442done 1443if test -z "$ac_aux_dir"; then 1444 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig $srcdir/tclconfig" >&5 1445echo "$as_me: error: cannot find install-sh or install.sh in tclconfig $srcdir/tclconfig" >&2;} 1446 { (exit 1); exit 1; }; } 1447fi 1448ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1449ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1450ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1451 1452 1453 1454 1455 # 1456 # Ok, lets find the tcl configuration 1457 # First, look for one uninstalled. 1458 # the alternative search directory is invoked by --with-tcl 1459 # 1460 1461 if test x"${no_tcl}" = x ; then 1462 # we reset no_tcl in case something fails here 1463 no_tcl=true 1464 1465# Check whether --with-tcl or --without-tcl was given. 1466if test "${with_tcl+set}" = set; then 1467 withval="$with_tcl" 1468 with_tclconfig=${withval} 1469fi; 1470 echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1471echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 1472 if test "${ac_cv_c_tclconfig+set}" = set; then 1473 echo $ECHO_N "(cached) $ECHO_C" >&6 1474else 1475 1476 1477 # First check to see if --with-tcl was specified. 1478 if test x"${with_tclconfig}" != x ; then 1479 case ${with_tclconfig} in 1480 */tclConfig.sh ) 1481 if test -f ${with_tclconfig}; then 1482 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1483echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1484 with_tclconfig=`echo ${with_tclconfig} | sed 's!/tclConfig\.sh$!!'` 1485 fi ;; 1486 esac 1487 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1488 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 1489 else 1490 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1491echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1492 { (exit 1); exit 1; }; } 1493 fi 1494 fi 1495 1496 # then check for a private Tcl installation 1497 if test x"${ac_cv_c_tclconfig}" = x ; then 1498 for i in \ 1499 ../tcl \ 1500 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1501 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1502 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1503 ../../tcl \ 1504 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1505 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1506 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1507 ../../../tcl \ 1508 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1509 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1510 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1511 if test -f "$i/unix/tclConfig.sh" ; then 1512 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 1513 break 1514 fi 1515 done 1516 fi 1517 1518 # on Darwin, check in Framework installation locations 1519 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1520 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1521 `ls -d /Library/Frameworks 2>/dev/null` \ 1522 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1523 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1524 ; do 1525 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 1526 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)` 1527 break 1528 fi 1529 done 1530 fi 1531 1532 # on Windows, check in common installation locations 1533 if test "${TEA_PLATFORM}" = "windows" \ 1534 -a x"${ac_cv_c_tclconfig}" = x ; then 1535 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 1536 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 1537 ; do 1538 if test -f "$i/tclConfig.sh" ; then 1539 ac_cv_c_tclconfig=`(cd $i; pwd)` 1540 break 1541 fi 1542 done 1543 fi 1544 1545 # check in a few common install locations 1546 if test x"${ac_cv_c_tclconfig}" = x ; then 1547 for i in `ls -d ${libdir} 2>/dev/null` \ 1548 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 1549 `ls -d ${prefix}/lib 2>/dev/null` \ 1550 `ls -d /usr/local/lib 2>/dev/null` \ 1551 `ls -d /usr/contrib/lib 2>/dev/null` \ 1552 `ls -d /usr/lib 2>/dev/null` \ 1553 ; do 1554 if test -f "$i/tclConfig.sh" ; then 1555 ac_cv_c_tclconfig=`(cd $i; pwd)` 1556 break 1557 fi 1558 done 1559 fi 1560 1561 # check in a few other private locations 1562 if test x"${ac_cv_c_tclconfig}" = x ; then 1563 for i in \ 1564 ${srcdir}/../tcl \ 1565 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1566 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 1567 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 1568 if test -f "$i/unix/tclConfig.sh" ; then 1569 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 1570 break 1571 fi 1572 done 1573 fi 1574 1575fi 1576 1577 1578 if test x"${ac_cv_c_tclconfig}" = x ; then 1579 TCL_BIN_DIR="# no Tcl configs found" 1580 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 1581echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 1582 exit 0 1583 else 1584 no_tcl= 1585 TCL_BIN_DIR=${ac_cv_c_tclconfig} 1586 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 1587echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6 1588 fi 1589 fi 1590 1591 1592 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 1593echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6 1594 1595 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 1596 echo "$as_me:$LINENO: result: loading" >&5 1597echo "${ECHO_T}loading" >&6 1598 . ${TCL_BIN_DIR}/tclConfig.sh 1599 else 1600 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 1601echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6 1602 fi 1603 1604 # eval is required to do the TCL_DBGX substitution 1605 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 1606 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 1607 1608 # If the TCL_BIN_DIR is the build directory (not the install directory), 1609 # then set the common variable name to the value of the build variables. 1610 # For example, the variable TCL_LIB_SPEC will be set to the value 1611 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 1612 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 1613 # installed and uninstalled version of Tcl. 1614 if test -f ${TCL_BIN_DIR}/Makefile ; then 1615 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 1616 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 1617 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 1618 elif test "`uname -s`" = "Darwin"; then 1619 # If Tcl was built as a framework, attempt to use the libraries 1620 # from the framework at the given location so that linking works 1621 # against Tcl.framework installed in an arbitary location. 1622 case ${TCL_DEFS} in 1623 *TCL_FRAMEWORK*) 1624 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then 1625 for i in "`cd ${TCL_BIN_DIR}; pwd`" \ 1626 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do 1627 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 1628 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}" 1629 break 1630 fi 1631 done 1632 fi 1633 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then 1634 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}" 1635 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 1636 fi 1637 ;; 1638 esac 1639 fi 1640 1641 # eval is required to do the TCL_DBGX substitution 1642 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 1643 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 1644 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 1645 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 if test "${prefix}" = "NONE"; then 1668 prefix_default=yes 1669 if test x"${TCL_PREFIX}" != x; then 1670 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 1671echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 1672 prefix=${TCL_PREFIX} 1673 else 1674 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 1675echo "$as_me: --prefix defaulting to /usr/local" >&6;} 1676 prefix=/usr/local 1677 fi 1678 fi 1679 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 1680 -o x"${exec_prefix_default}" = x"yes" ; then 1681 if test x"${TCL_EXEC_PREFIX}" != x; then 1682 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 1683echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 1684 exec_prefix=${TCL_EXEC_PREFIX} 1685 else 1686 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 1687echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 1688 exec_prefix=$prefix 1689 fi 1690 fi 1691 1692 1693 1694 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 1695 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 1696 1697 # If the user did not set CFLAGS, set it now to keep 1698 # the AC_PROG_CC macro from adding "-g -O2". 1699 if test "${CFLAGS+set}" != "set" ; then 1700 CFLAGS="" 1701 fi 1702 1703 ac_ext=c 1704ac_cpp='$CPP $CPPFLAGS' 1705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1707ac_compiler_gnu=$ac_cv_c_compiler_gnu 1708if test -n "$ac_tool_prefix"; then 1709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1710set dummy ${ac_tool_prefix}gcc; ac_word=$2 1711echo "$as_me:$LINENO: checking for $ac_word" >&5 1712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1713if test "${ac_cv_prog_CC+set}" = set; then 1714 echo $ECHO_N "(cached) $ECHO_C" >&6 1715else 1716 if test -n "$CC"; then 1717 ac_cv_prog_CC="$CC" # Let the user override the test. 1718else 1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1720for as_dir in $PATH 1721do 1722 IFS=$as_save_IFS 1723 test -z "$as_dir" && as_dir=. 1724 for ac_exec_ext in '' $ac_executable_extensions; do 1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1726 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1728 break 2 1729 fi 1730done 1731done 1732 1733fi 1734fi 1735CC=$ac_cv_prog_CC 1736if test -n "$CC"; then 1737 echo "$as_me:$LINENO: result: $CC" >&5 1738echo "${ECHO_T}$CC" >&6 1739else 1740 echo "$as_me:$LINENO: result: no" >&5 1741echo "${ECHO_T}no" >&6 1742fi 1743 1744fi 1745if test -z "$ac_cv_prog_CC"; then 1746 ac_ct_CC=$CC 1747 # Extract the first word of "gcc", so it can be a program name with args. 1748set dummy gcc; ac_word=$2 1749echo "$as_me:$LINENO: checking for $ac_word" >&5 1750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1751if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1752 echo $ECHO_N "(cached) $ECHO_C" >&6 1753else 1754 if test -n "$ac_ct_CC"; then 1755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1756else 1757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1758for as_dir in $PATH 1759do 1760 IFS=$as_save_IFS 1761 test -z "$as_dir" && as_dir=. 1762 for ac_exec_ext in '' $ac_executable_extensions; do 1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1764 ac_cv_prog_ac_ct_CC="gcc" 1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1766 break 2 1767 fi 1768done 1769done 1770 1771fi 1772fi 1773ac_ct_CC=$ac_cv_prog_ac_ct_CC 1774if test -n "$ac_ct_CC"; then 1775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1776echo "${ECHO_T}$ac_ct_CC" >&6 1777else 1778 echo "$as_me:$LINENO: result: no" >&5 1779echo "${ECHO_T}no" >&6 1780fi 1781 1782 CC=$ac_ct_CC 1783else 1784 CC="$ac_cv_prog_CC" 1785fi 1786 1787if test -z "$CC"; then 1788 if test -n "$ac_tool_prefix"; then 1789 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1790set dummy ${ac_tool_prefix}cc; ac_word=$2 1791echo "$as_me:$LINENO: checking for $ac_word" >&5 1792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1793if test "${ac_cv_prog_CC+set}" = set; then 1794 echo $ECHO_N "(cached) $ECHO_C" >&6 1795else 1796 if test -n "$CC"; then 1797 ac_cv_prog_CC="$CC" # Let the user override the test. 1798else 1799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1800for as_dir in $PATH 1801do 1802 IFS=$as_save_IFS 1803 test -z "$as_dir" && as_dir=. 1804 for ac_exec_ext in '' $ac_executable_extensions; do 1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1806 ac_cv_prog_CC="${ac_tool_prefix}cc" 1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1808 break 2 1809 fi 1810done 1811done 1812 1813fi 1814fi 1815CC=$ac_cv_prog_CC 1816if test -n "$CC"; then 1817 echo "$as_me:$LINENO: result: $CC" >&5 1818echo "${ECHO_T}$CC" >&6 1819else 1820 echo "$as_me:$LINENO: result: no" >&5 1821echo "${ECHO_T}no" >&6 1822fi 1823 1824fi 1825if test -z "$ac_cv_prog_CC"; then 1826 ac_ct_CC=$CC 1827 # Extract the first word of "cc", so it can be a program name with args. 1828set dummy cc; ac_word=$2 1829echo "$as_me:$LINENO: checking for $ac_word" >&5 1830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1831if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1832 echo $ECHO_N "(cached) $ECHO_C" >&6 1833else 1834 if test -n "$ac_ct_CC"; then 1835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1836else 1837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1838for as_dir in $PATH 1839do 1840 IFS=$as_save_IFS 1841 test -z "$as_dir" && as_dir=. 1842 for ac_exec_ext in '' $ac_executable_extensions; do 1843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1844 ac_cv_prog_ac_ct_CC="cc" 1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1846 break 2 1847 fi 1848done 1849done 1850 1851fi 1852fi 1853ac_ct_CC=$ac_cv_prog_ac_ct_CC 1854if test -n "$ac_ct_CC"; then 1855 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1856echo "${ECHO_T}$ac_ct_CC" >&6 1857else 1858 echo "$as_me:$LINENO: result: no" >&5 1859echo "${ECHO_T}no" >&6 1860fi 1861 1862 CC=$ac_ct_CC 1863else 1864 CC="$ac_cv_prog_CC" 1865fi 1866 1867fi 1868if test -z "$CC"; then 1869 # Extract the first word of "cc", so it can be a program name with args. 1870set dummy cc; ac_word=$2 1871echo "$as_me:$LINENO: checking for $ac_word" >&5 1872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1873if test "${ac_cv_prog_CC+set}" = set; then 1874 echo $ECHO_N "(cached) $ECHO_C" >&6 1875else 1876 if test -n "$CC"; then 1877 ac_cv_prog_CC="$CC" # Let the user override the test. 1878else 1879 ac_prog_rejected=no 1880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1881for as_dir in $PATH 1882do 1883 IFS=$as_save_IFS 1884 test -z "$as_dir" && as_dir=. 1885 for ac_exec_ext in '' $ac_executable_extensions; do 1886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1887 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1888 ac_prog_rejected=yes 1889 continue 1890 fi 1891 ac_cv_prog_CC="cc" 1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1893 break 2 1894 fi 1895done 1896done 1897 1898if test $ac_prog_rejected = yes; then 1899 # We found a bogon in the path, so make sure we never use it. 1900 set dummy $ac_cv_prog_CC 1901 shift 1902 if test $# != 0; then 1903 # We chose a different compiler from the bogus one. 1904 # However, it has the same basename, so the bogon will be chosen 1905 # first if we set CC to just the basename; use the full file name. 1906 shift 1907 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1908 fi 1909fi 1910fi 1911fi 1912CC=$ac_cv_prog_CC 1913if test -n "$CC"; then 1914 echo "$as_me:$LINENO: result: $CC" >&5 1915echo "${ECHO_T}$CC" >&6 1916else 1917 echo "$as_me:$LINENO: result: no" >&5 1918echo "${ECHO_T}no" >&6 1919fi 1920 1921fi 1922if test -z "$CC"; then 1923 if test -n "$ac_tool_prefix"; then 1924 for ac_prog in cl 1925 do 1926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1927set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1928echo "$as_me:$LINENO: checking for $ac_word" >&5 1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1930if test "${ac_cv_prog_CC+set}" = set; then 1931 echo $ECHO_N "(cached) $ECHO_C" >&6 1932else 1933 if test -n "$CC"; then 1934 ac_cv_prog_CC="$CC" # Let the user override the test. 1935else 1936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1937for as_dir in $PATH 1938do 1939 IFS=$as_save_IFS 1940 test -z "$as_dir" && as_dir=. 1941 for ac_exec_ext in '' $ac_executable_extensions; do 1942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1943 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1945 break 2 1946 fi 1947done 1948done 1949 1950fi 1951fi 1952CC=$ac_cv_prog_CC 1953if test -n "$CC"; then 1954 echo "$as_me:$LINENO: result: $CC" >&5 1955echo "${ECHO_T}$CC" >&6 1956else 1957 echo "$as_me:$LINENO: result: no" >&5 1958echo "${ECHO_T}no" >&6 1959fi 1960 1961 test -n "$CC" && break 1962 done 1963fi 1964if test -z "$CC"; then 1965 ac_ct_CC=$CC 1966 for ac_prog in cl 1967do 1968 # Extract the first word of "$ac_prog", so it can be a program name with args. 1969set dummy $ac_prog; ac_word=$2 1970echo "$as_me:$LINENO: checking for $ac_word" >&5 1971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1972if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1973 echo $ECHO_N "(cached) $ECHO_C" >&6 1974else 1975 if test -n "$ac_ct_CC"; then 1976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1977else 1978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1979for as_dir in $PATH 1980do 1981 IFS=$as_save_IFS 1982 test -z "$as_dir" && as_dir=. 1983 for ac_exec_ext in '' $ac_executable_extensions; do 1984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1985 ac_cv_prog_ac_ct_CC="$ac_prog" 1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1987 break 2 1988 fi 1989done 1990done 1991 1992fi 1993fi 1994ac_ct_CC=$ac_cv_prog_ac_ct_CC 1995if test -n "$ac_ct_CC"; then 1996 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1997echo "${ECHO_T}$ac_ct_CC" >&6 1998else 1999 echo "$as_me:$LINENO: result: no" >&5 2000echo "${ECHO_T}no" >&6 2001fi 2002 2003 test -n "$ac_ct_CC" && break 2004done 2005 2006 CC=$ac_ct_CC 2007fi 2008 2009fi 2010 2011 2012test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2013See \`config.log' for more details." >&5 2014echo "$as_me: error: no acceptable C compiler found in \$PATH 2015See \`config.log' for more details." >&2;} 2016 { (exit 1); exit 1; }; } 2017 2018# Provide some information about the compiler. 2019echo "$as_me:$LINENO:" \ 2020 "checking for C compiler version" >&5 2021ac_compiler=`set X $ac_compile; echo $2` 2022{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2023 (eval $ac_compiler --version </dev/null >&5) 2>&5 2024 ac_status=$? 2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2026 (exit $ac_status); } 2027{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2028 (eval $ac_compiler -v </dev/null >&5) 2>&5 2029 ac_status=$? 2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2031 (exit $ac_status); } 2032{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2033 (eval $ac_compiler -V </dev/null >&5) 2>&5 2034 ac_status=$? 2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2036 (exit $ac_status); } 2037 2038cat >conftest.$ac_ext <<_ACEOF 2039/* confdefs.h. */ 2040_ACEOF 2041cat confdefs.h >>conftest.$ac_ext 2042cat >>conftest.$ac_ext <<_ACEOF 2043/* end confdefs.h. */ 2044 2045int 2046main () 2047{ 2048 2049 ; 2050 return 0; 2051} 2052_ACEOF 2053ac_clean_files_save=$ac_clean_files 2054ac_clean_files="$ac_clean_files a.out a.exe b.out" 2055# Try to create an executable without -o first, disregard a.out. 2056# It will help us diagnose broken compilers, and finding out an intuition 2057# of exeext. 2058echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2059echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2060ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2061if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2062 (eval $ac_link_default) 2>&5 2063 ac_status=$? 2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2065 (exit $ac_status); }; then 2066 # Find the output, starting from the most likely. This scheme is 2067# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2068# resort. 2069 2070# Be careful to initialize this variable, since it used to be cached. 2071# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2072ac_cv_exeext= 2073# b.out is created by i960 compilers. 2074for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2075do 2076 test -f "$ac_file" || continue 2077 case $ac_file in 2078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2079 ;; 2080 conftest.$ac_ext ) 2081 # This is the source file. 2082 ;; 2083 [ab].out ) 2084 # We found the default executable, but exeext='' is most 2085 # certainly right. 2086 break;; 2087 *.* ) 2088 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2089 # FIXME: I believe we export ac_cv_exeext for Libtool, 2090 # but it would be cool to find out if it's true. Does anybody 2091 # maintain Libtool? --akim. 2092 export ac_cv_exeext 2093 break;; 2094 * ) 2095 break;; 2096 esac 2097done 2098else 2099 echo "$as_me: failed program was:" >&5 2100sed 's/^/| /' conftest.$ac_ext >&5 2101 2102{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2103See \`config.log' for more details." >&5 2104echo "$as_me: error: C compiler cannot create executables 2105See \`config.log' for more details." >&2;} 2106 { (exit 77); exit 77; }; } 2107fi 2108 2109ac_exeext=$ac_cv_exeext 2110echo "$as_me:$LINENO: result: $ac_file" >&5 2111echo "${ECHO_T}$ac_file" >&6 2112 2113# Check the compiler produces executables we can run. If not, either 2114# the compiler is broken, or we cross compile. 2115echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2116echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2117# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2118# If not cross compiling, check that we can run a simple program. 2119if test "$cross_compiling" != yes; then 2120 if { ac_try='./$ac_file' 2121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2122 (eval $ac_try) 2>&5 2123 ac_status=$? 2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2125 (exit $ac_status); }; }; then 2126 cross_compiling=no 2127 else 2128 if test "$cross_compiling" = maybe; then 2129 cross_compiling=yes 2130 else 2131 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2132If you meant to cross compile, use \`--host'. 2133See \`config.log' for more details." >&5 2134echo "$as_me: error: cannot run C compiled programs. 2135If you meant to cross compile, use \`--host'. 2136See \`config.log' for more details." >&2;} 2137 { (exit 1); exit 1; }; } 2138 fi 2139 fi 2140fi 2141echo "$as_me:$LINENO: result: yes" >&5 2142echo "${ECHO_T}yes" >&6 2143 2144rm -f a.out a.exe conftest$ac_cv_exeext b.out 2145ac_clean_files=$ac_clean_files_save 2146# Check the compiler produces executables we can run. If not, either 2147# the compiler is broken, or we cross compile. 2148echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2149echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2150echo "$as_me:$LINENO: result: $cross_compiling" >&5 2151echo "${ECHO_T}$cross_compiling" >&6 2152 2153echo "$as_me:$LINENO: checking for suffix of executables" >&5 2154echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2156 (eval $ac_link) 2>&5 2157 ac_status=$? 2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2159 (exit $ac_status); }; then 2160 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2161# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2162# work properly (i.e., refer to `conftest.exe'), while it won't with 2163# `rm'. 2164for ac_file in conftest.exe conftest conftest.*; do 2165 test -f "$ac_file" || continue 2166 case $ac_file in 2167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2168 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2169 export ac_cv_exeext 2170 break;; 2171 * ) break;; 2172 esac 2173done 2174else 2175 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2176See \`config.log' for more details." >&5 2177echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2178See \`config.log' for more details." >&2;} 2179 { (exit 1); exit 1; }; } 2180fi 2181 2182rm -f conftest$ac_cv_exeext 2183echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2184echo "${ECHO_T}$ac_cv_exeext" >&6 2185 2186rm -f conftest.$ac_ext 2187EXEEXT=$ac_cv_exeext 2188ac_exeext=$EXEEXT 2189echo "$as_me:$LINENO: checking for suffix of object files" >&5 2190echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2191if test "${ac_cv_objext+set}" = set; then 2192 echo $ECHO_N "(cached) $ECHO_C" >&6 2193else 2194 cat >conftest.$ac_ext <<_ACEOF 2195/* confdefs.h. */ 2196_ACEOF 2197cat confdefs.h >>conftest.$ac_ext 2198cat >>conftest.$ac_ext <<_ACEOF 2199/* end confdefs.h. */ 2200 2201int 2202main () 2203{ 2204 2205 ; 2206 return 0; 2207} 2208_ACEOF 2209rm -f conftest.o conftest.obj 2210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2211 (eval $ac_compile) 2>&5 2212 ac_status=$? 2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2214 (exit $ac_status); }; then 2215 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2216 case $ac_file in 2217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2218 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2219 break;; 2220 esac 2221done 2222else 2223 echo "$as_me: failed program was:" >&5 2224sed 's/^/| /' conftest.$ac_ext >&5 2225 2226{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2227See \`config.log' for more details." >&5 2228echo "$as_me: error: cannot compute suffix of object files: cannot compile 2229See \`config.log' for more details." >&2;} 2230 { (exit 1); exit 1; }; } 2231fi 2232 2233rm -f conftest.$ac_cv_objext conftest.$ac_ext 2234fi 2235echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2236echo "${ECHO_T}$ac_cv_objext" >&6 2237OBJEXT=$ac_cv_objext 2238ac_objext=$OBJEXT 2239echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2240echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2241if test "${ac_cv_c_compiler_gnu+set}" = set; then 2242 echo $ECHO_N "(cached) $ECHO_C" >&6 2243else 2244 cat >conftest.$ac_ext <<_ACEOF 2245/* confdefs.h. */ 2246_ACEOF 2247cat confdefs.h >>conftest.$ac_ext 2248cat >>conftest.$ac_ext <<_ACEOF 2249/* end confdefs.h. */ 2250 2251int 2252main () 2253{ 2254#ifndef __GNUC__ 2255 choke me 2256#endif 2257 2258 ; 2259 return 0; 2260} 2261_ACEOF 2262rm -f conftest.$ac_objext 2263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2264 (eval $ac_compile) 2>conftest.er1 2265 ac_status=$? 2266 grep -v '^ *+' conftest.er1 >conftest.err 2267 rm -f conftest.er1 2268 cat conftest.err >&5 2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2270 (exit $ac_status); } && 2271 { ac_try='test -z "$ac_c_werror_flag" 2272 || test ! -s conftest.err' 2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2274 (eval $ac_try) 2>&5 2275 ac_status=$? 2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2277 (exit $ac_status); }; } && 2278 { ac_try='test -s conftest.$ac_objext' 2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2280 (eval $ac_try) 2>&5 2281 ac_status=$? 2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2283 (exit $ac_status); }; }; then 2284 ac_compiler_gnu=yes 2285else 2286 echo "$as_me: failed program was:" >&5 2287sed 's/^/| /' conftest.$ac_ext >&5 2288 2289ac_compiler_gnu=no 2290fi 2291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2292ac_cv_c_compiler_gnu=$ac_compiler_gnu 2293 2294fi 2295echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2296echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2297GCC=`test $ac_compiler_gnu = yes && echo yes` 2298ac_test_CFLAGS=${CFLAGS+set} 2299ac_save_CFLAGS=$CFLAGS 2300CFLAGS="-g" 2301echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2302echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2303if test "${ac_cv_prog_cc_g+set}" = set; then 2304 echo $ECHO_N "(cached) $ECHO_C" >&6 2305else 2306 cat >conftest.$ac_ext <<_ACEOF 2307/* confdefs.h. */ 2308_ACEOF 2309cat confdefs.h >>conftest.$ac_ext 2310cat >>conftest.$ac_ext <<_ACEOF 2311/* end confdefs.h. */ 2312 2313int 2314main () 2315{ 2316 2317 ; 2318 return 0; 2319} 2320_ACEOF 2321rm -f conftest.$ac_objext 2322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2323 (eval $ac_compile) 2>conftest.er1 2324 ac_status=$? 2325 grep -v '^ *+' conftest.er1 >conftest.err 2326 rm -f conftest.er1 2327 cat conftest.err >&5 2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2329 (exit $ac_status); } && 2330 { ac_try='test -z "$ac_c_werror_flag" 2331 || test ! -s conftest.err' 2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2333 (eval $ac_try) 2>&5 2334 ac_status=$? 2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2336 (exit $ac_status); }; } && 2337 { ac_try='test -s conftest.$ac_objext' 2338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2339 (eval $ac_try) 2>&5 2340 ac_status=$? 2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2342 (exit $ac_status); }; }; then 2343 ac_cv_prog_cc_g=yes 2344else 2345 echo "$as_me: failed program was:" >&5 2346sed 's/^/| /' conftest.$ac_ext >&5 2347 2348ac_cv_prog_cc_g=no 2349fi 2350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2351fi 2352echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2353echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2354if test "$ac_test_CFLAGS" = set; then 2355 CFLAGS=$ac_save_CFLAGS 2356elif test $ac_cv_prog_cc_g = yes; then 2357 if test "$GCC" = yes; then 2358 CFLAGS="-g -O2" 2359 else 2360 CFLAGS="-g" 2361 fi 2362else 2363 if test "$GCC" = yes; then 2364 CFLAGS="-O2" 2365 else 2366 CFLAGS= 2367 fi 2368fi 2369echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2370echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2371if test "${ac_cv_prog_cc_stdc+set}" = set; then 2372 echo $ECHO_N "(cached) $ECHO_C" >&6 2373else 2374 ac_cv_prog_cc_stdc=no 2375ac_save_CC=$CC 2376cat >conftest.$ac_ext <<_ACEOF 2377/* confdefs.h. */ 2378_ACEOF 2379cat confdefs.h >>conftest.$ac_ext 2380cat >>conftest.$ac_ext <<_ACEOF 2381/* end confdefs.h. */ 2382#include <stdarg.h> 2383#include <stdio.h> 2384#include <sys/types.h> 2385#include <sys/stat.h> 2386/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2387struct buf { int x; }; 2388FILE * (*rcsopen) (struct buf *, struct stat *, int); 2389static char *e (p, i) 2390 char **p; 2391 int i; 2392{ 2393 return p[i]; 2394} 2395static char *f (char * (*g) (char **, int), char **p, ...) 2396{ 2397 char *s; 2398 va_list v; 2399 va_start (v,p); 2400 s = g (p, va_arg (v,int)); 2401 va_end (v); 2402 return s; 2403} 2404 2405/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2406 function prototypes and stuff, but not '\xHH' hex character constants. 2407 These don't provoke an error unfortunately, instead are silently treated 2408 as 'x'. The following induces an error, until -std1 is added to get 2409 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2410 array size at least. It's necessary to write '\x00'==0 to get something 2411 that's true only with -std1. */ 2412int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2413 2414int test (int i, double x); 2415struct s1 {int (*f) (int a);}; 2416struct s2 {int (*f) (double a);}; 2417int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2418int argc; 2419char **argv; 2420int 2421main () 2422{ 2423return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2424 ; 2425 return 0; 2426} 2427_ACEOF 2428# Don't try gcc -ansi; that turns off useful extensions and 2429# breaks some systems' header files. 2430# AIX -qlanglvl=ansi 2431# Ultrix and OSF/1 -std1 2432# HP-UX 10.20 and later -Ae 2433# HP-UX older versions -Aa -D_HPUX_SOURCE 2434# SVR4 -Xc -D__EXTENSIONS__ 2435for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2436do 2437 CC="$ac_save_CC $ac_arg" 2438 rm -f conftest.$ac_objext 2439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2440 (eval $ac_compile) 2>conftest.er1 2441 ac_status=$? 2442 grep -v '^ *+' conftest.er1 >conftest.err 2443 rm -f conftest.er1 2444 cat conftest.err >&5 2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2446 (exit $ac_status); } && 2447 { ac_try='test -z "$ac_c_werror_flag" 2448 || test ! -s conftest.err' 2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2450 (eval $ac_try) 2>&5 2451 ac_status=$? 2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2453 (exit $ac_status); }; } && 2454 { ac_try='test -s conftest.$ac_objext' 2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2456 (eval $ac_try) 2>&5 2457 ac_status=$? 2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2459 (exit $ac_status); }; }; then 2460 ac_cv_prog_cc_stdc=$ac_arg 2461break 2462else 2463 echo "$as_me: failed program was:" >&5 2464sed 's/^/| /' conftest.$ac_ext >&5 2465 2466fi 2467rm -f conftest.err conftest.$ac_objext 2468done 2469rm -f conftest.$ac_ext conftest.$ac_objext 2470CC=$ac_save_CC 2471 2472fi 2473 2474case "x$ac_cv_prog_cc_stdc" in 2475 x|xno) 2476 echo "$as_me:$LINENO: result: none needed" >&5 2477echo "${ECHO_T}none needed" >&6 ;; 2478 *) 2479 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2480echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2481 CC="$CC $ac_cv_prog_cc_stdc" ;; 2482esac 2483 2484# Some people use a C++ compiler to compile C. Since we use `exit', 2485# in C++ we need to declare it. In case someone uses the same compiler 2486# for both compiling C and C++ we need to have the C++ compiler decide 2487# the declaration of exit, since it's the most demanding environment. 2488cat >conftest.$ac_ext <<_ACEOF 2489#ifndef __cplusplus 2490 choke me 2491#endif 2492_ACEOF 2493rm -f conftest.$ac_objext 2494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2495 (eval $ac_compile) 2>conftest.er1 2496 ac_status=$? 2497 grep -v '^ *+' conftest.er1 >conftest.err 2498 rm -f conftest.er1 2499 cat conftest.err >&5 2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2501 (exit $ac_status); } && 2502 { ac_try='test -z "$ac_c_werror_flag" 2503 || test ! -s conftest.err' 2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2505 (eval $ac_try) 2>&5 2506 ac_status=$? 2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2508 (exit $ac_status); }; } && 2509 { ac_try='test -s conftest.$ac_objext' 2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2511 (eval $ac_try) 2>&5 2512 ac_status=$? 2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2514 (exit $ac_status); }; }; then 2515 for ac_declaration in \ 2516 '' \ 2517 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2518 'extern "C" void std::exit (int); using std::exit;' \ 2519 'extern "C" void exit (int) throw ();' \ 2520 'extern "C" void exit (int);' \ 2521 'void exit (int);' 2522do 2523 cat >conftest.$ac_ext <<_ACEOF 2524/* confdefs.h. */ 2525_ACEOF 2526cat confdefs.h >>conftest.$ac_ext 2527cat >>conftest.$ac_ext <<_ACEOF 2528/* end confdefs.h. */ 2529$ac_declaration 2530#include <stdlib.h> 2531int 2532main () 2533{ 2534exit (42); 2535 ; 2536 return 0; 2537} 2538_ACEOF 2539rm -f conftest.$ac_objext 2540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2541 (eval $ac_compile) 2>conftest.er1 2542 ac_status=$? 2543 grep -v '^ *+' conftest.er1 >conftest.err 2544 rm -f conftest.er1 2545 cat conftest.err >&5 2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2547 (exit $ac_status); } && 2548 { ac_try='test -z "$ac_c_werror_flag" 2549 || test ! -s conftest.err' 2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2551 (eval $ac_try) 2>&5 2552 ac_status=$? 2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2554 (exit $ac_status); }; } && 2555 { ac_try='test -s conftest.$ac_objext' 2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2557 (eval $ac_try) 2>&5 2558 ac_status=$? 2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2560 (exit $ac_status); }; }; then 2561 : 2562else 2563 echo "$as_me: failed program was:" >&5 2564sed 's/^/| /' conftest.$ac_ext >&5 2565 2566continue 2567fi 2568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2569 cat >conftest.$ac_ext <<_ACEOF 2570/* confdefs.h. */ 2571_ACEOF 2572cat confdefs.h >>conftest.$ac_ext 2573cat >>conftest.$ac_ext <<_ACEOF 2574/* end confdefs.h. */ 2575$ac_declaration 2576int 2577main () 2578{ 2579exit (42); 2580 ; 2581 return 0; 2582} 2583_ACEOF 2584rm -f conftest.$ac_objext 2585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2586 (eval $ac_compile) 2>conftest.er1 2587 ac_status=$? 2588 grep -v '^ *+' conftest.er1 >conftest.err 2589 rm -f conftest.er1 2590 cat conftest.err >&5 2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2592 (exit $ac_status); } && 2593 { ac_try='test -z "$ac_c_werror_flag" 2594 || test ! -s conftest.err' 2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2596 (eval $ac_try) 2>&5 2597 ac_status=$? 2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2599 (exit $ac_status); }; } && 2600 { ac_try='test -s conftest.$ac_objext' 2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2602 (eval $ac_try) 2>&5 2603 ac_status=$? 2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2605 (exit $ac_status); }; }; then 2606 break 2607else 2608 echo "$as_me: failed program was:" >&5 2609sed 's/^/| /' conftest.$ac_ext >&5 2610 2611fi 2612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2613done 2614rm -f conftest* 2615if test -n "$ac_declaration"; then 2616 echo '#ifdef __cplusplus' >>confdefs.h 2617 echo $ac_declaration >>confdefs.h 2618 echo '#endif' >>confdefs.h 2619fi 2620 2621else 2622 echo "$as_me: failed program was:" >&5 2623sed 's/^/| /' conftest.$ac_ext >&5 2624 2625fi 2626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2627ac_ext=c 2628ac_cpp='$CPP $CPPFLAGS' 2629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2631ac_compiler_gnu=$ac_cv_c_compiler_gnu 2632 2633 ac_ext=c 2634ac_cpp='$CPP $CPPFLAGS' 2635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2637ac_compiler_gnu=$ac_cv_c_compiler_gnu 2638echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2639echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2640# On Suns, sometimes $CPP names a directory. 2641if test -n "$CPP" && test -d "$CPP"; then 2642 CPP= 2643fi 2644if test -z "$CPP"; then 2645 if test "${ac_cv_prog_CPP+set}" = set; then 2646 echo $ECHO_N "(cached) $ECHO_C" >&6 2647else 2648 # Double quotes because CPP needs to be expanded 2649 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2650 do 2651 ac_preproc_ok=false 2652for ac_c_preproc_warn_flag in '' yes 2653do 2654 # Use a header file that comes with gcc, so configuring glibc 2655 # with a fresh cross-compiler works. 2656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2657 # <limits.h> exists even on freestanding compilers. 2658 # On the NeXT, cc -E runs the code through the compiler's parser, 2659 # not just through cpp. "Syntax error" is here to catch this case. 2660 cat >conftest.$ac_ext <<_ACEOF 2661/* confdefs.h. */ 2662_ACEOF 2663cat confdefs.h >>conftest.$ac_ext 2664cat >>conftest.$ac_ext <<_ACEOF 2665/* end confdefs.h. */ 2666#ifdef __STDC__ 2667# include <limits.h> 2668#else 2669# include <assert.h> 2670#endif 2671 Syntax error 2672_ACEOF 2673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2675 ac_status=$? 2676 grep -v '^ *+' conftest.er1 >conftest.err 2677 rm -f conftest.er1 2678 cat conftest.err >&5 2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2680 (exit $ac_status); } >/dev/null; then 2681 if test -s conftest.err; then 2682 ac_cpp_err=$ac_c_preproc_warn_flag 2683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2684 else 2685 ac_cpp_err= 2686 fi 2687else 2688 ac_cpp_err=yes 2689fi 2690if test -z "$ac_cpp_err"; then 2691 : 2692else 2693 echo "$as_me: failed program was:" >&5 2694sed 's/^/| /' conftest.$ac_ext >&5 2695 2696 # Broken: fails on valid input. 2697continue 2698fi 2699rm -f conftest.err conftest.$ac_ext 2700 2701 # OK, works on sane cases. Now check whether non-existent headers 2702 # can be detected and how. 2703 cat >conftest.$ac_ext <<_ACEOF 2704/* confdefs.h. */ 2705_ACEOF 2706cat confdefs.h >>conftest.$ac_ext 2707cat >>conftest.$ac_ext <<_ACEOF 2708/* end confdefs.h. */ 2709#include <ac_nonexistent.h> 2710_ACEOF 2711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2713 ac_status=$? 2714 grep -v '^ *+' conftest.er1 >conftest.err 2715 rm -f conftest.er1 2716 cat conftest.err >&5 2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2718 (exit $ac_status); } >/dev/null; then 2719 if test -s conftest.err; then 2720 ac_cpp_err=$ac_c_preproc_warn_flag 2721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2722 else 2723 ac_cpp_err= 2724 fi 2725else 2726 ac_cpp_err=yes 2727fi 2728if test -z "$ac_cpp_err"; then 2729 # Broken: success on invalid input. 2730continue 2731else 2732 echo "$as_me: failed program was:" >&5 2733sed 's/^/| /' conftest.$ac_ext >&5 2734 2735 # Passes both tests. 2736ac_preproc_ok=: 2737break 2738fi 2739rm -f conftest.err conftest.$ac_ext 2740 2741done 2742# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2743rm -f conftest.err conftest.$ac_ext 2744if $ac_preproc_ok; then 2745 break 2746fi 2747 2748 done 2749 ac_cv_prog_CPP=$CPP 2750 2751fi 2752 CPP=$ac_cv_prog_CPP 2753else 2754 ac_cv_prog_CPP=$CPP 2755fi 2756echo "$as_me:$LINENO: result: $CPP" >&5 2757echo "${ECHO_T}$CPP" >&6 2758ac_preproc_ok=false 2759for ac_c_preproc_warn_flag in '' yes 2760do 2761 # Use a header file that comes with gcc, so configuring glibc 2762 # with a fresh cross-compiler works. 2763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2764 # <limits.h> exists even on freestanding compilers. 2765 # On the NeXT, cc -E runs the code through the compiler's parser, 2766 # not just through cpp. "Syntax error" is here to catch this case. 2767 cat >conftest.$ac_ext <<_ACEOF 2768/* confdefs.h. */ 2769_ACEOF 2770cat confdefs.h >>conftest.$ac_ext 2771cat >>conftest.$ac_ext <<_ACEOF 2772/* end confdefs.h. */ 2773#ifdef __STDC__ 2774# include <limits.h> 2775#else 2776# include <assert.h> 2777#endif 2778 Syntax error 2779_ACEOF 2780if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2782 ac_status=$? 2783 grep -v '^ *+' conftest.er1 >conftest.err 2784 rm -f conftest.er1 2785 cat conftest.err >&5 2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2787 (exit $ac_status); } >/dev/null; then 2788 if test -s conftest.err; then 2789 ac_cpp_err=$ac_c_preproc_warn_flag 2790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2791 else 2792 ac_cpp_err= 2793 fi 2794else 2795 ac_cpp_err=yes 2796fi 2797if test -z "$ac_cpp_err"; then 2798 : 2799else 2800 echo "$as_me: failed program was:" >&5 2801sed 's/^/| /' conftest.$ac_ext >&5 2802 2803 # Broken: fails on valid input. 2804continue 2805fi 2806rm -f conftest.err conftest.$ac_ext 2807 2808 # OK, works on sane cases. Now check whether non-existent headers 2809 # can be detected and how. 2810 cat >conftest.$ac_ext <<_ACEOF 2811/* confdefs.h. */ 2812_ACEOF 2813cat confdefs.h >>conftest.$ac_ext 2814cat >>conftest.$ac_ext <<_ACEOF 2815/* end confdefs.h. */ 2816#include <ac_nonexistent.h> 2817_ACEOF 2818if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2820 ac_status=$? 2821 grep -v '^ *+' conftest.er1 >conftest.err 2822 rm -f conftest.er1 2823 cat conftest.err >&5 2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2825 (exit $ac_status); } >/dev/null; then 2826 if test -s conftest.err; then 2827 ac_cpp_err=$ac_c_preproc_warn_flag 2828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2829 else 2830 ac_cpp_err= 2831 fi 2832else 2833 ac_cpp_err=yes 2834fi 2835if test -z "$ac_cpp_err"; then 2836 # Broken: success on invalid input. 2837continue 2838else 2839 echo "$as_me: failed program was:" >&5 2840sed 's/^/| /' conftest.$ac_ext >&5 2841 2842 # Passes both tests. 2843ac_preproc_ok=: 2844break 2845fi 2846rm -f conftest.err conftest.$ac_ext 2847 2848done 2849# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2850rm -f conftest.err conftest.$ac_ext 2851if $ac_preproc_ok; then 2852 : 2853else 2854 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2855See \`config.log' for more details." >&5 2856echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2857See \`config.log' for more details." >&2;} 2858 { (exit 1); exit 1; }; } 2859fi 2860 2861ac_ext=c 2862ac_cpp='$CPP $CPPFLAGS' 2863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2865ac_compiler_gnu=$ac_cv_c_compiler_gnu 2866 2867 2868 # Find a good install program. We prefer a C program (faster), 2869# so one script is as good as another. But avoid the broken or 2870# incompatible versions: 2871# SysV /etc/install, /usr/sbin/install 2872# SunOS /usr/etc/install 2873# IRIX /sbin/install 2874# AIX /bin/install 2875# AmigaOS /C/install, which installs bootblocks on floppy discs 2876# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2877# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2878# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2879# OS/2's system install, which has a completely different semantic 2880# ./install, which can be erroneously created by make from ./install.sh. 2881echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2882echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2883if test -z "$INSTALL"; then 2884if test "${ac_cv_path_install+set}" = set; then 2885 echo $ECHO_N "(cached) $ECHO_C" >&6 2886else 2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2888for as_dir in $PATH 2889do 2890 IFS=$as_save_IFS 2891 test -z "$as_dir" && as_dir=. 2892 # Account for people who put trailing slashes in PATH elements. 2893case $as_dir/ in 2894 ./ | .// | /cC/* | \ 2895 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2896 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2897 /usr/ucb/* ) ;; 2898 *) 2899 # OSF1 and SCO ODT 3.0 have their own names for install. 2900 # Don't use installbsd from OSF since it installs stuff as root 2901 # by default. 2902 for ac_prog in ginstall scoinst install; do 2903 for ac_exec_ext in '' $ac_executable_extensions; do 2904 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2905 if test $ac_prog = install && 2906 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2907 # AIX install. It has an incompatible calling convention. 2908 : 2909 elif test $ac_prog = install && 2910 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2911 # program-specific install script used by HP pwplus--don't use. 2912 : 2913 else 2914 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2915 break 3 2916 fi 2917 fi 2918 done 2919 done 2920 ;; 2921esac 2922done 2923 2924 2925fi 2926 if test "${ac_cv_path_install+set}" = set; then 2927 INSTALL=$ac_cv_path_install 2928 else 2929 # As a last resort, use the slow shell script. We don't cache a 2930 # path for INSTALL within a source directory, because that will 2931 # break other packages using the cache if that directory is 2932 # removed, or if the path is relative. 2933 INSTALL=$ac_install_sh 2934 fi 2935fi 2936echo "$as_me:$LINENO: result: $INSTALL" >&5 2937echo "${ECHO_T}$INSTALL" >&6 2938 2939# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2940# It thinks the first close brace ends the variable substitution. 2941test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2942 2943test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2944 2945test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2946 2947 2948 #-------------------------------------------------------------------- 2949 # Checks to see if the make program sets the $MAKE variable. 2950 #-------------------------------------------------------------------- 2951 2952 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2953echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2954set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2955if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2956 echo $ECHO_N "(cached) $ECHO_C" >&6 2957else 2958 cat >conftest.make <<\_ACEOF 2959all: 2960 @echo 'ac_maketemp="$(MAKE)"' 2961_ACEOF 2962# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2963eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2964if test -n "$ac_maketemp"; then 2965 eval ac_cv_prog_make_${ac_make}_set=yes 2966else 2967 eval ac_cv_prog_make_${ac_make}_set=no 2968fi 2969rm -f conftest.make 2970fi 2971if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2972 echo "$as_me:$LINENO: result: yes" >&5 2973echo "${ECHO_T}yes" >&6 2974 SET_MAKE= 2975else 2976 echo "$as_me:$LINENO: result: no" >&5 2977echo "${ECHO_T}no" >&6 2978 SET_MAKE="MAKE=${MAKE-make}" 2979fi 2980 2981 2982 #-------------------------------------------------------------------- 2983 # Find ranlib 2984 #-------------------------------------------------------------------- 2985 2986 if test -n "$ac_tool_prefix"; then 2987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2988set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2989echo "$as_me:$LINENO: checking for $ac_word" >&5 2990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2991if test "${ac_cv_prog_RANLIB+set}" = set; then 2992 echo $ECHO_N "(cached) $ECHO_C" >&6 2993else 2994 if test -n "$RANLIB"; then 2995 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2996else 2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2998for as_dir in $PATH 2999do 3000 IFS=$as_save_IFS 3001 test -z "$as_dir" && as_dir=. 3002 for ac_exec_ext in '' $ac_executable_extensions; do 3003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3004 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3006 break 2 3007 fi 3008done 3009done 3010 3011fi 3012fi 3013RANLIB=$ac_cv_prog_RANLIB 3014if test -n "$RANLIB"; then 3015 echo "$as_me:$LINENO: result: $RANLIB" >&5 3016echo "${ECHO_T}$RANLIB" >&6 3017else 3018 echo "$as_me:$LINENO: result: no" >&5 3019echo "${ECHO_T}no" >&6 3020fi 3021 3022fi 3023if test -z "$ac_cv_prog_RANLIB"; then 3024 ac_ct_RANLIB=$RANLIB 3025 # Extract the first word of "ranlib", so it can be a program name with args. 3026set dummy ranlib; ac_word=$2 3027echo "$as_me:$LINENO: checking for $ac_word" >&5 3028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3029if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3030 echo $ECHO_N "(cached) $ECHO_C" >&6 3031else 3032 if test -n "$ac_ct_RANLIB"; then 3033 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3034else 3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3036for as_dir in $PATH 3037do 3038 IFS=$as_save_IFS 3039 test -z "$as_dir" && as_dir=. 3040 for ac_exec_ext in '' $ac_executable_extensions; do 3041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3042 ac_cv_prog_ac_ct_RANLIB="ranlib" 3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3044 break 2 3045 fi 3046done 3047done 3048 3049 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3050fi 3051fi 3052ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3053if test -n "$ac_ct_RANLIB"; then 3054 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3055echo "${ECHO_T}$ac_ct_RANLIB" >&6 3056else 3057 echo "$as_me:$LINENO: result: no" >&5 3058echo "${ECHO_T}no" >&6 3059fi 3060 3061 RANLIB=$ac_ct_RANLIB 3062else 3063 RANLIB="$ac_cv_prog_RANLIB" 3064fi 3065 3066 3067 #-------------------------------------------------------------------- 3068 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3069 #-------------------------------------------------------------------- 3070 3071 3072 3073 3074 3075 3076echo "$as_me:$LINENO: checking for egrep" >&5 3077echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3078if test "${ac_cv_prog_egrep+set}" = set; then 3079 echo $ECHO_N "(cached) $ECHO_C" >&6 3080else 3081 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3082 then ac_cv_prog_egrep='grep -E' 3083 else ac_cv_prog_egrep='egrep' 3084 fi 3085fi 3086echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3087echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3088 EGREP=$ac_cv_prog_egrep 3089 3090 3091echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3092echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3093if test "${ac_cv_header_stdc+set}" = set; then 3094 echo $ECHO_N "(cached) $ECHO_C" >&6 3095else 3096 cat >conftest.$ac_ext <<_ACEOF 3097/* confdefs.h. */ 3098_ACEOF 3099cat confdefs.h >>conftest.$ac_ext 3100cat >>conftest.$ac_ext <<_ACEOF 3101/* end confdefs.h. */ 3102#include <stdlib.h> 3103#include <stdarg.h> 3104#include <string.h> 3105#include <float.h> 3106 3107int 3108main () 3109{ 3110 3111 ; 3112 return 0; 3113} 3114_ACEOF 3115rm -f conftest.$ac_objext 3116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3117 (eval $ac_compile) 2>conftest.er1 3118 ac_status=$? 3119 grep -v '^ *+' conftest.er1 >conftest.err 3120 rm -f conftest.er1 3121 cat conftest.err >&5 3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3123 (exit $ac_status); } && 3124 { ac_try='test -z "$ac_c_werror_flag" 3125 || test ! -s conftest.err' 3126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3127 (eval $ac_try) 2>&5 3128 ac_status=$? 3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3130 (exit $ac_status); }; } && 3131 { ac_try='test -s conftest.$ac_objext' 3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3133 (eval $ac_try) 2>&5 3134 ac_status=$? 3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3136 (exit $ac_status); }; }; then 3137 ac_cv_header_stdc=yes 3138else 3139 echo "$as_me: failed program was:" >&5 3140sed 's/^/| /' conftest.$ac_ext >&5 3141 3142ac_cv_header_stdc=no 3143fi 3144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3145 3146if test $ac_cv_header_stdc = yes; then 3147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3148 cat >conftest.$ac_ext <<_ACEOF 3149/* confdefs.h. */ 3150_ACEOF 3151cat confdefs.h >>conftest.$ac_ext 3152cat >>conftest.$ac_ext <<_ACEOF 3153/* end confdefs.h. */ 3154#include <string.h> 3155 3156_ACEOF 3157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3158 $EGREP "memchr" >/dev/null 2>&1; then 3159 : 3160else 3161 ac_cv_header_stdc=no 3162fi 3163rm -f conftest* 3164 3165fi 3166 3167if test $ac_cv_header_stdc = yes; then 3168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3169 cat >conftest.$ac_ext <<_ACEOF 3170/* confdefs.h. */ 3171_ACEOF 3172cat confdefs.h >>conftest.$ac_ext 3173cat >>conftest.$ac_ext <<_ACEOF 3174/* end confdefs.h. */ 3175#include <stdlib.h> 3176 3177_ACEOF 3178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3179 $EGREP "free" >/dev/null 2>&1; then 3180 : 3181else 3182 ac_cv_header_stdc=no 3183fi 3184rm -f conftest* 3185 3186fi 3187 3188if test $ac_cv_header_stdc = yes; then 3189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3190 if test "$cross_compiling" = yes; then 3191 : 3192else 3193 cat >conftest.$ac_ext <<_ACEOF 3194/* confdefs.h. */ 3195_ACEOF 3196cat confdefs.h >>conftest.$ac_ext 3197cat >>conftest.$ac_ext <<_ACEOF 3198/* end confdefs.h. */ 3199#include <ctype.h> 3200#if ((' ' & 0x0FF) == 0x020) 3201# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3202# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3203#else 3204# define ISLOWER(c) \ 3205 (('a' <= (c) && (c) <= 'i') \ 3206 || ('j' <= (c) && (c) <= 'r') \ 3207 || ('s' <= (c) && (c) <= 'z')) 3208# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3209#endif 3210 3211#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3212int 3213main () 3214{ 3215 int i; 3216 for (i = 0; i < 256; i++) 3217 if (XOR (islower (i), ISLOWER (i)) 3218 || toupper (i) != TOUPPER (i)) 3219 exit(2); 3220 exit (0); 3221} 3222_ACEOF 3223rm -f conftest$ac_exeext 3224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3225 (eval $ac_link) 2>&5 3226 ac_status=$? 3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3230 (eval $ac_try) 2>&5 3231 ac_status=$? 3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3233 (exit $ac_status); }; }; then 3234 : 3235else 3236 echo "$as_me: program exited with status $ac_status" >&5 3237echo "$as_me: failed program was:" >&5 3238sed 's/^/| /' conftest.$ac_ext >&5 3239 3240( exit $ac_status ) 3241ac_cv_header_stdc=no 3242fi 3243rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3244fi 3245fi 3246fi 3247echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3248echo "${ECHO_T}$ac_cv_header_stdc" >&6 3249if test $ac_cv_header_stdc = yes; then 3250 3251cat >>confdefs.h <<\_ACEOF 3252#define STDC_HEADERS 1 3253_ACEOF 3254 3255fi 3256 3257# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3268 inttypes.h stdint.h unistd.h 3269do 3270as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3271echo "$as_me:$LINENO: checking for $ac_header" >&5 3272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3273if eval "test \"\${$as_ac_Header+set}\" = set"; then 3274 echo $ECHO_N "(cached) $ECHO_C" >&6 3275else 3276 cat >conftest.$ac_ext <<_ACEOF 3277/* confdefs.h. */ 3278_ACEOF 3279cat confdefs.h >>conftest.$ac_ext 3280cat >>conftest.$ac_ext <<_ACEOF 3281/* end confdefs.h. */ 3282$ac_includes_default 3283 3284#include <$ac_header> 3285_ACEOF 3286rm -f conftest.$ac_objext 3287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3288 (eval $ac_compile) 2>conftest.er1 3289 ac_status=$? 3290 grep -v '^ *+' conftest.er1 >conftest.err 3291 rm -f conftest.er1 3292 cat conftest.err >&5 3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3294 (exit $ac_status); } && 3295 { ac_try='test -z "$ac_c_werror_flag" 3296 || test ! -s conftest.err' 3297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3298 (eval $ac_try) 2>&5 3299 ac_status=$? 3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3301 (exit $ac_status); }; } && 3302 { ac_try='test -s conftest.$ac_objext' 3303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3304 (eval $ac_try) 2>&5 3305 ac_status=$? 3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3307 (exit $ac_status); }; }; then 3308 eval "$as_ac_Header=yes" 3309else 3310 echo "$as_me: failed program was:" >&5 3311sed 's/^/| /' conftest.$ac_ext >&5 3312 3313eval "$as_ac_Header=no" 3314fi 3315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3316fi 3317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3319if test `eval echo '${'$as_ac_Header'}'` = yes; then 3320 cat >>confdefs.h <<_ACEOF 3321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3322_ACEOF 3323 3324fi 3325 3326done 3327 3328 3329 3330 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 3331 3332 3333 #------------------------------------------------------------------------ 3334 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 3335 # It makes compiling go faster. (This is only a performance feature.) 3336 #------------------------------------------------------------------------ 3337 3338 if test -z "$no_pipe" -a -n "$GCC"; then 3339 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 3340echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6 3341 OLDCC="$CC" 3342 CC="$CC -pipe" 3343 cat >conftest.$ac_ext <<_ACEOF 3344/* confdefs.h. */ 3345_ACEOF 3346cat confdefs.h >>conftest.$ac_ext 3347cat >>conftest.$ac_ext <<_ACEOF 3348/* end confdefs.h. */ 3349 3350int 3351main () 3352{ 3353 3354 ; 3355 return 0; 3356} 3357_ACEOF 3358rm -f conftest.$ac_objext 3359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3360 (eval $ac_compile) 2>conftest.er1 3361 ac_status=$? 3362 grep -v '^ *+' conftest.er1 >conftest.err 3363 rm -f conftest.er1 3364 cat conftest.err >&5 3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3366 (exit $ac_status); } && 3367 { ac_try='test -z "$ac_c_werror_flag" 3368 || test ! -s conftest.err' 3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3370 (eval $ac_try) 2>&5 3371 ac_status=$? 3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3373 (exit $ac_status); }; } && 3374 { ac_try='test -s conftest.$ac_objext' 3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3376 (eval $ac_try) 2>&5 3377 ac_status=$? 3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3379 (exit $ac_status); }; }; then 3380 echo "$as_me:$LINENO: result: yes" >&5 3381echo "${ECHO_T}yes" >&6 3382else 3383 echo "$as_me: failed program was:" >&5 3384sed 's/^/| /' conftest.$ac_ext >&5 3385 3386CC="$OLDCC" 3387 echo "$as_me:$LINENO: result: no" >&5 3388echo "${ECHO_T}no" >&6 3389fi 3390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3391 fi 3392 3393 #-------------------------------------------------------------------- 3394 # Common compiler flag setup 3395 #-------------------------------------------------------------------- 3396 3397 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 3398echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 3399if test "${ac_cv_c_bigendian+set}" = set; then 3400 echo $ECHO_N "(cached) $ECHO_C" >&6 3401else 3402 # See if sys/param.h defines the BYTE_ORDER macro. 3403cat >conftest.$ac_ext <<_ACEOF 3404/* confdefs.h. */ 3405_ACEOF 3406cat confdefs.h >>conftest.$ac_ext 3407cat >>conftest.$ac_ext <<_ACEOF 3408/* end confdefs.h. */ 3409#include <sys/types.h> 3410#include <sys/param.h> 3411 3412int 3413main () 3414{ 3415#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3416 bogus endian macros 3417#endif 3418 3419 ; 3420 return 0; 3421} 3422_ACEOF 3423rm -f conftest.$ac_objext 3424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3425 (eval $ac_compile) 2>conftest.er1 3426 ac_status=$? 3427 grep -v '^ *+' conftest.er1 >conftest.err 3428 rm -f conftest.er1 3429 cat conftest.err >&5 3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3431 (exit $ac_status); } && 3432 { ac_try='test -z "$ac_c_werror_flag" 3433 || test ! -s conftest.err' 3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3435 (eval $ac_try) 2>&5 3436 ac_status=$? 3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3438 (exit $ac_status); }; } && 3439 { ac_try='test -s conftest.$ac_objext' 3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3441 (eval $ac_try) 2>&5 3442 ac_status=$? 3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3444 (exit $ac_status); }; }; then 3445 # It does; now see whether it defined to BIG_ENDIAN or not. 3446cat >conftest.$ac_ext <<_ACEOF 3447/* confdefs.h. */ 3448_ACEOF 3449cat confdefs.h >>conftest.$ac_ext 3450cat >>conftest.$ac_ext <<_ACEOF 3451/* end confdefs.h. */ 3452#include <sys/types.h> 3453#include <sys/param.h> 3454 3455int 3456main () 3457{ 3458#if BYTE_ORDER != BIG_ENDIAN 3459 not big endian 3460#endif 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_c_bigendian=yes 3489else 3490 echo "$as_me: failed program was:" >&5 3491sed 's/^/| /' conftest.$ac_ext >&5 3492 3493ac_cv_c_bigendian=no 3494fi 3495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3496else 3497 echo "$as_me: failed program was:" >&5 3498sed 's/^/| /' conftest.$ac_ext >&5 3499 3500# It does not; compile a test program. 3501if test "$cross_compiling" = yes; then 3502 # try to guess the endianness by grepping values into an object file 3503 ac_cv_c_bigendian=unknown 3504 cat >conftest.$ac_ext <<_ACEOF 3505/* confdefs.h. */ 3506_ACEOF 3507cat confdefs.h >>conftest.$ac_ext 3508cat >>conftest.$ac_ext <<_ACEOF 3509/* end confdefs.h. */ 3510short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 3511short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 3512void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 3513short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 3514short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 3515void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 3516int 3517main () 3518{ 3519 _ascii (); _ebcdic (); 3520 ; 3521 return 0; 3522} 3523_ACEOF 3524rm -f conftest.$ac_objext 3525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3526 (eval $ac_compile) 2>conftest.er1 3527 ac_status=$? 3528 grep -v '^ *+' conftest.er1 >conftest.err 3529 rm -f conftest.er1 3530 cat conftest.err >&5 3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3532 (exit $ac_status); } && 3533 { ac_try='test -z "$ac_c_werror_flag" 3534 || test ! -s conftest.err' 3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3536 (eval $ac_try) 2>&5 3537 ac_status=$? 3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3539 (exit $ac_status); }; } && 3540 { ac_try='test -s conftest.$ac_objext' 3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3542 (eval $ac_try) 2>&5 3543 ac_status=$? 3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3545 (exit $ac_status); }; }; then 3546 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 3547 ac_cv_c_bigendian=yes 3548fi 3549if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 3550 if test "$ac_cv_c_bigendian" = unknown; then 3551 ac_cv_c_bigendian=no 3552 else 3553 # finding both strings is unlikely to happen, but who knows? 3554 ac_cv_c_bigendian=unknown 3555 fi 3556fi 3557else 3558 echo "$as_me: failed program was:" >&5 3559sed 's/^/| /' conftest.$ac_ext >&5 3560 3561fi 3562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3563else 3564 cat >conftest.$ac_ext <<_ACEOF 3565/* confdefs.h. */ 3566_ACEOF 3567cat confdefs.h >>conftest.$ac_ext 3568cat >>conftest.$ac_ext <<_ACEOF 3569/* end confdefs.h. */ 3570int 3571main () 3572{ 3573 /* Are we little or big endian? From Harbison&Steele. */ 3574 union 3575 { 3576 long l; 3577 char c[sizeof (long)]; 3578 } u; 3579 u.l = 1; 3580 exit (u.c[sizeof (long) - 1] == 1); 3581} 3582_ACEOF 3583rm -f conftest$ac_exeext 3584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3585 (eval $ac_link) 2>&5 3586 ac_status=$? 3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3590 (eval $ac_try) 2>&5 3591 ac_status=$? 3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3593 (exit $ac_status); }; }; then 3594 ac_cv_c_bigendian=no 3595else 3596 echo "$as_me: program exited with status $ac_status" >&5 3597echo "$as_me: failed program was:" >&5 3598sed 's/^/| /' conftest.$ac_ext >&5 3599 3600( exit $ac_status ) 3601ac_cv_c_bigendian=yes 3602fi 3603rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3604fi 3605fi 3606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3607fi 3608echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 3609echo "${ECHO_T}$ac_cv_c_bigendian" >&6 3610case $ac_cv_c_bigendian in 3611 yes) 3612 3613cat >>confdefs.h <<\_ACEOF 3614#define WORDS_BIGENDIAN 1 3615_ACEOF 3616 ;; 3617 no) 3618 ;; 3619 *) 3620 { { echo "$as_me:$LINENO: error: unknown endianness 3621presetting ac_cv_c_bigendian=no (or yes) will help" >&5 3622echo "$as_me: error: unknown endianness 3623presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 3624 { (exit 1); exit 1; }; } ;; 3625esac 3626 3627 if test "${TEA_PLATFORM}" = "unix" ; then 3628 3629 #-------------------------------------------------------------------- 3630 # On a few very rare systems, all of the libm.a stuff is 3631 # already in libc.a. Set compiler flags accordingly. 3632 # Also, Linux requires the "ieee" library for math to work 3633 # right (and it must appear before "-lm"). 3634 #-------------------------------------------------------------------- 3635 3636 echo "$as_me:$LINENO: checking for sin" >&5 3637echo $ECHO_N "checking for sin... $ECHO_C" >&6 3638if test "${ac_cv_func_sin+set}" = set; then 3639 echo $ECHO_N "(cached) $ECHO_C" >&6 3640else 3641 cat >conftest.$ac_ext <<_ACEOF 3642/* confdefs.h. */ 3643_ACEOF 3644cat confdefs.h >>conftest.$ac_ext 3645cat >>conftest.$ac_ext <<_ACEOF 3646/* end confdefs.h. */ 3647/* Define sin to an innocuous variant, in case <limits.h> declares sin. 3648 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3649#define sin innocuous_sin 3650 3651/* System header to define __stub macros and hopefully few prototypes, 3652 which can conflict with char sin (); below. 3653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3654 <limits.h> exists even on freestanding compilers. */ 3655 3656#ifdef __STDC__ 3657# include <limits.h> 3658#else 3659# include <assert.h> 3660#endif 3661 3662#undef sin 3663 3664/* Override any gcc2 internal prototype to avoid an error. */ 3665#ifdef __cplusplus 3666extern "C" 3667{ 3668#endif 3669/* We use char because int might match the return type of a gcc2 3670 builtin and then its argument prototype would still apply. */ 3671char sin (); 3672/* The GNU C library defines this for functions which it implements 3673 to always fail with ENOSYS. Some functions are actually named 3674 something starting with __ and the normal name is an alias. */ 3675#if defined (__stub_sin) || defined (__stub___sin) 3676choke me 3677#else 3678char (*f) () = sin; 3679#endif 3680#ifdef __cplusplus 3681} 3682#endif 3683 3684int 3685main () 3686{ 3687return f != sin; 3688 ; 3689 return 0; 3690} 3691_ACEOF 3692rm -f conftest.$ac_objext conftest$ac_exeext 3693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3694 (eval $ac_link) 2>conftest.er1 3695 ac_status=$? 3696 grep -v '^ *+' conftest.er1 >conftest.err 3697 rm -f conftest.er1 3698 cat conftest.err >&5 3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3700 (exit $ac_status); } && 3701 { ac_try='test -z "$ac_c_werror_flag" 3702 || test ! -s conftest.err' 3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3704 (eval $ac_try) 2>&5 3705 ac_status=$? 3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3707 (exit $ac_status); }; } && 3708 { ac_try='test -s conftest$ac_exeext' 3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3710 (eval $ac_try) 2>&5 3711 ac_status=$? 3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3713 (exit $ac_status); }; }; then 3714 ac_cv_func_sin=yes 3715else 3716 echo "$as_me: failed program was:" >&5 3717sed 's/^/| /' conftest.$ac_ext >&5 3718 3719ac_cv_func_sin=no 3720fi 3721rm -f conftest.err conftest.$ac_objext \ 3722 conftest$ac_exeext conftest.$ac_ext 3723fi 3724echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 3725echo "${ECHO_T}$ac_cv_func_sin" >&6 3726if test $ac_cv_func_sin = yes; then 3727 MATH_LIBS="" 3728else 3729 MATH_LIBS="-lm" 3730fi 3731 3732 echo "$as_me:$LINENO: checking for main in -lieee" >&5 3733echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6 3734if test "${ac_cv_lib_ieee_main+set}" = set; then 3735 echo $ECHO_N "(cached) $ECHO_C" >&6 3736else 3737 ac_check_lib_save_LIBS=$LIBS 3738LIBS="-lieee $LIBS" 3739cat >conftest.$ac_ext <<_ACEOF 3740/* confdefs.h. */ 3741_ACEOF 3742cat confdefs.h >>conftest.$ac_ext 3743cat >>conftest.$ac_ext <<_ACEOF 3744/* end confdefs.h. */ 3745 3746 3747int 3748main () 3749{ 3750main (); 3751 ; 3752 return 0; 3753} 3754_ACEOF 3755rm -f conftest.$ac_objext conftest$ac_exeext 3756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3757 (eval $ac_link) 2>conftest.er1 3758 ac_status=$? 3759 grep -v '^ *+' conftest.er1 >conftest.err 3760 rm -f conftest.er1 3761 cat conftest.err >&5 3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3763 (exit $ac_status); } && 3764 { ac_try='test -z "$ac_c_werror_flag" 3765 || test ! -s conftest.err' 3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3767 (eval $ac_try) 2>&5 3768 ac_status=$? 3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3770 (exit $ac_status); }; } && 3771 { ac_try='test -s conftest$ac_exeext' 3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3773 (eval $ac_try) 2>&5 3774 ac_status=$? 3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3776 (exit $ac_status); }; }; then 3777 ac_cv_lib_ieee_main=yes 3778else 3779 echo "$as_me: failed program was:" >&5 3780sed 's/^/| /' conftest.$ac_ext >&5 3781 3782ac_cv_lib_ieee_main=no 3783fi 3784rm -f conftest.err conftest.$ac_objext \ 3785 conftest$ac_exeext conftest.$ac_ext 3786LIBS=$ac_check_lib_save_LIBS 3787fi 3788echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 3789echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6 3790if test $ac_cv_lib_ieee_main = yes; then 3791 MATH_LIBS="-lieee $MATH_LIBS" 3792fi 3793 3794 3795 #-------------------------------------------------------------------- 3796 # Interactive UNIX requires -linet instead of -lsocket, plus it 3797 # needs net/errno.h to define the socket-related error codes. 3798 #-------------------------------------------------------------------- 3799 3800 echo "$as_me:$LINENO: checking for main in -linet" >&5 3801echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6 3802if test "${ac_cv_lib_inet_main+set}" = set; then 3803 echo $ECHO_N "(cached) $ECHO_C" >&6 3804else 3805 ac_check_lib_save_LIBS=$LIBS 3806LIBS="-linet $LIBS" 3807cat >conftest.$ac_ext <<_ACEOF 3808/* confdefs.h. */ 3809_ACEOF 3810cat confdefs.h >>conftest.$ac_ext 3811cat >>conftest.$ac_ext <<_ACEOF 3812/* end confdefs.h. */ 3813 3814 3815int 3816main () 3817{ 3818main (); 3819 ; 3820 return 0; 3821} 3822_ACEOF 3823rm -f conftest.$ac_objext conftest$ac_exeext 3824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3825 (eval $ac_link) 2>conftest.er1 3826 ac_status=$? 3827 grep -v '^ *+' conftest.er1 >conftest.err 3828 rm -f conftest.er1 3829 cat conftest.err >&5 3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3831 (exit $ac_status); } && 3832 { ac_try='test -z "$ac_c_werror_flag" 3833 || test ! -s conftest.err' 3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3835 (eval $ac_try) 2>&5 3836 ac_status=$? 3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3838 (exit $ac_status); }; } && 3839 { ac_try='test -s conftest$ac_exeext' 3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3841 (eval $ac_try) 2>&5 3842 ac_status=$? 3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3844 (exit $ac_status); }; }; then 3845 ac_cv_lib_inet_main=yes 3846else 3847 echo "$as_me: failed program was:" >&5 3848sed 's/^/| /' conftest.$ac_ext >&5 3849 3850ac_cv_lib_inet_main=no 3851fi 3852rm -f conftest.err conftest.$ac_objext \ 3853 conftest$ac_exeext conftest.$ac_ext 3854LIBS=$ac_check_lib_save_LIBS 3855fi 3856echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 3857echo "${ECHO_T}$ac_cv_lib_inet_main" >&6 3858if test $ac_cv_lib_inet_main = yes; then 3859 LIBS="$LIBS -linet" 3860fi 3861 3862 if test "${ac_cv_header_net_errno_h+set}" = set; then 3863 echo "$as_me:$LINENO: checking for net/errno.h" >&5 3864echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6 3865if test "${ac_cv_header_net_errno_h+set}" = set; then 3866 echo $ECHO_N "(cached) $ECHO_C" >&6 3867fi 3868echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 3869echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6 3870else 3871 # Is the header compilable? 3872echo "$as_me:$LINENO: checking net/errno.h usability" >&5 3873echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6 3874cat >conftest.$ac_ext <<_ACEOF 3875/* confdefs.h. */ 3876_ACEOF 3877cat confdefs.h >>conftest.$ac_ext 3878cat >>conftest.$ac_ext <<_ACEOF 3879/* end confdefs.h. */ 3880$ac_includes_default 3881#include <net/errno.h> 3882_ACEOF 3883rm -f conftest.$ac_objext 3884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3885 (eval $ac_compile) 2>conftest.er1 3886 ac_status=$? 3887 grep -v '^ *+' conftest.er1 >conftest.err 3888 rm -f conftest.er1 3889 cat conftest.err >&5 3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3891 (exit $ac_status); } && 3892 { ac_try='test -z "$ac_c_werror_flag" 3893 || test ! -s conftest.err' 3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3895 (eval $ac_try) 2>&5 3896 ac_status=$? 3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3898 (exit $ac_status); }; } && 3899 { ac_try='test -s conftest.$ac_objext' 3900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3901 (eval $ac_try) 2>&5 3902 ac_status=$? 3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3904 (exit $ac_status); }; }; then 3905 ac_header_compiler=yes 3906else 3907 echo "$as_me: failed program was:" >&5 3908sed 's/^/| /' conftest.$ac_ext >&5 3909 3910ac_header_compiler=no 3911fi 3912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3913echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3914echo "${ECHO_T}$ac_header_compiler" >&6 3915 3916# Is the header present? 3917echo "$as_me:$LINENO: checking net/errno.h presence" >&5 3918echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6 3919cat >conftest.$ac_ext <<_ACEOF 3920/* confdefs.h. */ 3921_ACEOF 3922cat confdefs.h >>conftest.$ac_ext 3923cat >>conftest.$ac_ext <<_ACEOF 3924/* end confdefs.h. */ 3925#include <net/errno.h> 3926_ACEOF 3927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3929 ac_status=$? 3930 grep -v '^ *+' conftest.er1 >conftest.err 3931 rm -f conftest.er1 3932 cat conftest.err >&5 3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3934 (exit $ac_status); } >/dev/null; then 3935 if test -s conftest.err; then 3936 ac_cpp_err=$ac_c_preproc_warn_flag 3937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3938 else 3939 ac_cpp_err= 3940 fi 3941else 3942 ac_cpp_err=yes 3943fi 3944if test -z "$ac_cpp_err"; then 3945 ac_header_preproc=yes 3946else 3947 echo "$as_me: failed program was:" >&5 3948sed 's/^/| /' conftest.$ac_ext >&5 3949 3950 ac_header_preproc=no 3951fi 3952rm -f conftest.err conftest.$ac_ext 3953echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3954echo "${ECHO_T}$ac_header_preproc" >&6 3955 3956# So? What about this header? 3957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3958 yes:no: ) 3959 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 3960echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3961 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 3962echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 3963 ac_header_preproc=yes 3964 ;; 3965 no:yes:* ) 3966 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 3967echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 3968 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 3969echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 3970 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 3971echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 3972 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 3973echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 3974 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 3975echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 3976 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 3977echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 3978 ( 3979 cat <<\_ASBOX 3980## ------------------------------ ## 3981## Report this to the vfs lists. ## 3982## ------------------------------ ## 3983_ASBOX 3984 ) | 3985 sed "s/^/$as_me: WARNING: /" >&2 3986 ;; 3987esac 3988echo "$as_me:$LINENO: checking for net/errno.h" >&5 3989echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6 3990if test "${ac_cv_header_net_errno_h+set}" = set; then 3991 echo $ECHO_N "(cached) $ECHO_C" >&6 3992else 3993 ac_cv_header_net_errno_h=$ac_header_preproc 3994fi 3995echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 3996echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6 3997 3998fi 3999if test $ac_cv_header_net_errno_h = yes; then 4000 4001 4002cat >>confdefs.h <<\_ACEOF 4003#define HAVE_NET_ERRNO_H 1 4004_ACEOF 4005 4006fi 4007 4008 4009 4010 #-------------------------------------------------------------------- 4011 # Check for the existence of the -lsocket and -lnsl libraries. 4012 # The order here is important, so that they end up in the right 4013 # order in the command line generated by make. Here are some 4014 # special considerations: 4015 # 1. Use "connect" and "accept" to check for -lsocket, and 4016 # "gethostbyname" to check for -lnsl. 4017 # 2. Use each function name only once: can't redo a check because 4018 # autoconf caches the results of the last check and won't redo it. 4019 # 3. Use -lnsl and -lsocket only if they supply procedures that 4020 # aren't already present in the normal libraries. This is because 4021 # IRIX 5.2 has libraries, but they aren't needed and they're 4022 # bogus: they goof up name resolution if used. 4023 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4024 # To get around this problem, check for both libraries together 4025 # if -lsocket doesn't work by itself. 4026 #-------------------------------------------------------------------- 4027 4028 tcl_checkBoth=0 4029 echo "$as_me:$LINENO: checking for connect" >&5 4030echo $ECHO_N "checking for connect... $ECHO_C" >&6 4031if test "${ac_cv_func_connect+set}" = set; then 4032 echo $ECHO_N "(cached) $ECHO_C" >&6 4033else 4034 cat >conftest.$ac_ext <<_ACEOF 4035/* confdefs.h. */ 4036_ACEOF 4037cat confdefs.h >>conftest.$ac_ext 4038cat >>conftest.$ac_ext <<_ACEOF 4039/* end confdefs.h. */ 4040/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4041 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4042#define connect innocuous_connect 4043 4044/* System header to define __stub macros and hopefully few prototypes, 4045 which can conflict with char connect (); below. 4046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4047 <limits.h> exists even on freestanding compilers. */ 4048 4049#ifdef __STDC__ 4050# include <limits.h> 4051#else 4052# include <assert.h> 4053#endif 4054 4055#undef connect 4056 4057/* Override any gcc2 internal prototype to avoid an error. */ 4058#ifdef __cplusplus 4059extern "C" 4060{ 4061#endif 4062/* We use char because int might match the return type of a gcc2 4063 builtin and then its argument prototype would still apply. */ 4064char connect (); 4065/* The GNU C library defines this for functions which it implements 4066 to always fail with ENOSYS. Some functions are actually named 4067 something starting with __ and the normal name is an alias. */ 4068#if defined (__stub_connect) || defined (__stub___connect) 4069choke me 4070#else 4071char (*f) () = connect; 4072#endif 4073#ifdef __cplusplus 4074} 4075#endif 4076 4077int 4078main () 4079{ 4080return f != connect; 4081 ; 4082 return 0; 4083} 4084_ACEOF 4085rm -f conftest.$ac_objext conftest$ac_exeext 4086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4087 (eval $ac_link) 2>conftest.er1 4088 ac_status=$? 4089 grep -v '^ *+' conftest.er1 >conftest.err 4090 rm -f conftest.er1 4091 cat conftest.err >&5 4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4093 (exit $ac_status); } && 4094 { ac_try='test -z "$ac_c_werror_flag" 4095 || test ! -s conftest.err' 4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4097 (eval $ac_try) 2>&5 4098 ac_status=$? 4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4100 (exit $ac_status); }; } && 4101 { ac_try='test -s conftest$ac_exeext' 4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4103 (eval $ac_try) 2>&5 4104 ac_status=$? 4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4106 (exit $ac_status); }; }; then 4107 ac_cv_func_connect=yes 4108else 4109 echo "$as_me: failed program was:" >&5 4110sed 's/^/| /' conftest.$ac_ext >&5 4111 4112ac_cv_func_connect=no 4113fi 4114rm -f conftest.err conftest.$ac_objext \ 4115 conftest$ac_exeext conftest.$ac_ext 4116fi 4117echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4118echo "${ECHO_T}$ac_cv_func_connect" >&6 4119if test $ac_cv_func_connect = yes; then 4120 tcl_checkSocket=0 4121else 4122 tcl_checkSocket=1 4123fi 4124 4125 if test "$tcl_checkSocket" = 1; then 4126 echo "$as_me:$LINENO: checking for setsockopt" >&5 4127echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 4128if test "${ac_cv_func_setsockopt+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/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4138 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4139#define setsockopt innocuous_setsockopt 4140 4141/* System header to define __stub macros and hopefully few prototypes, 4142 which can conflict with char setsockopt (); below. 4143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4144 <limits.h> exists even on freestanding compilers. */ 4145 4146#ifdef __STDC__ 4147# include <limits.h> 4148#else 4149# include <assert.h> 4150#endif 4151 4152#undef setsockopt 4153 4154/* Override any gcc2 internal prototype to avoid an error. */ 4155#ifdef __cplusplus 4156extern "C" 4157{ 4158#endif 4159/* We use char because int might match the return type of a gcc2 4160 builtin and then its argument prototype would still apply. */ 4161char setsockopt (); 4162/* The GNU C library defines this for functions which it implements 4163 to always fail with ENOSYS. Some functions are actually named 4164 something starting with __ and the normal name is an alias. */ 4165#if defined (__stub_setsockopt) || defined (__stub___setsockopt) 4166choke me 4167#else 4168char (*f) () = setsockopt; 4169#endif 4170#ifdef __cplusplus 4171} 4172#endif 4173 4174int 4175main () 4176{ 4177return f != setsockopt; 4178 ; 4179 return 0; 4180} 4181_ACEOF 4182rm -f conftest.$ac_objext conftest$ac_exeext 4183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4184 (eval $ac_link) 2>conftest.er1 4185 ac_status=$? 4186 grep -v '^ *+' conftest.er1 >conftest.err 4187 rm -f conftest.er1 4188 cat conftest.err >&5 4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4190 (exit $ac_status); } && 4191 { ac_try='test -z "$ac_c_werror_flag" 4192 || test ! -s conftest.err' 4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4194 (eval $ac_try) 2>&5 4195 ac_status=$? 4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4197 (exit $ac_status); }; } && 4198 { ac_try='test -s conftest$ac_exeext' 4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4200 (eval $ac_try) 2>&5 4201 ac_status=$? 4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4203 (exit $ac_status); }; }; then 4204 ac_cv_func_setsockopt=yes 4205else 4206 echo "$as_me: failed program was:" >&5 4207sed 's/^/| /' conftest.$ac_ext >&5 4208 4209ac_cv_func_setsockopt=no 4210fi 4211rm -f conftest.err conftest.$ac_objext \ 4212 conftest$ac_exeext conftest.$ac_ext 4213fi 4214echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4215echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 4216if test $ac_cv_func_setsockopt = yes; then 4217 : 4218else 4219 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4220echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 4221if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4222 echo $ECHO_N "(cached) $ECHO_C" >&6 4223else 4224 ac_check_lib_save_LIBS=$LIBS 4225LIBS="-lsocket $LIBS" 4226cat >conftest.$ac_ext <<_ACEOF 4227/* confdefs.h. */ 4228_ACEOF 4229cat confdefs.h >>conftest.$ac_ext 4230cat >>conftest.$ac_ext <<_ACEOF 4231/* end confdefs.h. */ 4232 4233/* Override any gcc2 internal prototype to avoid an error. */ 4234#ifdef __cplusplus 4235extern "C" 4236#endif 4237/* We use char because int might match the return type of a gcc2 4238 builtin and then its argument prototype would still apply. */ 4239char setsockopt (); 4240int 4241main () 4242{ 4243setsockopt (); 4244 ; 4245 return 0; 4246} 4247_ACEOF 4248rm -f conftest.$ac_objext conftest$ac_exeext 4249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4250 (eval $ac_link) 2>conftest.er1 4251 ac_status=$? 4252 grep -v '^ *+' conftest.er1 >conftest.err 4253 rm -f conftest.er1 4254 cat conftest.err >&5 4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4256 (exit $ac_status); } && 4257 { ac_try='test -z "$ac_c_werror_flag" 4258 || test ! -s conftest.err' 4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4260 (eval $ac_try) 2>&5 4261 ac_status=$? 4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4263 (exit $ac_status); }; } && 4264 { ac_try='test -s conftest$ac_exeext' 4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4266 (eval $ac_try) 2>&5 4267 ac_status=$? 4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4269 (exit $ac_status); }; }; then 4270 ac_cv_lib_socket_setsockopt=yes 4271else 4272 echo "$as_me: failed program was:" >&5 4273sed 's/^/| /' conftest.$ac_ext >&5 4274 4275ac_cv_lib_socket_setsockopt=no 4276fi 4277rm -f conftest.err conftest.$ac_objext \ 4278 conftest$ac_exeext conftest.$ac_ext 4279LIBS=$ac_check_lib_save_LIBS 4280fi 4281echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4282echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 4283if test $ac_cv_lib_socket_setsockopt = yes; then 4284 LIBS="$LIBS -lsocket" 4285else 4286 tcl_checkBoth=1 4287fi 4288 4289fi 4290 4291 fi 4292 if test "$tcl_checkBoth" = 1; then 4293 tk_oldLibs=$LIBS 4294 LIBS="$LIBS -lsocket -lnsl" 4295 echo "$as_me:$LINENO: checking for accept" >&5 4296echo $ECHO_N "checking for accept... $ECHO_C" >&6 4297if test "${ac_cv_func_accept+set}" = set; then 4298 echo $ECHO_N "(cached) $ECHO_C" >&6 4299else 4300 cat >conftest.$ac_ext <<_ACEOF 4301/* confdefs.h. */ 4302_ACEOF 4303cat confdefs.h >>conftest.$ac_ext 4304cat >>conftest.$ac_ext <<_ACEOF 4305/* end confdefs.h. */ 4306/* Define accept to an innocuous variant, in case <limits.h> declares accept. 4307 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4308#define accept innocuous_accept 4309 4310/* System header to define __stub macros and hopefully few prototypes, 4311 which can conflict with char accept (); below. 4312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4313 <limits.h> exists even on freestanding compilers. */ 4314 4315#ifdef __STDC__ 4316# include <limits.h> 4317#else 4318# include <assert.h> 4319#endif 4320 4321#undef accept 4322 4323/* Override any gcc2 internal prototype to avoid an error. */ 4324#ifdef __cplusplus 4325extern "C" 4326{ 4327#endif 4328/* We use char because int might match the return type of a gcc2 4329 builtin and then its argument prototype would still apply. */ 4330char accept (); 4331/* The GNU C library defines this for functions which it implements 4332 to always fail with ENOSYS. Some functions are actually named 4333 something starting with __ and the normal name is an alias. */ 4334#if defined (__stub_accept) || defined (__stub___accept) 4335choke me 4336#else 4337char (*f) () = accept; 4338#endif 4339#ifdef __cplusplus 4340} 4341#endif 4342 4343int 4344main () 4345{ 4346return f != accept; 4347 ; 4348 return 0; 4349} 4350_ACEOF 4351rm -f conftest.$ac_objext conftest$ac_exeext 4352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4353 (eval $ac_link) 2>conftest.er1 4354 ac_status=$? 4355 grep -v '^ *+' conftest.er1 >conftest.err 4356 rm -f conftest.er1 4357 cat conftest.err >&5 4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4359 (exit $ac_status); } && 4360 { ac_try='test -z "$ac_c_werror_flag" 4361 || test ! -s conftest.err' 4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4363 (eval $ac_try) 2>&5 4364 ac_status=$? 4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4366 (exit $ac_status); }; } && 4367 { ac_try='test -s conftest$ac_exeext' 4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4369 (eval $ac_try) 2>&5 4370 ac_status=$? 4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4372 (exit $ac_status); }; }; then 4373 ac_cv_func_accept=yes 4374else 4375 echo "$as_me: failed program was:" >&5 4376sed 's/^/| /' conftest.$ac_ext >&5 4377 4378ac_cv_func_accept=no 4379fi 4380rm -f conftest.err conftest.$ac_objext \ 4381 conftest$ac_exeext conftest.$ac_ext 4382fi 4383echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 4384echo "${ECHO_T}$ac_cv_func_accept" >&6 4385if test $ac_cv_func_accept = yes; then 4386 tcl_checkNsl=0 4387else 4388 LIBS=$tk_oldLibs 4389fi 4390 4391 fi 4392 echo "$as_me:$LINENO: checking for gethostbyname" >&5 4393echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 4394if test "${ac_cv_func_gethostbyname+set}" = set; then 4395 echo $ECHO_N "(cached) $ECHO_C" >&6 4396else 4397 cat >conftest.$ac_ext <<_ACEOF 4398/* confdefs.h. */ 4399_ACEOF 4400cat confdefs.h >>conftest.$ac_ext 4401cat >>conftest.$ac_ext <<_ACEOF 4402/* end confdefs.h. */ 4403/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 4404 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4405#define gethostbyname innocuous_gethostbyname 4406 4407/* System header to define __stub macros and hopefully few prototypes, 4408 which can conflict with char gethostbyname (); below. 4409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4410 <limits.h> exists even on freestanding compilers. */ 4411 4412#ifdef __STDC__ 4413# include <limits.h> 4414#else 4415# include <assert.h> 4416#endif 4417 4418#undef gethostbyname 4419 4420/* Override any gcc2 internal prototype to avoid an error. */ 4421#ifdef __cplusplus 4422extern "C" 4423{ 4424#endif 4425/* We use char because int might match the return type of a gcc2 4426 builtin and then its argument prototype would still apply. */ 4427char gethostbyname (); 4428/* The GNU C library defines this for functions which it implements 4429 to always fail with ENOSYS. Some functions are actually named 4430 something starting with __ and the normal name is an alias. */ 4431#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 4432choke me 4433#else 4434char (*f) () = gethostbyname; 4435#endif 4436#ifdef __cplusplus 4437} 4438#endif 4439 4440int 4441main () 4442{ 4443return f != gethostbyname; 4444 ; 4445 return 0; 4446} 4447_ACEOF 4448rm -f conftest.$ac_objext conftest$ac_exeext 4449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4450 (eval $ac_link) 2>conftest.er1 4451 ac_status=$? 4452 grep -v '^ *+' conftest.er1 >conftest.err 4453 rm -f conftest.er1 4454 cat conftest.err >&5 4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4456 (exit $ac_status); } && 4457 { ac_try='test -z "$ac_c_werror_flag" 4458 || test ! -s conftest.err' 4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4460 (eval $ac_try) 2>&5 4461 ac_status=$? 4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4463 (exit $ac_status); }; } && 4464 { ac_try='test -s conftest$ac_exeext' 4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4466 (eval $ac_try) 2>&5 4467 ac_status=$? 4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4469 (exit $ac_status); }; }; then 4470 ac_cv_func_gethostbyname=yes 4471else 4472 echo "$as_me: failed program was:" >&5 4473sed 's/^/| /' conftest.$ac_ext >&5 4474 4475ac_cv_func_gethostbyname=no 4476fi 4477rm -f conftest.err conftest.$ac_objext \ 4478 conftest$ac_exeext conftest.$ac_ext 4479fi 4480echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 4481echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 4482if test $ac_cv_func_gethostbyname = yes; then 4483 : 4484else 4485 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 4486echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 4487if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 4488 echo $ECHO_N "(cached) $ECHO_C" >&6 4489else 4490 ac_check_lib_save_LIBS=$LIBS 4491LIBS="-lnsl $LIBS" 4492cat >conftest.$ac_ext <<_ACEOF 4493/* confdefs.h. */ 4494_ACEOF 4495cat confdefs.h >>conftest.$ac_ext 4496cat >>conftest.$ac_ext <<_ACEOF 4497/* end confdefs.h. */ 4498 4499/* Override any gcc2 internal prototype to avoid an error. */ 4500#ifdef __cplusplus 4501extern "C" 4502#endif 4503/* We use char because int might match the return type of a gcc2 4504 builtin and then its argument prototype would still apply. */ 4505char gethostbyname (); 4506int 4507main () 4508{ 4509gethostbyname (); 4510 ; 4511 return 0; 4512} 4513_ACEOF 4514rm -f conftest.$ac_objext conftest$ac_exeext 4515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4516 (eval $ac_link) 2>conftest.er1 4517 ac_status=$? 4518 grep -v '^ *+' conftest.er1 >conftest.err 4519 rm -f conftest.er1 4520 cat conftest.err >&5 4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4522 (exit $ac_status); } && 4523 { ac_try='test -z "$ac_c_werror_flag" 4524 || test ! -s conftest.err' 4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4526 (eval $ac_try) 2>&5 4527 ac_status=$? 4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4529 (exit $ac_status); }; } && 4530 { ac_try='test -s conftest$ac_exeext' 4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4532 (eval $ac_try) 2>&5 4533 ac_status=$? 4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4535 (exit $ac_status); }; }; then 4536 ac_cv_lib_nsl_gethostbyname=yes 4537else 4538 echo "$as_me: failed program was:" >&5 4539sed 's/^/| /' conftest.$ac_ext >&5 4540 4541ac_cv_lib_nsl_gethostbyname=no 4542fi 4543rm -f conftest.err conftest.$ac_objext \ 4544 conftest$ac_exeext conftest.$ac_ext 4545LIBS=$ac_check_lib_save_LIBS 4546fi 4547echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4548echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 4549if test $ac_cv_lib_nsl_gethostbyname = yes; then 4550 LIBS="$LIBS -lnsl" 4551fi 4552 4553fi 4554 4555 4556 # Don't perform the eval of the libraries here because DL_LIBS 4557 # won't be set until we call TEA_CONFIG_CFLAGS 4558 4559 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 4560 4561 4562 4563 4564 echo "$as_me:$LINENO: checking dirent.h" >&5 4565echo $ECHO_N "checking dirent.h... $ECHO_C" >&6 4566if test "${tcl_cv_dirent_h+set}" = set; then 4567 echo $ECHO_N "(cached) $ECHO_C" >&6 4568else 4569 4570 cat >conftest.$ac_ext <<_ACEOF 4571/* confdefs.h. */ 4572_ACEOF 4573cat confdefs.h >>conftest.$ac_ext 4574cat >>conftest.$ac_ext <<_ACEOF 4575/* end confdefs.h. */ 4576#include <sys/types.h> 4577#include <dirent.h> 4578int 4579main () 4580{ 4581 4582#ifndef _POSIX_SOURCE 4583# ifdef __Lynx__ 4584 /* 4585 * Generate compilation error to make the test fail: Lynx headers 4586 * are only valid if really in the POSIX environment. 4587 */ 4588 4589 missing_procedure(); 4590# endif 4591#endif 4592DIR *d; 4593struct dirent *entryPtr; 4594char *p; 4595d = opendir("foobar"); 4596entryPtr = readdir(d); 4597p = entryPtr->d_name; 4598closedir(d); 4599 4600 ; 4601 return 0; 4602} 4603_ACEOF 4604rm -f conftest.$ac_objext conftest$ac_exeext 4605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4606 (eval $ac_link) 2>conftest.er1 4607 ac_status=$? 4608 grep -v '^ *+' conftest.er1 >conftest.err 4609 rm -f conftest.er1 4610 cat conftest.err >&5 4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4612 (exit $ac_status); } && 4613 { ac_try='test -z "$ac_c_werror_flag" 4614 || test ! -s conftest.err' 4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4616 (eval $ac_try) 2>&5 4617 ac_status=$? 4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4619 (exit $ac_status); }; } && 4620 { ac_try='test -s conftest$ac_exeext' 4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4622 (eval $ac_try) 2>&5 4623 ac_status=$? 4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4625 (exit $ac_status); }; }; then 4626 tcl_cv_dirent_h=yes 4627else 4628 echo "$as_me: failed program was:" >&5 4629sed 's/^/| /' conftest.$ac_ext >&5 4630 4631tcl_cv_dirent_h=no 4632fi 4633rm -f conftest.err conftest.$ac_objext \ 4634 conftest$ac_exeext conftest.$ac_ext 4635fi 4636echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 4637echo "${ECHO_T}$tcl_cv_dirent_h" >&6 4638 4639 if test $tcl_cv_dirent_h = no; then 4640 4641cat >>confdefs.h <<\_ACEOF 4642#define NO_DIRENT_H 1 4643_ACEOF 4644 4645 fi 4646 4647 if test "${ac_cv_header_errno_h+set}" = set; then 4648 echo "$as_me:$LINENO: checking for errno.h" >&5 4649echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 4650if test "${ac_cv_header_errno_h+set}" = set; then 4651 echo $ECHO_N "(cached) $ECHO_C" >&6 4652fi 4653echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 4654echo "${ECHO_T}$ac_cv_header_errno_h" >&6 4655else 4656 # Is the header compilable? 4657echo "$as_me:$LINENO: checking errno.h usability" >&5 4658echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6 4659cat >conftest.$ac_ext <<_ACEOF 4660/* confdefs.h. */ 4661_ACEOF 4662cat confdefs.h >>conftest.$ac_ext 4663cat >>conftest.$ac_ext <<_ACEOF 4664/* end confdefs.h. */ 4665$ac_includes_default 4666#include <errno.h> 4667_ACEOF 4668rm -f conftest.$ac_objext 4669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4670 (eval $ac_compile) 2>conftest.er1 4671 ac_status=$? 4672 grep -v '^ *+' conftest.er1 >conftest.err 4673 rm -f conftest.er1 4674 cat conftest.err >&5 4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4676 (exit $ac_status); } && 4677 { ac_try='test -z "$ac_c_werror_flag" 4678 || test ! -s conftest.err' 4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4680 (eval $ac_try) 2>&5 4681 ac_status=$? 4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4683 (exit $ac_status); }; } && 4684 { ac_try='test -s conftest.$ac_objext' 4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4686 (eval $ac_try) 2>&5 4687 ac_status=$? 4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4689 (exit $ac_status); }; }; then 4690 ac_header_compiler=yes 4691else 4692 echo "$as_me: failed program was:" >&5 4693sed 's/^/| /' conftest.$ac_ext >&5 4694 4695ac_header_compiler=no 4696fi 4697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4698echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4699echo "${ECHO_T}$ac_header_compiler" >&6 4700 4701# Is the header present? 4702echo "$as_me:$LINENO: checking errno.h presence" >&5 4703echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6 4704cat >conftest.$ac_ext <<_ACEOF 4705/* confdefs.h. */ 4706_ACEOF 4707cat confdefs.h >>conftest.$ac_ext 4708cat >>conftest.$ac_ext <<_ACEOF 4709/* end confdefs.h. */ 4710#include <errno.h> 4711_ACEOF 4712if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4714 ac_status=$? 4715 grep -v '^ *+' conftest.er1 >conftest.err 4716 rm -f conftest.er1 4717 cat conftest.err >&5 4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4719 (exit $ac_status); } >/dev/null; then 4720 if test -s conftest.err; then 4721 ac_cpp_err=$ac_c_preproc_warn_flag 4722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4723 else 4724 ac_cpp_err= 4725 fi 4726else 4727 ac_cpp_err=yes 4728fi 4729if test -z "$ac_cpp_err"; then 4730 ac_header_preproc=yes 4731else 4732 echo "$as_me: failed program was:" >&5 4733sed 's/^/| /' conftest.$ac_ext >&5 4734 4735 ac_header_preproc=no 4736fi 4737rm -f conftest.err conftest.$ac_ext 4738echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4739echo "${ECHO_T}$ac_header_preproc" >&6 4740 4741# So? What about this header? 4742case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4743 yes:no: ) 4744 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4745echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4746 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 4747echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 4748 ac_header_preproc=yes 4749 ;; 4750 no:yes:* ) 4751 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 4752echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 4753 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 4754echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 4755 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 4756echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 4757 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 4758echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4759 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 4760echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 4761 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 4762echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 4763 ( 4764 cat <<\_ASBOX 4765## ------------------------------ ## 4766## Report this to the vfs lists. ## 4767## ------------------------------ ## 4768_ASBOX 4769 ) | 4770 sed "s/^/$as_me: WARNING: /" >&2 4771 ;; 4772esac 4773echo "$as_me:$LINENO: checking for errno.h" >&5 4774echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 4775if test "${ac_cv_header_errno_h+set}" = set; then 4776 echo $ECHO_N "(cached) $ECHO_C" >&6 4777else 4778 ac_cv_header_errno_h=$ac_header_preproc 4779fi 4780echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 4781echo "${ECHO_T}$ac_cv_header_errno_h" >&6 4782 4783fi 4784if test $ac_cv_header_errno_h = yes; then 4785 : 4786else 4787 4788cat >>confdefs.h <<\_ACEOF 4789#define NO_ERRNO_H 1 4790_ACEOF 4791 4792fi 4793 4794 4795 if test "${ac_cv_header_float_h+set}" = set; then 4796 echo "$as_me:$LINENO: checking for float.h" >&5 4797echo $ECHO_N "checking for float.h... $ECHO_C" >&6 4798if test "${ac_cv_header_float_h+set}" = set; then 4799 echo $ECHO_N "(cached) $ECHO_C" >&6 4800fi 4801echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 4802echo "${ECHO_T}$ac_cv_header_float_h" >&6 4803else 4804 # Is the header compilable? 4805echo "$as_me:$LINENO: checking float.h usability" >&5 4806echo $ECHO_N "checking float.h usability... $ECHO_C" >&6 4807cat >conftest.$ac_ext <<_ACEOF 4808/* confdefs.h. */ 4809_ACEOF 4810cat confdefs.h >>conftest.$ac_ext 4811cat >>conftest.$ac_ext <<_ACEOF 4812/* end confdefs.h. */ 4813$ac_includes_default 4814#include <float.h> 4815_ACEOF 4816rm -f conftest.$ac_objext 4817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4818 (eval $ac_compile) 2>conftest.er1 4819 ac_status=$? 4820 grep -v '^ *+' conftest.er1 >conftest.err 4821 rm -f conftest.er1 4822 cat conftest.err >&5 4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4824 (exit $ac_status); } && 4825 { ac_try='test -z "$ac_c_werror_flag" 4826 || test ! -s conftest.err' 4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4828 (eval $ac_try) 2>&5 4829 ac_status=$? 4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4831 (exit $ac_status); }; } && 4832 { ac_try='test -s conftest.$ac_objext' 4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4834 (eval $ac_try) 2>&5 4835 ac_status=$? 4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4837 (exit $ac_status); }; }; then 4838 ac_header_compiler=yes 4839else 4840 echo "$as_me: failed program was:" >&5 4841sed 's/^/| /' conftest.$ac_ext >&5 4842 4843ac_header_compiler=no 4844fi 4845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4846echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4847echo "${ECHO_T}$ac_header_compiler" >&6 4848 4849# Is the header present? 4850echo "$as_me:$LINENO: checking float.h presence" >&5 4851echo $ECHO_N "checking float.h presence... $ECHO_C" >&6 4852cat >conftest.$ac_ext <<_ACEOF 4853/* confdefs.h. */ 4854_ACEOF 4855cat confdefs.h >>conftest.$ac_ext 4856cat >>conftest.$ac_ext <<_ACEOF 4857/* end confdefs.h. */ 4858#include <float.h> 4859_ACEOF 4860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4862 ac_status=$? 4863 grep -v '^ *+' conftest.er1 >conftest.err 4864 rm -f conftest.er1 4865 cat conftest.err >&5 4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4867 (exit $ac_status); } >/dev/null; then 4868 if test -s conftest.err; then 4869 ac_cpp_err=$ac_c_preproc_warn_flag 4870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4871 else 4872 ac_cpp_err= 4873 fi 4874else 4875 ac_cpp_err=yes 4876fi 4877if test -z "$ac_cpp_err"; then 4878 ac_header_preproc=yes 4879else 4880 echo "$as_me: failed program was:" >&5 4881sed 's/^/| /' conftest.$ac_ext >&5 4882 4883 ac_header_preproc=no 4884fi 4885rm -f conftest.err conftest.$ac_ext 4886echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4887echo "${ECHO_T}$ac_header_preproc" >&6 4888 4889# So? What about this header? 4890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4891 yes:no: ) 4892 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 4893echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4894 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 4895echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 4896 ac_header_preproc=yes 4897 ;; 4898 no:yes:* ) 4899 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 4900echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 4901 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 4902echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 4903 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 4904echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 4905 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 4906echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 4907 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 4908echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 4909 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 4910echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 4911 ( 4912 cat <<\_ASBOX 4913## ------------------------------ ## 4914## Report this to the vfs lists. ## 4915## ------------------------------ ## 4916_ASBOX 4917 ) | 4918 sed "s/^/$as_me: WARNING: /" >&2 4919 ;; 4920esac 4921echo "$as_me:$LINENO: checking for float.h" >&5 4922echo $ECHO_N "checking for float.h... $ECHO_C" >&6 4923if test "${ac_cv_header_float_h+set}" = set; then 4924 echo $ECHO_N "(cached) $ECHO_C" >&6 4925else 4926 ac_cv_header_float_h=$ac_header_preproc 4927fi 4928echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 4929echo "${ECHO_T}$ac_cv_header_float_h" >&6 4930 4931fi 4932if test $ac_cv_header_float_h = yes; then 4933 : 4934else 4935 4936cat >>confdefs.h <<\_ACEOF 4937#define NO_FLOAT_H 1 4938_ACEOF 4939 4940fi 4941 4942 4943 if test "${ac_cv_header_values_h+set}" = set; then 4944 echo "$as_me:$LINENO: checking for values.h" >&5 4945echo $ECHO_N "checking for values.h... $ECHO_C" >&6 4946if test "${ac_cv_header_values_h+set}" = set; then 4947 echo $ECHO_N "(cached) $ECHO_C" >&6 4948fi 4949echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 4950echo "${ECHO_T}$ac_cv_header_values_h" >&6 4951else 4952 # Is the header compilable? 4953echo "$as_me:$LINENO: checking values.h usability" >&5 4954echo $ECHO_N "checking values.h usability... $ECHO_C" >&6 4955cat >conftest.$ac_ext <<_ACEOF 4956/* confdefs.h. */ 4957_ACEOF 4958cat confdefs.h >>conftest.$ac_ext 4959cat >>conftest.$ac_ext <<_ACEOF 4960/* end confdefs.h. */ 4961$ac_includes_default 4962#include <values.h> 4963_ACEOF 4964rm -f conftest.$ac_objext 4965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4966 (eval $ac_compile) 2>conftest.er1 4967 ac_status=$? 4968 grep -v '^ *+' conftest.er1 >conftest.err 4969 rm -f conftest.er1 4970 cat conftest.err >&5 4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4972 (exit $ac_status); } && 4973 { ac_try='test -z "$ac_c_werror_flag" 4974 || test ! -s conftest.err' 4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4976 (eval $ac_try) 2>&5 4977 ac_status=$? 4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4979 (exit $ac_status); }; } && 4980 { ac_try='test -s conftest.$ac_objext' 4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4982 (eval $ac_try) 2>&5 4983 ac_status=$? 4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4985 (exit $ac_status); }; }; then 4986 ac_header_compiler=yes 4987else 4988 echo "$as_me: failed program was:" >&5 4989sed 's/^/| /' conftest.$ac_ext >&5 4990 4991ac_header_compiler=no 4992fi 4993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4995echo "${ECHO_T}$ac_header_compiler" >&6 4996 4997# Is the header present? 4998echo "$as_me:$LINENO: checking values.h presence" >&5 4999echo $ECHO_N "checking values.h presence... $ECHO_C" >&6 5000cat >conftest.$ac_ext <<_ACEOF 5001/* confdefs.h. */ 5002_ACEOF 5003cat confdefs.h >>conftest.$ac_ext 5004cat >>conftest.$ac_ext <<_ACEOF 5005/* end confdefs.h. */ 5006#include <values.h> 5007_ACEOF 5008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5010 ac_status=$? 5011 grep -v '^ *+' conftest.er1 >conftest.err 5012 rm -f conftest.er1 5013 cat conftest.err >&5 5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5015 (exit $ac_status); } >/dev/null; then 5016 if test -s conftest.err; then 5017 ac_cpp_err=$ac_c_preproc_warn_flag 5018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5019 else 5020 ac_cpp_err= 5021 fi 5022else 5023 ac_cpp_err=yes 5024fi 5025if test -z "$ac_cpp_err"; then 5026 ac_header_preproc=yes 5027else 5028 echo "$as_me: failed program was:" >&5 5029sed 's/^/| /' conftest.$ac_ext >&5 5030 5031 ac_header_preproc=no 5032fi 5033rm -f conftest.err conftest.$ac_ext 5034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5035echo "${ECHO_T}$ac_header_preproc" >&6 5036 5037# So? What about this header? 5038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5039 yes:no: ) 5040 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5041echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5042 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5043echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5044 ac_header_preproc=yes 5045 ;; 5046 no:yes:* ) 5047 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5048echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5049 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5050echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5051 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5052echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5053 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5054echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5055 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5056echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5057 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5058echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5059 ( 5060 cat <<\_ASBOX 5061## ------------------------------ ## 5062## Report this to the vfs lists. ## 5063## ------------------------------ ## 5064_ASBOX 5065 ) | 5066 sed "s/^/$as_me: WARNING: /" >&2 5067 ;; 5068esac 5069echo "$as_me:$LINENO: checking for values.h" >&5 5070echo $ECHO_N "checking for values.h... $ECHO_C" >&6 5071if test "${ac_cv_header_values_h+set}" = set; then 5072 echo $ECHO_N "(cached) $ECHO_C" >&6 5073else 5074 ac_cv_header_values_h=$ac_header_preproc 5075fi 5076echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5077echo "${ECHO_T}$ac_cv_header_values_h" >&6 5078 5079fi 5080if test $ac_cv_header_values_h = yes; then 5081 : 5082else 5083 5084cat >>confdefs.h <<\_ACEOF 5085#define NO_VALUES_H 1 5086_ACEOF 5087 5088fi 5089 5090 5091 if test "${ac_cv_header_limits_h+set}" = set; then 5092 echo "$as_me:$LINENO: checking for limits.h" >&5 5093echo $ECHO_N "checking for limits.h... $ECHO_C" >&6 5094if test "${ac_cv_header_limits_h+set}" = set; then 5095 echo $ECHO_N "(cached) $ECHO_C" >&6 5096fi 5097echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5098echo "${ECHO_T}$ac_cv_header_limits_h" >&6 5099else 5100 # Is the header compilable? 5101echo "$as_me:$LINENO: checking limits.h usability" >&5 5102echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6 5103cat >conftest.$ac_ext <<_ACEOF 5104/* confdefs.h. */ 5105_ACEOF 5106cat confdefs.h >>conftest.$ac_ext 5107cat >>conftest.$ac_ext <<_ACEOF 5108/* end confdefs.h. */ 5109$ac_includes_default 5110#include <limits.h> 5111_ACEOF 5112rm -f conftest.$ac_objext 5113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5114 (eval $ac_compile) 2>conftest.er1 5115 ac_status=$? 5116 grep -v '^ *+' conftest.er1 >conftest.err 5117 rm -f conftest.er1 5118 cat conftest.err >&5 5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5120 (exit $ac_status); } && 5121 { ac_try='test -z "$ac_c_werror_flag" 5122 || test ! -s conftest.err' 5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5124 (eval $ac_try) 2>&5 5125 ac_status=$? 5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5127 (exit $ac_status); }; } && 5128 { ac_try='test -s conftest.$ac_objext' 5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5130 (eval $ac_try) 2>&5 5131 ac_status=$? 5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5133 (exit $ac_status); }; }; then 5134 ac_header_compiler=yes 5135else 5136 echo "$as_me: failed program was:" >&5 5137sed 's/^/| /' conftest.$ac_ext >&5 5138 5139ac_header_compiler=no 5140fi 5141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5142echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5143echo "${ECHO_T}$ac_header_compiler" >&6 5144 5145# Is the header present? 5146echo "$as_me:$LINENO: checking limits.h presence" >&5 5147echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6 5148cat >conftest.$ac_ext <<_ACEOF 5149/* confdefs.h. */ 5150_ACEOF 5151cat confdefs.h >>conftest.$ac_ext 5152cat >>conftest.$ac_ext <<_ACEOF 5153/* end confdefs.h. */ 5154#include <limits.h> 5155_ACEOF 5156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5158 ac_status=$? 5159 grep -v '^ *+' conftest.er1 >conftest.err 5160 rm -f conftest.er1 5161 cat conftest.err >&5 5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5163 (exit $ac_status); } >/dev/null; then 5164 if test -s conftest.err; then 5165 ac_cpp_err=$ac_c_preproc_warn_flag 5166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5167 else 5168 ac_cpp_err= 5169 fi 5170else 5171 ac_cpp_err=yes 5172fi 5173if test -z "$ac_cpp_err"; then 5174 ac_header_preproc=yes 5175else 5176 echo "$as_me: failed program was:" >&5 5177sed 's/^/| /' conftest.$ac_ext >&5 5178 5179 ac_header_preproc=no 5180fi 5181rm -f conftest.err conftest.$ac_ext 5182echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5183echo "${ECHO_T}$ac_header_preproc" >&6 5184 5185# So? What about this header? 5186case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5187 yes:no: ) 5188 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5189echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5190 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5191echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5192 ac_header_preproc=yes 5193 ;; 5194 no:yes:* ) 5195 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5196echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5197 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5198echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5199 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5200echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5201 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5202echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5203 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5204echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5205 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5206echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5207 ( 5208 cat <<\_ASBOX 5209## ------------------------------ ## 5210## Report this to the vfs lists. ## 5211## ------------------------------ ## 5212_ASBOX 5213 ) | 5214 sed "s/^/$as_me: WARNING: /" >&2 5215 ;; 5216esac 5217echo "$as_me:$LINENO: checking for limits.h" >&5 5218echo $ECHO_N "checking for limits.h... $ECHO_C" >&6 5219if test "${ac_cv_header_limits_h+set}" = set; then 5220 echo $ECHO_N "(cached) $ECHO_C" >&6 5221else 5222 ac_cv_header_limits_h=$ac_header_preproc 5223fi 5224echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5225echo "${ECHO_T}$ac_cv_header_limits_h" >&6 5226 5227fi 5228if test $ac_cv_header_limits_h = yes; then 5229 5230cat >>confdefs.h <<\_ACEOF 5231#define HAVE_LIMITS_H 1 5232_ACEOF 5233 5234else 5235 5236cat >>confdefs.h <<\_ACEOF 5237#define NO_LIMITS_H 1 5238_ACEOF 5239 5240fi 5241 5242 5243 if test "${ac_cv_header_stdlib_h+set}" = set; then 5244 echo "$as_me:$LINENO: checking for stdlib.h" >&5 5245echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 5246if test "${ac_cv_header_stdlib_h+set}" = set; then 5247 echo $ECHO_N "(cached) $ECHO_C" >&6 5248fi 5249echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5250echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 5251else 5252 # Is the header compilable? 5253echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5254echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6 5255cat >conftest.$ac_ext <<_ACEOF 5256/* confdefs.h. */ 5257_ACEOF 5258cat confdefs.h >>conftest.$ac_ext 5259cat >>conftest.$ac_ext <<_ACEOF 5260/* end confdefs.h. */ 5261$ac_includes_default 5262#include <stdlib.h> 5263_ACEOF 5264rm -f conftest.$ac_objext 5265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5266 (eval $ac_compile) 2>conftest.er1 5267 ac_status=$? 5268 grep -v '^ *+' conftest.er1 >conftest.err 5269 rm -f conftest.er1 5270 cat conftest.err >&5 5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5272 (exit $ac_status); } && 5273 { ac_try='test -z "$ac_c_werror_flag" 5274 || test ! -s conftest.err' 5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5276 (eval $ac_try) 2>&5 5277 ac_status=$? 5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5279 (exit $ac_status); }; } && 5280 { ac_try='test -s conftest.$ac_objext' 5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5282 (eval $ac_try) 2>&5 5283 ac_status=$? 5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5285 (exit $ac_status); }; }; then 5286 ac_header_compiler=yes 5287else 5288 echo "$as_me: failed program was:" >&5 5289sed 's/^/| /' conftest.$ac_ext >&5 5290 5291ac_header_compiler=no 5292fi 5293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5294echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5295echo "${ECHO_T}$ac_header_compiler" >&6 5296 5297# Is the header present? 5298echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5299echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6 5300cat >conftest.$ac_ext <<_ACEOF 5301/* confdefs.h. */ 5302_ACEOF 5303cat confdefs.h >>conftest.$ac_ext 5304cat >>conftest.$ac_ext <<_ACEOF 5305/* end confdefs.h. */ 5306#include <stdlib.h> 5307_ACEOF 5308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5310 ac_status=$? 5311 grep -v '^ *+' conftest.er1 >conftest.err 5312 rm -f conftest.er1 5313 cat conftest.err >&5 5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5315 (exit $ac_status); } >/dev/null; then 5316 if test -s conftest.err; then 5317 ac_cpp_err=$ac_c_preproc_warn_flag 5318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5319 else 5320 ac_cpp_err= 5321 fi 5322else 5323 ac_cpp_err=yes 5324fi 5325if test -z "$ac_cpp_err"; then 5326 ac_header_preproc=yes 5327else 5328 echo "$as_me: failed program was:" >&5 5329sed 's/^/| /' conftest.$ac_ext >&5 5330 5331 ac_header_preproc=no 5332fi 5333rm -f conftest.err conftest.$ac_ext 5334echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5335echo "${ECHO_T}$ac_header_preproc" >&6 5336 5337# So? What about this header? 5338case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5339 yes:no: ) 5340 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5341echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5342 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5343echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5344 ac_header_preproc=yes 5345 ;; 5346 no:yes:* ) 5347 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5348echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5349 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5350echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5351 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5352echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5353 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5354echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5355 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5356echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5357 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5358echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5359 ( 5360 cat <<\_ASBOX 5361## ------------------------------ ## 5362## Report this to the vfs lists. ## 5363## ------------------------------ ## 5364_ASBOX 5365 ) | 5366 sed "s/^/$as_me: WARNING: /" >&2 5367 ;; 5368esac 5369echo "$as_me:$LINENO: checking for stdlib.h" >&5 5370echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 5371if test "${ac_cv_header_stdlib_h+set}" = set; then 5372 echo $ECHO_N "(cached) $ECHO_C" >&6 5373else 5374 ac_cv_header_stdlib_h=$ac_header_preproc 5375fi 5376echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5377echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 5378 5379fi 5380if test $ac_cv_header_stdlib_h = yes; then 5381 tcl_ok=1 5382else 5383 tcl_ok=0 5384fi 5385 5386 5387 cat >conftest.$ac_ext <<_ACEOF 5388/* confdefs.h. */ 5389_ACEOF 5390cat confdefs.h >>conftest.$ac_ext 5391cat >>conftest.$ac_ext <<_ACEOF 5392/* end confdefs.h. */ 5393#include <stdlib.h> 5394 5395_ACEOF 5396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5397 $EGREP "strtol" >/dev/null 2>&1; then 5398 : 5399else 5400 tcl_ok=0 5401fi 5402rm -f conftest* 5403 5404 cat >conftest.$ac_ext <<_ACEOF 5405/* confdefs.h. */ 5406_ACEOF 5407cat confdefs.h >>conftest.$ac_ext 5408cat >>conftest.$ac_ext <<_ACEOF 5409/* end confdefs.h. */ 5410#include <stdlib.h> 5411 5412_ACEOF 5413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5414 $EGREP "strtoul" >/dev/null 2>&1; then 5415 : 5416else 5417 tcl_ok=0 5418fi 5419rm -f conftest* 5420 5421 cat >conftest.$ac_ext <<_ACEOF 5422/* confdefs.h. */ 5423_ACEOF 5424cat confdefs.h >>conftest.$ac_ext 5425cat >>conftest.$ac_ext <<_ACEOF 5426/* end confdefs.h. */ 5427#include <stdlib.h> 5428 5429_ACEOF 5430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5431 $EGREP "strtod" >/dev/null 2>&1; then 5432 : 5433else 5434 tcl_ok=0 5435fi 5436rm -f conftest* 5437 5438 if test $tcl_ok = 0; then 5439 5440cat >>confdefs.h <<\_ACEOF 5441#define NO_STDLIB_H 1 5442_ACEOF 5443 5444 fi 5445 if test "${ac_cv_header_string_h+set}" = set; then 5446 echo "$as_me:$LINENO: checking for string.h" >&5 5447echo $ECHO_N "checking for string.h... $ECHO_C" >&6 5448if test "${ac_cv_header_string_h+set}" = set; then 5449 echo $ECHO_N "(cached) $ECHO_C" >&6 5450fi 5451echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 5452echo "${ECHO_T}$ac_cv_header_string_h" >&6 5453else 5454 # Is the header compilable? 5455echo "$as_me:$LINENO: checking string.h usability" >&5 5456echo $ECHO_N "checking string.h usability... $ECHO_C" >&6 5457cat >conftest.$ac_ext <<_ACEOF 5458/* confdefs.h. */ 5459_ACEOF 5460cat confdefs.h >>conftest.$ac_ext 5461cat >>conftest.$ac_ext <<_ACEOF 5462/* end confdefs.h. */ 5463$ac_includes_default 5464#include <string.h> 5465_ACEOF 5466rm -f conftest.$ac_objext 5467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5468 (eval $ac_compile) 2>conftest.er1 5469 ac_status=$? 5470 grep -v '^ *+' conftest.er1 >conftest.err 5471 rm -f conftest.er1 5472 cat conftest.err >&5 5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5474 (exit $ac_status); } && 5475 { ac_try='test -z "$ac_c_werror_flag" 5476 || test ! -s conftest.err' 5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5478 (eval $ac_try) 2>&5 5479 ac_status=$? 5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5481 (exit $ac_status); }; } && 5482 { ac_try='test -s conftest.$ac_objext' 5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5484 (eval $ac_try) 2>&5 5485 ac_status=$? 5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5487 (exit $ac_status); }; }; then 5488 ac_header_compiler=yes 5489else 5490 echo "$as_me: failed program was:" >&5 5491sed 's/^/| /' conftest.$ac_ext >&5 5492 5493ac_header_compiler=no 5494fi 5495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5496echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5497echo "${ECHO_T}$ac_header_compiler" >&6 5498 5499# Is the header present? 5500echo "$as_me:$LINENO: checking string.h presence" >&5 5501echo $ECHO_N "checking string.h presence... $ECHO_C" >&6 5502cat >conftest.$ac_ext <<_ACEOF 5503/* confdefs.h. */ 5504_ACEOF 5505cat confdefs.h >>conftest.$ac_ext 5506cat >>conftest.$ac_ext <<_ACEOF 5507/* end confdefs.h. */ 5508#include <string.h> 5509_ACEOF 5510if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5512 ac_status=$? 5513 grep -v '^ *+' conftest.er1 >conftest.err 5514 rm -f conftest.er1 5515 cat conftest.err >&5 5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5517 (exit $ac_status); } >/dev/null; then 5518 if test -s conftest.err; then 5519 ac_cpp_err=$ac_c_preproc_warn_flag 5520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5521 else 5522 ac_cpp_err= 5523 fi 5524else 5525 ac_cpp_err=yes 5526fi 5527if test -z "$ac_cpp_err"; then 5528 ac_header_preproc=yes 5529else 5530 echo "$as_me: failed program was:" >&5 5531sed 's/^/| /' conftest.$ac_ext >&5 5532 5533 ac_header_preproc=no 5534fi 5535rm -f conftest.err conftest.$ac_ext 5536echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5537echo "${ECHO_T}$ac_header_preproc" >&6 5538 5539# So? What about this header? 5540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5541 yes:no: ) 5542 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 5543echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5544 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 5545echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 5546 ac_header_preproc=yes 5547 ;; 5548 no:yes:* ) 5549 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 5550echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 5551 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 5552echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 5553 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 5554echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 5555 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 5556echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 5557 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 5558echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 5559 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 5560echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 5561 ( 5562 cat <<\_ASBOX 5563## ------------------------------ ## 5564## Report this to the vfs lists. ## 5565## ------------------------------ ## 5566_ASBOX 5567 ) | 5568 sed "s/^/$as_me: WARNING: /" >&2 5569 ;; 5570esac 5571echo "$as_me:$LINENO: checking for string.h" >&5 5572echo $ECHO_N "checking for string.h... $ECHO_C" >&6 5573if test "${ac_cv_header_string_h+set}" = set; then 5574 echo $ECHO_N "(cached) $ECHO_C" >&6 5575else 5576 ac_cv_header_string_h=$ac_header_preproc 5577fi 5578echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 5579echo "${ECHO_T}$ac_cv_header_string_h" >&6 5580 5581fi 5582if test $ac_cv_header_string_h = yes; then 5583 tcl_ok=1 5584else 5585 tcl_ok=0 5586fi 5587 5588 5589 cat >conftest.$ac_ext <<_ACEOF 5590/* confdefs.h. */ 5591_ACEOF 5592cat confdefs.h >>conftest.$ac_ext 5593cat >>conftest.$ac_ext <<_ACEOF 5594/* end confdefs.h. */ 5595#include <string.h> 5596 5597_ACEOF 5598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5599 $EGREP "strstr" >/dev/null 2>&1; then 5600 : 5601else 5602 tcl_ok=0 5603fi 5604rm -f conftest* 5605 5606 cat >conftest.$ac_ext <<_ACEOF 5607/* confdefs.h. */ 5608_ACEOF 5609cat confdefs.h >>conftest.$ac_ext 5610cat >>conftest.$ac_ext <<_ACEOF 5611/* end confdefs.h. */ 5612#include <string.h> 5613 5614_ACEOF 5615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5616 $EGREP "strerror" >/dev/null 2>&1; then 5617 : 5618else 5619 tcl_ok=0 5620fi 5621rm -f conftest* 5622 5623 5624 # See also memmove check below for a place where NO_STRING_H can be 5625 # set and why. 5626 5627 if test $tcl_ok = 0; then 5628 5629cat >>confdefs.h <<\_ACEOF 5630#define NO_STRING_H 1 5631_ACEOF 5632 5633 fi 5634 5635 if test "${ac_cv_header_sys_wait_h+set}" = set; then 5636 echo "$as_me:$LINENO: checking for sys/wait.h" >&5 5637echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6 5638if test "${ac_cv_header_sys_wait_h+set}" = set; then 5639 echo $ECHO_N "(cached) $ECHO_C" >&6 5640fi 5641echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 5642echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 5643else 5644 # Is the header compilable? 5645echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 5646echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6 5647cat >conftest.$ac_ext <<_ACEOF 5648/* confdefs.h. */ 5649_ACEOF 5650cat confdefs.h >>conftest.$ac_ext 5651cat >>conftest.$ac_ext <<_ACEOF 5652/* end confdefs.h. */ 5653$ac_includes_default 5654#include <sys/wait.h> 5655_ACEOF 5656rm -f conftest.$ac_objext 5657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5658 (eval $ac_compile) 2>conftest.er1 5659 ac_status=$? 5660 grep -v '^ *+' conftest.er1 >conftest.err 5661 rm -f conftest.er1 5662 cat conftest.err >&5 5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5664 (exit $ac_status); } && 5665 { ac_try='test -z "$ac_c_werror_flag" 5666 || test ! -s conftest.err' 5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5668 (eval $ac_try) 2>&5 5669 ac_status=$? 5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5671 (exit $ac_status); }; } && 5672 { ac_try='test -s conftest.$ac_objext' 5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5674 (eval $ac_try) 2>&5 5675 ac_status=$? 5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5677 (exit $ac_status); }; }; then 5678 ac_header_compiler=yes 5679else 5680 echo "$as_me: failed program was:" >&5 5681sed 's/^/| /' conftest.$ac_ext >&5 5682 5683ac_header_compiler=no 5684fi 5685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5686echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5687echo "${ECHO_T}$ac_header_compiler" >&6 5688 5689# Is the header present? 5690echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 5691echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6 5692cat >conftest.$ac_ext <<_ACEOF 5693/* confdefs.h. */ 5694_ACEOF 5695cat confdefs.h >>conftest.$ac_ext 5696cat >>conftest.$ac_ext <<_ACEOF 5697/* end confdefs.h. */ 5698#include <sys/wait.h> 5699_ACEOF 5700if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5702 ac_status=$? 5703 grep -v '^ *+' conftest.er1 >conftest.err 5704 rm -f conftest.er1 5705 cat conftest.err >&5 5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5707 (exit $ac_status); } >/dev/null; then 5708 if test -s conftest.err; then 5709 ac_cpp_err=$ac_c_preproc_warn_flag 5710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5711 else 5712 ac_cpp_err= 5713 fi 5714else 5715 ac_cpp_err=yes 5716fi 5717if test -z "$ac_cpp_err"; then 5718 ac_header_preproc=yes 5719else 5720 echo "$as_me: failed program was:" >&5 5721sed 's/^/| /' conftest.$ac_ext >&5 5722 5723 ac_header_preproc=no 5724fi 5725rm -f conftest.err conftest.$ac_ext 5726echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5727echo "${ECHO_T}$ac_header_preproc" >&6 5728 5729# So? What about this header? 5730case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5731 yes:no: ) 5732 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 5733echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5734 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 5735echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 5736 ac_header_preproc=yes 5737 ;; 5738 no:yes:* ) 5739 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 5740echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 5741 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 5742echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 5743 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 5744echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 5745 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 5746echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 5747 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 5748echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 5749 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 5750echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 5751 ( 5752 cat <<\_ASBOX 5753## ------------------------------ ## 5754## Report this to the vfs lists. ## 5755## ------------------------------ ## 5756_ASBOX 5757 ) | 5758 sed "s/^/$as_me: WARNING: /" >&2 5759 ;; 5760esac 5761echo "$as_me:$LINENO: checking for sys/wait.h" >&5 5762echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6 5763if test "${ac_cv_header_sys_wait_h+set}" = set; then 5764 echo $ECHO_N "(cached) $ECHO_C" >&6 5765else 5766 ac_cv_header_sys_wait_h=$ac_header_preproc 5767fi 5768echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 5769echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 5770 5771fi 5772if test $ac_cv_header_sys_wait_h = yes; then 5773 : 5774else 5775 5776cat >>confdefs.h <<\_ACEOF 5777#define NO_SYS_WAIT_H 1 5778_ACEOF 5779 5780fi 5781 5782 5783 if test "${ac_cv_header_dlfcn_h+set}" = set; then 5784 echo "$as_me:$LINENO: checking for dlfcn.h" >&5 5785echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 5786if test "${ac_cv_header_dlfcn_h+set}" = set; then 5787 echo $ECHO_N "(cached) $ECHO_C" >&6 5788fi 5789echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 5790echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 5791else 5792 # Is the header compilable? 5793echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 5794echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6 5795cat >conftest.$ac_ext <<_ACEOF 5796/* confdefs.h. */ 5797_ACEOF 5798cat confdefs.h >>conftest.$ac_ext 5799cat >>conftest.$ac_ext <<_ACEOF 5800/* end confdefs.h. */ 5801$ac_includes_default 5802#include <dlfcn.h> 5803_ACEOF 5804rm -f conftest.$ac_objext 5805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5806 (eval $ac_compile) 2>conftest.er1 5807 ac_status=$? 5808 grep -v '^ *+' conftest.er1 >conftest.err 5809 rm -f conftest.er1 5810 cat conftest.err >&5 5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5812 (exit $ac_status); } && 5813 { ac_try='test -z "$ac_c_werror_flag" 5814 || test ! -s conftest.err' 5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5816 (eval $ac_try) 2>&5 5817 ac_status=$? 5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5819 (exit $ac_status); }; } && 5820 { ac_try='test -s conftest.$ac_objext' 5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5822 (eval $ac_try) 2>&5 5823 ac_status=$? 5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5825 (exit $ac_status); }; }; then 5826 ac_header_compiler=yes 5827else 5828 echo "$as_me: failed program was:" >&5 5829sed 's/^/| /' conftest.$ac_ext >&5 5830 5831ac_header_compiler=no 5832fi 5833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5834echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5835echo "${ECHO_T}$ac_header_compiler" >&6 5836 5837# Is the header present? 5838echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 5839echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6 5840cat >conftest.$ac_ext <<_ACEOF 5841/* confdefs.h. */ 5842_ACEOF 5843cat confdefs.h >>conftest.$ac_ext 5844cat >>conftest.$ac_ext <<_ACEOF 5845/* end confdefs.h. */ 5846#include <dlfcn.h> 5847_ACEOF 5848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5850 ac_status=$? 5851 grep -v '^ *+' conftest.er1 >conftest.err 5852 rm -f conftest.er1 5853 cat conftest.err >&5 5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5855 (exit $ac_status); } >/dev/null; then 5856 if test -s conftest.err; then 5857 ac_cpp_err=$ac_c_preproc_warn_flag 5858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5859 else 5860 ac_cpp_err= 5861 fi 5862else 5863 ac_cpp_err=yes 5864fi 5865if test -z "$ac_cpp_err"; then 5866 ac_header_preproc=yes 5867else 5868 echo "$as_me: failed program was:" >&5 5869sed 's/^/| /' conftest.$ac_ext >&5 5870 5871 ac_header_preproc=no 5872fi 5873rm -f conftest.err conftest.$ac_ext 5874echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5875echo "${ECHO_T}$ac_header_preproc" >&6 5876 5877# So? What about this header? 5878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5879 yes:no: ) 5880 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 5881echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5882 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 5883echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 5884 ac_header_preproc=yes 5885 ;; 5886 no:yes:* ) 5887 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 5888echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 5889 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 5890echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 5891 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 5892echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 5893 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 5894echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 5895 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 5896echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 5897 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 5898echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 5899 ( 5900 cat <<\_ASBOX 5901## ------------------------------ ## 5902## Report this to the vfs lists. ## 5903## ------------------------------ ## 5904_ASBOX 5905 ) | 5906 sed "s/^/$as_me: WARNING: /" >&2 5907 ;; 5908esac 5909echo "$as_me:$LINENO: checking for dlfcn.h" >&5 5910echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 5911if test "${ac_cv_header_dlfcn_h+set}" = set; then 5912 echo $ECHO_N "(cached) $ECHO_C" >&6 5913else 5914 ac_cv_header_dlfcn_h=$ac_header_preproc 5915fi 5916echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 5917echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 5918 5919fi 5920if test $ac_cv_header_dlfcn_h = yes; then 5921 : 5922else 5923 5924cat >>confdefs.h <<\_ACEOF 5925#define NO_DLFCN_H 1 5926_ACEOF 5927 5928fi 5929 5930 5931 5932 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 5933 5934for ac_header in sys/param.h 5935do 5936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5937if eval "test \"\${$as_ac_Header+set}\" = set"; then 5938 echo "$as_me:$LINENO: checking for $ac_header" >&5 5939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5940if eval "test \"\${$as_ac_Header+set}\" = set"; then 5941 echo $ECHO_N "(cached) $ECHO_C" >&6 5942fi 5943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5945else 5946 # Is the header compilable? 5947echo "$as_me:$LINENO: checking $ac_header usability" >&5 5948echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5949cat >conftest.$ac_ext <<_ACEOF 5950/* confdefs.h. */ 5951_ACEOF 5952cat confdefs.h >>conftest.$ac_ext 5953cat >>conftest.$ac_ext <<_ACEOF 5954/* end confdefs.h. */ 5955$ac_includes_default 5956#include <$ac_header> 5957_ACEOF 5958rm -f conftest.$ac_objext 5959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5960 (eval $ac_compile) 2>conftest.er1 5961 ac_status=$? 5962 grep -v '^ *+' conftest.er1 >conftest.err 5963 rm -f conftest.er1 5964 cat conftest.err >&5 5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5966 (exit $ac_status); } && 5967 { ac_try='test -z "$ac_c_werror_flag" 5968 || test ! -s conftest.err' 5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5970 (eval $ac_try) 2>&5 5971 ac_status=$? 5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5973 (exit $ac_status); }; } && 5974 { ac_try='test -s conftest.$ac_objext' 5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5976 (eval $ac_try) 2>&5 5977 ac_status=$? 5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5979 (exit $ac_status); }; }; then 5980 ac_header_compiler=yes 5981else 5982 echo "$as_me: failed program was:" >&5 5983sed 's/^/| /' conftest.$ac_ext >&5 5984 5985ac_header_compiler=no 5986fi 5987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5988echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5989echo "${ECHO_T}$ac_header_compiler" >&6 5990 5991# Is the header present? 5992echo "$as_me:$LINENO: checking $ac_header presence" >&5 5993echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5994cat >conftest.$ac_ext <<_ACEOF 5995/* confdefs.h. */ 5996_ACEOF 5997cat confdefs.h >>conftest.$ac_ext 5998cat >>conftest.$ac_ext <<_ACEOF 5999/* end confdefs.h. */ 6000#include <$ac_header> 6001_ACEOF 6002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6004 ac_status=$? 6005 grep -v '^ *+' conftest.er1 >conftest.err 6006 rm -f conftest.er1 6007 cat conftest.err >&5 6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6009 (exit $ac_status); } >/dev/null; then 6010 if test -s conftest.err; then 6011 ac_cpp_err=$ac_c_preproc_warn_flag 6012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6013 else 6014 ac_cpp_err= 6015 fi 6016else 6017 ac_cpp_err=yes 6018fi 6019if test -z "$ac_cpp_err"; then 6020 ac_header_preproc=yes 6021else 6022 echo "$as_me: failed program was:" >&5 6023sed 's/^/| /' conftest.$ac_ext >&5 6024 6025 ac_header_preproc=no 6026fi 6027rm -f conftest.err conftest.$ac_ext 6028echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6029echo "${ECHO_T}$ac_header_preproc" >&6 6030 6031# So? What about this header? 6032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6033 yes:no: ) 6034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6035echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6037echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6038 ac_header_preproc=yes 6039 ;; 6040 no:yes:* ) 6041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6042echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6044echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6046echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6048echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6050echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6052echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6053 ( 6054 cat <<\_ASBOX 6055## ------------------------------ ## 6056## Report this to the vfs lists. ## 6057## ------------------------------ ## 6058_ASBOX 6059 ) | 6060 sed "s/^/$as_me: WARNING: /" >&2 6061 ;; 6062esac 6063echo "$as_me:$LINENO: checking for $ac_header" >&5 6064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6065if eval "test \"\${$as_ac_Header+set}\" = set"; then 6066 echo $ECHO_N "(cached) $ECHO_C" >&6 6067else 6068 eval "$as_ac_Header=\$ac_header_preproc" 6069fi 6070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6072 6073fi 6074if test `eval echo '${'$as_ac_Header'}'` = yes; then 6075 cat >>confdefs.h <<_ACEOF 6076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6077_ACEOF 6078 6079fi 6080 6081done 6082 6083 6084 # Let the user call this, because if it triggers, they will 6085 # need a compat/strtod.c that is correct. Users can also 6086 # use Tcl_GetDouble(FromObj) instead. 6087 #TEA_BUGGY_STRTOD 6088 fi 6089 6090 6091 6092 vars="vfs.c" 6093 for i in $vars; do 6094 case $i in 6095 \$*) 6096 # allow $-var names 6097 PKG_SOURCES="$PKG_SOURCES $i" 6098 PKG_OBJECTS="$PKG_OBJECTS $i" 6099 ;; 6100 *) 6101 # check for existence - allows for generic/win/unix VPATH 6102 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6103 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6104 ; then 6105 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6106echo "$as_me: error: could not find source file '$i'" >&2;} 6107 { (exit 1); exit 1; }; } 6108 fi 6109 PKG_SOURCES="$PKG_SOURCES $i" 6110 # this assumes it is in a VPATH dir 6111 i=`basename $i` 6112 # handle user calling this before or after TEA_SETUP_COMPILER 6113 if test x"${OBJEXT}" != x ; then 6114 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6115 else 6116 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6117 fi 6118 PKG_OBJECTS="$PKG_OBJECTS $j" 6119 ;; 6120 esac 6121 done 6122 6123 6124 6125 6126 vars="" 6127 for i in $vars; do 6128 # check for existence, be strict because it is installed 6129 if test ! -f "${srcdir}/$i" ; then 6130 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6131echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6132 { (exit 1); exit 1; }; } 6133 fi 6134 PKG_HEADERS="$PKG_HEADERS $i" 6135 done 6136 6137 6138 6139 vars="-I\"$(${CYGPATH} ${TCL_SRC_DIR}/generic)\"" 6140 for i in $vars; do 6141 PKG_INCLUDES="$PKG_INCLUDES $i" 6142 done 6143 6144 6145 6146 vars="" 6147 for i in $vars; do 6148 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6149 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6150 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6151 fi 6152 PKG_LIBS="$PKG_LIBS $i" 6153 done 6154 6155 6156 6157 PKG_CFLAGS="$PKG_CFLAGS " 6158 6159 6160 6161 vars="" 6162 for i in $vars; do 6163 # check for existence - allows for generic/win/unix VPATH 6164 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6165 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6166 ; then 6167 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6168echo "$as_me: error: could not find stub source file '$i'" >&2;} 6169 { (exit 1); exit 1; }; } 6170 fi 6171 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6172 # this assumes it is in a VPATH dir 6173 i=`basename $i` 6174 # handle user calling this before or after TEA_SETUP_COMPILER 6175 if test x"${OBJEXT}" != x ; then 6176 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6177 else 6178 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6179 fi 6180 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6181 done 6182 6183 6184 6185 6186 vars="" 6187 for i in $vars; do 6188 # check for existence, be strict because it is installed 6189 if test ! -f "${srcdir}/$i" ; then 6190 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6191echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6192 { (exit 1); exit 1; }; } 6193 fi 6194 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6195 done 6196 6197 6198 6199#TEA_PUBLIC_TCL_HEADERS 6200 6201 echo "$as_me:$LINENO: checking for Tcl private include files" >&5 6202echo $ECHO_N "checking for Tcl private include files... $ECHO_C" >&6 6203 6204 TCL_SRC_DIR_NATIVE=`${CYGPATH} ${TCL_SRC_DIR}` 6205 TCL_TOP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}\" 6206 TCL_GENERIC_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/generic\" 6207 TCL_UNIX_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/unix\" 6208 TCL_WIN_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/win\" 6209 TCL_BMAP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/bitmaps\" 6210 TCL_TOOL_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/tools\" 6211 TCL_COMPAT_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/compat\" 6212 6213 if test "${TEA_PLATFORM}" = "windows"; then 6214 TCL_PLATFORM_DIR_NATIVE=${TCL_WIN_DIR_NATIVE} 6215 else 6216 TCL_PLATFORM_DIR_NATIVE=${TCL_UNIX_DIR_NATIVE} 6217 fi 6218 # We want to ensure these are substituted so as not to require 6219 # any *_NATIVE vars be defined in the Makefile 6220 TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}" 6221 if test "`uname -s`" = "Darwin"; then 6222 # If Tcl was built as a framework, attempt to use 6223 # the framework's Headers and PrivateHeaders directories 6224 case ${TCL_DEFS} in 6225 *TCL_FRAMEWORK*) 6226 if test -d "${TCL_BIN_DIR}/Headers" -a -d "${TCL_BIN_DIR}/PrivateHeaders"; then 6227 TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}"; else 6228 TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`"; fi 6229 ;; 6230 esac 6231 fi 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 echo "$as_me:$LINENO: result: Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" >&5 6243echo "${ECHO_T}Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" >&6 6244 6245 6246#-------------------------------------------------------------------- 6247# A few miscellaneous platform-specific items: 6248# 6249# Define a special symbol for Windows (BUILD_VFS in this case) so 6250# that we create the export library with the dll. See sha1.h on how 6251# to use this. 6252# 6253# Windows creates a few extra files that need to be cleaned up. 6254# You can add more files to clean if your extension creates any extra 6255# files. 6256# 6257# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 6258# These will be appended to the current set of compiler flags for 6259# your system. 6260#-------------------------------------------------------------------- 6261 6262if test "${TEA_PLATFORM}" = "windows" ; then 6263 cat >>confdefs.h <<\_ACEOF 6264#define BUILD_vfs 1 6265_ACEOF 6266 6267 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" 6268else 6269 CLEANFILES="pkgIndex.tcl" 6270fi 6271 6272 6273 6274 # Check whether --enable-threads or --disable-threads was given. 6275if test "${enable_threads+set}" = set; then 6276 enableval="$enable_threads" 6277 tcl_ok=$enableval 6278else 6279 tcl_ok=yes 6280fi; 6281 6282 if test "${enable_threads+set}" = set; then 6283 enableval="$enable_threads" 6284 tcl_ok=$enableval 6285 else 6286 tcl_ok=yes 6287 fi 6288 6289 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 6290 TCL_THREADS=1 6291 6292 if test "${TEA_PLATFORM}" != "windows" ; then 6293 # We are always OK on Windows, so check what this platform wants: 6294 6295 # USE_THREAD_ALLOC tells us to try the special thread-based 6296 # allocator that significantly reduces lock contention 6297 6298cat >>confdefs.h <<\_ACEOF 6299#define USE_THREAD_ALLOC 1 6300_ACEOF 6301 6302 6303cat >>confdefs.h <<\_ACEOF 6304#define _REENTRANT 1 6305_ACEOF 6306 6307 if test "`uname -s`" = "SunOS" ; then 6308 6309cat >>confdefs.h <<\_ACEOF 6310#define _POSIX_PTHREAD_SEMANTICS 1 6311_ACEOF 6312 6313 fi 6314 6315cat >>confdefs.h <<\_ACEOF 6316#define _THREAD_SAFE 1 6317_ACEOF 6318 6319 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 6320echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6 6321if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 6322 echo $ECHO_N "(cached) $ECHO_C" >&6 6323else 6324 ac_check_lib_save_LIBS=$LIBS 6325LIBS="-lpthread $LIBS" 6326cat >conftest.$ac_ext <<_ACEOF 6327/* confdefs.h. */ 6328_ACEOF 6329cat confdefs.h >>conftest.$ac_ext 6330cat >>conftest.$ac_ext <<_ACEOF 6331/* end confdefs.h. */ 6332 6333/* Override any gcc2 internal prototype to avoid an error. */ 6334#ifdef __cplusplus 6335extern "C" 6336#endif 6337/* We use char because int might match the return type of a gcc2 6338 builtin and then its argument prototype would still apply. */ 6339char pthread_mutex_init (); 6340int 6341main () 6342{ 6343pthread_mutex_init (); 6344 ; 6345 return 0; 6346} 6347_ACEOF 6348rm -f conftest.$ac_objext conftest$ac_exeext 6349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6350 (eval $ac_link) 2>conftest.er1 6351 ac_status=$? 6352 grep -v '^ *+' conftest.er1 >conftest.err 6353 rm -f conftest.er1 6354 cat conftest.err >&5 6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6356 (exit $ac_status); } && 6357 { ac_try='test -z "$ac_c_werror_flag" 6358 || test ! -s conftest.err' 6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6360 (eval $ac_try) 2>&5 6361 ac_status=$? 6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6363 (exit $ac_status); }; } && 6364 { ac_try='test -s conftest$ac_exeext' 6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6366 (eval $ac_try) 2>&5 6367 ac_status=$? 6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6369 (exit $ac_status); }; }; then 6370 ac_cv_lib_pthread_pthread_mutex_init=yes 6371else 6372 echo "$as_me: failed program was:" >&5 6373sed 's/^/| /' conftest.$ac_ext >&5 6374 6375ac_cv_lib_pthread_pthread_mutex_init=no 6376fi 6377rm -f conftest.err conftest.$ac_objext \ 6378 conftest$ac_exeext conftest.$ac_ext 6379LIBS=$ac_check_lib_save_LIBS 6380fi 6381echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 6382echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6 6383if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 6384 tcl_ok=yes 6385else 6386 tcl_ok=no 6387fi 6388 6389 if test "$tcl_ok" = "no"; then 6390 # Check a little harder for __pthread_mutex_init in the same 6391 # library, as some systems hide it there until pthread.h is 6392 # defined. We could alternatively do an AC_TRY_COMPILE with 6393 # pthread.h, but that will work with libpthread really doesn't 6394 # exist, like AIX 4.2. [Bug: 4359] 6395 echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 6396echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6 6397if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 6398 echo $ECHO_N "(cached) $ECHO_C" >&6 6399else 6400 ac_check_lib_save_LIBS=$LIBS 6401LIBS="-lpthread $LIBS" 6402cat >conftest.$ac_ext <<_ACEOF 6403/* confdefs.h. */ 6404_ACEOF 6405cat confdefs.h >>conftest.$ac_ext 6406cat >>conftest.$ac_ext <<_ACEOF 6407/* end confdefs.h. */ 6408 6409/* Override any gcc2 internal prototype to avoid an error. */ 6410#ifdef __cplusplus 6411extern "C" 6412#endif 6413/* We use char because int might match the return type of a gcc2 6414 builtin and then its argument prototype would still apply. */ 6415char __pthread_mutex_init (); 6416int 6417main () 6418{ 6419__pthread_mutex_init (); 6420 ; 6421 return 0; 6422} 6423_ACEOF 6424rm -f conftest.$ac_objext conftest$ac_exeext 6425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6426 (eval $ac_link) 2>conftest.er1 6427 ac_status=$? 6428 grep -v '^ *+' conftest.er1 >conftest.err 6429 rm -f conftest.er1 6430 cat conftest.err >&5 6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6432 (exit $ac_status); } && 6433 { ac_try='test -z "$ac_c_werror_flag" 6434 || test ! -s conftest.err' 6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6436 (eval $ac_try) 2>&5 6437 ac_status=$? 6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6439 (exit $ac_status); }; } && 6440 { ac_try='test -s conftest$ac_exeext' 6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6442 (eval $ac_try) 2>&5 6443 ac_status=$? 6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6445 (exit $ac_status); }; }; then 6446 ac_cv_lib_pthread___pthread_mutex_init=yes 6447else 6448 echo "$as_me: failed program was:" >&5 6449sed 's/^/| /' conftest.$ac_ext >&5 6450 6451ac_cv_lib_pthread___pthread_mutex_init=no 6452fi 6453rm -f conftest.err conftest.$ac_objext \ 6454 conftest$ac_exeext conftest.$ac_ext 6455LIBS=$ac_check_lib_save_LIBS 6456fi 6457echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 6458echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6 6459if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 6460 tcl_ok=yes 6461else 6462 tcl_ok=no 6463fi 6464 6465 fi 6466 6467 if test "$tcl_ok" = "yes"; then 6468 # The space is needed 6469 THREADS_LIBS=" -lpthread" 6470 else 6471 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 6472echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6 6473if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 6474 echo $ECHO_N "(cached) $ECHO_C" >&6 6475else 6476 ac_check_lib_save_LIBS=$LIBS 6477LIBS="-lpthreads $LIBS" 6478cat >conftest.$ac_ext <<_ACEOF 6479/* confdefs.h. */ 6480_ACEOF 6481cat confdefs.h >>conftest.$ac_ext 6482cat >>conftest.$ac_ext <<_ACEOF 6483/* end confdefs.h. */ 6484 6485/* Override any gcc2 internal prototype to avoid an error. */ 6486#ifdef __cplusplus 6487extern "C" 6488#endif 6489/* We use char because int might match the return type of a gcc2 6490 builtin and then its argument prototype would still apply. */ 6491char pthread_mutex_init (); 6492int 6493main () 6494{ 6495pthread_mutex_init (); 6496 ; 6497 return 0; 6498} 6499_ACEOF 6500rm -f conftest.$ac_objext conftest$ac_exeext 6501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6502 (eval $ac_link) 2>conftest.er1 6503 ac_status=$? 6504 grep -v '^ *+' conftest.er1 >conftest.err 6505 rm -f conftest.er1 6506 cat conftest.err >&5 6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6508 (exit $ac_status); } && 6509 { ac_try='test -z "$ac_c_werror_flag" 6510 || test ! -s conftest.err' 6511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6512 (eval $ac_try) 2>&5 6513 ac_status=$? 6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6515 (exit $ac_status); }; } && 6516 { ac_try='test -s conftest$ac_exeext' 6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6518 (eval $ac_try) 2>&5 6519 ac_status=$? 6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6521 (exit $ac_status); }; }; then 6522 ac_cv_lib_pthreads_pthread_mutex_init=yes 6523else 6524 echo "$as_me: failed program was:" >&5 6525sed 's/^/| /' conftest.$ac_ext >&5 6526 6527ac_cv_lib_pthreads_pthread_mutex_init=no 6528fi 6529rm -f conftest.err conftest.$ac_objext \ 6530 conftest$ac_exeext conftest.$ac_ext 6531LIBS=$ac_check_lib_save_LIBS 6532fi 6533echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 6534echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6 6535if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 6536 tcl_ok=yes 6537else 6538 tcl_ok=no 6539fi 6540 6541 if test "$tcl_ok" = "yes"; then 6542 # The space is needed 6543 THREADS_LIBS=" -lpthreads" 6544 else 6545 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 6546echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6 6547if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 6548 echo $ECHO_N "(cached) $ECHO_C" >&6 6549else 6550 ac_check_lib_save_LIBS=$LIBS 6551LIBS="-lc $LIBS" 6552cat >conftest.$ac_ext <<_ACEOF 6553/* confdefs.h. */ 6554_ACEOF 6555cat confdefs.h >>conftest.$ac_ext 6556cat >>conftest.$ac_ext <<_ACEOF 6557/* end confdefs.h. */ 6558 6559/* Override any gcc2 internal prototype to avoid an error. */ 6560#ifdef __cplusplus 6561extern "C" 6562#endif 6563/* We use char because int might match the return type of a gcc2 6564 builtin and then its argument prototype would still apply. */ 6565char pthread_mutex_init (); 6566int 6567main () 6568{ 6569pthread_mutex_init (); 6570 ; 6571 return 0; 6572} 6573_ACEOF 6574rm -f conftest.$ac_objext conftest$ac_exeext 6575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6576 (eval $ac_link) 2>conftest.er1 6577 ac_status=$? 6578 grep -v '^ *+' conftest.er1 >conftest.err 6579 rm -f conftest.er1 6580 cat conftest.err >&5 6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6582 (exit $ac_status); } && 6583 { ac_try='test -z "$ac_c_werror_flag" 6584 || test ! -s conftest.err' 6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6586 (eval $ac_try) 2>&5 6587 ac_status=$? 6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6589 (exit $ac_status); }; } && 6590 { ac_try='test -s conftest$ac_exeext' 6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6592 (eval $ac_try) 2>&5 6593 ac_status=$? 6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6595 (exit $ac_status); }; }; then 6596 ac_cv_lib_c_pthread_mutex_init=yes 6597else 6598 echo "$as_me: failed program was:" >&5 6599sed 's/^/| /' conftest.$ac_ext >&5 6600 6601ac_cv_lib_c_pthread_mutex_init=no 6602fi 6603rm -f conftest.err conftest.$ac_objext \ 6604 conftest$ac_exeext conftest.$ac_ext 6605LIBS=$ac_check_lib_save_LIBS 6606fi 6607echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 6608echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6 6609if test $ac_cv_lib_c_pthread_mutex_init = yes; then 6610 tcl_ok=yes 6611else 6612 tcl_ok=no 6613fi 6614 6615 if test "$tcl_ok" = "no"; then 6616 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 6617echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6 6618if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 6619 echo $ECHO_N "(cached) $ECHO_C" >&6 6620else 6621 ac_check_lib_save_LIBS=$LIBS 6622LIBS="-lc_r $LIBS" 6623cat >conftest.$ac_ext <<_ACEOF 6624/* confdefs.h. */ 6625_ACEOF 6626cat confdefs.h >>conftest.$ac_ext 6627cat >>conftest.$ac_ext <<_ACEOF 6628/* end confdefs.h. */ 6629 6630/* Override any gcc2 internal prototype to avoid an error. */ 6631#ifdef __cplusplus 6632extern "C" 6633#endif 6634/* We use char because int might match the return type of a gcc2 6635 builtin and then its argument prototype would still apply. */ 6636char pthread_mutex_init (); 6637int 6638main () 6639{ 6640pthread_mutex_init (); 6641 ; 6642 return 0; 6643} 6644_ACEOF 6645rm -f conftest.$ac_objext conftest$ac_exeext 6646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6647 (eval $ac_link) 2>conftest.er1 6648 ac_status=$? 6649 grep -v '^ *+' conftest.er1 >conftest.err 6650 rm -f conftest.er1 6651 cat conftest.err >&5 6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6653 (exit $ac_status); } && 6654 { ac_try='test -z "$ac_c_werror_flag" 6655 || test ! -s conftest.err' 6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6657 (eval $ac_try) 2>&5 6658 ac_status=$? 6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6660 (exit $ac_status); }; } && 6661 { ac_try='test -s conftest$ac_exeext' 6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6663 (eval $ac_try) 2>&5 6664 ac_status=$? 6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6666 (exit $ac_status); }; }; then 6667 ac_cv_lib_c_r_pthread_mutex_init=yes 6668else 6669 echo "$as_me: failed program was:" >&5 6670sed 's/^/| /' conftest.$ac_ext >&5 6671 6672ac_cv_lib_c_r_pthread_mutex_init=no 6673fi 6674rm -f conftest.err conftest.$ac_objext \ 6675 conftest$ac_exeext conftest.$ac_ext 6676LIBS=$ac_check_lib_save_LIBS 6677fi 6678echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 6679echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6 6680if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 6681 tcl_ok=yes 6682else 6683 tcl_ok=no 6684fi 6685 6686 if test "$tcl_ok" = "yes"; then 6687 # The space is needed 6688 THREADS_LIBS=" -pthread" 6689 else 6690 TCL_THREADS=0 6691 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 6692echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 6693 fi 6694 fi 6695 fi 6696 fi 6697 fi 6698 else 6699 TCL_THREADS=0 6700 fi 6701 # Do checking message here to not mess up interleaved configure output 6702 echo "$as_me:$LINENO: checking for building with threads" >&5 6703echo $ECHO_N "checking for building with threads... $ECHO_C" >&6 6704 if test "${TCL_THREADS}" = 1; then 6705 6706cat >>confdefs.h <<\_ACEOF 6707#define TCL_THREADS 1 6708_ACEOF 6709 6710 echo "$as_me:$LINENO: result: yes (default)" >&5 6711echo "${ECHO_T}yes (default)" >&6 6712 else 6713 echo "$as_me:$LINENO: result: no" >&5 6714echo "${ECHO_T}no" >&6 6715 fi 6716 # TCL_THREADS sanity checking. See if our request for building with 6717 # threads is the same as the way Tcl was built. If not, warn the user. 6718 case ${TCL_DEFS} in 6719 *THREADS=1*) 6720 if test "${TCL_THREADS}" = "0"; then 6721 { echo "$as_me:$LINENO: WARNING: 6722 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 6723 that IS thread-enabled. It is recommended to use --enable-threads." >&5 6724echo "$as_me: WARNING: 6725 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 6726 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 6727 fi 6728 ;; 6729 *) 6730 if test "${TCL_THREADS}" = "1"; then 6731 { echo "$as_me:$LINENO: WARNING: 6732 --enable-threads requested, but building against a Tcl that is NOT 6733 thread-enabled. This is an OK configuration that will also run in 6734 a thread-enabled core." >&5 6735echo "$as_me: WARNING: 6736 --enable-threads requested, but building against a Tcl that is NOT 6737 thread-enabled. This is an OK configuration that will also run in 6738 a thread-enabled core." >&2;} 6739 fi 6740 ;; 6741 esac 6742 6743 6744 6745 echo "$as_me:$LINENO: checking how to build libraries" >&5 6746echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6 6747 # Check whether --enable-shared or --disable-shared was given. 6748if test "${enable_shared+set}" = set; then 6749 enableval="$enable_shared" 6750 tcl_ok=$enableval 6751else 6752 tcl_ok=yes 6753fi; 6754 6755 if test "${enable_shared+set}" = set; then 6756 enableval="$enable_shared" 6757 tcl_ok=$enableval 6758 else 6759 tcl_ok=yes 6760 fi 6761 6762 if test "$tcl_ok" = "yes" ; then 6763 echo "$as_me:$LINENO: result: shared" >&5 6764echo "${ECHO_T}shared" >&6 6765 SHARED_BUILD=1 6766 else 6767 echo "$as_me:$LINENO: result: static" >&5 6768echo "${ECHO_T}static" >&6 6769 SHARED_BUILD=0 6770 6771cat >>confdefs.h <<\_ACEOF 6772#define STATIC_BUILD 1 6773_ACEOF 6774 6775 fi 6776 6777 6778 6779 6780 6781 # Step 0.a: Enable 64 bit support? 6782 6783 echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 6784echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6 6785 # Check whether --enable-64bit or --disable-64bit was given. 6786if test "${enable_64bit+set}" = set; then 6787 enableval="$enable_64bit" 6788 do64bit=$enableval 6789else 6790 do64bit=no 6791fi; 6792 echo "$as_me:$LINENO: result: $do64bit" >&5 6793echo "${ECHO_T}$do64bit" >&6 6794 6795 # Step 0.b: Enable Solaris 64 bit VIS support? 6796 6797 echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 6798echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6 6799 # Check whether --enable-64bit-vis or --disable-64bit-vis was given. 6800if test "${enable_64bit_vis+set}" = set; then 6801 enableval="$enable_64bit_vis" 6802 do64bitVIS=$enableval 6803else 6804 do64bitVIS=no 6805fi; 6806 echo "$as_me:$LINENO: result: $do64bitVIS" >&5 6807echo "${ECHO_T}$do64bitVIS" >&6 6808 6809 if test "$do64bitVIS" = "yes"; then 6810 # Force 64bit on with VIS 6811 do64bit=yes 6812 fi 6813 6814 # Step 0.c: Cross-compiling options for Windows/CE builds? 6815 6816 if test "${TEA_PLATFORM}" = "windows" ; then 6817 echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 6818echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6 6819 # Check whether --enable-wince or --disable-wince was given. 6820if test "${enable_wince+set}" = set; then 6821 enableval="$enable_wince" 6822 doWince=$enableval 6823else 6824 doWince=no 6825fi; 6826 echo "$as_me:$LINENO: result: $doWince" >&5 6827echo "${ECHO_T}$doWince" >&6 6828 fi 6829 6830 # Step 1: set the variable "system" to hold the name and version number 6831 # for the system. 6832 6833 6834 echo "$as_me:$LINENO: checking system version" >&5 6835echo $ECHO_N "checking system version... $ECHO_C" >&6 6836if test "${tcl_cv_sys_version+set}" = set; then 6837 echo $ECHO_N "(cached) $ECHO_C" >&6 6838else 6839 6840 if test "${TEA_PLATFORM}" = "windows" ; then 6841 tcl_cv_sys_version=windows 6842 elif test -f /usr/lib/NextStep/software_version; then 6843 tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` 6844 else 6845 tcl_cv_sys_version=`uname -s`-`uname -r` 6846 if test "$?" -ne 0 ; then 6847 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 6848echo "$as_me: WARNING: can't find uname command" >&2;} 6849 tcl_cv_sys_version=unknown 6850 else 6851 # Special check for weird MP-RAS system (uname returns weird 6852 # results, and the version is kept in special file). 6853 6854 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then 6855 tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` 6856 fi 6857 if test "`uname -s`" = "AIX" ; then 6858 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 6859 fi 6860 fi 6861 fi 6862 6863fi 6864echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 6865echo "${ECHO_T}$tcl_cv_sys_version" >&6 6866 system=$tcl_cv_sys_version 6867 6868 6869 # Step 2: check for existence of -ldl library. This is needed because 6870 # Linux can use either -ldl or -ldld for dynamic loading. 6871 6872 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 6873echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 6874if test "${ac_cv_lib_dl_dlopen+set}" = set; then 6875 echo $ECHO_N "(cached) $ECHO_C" >&6 6876else 6877 ac_check_lib_save_LIBS=$LIBS 6878LIBS="-ldl $LIBS" 6879cat >conftest.$ac_ext <<_ACEOF 6880/* confdefs.h. */ 6881_ACEOF 6882cat confdefs.h >>conftest.$ac_ext 6883cat >>conftest.$ac_ext <<_ACEOF 6884/* end confdefs.h. */ 6885 6886/* Override any gcc2 internal prototype to avoid an error. */ 6887#ifdef __cplusplus 6888extern "C" 6889#endif 6890/* We use char because int might match the return type of a gcc2 6891 builtin and then its argument prototype would still apply. */ 6892char dlopen (); 6893int 6894main () 6895{ 6896dlopen (); 6897 ; 6898 return 0; 6899} 6900_ACEOF 6901rm -f conftest.$ac_objext conftest$ac_exeext 6902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6903 (eval $ac_link) 2>conftest.er1 6904 ac_status=$? 6905 grep -v '^ *+' conftest.er1 >conftest.err 6906 rm -f conftest.er1 6907 cat conftest.err >&5 6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6909 (exit $ac_status); } && 6910 { ac_try='test -z "$ac_c_werror_flag" 6911 || test ! -s conftest.err' 6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6913 (eval $ac_try) 2>&5 6914 ac_status=$? 6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6916 (exit $ac_status); }; } && 6917 { ac_try='test -s conftest$ac_exeext' 6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6919 (eval $ac_try) 2>&5 6920 ac_status=$? 6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6922 (exit $ac_status); }; }; then 6923 ac_cv_lib_dl_dlopen=yes 6924else 6925 echo "$as_me: failed program was:" >&5 6926sed 's/^/| /' conftest.$ac_ext >&5 6927 6928ac_cv_lib_dl_dlopen=no 6929fi 6930rm -f conftest.err conftest.$ac_objext \ 6931 conftest$ac_exeext conftest.$ac_ext 6932LIBS=$ac_check_lib_save_LIBS 6933fi 6934echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 6935echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 6936if test $ac_cv_lib_dl_dlopen = yes; then 6937 have_dl=yes 6938else 6939 have_dl=no 6940fi 6941 6942 6943 # Require ranlib early so we can override it in special cases below. 6944 6945 6946 6947 # Step 3: set configuration options based on system name and version. 6948 # This is similar to Tcl's unix/tcl.m4 except that we've added a 6949 # "windows" case. 6950 6951 do64bit_ok=no 6952 LDFLAGS_ORIG="$LDFLAGS" 6953 # When ld needs options to work in 64-bit mode, put them in 6954 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 6955 # is disabled by the user. [Bug 1016796] 6956 LDFLAGS_ARCH="" 6957 TCL_EXPORT_FILE_SUFFIX="" 6958 UNSHARED_LIB_SUFFIX="" 6959 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 6960 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 6961 TCL_LIB_VERSIONS_OK=ok 6962 CFLAGS_DEBUG=-g 6963 CFLAGS_OPTIMIZE=-O 6964 if test "$GCC" = "yes" ; then 6965 CFLAGS_OPTIMIZE=-O2 6966 CFLAGS_WARNING="-Wall -Wno-implicit-int" 6967 else 6968 CFLAGS_WARNING="" 6969 fi 6970 TCL_NEEDS_EXP_FILE=0 6971 TCL_BUILD_EXP_FILE="" 6972 TCL_EXP_FILE="" 6973 # Extract the first word of "ar", so it can be a program name with args. 6974set dummy ar; ac_word=$2 6975echo "$as_me:$LINENO: checking for $ac_word" >&5 6976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6977if test "${ac_cv_prog_AR+set}" = set; then 6978 echo $ECHO_N "(cached) $ECHO_C" >&6 6979else 6980 if test -n "$AR"; then 6981 ac_cv_prog_AR="$AR" # Let the user override the test. 6982else 6983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6984for as_dir in $PATH 6985do 6986 IFS=$as_save_IFS 6987 test -z "$as_dir" && as_dir=. 6988 for ac_exec_ext in '' $ac_executable_extensions; do 6989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6990 ac_cv_prog_AR="ar" 6991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6992 break 2 6993 fi 6994done 6995done 6996 6997fi 6998fi 6999AR=$ac_cv_prog_AR 7000if test -n "$AR"; then 7001 echo "$as_me:$LINENO: result: $AR" >&5 7002echo "${ECHO_T}$AR" >&6 7003else 7004 echo "$as_me:$LINENO: result: no" >&5 7005echo "${ECHO_T}no" >&6 7006fi 7007 7008 STLIB_LD='${AR} cr' 7009 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7010 case $system in 7011 windows) 7012 # This is a 2-stage check to make sure we have the 64-bit SDK 7013 # We have to know where the SDK is installed. 7014 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7015 # MACHINE is IX86 for LINK, but this is used by the manifest, 7016 # which requires x86|amd64|ia64. 7017 MACHINE="X86" 7018 if test "$do64bit" != "no" ; then 7019 if test "x${MSSDK}x" = "xx" ; then 7020 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7021 fi 7022 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7023 PATH64="" 7024 case "$do64bit" in 7025 amd64|x64|yes) 7026 MACHINE="AMD64" ; # default to AMD64 64-bit build 7027 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7028 ;; 7029 ia64) 7030 MACHINE="IA64" 7031 PATH64="${MSSDK}/Bin/Win64" 7032 ;; 7033 esac 7034 if test ! -d "${PATH64}" ; then 7035 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7036echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7037 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7038echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7039 do64bit="no" 7040 else 7041 echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7042echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6 7043 do64bit_ok="yes" 7044 fi 7045 fi 7046 7047 if test "$doWince" != "no" ; then 7048 if test "$do64bit" != "no" ; then 7049 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7050echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7051 { (exit 1); exit 1; }; } 7052 fi 7053 if test "$GCC" = "yes" ; then 7054 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7055echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7056 { (exit 1); exit 1; }; } 7057 fi 7058 7059 # First, look for one uninstalled. 7060 # the alternative search directory is invoked by --with-celib 7061 7062 if test x"${no_celib}" = x ; then 7063 # we reset no_celib in case something fails here 7064 no_celib=true 7065 7066# Check whether --with-celib or --without-celib was given. 7067if test "${with_celib+set}" = set; then 7068 withval="$with_celib" 7069 with_celibconfig=${withval} 7070fi; 7071 echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7072echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6 7073 if test "${ac_cv_c_celibconfig+set}" = set; then 7074 echo $ECHO_N "(cached) $ECHO_C" >&6 7075else 7076 7077 # First check to see if --with-celibconfig was specified. 7078 if test x"${with_celibconfig}" != x ; then 7079 if test -d "${with_celibconfig}/inc" ; then 7080 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7081 else 7082 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7083echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7084 { (exit 1); exit 1; }; } 7085 fi 7086 fi 7087 7088 # then check for a celib library 7089 if test x"${ac_cv_c_celibconfig}" = x ; then 7090 for i in \ 7091 ../celib-palm-3.0 \ 7092 ../celib \ 7093 ../../celib-palm-3.0 \ 7094 ../../celib \ 7095 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7096 ${srcdir}/../celib-palm-3.0 \ 7097 ${srcdir}/../celib \ 7098 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7099 ; do 7100 if test -d "$i/inc" ; then 7101 ac_cv_c_celibconfig=`(cd $i; pwd)` 7102 break 7103 fi 7104 done 7105 fi 7106 7107fi 7108 7109 if test x"${ac_cv_c_celibconfig}" = x ; then 7110 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7111echo "$as_me: error: Cannot find celib support library directory" >&2;} 7112 { (exit 1); exit 1; }; } 7113 else 7114 no_celib= 7115 CELIB_DIR=${ac_cv_c_celibconfig} 7116 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7117 echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7118echo "${ECHO_T}found $CELIB_DIR" >&6 7119 fi 7120 fi 7121 7122 # Set defaults for common evc4/PPC2003 setup 7123 # Currently Tcl requires 300+, possibly 420+ for sockets 7124 CEVERSION=420; # could be 211 300 301 400 420 ... 7125 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7126 ARCH=ARM; # could be ARM MIPS X86EM ... 7127 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7128 if test "$doWince" != "yes"; then 7129 # If !yes then the user specified something 7130 # Reset ARCH to allow user to skip specifying it 7131 ARCH= 7132 eval `echo $doWince | awk -F, '{ \ 7133 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7134 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7135 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7136 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7137 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7138 }'` 7139 if test "x${ARCH}" = "x" ; then 7140 ARCH=$TARGETCPU; 7141 fi 7142 fi 7143 OSVERSION=WCE$CEVERSION; 7144 if test "x${WCEROOT}" = "x" ; then 7145 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7146 if test ! -d "${WCEROOT}" ; then 7147 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7148 fi 7149 fi 7150 if test "x${SDKROOT}" = "x" ; then 7151 SDKROOT="C:/Program Files/Windows CE Tools" 7152 if test ! -d "${SDKROOT}" ; then 7153 SDKROOT="C:/Windows CE Tools" 7154 fi 7155 fi 7156 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7157 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7158 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7159 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7160 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7161echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7162 { (exit 1); exit 1; }; } 7163 doWince="no" 7164 else 7165 # We could PATH_NOSPACE these, but that's not important, 7166 # as long as we quote them when used. 7167 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7168 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7169 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7170 fi 7171 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7172 fi 7173 fi 7174 7175 if test "$GCC" != "yes" ; then 7176 if test "${SHARED_BUILD}" = "0" ; then 7177 runtime=-MT 7178 else 7179 runtime=-MD 7180 fi 7181 7182 if test "$do64bit" != "no" ; then 7183 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7184 CC="\"${PATH64}/cl.exe\"" 7185 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7186 RC="\"${MSSDK}/bin/rc.exe\"" 7187 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7188 LINKBIN="\"${PATH64}/link.exe\"" 7189 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7190 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7191 # Avoid 'unresolved external symbol __security_cookie' 7192 # errors, c.f. http://support.microsoft.com/?id=894573 7193 7194 vars="bufferoverflowU.lib" 7195 for i in $vars; do 7196 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7197 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7198 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7199 fi 7200 PKG_LIBS="$PKG_LIBS $i" 7201 done 7202 7203 7204 elif test "$doWince" != "no" ; then 7205 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7206 if test "${TARGETCPU}" = "X86"; then 7207 CC="\"${CEBINROOT}/cl.exe\"" 7208 else 7209 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 7210 fi 7211 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7212 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 7213 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 7214 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 7215 if test "${SHARED_BUILD}" = "1" ; then 7216 # Static CE builds require static celib as well 7217 defs="${defs} _DLL" 7218 fi 7219 for i in $defs ; do 7220 7221cat >>confdefs.h <<_ACEOF 7222#define $i 1 7223_ACEOF 7224 7225 done 7226 7227cat >>confdefs.h <<_ACEOF 7228#define _WIN32_WCE $CEVERSION 7229_ACEOF 7230 7231 7232cat >>confdefs.h <<_ACEOF 7233#define UNDER_CE $CEVERSION 7234_ACEOF 7235 7236 CFLAGS_DEBUG="-nologo -Zi -Od" 7237 CFLAGS_OPTIMIZE="-nologo -Ox" 7238 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 7239 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 7240 LINKBIN="\"${CEBINROOT}/link.exe\"" 7241 7242 else 7243 RC="rc" 7244 lflags="-nologo" 7245 LINKBIN="link" 7246 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 7247 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7248 fi 7249 fi 7250 7251 if test "$GCC" = "yes"; then 7252 # mingw gcc mode 7253 RC="windres" 7254 CFLAGS_DEBUG="-g" 7255 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 7256 SHLIB_LD="$CC -shared" 7257 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7258 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 7259 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 7260 else 7261 SHLIB_LD="${LINKBIN} -dll ${lflags}" 7262 # link -lib only works when -lib is the first arg 7263 STLIB_LD="${LINKBIN} -lib ${lflags}" 7264 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 7265 PATHTYPE=-w 7266 # For information on what debugtype is most useful, see: 7267 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 7268 # This essentially turns it all on. 7269 LDFLAGS_DEBUG="-debug:full -debugtype:both -warn:2" 7270 LDFLAGS_OPTIMIZE="-release" 7271 if test "$doWince" != "no" ; then 7272 LDFLAGS_CONSOLE="-link ${lflags}" 7273 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 7274 else 7275 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 7276 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 7277 fi 7278 fi 7279 7280 SHLIB_LD_LIBS='${LIBS}' 7281 SHLIB_SUFFIX=".dll" 7282 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 7283 7284 TCL_LIB_VERSIONS_OK=nodots 7285 # Bogus to avoid getting this turned off 7286 DL_OBJS="tclLoadNone.obj" 7287 ;; 7288 AIX-*) 7289 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then 7290 # AIX requires the _r compiler when gcc isn't being used 7291 case "${CC}" in 7292 *_r) 7293 # ok ... 7294 ;; 7295 *) 7296 CC=${CC}_r 7297 ;; 7298 esac 7299 echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 7300echo "${ECHO_T}Using $CC for compiling with threads" >&6 7301 fi 7302 LIBS="$LIBS -lc" 7303 SHLIB_CFLAGS="" 7304 SHLIB_LD_LIBS='${LIBS}' 7305 SHLIB_SUFFIX=".so" 7306 7307 DL_OBJS="tclLoadDl.o" 7308 LD_LIBRARY_PATH_VAR="LIBPATH" 7309 7310 # Check to enable 64-bit flags for compiler/linker on AIX 4+ 7311 if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then 7312 if test "$GCC" = "yes" ; then 7313 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 7314echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 7315 else 7316 do64bit_ok=yes 7317 CFLAGS="$CFLAGS -q64" 7318 LDFLAGS_ARCH="-q64" 7319 RANLIB="${RANLIB} -X64" 7320 AR="${AR} -X64" 7321 SHLIB_LD_FLAGS="-b64" 7322 fi 7323 fi 7324 7325 if test "`uname -m`" = "ia64" ; then 7326 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 7327 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 7328 # AIX-5 has dl* in libc.so 7329 DL_LIBS="" 7330 if test "$GCC" = "yes" ; then 7331 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7332 else 7333 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 7334 fi 7335 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 7336 else 7337 if test "$GCC" = "yes" ; then 7338 SHLIB_LD="gcc -shared" 7339 else 7340 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" 7341 fi 7342 SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" 7343 DL_LIBS="-ldl" 7344 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 7345 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7346 TCL_NEEDS_EXP_FILE=1 7347 TCL_EXPORT_FILE_SUFFIX='${PACKAGE_VERSION}.exp' 7348 fi 7349 7350 # AIX v<=4.1 has some different flags than 4.2+ 7351 if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then 7352 case $LIBOBJS in 7353 "tclLoadAix.$ac_objext" | \ 7354 *" tclLoadAix.$ac_objext" | \ 7355 "tclLoadAix.$ac_objext "* | \ 7356 *" tclLoadAix.$ac_objext "* ) ;; 7357 *) LIBOBJS="$LIBOBJS tclLoadAix.$ac_objext" ;; 7358esac 7359 7360 DL_LIBS="-lld" 7361 fi 7362 7363 # On AIX <=v4 systems, libbsd.a has to be linked in to support 7364 # non-blocking file IO. This library has to be linked in after 7365 # the MATH_LIBS or it breaks the pow() function. The way to 7366 # insure proper sequencing, is to add it to the tail of MATH_LIBS. 7367 # This library also supplies gettimeofday. 7368 # 7369 # AIX does not have a timezone field in struct tm. When the AIX 7370 # bsd library is used, the timezone global and the gettimeofday 7371 # methods are to be avoided for timezone deduction instead, we 7372 # deduce the timezone by comparing the localtime result on a 7373 # known GMT value. 7374 7375 echo "$as_me:$LINENO: checking for gettimeofday in -lbsd" >&5 7376echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6 7377if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then 7378 echo $ECHO_N "(cached) $ECHO_C" >&6 7379else 7380 ac_check_lib_save_LIBS=$LIBS 7381LIBS="-lbsd $LIBS" 7382cat >conftest.$ac_ext <<_ACEOF 7383/* confdefs.h. */ 7384_ACEOF 7385cat confdefs.h >>conftest.$ac_ext 7386cat >>conftest.$ac_ext <<_ACEOF 7387/* end confdefs.h. */ 7388 7389/* Override any gcc2 internal prototype to avoid an error. */ 7390#ifdef __cplusplus 7391extern "C" 7392#endif 7393/* We use char because int might match the return type of a gcc2 7394 builtin and then its argument prototype would still apply. */ 7395char gettimeofday (); 7396int 7397main () 7398{ 7399gettimeofday (); 7400 ; 7401 return 0; 7402} 7403_ACEOF 7404rm -f conftest.$ac_objext conftest$ac_exeext 7405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7406 (eval $ac_link) 2>conftest.er1 7407 ac_status=$? 7408 grep -v '^ *+' conftest.er1 >conftest.err 7409 rm -f conftest.er1 7410 cat conftest.err >&5 7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7412 (exit $ac_status); } && 7413 { ac_try='test -z "$ac_c_werror_flag" 7414 || test ! -s conftest.err' 7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7416 (eval $ac_try) 2>&5 7417 ac_status=$? 7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7419 (exit $ac_status); }; } && 7420 { ac_try='test -s conftest$ac_exeext' 7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7422 (eval $ac_try) 2>&5 7423 ac_status=$? 7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7425 (exit $ac_status); }; }; then 7426 ac_cv_lib_bsd_gettimeofday=yes 7427else 7428 echo "$as_me: failed program was:" >&5 7429sed 's/^/| /' conftest.$ac_ext >&5 7430 7431ac_cv_lib_bsd_gettimeofday=no 7432fi 7433rm -f conftest.err conftest.$ac_objext \ 7434 conftest$ac_exeext conftest.$ac_ext 7435LIBS=$ac_check_lib_save_LIBS 7436fi 7437echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gettimeofday" >&5 7438echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6 7439if test $ac_cv_lib_bsd_gettimeofday = yes; then 7440 libbsd=yes 7441else 7442 libbsd=no 7443fi 7444 7445 if test $libbsd = yes; then 7446 MATH_LIBS="$MATH_LIBS -lbsd" 7447 7448cat >>confdefs.h <<\_ACEOF 7449#define USE_DELTA_FOR_TZ 1 7450_ACEOF 7451 7452 fi 7453 ;; 7454 BeOS*) 7455 SHLIB_CFLAGS="-fPIC" 7456 SHLIB_LD="${CC} -nostart" 7457 SHLIB_LD_LIBS='${LIBS}' 7458 SHLIB_SUFFIX=".so" 7459 DL_OBJS="tclLoadDl.o" 7460 DL_LIBS="-ldl" 7461 7462 #----------------------------------------------------------- 7463 # Check for inet_ntoa in -lbind, for BeOS (which also needs 7464 # -lsocket, even if the network functions are in -lnet which 7465 # is always linked to, for compatibility. 7466 #----------------------------------------------------------- 7467 echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 7468echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6 7469if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 7470 echo $ECHO_N "(cached) $ECHO_C" >&6 7471else 7472 ac_check_lib_save_LIBS=$LIBS 7473LIBS="-lbind $LIBS" 7474cat >conftest.$ac_ext <<_ACEOF 7475/* confdefs.h. */ 7476_ACEOF 7477cat confdefs.h >>conftest.$ac_ext 7478cat >>conftest.$ac_ext <<_ACEOF 7479/* end confdefs.h. */ 7480 7481/* Override any gcc2 internal prototype to avoid an error. */ 7482#ifdef __cplusplus 7483extern "C" 7484#endif 7485/* We use char because int might match the return type of a gcc2 7486 builtin and then its argument prototype would still apply. */ 7487char inet_ntoa (); 7488int 7489main () 7490{ 7491inet_ntoa (); 7492 ; 7493 return 0; 7494} 7495_ACEOF 7496rm -f conftest.$ac_objext conftest$ac_exeext 7497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7498 (eval $ac_link) 2>conftest.er1 7499 ac_status=$? 7500 grep -v '^ *+' conftest.er1 >conftest.err 7501 rm -f conftest.er1 7502 cat conftest.err >&5 7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7504 (exit $ac_status); } && 7505 { ac_try='test -z "$ac_c_werror_flag" 7506 || test ! -s conftest.err' 7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7508 (eval $ac_try) 2>&5 7509 ac_status=$? 7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7511 (exit $ac_status); }; } && 7512 { ac_try='test -s conftest$ac_exeext' 7513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7514 (eval $ac_try) 2>&5 7515 ac_status=$? 7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7517 (exit $ac_status); }; }; then 7518 ac_cv_lib_bind_inet_ntoa=yes 7519else 7520 echo "$as_me: failed program was:" >&5 7521sed 's/^/| /' conftest.$ac_ext >&5 7522 7523ac_cv_lib_bind_inet_ntoa=no 7524fi 7525rm -f conftest.err conftest.$ac_objext \ 7526 conftest$ac_exeext conftest.$ac_ext 7527LIBS=$ac_check_lib_save_LIBS 7528fi 7529echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 7530echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6 7531if test $ac_cv_lib_bind_inet_ntoa = yes; then 7532 LIBS="$LIBS -lbind -lsocket" 7533fi 7534 7535 ;; 7536 BSD/OS-2.1*|BSD/OS-3*) 7537 SHLIB_CFLAGS="" 7538 SHLIB_LD="shlicc -r" 7539 SHLIB_LD_LIBS='${LIBS}' 7540 SHLIB_SUFFIX=".so" 7541 DL_OBJS="tclLoadDl.o" 7542 DL_LIBS="-ldl" 7543 CC_SEARCH_FLAGS="" 7544 LD_SEARCH_FLAGS="" 7545 ;; 7546 BSD/OS-4.*) 7547 SHLIB_CFLAGS="-export-dynamic -fPIC" 7548 SHLIB_LD="cc -shared" 7549 SHLIB_LD_LIBS='${LIBS}' 7550 SHLIB_SUFFIX=".so" 7551 DL_OBJS="tclLoadDl.o" 7552 DL_LIBS="-ldl" 7553 LDFLAGS="$LDFLAGS -export-dynamic" 7554 CC_SEARCH_FLAGS="" 7555 LD_SEARCH_FLAGS="" 7556 ;; 7557 dgux*) 7558 SHLIB_CFLAGS="-K PIC" 7559 SHLIB_LD="cc -G" 7560 SHLIB_LD_LIBS="" 7561 SHLIB_SUFFIX=".so" 7562 DL_OBJS="tclLoadDl.o" 7563 DL_LIBS="-ldl" 7564 CC_SEARCH_FLAGS="" 7565 LD_SEARCH_FLAGS="" 7566 ;; 7567 HP-UX-*.11.*) 7568 # Use updated header definitions where possible 7569 7570cat >>confdefs.h <<\_ACEOF 7571#define _XOPEN_SOURCE_EXTENDED 1 7572_ACEOF 7573 7574 # Needed by Tcl, but not most extensions 7575 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 7576 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 7577 7578 SHLIB_SUFFIX=".sl" 7579 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 7580echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 7581if test "${ac_cv_lib_dld_shl_load+set}" = set; then 7582 echo $ECHO_N "(cached) $ECHO_C" >&6 7583else 7584 ac_check_lib_save_LIBS=$LIBS 7585LIBS="-ldld $LIBS" 7586cat >conftest.$ac_ext <<_ACEOF 7587/* confdefs.h. */ 7588_ACEOF 7589cat confdefs.h >>conftest.$ac_ext 7590cat >>conftest.$ac_ext <<_ACEOF 7591/* end confdefs.h. */ 7592 7593/* Override any gcc2 internal prototype to avoid an error. */ 7594#ifdef __cplusplus 7595extern "C" 7596#endif 7597/* We use char because int might match the return type of a gcc2 7598 builtin and then its argument prototype would still apply. */ 7599char shl_load (); 7600int 7601main () 7602{ 7603shl_load (); 7604 ; 7605 return 0; 7606} 7607_ACEOF 7608rm -f conftest.$ac_objext conftest$ac_exeext 7609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7610 (eval $ac_link) 2>conftest.er1 7611 ac_status=$? 7612 grep -v '^ *+' conftest.er1 >conftest.err 7613 rm -f conftest.er1 7614 cat conftest.err >&5 7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7616 (exit $ac_status); } && 7617 { ac_try='test -z "$ac_c_werror_flag" 7618 || test ! -s conftest.err' 7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7620 (eval $ac_try) 2>&5 7621 ac_status=$? 7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7623 (exit $ac_status); }; } && 7624 { ac_try='test -s conftest$ac_exeext' 7625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7626 (eval $ac_try) 2>&5 7627 ac_status=$? 7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7629 (exit $ac_status); }; }; then 7630 ac_cv_lib_dld_shl_load=yes 7631else 7632 echo "$as_me: failed program was:" >&5 7633sed 's/^/| /' conftest.$ac_ext >&5 7634 7635ac_cv_lib_dld_shl_load=no 7636fi 7637rm -f conftest.err conftest.$ac_objext \ 7638 conftest$ac_exeext conftest.$ac_ext 7639LIBS=$ac_check_lib_save_LIBS 7640fi 7641echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 7642echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 7643if test $ac_cv_lib_dld_shl_load = yes; then 7644 tcl_ok=yes 7645else 7646 tcl_ok=no 7647fi 7648 7649 if test "$tcl_ok" = yes; then 7650 SHLIB_CFLAGS="+z" 7651 SHLIB_LD="ld -b" 7652 SHLIB_LD_LIBS='${LIBS}' 7653 DL_OBJS="tclLoadShl.o" 7654 DL_LIBS="-ldld" 7655 LDFLAGS="$LDFLAGS -Wl,-E" 7656 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 7657 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 7658 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 7659 fi 7660 if test "$GCC" = "yes" ; then 7661 SHLIB_LD="gcc -shared" 7662 SHLIB_LD_LIBS='${LIBS}' 7663 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7664 fi 7665 7666 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 7667 #CFLAGS="$CFLAGS +DAportable" 7668 7669 # Check to enable 64-bit flags for compiler/linker 7670 if test "$do64bit" = "yes" ; then 7671 if test "$GCC" = "yes" ; then 7672 hpux_arch=`${CC} -dumpmachine` 7673 case $hpux_arch in 7674 hppa64*) 7675 # 64-bit gcc in use. Fix flags for GNU ld. 7676 do64bit_ok=yes 7677 SHLIB_LD="${CC} -shared" 7678 SHLIB_LD_LIBS='${LIBS}' 7679 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7680 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7681 ;; 7682 *) 7683 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 7684echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 7685 ;; 7686 esac 7687 else 7688 do64bit_ok=yes 7689 CFLAGS="$CFLAGS +DD64" 7690 LDFLAGS_ARCH="+DD64" 7691 fi 7692 fi 7693 ;; 7694 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 7695 SHLIB_SUFFIX=".sl" 7696 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 7697echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 7698if test "${ac_cv_lib_dld_shl_load+set}" = set; then 7699 echo $ECHO_N "(cached) $ECHO_C" >&6 7700else 7701 ac_check_lib_save_LIBS=$LIBS 7702LIBS="-ldld $LIBS" 7703cat >conftest.$ac_ext <<_ACEOF 7704/* confdefs.h. */ 7705_ACEOF 7706cat confdefs.h >>conftest.$ac_ext 7707cat >>conftest.$ac_ext <<_ACEOF 7708/* end confdefs.h. */ 7709 7710/* Override any gcc2 internal prototype to avoid an error. */ 7711#ifdef __cplusplus 7712extern "C" 7713#endif 7714/* We use char because int might match the return type of a gcc2 7715 builtin and then its argument prototype would still apply. */ 7716char shl_load (); 7717int 7718main () 7719{ 7720shl_load (); 7721 ; 7722 return 0; 7723} 7724_ACEOF 7725rm -f conftest.$ac_objext conftest$ac_exeext 7726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7727 (eval $ac_link) 2>conftest.er1 7728 ac_status=$? 7729 grep -v '^ *+' conftest.er1 >conftest.err 7730 rm -f conftest.er1 7731 cat conftest.err >&5 7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7733 (exit $ac_status); } && 7734 { ac_try='test -z "$ac_c_werror_flag" 7735 || test ! -s conftest.err' 7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7737 (eval $ac_try) 2>&5 7738 ac_status=$? 7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7740 (exit $ac_status); }; } && 7741 { ac_try='test -s conftest$ac_exeext' 7742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7743 (eval $ac_try) 2>&5 7744 ac_status=$? 7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7746 (exit $ac_status); }; }; then 7747 ac_cv_lib_dld_shl_load=yes 7748else 7749 echo "$as_me: failed program was:" >&5 7750sed 's/^/| /' conftest.$ac_ext >&5 7751 7752ac_cv_lib_dld_shl_load=no 7753fi 7754rm -f conftest.err conftest.$ac_objext \ 7755 conftest$ac_exeext conftest.$ac_ext 7756LIBS=$ac_check_lib_save_LIBS 7757fi 7758echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 7759echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 7760if test $ac_cv_lib_dld_shl_load = yes; then 7761 tcl_ok=yes 7762else 7763 tcl_ok=no 7764fi 7765 7766 if test "$tcl_ok" = yes; then 7767 SHLIB_CFLAGS="+z" 7768 SHLIB_LD="ld -b" 7769 SHLIB_LD_LIBS="" 7770 DL_OBJS="tclLoadShl.o" 7771 DL_LIBS="-ldld" 7772 LDFLAGS="$LDFLAGS -Wl,-E" 7773 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 7774 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 7775 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 7776 fi 7777 ;; 7778 IRIX-5.*) 7779 SHLIB_CFLAGS="" 7780 SHLIB_LD="ld -shared -rdata_shared" 7781 SHLIB_LD_LIBS='${LIBS}' 7782 SHLIB_SUFFIX=".so" 7783 DL_OBJS="tclLoadDl.o" 7784 DL_LIBS="" 7785 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7786 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 7787 ;; 7788 IRIX-6.*) 7789 SHLIB_CFLAGS="" 7790 SHLIB_LD="ld -n32 -shared -rdata_shared" 7791 SHLIB_LD_LIBS='${LIBS}' 7792 SHLIB_SUFFIX=".so" 7793 DL_OBJS="tclLoadDl.o" 7794 DL_LIBS="" 7795 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7796 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 7797 if test "$GCC" = "yes" ; then 7798 CFLAGS="$CFLAGS -mabi=n32" 7799 LDFLAGS="$LDFLAGS -mabi=n32" 7800 else 7801 case $system in 7802 IRIX-6.3) 7803 # Use to build 6.2 compatible binaries on 6.3. 7804 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 7805 ;; 7806 *) 7807 CFLAGS="$CFLAGS -n32" 7808 ;; 7809 esac 7810 LDFLAGS="$LDFLAGS -n32" 7811 fi 7812 ;; 7813 IRIX64-6.*) 7814 SHLIB_CFLAGS="" 7815 SHLIB_LD="ld -n32 -shared -rdata_shared" 7816 SHLIB_LD_LIBS='${LIBS}' 7817 SHLIB_SUFFIX=".so" 7818 DL_OBJS="tclLoadDl.o" 7819 DL_LIBS="" 7820 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7821 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 7822 7823 # Check to enable 64-bit flags for compiler/linker 7824 7825 if test "$do64bit" = "yes" ; then 7826 if test "$GCC" = "yes" ; then 7827 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 7828echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 7829 else 7830 do64bit_ok=yes 7831 SHLIB_LD="ld -64 -shared -rdata_shared" 7832 CFLAGS="$CFLAGS -64" 7833 LDFLAGS_ARCH="-64" 7834 fi 7835 fi 7836 ;; 7837 Linux*) 7838 SHLIB_CFLAGS="-fPIC" 7839 SHLIB_LD_LIBS='${LIBS}' 7840 SHLIB_SUFFIX=".so" 7841 7842 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 7843 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings 7844 # when you inline the string and math operations. Turn this off to 7845 # get rid of the warnings. 7846 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 7847 7848 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS here: 7849 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 7850 DL_OBJS="tclLoadDl.o" 7851 DL_LIBS="-ldl" 7852 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 7853 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7854 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7855 if test "`uname -m`" = "alpha" ; then 7856 CFLAGS="$CFLAGS -mieee" 7857 fi 7858 if test $do64bit = yes; then 7859 echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 7860echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6 7861if test "${tcl_cv_cc_m64+set}" = set; then 7862 echo $ECHO_N "(cached) $ECHO_C" >&6 7863else 7864 7865 hold_cflags=$CFLAGS 7866 CFLAGS="$CFLAGS -m64" 7867 cat >conftest.$ac_ext <<_ACEOF 7868/* confdefs.h. */ 7869_ACEOF 7870cat confdefs.h >>conftest.$ac_ext 7871cat >>conftest.$ac_ext <<_ACEOF 7872/* end confdefs.h. */ 7873 7874int 7875main () 7876{ 7877 7878 ; 7879 return 0; 7880} 7881_ACEOF 7882rm -f conftest.$ac_objext conftest$ac_exeext 7883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7884 (eval $ac_link) 2>conftest.er1 7885 ac_status=$? 7886 grep -v '^ *+' conftest.er1 >conftest.err 7887 rm -f conftest.er1 7888 cat conftest.err >&5 7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7890 (exit $ac_status); } && 7891 { ac_try='test -z "$ac_c_werror_flag" 7892 || test ! -s conftest.err' 7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7894 (eval $ac_try) 2>&5 7895 ac_status=$? 7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7897 (exit $ac_status); }; } && 7898 { ac_try='test -s conftest$ac_exeext' 7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7900 (eval $ac_try) 2>&5 7901 ac_status=$? 7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7903 (exit $ac_status); }; }; then 7904 tcl_cv_cc_m64=yes 7905else 7906 echo "$as_me: failed program was:" >&5 7907sed 's/^/| /' conftest.$ac_ext >&5 7908 7909tcl_cv_cc_m64=no 7910fi 7911rm -f conftest.err conftest.$ac_objext \ 7912 conftest$ac_exeext conftest.$ac_ext 7913 CFLAGS=$hold_cflags 7914fi 7915echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 7916echo "${ECHO_T}$tcl_cv_cc_m64" >&6 7917 if test $tcl_cv_cc_m64 = yes; then 7918 CFLAGS="$CFLAGS -m64" 7919 do64bit_ok=yes 7920 fi 7921 fi 7922 7923 # The combo of gcc + glibc has a bug related 7924 # to inlining of functions like strtod(). The 7925 # -fno-builtin flag should address this problem 7926 # but it does not work. The -fno-inline flag 7927 # is kind of overkill but it works. 7928 # Disable inlining only when one of the 7929 # files in compat/*.c is being linked in. 7930 if test x"${USE_COMPAT}" != x ; then 7931 CFLAGS="$CFLAGS -fno-inline" 7932 fi 7933 7934 ;; 7935 GNU*) 7936 SHLIB_CFLAGS="-fPIC" 7937 SHLIB_LD_LIBS='${LIBS}' 7938 SHLIB_SUFFIX=".so" 7939 7940 SHLIB_LD="${CC} -shared" 7941 DL_OBJS="" 7942 DL_LIBS="-ldl" 7943 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 7944 CC_SEARCH_FLAGS="" 7945 LD_SEARCH_FLAGS="" 7946 if test "`uname -m`" = "alpha" ; then 7947 CFLAGS="$CFLAGS -mieee" 7948 fi 7949 ;; 7950 Lynx*) 7951 SHLIB_CFLAGS="-fPIC" 7952 SHLIB_LD_LIBS='${LIBS}' 7953 SHLIB_SUFFIX=".so" 7954 CFLAGS_OPTIMIZE=-02 7955 SHLIB_LD="${CC} -shared " 7956 DL_OBJS="tclLoadDl.o" 7957 DL_LIBS="-mshared -ldl" 7958 LD_FLAGS="-Wl,--export-dynamic" 7959 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7960 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7961 ;; 7962 MP-RAS-02*) 7963 SHLIB_CFLAGS="-K PIC" 7964 SHLIB_LD="cc -G" 7965 SHLIB_LD_LIBS="" 7966 SHLIB_SUFFIX=".so" 7967 DL_OBJS="tclLoadDl.o" 7968 DL_LIBS="-ldl" 7969 CC_SEARCH_FLAGS="" 7970 LD_SEARCH_FLAGS="" 7971 ;; 7972 MP-RAS-*) 7973 SHLIB_CFLAGS="-K PIC" 7974 SHLIB_LD="cc -G" 7975 SHLIB_LD_LIBS="" 7976 SHLIB_SUFFIX=".so" 7977 DL_OBJS="tclLoadDl.o" 7978 DL_LIBS="-ldl" 7979 LDFLAGS="$LDFLAGS -Wl,-Bexport" 7980 CC_SEARCH_FLAGS="" 7981 LD_SEARCH_FLAGS="" 7982 ;; 7983 NetBSD-*|FreeBSD-[1-2].*) 7984 # NetBSD/SPARC needs -fPIC, -fpic will not do. 7985 SHLIB_CFLAGS="-fPIC" 7986 SHLIB_LD="ld -Bshareable -x" 7987 SHLIB_LD_LIBS='${LIBS}' 7988 SHLIB_SUFFIX=".so" 7989 DL_OBJS="tclLoadDl.o" 7990 DL_LIBS="" 7991 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7992 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 7993 echo "$as_me:$LINENO: checking for ELF" >&5 7994echo $ECHO_N "checking for ELF... $ECHO_C" >&6 7995if test "${tcl_cv_ld_elf+set}" = set; then 7996 echo $ECHO_N "(cached) $ECHO_C" >&6 7997else 7998 7999 cat >conftest.$ac_ext <<_ACEOF 8000/* confdefs.h. */ 8001_ACEOF 8002cat confdefs.h >>conftest.$ac_ext 8003cat >>conftest.$ac_ext <<_ACEOF 8004/* end confdefs.h. */ 8005 8006#ifdef __ELF__ 8007 yes 8008#endif 8009 8010_ACEOF 8011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8012 $EGREP "yes" >/dev/null 2>&1; then 8013 tcl_cv_ld_elf=yes 8014else 8015 tcl_cv_ld_elf=no 8016fi 8017rm -f conftest* 8018 8019fi 8020echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8021echo "${ECHO_T}$tcl_cv_ld_elf" >&6 8022 if test $tcl_cv_ld_elf = yes; then 8023 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8024 else 8025 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 8026 fi 8027 8028 # Ancient FreeBSD doesn't handle version numbers with dots. 8029 8030 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8031 TCL_LIB_VERSIONS_OK=nodots 8032 ;; 8033 OpenBSD-*) 8034 # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do. 8035 case `machine` in 8036 sparc|sparc64) 8037 SHLIB_CFLAGS="-fPIC";; 8038 *) 8039 SHLIB_CFLAGS="-fpic";; 8040 esac 8041 SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}" 8042 SHLIB_LD_LIBS='${LIBS}' 8043 SHLIB_SUFFIX=".so" 8044 DL_OBJS="tclLoadDl.o" 8045 DL_LIBS="" 8046 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8047 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8048 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 8049 echo "$as_me:$LINENO: checking for ELF" >&5 8050echo $ECHO_N "checking for ELF... $ECHO_C" >&6 8051if test "${tcl_cv_ld_elf+set}" = set; then 8052 echo $ECHO_N "(cached) $ECHO_C" >&6 8053else 8054 8055 cat >conftest.$ac_ext <<_ACEOF 8056/* confdefs.h. */ 8057_ACEOF 8058cat confdefs.h >>conftest.$ac_ext 8059cat >>conftest.$ac_ext <<_ACEOF 8060/* end confdefs.h. */ 8061 8062#ifdef __ELF__ 8063 yes 8064#endif 8065 8066_ACEOF 8067if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8068 $EGREP "yes" >/dev/null 2>&1; then 8069 tcl_cv_ld_elf=yes 8070else 8071 tcl_cv_ld_elf=no 8072fi 8073rm -f conftest* 8074 8075fi 8076echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8077echo "${ECHO_T}$tcl_cv_ld_elf" >&6 8078 if test $tcl_cv_ld_elf = yes; then 8079 LDFLAGS=-Wl,-export-dynamic 8080 else 8081 LDFLAGS="" 8082 fi 8083 8084 # OpenBSD doesn't do version numbers with dots. 8085 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8086 TCL_LIB_VERSIONS_OK=nodots 8087 ;; 8088 FreeBSD-*|DragonFly-*) 8089 # FreeBSD 3.* and greater have ELF. 8090 SHLIB_CFLAGS="-fPIC" 8091 SHLIB_LD="ld -Bshareable -x" 8092 SHLIB_LD_LIBS='${LIBS}' 8093 SHLIB_SUFFIX=".so" 8094 DL_OBJS="tclLoadDl.o" 8095 DL_LIBS="" 8096 LDFLAGS="$LDFLAGS -export-dynamic" 8097 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8098 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8099 if test "${TCL_THREADS}" = "1" ; then 8100 # The -pthread needs to go in the CFLAGS, not LIBS 8101 LIBS=`echo $LIBS | sed s/-pthread//` 8102 CFLAGS="$CFLAGS -pthread" 8103 LDFLAGS="$LDFLAGS -pthread" 8104 fi 8105 case $system in 8106 FreeBSD-3.*) 8107 # FreeBSD-3 doesn't handle version numbers with dots. 8108 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8109 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8110 TCL_LIB_VERSIONS_OK=nodots 8111 ;; 8112 esac 8113 ;; 8114 Darwin-*) 8115 CFLAGS_OPTIMIZE="-Os" 8116 SHLIB_CFLAGS="-fno-common" 8117 if test $do64bit = yes; then 8118 case `arch` in 8119 ppc) 8120 echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8121echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6 8122if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8123 echo $ECHO_N "(cached) $ECHO_C" >&6 8124else 8125 8126 hold_cflags=$CFLAGS 8127 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8128 cat >conftest.$ac_ext <<_ACEOF 8129/* confdefs.h. */ 8130_ACEOF 8131cat confdefs.h >>conftest.$ac_ext 8132cat >>conftest.$ac_ext <<_ACEOF 8133/* end confdefs.h. */ 8134 8135int 8136main () 8137{ 8138 8139 ; 8140 return 0; 8141} 8142_ACEOF 8143rm -f conftest.$ac_objext conftest$ac_exeext 8144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8145 (eval $ac_link) 2>conftest.er1 8146 ac_status=$? 8147 grep -v '^ *+' conftest.er1 >conftest.err 8148 rm -f conftest.er1 8149 cat conftest.err >&5 8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8151 (exit $ac_status); } && 8152 { ac_try='test -z "$ac_c_werror_flag" 8153 || test ! -s conftest.err' 8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8155 (eval $ac_try) 2>&5 8156 ac_status=$? 8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8158 (exit $ac_status); }; } && 8159 { ac_try='test -s conftest$ac_exeext' 8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8161 (eval $ac_try) 2>&5 8162 ac_status=$? 8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8164 (exit $ac_status); }; }; then 8165 tcl_cv_cc_arch_ppc64=yes 8166else 8167 echo "$as_me: failed program was:" >&5 8168sed 's/^/| /' conftest.$ac_ext >&5 8169 8170tcl_cv_cc_arch_ppc64=no 8171fi 8172rm -f conftest.err conftest.$ac_objext \ 8173 conftest$ac_exeext conftest.$ac_ext 8174 CFLAGS=$hold_cflags 8175fi 8176echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8177echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6 8178 if test $tcl_cv_cc_arch_ppc64 = yes; then 8179 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8180 do64bit_ok=yes 8181 fi;; 8182 i386) 8183 echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8184echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6 8185if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8186 echo $ECHO_N "(cached) $ECHO_C" >&6 8187else 8188 8189 hold_cflags=$CFLAGS 8190 CFLAGS="$CFLAGS -arch x86_64" 8191 cat >conftest.$ac_ext <<_ACEOF 8192/* confdefs.h. */ 8193_ACEOF 8194cat confdefs.h >>conftest.$ac_ext 8195cat >>conftest.$ac_ext <<_ACEOF 8196/* end confdefs.h. */ 8197 8198int 8199main () 8200{ 8201 8202 ; 8203 return 0; 8204} 8205_ACEOF 8206rm -f conftest.$ac_objext conftest$ac_exeext 8207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8208 (eval $ac_link) 2>conftest.er1 8209 ac_status=$? 8210 grep -v '^ *+' conftest.er1 >conftest.err 8211 rm -f conftest.er1 8212 cat conftest.err >&5 8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8214 (exit $ac_status); } && 8215 { ac_try='test -z "$ac_c_werror_flag" 8216 || test ! -s conftest.err' 8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8218 (eval $ac_try) 2>&5 8219 ac_status=$? 8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8221 (exit $ac_status); }; } && 8222 { ac_try='test -s conftest$ac_exeext' 8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8224 (eval $ac_try) 2>&5 8225 ac_status=$? 8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8227 (exit $ac_status); }; }; then 8228 tcl_cv_cc_arch_x86_64=yes 8229else 8230 echo "$as_me: failed program was:" >&5 8231sed 's/^/| /' conftest.$ac_ext >&5 8232 8233tcl_cv_cc_arch_x86_64=no 8234fi 8235rm -f conftest.err conftest.$ac_objext \ 8236 conftest$ac_exeext conftest.$ac_ext 8237 CFLAGS=$hold_cflags 8238fi 8239echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8240echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6 8241 if test $tcl_cv_cc_arch_x86_64 = yes; then 8242 CFLAGS="$CFLAGS -arch x86_64" 8243 do64bit_ok=yes 8244 fi;; 8245 *) 8246 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8247echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8248 esac 8249 else 8250 # Check for combined 32-bit and 64-bit fat build 8251 echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \ 8252 echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \ 8253 fat_32_64=yes 8254 fi 8255 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS here: 8256 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8257 echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8258echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6 8259if test "${tcl_cv_ld_single_module+set}" = set; then 8260 echo $ECHO_N "(cached) $ECHO_C" >&6 8261else 8262 8263 hold_ldflags=$LDFLAGS 8264 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8265 cat >conftest.$ac_ext <<_ACEOF 8266/* confdefs.h. */ 8267_ACEOF 8268cat confdefs.h >>conftest.$ac_ext 8269cat >>conftest.$ac_ext <<_ACEOF 8270/* end confdefs.h. */ 8271 8272int 8273main () 8274{ 8275int i; 8276 ; 8277 return 0; 8278} 8279_ACEOF 8280rm -f conftest.$ac_objext conftest$ac_exeext 8281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8282 (eval $ac_link) 2>conftest.er1 8283 ac_status=$? 8284 grep -v '^ *+' conftest.er1 >conftest.err 8285 rm -f conftest.er1 8286 cat conftest.err >&5 8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8288 (exit $ac_status); } && 8289 { ac_try='test -z "$ac_c_werror_flag" 8290 || test ! -s conftest.err' 8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8292 (eval $ac_try) 2>&5 8293 ac_status=$? 8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8295 (exit $ac_status); }; } && 8296 { ac_try='test -s conftest$ac_exeext' 8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8298 (eval $ac_try) 2>&5 8299 ac_status=$? 8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8301 (exit $ac_status); }; }; then 8302 tcl_cv_ld_single_module=yes 8303else 8304 echo "$as_me: failed program was:" >&5 8305sed 's/^/| /' conftest.$ac_ext >&5 8306 8307tcl_cv_ld_single_module=no 8308fi 8309rm -f conftest.err conftest.$ac_objext \ 8310 conftest$ac_exeext conftest.$ac_ext 8311 LDFLAGS=$hold_ldflags 8312fi 8313echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 8314echo "${ECHO_T}$tcl_cv_ld_single_module" >&6 8315 if test $tcl_cv_ld_single_module = yes; then 8316 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 8317 fi 8318 SHLIB_LD_LIBS='${LIBS}' 8319 SHLIB_SUFFIX=".dylib" 8320 DL_OBJS="tclLoadDyld.o" 8321 DL_LIBS="" 8322 # Don't use -prebind when building for Mac OS X 10.4 or later only: 8323 test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 8324 "`echo "${CFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \ 8325 LDFLAGS="$LDFLAGS -prebind" 8326 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 8327 echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 8328echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6 8329if test "${tcl_cv_ld_search_paths_first+set}" = set; then 8330 echo $ECHO_N "(cached) $ECHO_C" >&6 8331else 8332 8333 hold_ldflags=$LDFLAGS 8334 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8335 cat >conftest.$ac_ext <<_ACEOF 8336/* confdefs.h. */ 8337_ACEOF 8338cat confdefs.h >>conftest.$ac_ext 8339cat >>conftest.$ac_ext <<_ACEOF 8340/* end confdefs.h. */ 8341 8342int 8343main () 8344{ 8345int i; 8346 ; 8347 return 0; 8348} 8349_ACEOF 8350rm -f conftest.$ac_objext conftest$ac_exeext 8351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8352 (eval $ac_link) 2>conftest.er1 8353 ac_status=$? 8354 grep -v '^ *+' conftest.er1 >conftest.err 8355 rm -f conftest.er1 8356 cat conftest.err >&5 8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8358 (exit $ac_status); } && 8359 { ac_try='test -z "$ac_c_werror_flag" 8360 || test ! -s conftest.err' 8361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8362 (eval $ac_try) 2>&5 8363 ac_status=$? 8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8365 (exit $ac_status); }; } && 8366 { ac_try='test -s conftest$ac_exeext' 8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8368 (eval $ac_try) 2>&5 8369 ac_status=$? 8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8371 (exit $ac_status); }; }; then 8372 tcl_cv_ld_search_paths_first=yes 8373else 8374 echo "$as_me: failed program was:" >&5 8375sed 's/^/| /' conftest.$ac_ext >&5 8376 8377tcl_cv_ld_search_paths_first=no 8378fi 8379rm -f conftest.err conftest.$ac_objext \ 8380 conftest$ac_exeext conftest.$ac_ext 8381 LDFLAGS=$hold_ldflags 8382fi 8383echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 8384echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6 8385 if test $tcl_cv_ld_search_paths_first = yes; then 8386 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8387 fi 8388 CC_SEARCH_FLAGS="" 8389 LD_SEARCH_FLAGS="" 8390 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 8391 8392 # TEA specific: for Tk extensions, remove 64-bit arch flags from 8393 # CFLAGS for combined 32-bit and 64-bit fat builds as neither TkAqua 8394 # nor TkX11 can be built for 64-bit at present. 8395 test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}" && \ 8396 CFLAGS="`echo "$CFLAGS " | sed -e 's/-arch ppc64 / /g' -e 's/-arch x86_64 / /g'`" 8397 ;; 8398 NEXTSTEP-*) 8399 SHLIB_CFLAGS="" 8400 SHLIB_LD="cc -nostdlib -r" 8401 SHLIB_LD_LIBS="" 8402 SHLIB_SUFFIX=".so" 8403 DL_OBJS="tclLoadNext.o" 8404 DL_LIBS="" 8405 CC_SEARCH_FLAGS="" 8406 LD_SEARCH_FLAGS="" 8407 ;; 8408 OS/390-*) 8409 CFLAGS_OPTIMIZE="" # Optimizer is buggy 8410 8411cat >>confdefs.h <<\_ACEOF 8412#define _OE_SOCKETS 1 8413_ACEOF 8414 8415 ;; 8416 OSF1-1.0|OSF1-1.1|OSF1-1.2) 8417 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 8418 SHLIB_CFLAGS="" 8419 # Hack: make package name same as library name 8420 SHLIB_LD='ld -R -export :' 8421 SHLIB_LD_LIBS="" 8422 SHLIB_SUFFIX=".so" 8423 DL_OBJS="tclLoadOSF.o" 8424 DL_LIBS="" 8425 CC_SEARCH_FLAGS="" 8426 LD_SEARCH_FLAGS="" 8427 ;; 8428 OSF1-1.*) 8429 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 8430 SHLIB_CFLAGS="-fPIC" 8431 if test "$SHARED_BUILD" = "1" ; then 8432 SHLIB_LD="ld -shared" 8433 else 8434 SHLIB_LD="ld -non_shared" 8435 fi 8436 SHLIB_LD_LIBS="" 8437 SHLIB_SUFFIX=".so" 8438 DL_OBJS="tclLoadDl.o" 8439 DL_LIBS="" 8440 CC_SEARCH_FLAGS="" 8441 LD_SEARCH_FLAGS="" 8442 ;; 8443 OSF1-V*) 8444 # Digital OSF/1 8445 SHLIB_CFLAGS="" 8446 if test "$SHARED_BUILD" = "1" ; then 8447 SHLIB_LD='ld -shared -expect_unresolved "*"' 8448 else 8449 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 8450 fi 8451 SHLIB_LD_LIBS="" 8452 SHLIB_SUFFIX=".so" 8453 DL_OBJS="tclLoadDl.o" 8454 DL_LIBS="" 8455 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8456 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8457 if test "$GCC" = "yes" ; then 8458 CFLAGS="$CFLAGS -mieee" 8459 else 8460 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 8461 fi 8462 # see pthread_intro(3) for pthread support on osf1, k.furukawa 8463 if test "${TCL_THREADS}" = "1" ; then 8464 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 8465 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 8466 LIBS=`echo $LIBS | sed s/-lpthreads//` 8467 if test "$GCC" = "yes" ; then 8468 LIBS="$LIBS -lpthread -lmach -lexc" 8469 else 8470 CFLAGS="$CFLAGS -pthread" 8471 LDFLAGS="$LDFLAGS -pthread" 8472 fi 8473 fi 8474 8475 ;; 8476 QNX-6*) 8477 # QNX RTP 8478 # This may work for all QNX, but it was only reported for v6. 8479 SHLIB_CFLAGS="-fPIC" 8480 SHLIB_LD="ld -Bshareable -x" 8481 SHLIB_LD_LIBS="" 8482 SHLIB_SUFFIX=".so" 8483 DL_OBJS="tclLoadDl.o" 8484 # dlopen is in -lc on QNX 8485 DL_LIBS="" 8486 CC_SEARCH_FLAGS="" 8487 LD_SEARCH_FLAGS="" 8488 ;; 8489 SCO_SV-3.2*) 8490 # Note, dlopen is available only on SCO 3.2.5 and greater. However, 8491 # this test works, since "uname -s" was non-standard in 3.2.4 and 8492 # below. 8493 if test "$GCC" = "yes" ; then 8494 SHLIB_CFLAGS="-fPIC -melf" 8495 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 8496 else 8497 SHLIB_CFLAGS="-Kpic -belf" 8498 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 8499 fi 8500 SHLIB_LD="ld -G" 8501 SHLIB_LD_LIBS="" 8502 SHLIB_SUFFIX=".so" 8503 DL_OBJS="tclLoadDl.o" 8504 DL_LIBS="" 8505 CC_SEARCH_FLAGS="" 8506 LD_SEARCH_FLAGS="" 8507 ;; 8508 SINIX*5.4*) 8509 SHLIB_CFLAGS="-K PIC" 8510 SHLIB_LD="cc -G" 8511 SHLIB_LD_LIBS="" 8512 SHLIB_SUFFIX=".so" 8513 DL_OBJS="tclLoadDl.o" 8514 DL_LIBS="-ldl" 8515 CC_SEARCH_FLAGS="" 8516 LD_SEARCH_FLAGS="" 8517 ;; 8518 SunOS-4*) 8519 SHLIB_CFLAGS="-PIC" 8520 SHLIB_LD="ld" 8521 SHLIB_LD_LIBS="" 8522 SHLIB_SUFFIX=".so" 8523 DL_OBJS="tclLoadDl.o" 8524 DL_LIBS="-ldl" 8525 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8526 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8527 8528 # SunOS can't handle version numbers with dots in them in library 8529 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it 8530 # requires an extra version number at the end of .so file names. 8531 # So, the library has to have a name like libtcl75.so.1.0 8532 8533 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 8534 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8535 TCL_LIB_VERSIONS_OK=nodots 8536 ;; 8537 SunOS-5.[0-6]) 8538 # Careful to not let 5.10+ fall into this case 8539 8540 # Note: If _REENTRANT isn't defined, then Solaris 8541 # won't define thread-safe library routines. 8542 8543 8544cat >>confdefs.h <<\_ACEOF 8545#define _REENTRANT 1 8546_ACEOF 8547 8548 8549cat >>confdefs.h <<\_ACEOF 8550#define _POSIX_PTHREAD_SEMANTICS 1 8551_ACEOF 8552 8553 8554 SHLIB_CFLAGS="-KPIC" 8555 8556 # Note: need the LIBS below, otherwise Tk won't find Tcl's 8557 # symbols when dynamically loaded into tclsh. 8558 8559 SHLIB_LD_LIBS='${LIBS}' 8560 SHLIB_SUFFIX=".so" 8561 DL_OBJS="tclLoadDl.o" 8562 DL_LIBS="-ldl" 8563 if test "$GCC" = "yes" ; then 8564 SHLIB_LD="$CC -shared" 8565 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8566 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8567 else 8568 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8569 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8570 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8571 fi 8572 ;; 8573 SunOS-5*) 8574 # Note: If _REENTRANT isn't defined, then Solaris 8575 # won't define thread-safe library routines. 8576 8577 8578cat >>confdefs.h <<\_ACEOF 8579#define _REENTRANT 1 8580_ACEOF 8581 8582 8583cat >>confdefs.h <<\_ACEOF 8584#define _POSIX_PTHREAD_SEMANTICS 1 8585_ACEOF 8586 8587 8588 SHLIB_CFLAGS="-KPIC" 8589 8590 # Check to enable 64-bit flags for compiler/linker 8591 if test "$do64bit" = "yes" ; then 8592 arch=`isainfo` 8593 if test "$arch" = "sparcv9 sparc" ; then 8594 if test "$GCC" = "yes" ; then 8595 if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then 8596 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 8597echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 8598 else 8599 do64bit_ok=yes 8600 CFLAGS="$CFLAGS -m64 -mcpu=v9" 8601 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 8602 SHLIB_CFLAGS="-fPIC" 8603 fi 8604 else 8605 do64bit_ok=yes 8606 if test "$do64bitVIS" = "yes" ; then 8607 CFLAGS="$CFLAGS -xarch=v9a" 8608 LDFLAGS_ARCH="-xarch=v9a" 8609 else 8610 CFLAGS="$CFLAGS -xarch=v9" 8611 LDFLAGS_ARCH="-xarch=v9" 8612 fi 8613 # Solaris 64 uses this as well 8614 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 8615 fi 8616 elif test "$arch" = "amd64 i386" ; then 8617 if test "$GCC" = "yes" ; then 8618 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8619echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8620 else 8621 do64bit_ok=yes 8622 CFLAGS="$CFLAGS -xarch=amd64" 8623 LDFLAGS="$LDFLAGS -xarch=amd64" 8624 fi 8625 else 8626 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 8627echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 8628 fi 8629 fi 8630 8631 # Note: need the LIBS below, otherwise Tk won't find Tcl's 8632 # symbols when dynamically loaded into tclsh. 8633 8634 SHLIB_LD_LIBS='${LIBS}' 8635 SHLIB_SUFFIX=".so" 8636 DL_OBJS="tclLoadDl.o" 8637 DL_LIBS="-ldl" 8638 if test "$GCC" = "yes" ; then 8639 SHLIB_LD="$CC -shared" 8640 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8641 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8642 if test "$do64bit_ok" = "yes" ; then 8643 # We need to specify -static-libgcc or we need to 8644 # add the path to the sparv9 libgcc. 8645 # JH: static-libgcc is necessary for core Tcl, but may 8646 # not be necessary for extensions. 8647 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 8648 # for finding sparcv9 libgcc, get the regular libgcc 8649 # path, remove so name and append 'sparcv9' 8650 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 8651 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 8652 fi 8653 else 8654 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8655 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8656 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8657 fi 8658 ;; 8659 UNIX_SV* | UnixWare-5*) 8660 SHLIB_CFLAGS="-KPIC" 8661 SHLIB_LD="cc -G" 8662 SHLIB_LD_LIBS="" 8663 SHLIB_SUFFIX=".so" 8664 DL_OBJS="tclLoadDl.o" 8665 DL_LIBS="-ldl" 8666 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 8667 # that don't grok the -Bexport option. Test that it does. 8668 echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5 8669echo $ECHO_N "checking for ld accepts -Bexport flag... $ECHO_C" >&6 8670if test "${tcl_cv_ld_Bexport+set}" = set; then 8671 echo $ECHO_N "(cached) $ECHO_C" >&6 8672else 8673 8674 hold_ldflags=$LDFLAGS 8675 LDFLAGS="$LDFLAGS -Wl,-Bexport" 8676 cat >conftest.$ac_ext <<_ACEOF 8677/* confdefs.h. */ 8678_ACEOF 8679cat confdefs.h >>conftest.$ac_ext 8680cat >>conftest.$ac_ext <<_ACEOF 8681/* end confdefs.h. */ 8682 8683int 8684main () 8685{ 8686int i; 8687 ; 8688 return 0; 8689} 8690_ACEOF 8691rm -f conftest.$ac_objext conftest$ac_exeext 8692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8693 (eval $ac_link) 2>conftest.er1 8694 ac_status=$? 8695 grep -v '^ *+' conftest.er1 >conftest.err 8696 rm -f conftest.er1 8697 cat conftest.err >&5 8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8699 (exit $ac_status); } && 8700 { ac_try='test -z "$ac_c_werror_flag" 8701 || test ! -s conftest.err' 8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8703 (eval $ac_try) 2>&5 8704 ac_status=$? 8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8706 (exit $ac_status); }; } && 8707 { ac_try='test -s conftest$ac_exeext' 8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8709 (eval $ac_try) 2>&5 8710 ac_status=$? 8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8712 (exit $ac_status); }; }; then 8713 tcl_cv_ld_Bexport=yes 8714else 8715 echo "$as_me: failed program was:" >&5 8716sed 's/^/| /' conftest.$ac_ext >&5 8717 8718tcl_cv_ld_Bexport=no 8719fi 8720rm -f conftest.err conftest.$ac_objext \ 8721 conftest$ac_exeext conftest.$ac_ext 8722 LDFLAGS=$hold_ldflags 8723fi 8724echo "$as_me:$LINENO: result: $tcl_cv_ld_Bexport" >&5 8725echo "${ECHO_T}$tcl_cv_ld_Bexport" >&6 8726 if test $tcl_cv_ld_Bexport = yes; then 8727 LDFLAGS="$LDFLAGS -Wl,-Bexport" 8728 fi 8729 CC_SEARCH_FLAGS="" 8730 LD_SEARCH_FLAGS="" 8731 ;; 8732 esac 8733 8734 if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then 8735 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 8736echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 8737 fi 8738 8739 # Step 4: disable dynamic loading if requested via a command-line switch. 8740 8741 # Check whether --enable-load or --disable-load was given. 8742if test "${enable_load+set}" = set; then 8743 enableval="$enable_load" 8744 tcl_ok=$enableval 8745else 8746 tcl_ok=yes 8747fi; 8748 if test "$tcl_ok" = "no"; then 8749 DL_OBJS="" 8750 fi 8751 8752 if test "x$DL_OBJS" != "x" ; then 8753 BUILD_DLTEST="\$(DLTEST_TARGETS)" 8754 else 8755 echo "Can't figure out how to do dynamic loading or shared libraries" 8756 echo "on this system." 8757 SHLIB_CFLAGS="" 8758 SHLIB_LD="" 8759 SHLIB_SUFFIX="" 8760 DL_OBJS="tclLoadNone.o" 8761 DL_LIBS="" 8762 LDFLAGS="$LDFLAGS_ORIG" 8763 CC_SEARCH_FLAGS="" 8764 LD_SEARCH_FLAGS="" 8765 BUILD_DLTEST="" 8766 fi 8767 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 8768 8769 # If we're running gcc, then change the C flags for compiling shared 8770 # libraries to the right flags for gcc, instead of those for the 8771 # standard manufacturer compiler. 8772 8773 if test "$DL_OBJS" != "tclLoadNone.o" ; then 8774 if test "$GCC" = "yes" ; then 8775 case $system in 8776 AIX-*) 8777 ;; 8778 BSD/OS*) 8779 ;; 8780 IRIX*) 8781 ;; 8782 NetBSD-*|FreeBSD-*|DragonFly-*) 8783 ;; 8784 Darwin-*) 8785 ;; 8786 SCO_SV-3.2*) 8787 ;; 8788 windows) 8789 ;; 8790 *) 8791 SHLIB_CFLAGS="-fPIC" 8792 ;; 8793 esac 8794 fi 8795 fi 8796 8797 if test "$SHARED_LIB_SUFFIX" = "" ; then 8798 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 8799 fi 8800 if test "$UNSHARED_LIB_SUFFIX" = "" ; then 8801 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 8802 fi 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 # These must be called after we do the basic CFLAGS checks and 8819 # verify any possible 64-bit or similar switches are necessary 8820 8821 echo "$as_me:$LINENO: checking for required early compiler flags" >&5 8822echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6 8823 tcl_flags="" 8824 8825 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 8826 echo $ECHO_N "(cached) $ECHO_C" >&6 8827else 8828 cat >conftest.$ac_ext <<_ACEOF 8829/* confdefs.h. */ 8830_ACEOF 8831cat confdefs.h >>conftest.$ac_ext 8832cat >>conftest.$ac_ext <<_ACEOF 8833/* end confdefs.h. */ 8834#include <stdlib.h> 8835int 8836main () 8837{ 8838char *p = (char *)strtoll; char *q = (char *)strtoull; 8839 ; 8840 return 0; 8841} 8842_ACEOF 8843rm -f conftest.$ac_objext 8844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8845 (eval $ac_compile) 2>conftest.er1 8846 ac_status=$? 8847 grep -v '^ *+' conftest.er1 >conftest.err 8848 rm -f conftest.er1 8849 cat conftest.err >&5 8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8851 (exit $ac_status); } && 8852 { ac_try='test -z "$ac_c_werror_flag" 8853 || test ! -s conftest.err' 8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8855 (eval $ac_try) 2>&5 8856 ac_status=$? 8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8858 (exit $ac_status); }; } && 8859 { ac_try='test -s conftest.$ac_objext' 8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8861 (eval $ac_try) 2>&5 8862 ac_status=$? 8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8864 (exit $ac_status); }; }; then 8865 tcl_cv_flag__isoc99_source=no 8866else 8867 echo "$as_me: failed program was:" >&5 8868sed 's/^/| /' conftest.$ac_ext >&5 8869 8870cat >conftest.$ac_ext <<_ACEOF 8871/* confdefs.h. */ 8872_ACEOF 8873cat confdefs.h >>conftest.$ac_ext 8874cat >>conftest.$ac_ext <<_ACEOF 8875/* end confdefs.h. */ 8876#define _ISOC99_SOURCE 1 8877#include <stdlib.h> 8878int 8879main () 8880{ 8881char *p = (char *)strtoll; char *q = (char *)strtoull; 8882 ; 8883 return 0; 8884} 8885_ACEOF 8886rm -f conftest.$ac_objext 8887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8888 (eval $ac_compile) 2>conftest.er1 8889 ac_status=$? 8890 grep -v '^ *+' conftest.er1 >conftest.err 8891 rm -f conftest.er1 8892 cat conftest.err >&5 8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8894 (exit $ac_status); } && 8895 { ac_try='test -z "$ac_c_werror_flag" 8896 || test ! -s conftest.err' 8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8898 (eval $ac_try) 2>&5 8899 ac_status=$? 8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8901 (exit $ac_status); }; } && 8902 { ac_try='test -s conftest.$ac_objext' 8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8904 (eval $ac_try) 2>&5 8905 ac_status=$? 8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8907 (exit $ac_status); }; }; then 8908 tcl_cv_flag__isoc99_source=yes 8909else 8910 echo "$as_me: failed program was:" >&5 8911sed 's/^/| /' conftest.$ac_ext >&5 8912 8913tcl_cv_flag__isoc99_source=no 8914fi 8915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8916fi 8917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8918fi 8919 8920 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 8921 8922cat >>confdefs.h <<\_ACEOF 8923#define _ISOC99_SOURCE 1 8924_ACEOF 8925 8926 tcl_flags="$tcl_flags _ISOC99_SOURCE" 8927 fi 8928 8929 8930 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 8931 echo $ECHO_N "(cached) $ECHO_C" >&6 8932else 8933 cat >conftest.$ac_ext <<_ACEOF 8934/* confdefs.h. */ 8935_ACEOF 8936cat confdefs.h >>conftest.$ac_ext 8937cat >>conftest.$ac_ext <<_ACEOF 8938/* end confdefs.h. */ 8939#include <sys/stat.h> 8940int 8941main () 8942{ 8943struct stat64 buf; int i = stat64("/", &buf); 8944 ; 8945 return 0; 8946} 8947_ACEOF 8948rm -f conftest.$ac_objext 8949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8950 (eval $ac_compile) 2>conftest.er1 8951 ac_status=$? 8952 grep -v '^ *+' conftest.er1 >conftest.err 8953 rm -f conftest.er1 8954 cat conftest.err >&5 8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8956 (exit $ac_status); } && 8957 { ac_try='test -z "$ac_c_werror_flag" 8958 || test ! -s conftest.err' 8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8960 (eval $ac_try) 2>&5 8961 ac_status=$? 8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8963 (exit $ac_status); }; } && 8964 { ac_try='test -s conftest.$ac_objext' 8965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8966 (eval $ac_try) 2>&5 8967 ac_status=$? 8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8969 (exit $ac_status); }; }; then 8970 tcl_cv_flag__largefile64_source=no 8971else 8972 echo "$as_me: failed program was:" >&5 8973sed 's/^/| /' conftest.$ac_ext >&5 8974 8975cat >conftest.$ac_ext <<_ACEOF 8976/* confdefs.h. */ 8977_ACEOF 8978cat confdefs.h >>conftest.$ac_ext 8979cat >>conftest.$ac_ext <<_ACEOF 8980/* end confdefs.h. */ 8981#define _LARGEFILE64_SOURCE 1 8982#include <sys/stat.h> 8983int 8984main () 8985{ 8986struct stat64 buf; int i = stat64("/", &buf); 8987 ; 8988 return 0; 8989} 8990_ACEOF 8991rm -f conftest.$ac_objext 8992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8993 (eval $ac_compile) 2>conftest.er1 8994 ac_status=$? 8995 grep -v '^ *+' conftest.er1 >conftest.err 8996 rm -f conftest.er1 8997 cat conftest.err >&5 8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8999 (exit $ac_status); } && 9000 { ac_try='test -z "$ac_c_werror_flag" 9001 || test ! -s conftest.err' 9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9003 (eval $ac_try) 2>&5 9004 ac_status=$? 9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9006 (exit $ac_status); }; } && 9007 { ac_try='test -s conftest.$ac_objext' 9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9009 (eval $ac_try) 2>&5 9010 ac_status=$? 9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9012 (exit $ac_status); }; }; then 9013 tcl_cv_flag__largefile64_source=yes 9014else 9015 echo "$as_me: failed program was:" >&5 9016sed 's/^/| /' conftest.$ac_ext >&5 9017 9018tcl_cv_flag__largefile64_source=no 9019fi 9020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9021fi 9022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9023fi 9024 9025 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9026 9027cat >>confdefs.h <<\_ACEOF 9028#define _LARGEFILE64_SOURCE 1 9029_ACEOF 9030 9031 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9032 fi 9033 9034 9035 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9036 echo $ECHO_N "(cached) $ECHO_C" >&6 9037else 9038 cat >conftest.$ac_ext <<_ACEOF 9039/* confdefs.h. */ 9040_ACEOF 9041cat confdefs.h >>conftest.$ac_ext 9042cat >>conftest.$ac_ext <<_ACEOF 9043/* end confdefs.h. */ 9044#include <sys/stat.h> 9045int 9046main () 9047{ 9048char *p = (char *)open64; 9049 ; 9050 return 0; 9051} 9052_ACEOF 9053rm -f conftest.$ac_objext 9054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9055 (eval $ac_compile) 2>conftest.er1 9056 ac_status=$? 9057 grep -v '^ *+' conftest.er1 >conftest.err 9058 rm -f conftest.er1 9059 cat conftest.err >&5 9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9061 (exit $ac_status); } && 9062 { ac_try='test -z "$ac_c_werror_flag" 9063 || test ! -s conftest.err' 9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9065 (eval $ac_try) 2>&5 9066 ac_status=$? 9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9068 (exit $ac_status); }; } && 9069 { ac_try='test -s conftest.$ac_objext' 9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9071 (eval $ac_try) 2>&5 9072 ac_status=$? 9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9074 (exit $ac_status); }; }; then 9075 tcl_cv_flag__largefile_source64=no 9076else 9077 echo "$as_me: failed program was:" >&5 9078sed 's/^/| /' conftest.$ac_ext >&5 9079 9080cat >conftest.$ac_ext <<_ACEOF 9081/* confdefs.h. */ 9082_ACEOF 9083cat confdefs.h >>conftest.$ac_ext 9084cat >>conftest.$ac_ext <<_ACEOF 9085/* end confdefs.h. */ 9086#define _LARGEFILE_SOURCE64 1 9087#include <sys/stat.h> 9088int 9089main () 9090{ 9091char *p = (char *)open64; 9092 ; 9093 return 0; 9094} 9095_ACEOF 9096rm -f conftest.$ac_objext 9097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9098 (eval $ac_compile) 2>conftest.er1 9099 ac_status=$? 9100 grep -v '^ *+' conftest.er1 >conftest.err 9101 rm -f conftest.er1 9102 cat conftest.err >&5 9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9104 (exit $ac_status); } && 9105 { ac_try='test -z "$ac_c_werror_flag" 9106 || test ! -s conftest.err' 9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9108 (eval $ac_try) 2>&5 9109 ac_status=$? 9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9111 (exit $ac_status); }; } && 9112 { ac_try='test -s conftest.$ac_objext' 9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9114 (eval $ac_try) 2>&5 9115 ac_status=$? 9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9117 (exit $ac_status); }; }; then 9118 tcl_cv_flag__largefile_source64=yes 9119else 9120 echo "$as_me: failed program was:" >&5 9121sed 's/^/| /' conftest.$ac_ext >&5 9122 9123tcl_cv_flag__largefile_source64=no 9124fi 9125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9126fi 9127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9128fi 9129 9130 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9131 9132cat >>confdefs.h <<\_ACEOF 9133#define _LARGEFILE_SOURCE64 1 9134_ACEOF 9135 9136 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9137 fi 9138 9139 if test "x${tcl_flags}" = "x" ; then 9140 echo "$as_me:$LINENO: result: none" >&5 9141echo "${ECHO_T}none" >&6 9142 else 9143 echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9144echo "${ECHO_T}${tcl_flags}" >&6 9145 fi 9146 9147 9148 echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9149echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6 9150 if test "${tcl_cv_type_64bit+set}" = set; then 9151 echo $ECHO_N "(cached) $ECHO_C" >&6 9152else 9153 9154 tcl_cv_type_64bit=none 9155 # See if the compiler knows natively about __int64 9156 cat >conftest.$ac_ext <<_ACEOF 9157/* confdefs.h. */ 9158_ACEOF 9159cat confdefs.h >>conftest.$ac_ext 9160cat >>conftest.$ac_ext <<_ACEOF 9161/* end confdefs.h. */ 9162 9163int 9164main () 9165{ 9166__int64 value = (__int64) 0; 9167 ; 9168 return 0; 9169} 9170_ACEOF 9171rm -f conftest.$ac_objext 9172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9173 (eval $ac_compile) 2>conftest.er1 9174 ac_status=$? 9175 grep -v '^ *+' conftest.er1 >conftest.err 9176 rm -f conftest.er1 9177 cat conftest.err >&5 9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9179 (exit $ac_status); } && 9180 { ac_try='test -z "$ac_c_werror_flag" 9181 || test ! -s conftest.err' 9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9183 (eval $ac_try) 2>&5 9184 ac_status=$? 9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9186 (exit $ac_status); }; } && 9187 { ac_try='test -s conftest.$ac_objext' 9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9189 (eval $ac_try) 2>&5 9190 ac_status=$? 9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9192 (exit $ac_status); }; }; then 9193 tcl_type_64bit=__int64 9194else 9195 echo "$as_me: failed program was:" >&5 9196sed 's/^/| /' conftest.$ac_ext >&5 9197 9198tcl_type_64bit="long long" 9199fi 9200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9201 # See if we should use long anyway Note that we substitute in the 9202 # type that is our current guess for a 64-bit type inside this check 9203 # program, so it should be modified only carefully... 9204 cat >conftest.$ac_ext <<_ACEOF 9205/* confdefs.h. */ 9206_ACEOF 9207cat confdefs.h >>conftest.$ac_ext 9208cat >>conftest.$ac_ext <<_ACEOF 9209/* end confdefs.h. */ 9210 9211int 9212main () 9213{ 9214switch (0) { 9215 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9216 } 9217 ; 9218 return 0; 9219} 9220_ACEOF 9221rm -f conftest.$ac_objext 9222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9223 (eval $ac_compile) 2>conftest.er1 9224 ac_status=$? 9225 grep -v '^ *+' conftest.er1 >conftest.err 9226 rm -f conftest.er1 9227 cat conftest.err >&5 9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9229 (exit $ac_status); } && 9230 { ac_try='test -z "$ac_c_werror_flag" 9231 || test ! -s conftest.err' 9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9233 (eval $ac_try) 2>&5 9234 ac_status=$? 9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9236 (exit $ac_status); }; } && 9237 { ac_try='test -s conftest.$ac_objext' 9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9239 (eval $ac_try) 2>&5 9240 ac_status=$? 9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9242 (exit $ac_status); }; }; then 9243 tcl_cv_type_64bit=${tcl_type_64bit} 9244else 9245 echo "$as_me: failed program was:" >&5 9246sed 's/^/| /' conftest.$ac_ext >&5 9247 9248fi 9249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9250fi 9251 9252 if test "${tcl_cv_type_64bit}" = none ; then 9253 9254cat >>confdefs.h <<\_ACEOF 9255#define TCL_WIDE_INT_IS_LONG 1 9256_ACEOF 9257 9258 echo "$as_me:$LINENO: result: using long" >&5 9259echo "${ECHO_T}using long" >&6 9260 elif test "${tcl_cv_type_64bit}" = "__int64" \ 9261 -a "${TEA_PLATFORM}" = "windows" ; then 9262 # We actually want to use the default tcl.h checks in this 9263 # case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 9264 echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 9265echo "${ECHO_T}using Tcl header defaults" >&6 9266 else 9267 9268cat >>confdefs.h <<_ACEOF 9269#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 9270_ACEOF 9271 9272 echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 9273echo "${ECHO_T}${tcl_cv_type_64bit}" >&6 9274 9275 # Now check for auxiliary declarations 9276 echo "$as_me:$LINENO: checking for struct dirent64" >&5 9277echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6 9278if test "${tcl_cv_struct_dirent64+set}" = set; then 9279 echo $ECHO_N "(cached) $ECHO_C" >&6 9280else 9281 9282 cat >conftest.$ac_ext <<_ACEOF 9283/* confdefs.h. */ 9284_ACEOF 9285cat confdefs.h >>conftest.$ac_ext 9286cat >>conftest.$ac_ext <<_ACEOF 9287/* end confdefs.h. */ 9288#include <sys/types.h> 9289#include <sys/dirent.h> 9290int 9291main () 9292{ 9293struct dirent64 p; 9294 ; 9295 return 0; 9296} 9297_ACEOF 9298rm -f conftest.$ac_objext 9299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9300 (eval $ac_compile) 2>conftest.er1 9301 ac_status=$? 9302 grep -v '^ *+' conftest.er1 >conftest.err 9303 rm -f conftest.er1 9304 cat conftest.err >&5 9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9306 (exit $ac_status); } && 9307 { ac_try='test -z "$ac_c_werror_flag" 9308 || test ! -s conftest.err' 9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9310 (eval $ac_try) 2>&5 9311 ac_status=$? 9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9313 (exit $ac_status); }; } && 9314 { ac_try='test -s conftest.$ac_objext' 9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9316 (eval $ac_try) 2>&5 9317 ac_status=$? 9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9319 (exit $ac_status); }; }; then 9320 tcl_cv_struct_dirent64=yes 9321else 9322 echo "$as_me: failed program was:" >&5 9323sed 's/^/| /' conftest.$ac_ext >&5 9324 9325tcl_cv_struct_dirent64=no 9326fi 9327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9328fi 9329echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 9330echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6 9331 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 9332 9333cat >>confdefs.h <<\_ACEOF 9334#define HAVE_STRUCT_DIRENT64 1 9335_ACEOF 9336 9337 fi 9338 9339 echo "$as_me:$LINENO: checking for struct stat64" >&5 9340echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6 9341if test "${tcl_cv_struct_stat64+set}" = set; then 9342 echo $ECHO_N "(cached) $ECHO_C" >&6 9343else 9344 9345 cat >conftest.$ac_ext <<_ACEOF 9346/* confdefs.h. */ 9347_ACEOF 9348cat confdefs.h >>conftest.$ac_ext 9349cat >>conftest.$ac_ext <<_ACEOF 9350/* end confdefs.h. */ 9351#include <sys/stat.h> 9352int 9353main () 9354{ 9355struct stat64 p; 9356 9357 ; 9358 return 0; 9359} 9360_ACEOF 9361rm -f conftest.$ac_objext 9362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9363 (eval $ac_compile) 2>conftest.er1 9364 ac_status=$? 9365 grep -v '^ *+' conftest.er1 >conftest.err 9366 rm -f conftest.er1 9367 cat conftest.err >&5 9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9369 (exit $ac_status); } && 9370 { ac_try='test -z "$ac_c_werror_flag" 9371 || test ! -s conftest.err' 9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9373 (eval $ac_try) 2>&5 9374 ac_status=$? 9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9376 (exit $ac_status); }; } && 9377 { ac_try='test -s conftest.$ac_objext' 9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9379 (eval $ac_try) 2>&5 9380 ac_status=$? 9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9382 (exit $ac_status); }; }; then 9383 tcl_cv_struct_stat64=yes 9384else 9385 echo "$as_me: failed program was:" >&5 9386sed 's/^/| /' conftest.$ac_ext >&5 9387 9388tcl_cv_struct_stat64=no 9389fi 9390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9391fi 9392echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 9393echo "${ECHO_T}$tcl_cv_struct_stat64" >&6 9394 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 9395 9396cat >>confdefs.h <<\_ACEOF 9397#define HAVE_STRUCT_STAT64 1 9398_ACEOF 9399 9400 fi 9401 9402 9403 9404for ac_func in open64 lseek64 9405do 9406as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9407echo "$as_me:$LINENO: checking for $ac_func" >&5 9408echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9409if eval "test \"\${$as_ac_var+set}\" = set"; then 9410 echo $ECHO_N "(cached) $ECHO_C" >&6 9411else 9412 cat >conftest.$ac_ext <<_ACEOF 9413/* confdefs.h. */ 9414_ACEOF 9415cat confdefs.h >>conftest.$ac_ext 9416cat >>conftest.$ac_ext <<_ACEOF 9417/* end confdefs.h. */ 9418/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9419 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9420#define $ac_func innocuous_$ac_func 9421 9422/* System header to define __stub macros and hopefully few prototypes, 9423 which can conflict with char $ac_func (); below. 9424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9425 <limits.h> exists even on freestanding compilers. */ 9426 9427#ifdef __STDC__ 9428# include <limits.h> 9429#else 9430# include <assert.h> 9431#endif 9432 9433#undef $ac_func 9434 9435/* Override any gcc2 internal prototype to avoid an error. */ 9436#ifdef __cplusplus 9437extern "C" 9438{ 9439#endif 9440/* We use char because int might match the return type of a gcc2 9441 builtin and then its argument prototype would still apply. */ 9442char $ac_func (); 9443/* The GNU C library defines this for functions which it implements 9444 to always fail with ENOSYS. Some functions are actually named 9445 something starting with __ and the normal name is an alias. */ 9446#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9447choke me 9448#else 9449char (*f) () = $ac_func; 9450#endif 9451#ifdef __cplusplus 9452} 9453#endif 9454 9455int 9456main () 9457{ 9458return f != $ac_func; 9459 ; 9460 return 0; 9461} 9462_ACEOF 9463rm -f conftest.$ac_objext conftest$ac_exeext 9464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9465 (eval $ac_link) 2>conftest.er1 9466 ac_status=$? 9467 grep -v '^ *+' conftest.er1 >conftest.err 9468 rm -f conftest.er1 9469 cat conftest.err >&5 9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9471 (exit $ac_status); } && 9472 { ac_try='test -z "$ac_c_werror_flag" 9473 || test ! -s conftest.err' 9474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9475 (eval $ac_try) 2>&5 9476 ac_status=$? 9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9478 (exit $ac_status); }; } && 9479 { ac_try='test -s conftest$ac_exeext' 9480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9481 (eval $ac_try) 2>&5 9482 ac_status=$? 9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9484 (exit $ac_status); }; }; then 9485 eval "$as_ac_var=yes" 9486else 9487 echo "$as_me: failed program was:" >&5 9488sed 's/^/| /' conftest.$ac_ext >&5 9489 9490eval "$as_ac_var=no" 9491fi 9492rm -f conftest.err conftest.$ac_objext \ 9493 conftest$ac_exeext conftest.$ac_ext 9494fi 9495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9496echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9497if test `eval echo '${'$as_ac_var'}'` = yes; then 9498 cat >>confdefs.h <<_ACEOF 9499#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9500_ACEOF 9501 9502fi 9503done 9504 9505 echo "$as_me:$LINENO: checking for off64_t" >&5 9506echo $ECHO_N "checking for off64_t... $ECHO_C" >&6 9507 if test "${tcl_cv_type_off64_t+set}" = set; then 9508 echo $ECHO_N "(cached) $ECHO_C" >&6 9509else 9510 9511 cat >conftest.$ac_ext <<_ACEOF 9512/* confdefs.h. */ 9513_ACEOF 9514cat confdefs.h >>conftest.$ac_ext 9515cat >>conftest.$ac_ext <<_ACEOF 9516/* end confdefs.h. */ 9517#include <sys/types.h> 9518int 9519main () 9520{ 9521off64_t offset; 9522 9523 ; 9524 return 0; 9525} 9526_ACEOF 9527rm -f conftest.$ac_objext 9528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9529 (eval $ac_compile) 2>conftest.er1 9530 ac_status=$? 9531 grep -v '^ *+' conftest.er1 >conftest.err 9532 rm -f conftest.er1 9533 cat conftest.err >&5 9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9535 (exit $ac_status); } && 9536 { ac_try='test -z "$ac_c_werror_flag" 9537 || test ! -s conftest.err' 9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9539 (eval $ac_try) 2>&5 9540 ac_status=$? 9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9542 (exit $ac_status); }; } && 9543 { ac_try='test -s conftest.$ac_objext' 9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9545 (eval $ac_try) 2>&5 9546 ac_status=$? 9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9548 (exit $ac_status); }; }; then 9549 tcl_cv_type_off64_t=yes 9550else 9551 echo "$as_me: failed program was:" >&5 9552sed 's/^/| /' conftest.$ac_ext >&5 9553 9554tcl_cv_type_off64_t=no 9555fi 9556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9557fi 9558 9559 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 9560 test "x${ac_cv_func_lseek64}" = "xyes" && \ 9561 test "x${ac_cv_func_open64}" = "xyes" ; then 9562 9563cat >>confdefs.h <<\_ACEOF 9564#define HAVE_TYPE_OFF64_T 1 9565_ACEOF 9566 9567 echo "$as_me:$LINENO: result: yes" >&5 9568echo "${ECHO_T}yes" >&6 9569 else 9570 echo "$as_me:$LINENO: result: no" >&5 9571echo "${ECHO_T}no" >&6 9572 fi 9573 fi 9574 9575 9576 9577 9578 echo "$as_me:$LINENO: checking for build with symbols" >&5 9579echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6 9580 # Check whether --enable-symbols or --disable-symbols was given. 9581if test "${enable_symbols+set}" = set; then 9582 enableval="$enable_symbols" 9583 tcl_ok=$enableval 9584else 9585 tcl_ok=no 9586fi; 9587 DBGX="" 9588 if test "$tcl_ok" = "no"; then 9589 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 9590 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 9591 echo "$as_me:$LINENO: result: no" >&5 9592echo "${ECHO_T}no" >&6 9593 else 9594 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 9595 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 9596 if test "$tcl_ok" = "yes"; then 9597 echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 9598echo "${ECHO_T}yes (standard debugging)" >&6 9599 fi 9600 fi 9601 if test "${TEA_PLATFORM}" != "windows" ; then 9602 LDFLAGS_DEFAULT="${LDFLAGS}" 9603 fi 9604 9605 9606 9607 9608 9609 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 9610 9611cat >>confdefs.h <<\_ACEOF 9612#define TCL_MEM_DEBUG 1 9613_ACEOF 9614 9615 fi 9616 9617 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 9618 if test "$tcl_ok" = "all"; then 9619 echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 9620echo "${ECHO_T}enabled symbols mem debugging" >&6 9621 else 9622 echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 9623echo "${ECHO_T}enabled $tcl_ok debugging" >&6 9624 fi 9625 fi 9626 9627 9628if test "${SHARED_BUILD}" = "1"; then 9629cat >>confdefs.h <<\_ACEOF 9630#define USE_TCL_STUBS 1 9631_ACEOF 9632fi 9633 9634 9635 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 9636 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 9637 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 9638 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 9639 else 9640 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 9641 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 9642 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 9643 fi 9644 9645 if test "${SHARED_BUILD}" = "1" ; then 9646 MAKE_LIB="${MAKE_SHARED_LIB} " 9647 else 9648 MAKE_LIB="${MAKE_STATIC_LIB} " 9649 fi 9650 9651 #-------------------------------------------------------------------- 9652 # Shared libraries and static libraries have different names. 9653 # Use the double eval to make sure any variables in the suffix is 9654 # substituted. (@@@ Might not be necessary anymore) 9655 #-------------------------------------------------------------------- 9656 9657 if test "${TEA_PLATFORM}" = "windows" ; then 9658 if test "${SHARED_BUILD}" = "1" ; then 9659 # We force the unresolved linking of symbols that are really in 9660 # the private libraries of Tcl and Tk. 9661 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 9662 if test x"${TK_BIN_DIR}" != x ; then 9663 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 9664 fi 9665 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 9666 else 9667 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 9668 fi 9669 # Some packages build their own stubs libraries 9670 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 9671 if test "$GCC" = "yes"; then 9672 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 9673 fi 9674 # These aren't needed on Windows (either MSVC or gcc) 9675 RANLIB=: 9676 RANLIB_STUB=: 9677 else 9678 RANLIB_STUB="${RANLIB}" 9679 if test "${SHARED_BUILD}" = "1" ; then 9680 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 9681 if test x"${TK_BIN_DIR}" != x ; then 9682 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 9683 fi 9684 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 9685 RANLIB=: 9686 else 9687 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 9688 fi 9689 # Some packages build their own stubs libraries 9690 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 9691 fi 9692 9693 # These are escaped so that only CFLAGS is picked up at configure time. 9694 # The other values will be substituted at make time. 9695 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 9696 if test "${SHARED_BUILD}" = "1" ; then 9697 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 9698 fi 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 echo "$as_me:$LINENO: checking for tclsh" >&5 9709echo $ECHO_N "checking for tclsh... $ECHO_C" >&6 9710 if test -f "${TCL_BIN_DIR}/Makefile" ; then 9711 # tclConfig.sh is in Tcl build directory 9712 if test "${TEA_PLATFORM}" = "windows"; then 9713 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 9714 else 9715 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 9716 fi 9717 else 9718 # tclConfig.sh is in install location 9719 if test "${TEA_PLATFORM}" = "windows"; then 9720 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 9721 else 9722 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 9723 fi 9724 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 9725 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 9726 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 9727 for i in $list ; do 9728 if test -f "$i/${TCLSH_PROG}" ; then 9729 REAL_TCL_BIN_DIR="`cd "$i"; pwd`" 9730 break 9731 fi 9732 done 9733 TCLSH_PROG="${REAL_TCL_BIN_DIR}/${TCLSH_PROG}" 9734 fi 9735 echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 9736echo "${ECHO_T}${TCLSH_PROG}" >&6 9737 9738 9739 9740 ac_config_files="$ac_config_files Makefile pkgIndex.tcl" 9741cat >confcache <<\_ACEOF 9742# This file is a shell script that caches the results of configure 9743# tests run on this system so they can be shared between configure 9744# scripts and configure runs, see configure's option --config-cache. 9745# It is not useful on other systems. If it contains results you don't 9746# want to keep, you may remove or edit it. 9747# 9748# config.status only pays attention to the cache file if you give it 9749# the --recheck option to rerun configure. 9750# 9751# `ac_cv_env_foo' variables (set or unset) will be overridden when 9752# loading this file, other *unset* `ac_cv_foo' will be assigned the 9753# following values. 9754 9755_ACEOF 9756 9757# The following way of writing the cache mishandles newlines in values, 9758# but we know of no workaround that is simple, portable, and efficient. 9759# So, don't put newlines in cache variables' values. 9760# Ultrix sh set writes to stderr and can't be redirected directly, 9761# and sets the high bit in the cache file unless we assign to the vars. 9762{ 9763 (set) 2>&1 | 9764 case `(ac_space=' '; set | grep ac_space) 2>&1` in 9765 *ac_space=\ *) 9766 # `set' does not quote correctly, so add quotes (double-quote 9767 # substitution turns \\\\ into \\, and sed turns \\ into \). 9768 sed -n \ 9769 "s/'/'\\\\''/g; 9770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9771 ;; 9772 *) 9773 # `set' quotes correctly as required by POSIX, so do not add quotes. 9774 sed -n \ 9775 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 9776 ;; 9777 esac; 9778} | 9779 sed ' 9780 t clear 9781 : clear 9782 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9783 t end 9784 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9785 : end' >>confcache 9786if diff $cache_file confcache >/dev/null 2>&1; then :; else 9787 if test -w $cache_file; then 9788 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 9789 cat confcache >$cache_file 9790 else 9791 echo "not updating unwritable cache $cache_file" 9792 fi 9793fi 9794rm -f confcache 9795 9796test "x$prefix" = xNONE && prefix=$ac_default_prefix 9797# Let make expand exec_prefix. 9798test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9799 9800# VPATH may cause trouble with some makes, so we remove $(srcdir), 9801# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 9802# trailing colons and then remove the whole line if VPATH becomes empty 9803# (actually we leave an empty line to preserve line numbers). 9804if test "x$srcdir" = x.; then 9805 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 9806s/:*\$(srcdir):*/:/; 9807s/:*\${srcdir}:*/:/; 9808s/:*@srcdir@:*/:/; 9809s/^\([^=]*=[ ]*\):*/\1/; 9810s/:*$//; 9811s/^[^=]*=[ ]*$//; 9812}' 9813fi 9814 9815# Transform confdefs.h into DEFS. 9816# Protect against shell expansion while executing Makefile rules. 9817# Protect against Makefile macro expansion. 9818# 9819# If the first sed substitution is executed (which looks for macros that 9820# take arguments), then we branch to the quote section. Otherwise, 9821# look for a macro that doesn't take arguments. 9822cat >confdef2opt.sed <<\_ACEOF 9823t clear 9824: clear 9825s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 9826t quote 9827s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 9828t quote 9829d 9830: quote 9831s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 9832s,\[,\\&,g 9833s,\],\\&,g 9834s,\$,$$,g 9835p 9836_ACEOF 9837# We use echo to avoid assuming a particular line-breaking character. 9838# The extra dot is to prevent the shell from consuming trailing 9839# line-breaks from the sub-command output. A line-break within 9840# single-quotes doesn't work because, if this script is created in a 9841# platform that uses two characters for line-breaks (e.g., DOS), tr 9842# would break. 9843ac_LF_and_DOT=`echo; echo .` 9844DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 9845rm -f confdef2opt.sed 9846 9847 9848ac_libobjs= 9849ac_ltlibobjs= 9850for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9851 # 1. Remove the extension, and $U if already installed. 9852 ac_i=`echo "$ac_i" | 9853 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 9854 # 2. Add them. 9855 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 9856 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 9857done 9858LIBOBJS=$ac_libobjs 9859 9860LTLIBOBJS=$ac_ltlibobjs 9861 9862 9863 9864: ${CONFIG_STATUS=./config.status} 9865ac_clean_files_save=$ac_clean_files 9866ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9867{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 9868echo "$as_me: creating $CONFIG_STATUS" >&6;} 9869cat >$CONFIG_STATUS <<_ACEOF 9870#! $SHELL 9871# Generated by $as_me. 9872# Run this file to recreate the current configuration. 9873# Compiler output produced by configure, useful for debugging 9874# configure, is in config.log if it exists. 9875 9876debug=false 9877ac_cs_recheck=false 9878ac_cs_silent=false 9879SHELL=\${CONFIG_SHELL-$SHELL} 9880_ACEOF 9881 9882cat >>$CONFIG_STATUS <<\_ACEOF 9883## --------------------- ## 9884## M4sh Initialization. ## 9885## --------------------- ## 9886 9887# Be Bourne compatible 9888if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 9889 emulate sh 9890 NULLCMD=: 9891 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 9892 # is contrary to our usage. Disable this feature. 9893 alias -g '${1+"$@"}'='"$@"' 9894elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 9895 set -o posix 9896fi 9897DUALCASE=1; export DUALCASE # for MKS sh 9898 9899# Support unset when possible. 9900if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9901 as_unset=unset 9902else 9903 as_unset=false 9904fi 9905 9906 9907# Work around bugs in pre-3.0 UWIN ksh. 9908$as_unset ENV MAIL MAILPATH 9909PS1='$ ' 9910PS2='> ' 9911PS4='+ ' 9912 9913# NLS nuisances. 9914for as_var in \ 9915 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 9916 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 9917 LC_TELEPHONE LC_TIME 9918do 9919 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 9920 eval $as_var=C; export $as_var 9921 else 9922 $as_unset $as_var 9923 fi 9924done 9925 9926# Required to use basename. 9927if expr a : '\(a\)' >/dev/null 2>&1; then 9928 as_expr=expr 9929else 9930 as_expr=false 9931fi 9932 9933if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 9934 as_basename=basename 9935else 9936 as_basename=false 9937fi 9938 9939 9940# Name of the executable. 9941as_me=`$as_basename "$0" || 9942$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 9943 X"$0" : 'X\(//\)$' \| \ 9944 X"$0" : 'X\(/\)$' \| \ 9945 . : '\(.\)' 2>/dev/null || 9946echo X/"$0" | 9947 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 9948 /^X\/\(\/\/\)$/{ s//\1/; q; } 9949 /^X\/\(\/\).*/{ s//\1/; q; } 9950 s/.*/./; q'` 9951 9952 9953# PATH needs CR, and LINENO needs CR and PATH. 9954# Avoid depending upon Character Ranges. 9955as_cr_letters='abcdefghijklmnopqrstuvwxyz' 9956as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9957as_cr_Letters=$as_cr_letters$as_cr_LETTERS 9958as_cr_digits='0123456789' 9959as_cr_alnum=$as_cr_Letters$as_cr_digits 9960 9961# The user is always right. 9962if test "${PATH_SEPARATOR+set}" != set; then 9963 echo "#! /bin/sh" >conf$$.sh 9964 echo "exit 0" >>conf$$.sh 9965 chmod +x conf$$.sh 9966 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 9967 PATH_SEPARATOR=';' 9968 else 9969 PATH_SEPARATOR=: 9970 fi 9971 rm -f conf$$.sh 9972fi 9973 9974 9975 as_lineno_1=$LINENO 9976 as_lineno_2=$LINENO 9977 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 9978 test "x$as_lineno_1" != "x$as_lineno_2" && 9979 test "x$as_lineno_3" = "x$as_lineno_2" || { 9980 # Find who we are. Look in the path if we contain no path at all 9981 # relative or not. 9982 case $0 in 9983 *[\\/]* ) as_myself=$0 ;; 9984 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9985for as_dir in $PATH 9986do 9987 IFS=$as_save_IFS 9988 test -z "$as_dir" && as_dir=. 9989 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9990done 9991 9992 ;; 9993 esac 9994 # We did not find ourselves, most probably we were run as `sh COMMAND' 9995 # in which case we are not to be found in the path. 9996 if test "x$as_myself" = x; then 9997 as_myself=$0 9998 fi 9999 if test ! -f "$as_myself"; then 10000 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 10001echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 10002 { (exit 1); exit 1; }; } 10003 fi 10004 case $CONFIG_SHELL in 10005 '') 10006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10007for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 10008do 10009 IFS=$as_save_IFS 10010 test -z "$as_dir" && as_dir=. 10011 for as_base in sh bash ksh sh5; do 10012 case $as_dir in 10013 /*) 10014 if ("$as_dir/$as_base" -c ' 10015 as_lineno_1=$LINENO 10016 as_lineno_2=$LINENO 10017 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 10018 test "x$as_lineno_1" != "x$as_lineno_2" && 10019 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 10020 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 10021 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 10022 CONFIG_SHELL=$as_dir/$as_base 10023 export CONFIG_SHELL 10024 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 10025 fi;; 10026 esac 10027 done 10028done 10029;; 10030 esac 10031 10032 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10033 # uniformly replaced by the line number. The first 'sed' inserts a 10034 # line-number line before each line; the second 'sed' does the real 10035 # work. The second script uses 'N' to pair each line-number line 10036 # with the numbered line, and appends trailing '-' during 10037 # substitution so that $LINENO is not a special case at line end. 10038 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10039 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 10040 sed '=' <$as_myself | 10041 sed ' 10042 N 10043 s,$,-, 10044 : loop 10045 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 10046 t loop 10047 s,-$,, 10048 s,^['$as_cr_digits']*\n,, 10049 ' >$as_me.lineno && 10050 chmod +x $as_me.lineno || 10051 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 10052echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 10053 { (exit 1); exit 1; }; } 10054 10055 # Don't try to exec as it changes $[0], causing all sort of problems 10056 # (the dirname of $[0] is not the place where we might find the 10057 # original and so on. Autoconf is especially sensible to this). 10058 . ./$as_me.lineno 10059 # Exit status is that of the last command. 10060 exit 10061} 10062 10063 10064case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 10065 *c*,-n*) ECHO_N= ECHO_C=' 10066' ECHO_T=' ' ;; 10067 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 10068 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 10069esac 10070 10071if expr a : '\(a\)' >/dev/null 2>&1; then 10072 as_expr=expr 10073else 10074 as_expr=false 10075fi 10076 10077rm -f conf$$ conf$$.exe conf$$.file 10078echo >conf$$.file 10079if ln -s conf$$.file conf$$ 2>/dev/null; then 10080 # We could just check for DJGPP; but this test a) works b) is more generic 10081 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 10082 if test -f conf$$.exe; then 10083 # Don't use ln at all; we don't have any links 10084 as_ln_s='cp -p' 10085 else 10086 as_ln_s='ln -s' 10087 fi 10088elif ln conf$$.file conf$$ 2>/dev/null; then 10089 as_ln_s=ln 10090else 10091 as_ln_s='cp -p' 10092fi 10093rm -f conf$$ conf$$.exe conf$$.file 10094 10095if mkdir -p . 2>/dev/null; then 10096 as_mkdir_p=: 10097else 10098 test -d ./-p && rmdir ./-p 10099 as_mkdir_p=false 10100fi 10101 10102as_executable_p="test -f" 10103 10104# Sed expression to map a string onto a valid CPP name. 10105as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10106 10107# Sed expression to map a string onto a valid variable name. 10108as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10109 10110 10111# IFS 10112# We need space, tab and new line, in precisely that order. 10113as_nl=' 10114' 10115IFS=" $as_nl" 10116 10117# CDPATH. 10118$as_unset CDPATH 10119 10120exec 6>&1 10121 10122# Open the log real soon, to keep \$[0] and so on meaningful, and to 10123# report actual input values of CONFIG_FILES etc. instead of their 10124# values after options handling. Logging --version etc. is OK. 10125exec 5>>config.log 10126{ 10127 echo 10128 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10129## Running $as_me. ## 10130_ASBOX 10131} >&5 10132cat >&5 <<_CSEOF 10133 10134This file was extended by vfs $as_me 1.3, which was 10135generated by GNU Autoconf 2.59. Invocation command line was 10136 10137 CONFIG_FILES = $CONFIG_FILES 10138 CONFIG_HEADERS = $CONFIG_HEADERS 10139 CONFIG_LINKS = $CONFIG_LINKS 10140 CONFIG_COMMANDS = $CONFIG_COMMANDS 10141 $ $0 $@ 10142 10143_CSEOF 10144echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 10145echo >&5 10146_ACEOF 10147 10148# Files that config.status was made for. 10149if test -n "$ac_config_files"; then 10150 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 10151fi 10152 10153if test -n "$ac_config_headers"; then 10154 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 10155fi 10156 10157if test -n "$ac_config_links"; then 10158 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 10159fi 10160 10161if test -n "$ac_config_commands"; then 10162 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 10163fi 10164 10165cat >>$CONFIG_STATUS <<\_ACEOF 10166 10167ac_cs_usage="\ 10168\`$as_me' instantiates files from templates according to the 10169current configuration. 10170 10171Usage: $0 [OPTIONS] [FILE]... 10172 10173 -h, --help print this help, then exit 10174 -V, --version print version number, then exit 10175 -q, --quiet do not print progress messages 10176 -d, --debug don't remove temporary files 10177 --recheck update $as_me by reconfiguring in the same conditions 10178 --file=FILE[:TEMPLATE] 10179 instantiate the configuration file FILE 10180 10181Configuration files: 10182$config_files 10183 10184Report bugs to <bug-autoconf@gnu.org>." 10185_ACEOF 10186 10187cat >>$CONFIG_STATUS <<_ACEOF 10188ac_cs_version="\\ 10189vfs config.status 1.3 10190configured by $0, generated by GNU Autoconf 2.59, 10191 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 10192 10193Copyright (C) 2003 Free Software Foundation, Inc. 10194This config.status script is free software; the Free Software Foundation 10195gives unlimited permission to copy, distribute and modify it." 10196srcdir=$srcdir 10197INSTALL="$INSTALL" 10198_ACEOF 10199 10200cat >>$CONFIG_STATUS <<\_ACEOF 10201# If no file are specified by the user, then we need to provide default 10202# value. By we need to know if files were specified by the user. 10203ac_need_defaults=: 10204while test $# != 0 10205do 10206 case $1 in 10207 --*=*) 10208 ac_option=`expr "x$1" : 'x\([^=]*\)='` 10209 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 10210 ac_shift=: 10211 ;; 10212 -*) 10213 ac_option=$1 10214 ac_optarg=$2 10215 ac_shift=shift 10216 ;; 10217 *) # This is not an option, so the user has probably given explicit 10218 # arguments. 10219 ac_option=$1 10220 ac_need_defaults=false;; 10221 esac 10222 10223 case $ac_option in 10224 # Handling of the options. 10225_ACEOF 10226cat >>$CONFIG_STATUS <<\_ACEOF 10227 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10228 ac_cs_recheck=: ;; 10229 --version | --vers* | -V ) 10230 echo "$ac_cs_version"; exit 0 ;; 10231 --he | --h) 10232 # Conflict between --help and --header 10233 { { echo "$as_me:$LINENO: error: ambiguous option: $1 10234Try \`$0 --help' for more information." >&5 10235echo "$as_me: error: ambiguous option: $1 10236Try \`$0 --help' for more information." >&2;} 10237 { (exit 1); exit 1; }; };; 10238 --help | --hel | -h ) 10239 echo "$ac_cs_usage"; exit 0 ;; 10240 --debug | --d* | -d ) 10241 debug=: ;; 10242 --file | --fil | --fi | --f ) 10243 $ac_shift 10244 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 10245 ac_need_defaults=false;; 10246 --header | --heade | --head | --hea ) 10247 $ac_shift 10248 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 10249 ac_need_defaults=false;; 10250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10251 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10252 ac_cs_silent=: ;; 10253 10254 # This is an error. 10255 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 10256Try \`$0 --help' for more information." >&5 10257echo "$as_me: error: unrecognized option: $1 10258Try \`$0 --help' for more information." >&2;} 10259 { (exit 1); exit 1; }; } ;; 10260 10261 *) ac_config_targets="$ac_config_targets $1" ;; 10262 10263 esac 10264 shift 10265done 10266 10267ac_configure_extra_args= 10268 10269if $ac_cs_silent; then 10270 exec 6>/dev/null 10271 ac_configure_extra_args="$ac_configure_extra_args --silent" 10272fi 10273 10274_ACEOF 10275cat >>$CONFIG_STATUS <<_ACEOF 10276if \$ac_cs_recheck; then 10277 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 10278 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10279fi 10280 10281_ACEOF 10282 10283 10284 10285 10286 10287cat >>$CONFIG_STATUS <<\_ACEOF 10288for ac_config_target in $ac_config_targets 10289do 10290 case "$ac_config_target" in 10291 # Handling of arguments. 10292 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10293 "pkgIndex.tcl" ) CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 10294 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 10295echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 10296 { (exit 1); exit 1; }; };; 10297 esac 10298done 10299 10300# If the user did not use the arguments to specify the items to instantiate, 10301# then the envvar interface is used. Set only those that are not. 10302# We use the long form for the default assignment because of an extremely 10303# bizarre bug on SunOS 4.1.3. 10304if $ac_need_defaults; then 10305 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10306fi 10307 10308# Have a temporary directory for convenience. Make it in the build tree 10309# simply because there is no reason to put it here, and in addition, 10310# creating and moving files from /tmp can sometimes cause problems. 10311# Create a temporary directory, and hook for its removal unless debugging. 10312$debug || 10313{ 10314 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 10315 trap '{ (exit 1); exit 1; }' 1 2 13 15 10316} 10317 10318# Create a (secure) tmp directory for tmp files. 10319 10320{ 10321 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 10322 test -n "$tmp" && test -d "$tmp" 10323} || 10324{ 10325 tmp=./confstat$$-$RANDOM 10326 (umask 077 && mkdir $tmp) 10327} || 10328{ 10329 echo "$me: cannot create a temporary directory in ." >&2 10330 { (exit 1); exit 1; } 10331} 10332 10333_ACEOF 10334 10335cat >>$CONFIG_STATUS <<_ACEOF 10336 10337# 10338# CONFIG_FILES section. 10339# 10340 10341# No need to generate the scripts if there are no CONFIG_FILES. 10342# This happens for instance when ./config.status config.h 10343if test -n "\$CONFIG_FILES"; then 10344 # Protect against being on the right side of a sed subst in config.status. 10345 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 10346 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 10347s,@SHELL@,$SHELL,;t t 10348s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 10349s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 10350s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 10351s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 10352s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 10353s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 10354s,@exec_prefix@,$exec_prefix,;t t 10355s,@prefix@,$prefix,;t t 10356s,@program_transform_name@,$program_transform_name,;t t 10357s,@bindir@,$bindir,;t t 10358s,@sbindir@,$sbindir,;t t 10359s,@libexecdir@,$libexecdir,;t t 10360s,@datadir@,$datadir,;t t 10361s,@sysconfdir@,$sysconfdir,;t t 10362s,@sharedstatedir@,$sharedstatedir,;t t 10363s,@localstatedir@,$localstatedir,;t t 10364s,@libdir@,$libdir,;t t 10365s,@includedir@,$includedir,;t t 10366s,@oldincludedir@,$oldincludedir,;t t 10367s,@infodir@,$infodir,;t t 10368s,@mandir@,$mandir,;t t 10369s,@build_alias@,$build_alias,;t t 10370s,@host_alias@,$host_alias,;t t 10371s,@target_alias@,$target_alias,;t t 10372s,@DEFS@,$DEFS,;t t 10373s,@ECHO_C@,$ECHO_C,;t t 10374s,@ECHO_N@,$ECHO_N,;t t 10375s,@ECHO_T@,$ECHO_T,;t t 10376s,@LIBS@,$LIBS,;t t 10377s,@CYGPATH@,$CYGPATH,;t t 10378s,@EXEEXT@,$EXEEXT,;t t 10379s,@PKG_LIB_FILE@,$PKG_LIB_FILE,;t t 10380s,@PKG_STUB_LIB_FILE@,$PKG_STUB_LIB_FILE,;t t 10381s,@PKG_STUB_SOURCES@,$PKG_STUB_SOURCES,;t t 10382s,@PKG_STUB_OBJECTS@,$PKG_STUB_OBJECTS,;t t 10383s,@PKG_TCL_SOURCES@,$PKG_TCL_SOURCES,;t t 10384s,@PKG_HEADERS@,$PKG_HEADERS,;t t 10385s,@PKG_INCLUDES@,$PKG_INCLUDES,;t t 10386s,@PKG_LIBS@,$PKG_LIBS,;t t 10387s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t 10388s,@TCL_VERSION@,$TCL_VERSION,;t t 10389s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t 10390s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t 10391s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t 10392s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t 10393s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t 10394s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t 10395s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t 10396s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t 10397s,@TCL_LIBS@,$TCL_LIBS,;t t 10398s,@TCL_DEFS@,$TCL_DEFS,;t t 10399s,@TCL_EXTRA_CFLAGS@,$TCL_EXTRA_CFLAGS,;t t 10400s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t 10401s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t 10402s,@CC@,$CC,;t t 10403s,@CFLAGS@,$CFLAGS,;t t 10404s,@LDFLAGS@,$LDFLAGS,;t t 10405s,@CPPFLAGS@,$CPPFLAGS,;t t 10406s,@ac_ct_CC@,$ac_ct_CC,;t t 10407s,@OBJEXT@,$OBJEXT,;t t 10408s,@CPP@,$CPP,;t t 10409s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 10410s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 10411s,@INSTALL_DATA@,$INSTALL_DATA,;t t 10412s,@SET_MAKE@,$SET_MAKE,;t t 10413s,@RANLIB@,$RANLIB,;t t 10414s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 10415s,@EGREP@,$EGREP,;t t 10416s,@MATH_LIBS@,$MATH_LIBS,;t t 10417s,@PKG_SOURCES@,$PKG_SOURCES,;t t 10418s,@PKG_OBJECTS@,$PKG_OBJECTS,;t t 10419s,@TCL_TOP_DIR_NATIVE@,$TCL_TOP_DIR_NATIVE,;t t 10420s,@TCL_GENERIC_DIR_NATIVE@,$TCL_GENERIC_DIR_NATIVE,;t t 10421s,@TCL_UNIX_DIR_NATIVE@,$TCL_UNIX_DIR_NATIVE,;t t 10422s,@TCL_WIN_DIR_NATIVE@,$TCL_WIN_DIR_NATIVE,;t t 10423s,@TCL_BMAP_DIR_NATIVE@,$TCL_BMAP_DIR_NATIVE,;t t 10424s,@TCL_TOOL_DIR_NATIVE@,$TCL_TOOL_DIR_NATIVE,;t t 10425s,@TCL_PLATFORM_DIR_NATIVE@,$TCL_PLATFORM_DIR_NATIVE,;t t 10426s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t 10427s,@CLEANFILES@,$CLEANFILES,;t t 10428s,@TCL_THREADS@,$TCL_THREADS,;t t 10429s,@SHARED_BUILD@,$SHARED_BUILD,;t t 10430s,@AR@,$AR,;t t 10431s,@CELIB_DIR@,$CELIB_DIR,;t t 10432s,@LIBOBJS@,$LIBOBJS,;t t 10433s,@DL_LIBS@,$DL_LIBS,;t t 10434s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t 10435s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t 10436s,@CFLAGS_WARNING@,$CFLAGS_WARNING,;t t 10437s,@STLIB_LD@,$STLIB_LD,;t t 10438s,@SHLIB_LD@,$SHLIB_LD,;t t 10439s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t 10440s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t 10441s,@LD_LIBRARY_PATH_VAR@,$LD_LIBRARY_PATH_VAR,;t t 10442s,@TCL_DBGX@,$TCL_DBGX,;t t 10443s,@CFLAGS_DEFAULT@,$CFLAGS_DEFAULT,;t t 10444s,@LDFLAGS_DEFAULT@,$LDFLAGS_DEFAULT,;t t 10445s,@MAKE_LIB@,$MAKE_LIB,;t t 10446s,@MAKE_SHARED_LIB@,$MAKE_SHARED_LIB,;t t 10447s,@MAKE_STATIC_LIB@,$MAKE_STATIC_LIB,;t t 10448s,@MAKE_STUB_LIB@,$MAKE_STUB_LIB,;t t 10449s,@RANLIB_STUB@,$RANLIB_STUB,;t t 10450s,@TCLSH_PROG@,$TCLSH_PROG,;t t 10451s,@LTLIBOBJS@,$LTLIBOBJS,;t t 10452CEOF 10453 10454_ACEOF 10455 10456 cat >>$CONFIG_STATUS <<\_ACEOF 10457 # Split the substitutions into bite-sized pieces for seds with 10458 # small command number limits, like on Digital OSF/1 and HP-UX. 10459 ac_max_sed_lines=48 10460 ac_sed_frag=1 # Number of current file. 10461 ac_beg=1 # First line for current file. 10462 ac_end=$ac_max_sed_lines # Line after last line for current file. 10463 ac_more_lines=: 10464 ac_sed_cmds= 10465 while $ac_more_lines; do 10466 if test $ac_beg -gt 1; then 10467 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 10468 else 10469 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 10470 fi 10471 if test ! -s $tmp/subs.frag; then 10472 ac_more_lines=false 10473 else 10474 # The purpose of the label and of the branching condition is to 10475 # speed up the sed processing (if there are no `@' at all, there 10476 # is no need to browse any of the substitutions). 10477 # These are the two extra sed commands mentioned above. 10478 (echo ':t 10479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 10480 if test -z "$ac_sed_cmds"; then 10481 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 10482 else 10483 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 10484 fi 10485 ac_sed_frag=`expr $ac_sed_frag + 1` 10486 ac_beg=$ac_end 10487 ac_end=`expr $ac_end + $ac_max_sed_lines` 10488 fi 10489 done 10490 if test -z "$ac_sed_cmds"; then 10491 ac_sed_cmds=cat 10492 fi 10493fi # test -n "$CONFIG_FILES" 10494 10495_ACEOF 10496cat >>$CONFIG_STATUS <<\_ACEOF 10497for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 10498 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 10499 case $ac_file in 10500 - | *:- | *:-:* ) # input from stdin 10501 cat >$tmp/stdin 10502 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10503 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10504 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10505 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10506 * ) ac_file_in=$ac_file.in ;; 10507 esac 10508 10509 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 10510 ac_dir=`(dirname "$ac_file") 2>/dev/null || 10511$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10512 X"$ac_file" : 'X\(//\)[^/]' \| \ 10513 X"$ac_file" : 'X\(//\)$' \| \ 10514 X"$ac_file" : 'X\(/\)' \| \ 10515 . : '\(.\)' 2>/dev/null || 10516echo X"$ac_file" | 10517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10518 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10519 /^X\(\/\/\)$/{ s//\1/; q; } 10520 /^X\(\/\).*/{ s//\1/; q; } 10521 s/.*/./; q'` 10522 { if $as_mkdir_p; then 10523 mkdir -p "$ac_dir" 10524 else 10525 as_dir="$ac_dir" 10526 as_dirs= 10527 while test ! -d "$as_dir"; do 10528 as_dirs="$as_dir $as_dirs" 10529 as_dir=`(dirname "$as_dir") 2>/dev/null || 10530$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10531 X"$as_dir" : 'X\(//\)[^/]' \| \ 10532 X"$as_dir" : 'X\(//\)$' \| \ 10533 X"$as_dir" : 'X\(/\)' \| \ 10534 . : '\(.\)' 2>/dev/null || 10535echo X"$as_dir" | 10536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10537 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10538 /^X\(\/\/\)$/{ s//\1/; q; } 10539 /^X\(\/\).*/{ s//\1/; q; } 10540 s/.*/./; q'` 10541 done 10542 test ! -n "$as_dirs" || mkdir $as_dirs 10543 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 10544echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 10545 { (exit 1); exit 1; }; }; } 10546 10547 ac_builddir=. 10548 10549if test "$ac_dir" != .; then 10550 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 10551 # A "../" for each directory in $ac_dir_suffix. 10552 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 10553else 10554 ac_dir_suffix= ac_top_builddir= 10555fi 10556 10557case $srcdir in 10558 .) # No --srcdir option. We are building in place. 10559 ac_srcdir=. 10560 if test -z "$ac_top_builddir"; then 10561 ac_top_srcdir=. 10562 else 10563 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 10564 fi ;; 10565 [\\/]* | ?:[\\/]* ) # Absolute path. 10566 ac_srcdir=$srcdir$ac_dir_suffix; 10567 ac_top_srcdir=$srcdir ;; 10568 *) # Relative path. 10569 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 10570 ac_top_srcdir=$ac_top_builddir$srcdir ;; 10571esac 10572 10573# Do not use `cd foo && pwd` to compute absolute paths, because 10574# the directories may not exist. 10575case `pwd` in 10576.) ac_abs_builddir="$ac_dir";; 10577*) 10578 case "$ac_dir" in 10579 .) ac_abs_builddir=`pwd`;; 10580 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 10581 *) ac_abs_builddir=`pwd`/"$ac_dir";; 10582 esac;; 10583esac 10584case $ac_abs_builddir in 10585.) ac_abs_top_builddir=${ac_top_builddir}.;; 10586*) 10587 case ${ac_top_builddir}. in 10588 .) ac_abs_top_builddir=$ac_abs_builddir;; 10589 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 10590 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 10591 esac;; 10592esac 10593case $ac_abs_builddir in 10594.) ac_abs_srcdir=$ac_srcdir;; 10595*) 10596 case $ac_srcdir in 10597 .) ac_abs_srcdir=$ac_abs_builddir;; 10598 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 10599 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 10600 esac;; 10601esac 10602case $ac_abs_builddir in 10603.) ac_abs_top_srcdir=$ac_top_srcdir;; 10604*) 10605 case $ac_top_srcdir in 10606 .) ac_abs_top_srcdir=$ac_abs_builddir;; 10607 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 10608 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 10609 esac;; 10610esac 10611 10612 10613 case $INSTALL in 10614 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 10615 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 10616 esac 10617 10618 if test x"$ac_file" != x-; then 10619 { echo "$as_me:$LINENO: creating $ac_file" >&5 10620echo "$as_me: creating $ac_file" >&6;} 10621 rm -f "$ac_file" 10622 fi 10623 # Let's still pretend it is `configure' which instantiates (i.e., don't 10624 # use $as_me), people would be surprised to read: 10625 # /* config.h. Generated by config.status. */ 10626 if test x"$ac_file" = x-; then 10627 configure_input= 10628 else 10629 configure_input="$ac_file. " 10630 fi 10631 configure_input=$configure_input"Generated from `echo $ac_file_in | 10632 sed 's,.*/,,'` by configure." 10633 10634 # First look for the input files in the build tree, otherwise in the 10635 # src tree. 10636 ac_file_inputs=`IFS=: 10637 for f in $ac_file_in; do 10638 case $f in 10639 -) echo $tmp/stdin ;; 10640 [\\/$]*) 10641 # Absolute (can't be DOS-style, as IFS=:) 10642 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10643echo "$as_me: error: cannot find input file: $f" >&2;} 10644 { (exit 1); exit 1; }; } 10645 echo "$f";; 10646 *) # Relative 10647 if test -f "$f"; then 10648 # Build tree 10649 echo "$f" 10650 elif test -f "$srcdir/$f"; then 10651 # Source tree 10652 echo "$srcdir/$f" 10653 else 10654 # /dev/null tree 10655 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10656echo "$as_me: error: cannot find input file: $f" >&2;} 10657 { (exit 1); exit 1; }; } 10658 fi;; 10659 esac 10660 done` || { (exit 1); exit 1; } 10661_ACEOF 10662cat >>$CONFIG_STATUS <<_ACEOF 10663 sed "$ac_vpsub 10664$extrasub 10665_ACEOF 10666cat >>$CONFIG_STATUS <<\_ACEOF 10667:t 10668/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10669s,@configure_input@,$configure_input,;t t 10670s,@srcdir@,$ac_srcdir,;t t 10671s,@abs_srcdir@,$ac_abs_srcdir,;t t 10672s,@top_srcdir@,$ac_top_srcdir,;t t 10673s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 10674s,@builddir@,$ac_builddir,;t t 10675s,@abs_builddir@,$ac_abs_builddir,;t t 10676s,@top_builddir@,$ac_top_builddir,;t t 10677s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 10678s,@INSTALL@,$ac_INSTALL,;t t 10679" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 10680 rm -f $tmp/stdin 10681 if test x"$ac_file" != x-; then 10682 mv $tmp/out $ac_file 10683 else 10684 cat $tmp/out 10685 rm -f $tmp/out 10686 fi 10687 10688done 10689_ACEOF 10690 10691cat >>$CONFIG_STATUS <<\_ACEOF 10692 10693{ (exit 0); exit 0; } 10694_ACEOF 10695chmod +x $CONFIG_STATUS 10696ac_clean_files=$ac_clean_files_save 10697 10698 10699# configure is writing to config.log, and then calls config.status. 10700# config.status does its own redirection, appending to config.log. 10701# Unfortunately, on DOS this fails, as config.log is still kept open 10702# by configure, so config.status won't be able to write to it; its 10703# output is simply discarded. So we exec the FD to /dev/null, 10704# effectively closing config.log, so it can be properly (re)opened and 10705# appended to by config.status. When coming back to configure, we 10706# need to make the FD available again. 10707if test "$no_create" != yes; then 10708 ac_cs_success=: 10709 ac_config_status_args= 10710 test "$silent" = yes && 10711 ac_config_status_args="$ac_config_status_args --quiet" 10712 exec 5>/dev/null 10713 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 10714 exec 5>>config.log 10715 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10716 # would make configure fail if this is the last instruction. 10717 $ac_cs_success || { (exit 1); exit 1; } 10718fi 10719 10720