1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for Tix 8.4.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='Tix' 269PACKAGE_TARNAME='tix' 270PACKAGE_VERSION='8.4.3' 271PACKAGE_STRING='Tix 8.4.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 TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_LIBS TK_XINCLUDES 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 TK_TOP_DIR_NATIVE TK_UNIX_DIR_NATIVE TK_WIN_DIR_NATIVE TK_GENERIC_DIR_NATIVE TK_XLIB_DIR_NATIVE TK_PLATFORM_DIR_NATIVE TK_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 WISH_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 Tix 8.4.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 833X features: 834 --x-includes=DIR X include files are in DIR 835 --x-libraries=DIR X library files are in DIR 836_ACEOF 837fi 838 839if test -n "$ac_init_help"; then 840 case $ac_init_help in 841 short | recursive ) echo "Configuration of Tix 8.4.3:";; 842 esac 843 cat <<\_ACEOF 844 845Optional Features: 846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 848 --enable-threads build with threads 849 --enable-shared build and link with shared libraries (default: on) 850 --enable-64bit enable 64bit support (default: off) 851 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 852 --enable-wince enable Win/CE support (where applicable) 853 --enable-load allow dynamic loading and "load" command (default: 854 on) 855 --enable-symbols build with debugging symbols (default: off) 856 857Optional Packages: 858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 860 --with-tcl directory containing tcl configuration 861 (tclConfig.sh) 862 --with-tk directory containing tk configuration (tkConfig.sh) 863 --with-x use the X Window System 864 --with-celib=DIR use Windows/CE support library from DIR 865 866Some influential environment variables: 867 CC C compiler command 868 CFLAGS C compiler flags 869 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 870 nonstandard directory <lib dir> 871 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 872 headers in a nonstandard directory <include dir> 873 CPP C preprocessor 874 875Use these variables to override the choices made by `configure' or to help 876it to find libraries and programs with nonstandard names/locations. 877 878_ACEOF 879fi 880 881if test "$ac_init_help" = "recursive"; then 882 # If there are subdirs, report their specific --help. 883 ac_popdir=`pwd` 884 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 885 test -d $ac_dir || continue 886 ac_builddir=. 887 888if test "$ac_dir" != .; then 889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 890 # A "../" for each directory in $ac_dir_suffix. 891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 892else 893 ac_dir_suffix= ac_top_builddir= 894fi 895 896case $srcdir in 897 .) # No --srcdir option. We are building in place. 898 ac_srcdir=. 899 if test -z "$ac_top_builddir"; then 900 ac_top_srcdir=. 901 else 902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 903 fi ;; 904 [\\/]* | ?:[\\/]* ) # Absolute path. 905 ac_srcdir=$srcdir$ac_dir_suffix; 906 ac_top_srcdir=$srcdir ;; 907 *) # Relative path. 908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 909 ac_top_srcdir=$ac_top_builddir$srcdir ;; 910esac 911 912# Do not use `cd foo && pwd` to compute absolute paths, because 913# the directories may not exist. 914case `pwd` in 915.) ac_abs_builddir="$ac_dir";; 916*) 917 case "$ac_dir" in 918 .) ac_abs_builddir=`pwd`;; 919 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 920 *) ac_abs_builddir=`pwd`/"$ac_dir";; 921 esac;; 922esac 923case $ac_abs_builddir in 924.) ac_abs_top_builddir=${ac_top_builddir}.;; 925*) 926 case ${ac_top_builddir}. in 927 .) ac_abs_top_builddir=$ac_abs_builddir;; 928 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 929 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 930 esac;; 931esac 932case $ac_abs_builddir in 933.) ac_abs_srcdir=$ac_srcdir;; 934*) 935 case $ac_srcdir in 936 .) ac_abs_srcdir=$ac_abs_builddir;; 937 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 938 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 939 esac;; 940esac 941case $ac_abs_builddir in 942.) ac_abs_top_srcdir=$ac_top_srcdir;; 943*) 944 case $ac_top_srcdir in 945 .) ac_abs_top_srcdir=$ac_abs_builddir;; 946 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 947 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 948 esac;; 949esac 950 951 cd $ac_dir 952 # Check for guested configure; otherwise get Cygnus style configure. 953 if test -f $ac_srcdir/configure.gnu; then 954 echo 955 $SHELL $ac_srcdir/configure.gnu --help=recursive 956 elif test -f $ac_srcdir/configure; then 957 echo 958 $SHELL $ac_srcdir/configure --help=recursive 959 elif test -f $ac_srcdir/configure.ac || 960 test -f $ac_srcdir/configure.in; then 961 echo 962 $ac_configure --help 963 else 964 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 965 fi 966 cd $ac_popdir 967 done 968fi 969 970test -n "$ac_init_help" && exit 0 971if $ac_init_version; then 972 cat <<\_ACEOF 973Tix configure 8.4.3 974generated by GNU Autoconf 2.59 975 976Copyright (C) 2003 Free Software Foundation, Inc. 977This configure script is free software; the Free Software Foundation 978gives unlimited permission to copy, distribute and modify it. 979_ACEOF 980 exit 0 981fi 982exec 5>config.log 983cat >&5 <<_ACEOF 984This file contains any messages produced by compilers while 985running configure, to aid debugging if configure makes a mistake. 986 987It was created by Tix $as_me 8.4.3, which was 988generated by GNU Autoconf 2.59. Invocation command line was 989 990 $ $0 $@ 991 992_ACEOF 993{ 994cat <<_ASUNAME 995## --------- ## 996## Platform. ## 997## --------- ## 998 999hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1000uname -m = `(uname -m) 2>/dev/null || echo unknown` 1001uname -r = `(uname -r) 2>/dev/null || echo unknown` 1002uname -s = `(uname -s) 2>/dev/null || echo unknown` 1003uname -v = `(uname -v) 2>/dev/null || echo unknown` 1004 1005/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1006/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1007 1008/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1009/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1010/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1011hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1012/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1013/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1014/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1015 1016_ASUNAME 1017 1018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1019for as_dir in $PATH 1020do 1021 IFS=$as_save_IFS 1022 test -z "$as_dir" && as_dir=. 1023 echo "PATH: $as_dir" 1024done 1025 1026} >&5 1027 1028cat >&5 <<_ACEOF 1029 1030 1031## ----------- ## 1032## Core tests. ## 1033## ----------- ## 1034 1035_ACEOF 1036 1037 1038# Keep a trace of the command line. 1039# Strip out --no-create and --no-recursion so they do not pile up. 1040# Strip out --silent because we don't want to record it for future runs. 1041# Also quote any args containing shell meta-characters. 1042# Make two passes to allow for proper duplicate-argument suppression. 1043ac_configure_args= 1044ac_configure_args0= 1045ac_configure_args1= 1046ac_sep= 1047ac_must_keep_next=false 1048for ac_pass in 1 2 1049do 1050 for ac_arg 1051 do 1052 case $ac_arg in 1053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1055 | -silent | --silent | --silen | --sile | --sil) 1056 continue ;; 1057 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1058 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1059 esac 1060 case $ac_pass in 1061 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1062 2) 1063 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1064 if test $ac_must_keep_next = true; then 1065 ac_must_keep_next=false # Got value, back to normal. 1066 else 1067 case $ac_arg in 1068 *=* | --config-cache | -C | -disable-* | --disable-* \ 1069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1071 | -with-* | --with-* | -without-* | --without-* | --x) 1072 case "$ac_configure_args0 " in 1073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1074 esac 1075 ;; 1076 -* ) ac_must_keep_next=true ;; 1077 esac 1078 fi 1079 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1080 # Get rid of the leading space. 1081 ac_sep=" " 1082 ;; 1083 esac 1084 done 1085done 1086$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1087$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1088 1089# When interrupted or exit'd, cleanup temporary files, and complete 1090# config.log. We remove comments because anyway the quotes in there 1091# would cause problems or look ugly. 1092# WARNING: Be sure not to use single quotes in there, as some shells, 1093# such as our DU 5.0 friend, will then `close' the trap. 1094trap 'exit_status=$? 1095 # Save into config.log some information that might help in debugging. 1096 { 1097 echo 1098 1099 cat <<\_ASBOX 1100## ---------------- ## 1101## Cache variables. ## 1102## ---------------- ## 1103_ASBOX 1104 echo 1105 # The following way of writing the cache mishandles newlines in values, 1106{ 1107 (set) 2>&1 | 1108 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1109 *ac_space=\ *) 1110 sed -n \ 1111 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1113 ;; 1114 *) 1115 sed -n \ 1116 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1117 ;; 1118 esac; 1119} 1120 echo 1121 1122 cat <<\_ASBOX 1123## ----------------- ## 1124## Output variables. ## 1125## ----------------- ## 1126_ASBOX 1127 echo 1128 for ac_var in $ac_subst_vars 1129 do 1130 eval ac_val=$`echo $ac_var` 1131 echo "$ac_var='"'"'$ac_val'"'"'" 1132 done | sort 1133 echo 1134 1135 if test -n "$ac_subst_files"; then 1136 cat <<\_ASBOX 1137## ------------- ## 1138## Output files. ## 1139## ------------- ## 1140_ASBOX 1141 echo 1142 for ac_var in $ac_subst_files 1143 do 1144 eval ac_val=$`echo $ac_var` 1145 echo "$ac_var='"'"'$ac_val'"'"'" 1146 done | sort 1147 echo 1148 fi 1149 1150 if test -s confdefs.h; then 1151 cat <<\_ASBOX 1152## ----------- ## 1153## confdefs.h. ## 1154## ----------- ## 1155_ASBOX 1156 echo 1157 sed "/^$/d" confdefs.h | sort 1158 echo 1159 fi 1160 test "$ac_signal" != 0 && 1161 echo "$as_me: caught signal $ac_signal" 1162 echo "$as_me: exit $exit_status" 1163 } >&5 1164 rm -f core *.core && 1165 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1166 exit $exit_status 1167 ' 0 1168for ac_signal in 1 2 13 15; do 1169 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1170done 1171ac_signal=0 1172 1173# confdefs.h avoids OS command line length limits that DEFS can exceed. 1174rm -rf conftest* confdefs.h 1175# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1176echo >confdefs.h 1177 1178# Predefined preprocessor variables. 1179 1180cat >>confdefs.h <<_ACEOF 1181#define PACKAGE_NAME "$PACKAGE_NAME" 1182_ACEOF 1183 1184 1185cat >>confdefs.h <<_ACEOF 1186#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1187_ACEOF 1188 1189 1190cat >>confdefs.h <<_ACEOF 1191#define PACKAGE_VERSION "$PACKAGE_VERSION" 1192_ACEOF 1193 1194 1195cat >>confdefs.h <<_ACEOF 1196#define PACKAGE_STRING "$PACKAGE_STRING" 1197_ACEOF 1198 1199 1200cat >>confdefs.h <<_ACEOF 1201#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1202_ACEOF 1203 1204 1205# Let the site file select an alternate cache file if it wants to. 1206# Prefer explicitly selected file to automatically selected ones. 1207if test -z "$CONFIG_SITE"; then 1208 if test "x$prefix" != xNONE; then 1209 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1210 else 1211 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1212 fi 1213fi 1214for ac_site_file in $CONFIG_SITE; do 1215 if test -r "$ac_site_file"; then 1216 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1217echo "$as_me: loading site script $ac_site_file" >&6;} 1218 sed 's/^/| /' "$ac_site_file" >&5 1219 . "$ac_site_file" 1220 fi 1221done 1222 1223if test -r "$cache_file"; then 1224 # Some versions of bash will fail to source /dev/null (special 1225 # files actually), so we avoid doing that. 1226 if test -f "$cache_file"; then 1227 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1228echo "$as_me: loading cache $cache_file" >&6;} 1229 case $cache_file in 1230 [\\/]* | ?:[\\/]* ) . $cache_file;; 1231 *) . ./$cache_file;; 1232 esac 1233 fi 1234else 1235 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1236echo "$as_me: creating cache $cache_file" >&6;} 1237 >$cache_file 1238fi 1239 1240# Check that the precious variables saved in the cache have kept the same 1241# value. 1242ac_cache_corrupted=false 1243for ac_var in `(set) 2>&1 | 1244 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1245 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1246 eval ac_new_set=\$ac_env_${ac_var}_set 1247 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1248 eval ac_new_val="\$ac_env_${ac_var}_value" 1249 case $ac_old_set,$ac_new_set in 1250 set,) 1251 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1252echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1253 ac_cache_corrupted=: ;; 1254 ,set) 1255 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1256echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1257 ac_cache_corrupted=: ;; 1258 ,);; 1259 *) 1260 if test "x$ac_old_val" != "x$ac_new_val"; then 1261 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1262echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1263 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1264echo "$as_me: former value: $ac_old_val" >&2;} 1265 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1266echo "$as_me: current value: $ac_new_val" >&2;} 1267 ac_cache_corrupted=: 1268 fi;; 1269 esac 1270 # Pass precious variables to config.status. 1271 if test "$ac_new_set" = set; then 1272 case $ac_new_val in 1273 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1274 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1275 *) ac_arg=$ac_var=$ac_new_val ;; 1276 esac 1277 case " $ac_configure_args " in 1278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1279 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1280 esac 1281 fi 1282done 1283if $ac_cache_corrupted; then 1284 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1285echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1286 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1287echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1288 { (exit 1); exit 1; }; } 1289fi 1290 1291ac_ext=c 1292ac_cpp='$CPP $CPPFLAGS' 1293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1295ac_compiler_gnu=$ac_cv_c_compiler_gnu 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324#-------------------------------------------------------------------- 1325# Call TEA_INIT as the first TEA_ macro to set up initial vars. 1326# This will define a ${TEA_PLATFORM} variable == "unix" or "windows" 1327# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. 1328#-------------------------------------------------------------------- 1329 1330 1331 # TEA extensions pass this us the version of TEA they think they 1332 # are compatible with. 1333 TEA_VERSION="3.6" 1334 1335 echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1336echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6 1337 if test x"${PACKAGE_NAME}" = x ; then 1338 { { echo "$as_me:$LINENO: error: 1339The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1340echo "$as_me: error: 1341The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1342 { (exit 1); exit 1; }; } 1343 fi 1344 if test x"3.6" = x ; then 1345 { { echo "$as_me:$LINENO: error: 1346TEA version not specified." >&5 1347echo "$as_me: error: 1348TEA version not specified." >&2;} 1349 { (exit 1); exit 1; }; } 1350 elif test "3.6" != "${TEA_VERSION}" ; then 1351 echo "$as_me:$LINENO: result: warning: requested TEA version \"3.6\", have \"${TEA_VERSION}\"" >&5 1352echo "${ECHO_T}warning: requested TEA version \"3.6\", have \"${TEA_VERSION}\"" >&6 1353 else 1354 echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1355echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6 1356 fi 1357 case "`uname -s`" in 1358 *win32*|*WIN32*|*CYGWIN_NT*|*CYGWIN_9*|*CYGWIN_ME*|*MINGW32_*) 1359 # Extract the first word of "cygpath", so it can be a program name with args. 1360set dummy cygpath; ac_word=$2 1361echo "$as_me:$LINENO: checking for $ac_word" >&5 1362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1363if test "${ac_cv_prog_CYGPATH+set}" = set; then 1364 echo $ECHO_N "(cached) $ECHO_C" >&6 1365else 1366 if test -n "$CYGPATH"; then 1367 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1368else 1369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1370for as_dir in $PATH 1371do 1372 IFS=$as_save_IFS 1373 test -z "$as_dir" && as_dir=. 1374 for ac_exec_ext in '' $ac_executable_extensions; do 1375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1376 ac_cv_prog_CYGPATH="cygpath -w" 1377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1378 break 2 1379 fi 1380done 1381done 1382 1383 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1384fi 1385fi 1386CYGPATH=$ac_cv_prog_CYGPATH 1387if test -n "$CYGPATH"; then 1388 echo "$as_me:$LINENO: result: $CYGPATH" >&5 1389echo "${ECHO_T}$CYGPATH" >&6 1390else 1391 echo "$as_me:$LINENO: result: no" >&5 1392echo "${ECHO_T}no" >&6 1393fi 1394 1395 EXEEXT=".exe" 1396 TEA_PLATFORM="windows" 1397 ;; 1398 *) 1399 CYGPATH=echo 1400 EXEEXT="" 1401 TEA_PLATFORM="unix" 1402 ;; 1403 esac 1404 1405 # Check if exec_prefix is set. If not use fall back to prefix. 1406 # Note when adjusted, so that TEA_PREFIX can correct for this. 1407 # This is needed for recursive configures, since autoconf propagates 1408 # $prefix, but not $exec_prefix (doh!). 1409 if test x$exec_prefix = xNONE ; then 1410 exec_prefix_default=yes 1411 exec_prefix=$prefix 1412 fi 1413 1414 1415 1416 1417 # This package name must be replaced statically for AC_SUBST to work 1418 1419 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1420 1421 1422 # We AC_SUBST these here to ensure they are subst'ed, 1423 # in case the user doesn't call TEA_ADD_... 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433ac_aux_dir= 1434for ac_dir in tclconfig $srcdir/tclconfig; do 1435 if test -f $ac_dir/install-sh; then 1436 ac_aux_dir=$ac_dir 1437 ac_install_sh="$ac_aux_dir/install-sh -c" 1438 break 1439 elif test -f $ac_dir/install.sh; then 1440 ac_aux_dir=$ac_dir 1441 ac_install_sh="$ac_aux_dir/install.sh -c" 1442 break 1443 elif test -f $ac_dir/shtool; then 1444 ac_aux_dir=$ac_dir 1445 ac_install_sh="$ac_aux_dir/shtool install -c" 1446 break 1447 fi 1448done 1449if test -z "$ac_aux_dir"; then 1450 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig $srcdir/tclconfig" >&5 1451echo "$as_me: error: cannot find install-sh or install.sh in tclconfig $srcdir/tclconfig" >&2;} 1452 { (exit 1); exit 1; }; } 1453fi 1454ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1455ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1456ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1457 1458 1459#-------------------------------------------------------------------- 1460# Load the tclConfig.sh file 1461#-------------------------------------------------------------------- 1462 1463 1464 1465 # 1466 # Ok, lets find the tcl configuration 1467 # First, look for one uninstalled. 1468 # the alternative search directory is invoked by --with-tcl 1469 # 1470 1471 if test x"${no_tcl}" = x ; then 1472 # we reset no_tcl in case something fails here 1473 no_tcl=true 1474 1475# Check whether --with-tcl or --without-tcl was given. 1476if test "${with_tcl+set}" = set; then 1477 withval="$with_tcl" 1478 with_tclconfig=${withval} 1479fi; 1480 echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1481echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 1482 if test "${ac_cv_c_tclconfig+set}" = set; then 1483 echo $ECHO_N "(cached) $ECHO_C" >&6 1484else 1485 1486 1487 # First check to see if --with-tcl was specified. 1488 if test x"${with_tclconfig}" != x ; then 1489 case ${with_tclconfig} in 1490 */tclConfig.sh ) 1491 if test -f ${with_tclconfig}; then 1492 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1493echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1494 with_tclconfig=`echo ${with_tclconfig} | sed 's!/tclConfig\.sh$!!'` 1495 fi ;; 1496 esac 1497 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1498 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 1499 else 1500 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1501echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1502 { (exit 1); exit 1; }; } 1503 fi 1504 fi 1505 1506 # then check for a private Tcl installation 1507 if test x"${ac_cv_c_tclconfig}" = x ; then 1508 for i in \ 1509 ../tcl \ 1510 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1511 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1512 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1513 ../../tcl \ 1514 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1515 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1516 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1517 ../../../tcl \ 1518 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1519 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1520 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1521 if test -f "$i/unix/tclConfig.sh" ; then 1522 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 1523 break 1524 fi 1525 done 1526 fi 1527 1528 # on Darwin, check in Framework installation locations 1529 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1530 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1531 `ls -d /Library/Frameworks 2>/dev/null` \ 1532 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1533 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1534 ; do 1535 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 1536 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)` 1537 break 1538 fi 1539 done 1540 fi 1541 1542 # on Windows, check in common installation locations 1543 if test "${TEA_PLATFORM}" = "windows" \ 1544 -a x"${ac_cv_c_tclconfig}" = x ; then 1545 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 1546 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 1547 ; do 1548 if test -f "$i/tclConfig.sh" ; then 1549 ac_cv_c_tclconfig=`(cd $i; pwd)` 1550 break 1551 fi 1552 done 1553 fi 1554 1555 # check in a few common install locations 1556 if test x"${ac_cv_c_tclconfig}" = x ; then 1557 for i in `ls -d ${libdir} 2>/dev/null` \ 1558 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 1559 `ls -d ${prefix}/lib 2>/dev/null` \ 1560 `ls -d /usr/local/lib 2>/dev/null` \ 1561 `ls -d /usr/contrib/lib 2>/dev/null` \ 1562 `ls -d /usr/lib 2>/dev/null` \ 1563 ; do 1564 if test -f "$i/tclConfig.sh" ; then 1565 ac_cv_c_tclconfig=`(cd $i; pwd)` 1566 break 1567 fi 1568 done 1569 fi 1570 1571 # check in a few other private locations 1572 if test x"${ac_cv_c_tclconfig}" = x ; then 1573 for i in \ 1574 ${srcdir}/../tcl \ 1575 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1576 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 1577 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 1578 if test -f "$i/unix/tclConfig.sh" ; then 1579 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 1580 break 1581 fi 1582 done 1583 fi 1584 1585fi 1586 1587 1588 if test x"${ac_cv_c_tclconfig}" = x ; then 1589 TCL_BIN_DIR="# no Tcl configs found" 1590 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 1591echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 1592 exit 0 1593 else 1594 no_tcl= 1595 TCL_BIN_DIR=${ac_cv_c_tclconfig} 1596 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 1597echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6 1598 fi 1599 fi 1600 1601 1602 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 1603echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6 1604 1605 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 1606 echo "$as_me:$LINENO: result: loading" >&5 1607echo "${ECHO_T}loading" >&6 1608 . ${TCL_BIN_DIR}/tclConfig.sh 1609 else 1610 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 1611echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6 1612 fi 1613 1614 # eval is required to do the TCL_DBGX substitution 1615 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 1616 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 1617 1618 # If the TCL_BIN_DIR is the build directory (not the install directory), 1619 # then set the common variable name to the value of the build variables. 1620 # For example, the variable TCL_LIB_SPEC will be set to the value 1621 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 1622 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 1623 # installed and uninstalled version of Tcl. 1624 if test -f ${TCL_BIN_DIR}/Makefile ; then 1625 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 1626 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 1627 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 1628 elif test "`uname -s`" = "Darwin"; then 1629 # If Tcl was built as a framework, attempt to use the libraries 1630 # from the framework at the given location so that linking works 1631 # against Tcl.framework installed in an arbitary location. 1632 case ${TCL_DEFS} in 1633 *TCL_FRAMEWORK*) 1634 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then 1635 for i in "`cd ${TCL_BIN_DIR}; pwd`" \ 1636 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do 1637 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 1638 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}" 1639 break 1640 fi 1641 done 1642 fi 1643 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then 1644 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}" 1645 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 1646 fi 1647 ;; 1648 esac 1649 fi 1650 1651 # eval is required to do the TCL_DBGX substitution 1652 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 1653 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 1654 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 1655 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676#-------------------------------------------------------------------- 1677# Load the tkConfig.sh file if necessary (Tk extension) 1678#-------------------------------------------------------------------- 1679 1680 1681 # 1682 # Ok, lets find the tk configuration 1683 # First, look for one uninstalled. 1684 # the alternative search directory is invoked by --with-tk 1685 # 1686 1687 if test x"${no_tk}" = x ; then 1688 # we reset no_tk in case something fails here 1689 no_tk=true 1690 1691# Check whether --with-tk or --without-tk was given. 1692if test "${with_tk+set}" = set; then 1693 withval="$with_tk" 1694 with_tkconfig=${withval} 1695fi; 1696 echo "$as_me:$LINENO: checking for Tk configuration" >&5 1697echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 1698 if test "${ac_cv_c_tkconfig+set}" = set; then 1699 echo $ECHO_N "(cached) $ECHO_C" >&6 1700else 1701 1702 1703 # First check to see if --with-tkconfig was specified. 1704 if test x"${with_tkconfig}" != x ; then 1705 case ${with_tkconfig} in 1706 */tkConfig.sh ) 1707 if test -f ${with_tkconfig}; then 1708 { echo "$as_me:$LINENO: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5 1709echo "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;} 1710 with_tkconfig=`echo ${with_tkconfig} | sed 's!/tkConfig\.sh$!!'` 1711 fi ;; 1712 esac 1713 if test -f "${with_tkconfig}/tkConfig.sh" ; then 1714 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` 1715 else 1716 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 1717echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} 1718 { (exit 1); exit 1; }; } 1719 fi 1720 fi 1721 1722 # then check for a private Tk library 1723 if test x"${ac_cv_c_tkconfig}" = x ; then 1724 for i in \ 1725 ../tk \ 1726 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 1727 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ 1728 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ 1729 ../../tk \ 1730 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 1731 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ 1732 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ 1733 ../../../tk \ 1734 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 1735 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ 1736 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do 1737 if test -f "$i/unix/tkConfig.sh" ; then 1738 ac_cv_c_tkconfig=`(cd $i/unix; pwd)` 1739 break 1740 fi 1741 done 1742 fi 1743 1744 # on Darwin, check in Framework installation locations 1745 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then 1746 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1747 `ls -d /Library/Frameworks 2>/dev/null` \ 1748 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1749 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1750 ; do 1751 if test -f "$i/Tk.framework/tkConfig.sh" ; then 1752 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)` 1753 break 1754 fi 1755 done 1756 fi 1757 1758 # check in a few common install locations 1759 if test x"${ac_cv_c_tkconfig}" = x ; then 1760 for i in `ls -d ${libdir} 2>/dev/null` \ 1761 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 1762 `ls -d ${prefix}/lib 2>/dev/null` \ 1763 `ls -d /usr/local/lib 2>/dev/null` \ 1764 `ls -d /usr/contrib/lib 2>/dev/null` \ 1765 `ls -d /usr/lib 2>/dev/null` \ 1766 ; do 1767 if test -f "$i/tkConfig.sh" ; then 1768 ac_cv_c_tkconfig=`(cd $i; pwd)` 1769 break 1770 fi 1771 done 1772 fi 1773 1774 # on Windows, check in common installation locations 1775 if test "${TEA_PLATFORM}" = "windows" \ 1776 -a x"${ac_cv_c_tkconfig}" = x ; then 1777 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 1778 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 1779 ; do 1780 if test -f "$i/tkConfig.sh" ; then 1781 ac_cv_c_tkconfig=`(cd $i; pwd)` 1782 break 1783 fi 1784 done 1785 fi 1786 1787 # check in a few other private locations 1788 if test x"${ac_cv_c_tkconfig}" = x ; then 1789 for i in \ 1790 ${srcdir}/../tk \ 1791 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 1792 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ 1793 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do 1794 if test -f "$i/unix/tkConfig.sh" ; then 1795 ac_cv_c_tkconfig=`(cd $i/unix; pwd)` 1796 break 1797 fi 1798 done 1799 fi 1800 1801fi 1802 1803 1804 if test x"${ac_cv_c_tkconfig}" = x ; then 1805 TK_BIN_DIR="# no Tk configs found" 1806 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 1807echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} 1808 exit 0 1809 else 1810 no_tk= 1811 TK_BIN_DIR=${ac_cv_c_tkconfig} 1812 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 1813echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6 1814 fi 1815 fi 1816 1817 1818 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 1819echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6 1820 1821 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then 1822 echo "$as_me:$LINENO: result: loading" >&5 1823echo "${ECHO_T}loading" >&6 1824 . ${TK_BIN_DIR}/tkConfig.sh 1825 else 1826 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 1827echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6 1828 fi 1829 1830 # eval is required to do the TK_DBGX substitution 1831 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" 1832 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" 1833 1834 # If the TK_BIN_DIR is the build directory (not the install directory), 1835 # then set the common variable name to the value of the build variables. 1836 # For example, the variable TK_LIB_SPEC will be set to the value 1837 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC 1838 # instead of TK_BUILD_LIB_SPEC since it will work with both an 1839 # installed and uninstalled version of Tcl. 1840 if test -f ${TK_BIN_DIR}/Makefile ; then 1841 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC} 1842 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC} 1843 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH} 1844 elif test "`uname -s`" = "Darwin"; then 1845 # If Tk was built as a framework, attempt to use the libraries 1846 # from the framework at the given location so that linking works 1847 # against Tk.framework installed in an arbitary location. 1848 case ${TK_DEFS} in 1849 *TK_FRAMEWORK*) 1850 if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then 1851 for i in "`cd ${TK_BIN_DIR}; pwd`" \ 1852 "`cd ${TK_BIN_DIR}/../..; pwd`"; do 1853 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then 1854 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}" 1855 break 1856 fi 1857 done 1858 fi 1859 if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then 1860 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}" 1861 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" 1862 fi 1863 ;; 1864 esac 1865 fi 1866 1867 # eval is required to do the TK_DBGX substitution 1868 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" 1869 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" 1870 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" 1871 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" 1872 1873 # Ensure windowingsystem is defined 1874 if test "${TEA_PLATFORM}" = "unix" ; then 1875 case ${TK_DEFS} in 1876 *MAC_OSX_TK*) 1877 1878cat >>confdefs.h <<\_ACEOF 1879#define MAC_OSX_TK 1 1880_ACEOF 1881 1882 TEA_WINDOWINGSYSTEM="aqua" 1883 ;; 1884 *) 1885 TEA_WINDOWINGSYSTEM="x11" 1886 ;; 1887 esac 1888 elif test "${TEA_PLATFORM}" = "windows" ; then 1889 TEA_WINDOWINGSYSTEM="win32" 1890 fi 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908#----------------------------------------------------------------------- 1909# Handle the --prefix=... option by defaulting to what Tcl gave. 1910# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 1911#----------------------------------------------------------------------- 1912 1913 1914 if test "${prefix}" = "NONE"; then 1915 prefix_default=yes 1916 if test x"${TCL_PREFIX}" != x; then 1917 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 1918echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 1919 prefix=${TCL_PREFIX} 1920 else 1921 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 1922echo "$as_me: --prefix defaulting to /usr/local" >&6;} 1923 prefix=/usr/local 1924 fi 1925 fi 1926 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 1927 -o x"${exec_prefix_default}" = x"yes" ; then 1928 if test x"${TCL_EXEC_PREFIX}" != x; then 1929 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 1930echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 1931 exec_prefix=${TCL_EXEC_PREFIX} 1932 else 1933 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 1934echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 1935 exec_prefix=$prefix 1936 fi 1937 fi 1938 1939 1940#----------------------------------------------------------------------- 1941# Standard compiler checks. 1942# This sets up CC by using the CC env var, or looks for gcc otherwise. 1943# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 1944# the basic setup necessary to compile executables. 1945#----------------------------------------------------------------------- 1946 1947 1948 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 1949 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 1950 1951 # If the user did not set CFLAGS, set it now to keep 1952 # the AC_PROG_CC macro from adding "-g -O2". 1953 if test "${CFLAGS+set}" != "set" ; then 1954 CFLAGS="" 1955 fi 1956 1957 ac_ext=c 1958ac_cpp='$CPP $CPPFLAGS' 1959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1961ac_compiler_gnu=$ac_cv_c_compiler_gnu 1962if test -n "$ac_tool_prefix"; then 1963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1964set dummy ${ac_tool_prefix}gcc; ac_word=$2 1965echo "$as_me:$LINENO: checking for $ac_word" >&5 1966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1967if test "${ac_cv_prog_CC+set}" = set; then 1968 echo $ECHO_N "(cached) $ECHO_C" >&6 1969else 1970 if test -n "$CC"; then 1971 ac_cv_prog_CC="$CC" # Let the user override the test. 1972else 1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1974for as_dir in $PATH 1975do 1976 IFS=$as_save_IFS 1977 test -z "$as_dir" && as_dir=. 1978 for ac_exec_ext in '' $ac_executable_extensions; do 1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1980 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1982 break 2 1983 fi 1984done 1985done 1986 1987fi 1988fi 1989CC=$ac_cv_prog_CC 1990if test -n "$CC"; then 1991 echo "$as_me:$LINENO: result: $CC" >&5 1992echo "${ECHO_T}$CC" >&6 1993else 1994 echo "$as_me:$LINENO: result: no" >&5 1995echo "${ECHO_T}no" >&6 1996fi 1997 1998fi 1999if test -z "$ac_cv_prog_CC"; then 2000 ac_ct_CC=$CC 2001 # Extract the first word of "gcc", so it can be a program name with args. 2002set dummy gcc; ac_word=$2 2003echo "$as_me:$LINENO: checking for $ac_word" >&5 2004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2005if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2006 echo $ECHO_N "(cached) $ECHO_C" >&6 2007else 2008 if test -n "$ac_ct_CC"; then 2009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2010else 2011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2012for as_dir in $PATH 2013do 2014 IFS=$as_save_IFS 2015 test -z "$as_dir" && as_dir=. 2016 for ac_exec_ext in '' $ac_executable_extensions; do 2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2018 ac_cv_prog_ac_ct_CC="gcc" 2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2020 break 2 2021 fi 2022done 2023done 2024 2025fi 2026fi 2027ac_ct_CC=$ac_cv_prog_ac_ct_CC 2028if test -n "$ac_ct_CC"; then 2029 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2030echo "${ECHO_T}$ac_ct_CC" >&6 2031else 2032 echo "$as_me:$LINENO: result: no" >&5 2033echo "${ECHO_T}no" >&6 2034fi 2035 2036 CC=$ac_ct_CC 2037else 2038 CC="$ac_cv_prog_CC" 2039fi 2040 2041if test -z "$CC"; then 2042 if test -n "$ac_tool_prefix"; then 2043 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2044set dummy ${ac_tool_prefix}cc; ac_word=$2 2045echo "$as_me:$LINENO: checking for $ac_word" >&5 2046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2047if test "${ac_cv_prog_CC+set}" = set; then 2048 echo $ECHO_N "(cached) $ECHO_C" >&6 2049else 2050 if test -n "$CC"; then 2051 ac_cv_prog_CC="$CC" # Let the user override the test. 2052else 2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2054for as_dir in $PATH 2055do 2056 IFS=$as_save_IFS 2057 test -z "$as_dir" && as_dir=. 2058 for ac_exec_ext in '' $ac_executable_extensions; do 2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2060 ac_cv_prog_CC="${ac_tool_prefix}cc" 2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2062 break 2 2063 fi 2064done 2065done 2066 2067fi 2068fi 2069CC=$ac_cv_prog_CC 2070if test -n "$CC"; then 2071 echo "$as_me:$LINENO: result: $CC" >&5 2072echo "${ECHO_T}$CC" >&6 2073else 2074 echo "$as_me:$LINENO: result: no" >&5 2075echo "${ECHO_T}no" >&6 2076fi 2077 2078fi 2079if test -z "$ac_cv_prog_CC"; then 2080 ac_ct_CC=$CC 2081 # Extract the first word of "cc", so it can be a program name with args. 2082set dummy cc; ac_word=$2 2083echo "$as_me:$LINENO: checking for $ac_word" >&5 2084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2085if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2086 echo $ECHO_N "(cached) $ECHO_C" >&6 2087else 2088 if test -n "$ac_ct_CC"; then 2089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2090else 2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2092for as_dir in $PATH 2093do 2094 IFS=$as_save_IFS 2095 test -z "$as_dir" && as_dir=. 2096 for ac_exec_ext in '' $ac_executable_extensions; do 2097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2098 ac_cv_prog_ac_ct_CC="cc" 2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2100 break 2 2101 fi 2102done 2103done 2104 2105fi 2106fi 2107ac_ct_CC=$ac_cv_prog_ac_ct_CC 2108if test -n "$ac_ct_CC"; then 2109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2110echo "${ECHO_T}$ac_ct_CC" >&6 2111else 2112 echo "$as_me:$LINENO: result: no" >&5 2113echo "${ECHO_T}no" >&6 2114fi 2115 2116 CC=$ac_ct_CC 2117else 2118 CC="$ac_cv_prog_CC" 2119fi 2120 2121fi 2122if test -z "$CC"; then 2123 # Extract the first word of "cc", so it can be a program name with args. 2124set dummy cc; ac_word=$2 2125echo "$as_me:$LINENO: checking for $ac_word" >&5 2126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2127if test "${ac_cv_prog_CC+set}" = set; then 2128 echo $ECHO_N "(cached) $ECHO_C" >&6 2129else 2130 if test -n "$CC"; then 2131 ac_cv_prog_CC="$CC" # Let the user override the test. 2132else 2133 ac_prog_rejected=no 2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2135for as_dir in $PATH 2136do 2137 IFS=$as_save_IFS 2138 test -z "$as_dir" && as_dir=. 2139 for ac_exec_ext in '' $ac_executable_extensions; do 2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2142 ac_prog_rejected=yes 2143 continue 2144 fi 2145 ac_cv_prog_CC="cc" 2146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2147 break 2 2148 fi 2149done 2150done 2151 2152if test $ac_prog_rejected = yes; then 2153 # We found a bogon in the path, so make sure we never use it. 2154 set dummy $ac_cv_prog_CC 2155 shift 2156 if test $# != 0; then 2157 # We chose a different compiler from the bogus one. 2158 # However, it has the same basename, so the bogon will be chosen 2159 # first if we set CC to just the basename; use the full file name. 2160 shift 2161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2162 fi 2163fi 2164fi 2165fi 2166CC=$ac_cv_prog_CC 2167if test -n "$CC"; then 2168 echo "$as_me:$LINENO: result: $CC" >&5 2169echo "${ECHO_T}$CC" >&6 2170else 2171 echo "$as_me:$LINENO: result: no" >&5 2172echo "${ECHO_T}no" >&6 2173fi 2174 2175fi 2176if test -z "$CC"; then 2177 if test -n "$ac_tool_prefix"; then 2178 for ac_prog in cl 2179 do 2180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2181set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2182echo "$as_me:$LINENO: checking for $ac_word" >&5 2183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2184if test "${ac_cv_prog_CC+set}" = set; then 2185 echo $ECHO_N "(cached) $ECHO_C" >&6 2186else 2187 if test -n "$CC"; then 2188 ac_cv_prog_CC="$CC" # Let the user override the test. 2189else 2190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2191for as_dir in $PATH 2192do 2193 IFS=$as_save_IFS 2194 test -z "$as_dir" && as_dir=. 2195 for ac_exec_ext in '' $ac_executable_extensions; do 2196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2199 break 2 2200 fi 2201done 2202done 2203 2204fi 2205fi 2206CC=$ac_cv_prog_CC 2207if test -n "$CC"; then 2208 echo "$as_me:$LINENO: result: $CC" >&5 2209echo "${ECHO_T}$CC" >&6 2210else 2211 echo "$as_me:$LINENO: result: no" >&5 2212echo "${ECHO_T}no" >&6 2213fi 2214 2215 test -n "$CC" && break 2216 done 2217fi 2218if test -z "$CC"; then 2219 ac_ct_CC=$CC 2220 for ac_prog in cl 2221do 2222 # Extract the first word of "$ac_prog", so it can be a program name with args. 2223set dummy $ac_prog; ac_word=$2 2224echo "$as_me:$LINENO: checking for $ac_word" >&5 2225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2226if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2227 echo $ECHO_N "(cached) $ECHO_C" >&6 2228else 2229 if test -n "$ac_ct_CC"; then 2230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2231else 2232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2233for as_dir in $PATH 2234do 2235 IFS=$as_save_IFS 2236 test -z "$as_dir" && as_dir=. 2237 for ac_exec_ext in '' $ac_executable_extensions; do 2238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2239 ac_cv_prog_ac_ct_CC="$ac_prog" 2240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2241 break 2 2242 fi 2243done 2244done 2245 2246fi 2247fi 2248ac_ct_CC=$ac_cv_prog_ac_ct_CC 2249if test -n "$ac_ct_CC"; then 2250 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2251echo "${ECHO_T}$ac_ct_CC" >&6 2252else 2253 echo "$as_me:$LINENO: result: no" >&5 2254echo "${ECHO_T}no" >&6 2255fi 2256 2257 test -n "$ac_ct_CC" && break 2258done 2259 2260 CC=$ac_ct_CC 2261fi 2262 2263fi 2264 2265 2266test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2267See \`config.log' for more details." >&5 2268echo "$as_me: error: no acceptable C compiler found in \$PATH 2269See \`config.log' for more details." >&2;} 2270 { (exit 1); exit 1; }; } 2271 2272# Provide some information about the compiler. 2273echo "$as_me:$LINENO:" \ 2274 "checking for C compiler version" >&5 2275ac_compiler=`set X $ac_compile; echo $2` 2276{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2277 (eval $ac_compiler --version </dev/null >&5) 2>&5 2278 ac_status=$? 2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2280 (exit $ac_status); } 2281{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2282 (eval $ac_compiler -v </dev/null >&5) 2>&5 2283 ac_status=$? 2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2285 (exit $ac_status); } 2286{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2287 (eval $ac_compiler -V </dev/null >&5) 2>&5 2288 ac_status=$? 2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2290 (exit $ac_status); } 2291 2292cat >conftest.$ac_ext <<_ACEOF 2293/* confdefs.h. */ 2294_ACEOF 2295cat confdefs.h >>conftest.$ac_ext 2296cat >>conftest.$ac_ext <<_ACEOF 2297/* end confdefs.h. */ 2298 2299int 2300main () 2301{ 2302 2303 ; 2304 return 0; 2305} 2306_ACEOF 2307ac_clean_files_save=$ac_clean_files 2308ac_clean_files="$ac_clean_files a.out a.exe b.out" 2309# Try to create an executable without -o first, disregard a.out. 2310# It will help us diagnose broken compilers, and finding out an intuition 2311# of exeext. 2312echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2313echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2314ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2315if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2316 (eval $ac_link_default) 2>&5 2317 ac_status=$? 2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2319 (exit $ac_status); }; then 2320 # Find the output, starting from the most likely. This scheme is 2321# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2322# resort. 2323 2324# Be careful to initialize this variable, since it used to be cached. 2325# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2326ac_cv_exeext= 2327# b.out is created by i960 compilers. 2328for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2329do 2330 test -f "$ac_file" || continue 2331 case $ac_file in 2332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2333 ;; 2334 conftest.$ac_ext ) 2335 # This is the source file. 2336 ;; 2337 [ab].out ) 2338 # We found the default executable, but exeext='' is most 2339 # certainly right. 2340 break;; 2341 *.* ) 2342 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2343 # FIXME: I believe we export ac_cv_exeext for Libtool, 2344 # but it would be cool to find out if it's true. Does anybody 2345 # maintain Libtool? --akim. 2346 export ac_cv_exeext 2347 break;; 2348 * ) 2349 break;; 2350 esac 2351done 2352else 2353 echo "$as_me: failed program was:" >&5 2354sed 's/^/| /' conftest.$ac_ext >&5 2355 2356{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2357See \`config.log' for more details." >&5 2358echo "$as_me: error: C compiler cannot create executables 2359See \`config.log' for more details." >&2;} 2360 { (exit 77); exit 77; }; } 2361fi 2362 2363ac_exeext=$ac_cv_exeext 2364echo "$as_me:$LINENO: result: $ac_file" >&5 2365echo "${ECHO_T}$ac_file" >&6 2366 2367# Check the compiler produces executables we can run. If not, either 2368# the compiler is broken, or we cross compile. 2369echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2370echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2371# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2372# If not cross compiling, check that we can run a simple program. 2373if test "$cross_compiling" != yes; then 2374 if { ac_try='./$ac_file' 2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2376 (eval $ac_try) 2>&5 2377 ac_status=$? 2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2379 (exit $ac_status); }; }; then 2380 cross_compiling=no 2381 else 2382 if test "$cross_compiling" = maybe; then 2383 cross_compiling=yes 2384 else 2385 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2386If you meant to cross compile, use \`--host'. 2387See \`config.log' for more details." >&5 2388echo "$as_me: error: cannot run C compiled programs. 2389If you meant to cross compile, use \`--host'. 2390See \`config.log' for more details." >&2;} 2391 { (exit 1); exit 1; }; } 2392 fi 2393 fi 2394fi 2395echo "$as_me:$LINENO: result: yes" >&5 2396echo "${ECHO_T}yes" >&6 2397 2398rm -f a.out a.exe conftest$ac_cv_exeext b.out 2399ac_clean_files=$ac_clean_files_save 2400# Check the compiler produces executables we can run. If not, either 2401# the compiler is broken, or we cross compile. 2402echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2403echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2404echo "$as_me:$LINENO: result: $cross_compiling" >&5 2405echo "${ECHO_T}$cross_compiling" >&6 2406 2407echo "$as_me:$LINENO: checking for suffix of executables" >&5 2408echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2410 (eval $ac_link) 2>&5 2411 ac_status=$? 2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2413 (exit $ac_status); }; then 2414 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2415# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2416# work properly (i.e., refer to `conftest.exe'), while it won't with 2417# `rm'. 2418for ac_file in conftest.exe conftest conftest.*; do 2419 test -f "$ac_file" || continue 2420 case $ac_file in 2421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2422 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2423 export ac_cv_exeext 2424 break;; 2425 * ) break;; 2426 esac 2427done 2428else 2429 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2430See \`config.log' for more details." >&5 2431echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2432See \`config.log' for more details." >&2;} 2433 { (exit 1); exit 1; }; } 2434fi 2435 2436rm -f conftest$ac_cv_exeext 2437echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2438echo "${ECHO_T}$ac_cv_exeext" >&6 2439 2440rm -f conftest.$ac_ext 2441EXEEXT=$ac_cv_exeext 2442ac_exeext=$EXEEXT 2443echo "$as_me:$LINENO: checking for suffix of object files" >&5 2444echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2445if test "${ac_cv_objext+set}" = set; then 2446 echo $ECHO_N "(cached) $ECHO_C" >&6 2447else 2448 cat >conftest.$ac_ext <<_ACEOF 2449/* confdefs.h. */ 2450_ACEOF 2451cat confdefs.h >>conftest.$ac_ext 2452cat >>conftest.$ac_ext <<_ACEOF 2453/* end confdefs.h. */ 2454 2455int 2456main () 2457{ 2458 2459 ; 2460 return 0; 2461} 2462_ACEOF 2463rm -f conftest.o conftest.obj 2464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2465 (eval $ac_compile) 2>&5 2466 ac_status=$? 2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2468 (exit $ac_status); }; then 2469 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2470 case $ac_file in 2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2472 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2473 break;; 2474 esac 2475done 2476else 2477 echo "$as_me: failed program was:" >&5 2478sed 's/^/| /' conftest.$ac_ext >&5 2479 2480{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2481See \`config.log' for more details." >&5 2482echo "$as_me: error: cannot compute suffix of object files: cannot compile 2483See \`config.log' for more details." >&2;} 2484 { (exit 1); exit 1; }; } 2485fi 2486 2487rm -f conftest.$ac_cv_objext conftest.$ac_ext 2488fi 2489echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2490echo "${ECHO_T}$ac_cv_objext" >&6 2491OBJEXT=$ac_cv_objext 2492ac_objext=$OBJEXT 2493echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2494echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2495if test "${ac_cv_c_compiler_gnu+set}" = set; then 2496 echo $ECHO_N "(cached) $ECHO_C" >&6 2497else 2498 cat >conftest.$ac_ext <<_ACEOF 2499/* confdefs.h. */ 2500_ACEOF 2501cat confdefs.h >>conftest.$ac_ext 2502cat >>conftest.$ac_ext <<_ACEOF 2503/* end confdefs.h. */ 2504 2505int 2506main () 2507{ 2508#ifndef __GNUC__ 2509 choke me 2510#endif 2511 2512 ; 2513 return 0; 2514} 2515_ACEOF 2516rm -f conftest.$ac_objext 2517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2518 (eval $ac_compile) 2>conftest.er1 2519 ac_status=$? 2520 grep -v '^ *+' conftest.er1 >conftest.err 2521 rm -f conftest.er1 2522 cat conftest.err >&5 2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2524 (exit $ac_status); } && 2525 { ac_try='test -z "$ac_c_werror_flag" 2526 || test ! -s conftest.err' 2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2528 (eval $ac_try) 2>&5 2529 ac_status=$? 2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2531 (exit $ac_status); }; } && 2532 { ac_try='test -s conftest.$ac_objext' 2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2534 (eval $ac_try) 2>&5 2535 ac_status=$? 2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2537 (exit $ac_status); }; }; then 2538 ac_compiler_gnu=yes 2539else 2540 echo "$as_me: failed program was:" >&5 2541sed 's/^/| /' conftest.$ac_ext >&5 2542 2543ac_compiler_gnu=no 2544fi 2545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2546ac_cv_c_compiler_gnu=$ac_compiler_gnu 2547 2548fi 2549echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2550echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2551GCC=`test $ac_compiler_gnu = yes && echo yes` 2552ac_test_CFLAGS=${CFLAGS+set} 2553ac_save_CFLAGS=$CFLAGS 2554CFLAGS="-g" 2555echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2556echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2557if test "${ac_cv_prog_cc_g+set}" = set; then 2558 echo $ECHO_N "(cached) $ECHO_C" >&6 2559else 2560 cat >conftest.$ac_ext <<_ACEOF 2561/* confdefs.h. */ 2562_ACEOF 2563cat confdefs.h >>conftest.$ac_ext 2564cat >>conftest.$ac_ext <<_ACEOF 2565/* end confdefs.h. */ 2566 2567int 2568main () 2569{ 2570 2571 ; 2572 return 0; 2573} 2574_ACEOF 2575rm -f conftest.$ac_objext 2576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2577 (eval $ac_compile) 2>conftest.er1 2578 ac_status=$? 2579 grep -v '^ *+' conftest.er1 >conftest.err 2580 rm -f conftest.er1 2581 cat conftest.err >&5 2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2583 (exit $ac_status); } && 2584 { ac_try='test -z "$ac_c_werror_flag" 2585 || test ! -s conftest.err' 2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2587 (eval $ac_try) 2>&5 2588 ac_status=$? 2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2590 (exit $ac_status); }; } && 2591 { ac_try='test -s conftest.$ac_objext' 2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2593 (eval $ac_try) 2>&5 2594 ac_status=$? 2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2596 (exit $ac_status); }; }; then 2597 ac_cv_prog_cc_g=yes 2598else 2599 echo "$as_me: failed program was:" >&5 2600sed 's/^/| /' conftest.$ac_ext >&5 2601 2602ac_cv_prog_cc_g=no 2603fi 2604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2605fi 2606echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2607echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2608if test "$ac_test_CFLAGS" = set; then 2609 CFLAGS=$ac_save_CFLAGS 2610elif test $ac_cv_prog_cc_g = yes; then 2611 if test "$GCC" = yes; then 2612 CFLAGS="-g -O2" 2613 else 2614 CFLAGS="-g" 2615 fi 2616else 2617 if test "$GCC" = yes; then 2618 CFLAGS="-O2" 2619 else 2620 CFLAGS= 2621 fi 2622fi 2623echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2624echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2625if test "${ac_cv_prog_cc_stdc+set}" = set; then 2626 echo $ECHO_N "(cached) $ECHO_C" >&6 2627else 2628 ac_cv_prog_cc_stdc=no 2629ac_save_CC=$CC 2630cat >conftest.$ac_ext <<_ACEOF 2631/* confdefs.h. */ 2632_ACEOF 2633cat confdefs.h >>conftest.$ac_ext 2634cat >>conftest.$ac_ext <<_ACEOF 2635/* end confdefs.h. */ 2636#include <stdarg.h> 2637#include <stdio.h> 2638#include <sys/types.h> 2639#include <sys/stat.h> 2640/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2641struct buf { int x; }; 2642FILE * (*rcsopen) (struct buf *, struct stat *, int); 2643static char *e (p, i) 2644 char **p; 2645 int i; 2646{ 2647 return p[i]; 2648} 2649static char *f (char * (*g) (char **, int), char **p, ...) 2650{ 2651 char *s; 2652 va_list v; 2653 va_start (v,p); 2654 s = g (p, va_arg (v,int)); 2655 va_end (v); 2656 return s; 2657} 2658 2659/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2660 function prototypes and stuff, but not '\xHH' hex character constants. 2661 These don't provoke an error unfortunately, instead are silently treated 2662 as 'x'. The following induces an error, until -std1 is added to get 2663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2664 array size at least. It's necessary to write '\x00'==0 to get something 2665 that's true only with -std1. */ 2666int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2667 2668int test (int i, double x); 2669struct s1 {int (*f) (int a);}; 2670struct s2 {int (*f) (double a);}; 2671int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2672int argc; 2673char **argv; 2674int 2675main () 2676{ 2677return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2678 ; 2679 return 0; 2680} 2681_ACEOF 2682# Don't try gcc -ansi; that turns off useful extensions and 2683# breaks some systems' header files. 2684# AIX -qlanglvl=ansi 2685# Ultrix and OSF/1 -std1 2686# HP-UX 10.20 and later -Ae 2687# HP-UX older versions -Aa -D_HPUX_SOURCE 2688# SVR4 -Xc -D__EXTENSIONS__ 2689for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2690do 2691 CC="$ac_save_CC $ac_arg" 2692 rm -f conftest.$ac_objext 2693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2694 (eval $ac_compile) 2>conftest.er1 2695 ac_status=$? 2696 grep -v '^ *+' conftest.er1 >conftest.err 2697 rm -f conftest.er1 2698 cat conftest.err >&5 2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2700 (exit $ac_status); } && 2701 { ac_try='test -z "$ac_c_werror_flag" 2702 || test ! -s conftest.err' 2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2704 (eval $ac_try) 2>&5 2705 ac_status=$? 2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2707 (exit $ac_status); }; } && 2708 { ac_try='test -s conftest.$ac_objext' 2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2710 (eval $ac_try) 2>&5 2711 ac_status=$? 2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2713 (exit $ac_status); }; }; then 2714 ac_cv_prog_cc_stdc=$ac_arg 2715break 2716else 2717 echo "$as_me: failed program was:" >&5 2718sed 's/^/| /' conftest.$ac_ext >&5 2719 2720fi 2721rm -f conftest.err conftest.$ac_objext 2722done 2723rm -f conftest.$ac_ext conftest.$ac_objext 2724CC=$ac_save_CC 2725 2726fi 2727 2728case "x$ac_cv_prog_cc_stdc" in 2729 x|xno) 2730 echo "$as_me:$LINENO: result: none needed" >&5 2731echo "${ECHO_T}none needed" >&6 ;; 2732 *) 2733 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2734echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2735 CC="$CC $ac_cv_prog_cc_stdc" ;; 2736esac 2737 2738# Some people use a C++ compiler to compile C. Since we use `exit', 2739# in C++ we need to declare it. In case someone uses the same compiler 2740# for both compiling C and C++ we need to have the C++ compiler decide 2741# the declaration of exit, since it's the most demanding environment. 2742cat >conftest.$ac_ext <<_ACEOF 2743#ifndef __cplusplus 2744 choke me 2745#endif 2746_ACEOF 2747rm -f conftest.$ac_objext 2748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2749 (eval $ac_compile) 2>conftest.er1 2750 ac_status=$? 2751 grep -v '^ *+' conftest.er1 >conftest.err 2752 rm -f conftest.er1 2753 cat conftest.err >&5 2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2755 (exit $ac_status); } && 2756 { ac_try='test -z "$ac_c_werror_flag" 2757 || test ! -s conftest.err' 2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2759 (eval $ac_try) 2>&5 2760 ac_status=$? 2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2762 (exit $ac_status); }; } && 2763 { ac_try='test -s conftest.$ac_objext' 2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2765 (eval $ac_try) 2>&5 2766 ac_status=$? 2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2768 (exit $ac_status); }; }; then 2769 for ac_declaration in \ 2770 '' \ 2771 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2772 'extern "C" void std::exit (int); using std::exit;' \ 2773 'extern "C" void exit (int) throw ();' \ 2774 'extern "C" void exit (int);' \ 2775 'void exit (int);' 2776do 2777 cat >conftest.$ac_ext <<_ACEOF 2778/* confdefs.h. */ 2779_ACEOF 2780cat confdefs.h >>conftest.$ac_ext 2781cat >>conftest.$ac_ext <<_ACEOF 2782/* end confdefs.h. */ 2783$ac_declaration 2784#include <stdlib.h> 2785int 2786main () 2787{ 2788exit (42); 2789 ; 2790 return 0; 2791} 2792_ACEOF 2793rm -f conftest.$ac_objext 2794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2795 (eval $ac_compile) 2>conftest.er1 2796 ac_status=$? 2797 grep -v '^ *+' conftest.er1 >conftest.err 2798 rm -f conftest.er1 2799 cat conftest.err >&5 2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2801 (exit $ac_status); } && 2802 { ac_try='test -z "$ac_c_werror_flag" 2803 || test ! -s conftest.err' 2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2805 (eval $ac_try) 2>&5 2806 ac_status=$? 2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2808 (exit $ac_status); }; } && 2809 { ac_try='test -s conftest.$ac_objext' 2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2811 (eval $ac_try) 2>&5 2812 ac_status=$? 2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2814 (exit $ac_status); }; }; then 2815 : 2816else 2817 echo "$as_me: failed program was:" >&5 2818sed 's/^/| /' conftest.$ac_ext >&5 2819 2820continue 2821fi 2822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2823 cat >conftest.$ac_ext <<_ACEOF 2824/* confdefs.h. */ 2825_ACEOF 2826cat confdefs.h >>conftest.$ac_ext 2827cat >>conftest.$ac_ext <<_ACEOF 2828/* end confdefs.h. */ 2829$ac_declaration 2830int 2831main () 2832{ 2833exit (42); 2834 ; 2835 return 0; 2836} 2837_ACEOF 2838rm -f conftest.$ac_objext 2839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2840 (eval $ac_compile) 2>conftest.er1 2841 ac_status=$? 2842 grep -v '^ *+' conftest.er1 >conftest.err 2843 rm -f conftest.er1 2844 cat conftest.err >&5 2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2846 (exit $ac_status); } && 2847 { ac_try='test -z "$ac_c_werror_flag" 2848 || test ! -s conftest.err' 2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2850 (eval $ac_try) 2>&5 2851 ac_status=$? 2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2853 (exit $ac_status); }; } && 2854 { ac_try='test -s conftest.$ac_objext' 2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2856 (eval $ac_try) 2>&5 2857 ac_status=$? 2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2859 (exit $ac_status); }; }; then 2860 break 2861else 2862 echo "$as_me: failed program was:" >&5 2863sed 's/^/| /' conftest.$ac_ext >&5 2864 2865fi 2866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2867done 2868rm -f conftest* 2869if test -n "$ac_declaration"; then 2870 echo '#ifdef __cplusplus' >>confdefs.h 2871 echo $ac_declaration >>confdefs.h 2872 echo '#endif' >>confdefs.h 2873fi 2874 2875else 2876 echo "$as_me: failed program was:" >&5 2877sed 's/^/| /' conftest.$ac_ext >&5 2878 2879fi 2880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2881ac_ext=c 2882ac_cpp='$CPP $CPPFLAGS' 2883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2885ac_compiler_gnu=$ac_cv_c_compiler_gnu 2886 2887 ac_ext=c 2888ac_cpp='$CPP $CPPFLAGS' 2889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2891ac_compiler_gnu=$ac_cv_c_compiler_gnu 2892echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2893echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2894# On Suns, sometimes $CPP names a directory. 2895if test -n "$CPP" && test -d "$CPP"; then 2896 CPP= 2897fi 2898if test -z "$CPP"; then 2899 if test "${ac_cv_prog_CPP+set}" = set; then 2900 echo $ECHO_N "(cached) $ECHO_C" >&6 2901else 2902 # Double quotes because CPP needs to be expanded 2903 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2904 do 2905 ac_preproc_ok=false 2906for ac_c_preproc_warn_flag in '' yes 2907do 2908 # Use a header file that comes with gcc, so configuring glibc 2909 # with a fresh cross-compiler works. 2910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2911 # <limits.h> exists even on freestanding compilers. 2912 # On the NeXT, cc -E runs the code through the compiler's parser, 2913 # not just through cpp. "Syntax error" is here to catch this case. 2914 cat >conftest.$ac_ext <<_ACEOF 2915/* confdefs.h. */ 2916_ACEOF 2917cat confdefs.h >>conftest.$ac_ext 2918cat >>conftest.$ac_ext <<_ACEOF 2919/* end confdefs.h. */ 2920#ifdef __STDC__ 2921# include <limits.h> 2922#else 2923# include <assert.h> 2924#endif 2925 Syntax error 2926_ACEOF 2927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2929 ac_status=$? 2930 grep -v '^ *+' conftest.er1 >conftest.err 2931 rm -f conftest.er1 2932 cat conftest.err >&5 2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2934 (exit $ac_status); } >/dev/null; then 2935 if test -s conftest.err; then 2936 ac_cpp_err=$ac_c_preproc_warn_flag 2937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2938 else 2939 ac_cpp_err= 2940 fi 2941else 2942 ac_cpp_err=yes 2943fi 2944if test -z "$ac_cpp_err"; then 2945 : 2946else 2947 echo "$as_me: failed program was:" >&5 2948sed 's/^/| /' conftest.$ac_ext >&5 2949 2950 # Broken: fails on valid input. 2951continue 2952fi 2953rm -f conftest.err conftest.$ac_ext 2954 2955 # OK, works on sane cases. Now check whether non-existent headers 2956 # can be detected and how. 2957 cat >conftest.$ac_ext <<_ACEOF 2958/* confdefs.h. */ 2959_ACEOF 2960cat confdefs.h >>conftest.$ac_ext 2961cat >>conftest.$ac_ext <<_ACEOF 2962/* end confdefs.h. */ 2963#include <ac_nonexistent.h> 2964_ACEOF 2965if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2967 ac_status=$? 2968 grep -v '^ *+' conftest.er1 >conftest.err 2969 rm -f conftest.er1 2970 cat conftest.err >&5 2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2972 (exit $ac_status); } >/dev/null; then 2973 if test -s conftest.err; then 2974 ac_cpp_err=$ac_c_preproc_warn_flag 2975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2976 else 2977 ac_cpp_err= 2978 fi 2979else 2980 ac_cpp_err=yes 2981fi 2982if test -z "$ac_cpp_err"; then 2983 # Broken: success on invalid input. 2984continue 2985else 2986 echo "$as_me: failed program was:" >&5 2987sed 's/^/| /' conftest.$ac_ext >&5 2988 2989 # Passes both tests. 2990ac_preproc_ok=: 2991break 2992fi 2993rm -f conftest.err conftest.$ac_ext 2994 2995done 2996# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2997rm -f conftest.err conftest.$ac_ext 2998if $ac_preproc_ok; then 2999 break 3000fi 3001 3002 done 3003 ac_cv_prog_CPP=$CPP 3004 3005fi 3006 CPP=$ac_cv_prog_CPP 3007else 3008 ac_cv_prog_CPP=$CPP 3009fi 3010echo "$as_me:$LINENO: result: $CPP" >&5 3011echo "${ECHO_T}$CPP" >&6 3012ac_preproc_ok=false 3013for ac_c_preproc_warn_flag in '' yes 3014do 3015 # Use a header file that comes with gcc, so configuring glibc 3016 # with a fresh cross-compiler works. 3017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3018 # <limits.h> exists even on freestanding compilers. 3019 # On the NeXT, cc -E runs the code through the compiler's parser, 3020 # not just through cpp. "Syntax error" is here to catch this case. 3021 cat >conftest.$ac_ext <<_ACEOF 3022/* confdefs.h. */ 3023_ACEOF 3024cat confdefs.h >>conftest.$ac_ext 3025cat >>conftest.$ac_ext <<_ACEOF 3026/* end confdefs.h. */ 3027#ifdef __STDC__ 3028# include <limits.h> 3029#else 3030# include <assert.h> 3031#endif 3032 Syntax error 3033_ACEOF 3034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3036 ac_status=$? 3037 grep -v '^ *+' conftest.er1 >conftest.err 3038 rm -f conftest.er1 3039 cat conftest.err >&5 3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3041 (exit $ac_status); } >/dev/null; then 3042 if test -s conftest.err; then 3043 ac_cpp_err=$ac_c_preproc_warn_flag 3044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3045 else 3046 ac_cpp_err= 3047 fi 3048else 3049 ac_cpp_err=yes 3050fi 3051if test -z "$ac_cpp_err"; then 3052 : 3053else 3054 echo "$as_me: failed program was:" >&5 3055sed 's/^/| /' conftest.$ac_ext >&5 3056 3057 # Broken: fails on valid input. 3058continue 3059fi 3060rm -f conftest.err conftest.$ac_ext 3061 3062 # OK, works on sane cases. Now check whether non-existent headers 3063 # can be detected and how. 3064 cat >conftest.$ac_ext <<_ACEOF 3065/* confdefs.h. */ 3066_ACEOF 3067cat confdefs.h >>conftest.$ac_ext 3068cat >>conftest.$ac_ext <<_ACEOF 3069/* end confdefs.h. */ 3070#include <ac_nonexistent.h> 3071_ACEOF 3072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3074 ac_status=$? 3075 grep -v '^ *+' conftest.er1 >conftest.err 3076 rm -f conftest.er1 3077 cat conftest.err >&5 3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3079 (exit $ac_status); } >/dev/null; then 3080 if test -s conftest.err; then 3081 ac_cpp_err=$ac_c_preproc_warn_flag 3082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3083 else 3084 ac_cpp_err= 3085 fi 3086else 3087 ac_cpp_err=yes 3088fi 3089if test -z "$ac_cpp_err"; then 3090 # Broken: success on invalid input. 3091continue 3092else 3093 echo "$as_me: failed program was:" >&5 3094sed 's/^/| /' conftest.$ac_ext >&5 3095 3096 # Passes both tests. 3097ac_preproc_ok=: 3098break 3099fi 3100rm -f conftest.err conftest.$ac_ext 3101 3102done 3103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3104rm -f conftest.err conftest.$ac_ext 3105if $ac_preproc_ok; then 3106 : 3107else 3108 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3109See \`config.log' for more details." >&5 3110echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3111See \`config.log' for more details." >&2;} 3112 { (exit 1); exit 1; }; } 3113fi 3114 3115ac_ext=c 3116ac_cpp='$CPP $CPPFLAGS' 3117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3119ac_compiler_gnu=$ac_cv_c_compiler_gnu 3120 3121 3122 # Find a good install program. We prefer a C program (faster), 3123# so one script is as good as another. But avoid the broken or 3124# incompatible versions: 3125# SysV /etc/install, /usr/sbin/install 3126# SunOS /usr/etc/install 3127# IRIX /sbin/install 3128# AIX /bin/install 3129# AmigaOS /C/install, which installs bootblocks on floppy discs 3130# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3131# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3132# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3133# OS/2's system install, which has a completely different semantic 3134# ./install, which can be erroneously created by make from ./install.sh. 3135echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3136echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3137if test -z "$INSTALL"; then 3138if test "${ac_cv_path_install+set}" = set; then 3139 echo $ECHO_N "(cached) $ECHO_C" >&6 3140else 3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3142for as_dir in $PATH 3143do 3144 IFS=$as_save_IFS 3145 test -z "$as_dir" && as_dir=. 3146 # Account for people who put trailing slashes in PATH elements. 3147case $as_dir/ in 3148 ./ | .// | /cC/* | \ 3149 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3150 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3151 /usr/ucb/* ) ;; 3152 *) 3153 # OSF1 and SCO ODT 3.0 have their own names for install. 3154 # Don't use installbsd from OSF since it installs stuff as root 3155 # by default. 3156 for ac_prog in ginstall scoinst install; do 3157 for ac_exec_ext in '' $ac_executable_extensions; do 3158 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3159 if test $ac_prog = install && 3160 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3161 # AIX install. It has an incompatible calling convention. 3162 : 3163 elif test $ac_prog = install && 3164 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3165 # program-specific install script used by HP pwplus--don't use. 3166 : 3167 else 3168 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3169 break 3 3170 fi 3171 fi 3172 done 3173 done 3174 ;; 3175esac 3176done 3177 3178 3179fi 3180 if test "${ac_cv_path_install+set}" = set; then 3181 INSTALL=$ac_cv_path_install 3182 else 3183 # As a last resort, use the slow shell script. We don't cache a 3184 # path for INSTALL within a source directory, because that will 3185 # break other packages using the cache if that directory is 3186 # removed, or if the path is relative. 3187 INSTALL=$ac_install_sh 3188 fi 3189fi 3190echo "$as_me:$LINENO: result: $INSTALL" >&5 3191echo "${ECHO_T}$INSTALL" >&6 3192 3193# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3194# It thinks the first close brace ends the variable substitution. 3195test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3196 3197test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3198 3199test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3200 3201 3202 #-------------------------------------------------------------------- 3203 # Checks to see if the make program sets the $MAKE variable. 3204 #-------------------------------------------------------------------- 3205 3206 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3207echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3208set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3209if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3210 echo $ECHO_N "(cached) $ECHO_C" >&6 3211else 3212 cat >conftest.make <<\_ACEOF 3213all: 3214 @echo 'ac_maketemp="$(MAKE)"' 3215_ACEOF 3216# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3217eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3218if test -n "$ac_maketemp"; then 3219 eval ac_cv_prog_make_${ac_make}_set=yes 3220else 3221 eval ac_cv_prog_make_${ac_make}_set=no 3222fi 3223rm -f conftest.make 3224fi 3225if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3226 echo "$as_me:$LINENO: result: yes" >&5 3227echo "${ECHO_T}yes" >&6 3228 SET_MAKE= 3229else 3230 echo "$as_me:$LINENO: result: no" >&5 3231echo "${ECHO_T}no" >&6 3232 SET_MAKE="MAKE=${MAKE-make}" 3233fi 3234 3235 3236 #-------------------------------------------------------------------- 3237 # Find ranlib 3238 #-------------------------------------------------------------------- 3239 3240 if test -n "$ac_tool_prefix"; then 3241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3242set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3243echo "$as_me:$LINENO: checking for $ac_word" >&5 3244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3245if test "${ac_cv_prog_RANLIB+set}" = set; then 3246 echo $ECHO_N "(cached) $ECHO_C" >&6 3247else 3248 if test -n "$RANLIB"; then 3249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3250else 3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3252for as_dir in $PATH 3253do 3254 IFS=$as_save_IFS 3255 test -z "$as_dir" && as_dir=. 3256 for ac_exec_ext in '' $ac_executable_extensions; do 3257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3260 break 2 3261 fi 3262done 3263done 3264 3265fi 3266fi 3267RANLIB=$ac_cv_prog_RANLIB 3268if test -n "$RANLIB"; then 3269 echo "$as_me:$LINENO: result: $RANLIB" >&5 3270echo "${ECHO_T}$RANLIB" >&6 3271else 3272 echo "$as_me:$LINENO: result: no" >&5 3273echo "${ECHO_T}no" >&6 3274fi 3275 3276fi 3277if test -z "$ac_cv_prog_RANLIB"; then 3278 ac_ct_RANLIB=$RANLIB 3279 # Extract the first word of "ranlib", so it can be a program name with args. 3280set dummy ranlib; ac_word=$2 3281echo "$as_me:$LINENO: checking for $ac_word" >&5 3282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3283if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3284 echo $ECHO_N "(cached) $ECHO_C" >&6 3285else 3286 if test -n "$ac_ct_RANLIB"; then 3287 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3288else 3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3290for as_dir in $PATH 3291do 3292 IFS=$as_save_IFS 3293 test -z "$as_dir" && as_dir=. 3294 for ac_exec_ext in '' $ac_executable_extensions; do 3295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3296 ac_cv_prog_ac_ct_RANLIB="ranlib" 3297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3298 break 2 3299 fi 3300done 3301done 3302 3303 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3304fi 3305fi 3306ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3307if test -n "$ac_ct_RANLIB"; then 3308 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3309echo "${ECHO_T}$ac_ct_RANLIB" >&6 3310else 3311 echo "$as_me:$LINENO: result: no" >&5 3312echo "${ECHO_T}no" >&6 3313fi 3314 3315 RANLIB=$ac_ct_RANLIB 3316else 3317 RANLIB="$ac_cv_prog_RANLIB" 3318fi 3319 3320 3321 #-------------------------------------------------------------------- 3322 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3323 #-------------------------------------------------------------------- 3324 3325 3326 3327 3328 3329 3330echo "$as_me:$LINENO: checking for egrep" >&5 3331echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3332if test "${ac_cv_prog_egrep+set}" = set; then 3333 echo $ECHO_N "(cached) $ECHO_C" >&6 3334else 3335 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3336 then ac_cv_prog_egrep='grep -E' 3337 else ac_cv_prog_egrep='egrep' 3338 fi 3339fi 3340echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3341echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3342 EGREP=$ac_cv_prog_egrep 3343 3344 3345echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3346echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3347if test "${ac_cv_header_stdc+set}" = set; then 3348 echo $ECHO_N "(cached) $ECHO_C" >&6 3349else 3350 cat >conftest.$ac_ext <<_ACEOF 3351/* confdefs.h. */ 3352_ACEOF 3353cat confdefs.h >>conftest.$ac_ext 3354cat >>conftest.$ac_ext <<_ACEOF 3355/* end confdefs.h. */ 3356#include <stdlib.h> 3357#include <stdarg.h> 3358#include <string.h> 3359#include <float.h> 3360 3361int 3362main () 3363{ 3364 3365 ; 3366 return 0; 3367} 3368_ACEOF 3369rm -f conftest.$ac_objext 3370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3371 (eval $ac_compile) 2>conftest.er1 3372 ac_status=$? 3373 grep -v '^ *+' conftest.er1 >conftest.err 3374 rm -f conftest.er1 3375 cat conftest.err >&5 3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3377 (exit $ac_status); } && 3378 { ac_try='test -z "$ac_c_werror_flag" 3379 || test ! -s conftest.err' 3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3381 (eval $ac_try) 2>&5 3382 ac_status=$? 3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3384 (exit $ac_status); }; } && 3385 { ac_try='test -s conftest.$ac_objext' 3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3387 (eval $ac_try) 2>&5 3388 ac_status=$? 3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3390 (exit $ac_status); }; }; then 3391 ac_cv_header_stdc=yes 3392else 3393 echo "$as_me: failed program was:" >&5 3394sed 's/^/| /' conftest.$ac_ext >&5 3395 3396ac_cv_header_stdc=no 3397fi 3398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3399 3400if test $ac_cv_header_stdc = yes; then 3401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3402 cat >conftest.$ac_ext <<_ACEOF 3403/* confdefs.h. */ 3404_ACEOF 3405cat confdefs.h >>conftest.$ac_ext 3406cat >>conftest.$ac_ext <<_ACEOF 3407/* end confdefs.h. */ 3408#include <string.h> 3409 3410_ACEOF 3411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3412 $EGREP "memchr" >/dev/null 2>&1; then 3413 : 3414else 3415 ac_cv_header_stdc=no 3416fi 3417rm -f conftest* 3418 3419fi 3420 3421if test $ac_cv_header_stdc = yes; then 3422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3423 cat >conftest.$ac_ext <<_ACEOF 3424/* confdefs.h. */ 3425_ACEOF 3426cat confdefs.h >>conftest.$ac_ext 3427cat >>conftest.$ac_ext <<_ACEOF 3428/* end confdefs.h. */ 3429#include <stdlib.h> 3430 3431_ACEOF 3432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3433 $EGREP "free" >/dev/null 2>&1; then 3434 : 3435else 3436 ac_cv_header_stdc=no 3437fi 3438rm -f conftest* 3439 3440fi 3441 3442if test $ac_cv_header_stdc = yes; then 3443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3444 if test "$cross_compiling" = yes; then 3445 : 3446else 3447 cat >conftest.$ac_ext <<_ACEOF 3448/* confdefs.h. */ 3449_ACEOF 3450cat confdefs.h >>conftest.$ac_ext 3451cat >>conftest.$ac_ext <<_ACEOF 3452/* end confdefs.h. */ 3453#include <ctype.h> 3454#if ((' ' & 0x0FF) == 0x020) 3455# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3456# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3457#else 3458# define ISLOWER(c) \ 3459 (('a' <= (c) && (c) <= 'i') \ 3460 || ('j' <= (c) && (c) <= 'r') \ 3461 || ('s' <= (c) && (c) <= 'z')) 3462# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3463#endif 3464 3465#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3466int 3467main () 3468{ 3469 int i; 3470 for (i = 0; i < 256; i++) 3471 if (XOR (islower (i), ISLOWER (i)) 3472 || toupper (i) != TOUPPER (i)) 3473 exit(2); 3474 exit (0); 3475} 3476_ACEOF 3477rm -f conftest$ac_exeext 3478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3479 (eval $ac_link) 2>&5 3480 ac_status=$? 3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 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 : 3489else 3490 echo "$as_me: program exited with status $ac_status" >&5 3491echo "$as_me: failed program was:" >&5 3492sed 's/^/| /' conftest.$ac_ext >&5 3493 3494( exit $ac_status ) 3495ac_cv_header_stdc=no 3496fi 3497rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3498fi 3499fi 3500fi 3501echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3502echo "${ECHO_T}$ac_cv_header_stdc" >&6 3503if test $ac_cv_header_stdc = yes; then 3504 3505cat >>confdefs.h <<\_ACEOF 3506#define STDC_HEADERS 1 3507_ACEOF 3508 3509fi 3510 3511# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3522 inttypes.h stdint.h unistd.h 3523do 3524as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3525echo "$as_me:$LINENO: checking for $ac_header" >&5 3526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3527if eval "test \"\${$as_ac_Header+set}\" = set"; then 3528 echo $ECHO_N "(cached) $ECHO_C" >&6 3529else 3530 cat >conftest.$ac_ext <<_ACEOF 3531/* confdefs.h. */ 3532_ACEOF 3533cat confdefs.h >>conftest.$ac_ext 3534cat >>conftest.$ac_ext <<_ACEOF 3535/* end confdefs.h. */ 3536$ac_includes_default 3537 3538#include <$ac_header> 3539_ACEOF 3540rm -f conftest.$ac_objext 3541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3542 (eval $ac_compile) 2>conftest.er1 3543 ac_status=$? 3544 grep -v '^ *+' conftest.er1 >conftest.err 3545 rm -f conftest.er1 3546 cat conftest.err >&5 3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3548 (exit $ac_status); } && 3549 { ac_try='test -z "$ac_c_werror_flag" 3550 || test ! -s conftest.err' 3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3552 (eval $ac_try) 2>&5 3553 ac_status=$? 3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3555 (exit $ac_status); }; } && 3556 { ac_try='test -s conftest.$ac_objext' 3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3558 (eval $ac_try) 2>&5 3559 ac_status=$? 3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3561 (exit $ac_status); }; }; then 3562 eval "$as_ac_Header=yes" 3563else 3564 echo "$as_me: failed program was:" >&5 3565sed 's/^/| /' conftest.$ac_ext >&5 3566 3567eval "$as_ac_Header=no" 3568fi 3569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3570fi 3571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3573if test `eval echo '${'$as_ac_Header'}'` = yes; then 3574 cat >>confdefs.h <<_ACEOF 3575#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3576_ACEOF 3577 3578fi 3579 3580done 3581 3582 3583 3584 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 3585 3586 3587 #------------------------------------------------------------------------ 3588 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 3589 # It makes compiling go faster. (This is only a performance feature.) 3590 #------------------------------------------------------------------------ 3591 3592 if test -z "$no_pipe" -a -n "$GCC"; then 3593 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 3594echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6 3595if test "${tcl_cv_cc_pipe+set}" = set; then 3596 echo $ECHO_N "(cached) $ECHO_C" >&6 3597else 3598 3599 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 3600 cat >conftest.$ac_ext <<_ACEOF 3601/* confdefs.h. */ 3602_ACEOF 3603cat confdefs.h >>conftest.$ac_ext 3604cat >>conftest.$ac_ext <<_ACEOF 3605/* end confdefs.h. */ 3606 3607int 3608main () 3609{ 3610 3611 ; 3612 return 0; 3613} 3614_ACEOF 3615rm -f conftest.$ac_objext 3616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3617 (eval $ac_compile) 2>conftest.er1 3618 ac_status=$? 3619 grep -v '^ *+' conftest.er1 >conftest.err 3620 rm -f conftest.er1 3621 cat conftest.err >&5 3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3623 (exit $ac_status); } && 3624 { ac_try='test -z "$ac_c_werror_flag" 3625 || test ! -s conftest.err' 3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3627 (eval $ac_try) 2>&5 3628 ac_status=$? 3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3630 (exit $ac_status); }; } && 3631 { ac_try='test -s conftest.$ac_objext' 3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3633 (eval $ac_try) 2>&5 3634 ac_status=$? 3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3636 (exit $ac_status); }; }; then 3637 tcl_cv_cc_pipe=yes 3638else 3639 echo "$as_me: failed program was:" >&5 3640sed 's/^/| /' conftest.$ac_ext >&5 3641 3642tcl_cv_cc_pipe=no 3643fi 3644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3645 CFLAGS=$hold_cflags 3646fi 3647echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 3648echo "${ECHO_T}$tcl_cv_cc_pipe" >&6 3649 if test $tcl_cv_cc_pipe = yes; then 3650 CFLAGS="$CFLAGS -pipe" 3651 fi 3652 fi 3653 3654 #-------------------------------------------------------------------- 3655 # Common compiler flag setup 3656 #-------------------------------------------------------------------- 3657 3658 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 3659echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 3660if test "${ac_cv_c_bigendian+set}" = set; then 3661 echo $ECHO_N "(cached) $ECHO_C" >&6 3662else 3663 # See if sys/param.h defines the BYTE_ORDER macro. 3664cat >conftest.$ac_ext <<_ACEOF 3665/* confdefs.h. */ 3666_ACEOF 3667cat confdefs.h >>conftest.$ac_ext 3668cat >>conftest.$ac_ext <<_ACEOF 3669/* end confdefs.h. */ 3670#include <sys/types.h> 3671#include <sys/param.h> 3672 3673int 3674main () 3675{ 3676#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3677 bogus endian macros 3678#endif 3679 3680 ; 3681 return 0; 3682} 3683_ACEOF 3684rm -f conftest.$ac_objext 3685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3686 (eval $ac_compile) 2>conftest.er1 3687 ac_status=$? 3688 grep -v '^ *+' conftest.er1 >conftest.err 3689 rm -f conftest.er1 3690 cat conftest.err >&5 3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3692 (exit $ac_status); } && 3693 { ac_try='test -z "$ac_c_werror_flag" 3694 || test ! -s conftest.err' 3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3696 (eval $ac_try) 2>&5 3697 ac_status=$? 3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3699 (exit $ac_status); }; } && 3700 { ac_try='test -s conftest.$ac_objext' 3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3702 (eval $ac_try) 2>&5 3703 ac_status=$? 3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3705 (exit $ac_status); }; }; then 3706 # It does; now see whether it defined to BIG_ENDIAN or not. 3707cat >conftest.$ac_ext <<_ACEOF 3708/* confdefs.h. */ 3709_ACEOF 3710cat confdefs.h >>conftest.$ac_ext 3711cat >>conftest.$ac_ext <<_ACEOF 3712/* end confdefs.h. */ 3713#include <sys/types.h> 3714#include <sys/param.h> 3715 3716int 3717main () 3718{ 3719#if BYTE_ORDER != BIG_ENDIAN 3720 not big endian 3721#endif 3722 3723 ; 3724 return 0; 3725} 3726_ACEOF 3727rm -f conftest.$ac_objext 3728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3729 (eval $ac_compile) 2>conftest.er1 3730 ac_status=$? 3731 grep -v '^ *+' conftest.er1 >conftest.err 3732 rm -f conftest.er1 3733 cat conftest.err >&5 3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3735 (exit $ac_status); } && 3736 { ac_try='test -z "$ac_c_werror_flag" 3737 || test ! -s conftest.err' 3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3739 (eval $ac_try) 2>&5 3740 ac_status=$? 3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3742 (exit $ac_status); }; } && 3743 { ac_try='test -s conftest.$ac_objext' 3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3745 (eval $ac_try) 2>&5 3746 ac_status=$? 3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3748 (exit $ac_status); }; }; then 3749 ac_cv_c_bigendian=yes 3750else 3751 echo "$as_me: failed program was:" >&5 3752sed 's/^/| /' conftest.$ac_ext >&5 3753 3754ac_cv_c_bigendian=no 3755fi 3756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3757else 3758 echo "$as_me: failed program was:" >&5 3759sed 's/^/| /' conftest.$ac_ext >&5 3760 3761# It does not; compile a test program. 3762if test "$cross_compiling" = yes; then 3763 # try to guess the endianness by grepping values into an object file 3764 ac_cv_c_bigendian=unknown 3765 cat >conftest.$ac_ext <<_ACEOF 3766/* confdefs.h. */ 3767_ACEOF 3768cat confdefs.h >>conftest.$ac_ext 3769cat >>conftest.$ac_ext <<_ACEOF 3770/* end confdefs.h. */ 3771short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 3772short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 3773void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 3774short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 3775short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 3776void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 3777int 3778main () 3779{ 3780 _ascii (); _ebcdic (); 3781 ; 3782 return 0; 3783} 3784_ACEOF 3785rm -f conftest.$ac_objext 3786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3787 (eval $ac_compile) 2>conftest.er1 3788 ac_status=$? 3789 grep -v '^ *+' conftest.er1 >conftest.err 3790 rm -f conftest.er1 3791 cat conftest.err >&5 3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3793 (exit $ac_status); } && 3794 { ac_try='test -z "$ac_c_werror_flag" 3795 || test ! -s conftest.err' 3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3797 (eval $ac_try) 2>&5 3798 ac_status=$? 3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3800 (exit $ac_status); }; } && 3801 { ac_try='test -s conftest.$ac_objext' 3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3803 (eval $ac_try) 2>&5 3804 ac_status=$? 3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3806 (exit $ac_status); }; }; then 3807 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 3808 ac_cv_c_bigendian=yes 3809fi 3810if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 3811 if test "$ac_cv_c_bigendian" = unknown; then 3812 ac_cv_c_bigendian=no 3813 else 3814 # finding both strings is unlikely to happen, but who knows? 3815 ac_cv_c_bigendian=unknown 3816 fi 3817fi 3818else 3819 echo "$as_me: failed program was:" >&5 3820sed 's/^/| /' conftest.$ac_ext >&5 3821 3822fi 3823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3824else 3825 cat >conftest.$ac_ext <<_ACEOF 3826/* confdefs.h. */ 3827_ACEOF 3828cat confdefs.h >>conftest.$ac_ext 3829cat >>conftest.$ac_ext <<_ACEOF 3830/* end confdefs.h. */ 3831int 3832main () 3833{ 3834 /* Are we little or big endian? From Harbison&Steele. */ 3835 union 3836 { 3837 long l; 3838 char c[sizeof (long)]; 3839 } u; 3840 u.l = 1; 3841 exit (u.c[sizeof (long) - 1] == 1); 3842} 3843_ACEOF 3844rm -f conftest$ac_exeext 3845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3846 (eval $ac_link) 2>&5 3847 ac_status=$? 3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3851 (eval $ac_try) 2>&5 3852 ac_status=$? 3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3854 (exit $ac_status); }; }; then 3855 ac_cv_c_bigendian=no 3856else 3857 echo "$as_me: program exited with status $ac_status" >&5 3858echo "$as_me: failed program was:" >&5 3859sed 's/^/| /' conftest.$ac_ext >&5 3860 3861( exit $ac_status ) 3862ac_cv_c_bigendian=yes 3863fi 3864rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3865fi 3866fi 3867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3868fi 3869echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 3870echo "${ECHO_T}$ac_cv_c_bigendian" >&6 3871case $ac_cv_c_bigendian in 3872 yes) 3873 3874cat >>confdefs.h <<\_ACEOF 3875#define WORDS_BIGENDIAN 1 3876_ACEOF 3877 ;; 3878 no) 3879 ;; 3880 *) 3881 { { echo "$as_me:$LINENO: error: unknown endianness 3882presetting ac_cv_c_bigendian=no (or yes) will help" >&5 3883echo "$as_me: error: unknown endianness 3884presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 3885 { (exit 1); exit 1; }; } ;; 3886esac 3887 3888 if test "${TEA_PLATFORM}" = "unix" ; then 3889 3890 #-------------------------------------------------------------------- 3891 # On a few very rare systems, all of the libm.a stuff is 3892 # already in libc.a. Set compiler flags accordingly. 3893 # Also, Linux requires the "ieee" library for math to work 3894 # right (and it must appear before "-lm"). 3895 #-------------------------------------------------------------------- 3896 3897 echo "$as_me:$LINENO: checking for sin" >&5 3898echo $ECHO_N "checking for sin... $ECHO_C" >&6 3899if test "${ac_cv_func_sin+set}" = set; then 3900 echo $ECHO_N "(cached) $ECHO_C" >&6 3901else 3902 cat >conftest.$ac_ext <<_ACEOF 3903/* confdefs.h. */ 3904_ACEOF 3905cat confdefs.h >>conftest.$ac_ext 3906cat >>conftest.$ac_ext <<_ACEOF 3907/* end confdefs.h. */ 3908/* Define sin to an innocuous variant, in case <limits.h> declares sin. 3909 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3910#define sin innocuous_sin 3911 3912/* System header to define __stub macros and hopefully few prototypes, 3913 which can conflict with char sin (); below. 3914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3915 <limits.h> exists even on freestanding compilers. */ 3916 3917#ifdef __STDC__ 3918# include <limits.h> 3919#else 3920# include <assert.h> 3921#endif 3922 3923#undef sin 3924 3925/* Override any gcc2 internal prototype to avoid an error. */ 3926#ifdef __cplusplus 3927extern "C" 3928{ 3929#endif 3930/* We use char because int might match the return type of a gcc2 3931 builtin and then its argument prototype would still apply. */ 3932char sin (); 3933/* The GNU C library defines this for functions which it implements 3934 to always fail with ENOSYS. Some functions are actually named 3935 something starting with __ and the normal name is an alias. */ 3936#if defined (__stub_sin) || defined (__stub___sin) 3937choke me 3938#else 3939char (*f) () = sin; 3940#endif 3941#ifdef __cplusplus 3942} 3943#endif 3944 3945int 3946main () 3947{ 3948return f != sin; 3949 ; 3950 return 0; 3951} 3952_ACEOF 3953rm -f conftest.$ac_objext conftest$ac_exeext 3954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3955 (eval $ac_link) 2>conftest.er1 3956 ac_status=$? 3957 grep -v '^ *+' conftest.er1 >conftest.err 3958 rm -f conftest.er1 3959 cat conftest.err >&5 3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3961 (exit $ac_status); } && 3962 { ac_try='test -z "$ac_c_werror_flag" 3963 || test ! -s conftest.err' 3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3965 (eval $ac_try) 2>&5 3966 ac_status=$? 3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3968 (exit $ac_status); }; } && 3969 { ac_try='test -s conftest$ac_exeext' 3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3971 (eval $ac_try) 2>&5 3972 ac_status=$? 3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3974 (exit $ac_status); }; }; then 3975 ac_cv_func_sin=yes 3976else 3977 echo "$as_me: failed program was:" >&5 3978sed 's/^/| /' conftest.$ac_ext >&5 3979 3980ac_cv_func_sin=no 3981fi 3982rm -f conftest.err conftest.$ac_objext \ 3983 conftest$ac_exeext conftest.$ac_ext 3984fi 3985echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 3986echo "${ECHO_T}$ac_cv_func_sin" >&6 3987if test $ac_cv_func_sin = yes; then 3988 MATH_LIBS="" 3989else 3990 MATH_LIBS="-lm" 3991fi 3992 3993 echo "$as_me:$LINENO: checking for main in -lieee" >&5 3994echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6 3995if test "${ac_cv_lib_ieee_main+set}" = set; then 3996 echo $ECHO_N "(cached) $ECHO_C" >&6 3997else 3998 ac_check_lib_save_LIBS=$LIBS 3999LIBS="-lieee $LIBS" 4000cat >conftest.$ac_ext <<_ACEOF 4001/* confdefs.h. */ 4002_ACEOF 4003cat confdefs.h >>conftest.$ac_ext 4004cat >>conftest.$ac_ext <<_ACEOF 4005/* end confdefs.h. */ 4006 4007 4008int 4009main () 4010{ 4011main (); 4012 ; 4013 return 0; 4014} 4015_ACEOF 4016rm -f conftest.$ac_objext conftest$ac_exeext 4017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4018 (eval $ac_link) 2>conftest.er1 4019 ac_status=$? 4020 grep -v '^ *+' conftest.er1 >conftest.err 4021 rm -f conftest.er1 4022 cat conftest.err >&5 4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4024 (exit $ac_status); } && 4025 { ac_try='test -z "$ac_c_werror_flag" 4026 || test ! -s conftest.err' 4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4028 (eval $ac_try) 2>&5 4029 ac_status=$? 4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4031 (exit $ac_status); }; } && 4032 { ac_try='test -s conftest$ac_exeext' 4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4034 (eval $ac_try) 2>&5 4035 ac_status=$? 4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4037 (exit $ac_status); }; }; then 4038 ac_cv_lib_ieee_main=yes 4039else 4040 echo "$as_me: failed program was:" >&5 4041sed 's/^/| /' conftest.$ac_ext >&5 4042 4043ac_cv_lib_ieee_main=no 4044fi 4045rm -f conftest.err conftest.$ac_objext \ 4046 conftest$ac_exeext conftest.$ac_ext 4047LIBS=$ac_check_lib_save_LIBS 4048fi 4049echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4050echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6 4051if test $ac_cv_lib_ieee_main = yes; then 4052 MATH_LIBS="-lieee $MATH_LIBS" 4053fi 4054 4055 4056 #-------------------------------------------------------------------- 4057 # Interactive UNIX requires -linet instead of -lsocket, plus it 4058 # needs net/errno.h to define the socket-related error codes. 4059 #-------------------------------------------------------------------- 4060 4061 echo "$as_me:$LINENO: checking for main in -linet" >&5 4062echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6 4063if test "${ac_cv_lib_inet_main+set}" = set; then 4064 echo $ECHO_N "(cached) $ECHO_C" >&6 4065else 4066 ac_check_lib_save_LIBS=$LIBS 4067LIBS="-linet $LIBS" 4068cat >conftest.$ac_ext <<_ACEOF 4069/* confdefs.h. */ 4070_ACEOF 4071cat confdefs.h >>conftest.$ac_ext 4072cat >>conftest.$ac_ext <<_ACEOF 4073/* end confdefs.h. */ 4074 4075 4076int 4077main () 4078{ 4079main (); 4080 ; 4081 return 0; 4082} 4083_ACEOF 4084rm -f conftest.$ac_objext conftest$ac_exeext 4085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4086 (eval $ac_link) 2>conftest.er1 4087 ac_status=$? 4088 grep -v '^ *+' conftest.er1 >conftest.err 4089 rm -f conftest.er1 4090 cat conftest.err >&5 4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4092 (exit $ac_status); } && 4093 { ac_try='test -z "$ac_c_werror_flag" 4094 || test ! -s conftest.err' 4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4096 (eval $ac_try) 2>&5 4097 ac_status=$? 4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4099 (exit $ac_status); }; } && 4100 { ac_try='test -s conftest$ac_exeext' 4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4102 (eval $ac_try) 2>&5 4103 ac_status=$? 4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4105 (exit $ac_status); }; }; then 4106 ac_cv_lib_inet_main=yes 4107else 4108 echo "$as_me: failed program was:" >&5 4109sed 's/^/| /' conftest.$ac_ext >&5 4110 4111ac_cv_lib_inet_main=no 4112fi 4113rm -f conftest.err conftest.$ac_objext \ 4114 conftest$ac_exeext conftest.$ac_ext 4115LIBS=$ac_check_lib_save_LIBS 4116fi 4117echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4118echo "${ECHO_T}$ac_cv_lib_inet_main" >&6 4119if test $ac_cv_lib_inet_main = yes; then 4120 LIBS="$LIBS -linet" 4121fi 4122 4123 if test "${ac_cv_header_net_errno_h+set}" = set; then 4124 echo "$as_me:$LINENO: checking for net/errno.h" >&5 4125echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6 4126if test "${ac_cv_header_net_errno_h+set}" = set; then 4127 echo $ECHO_N "(cached) $ECHO_C" >&6 4128fi 4129echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4130echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6 4131else 4132 # Is the header compilable? 4133echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4134echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6 4135cat >conftest.$ac_ext <<_ACEOF 4136/* confdefs.h. */ 4137_ACEOF 4138cat confdefs.h >>conftest.$ac_ext 4139cat >>conftest.$ac_ext <<_ACEOF 4140/* end confdefs.h. */ 4141$ac_includes_default 4142#include <net/errno.h> 4143_ACEOF 4144rm -f conftest.$ac_objext 4145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4146 (eval $ac_compile) 2>conftest.er1 4147 ac_status=$? 4148 grep -v '^ *+' conftest.er1 >conftest.err 4149 rm -f conftest.er1 4150 cat conftest.err >&5 4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4152 (exit $ac_status); } && 4153 { ac_try='test -z "$ac_c_werror_flag" 4154 || test ! -s conftest.err' 4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4156 (eval $ac_try) 2>&5 4157 ac_status=$? 4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4159 (exit $ac_status); }; } && 4160 { ac_try='test -s conftest.$ac_objext' 4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4162 (eval $ac_try) 2>&5 4163 ac_status=$? 4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4165 (exit $ac_status); }; }; then 4166 ac_header_compiler=yes 4167else 4168 echo "$as_me: failed program was:" >&5 4169sed 's/^/| /' conftest.$ac_ext >&5 4170 4171ac_header_compiler=no 4172fi 4173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4174echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4175echo "${ECHO_T}$ac_header_compiler" >&6 4176 4177# Is the header present? 4178echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4179echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6 4180cat >conftest.$ac_ext <<_ACEOF 4181/* confdefs.h. */ 4182_ACEOF 4183cat confdefs.h >>conftest.$ac_ext 4184cat >>conftest.$ac_ext <<_ACEOF 4185/* end confdefs.h. */ 4186#include <net/errno.h> 4187_ACEOF 4188if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4190 ac_status=$? 4191 grep -v '^ *+' conftest.er1 >conftest.err 4192 rm -f conftest.er1 4193 cat conftest.err >&5 4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4195 (exit $ac_status); } >/dev/null; then 4196 if test -s conftest.err; then 4197 ac_cpp_err=$ac_c_preproc_warn_flag 4198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4199 else 4200 ac_cpp_err= 4201 fi 4202else 4203 ac_cpp_err=yes 4204fi 4205if test -z "$ac_cpp_err"; then 4206 ac_header_preproc=yes 4207else 4208 echo "$as_me: failed program was:" >&5 4209sed 's/^/| /' conftest.$ac_ext >&5 4210 4211 ac_header_preproc=no 4212fi 4213rm -f conftest.err conftest.$ac_ext 4214echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4215echo "${ECHO_T}$ac_header_preproc" >&6 4216 4217# So? What about this header? 4218case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4219 yes:no: ) 4220 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4221echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4222 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4223echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4224 ac_header_preproc=yes 4225 ;; 4226 no:yes:* ) 4227 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4228echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4229 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4230echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4231 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4232echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4233 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4234echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4235 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4236echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4237 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4238echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4239 ( 4240 cat <<\_ASBOX 4241## ------------------------------ ## 4242## Report this to the Tix lists. ## 4243## ------------------------------ ## 4244_ASBOX 4245 ) | 4246 sed "s/^/$as_me: WARNING: /" >&2 4247 ;; 4248esac 4249echo "$as_me:$LINENO: checking for net/errno.h" >&5 4250echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6 4251if test "${ac_cv_header_net_errno_h+set}" = set; then 4252 echo $ECHO_N "(cached) $ECHO_C" >&6 4253else 4254 ac_cv_header_net_errno_h=$ac_header_preproc 4255fi 4256echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4257echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6 4258 4259fi 4260if test $ac_cv_header_net_errno_h = yes; then 4261 4262 4263cat >>confdefs.h <<\_ACEOF 4264#define HAVE_NET_ERRNO_H 1 4265_ACEOF 4266 4267fi 4268 4269 4270 4271 #-------------------------------------------------------------------- 4272 # Check for the existence of the -lsocket and -lnsl libraries. 4273 # The order here is important, so that they end up in the right 4274 # order in the command line generated by make. Here are some 4275 # special considerations: 4276 # 1. Use "connect" and "accept" to check for -lsocket, and 4277 # "gethostbyname" to check for -lnsl. 4278 # 2. Use each function name only once: can't redo a check because 4279 # autoconf caches the results of the last check and won't redo it. 4280 # 3. Use -lnsl and -lsocket only if they supply procedures that 4281 # aren't already present in the normal libraries. This is because 4282 # IRIX 5.2 has libraries, but they aren't needed and they're 4283 # bogus: they goof up name resolution if used. 4284 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4285 # To get around this problem, check for both libraries together 4286 # if -lsocket doesn't work by itself. 4287 #-------------------------------------------------------------------- 4288 4289 tcl_checkBoth=0 4290 echo "$as_me:$LINENO: checking for connect" >&5 4291echo $ECHO_N "checking for connect... $ECHO_C" >&6 4292if test "${ac_cv_func_connect+set}" = set; then 4293 echo $ECHO_N "(cached) $ECHO_C" >&6 4294else 4295 cat >conftest.$ac_ext <<_ACEOF 4296/* confdefs.h. */ 4297_ACEOF 4298cat confdefs.h >>conftest.$ac_ext 4299cat >>conftest.$ac_ext <<_ACEOF 4300/* end confdefs.h. */ 4301/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4302 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4303#define connect innocuous_connect 4304 4305/* System header to define __stub macros and hopefully few prototypes, 4306 which can conflict with char connect (); below. 4307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4308 <limits.h> exists even on freestanding compilers. */ 4309 4310#ifdef __STDC__ 4311# include <limits.h> 4312#else 4313# include <assert.h> 4314#endif 4315 4316#undef connect 4317 4318/* Override any gcc2 internal prototype to avoid an error. */ 4319#ifdef __cplusplus 4320extern "C" 4321{ 4322#endif 4323/* We use char because int might match the return type of a gcc2 4324 builtin and then its argument prototype would still apply. */ 4325char connect (); 4326/* The GNU C library defines this for functions which it implements 4327 to always fail with ENOSYS. Some functions are actually named 4328 something starting with __ and the normal name is an alias. */ 4329#if defined (__stub_connect) || defined (__stub___connect) 4330choke me 4331#else 4332char (*f) () = connect; 4333#endif 4334#ifdef __cplusplus 4335} 4336#endif 4337 4338int 4339main () 4340{ 4341return f != connect; 4342 ; 4343 return 0; 4344} 4345_ACEOF 4346rm -f conftest.$ac_objext conftest$ac_exeext 4347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4348 (eval $ac_link) 2>conftest.er1 4349 ac_status=$? 4350 grep -v '^ *+' conftest.er1 >conftest.err 4351 rm -f conftest.er1 4352 cat conftest.err >&5 4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4354 (exit $ac_status); } && 4355 { ac_try='test -z "$ac_c_werror_flag" 4356 || test ! -s conftest.err' 4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4358 (eval $ac_try) 2>&5 4359 ac_status=$? 4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4361 (exit $ac_status); }; } && 4362 { ac_try='test -s conftest$ac_exeext' 4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4364 (eval $ac_try) 2>&5 4365 ac_status=$? 4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4367 (exit $ac_status); }; }; then 4368 ac_cv_func_connect=yes 4369else 4370 echo "$as_me: failed program was:" >&5 4371sed 's/^/| /' conftest.$ac_ext >&5 4372 4373ac_cv_func_connect=no 4374fi 4375rm -f conftest.err conftest.$ac_objext \ 4376 conftest$ac_exeext conftest.$ac_ext 4377fi 4378echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4379echo "${ECHO_T}$ac_cv_func_connect" >&6 4380if test $ac_cv_func_connect = yes; then 4381 tcl_checkSocket=0 4382else 4383 tcl_checkSocket=1 4384fi 4385 4386 if test "$tcl_checkSocket" = 1; then 4387 echo "$as_me:$LINENO: checking for setsockopt" >&5 4388echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 4389if test "${ac_cv_func_setsockopt+set}" = set; then 4390 echo $ECHO_N "(cached) $ECHO_C" >&6 4391else 4392 cat >conftest.$ac_ext <<_ACEOF 4393/* confdefs.h. */ 4394_ACEOF 4395cat confdefs.h >>conftest.$ac_ext 4396cat >>conftest.$ac_ext <<_ACEOF 4397/* end confdefs.h. */ 4398/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4399 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4400#define setsockopt innocuous_setsockopt 4401 4402/* System header to define __stub macros and hopefully few prototypes, 4403 which can conflict with char setsockopt (); below. 4404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4405 <limits.h> exists even on freestanding compilers. */ 4406 4407#ifdef __STDC__ 4408# include <limits.h> 4409#else 4410# include <assert.h> 4411#endif 4412 4413#undef setsockopt 4414 4415/* Override any gcc2 internal prototype to avoid an error. */ 4416#ifdef __cplusplus 4417extern "C" 4418{ 4419#endif 4420/* We use char because int might match the return type of a gcc2 4421 builtin and then its argument prototype would still apply. */ 4422char setsockopt (); 4423/* The GNU C library defines this for functions which it implements 4424 to always fail with ENOSYS. Some functions are actually named 4425 something starting with __ and the normal name is an alias. */ 4426#if defined (__stub_setsockopt) || defined (__stub___setsockopt) 4427choke me 4428#else 4429char (*f) () = setsockopt; 4430#endif 4431#ifdef __cplusplus 4432} 4433#endif 4434 4435int 4436main () 4437{ 4438return f != setsockopt; 4439 ; 4440 return 0; 4441} 4442_ACEOF 4443rm -f conftest.$ac_objext conftest$ac_exeext 4444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4445 (eval $ac_link) 2>conftest.er1 4446 ac_status=$? 4447 grep -v '^ *+' conftest.er1 >conftest.err 4448 rm -f conftest.er1 4449 cat conftest.err >&5 4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4451 (exit $ac_status); } && 4452 { ac_try='test -z "$ac_c_werror_flag" 4453 || test ! -s conftest.err' 4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4455 (eval $ac_try) 2>&5 4456 ac_status=$? 4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4458 (exit $ac_status); }; } && 4459 { ac_try='test -s conftest$ac_exeext' 4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4461 (eval $ac_try) 2>&5 4462 ac_status=$? 4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4464 (exit $ac_status); }; }; then 4465 ac_cv_func_setsockopt=yes 4466else 4467 echo "$as_me: failed program was:" >&5 4468sed 's/^/| /' conftest.$ac_ext >&5 4469 4470ac_cv_func_setsockopt=no 4471fi 4472rm -f conftest.err conftest.$ac_objext \ 4473 conftest$ac_exeext conftest.$ac_ext 4474fi 4475echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4476echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 4477if test $ac_cv_func_setsockopt = yes; then 4478 : 4479else 4480 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4481echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 4482if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4483 echo $ECHO_N "(cached) $ECHO_C" >&6 4484else 4485 ac_check_lib_save_LIBS=$LIBS 4486LIBS="-lsocket $LIBS" 4487cat >conftest.$ac_ext <<_ACEOF 4488/* confdefs.h. */ 4489_ACEOF 4490cat confdefs.h >>conftest.$ac_ext 4491cat >>conftest.$ac_ext <<_ACEOF 4492/* end confdefs.h. */ 4493 4494/* Override any gcc2 internal prototype to avoid an error. */ 4495#ifdef __cplusplus 4496extern "C" 4497#endif 4498/* We use char because int might match the return type of a gcc2 4499 builtin and then its argument prototype would still apply. */ 4500char setsockopt (); 4501int 4502main () 4503{ 4504setsockopt (); 4505 ; 4506 return 0; 4507} 4508_ACEOF 4509rm -f conftest.$ac_objext conftest$ac_exeext 4510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4511 (eval $ac_link) 2>conftest.er1 4512 ac_status=$? 4513 grep -v '^ *+' conftest.er1 >conftest.err 4514 rm -f conftest.er1 4515 cat conftest.err >&5 4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4517 (exit $ac_status); } && 4518 { ac_try='test -z "$ac_c_werror_flag" 4519 || test ! -s conftest.err' 4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4521 (eval $ac_try) 2>&5 4522 ac_status=$? 4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4524 (exit $ac_status); }; } && 4525 { ac_try='test -s conftest$ac_exeext' 4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4527 (eval $ac_try) 2>&5 4528 ac_status=$? 4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4530 (exit $ac_status); }; }; then 4531 ac_cv_lib_socket_setsockopt=yes 4532else 4533 echo "$as_me: failed program was:" >&5 4534sed 's/^/| /' conftest.$ac_ext >&5 4535 4536ac_cv_lib_socket_setsockopt=no 4537fi 4538rm -f conftest.err conftest.$ac_objext \ 4539 conftest$ac_exeext conftest.$ac_ext 4540LIBS=$ac_check_lib_save_LIBS 4541fi 4542echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4543echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 4544if test $ac_cv_lib_socket_setsockopt = yes; then 4545 LIBS="$LIBS -lsocket" 4546else 4547 tcl_checkBoth=1 4548fi 4549 4550fi 4551 4552 fi 4553 if test "$tcl_checkBoth" = 1; then 4554 tk_oldLibs=$LIBS 4555 LIBS="$LIBS -lsocket -lnsl" 4556 echo "$as_me:$LINENO: checking for accept" >&5 4557echo $ECHO_N "checking for accept... $ECHO_C" >&6 4558if test "${ac_cv_func_accept+set}" = set; then 4559 echo $ECHO_N "(cached) $ECHO_C" >&6 4560else 4561 cat >conftest.$ac_ext <<_ACEOF 4562/* confdefs.h. */ 4563_ACEOF 4564cat confdefs.h >>conftest.$ac_ext 4565cat >>conftest.$ac_ext <<_ACEOF 4566/* end confdefs.h. */ 4567/* Define accept to an innocuous variant, in case <limits.h> declares accept. 4568 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4569#define accept innocuous_accept 4570 4571/* System header to define __stub macros and hopefully few prototypes, 4572 which can conflict with char accept (); below. 4573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4574 <limits.h> exists even on freestanding compilers. */ 4575 4576#ifdef __STDC__ 4577# include <limits.h> 4578#else 4579# include <assert.h> 4580#endif 4581 4582#undef accept 4583 4584/* Override any gcc2 internal prototype to avoid an error. */ 4585#ifdef __cplusplus 4586extern "C" 4587{ 4588#endif 4589/* We use char because int might match the return type of a gcc2 4590 builtin and then its argument prototype would still apply. */ 4591char accept (); 4592/* The GNU C library defines this for functions which it implements 4593 to always fail with ENOSYS. Some functions are actually named 4594 something starting with __ and the normal name is an alias. */ 4595#if defined (__stub_accept) || defined (__stub___accept) 4596choke me 4597#else 4598char (*f) () = accept; 4599#endif 4600#ifdef __cplusplus 4601} 4602#endif 4603 4604int 4605main () 4606{ 4607return f != accept; 4608 ; 4609 return 0; 4610} 4611_ACEOF 4612rm -f conftest.$ac_objext conftest$ac_exeext 4613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4614 (eval $ac_link) 2>conftest.er1 4615 ac_status=$? 4616 grep -v '^ *+' conftest.er1 >conftest.err 4617 rm -f conftest.er1 4618 cat conftest.err >&5 4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4620 (exit $ac_status); } && 4621 { ac_try='test -z "$ac_c_werror_flag" 4622 || test ! -s conftest.err' 4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4624 (eval $ac_try) 2>&5 4625 ac_status=$? 4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4627 (exit $ac_status); }; } && 4628 { ac_try='test -s conftest$ac_exeext' 4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4630 (eval $ac_try) 2>&5 4631 ac_status=$? 4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4633 (exit $ac_status); }; }; then 4634 ac_cv_func_accept=yes 4635else 4636 echo "$as_me: failed program was:" >&5 4637sed 's/^/| /' conftest.$ac_ext >&5 4638 4639ac_cv_func_accept=no 4640fi 4641rm -f conftest.err conftest.$ac_objext \ 4642 conftest$ac_exeext conftest.$ac_ext 4643fi 4644echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 4645echo "${ECHO_T}$ac_cv_func_accept" >&6 4646if test $ac_cv_func_accept = yes; then 4647 tcl_checkNsl=0 4648else 4649 LIBS=$tk_oldLibs 4650fi 4651 4652 fi 4653 echo "$as_me:$LINENO: checking for gethostbyname" >&5 4654echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 4655if test "${ac_cv_func_gethostbyname+set}" = set; then 4656 echo $ECHO_N "(cached) $ECHO_C" >&6 4657else 4658 cat >conftest.$ac_ext <<_ACEOF 4659/* confdefs.h. */ 4660_ACEOF 4661cat confdefs.h >>conftest.$ac_ext 4662cat >>conftest.$ac_ext <<_ACEOF 4663/* end confdefs.h. */ 4664/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 4665 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4666#define gethostbyname innocuous_gethostbyname 4667 4668/* System header to define __stub macros and hopefully few prototypes, 4669 which can conflict with char gethostbyname (); below. 4670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4671 <limits.h> exists even on freestanding compilers. */ 4672 4673#ifdef __STDC__ 4674# include <limits.h> 4675#else 4676# include <assert.h> 4677#endif 4678 4679#undef gethostbyname 4680 4681/* Override any gcc2 internal prototype to avoid an error. */ 4682#ifdef __cplusplus 4683extern "C" 4684{ 4685#endif 4686/* We use char because int might match the return type of a gcc2 4687 builtin and then its argument prototype would still apply. */ 4688char gethostbyname (); 4689/* The GNU C library defines this for functions which it implements 4690 to always fail with ENOSYS. Some functions are actually named 4691 something starting with __ and the normal name is an alias. */ 4692#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 4693choke me 4694#else 4695char (*f) () = gethostbyname; 4696#endif 4697#ifdef __cplusplus 4698} 4699#endif 4700 4701int 4702main () 4703{ 4704return f != gethostbyname; 4705 ; 4706 return 0; 4707} 4708_ACEOF 4709rm -f conftest.$ac_objext conftest$ac_exeext 4710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4711 (eval $ac_link) 2>conftest.er1 4712 ac_status=$? 4713 grep -v '^ *+' conftest.er1 >conftest.err 4714 rm -f conftest.er1 4715 cat conftest.err >&5 4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4717 (exit $ac_status); } && 4718 { ac_try='test -z "$ac_c_werror_flag" 4719 || test ! -s conftest.err' 4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4721 (eval $ac_try) 2>&5 4722 ac_status=$? 4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4724 (exit $ac_status); }; } && 4725 { ac_try='test -s conftest$ac_exeext' 4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4727 (eval $ac_try) 2>&5 4728 ac_status=$? 4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4730 (exit $ac_status); }; }; then 4731 ac_cv_func_gethostbyname=yes 4732else 4733 echo "$as_me: failed program was:" >&5 4734sed 's/^/| /' conftest.$ac_ext >&5 4735 4736ac_cv_func_gethostbyname=no 4737fi 4738rm -f conftest.err conftest.$ac_objext \ 4739 conftest$ac_exeext conftest.$ac_ext 4740fi 4741echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 4742echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 4743if test $ac_cv_func_gethostbyname = yes; then 4744 : 4745else 4746 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 4747echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 4748if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 4749 echo $ECHO_N "(cached) $ECHO_C" >&6 4750else 4751 ac_check_lib_save_LIBS=$LIBS 4752LIBS="-lnsl $LIBS" 4753cat >conftest.$ac_ext <<_ACEOF 4754/* confdefs.h. */ 4755_ACEOF 4756cat confdefs.h >>conftest.$ac_ext 4757cat >>conftest.$ac_ext <<_ACEOF 4758/* end confdefs.h. */ 4759 4760/* Override any gcc2 internal prototype to avoid an error. */ 4761#ifdef __cplusplus 4762extern "C" 4763#endif 4764/* We use char because int might match the return type of a gcc2 4765 builtin and then its argument prototype would still apply. */ 4766char gethostbyname (); 4767int 4768main () 4769{ 4770gethostbyname (); 4771 ; 4772 return 0; 4773} 4774_ACEOF 4775rm -f conftest.$ac_objext conftest$ac_exeext 4776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4777 (eval $ac_link) 2>conftest.er1 4778 ac_status=$? 4779 grep -v '^ *+' conftest.er1 >conftest.err 4780 rm -f conftest.er1 4781 cat conftest.err >&5 4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4783 (exit $ac_status); } && 4784 { ac_try='test -z "$ac_c_werror_flag" 4785 || test ! -s conftest.err' 4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4787 (eval $ac_try) 2>&5 4788 ac_status=$? 4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4790 (exit $ac_status); }; } && 4791 { ac_try='test -s conftest$ac_exeext' 4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4793 (eval $ac_try) 2>&5 4794 ac_status=$? 4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4796 (exit $ac_status); }; }; then 4797 ac_cv_lib_nsl_gethostbyname=yes 4798else 4799 echo "$as_me: failed program was:" >&5 4800sed 's/^/| /' conftest.$ac_ext >&5 4801 4802ac_cv_lib_nsl_gethostbyname=no 4803fi 4804rm -f conftest.err conftest.$ac_objext \ 4805 conftest$ac_exeext conftest.$ac_ext 4806LIBS=$ac_check_lib_save_LIBS 4807fi 4808echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4809echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 4810if test $ac_cv_lib_nsl_gethostbyname = yes; then 4811 LIBS="$LIBS -lnsl" 4812fi 4813 4814fi 4815 4816 4817 # Don't perform the eval of the libraries here because DL_LIBS 4818 # won't be set until we call TEA_CONFIG_CFLAGS 4819 4820 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 4821 4822 4823 4824 4825 echo "$as_me:$LINENO: checking dirent.h" >&5 4826echo $ECHO_N "checking dirent.h... $ECHO_C" >&6 4827if test "${tcl_cv_dirent_h+set}" = set; then 4828 echo $ECHO_N "(cached) $ECHO_C" >&6 4829else 4830 4831 cat >conftest.$ac_ext <<_ACEOF 4832/* confdefs.h. */ 4833_ACEOF 4834cat confdefs.h >>conftest.$ac_ext 4835cat >>conftest.$ac_ext <<_ACEOF 4836/* end confdefs.h. */ 4837#include <sys/types.h> 4838#include <dirent.h> 4839int 4840main () 4841{ 4842 4843#ifndef _POSIX_SOURCE 4844# ifdef __Lynx__ 4845 /* 4846 * Generate compilation error to make the test fail: Lynx headers 4847 * are only valid if really in the POSIX environment. 4848 */ 4849 4850 missing_procedure(); 4851# endif 4852#endif 4853DIR *d; 4854struct dirent *entryPtr; 4855char *p; 4856d = opendir("foobar"); 4857entryPtr = readdir(d); 4858p = entryPtr->d_name; 4859closedir(d); 4860 4861 ; 4862 return 0; 4863} 4864_ACEOF 4865rm -f conftest.$ac_objext conftest$ac_exeext 4866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4867 (eval $ac_link) 2>conftest.er1 4868 ac_status=$? 4869 grep -v '^ *+' conftest.er1 >conftest.err 4870 rm -f conftest.er1 4871 cat conftest.err >&5 4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4873 (exit $ac_status); } && 4874 { ac_try='test -z "$ac_c_werror_flag" 4875 || test ! -s conftest.err' 4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4877 (eval $ac_try) 2>&5 4878 ac_status=$? 4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4880 (exit $ac_status); }; } && 4881 { ac_try='test -s conftest$ac_exeext' 4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4883 (eval $ac_try) 2>&5 4884 ac_status=$? 4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4886 (exit $ac_status); }; }; then 4887 tcl_cv_dirent_h=yes 4888else 4889 echo "$as_me: failed program was:" >&5 4890sed 's/^/| /' conftest.$ac_ext >&5 4891 4892tcl_cv_dirent_h=no 4893fi 4894rm -f conftest.err conftest.$ac_objext \ 4895 conftest$ac_exeext conftest.$ac_ext 4896fi 4897echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 4898echo "${ECHO_T}$tcl_cv_dirent_h" >&6 4899 4900 if test $tcl_cv_dirent_h = no; then 4901 4902cat >>confdefs.h <<\_ACEOF 4903#define NO_DIRENT_H 1 4904_ACEOF 4905 4906 fi 4907 4908 if test "${ac_cv_header_errno_h+set}" = set; then 4909 echo "$as_me:$LINENO: checking for errno.h" >&5 4910echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 4911if test "${ac_cv_header_errno_h+set}" = set; then 4912 echo $ECHO_N "(cached) $ECHO_C" >&6 4913fi 4914echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 4915echo "${ECHO_T}$ac_cv_header_errno_h" >&6 4916else 4917 # Is the header compilable? 4918echo "$as_me:$LINENO: checking errno.h usability" >&5 4919echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6 4920cat >conftest.$ac_ext <<_ACEOF 4921/* confdefs.h. */ 4922_ACEOF 4923cat confdefs.h >>conftest.$ac_ext 4924cat >>conftest.$ac_ext <<_ACEOF 4925/* end confdefs.h. */ 4926$ac_includes_default 4927#include <errno.h> 4928_ACEOF 4929rm -f conftest.$ac_objext 4930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4931 (eval $ac_compile) 2>conftest.er1 4932 ac_status=$? 4933 grep -v '^ *+' conftest.er1 >conftest.err 4934 rm -f conftest.er1 4935 cat conftest.err >&5 4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4937 (exit $ac_status); } && 4938 { ac_try='test -z "$ac_c_werror_flag" 4939 || test ! -s conftest.err' 4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4941 (eval $ac_try) 2>&5 4942 ac_status=$? 4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4944 (exit $ac_status); }; } && 4945 { ac_try='test -s conftest.$ac_objext' 4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4947 (eval $ac_try) 2>&5 4948 ac_status=$? 4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4950 (exit $ac_status); }; }; then 4951 ac_header_compiler=yes 4952else 4953 echo "$as_me: failed program was:" >&5 4954sed 's/^/| /' conftest.$ac_ext >&5 4955 4956ac_header_compiler=no 4957fi 4958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4959echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4960echo "${ECHO_T}$ac_header_compiler" >&6 4961 4962# Is the header present? 4963echo "$as_me:$LINENO: checking errno.h presence" >&5 4964echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6 4965cat >conftest.$ac_ext <<_ACEOF 4966/* confdefs.h. */ 4967_ACEOF 4968cat confdefs.h >>conftest.$ac_ext 4969cat >>conftest.$ac_ext <<_ACEOF 4970/* end confdefs.h. */ 4971#include <errno.h> 4972_ACEOF 4973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4975 ac_status=$? 4976 grep -v '^ *+' conftest.er1 >conftest.err 4977 rm -f conftest.er1 4978 cat conftest.err >&5 4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4980 (exit $ac_status); } >/dev/null; then 4981 if test -s conftest.err; then 4982 ac_cpp_err=$ac_c_preproc_warn_flag 4983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4984 else 4985 ac_cpp_err= 4986 fi 4987else 4988 ac_cpp_err=yes 4989fi 4990if test -z "$ac_cpp_err"; then 4991 ac_header_preproc=yes 4992else 4993 echo "$as_me: failed program was:" >&5 4994sed 's/^/| /' conftest.$ac_ext >&5 4995 4996 ac_header_preproc=no 4997fi 4998rm -f conftest.err conftest.$ac_ext 4999echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5000echo "${ECHO_T}$ac_header_preproc" >&6 5001 5002# So? What about this header? 5003case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5004 yes:no: ) 5005 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5006echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5007 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5008echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5009 ac_header_preproc=yes 5010 ;; 5011 no:yes:* ) 5012 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5013echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5014 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5015echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5016 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5017echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5018 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5019echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5020 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5021echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5022 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5023echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5024 ( 5025 cat <<\_ASBOX 5026## ------------------------------ ## 5027## Report this to the Tix lists. ## 5028## ------------------------------ ## 5029_ASBOX 5030 ) | 5031 sed "s/^/$as_me: WARNING: /" >&2 5032 ;; 5033esac 5034echo "$as_me:$LINENO: checking for errno.h" >&5 5035echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 5036if test "${ac_cv_header_errno_h+set}" = set; then 5037 echo $ECHO_N "(cached) $ECHO_C" >&6 5038else 5039 ac_cv_header_errno_h=$ac_header_preproc 5040fi 5041echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5042echo "${ECHO_T}$ac_cv_header_errno_h" >&6 5043 5044fi 5045if test $ac_cv_header_errno_h = yes; then 5046 : 5047else 5048 5049cat >>confdefs.h <<\_ACEOF 5050#define NO_ERRNO_H 1 5051_ACEOF 5052 5053fi 5054 5055 5056 if test "${ac_cv_header_float_h+set}" = set; then 5057 echo "$as_me:$LINENO: checking for float.h" >&5 5058echo $ECHO_N "checking for float.h... $ECHO_C" >&6 5059if test "${ac_cv_header_float_h+set}" = set; then 5060 echo $ECHO_N "(cached) $ECHO_C" >&6 5061fi 5062echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5063echo "${ECHO_T}$ac_cv_header_float_h" >&6 5064else 5065 # Is the header compilable? 5066echo "$as_me:$LINENO: checking float.h usability" >&5 5067echo $ECHO_N "checking float.h usability... $ECHO_C" >&6 5068cat >conftest.$ac_ext <<_ACEOF 5069/* confdefs.h. */ 5070_ACEOF 5071cat confdefs.h >>conftest.$ac_ext 5072cat >>conftest.$ac_ext <<_ACEOF 5073/* end confdefs.h. */ 5074$ac_includes_default 5075#include <float.h> 5076_ACEOF 5077rm -f conftest.$ac_objext 5078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5079 (eval $ac_compile) 2>conftest.er1 5080 ac_status=$? 5081 grep -v '^ *+' conftest.er1 >conftest.err 5082 rm -f conftest.er1 5083 cat conftest.err >&5 5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5085 (exit $ac_status); } && 5086 { ac_try='test -z "$ac_c_werror_flag" 5087 || test ! -s conftest.err' 5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5089 (eval $ac_try) 2>&5 5090 ac_status=$? 5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5092 (exit $ac_status); }; } && 5093 { ac_try='test -s conftest.$ac_objext' 5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5095 (eval $ac_try) 2>&5 5096 ac_status=$? 5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5098 (exit $ac_status); }; }; then 5099 ac_header_compiler=yes 5100else 5101 echo "$as_me: failed program was:" >&5 5102sed 's/^/| /' conftest.$ac_ext >&5 5103 5104ac_header_compiler=no 5105fi 5106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5107echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5108echo "${ECHO_T}$ac_header_compiler" >&6 5109 5110# Is the header present? 5111echo "$as_me:$LINENO: checking float.h presence" >&5 5112echo $ECHO_N "checking float.h presence... $ECHO_C" >&6 5113cat >conftest.$ac_ext <<_ACEOF 5114/* confdefs.h. */ 5115_ACEOF 5116cat confdefs.h >>conftest.$ac_ext 5117cat >>conftest.$ac_ext <<_ACEOF 5118/* end confdefs.h. */ 5119#include <float.h> 5120_ACEOF 5121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5123 ac_status=$? 5124 grep -v '^ *+' conftest.er1 >conftest.err 5125 rm -f conftest.er1 5126 cat conftest.err >&5 5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5128 (exit $ac_status); } >/dev/null; then 5129 if test -s conftest.err; then 5130 ac_cpp_err=$ac_c_preproc_warn_flag 5131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5132 else 5133 ac_cpp_err= 5134 fi 5135else 5136 ac_cpp_err=yes 5137fi 5138if test -z "$ac_cpp_err"; then 5139 ac_header_preproc=yes 5140else 5141 echo "$as_me: failed program was:" >&5 5142sed 's/^/| /' conftest.$ac_ext >&5 5143 5144 ac_header_preproc=no 5145fi 5146rm -f conftest.err conftest.$ac_ext 5147echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5148echo "${ECHO_T}$ac_header_preproc" >&6 5149 5150# So? What about this header? 5151case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5152 yes:no: ) 5153 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5154echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5155 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5156echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5157 ac_header_preproc=yes 5158 ;; 5159 no:yes:* ) 5160 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5161echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5162 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5163echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5164 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5165echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5166 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5167echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5168 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5169echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5170 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5171echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5172 ( 5173 cat <<\_ASBOX 5174## ------------------------------ ## 5175## Report this to the Tix lists. ## 5176## ------------------------------ ## 5177_ASBOX 5178 ) | 5179 sed "s/^/$as_me: WARNING: /" >&2 5180 ;; 5181esac 5182echo "$as_me:$LINENO: checking for float.h" >&5 5183echo $ECHO_N "checking for float.h... $ECHO_C" >&6 5184if test "${ac_cv_header_float_h+set}" = set; then 5185 echo $ECHO_N "(cached) $ECHO_C" >&6 5186else 5187 ac_cv_header_float_h=$ac_header_preproc 5188fi 5189echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5190echo "${ECHO_T}$ac_cv_header_float_h" >&6 5191 5192fi 5193if test $ac_cv_header_float_h = yes; then 5194 : 5195else 5196 5197cat >>confdefs.h <<\_ACEOF 5198#define NO_FLOAT_H 1 5199_ACEOF 5200 5201fi 5202 5203 5204 if test "${ac_cv_header_values_h+set}" = set; then 5205 echo "$as_me:$LINENO: checking for values.h" >&5 5206echo $ECHO_N "checking for values.h... $ECHO_C" >&6 5207if test "${ac_cv_header_values_h+set}" = set; then 5208 echo $ECHO_N "(cached) $ECHO_C" >&6 5209fi 5210echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5211echo "${ECHO_T}$ac_cv_header_values_h" >&6 5212else 5213 # Is the header compilable? 5214echo "$as_me:$LINENO: checking values.h usability" >&5 5215echo $ECHO_N "checking values.h usability... $ECHO_C" >&6 5216cat >conftest.$ac_ext <<_ACEOF 5217/* confdefs.h. */ 5218_ACEOF 5219cat confdefs.h >>conftest.$ac_ext 5220cat >>conftest.$ac_ext <<_ACEOF 5221/* end confdefs.h. */ 5222$ac_includes_default 5223#include <values.h> 5224_ACEOF 5225rm -f conftest.$ac_objext 5226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5227 (eval $ac_compile) 2>conftest.er1 5228 ac_status=$? 5229 grep -v '^ *+' conftest.er1 >conftest.err 5230 rm -f conftest.er1 5231 cat conftest.err >&5 5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5233 (exit $ac_status); } && 5234 { ac_try='test -z "$ac_c_werror_flag" 5235 || test ! -s conftest.err' 5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5237 (eval $ac_try) 2>&5 5238 ac_status=$? 5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5240 (exit $ac_status); }; } && 5241 { ac_try='test -s conftest.$ac_objext' 5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5243 (eval $ac_try) 2>&5 5244 ac_status=$? 5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5246 (exit $ac_status); }; }; then 5247 ac_header_compiler=yes 5248else 5249 echo "$as_me: failed program was:" >&5 5250sed 's/^/| /' conftest.$ac_ext >&5 5251 5252ac_header_compiler=no 5253fi 5254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5255echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5256echo "${ECHO_T}$ac_header_compiler" >&6 5257 5258# Is the header present? 5259echo "$as_me:$LINENO: checking values.h presence" >&5 5260echo $ECHO_N "checking values.h presence... $ECHO_C" >&6 5261cat >conftest.$ac_ext <<_ACEOF 5262/* confdefs.h. */ 5263_ACEOF 5264cat confdefs.h >>conftest.$ac_ext 5265cat >>conftest.$ac_ext <<_ACEOF 5266/* end confdefs.h. */ 5267#include <values.h> 5268_ACEOF 5269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5271 ac_status=$? 5272 grep -v '^ *+' conftest.er1 >conftest.err 5273 rm -f conftest.er1 5274 cat conftest.err >&5 5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5276 (exit $ac_status); } >/dev/null; then 5277 if test -s conftest.err; then 5278 ac_cpp_err=$ac_c_preproc_warn_flag 5279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5280 else 5281 ac_cpp_err= 5282 fi 5283else 5284 ac_cpp_err=yes 5285fi 5286if test -z "$ac_cpp_err"; then 5287 ac_header_preproc=yes 5288else 5289 echo "$as_me: failed program was:" >&5 5290sed 's/^/| /' conftest.$ac_ext >&5 5291 5292 ac_header_preproc=no 5293fi 5294rm -f conftest.err conftest.$ac_ext 5295echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5296echo "${ECHO_T}$ac_header_preproc" >&6 5297 5298# So? What about this header? 5299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5300 yes:no: ) 5301 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5302echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5303 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5304echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5305 ac_header_preproc=yes 5306 ;; 5307 no:yes:* ) 5308 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5309echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5310 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5311echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5312 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5313echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5314 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5315echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5316 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5317echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5318 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5319echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5320 ( 5321 cat <<\_ASBOX 5322## ------------------------------ ## 5323## Report this to the Tix lists. ## 5324## ------------------------------ ## 5325_ASBOX 5326 ) | 5327 sed "s/^/$as_me: WARNING: /" >&2 5328 ;; 5329esac 5330echo "$as_me:$LINENO: checking for values.h" >&5 5331echo $ECHO_N "checking for values.h... $ECHO_C" >&6 5332if test "${ac_cv_header_values_h+set}" = set; then 5333 echo $ECHO_N "(cached) $ECHO_C" >&6 5334else 5335 ac_cv_header_values_h=$ac_header_preproc 5336fi 5337echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5338echo "${ECHO_T}$ac_cv_header_values_h" >&6 5339 5340fi 5341if test $ac_cv_header_values_h = yes; then 5342 : 5343else 5344 5345cat >>confdefs.h <<\_ACEOF 5346#define NO_VALUES_H 1 5347_ACEOF 5348 5349fi 5350 5351 5352 if test "${ac_cv_header_limits_h+set}" = set; then 5353 echo "$as_me:$LINENO: checking for limits.h" >&5 5354echo $ECHO_N "checking for limits.h... $ECHO_C" >&6 5355if test "${ac_cv_header_limits_h+set}" = set; then 5356 echo $ECHO_N "(cached) $ECHO_C" >&6 5357fi 5358echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5359echo "${ECHO_T}$ac_cv_header_limits_h" >&6 5360else 5361 # Is the header compilable? 5362echo "$as_me:$LINENO: checking limits.h usability" >&5 5363echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6 5364cat >conftest.$ac_ext <<_ACEOF 5365/* confdefs.h. */ 5366_ACEOF 5367cat confdefs.h >>conftest.$ac_ext 5368cat >>conftest.$ac_ext <<_ACEOF 5369/* end confdefs.h. */ 5370$ac_includes_default 5371#include <limits.h> 5372_ACEOF 5373rm -f conftest.$ac_objext 5374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5375 (eval $ac_compile) 2>conftest.er1 5376 ac_status=$? 5377 grep -v '^ *+' conftest.er1 >conftest.err 5378 rm -f conftest.er1 5379 cat conftest.err >&5 5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5381 (exit $ac_status); } && 5382 { ac_try='test -z "$ac_c_werror_flag" 5383 || test ! -s conftest.err' 5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5385 (eval $ac_try) 2>&5 5386 ac_status=$? 5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5388 (exit $ac_status); }; } && 5389 { ac_try='test -s conftest.$ac_objext' 5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5391 (eval $ac_try) 2>&5 5392 ac_status=$? 5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5394 (exit $ac_status); }; }; then 5395 ac_header_compiler=yes 5396else 5397 echo "$as_me: failed program was:" >&5 5398sed 's/^/| /' conftest.$ac_ext >&5 5399 5400ac_header_compiler=no 5401fi 5402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5403echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5404echo "${ECHO_T}$ac_header_compiler" >&6 5405 5406# Is the header present? 5407echo "$as_me:$LINENO: checking limits.h presence" >&5 5408echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6 5409cat >conftest.$ac_ext <<_ACEOF 5410/* confdefs.h. */ 5411_ACEOF 5412cat confdefs.h >>conftest.$ac_ext 5413cat >>conftest.$ac_ext <<_ACEOF 5414/* end confdefs.h. */ 5415#include <limits.h> 5416_ACEOF 5417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5419 ac_status=$? 5420 grep -v '^ *+' conftest.er1 >conftest.err 5421 rm -f conftest.er1 5422 cat conftest.err >&5 5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5424 (exit $ac_status); } >/dev/null; then 5425 if test -s conftest.err; then 5426 ac_cpp_err=$ac_c_preproc_warn_flag 5427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5428 else 5429 ac_cpp_err= 5430 fi 5431else 5432 ac_cpp_err=yes 5433fi 5434if test -z "$ac_cpp_err"; then 5435 ac_header_preproc=yes 5436else 5437 echo "$as_me: failed program was:" >&5 5438sed 's/^/| /' conftest.$ac_ext >&5 5439 5440 ac_header_preproc=no 5441fi 5442rm -f conftest.err conftest.$ac_ext 5443echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5444echo "${ECHO_T}$ac_header_preproc" >&6 5445 5446# So? What about this header? 5447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5448 yes:no: ) 5449 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5450echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5451 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5452echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5453 ac_header_preproc=yes 5454 ;; 5455 no:yes:* ) 5456 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5457echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5458 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5459echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5460 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5461echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5462 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5463echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5464 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5465echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5466 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5467echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5468 ( 5469 cat <<\_ASBOX 5470## ------------------------------ ## 5471## Report this to the Tix lists. ## 5472## ------------------------------ ## 5473_ASBOX 5474 ) | 5475 sed "s/^/$as_me: WARNING: /" >&2 5476 ;; 5477esac 5478echo "$as_me:$LINENO: checking for limits.h" >&5 5479echo $ECHO_N "checking for limits.h... $ECHO_C" >&6 5480if test "${ac_cv_header_limits_h+set}" = set; then 5481 echo $ECHO_N "(cached) $ECHO_C" >&6 5482else 5483 ac_cv_header_limits_h=$ac_header_preproc 5484fi 5485echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5486echo "${ECHO_T}$ac_cv_header_limits_h" >&6 5487 5488fi 5489if test $ac_cv_header_limits_h = yes; then 5490 5491cat >>confdefs.h <<\_ACEOF 5492#define HAVE_LIMITS_H 1 5493_ACEOF 5494 5495else 5496 5497cat >>confdefs.h <<\_ACEOF 5498#define NO_LIMITS_H 1 5499_ACEOF 5500 5501fi 5502 5503 5504 if test "${ac_cv_header_stdlib_h+set}" = set; then 5505 echo "$as_me:$LINENO: checking for stdlib.h" >&5 5506echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 5507if test "${ac_cv_header_stdlib_h+set}" = set; then 5508 echo $ECHO_N "(cached) $ECHO_C" >&6 5509fi 5510echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5511echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 5512else 5513 # Is the header compilable? 5514echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5515echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6 5516cat >conftest.$ac_ext <<_ACEOF 5517/* confdefs.h. */ 5518_ACEOF 5519cat confdefs.h >>conftest.$ac_ext 5520cat >>conftest.$ac_ext <<_ACEOF 5521/* end confdefs.h. */ 5522$ac_includes_default 5523#include <stdlib.h> 5524_ACEOF 5525rm -f conftest.$ac_objext 5526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5527 (eval $ac_compile) 2>conftest.er1 5528 ac_status=$? 5529 grep -v '^ *+' conftest.er1 >conftest.err 5530 rm -f conftest.er1 5531 cat conftest.err >&5 5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5533 (exit $ac_status); } && 5534 { ac_try='test -z "$ac_c_werror_flag" 5535 || test ! -s conftest.err' 5536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5537 (eval $ac_try) 2>&5 5538 ac_status=$? 5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5540 (exit $ac_status); }; } && 5541 { ac_try='test -s conftest.$ac_objext' 5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5543 (eval $ac_try) 2>&5 5544 ac_status=$? 5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5546 (exit $ac_status); }; }; then 5547 ac_header_compiler=yes 5548else 5549 echo "$as_me: failed program was:" >&5 5550sed 's/^/| /' conftest.$ac_ext >&5 5551 5552ac_header_compiler=no 5553fi 5554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5555echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5556echo "${ECHO_T}$ac_header_compiler" >&6 5557 5558# Is the header present? 5559echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5560echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6 5561cat >conftest.$ac_ext <<_ACEOF 5562/* confdefs.h. */ 5563_ACEOF 5564cat confdefs.h >>conftest.$ac_ext 5565cat >>conftest.$ac_ext <<_ACEOF 5566/* end confdefs.h. */ 5567#include <stdlib.h> 5568_ACEOF 5569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5571 ac_status=$? 5572 grep -v '^ *+' conftest.er1 >conftest.err 5573 rm -f conftest.er1 5574 cat conftest.err >&5 5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5576 (exit $ac_status); } >/dev/null; then 5577 if test -s conftest.err; then 5578 ac_cpp_err=$ac_c_preproc_warn_flag 5579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5580 else 5581 ac_cpp_err= 5582 fi 5583else 5584 ac_cpp_err=yes 5585fi 5586if test -z "$ac_cpp_err"; then 5587 ac_header_preproc=yes 5588else 5589 echo "$as_me: failed program was:" >&5 5590sed 's/^/| /' conftest.$ac_ext >&5 5591 5592 ac_header_preproc=no 5593fi 5594rm -f conftest.err conftest.$ac_ext 5595echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5596echo "${ECHO_T}$ac_header_preproc" >&6 5597 5598# So? What about this header? 5599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5600 yes:no: ) 5601 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5602echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5603 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5604echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5605 ac_header_preproc=yes 5606 ;; 5607 no:yes:* ) 5608 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5609echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5610 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5611echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5612 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5613echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5614 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5615echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5616 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5617echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5618 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5619echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5620 ( 5621 cat <<\_ASBOX 5622## ------------------------------ ## 5623## Report this to the Tix lists. ## 5624## ------------------------------ ## 5625_ASBOX 5626 ) | 5627 sed "s/^/$as_me: WARNING: /" >&2 5628 ;; 5629esac 5630echo "$as_me:$LINENO: checking for stdlib.h" >&5 5631echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 5632if test "${ac_cv_header_stdlib_h+set}" = set; then 5633 echo $ECHO_N "(cached) $ECHO_C" >&6 5634else 5635 ac_cv_header_stdlib_h=$ac_header_preproc 5636fi 5637echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5638echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 5639 5640fi 5641if test $ac_cv_header_stdlib_h = yes; then 5642 tcl_ok=1 5643else 5644 tcl_ok=0 5645fi 5646 5647 5648 cat >conftest.$ac_ext <<_ACEOF 5649/* confdefs.h. */ 5650_ACEOF 5651cat confdefs.h >>conftest.$ac_ext 5652cat >>conftest.$ac_ext <<_ACEOF 5653/* end confdefs.h. */ 5654#include <stdlib.h> 5655 5656_ACEOF 5657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5658 $EGREP "strtol" >/dev/null 2>&1; then 5659 : 5660else 5661 tcl_ok=0 5662fi 5663rm -f conftest* 5664 5665 cat >conftest.$ac_ext <<_ACEOF 5666/* confdefs.h. */ 5667_ACEOF 5668cat confdefs.h >>conftest.$ac_ext 5669cat >>conftest.$ac_ext <<_ACEOF 5670/* end confdefs.h. */ 5671#include <stdlib.h> 5672 5673_ACEOF 5674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5675 $EGREP "strtoul" >/dev/null 2>&1; then 5676 : 5677else 5678 tcl_ok=0 5679fi 5680rm -f conftest* 5681 5682 cat >conftest.$ac_ext <<_ACEOF 5683/* confdefs.h. */ 5684_ACEOF 5685cat confdefs.h >>conftest.$ac_ext 5686cat >>conftest.$ac_ext <<_ACEOF 5687/* end confdefs.h. */ 5688#include <stdlib.h> 5689 5690_ACEOF 5691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5692 $EGREP "strtod" >/dev/null 2>&1; then 5693 : 5694else 5695 tcl_ok=0 5696fi 5697rm -f conftest* 5698 5699 if test $tcl_ok = 0; then 5700 5701cat >>confdefs.h <<\_ACEOF 5702#define NO_STDLIB_H 1 5703_ACEOF 5704 5705 fi 5706 if test "${ac_cv_header_string_h+set}" = set; then 5707 echo "$as_me:$LINENO: checking for string.h" >&5 5708echo $ECHO_N "checking for string.h... $ECHO_C" >&6 5709if test "${ac_cv_header_string_h+set}" = set; then 5710 echo $ECHO_N "(cached) $ECHO_C" >&6 5711fi 5712echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 5713echo "${ECHO_T}$ac_cv_header_string_h" >&6 5714else 5715 # Is the header compilable? 5716echo "$as_me:$LINENO: checking string.h usability" >&5 5717echo $ECHO_N "checking string.h usability... $ECHO_C" >&6 5718cat >conftest.$ac_ext <<_ACEOF 5719/* confdefs.h. */ 5720_ACEOF 5721cat confdefs.h >>conftest.$ac_ext 5722cat >>conftest.$ac_ext <<_ACEOF 5723/* end confdefs.h. */ 5724$ac_includes_default 5725#include <string.h> 5726_ACEOF 5727rm -f conftest.$ac_objext 5728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5729 (eval $ac_compile) 2>conftest.er1 5730 ac_status=$? 5731 grep -v '^ *+' conftest.er1 >conftest.err 5732 rm -f conftest.er1 5733 cat conftest.err >&5 5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5735 (exit $ac_status); } && 5736 { ac_try='test -z "$ac_c_werror_flag" 5737 || test ! -s conftest.err' 5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5739 (eval $ac_try) 2>&5 5740 ac_status=$? 5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5742 (exit $ac_status); }; } && 5743 { ac_try='test -s conftest.$ac_objext' 5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5745 (eval $ac_try) 2>&5 5746 ac_status=$? 5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5748 (exit $ac_status); }; }; then 5749 ac_header_compiler=yes 5750else 5751 echo "$as_me: failed program was:" >&5 5752sed 's/^/| /' conftest.$ac_ext >&5 5753 5754ac_header_compiler=no 5755fi 5756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5757echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5758echo "${ECHO_T}$ac_header_compiler" >&6 5759 5760# Is the header present? 5761echo "$as_me:$LINENO: checking string.h presence" >&5 5762echo $ECHO_N "checking string.h presence... $ECHO_C" >&6 5763cat >conftest.$ac_ext <<_ACEOF 5764/* confdefs.h. */ 5765_ACEOF 5766cat confdefs.h >>conftest.$ac_ext 5767cat >>conftest.$ac_ext <<_ACEOF 5768/* end confdefs.h. */ 5769#include <string.h> 5770_ACEOF 5771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5773 ac_status=$? 5774 grep -v '^ *+' conftest.er1 >conftest.err 5775 rm -f conftest.er1 5776 cat conftest.err >&5 5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5778 (exit $ac_status); } >/dev/null; then 5779 if test -s conftest.err; then 5780 ac_cpp_err=$ac_c_preproc_warn_flag 5781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5782 else 5783 ac_cpp_err= 5784 fi 5785else 5786 ac_cpp_err=yes 5787fi 5788if test -z "$ac_cpp_err"; then 5789 ac_header_preproc=yes 5790else 5791 echo "$as_me: failed program was:" >&5 5792sed 's/^/| /' conftest.$ac_ext >&5 5793 5794 ac_header_preproc=no 5795fi 5796rm -f conftest.err conftest.$ac_ext 5797echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5798echo "${ECHO_T}$ac_header_preproc" >&6 5799 5800# So? What about this header? 5801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5802 yes:no: ) 5803 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 5804echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5805 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 5806echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 5807 ac_header_preproc=yes 5808 ;; 5809 no:yes:* ) 5810 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 5811echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 5812 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 5813echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 5814 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 5815echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 5816 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 5817echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 5818 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 5819echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 5820 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 5821echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 5822 ( 5823 cat <<\_ASBOX 5824## ------------------------------ ## 5825## Report this to the Tix lists. ## 5826## ------------------------------ ## 5827_ASBOX 5828 ) | 5829 sed "s/^/$as_me: WARNING: /" >&2 5830 ;; 5831esac 5832echo "$as_me:$LINENO: checking for string.h" >&5 5833echo $ECHO_N "checking for string.h... $ECHO_C" >&6 5834if test "${ac_cv_header_string_h+set}" = set; then 5835 echo $ECHO_N "(cached) $ECHO_C" >&6 5836else 5837 ac_cv_header_string_h=$ac_header_preproc 5838fi 5839echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 5840echo "${ECHO_T}$ac_cv_header_string_h" >&6 5841 5842fi 5843if test $ac_cv_header_string_h = yes; then 5844 tcl_ok=1 5845else 5846 tcl_ok=0 5847fi 5848 5849 5850 cat >conftest.$ac_ext <<_ACEOF 5851/* confdefs.h. */ 5852_ACEOF 5853cat confdefs.h >>conftest.$ac_ext 5854cat >>conftest.$ac_ext <<_ACEOF 5855/* end confdefs.h. */ 5856#include <string.h> 5857 5858_ACEOF 5859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5860 $EGREP "strstr" >/dev/null 2>&1; then 5861 : 5862else 5863 tcl_ok=0 5864fi 5865rm -f conftest* 5866 5867 cat >conftest.$ac_ext <<_ACEOF 5868/* confdefs.h. */ 5869_ACEOF 5870cat confdefs.h >>conftest.$ac_ext 5871cat >>conftest.$ac_ext <<_ACEOF 5872/* end confdefs.h. */ 5873#include <string.h> 5874 5875_ACEOF 5876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5877 $EGREP "strerror" >/dev/null 2>&1; then 5878 : 5879else 5880 tcl_ok=0 5881fi 5882rm -f conftest* 5883 5884 5885 # See also memmove check below for a place where NO_STRING_H can be 5886 # set and why. 5887 5888 if test $tcl_ok = 0; then 5889 5890cat >>confdefs.h <<\_ACEOF 5891#define NO_STRING_H 1 5892_ACEOF 5893 5894 fi 5895 5896 if test "${ac_cv_header_sys_wait_h+set}" = set; then 5897 echo "$as_me:$LINENO: checking for sys/wait.h" >&5 5898echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6 5899if test "${ac_cv_header_sys_wait_h+set}" = set; then 5900 echo $ECHO_N "(cached) $ECHO_C" >&6 5901fi 5902echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 5903echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 5904else 5905 # Is the header compilable? 5906echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 5907echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6 5908cat >conftest.$ac_ext <<_ACEOF 5909/* confdefs.h. */ 5910_ACEOF 5911cat confdefs.h >>conftest.$ac_ext 5912cat >>conftest.$ac_ext <<_ACEOF 5913/* end confdefs.h. */ 5914$ac_includes_default 5915#include <sys/wait.h> 5916_ACEOF 5917rm -f conftest.$ac_objext 5918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5919 (eval $ac_compile) 2>conftest.er1 5920 ac_status=$? 5921 grep -v '^ *+' conftest.er1 >conftest.err 5922 rm -f conftest.er1 5923 cat conftest.err >&5 5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5925 (exit $ac_status); } && 5926 { ac_try='test -z "$ac_c_werror_flag" 5927 || test ! -s conftest.err' 5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5929 (eval $ac_try) 2>&5 5930 ac_status=$? 5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5932 (exit $ac_status); }; } && 5933 { ac_try='test -s conftest.$ac_objext' 5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5935 (eval $ac_try) 2>&5 5936 ac_status=$? 5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5938 (exit $ac_status); }; }; then 5939 ac_header_compiler=yes 5940else 5941 echo "$as_me: failed program was:" >&5 5942sed 's/^/| /' conftest.$ac_ext >&5 5943 5944ac_header_compiler=no 5945fi 5946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5947echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5948echo "${ECHO_T}$ac_header_compiler" >&6 5949 5950# Is the header present? 5951echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 5952echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6 5953cat >conftest.$ac_ext <<_ACEOF 5954/* confdefs.h. */ 5955_ACEOF 5956cat confdefs.h >>conftest.$ac_ext 5957cat >>conftest.$ac_ext <<_ACEOF 5958/* end confdefs.h. */ 5959#include <sys/wait.h> 5960_ACEOF 5961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5963 ac_status=$? 5964 grep -v '^ *+' conftest.er1 >conftest.err 5965 rm -f conftest.er1 5966 cat conftest.err >&5 5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5968 (exit $ac_status); } >/dev/null; then 5969 if test -s conftest.err; then 5970 ac_cpp_err=$ac_c_preproc_warn_flag 5971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5972 else 5973 ac_cpp_err= 5974 fi 5975else 5976 ac_cpp_err=yes 5977fi 5978if test -z "$ac_cpp_err"; then 5979 ac_header_preproc=yes 5980else 5981 echo "$as_me: failed program was:" >&5 5982sed 's/^/| /' conftest.$ac_ext >&5 5983 5984 ac_header_preproc=no 5985fi 5986rm -f conftest.err conftest.$ac_ext 5987echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5988echo "${ECHO_T}$ac_header_preproc" >&6 5989 5990# So? What about this header? 5991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5992 yes:no: ) 5993 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 5994echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5995 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 5996echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 5997 ac_header_preproc=yes 5998 ;; 5999 no:yes:* ) 6000 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6001echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6002 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6003echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6004 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6005echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6006 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6007echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6008 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6009echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6010 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6011echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6012 ( 6013 cat <<\_ASBOX 6014## ------------------------------ ## 6015## Report this to the Tix lists. ## 6016## ------------------------------ ## 6017_ASBOX 6018 ) | 6019 sed "s/^/$as_me: WARNING: /" >&2 6020 ;; 6021esac 6022echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6023echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6 6024if test "${ac_cv_header_sys_wait_h+set}" = set; then 6025 echo $ECHO_N "(cached) $ECHO_C" >&6 6026else 6027 ac_cv_header_sys_wait_h=$ac_header_preproc 6028fi 6029echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6030echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 6031 6032fi 6033if test $ac_cv_header_sys_wait_h = yes; then 6034 : 6035else 6036 6037cat >>confdefs.h <<\_ACEOF 6038#define NO_SYS_WAIT_H 1 6039_ACEOF 6040 6041fi 6042 6043 6044 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6045 echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6046echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 6047if test "${ac_cv_header_dlfcn_h+set}" = set; then 6048 echo $ECHO_N "(cached) $ECHO_C" >&6 6049fi 6050echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6051echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 6052else 6053 # Is the header compilable? 6054echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6055echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6 6056cat >conftest.$ac_ext <<_ACEOF 6057/* confdefs.h. */ 6058_ACEOF 6059cat confdefs.h >>conftest.$ac_ext 6060cat >>conftest.$ac_ext <<_ACEOF 6061/* end confdefs.h. */ 6062$ac_includes_default 6063#include <dlfcn.h> 6064_ACEOF 6065rm -f conftest.$ac_objext 6066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6067 (eval $ac_compile) 2>conftest.er1 6068 ac_status=$? 6069 grep -v '^ *+' conftest.er1 >conftest.err 6070 rm -f conftest.er1 6071 cat conftest.err >&5 6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6073 (exit $ac_status); } && 6074 { ac_try='test -z "$ac_c_werror_flag" 6075 || test ! -s conftest.err' 6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6077 (eval $ac_try) 2>&5 6078 ac_status=$? 6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6080 (exit $ac_status); }; } && 6081 { ac_try='test -s conftest.$ac_objext' 6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6083 (eval $ac_try) 2>&5 6084 ac_status=$? 6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6086 (exit $ac_status); }; }; then 6087 ac_header_compiler=yes 6088else 6089 echo "$as_me: failed program was:" >&5 6090sed 's/^/| /' conftest.$ac_ext >&5 6091 6092ac_header_compiler=no 6093fi 6094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6095echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6096echo "${ECHO_T}$ac_header_compiler" >&6 6097 6098# Is the header present? 6099echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6100echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6 6101cat >conftest.$ac_ext <<_ACEOF 6102/* confdefs.h. */ 6103_ACEOF 6104cat confdefs.h >>conftest.$ac_ext 6105cat >>conftest.$ac_ext <<_ACEOF 6106/* end confdefs.h. */ 6107#include <dlfcn.h> 6108_ACEOF 6109if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6111 ac_status=$? 6112 grep -v '^ *+' conftest.er1 >conftest.err 6113 rm -f conftest.er1 6114 cat conftest.err >&5 6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6116 (exit $ac_status); } >/dev/null; then 6117 if test -s conftest.err; then 6118 ac_cpp_err=$ac_c_preproc_warn_flag 6119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6120 else 6121 ac_cpp_err= 6122 fi 6123else 6124 ac_cpp_err=yes 6125fi 6126if test -z "$ac_cpp_err"; then 6127 ac_header_preproc=yes 6128else 6129 echo "$as_me: failed program was:" >&5 6130sed 's/^/| /' conftest.$ac_ext >&5 6131 6132 ac_header_preproc=no 6133fi 6134rm -f conftest.err conftest.$ac_ext 6135echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6136echo "${ECHO_T}$ac_header_preproc" >&6 6137 6138# So? What about this header? 6139case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6140 yes:no: ) 6141 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6142echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6143 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6144echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6145 ac_header_preproc=yes 6146 ;; 6147 no:yes:* ) 6148 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6149echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6150 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6151echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6152 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6153echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6154 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6155echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6156 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6157echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6158 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6159echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6160 ( 6161 cat <<\_ASBOX 6162## ------------------------------ ## 6163## Report this to the Tix lists. ## 6164## ------------------------------ ## 6165_ASBOX 6166 ) | 6167 sed "s/^/$as_me: WARNING: /" >&2 6168 ;; 6169esac 6170echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6171echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 6172if test "${ac_cv_header_dlfcn_h+set}" = set; then 6173 echo $ECHO_N "(cached) $ECHO_C" >&6 6174else 6175 ac_cv_header_dlfcn_h=$ac_header_preproc 6176fi 6177echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6178echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 6179 6180fi 6181if test $ac_cv_header_dlfcn_h = yes; then 6182 : 6183else 6184 6185cat >>confdefs.h <<\_ACEOF 6186#define NO_DLFCN_H 1 6187_ACEOF 6188 6189fi 6190 6191 6192 6193 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6194 6195for ac_header in sys/param.h 6196do 6197as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6198if eval "test \"\${$as_ac_Header+set}\" = set"; then 6199 echo "$as_me:$LINENO: checking for $ac_header" >&5 6200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6201if eval "test \"\${$as_ac_Header+set}\" = set"; then 6202 echo $ECHO_N "(cached) $ECHO_C" >&6 6203fi 6204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6205echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6206else 6207 # Is the header compilable? 6208echo "$as_me:$LINENO: checking $ac_header usability" >&5 6209echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6210cat >conftest.$ac_ext <<_ACEOF 6211/* confdefs.h. */ 6212_ACEOF 6213cat confdefs.h >>conftest.$ac_ext 6214cat >>conftest.$ac_ext <<_ACEOF 6215/* end confdefs.h. */ 6216$ac_includes_default 6217#include <$ac_header> 6218_ACEOF 6219rm -f conftest.$ac_objext 6220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6221 (eval $ac_compile) 2>conftest.er1 6222 ac_status=$? 6223 grep -v '^ *+' conftest.er1 >conftest.err 6224 rm -f conftest.er1 6225 cat conftest.err >&5 6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6227 (exit $ac_status); } && 6228 { ac_try='test -z "$ac_c_werror_flag" 6229 || test ! -s conftest.err' 6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6231 (eval $ac_try) 2>&5 6232 ac_status=$? 6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6234 (exit $ac_status); }; } && 6235 { ac_try='test -s conftest.$ac_objext' 6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6237 (eval $ac_try) 2>&5 6238 ac_status=$? 6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6240 (exit $ac_status); }; }; then 6241 ac_header_compiler=yes 6242else 6243 echo "$as_me: failed program was:" >&5 6244sed 's/^/| /' conftest.$ac_ext >&5 6245 6246ac_header_compiler=no 6247fi 6248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6249echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6250echo "${ECHO_T}$ac_header_compiler" >&6 6251 6252# Is the header present? 6253echo "$as_me:$LINENO: checking $ac_header presence" >&5 6254echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6255cat >conftest.$ac_ext <<_ACEOF 6256/* confdefs.h. */ 6257_ACEOF 6258cat confdefs.h >>conftest.$ac_ext 6259cat >>conftest.$ac_ext <<_ACEOF 6260/* end confdefs.h. */ 6261#include <$ac_header> 6262_ACEOF 6263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6265 ac_status=$? 6266 grep -v '^ *+' conftest.er1 >conftest.err 6267 rm -f conftest.er1 6268 cat conftest.err >&5 6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6270 (exit $ac_status); } >/dev/null; then 6271 if test -s conftest.err; then 6272 ac_cpp_err=$ac_c_preproc_warn_flag 6273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6274 else 6275 ac_cpp_err= 6276 fi 6277else 6278 ac_cpp_err=yes 6279fi 6280if test -z "$ac_cpp_err"; then 6281 ac_header_preproc=yes 6282else 6283 echo "$as_me: failed program was:" >&5 6284sed 's/^/| /' conftest.$ac_ext >&5 6285 6286 ac_header_preproc=no 6287fi 6288rm -f conftest.err conftest.$ac_ext 6289echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6290echo "${ECHO_T}$ac_header_preproc" >&6 6291 6292# So? What about this header? 6293case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6294 yes:no: ) 6295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6296echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6298echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6299 ac_header_preproc=yes 6300 ;; 6301 no:yes:* ) 6302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6303echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6305echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6307echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6309echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6311echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6313echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6314 ( 6315 cat <<\_ASBOX 6316## ------------------------------ ## 6317## Report this to the Tix lists. ## 6318## ------------------------------ ## 6319_ASBOX 6320 ) | 6321 sed "s/^/$as_me: WARNING: /" >&2 6322 ;; 6323esac 6324echo "$as_me:$LINENO: checking for $ac_header" >&5 6325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6326if eval "test \"\${$as_ac_Header+set}\" = set"; then 6327 echo $ECHO_N "(cached) $ECHO_C" >&6 6328else 6329 eval "$as_ac_Header=\$ac_header_preproc" 6330fi 6331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6333 6334fi 6335if test `eval echo '${'$as_ac_Header'}'` = yes; then 6336 cat >>confdefs.h <<_ACEOF 6337#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6338_ACEOF 6339 6340fi 6341 6342done 6343 6344 6345 # Let the user call this, because if it triggers, they will 6346 # need a compat/strtod.c that is correct. Users can also 6347 # use Tcl_GetDouble(FromObj) instead. 6348 #TEA_BUGGY_STRTOD 6349 fi 6350 6351 6352#----------------------------------------------------------------------- 6353# __CHANGE__ 6354# Specify the C source files to compile in TEA_ADD_SOURCES, 6355# public headers that need to be installed in TEA_ADD_HEADERS, 6356# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6357# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6358# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6359# and PKG_TCL_SOURCES. 6360#----------------------------------------------------------------------- 6361 6362# core sources 6363 6364 vars="tixClass.c tixCmds.c tixCompat.c tixError.c tixGeometry.c 6365 tixInit.c tixList.c tixMethod.c tixOption.c tixScroll.c 6366 tixSmpLs.c tixUtils.c tixWidget.c" 6367 for i in $vars; do 6368 case $i in 6369 \$*) 6370 # allow $-var names 6371 PKG_SOURCES="$PKG_SOURCES $i" 6372 PKG_OBJECTS="$PKG_OBJECTS $i" 6373 ;; 6374 *) 6375 # check for existence - allows for generic/win/unix VPATH 6376 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6377 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6378 ; then 6379 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6380echo "$as_me: error: could not find source file '$i'" >&2;} 6381 { (exit 1); exit 1; }; } 6382 fi 6383 PKG_SOURCES="$PKG_SOURCES $i" 6384 # this assumes it is in a VPATH dir 6385 i=`basename $i` 6386 # handle user calling this before or after TEA_SETUP_COMPILER 6387 if test x"${OBJEXT}" != x ; then 6388 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6389 else 6390 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6391 fi 6392 PKG_OBJECTS="$PKG_OBJECTS $j" 6393 ;; 6394 esac 6395 done 6396 6397 6398 6399# ditem sources 6400 6401 vars="tixDItem.c tixDiITxt.c tixDiImg.c tixDiStyle.c tixDiText.c 6402 tixDiWin.c" 6403 for i in $vars; do 6404 case $i in 6405 \$*) 6406 # allow $-var names 6407 PKG_SOURCES="$PKG_SOURCES $i" 6408 PKG_OBJECTS="$PKG_OBJECTS $i" 6409 ;; 6410 *) 6411 # check for existence - allows for generic/win/unix VPATH 6412 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6413 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6414 ; then 6415 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6416echo "$as_me: error: could not find source file '$i'" >&2;} 6417 { (exit 1); exit 1; }; } 6418 fi 6419 PKG_SOURCES="$PKG_SOURCES $i" 6420 # this assumes it is in a VPATH dir 6421 i=`basename $i` 6422 # handle user calling this before or after TEA_SETUP_COMPILER 6423 if test x"${OBJEXT}" != x ; then 6424 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6425 else 6426 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6427 fi 6428 PKG_OBJECTS="$PKG_OBJECTS $j" 6429 ;; 6430 esac 6431 done 6432 6433 6434 6435# manager sources 6436 6437 vars="tixForm.c tixFormMisc.c" 6438 for i in $vars; do 6439 case $i in 6440 \$*) 6441 # allow $-var names 6442 PKG_SOURCES="$PKG_SOURCES $i" 6443 PKG_OBJECTS="$PKG_OBJECTS $i" 6444 ;; 6445 *) 6446 # check for existence - allows for generic/win/unix VPATH 6447 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6448 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6449 ; then 6450 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6451echo "$as_me: error: could not find source file '$i'" >&2;} 6452 { (exit 1); exit 1; }; } 6453 fi 6454 PKG_SOURCES="$PKG_SOURCES $i" 6455 # this assumes it is in a VPATH dir 6456 i=`basename $i` 6457 # handle user calling this before or after TEA_SETUP_COMPILER 6458 if test x"${OBJEXT}" != x ; then 6459 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6460 else 6461 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6462 fi 6463 PKG_OBJECTS="$PKG_OBJECTS $j" 6464 ;; 6465 esac 6466 done 6467 6468 6469 6470# widget sources 6471 6472 vars="tixGrid.c tixGrData.c tixGrFmt.c tixGrRC.c tixGrSel.c 6473 tixGrSort.c tixGrUtl.c tixHList.c tixHLCol.c tixHLInd.c 6474 tixHLHdr.c tixNBFrame.c tixTList.c" 6475 for i in $vars; do 6476 case $i in 6477 \$*) 6478 # allow $-var names 6479 PKG_SOURCES="$PKG_SOURCES $i" 6480 PKG_OBJECTS="$PKG_OBJECTS $i" 6481 ;; 6482 *) 6483 # check for existence - allows for generic/win/unix VPATH 6484 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6485 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6486 ; then 6487 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6488echo "$as_me: error: could not find source file '$i'" >&2;} 6489 { (exit 1); exit 1; }; } 6490 fi 6491 PKG_SOURCES="$PKG_SOURCES $i" 6492 # this assumes it is in a VPATH dir 6493 i=`basename $i` 6494 # handle user calling this before or after TEA_SETUP_COMPILER 6495 if test x"${OBJEXT}" != x ; then 6496 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6497 else 6498 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6499 fi 6500 PKG_OBJECTS="$PKG_OBJECTS $j" 6501 ;; 6502 esac 6503 done 6504 6505 6506 6507# misc sources 6508 6509 vars="tixImgCmp.c tixImgXpm.c" 6510 for i in $vars; do 6511 case $i in 6512 \$*) 6513 # allow $-var names 6514 PKG_SOURCES="$PKG_SOURCES $i" 6515 PKG_OBJECTS="$PKG_OBJECTS $i" 6516 ;; 6517 *) 6518 # check for existence - allows for generic/win/unix VPATH 6519 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6520 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6521 ; then 6522 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6523echo "$as_me: error: could not find source file '$i'" >&2;} 6524 { (exit 1); exit 1; }; } 6525 fi 6526 PKG_SOURCES="$PKG_SOURCES $i" 6527 # this assumes it is in a VPATH dir 6528 i=`basename $i` 6529 # handle user calling this before or after TEA_SETUP_COMPILER 6530 if test x"${OBJEXT}" != x ; then 6531 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6532 else 6533 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6534 fi 6535 PKG_OBJECTS="$PKG_OBJECTS $j" 6536 ;; 6537 esac 6538 done 6539 6540 6541 6542 6543 6544 vars="" 6545 for i in $vars; do 6546 # check for existence, be strict because it is installed 6547 if test ! -f "${srcdir}/$i" ; then 6548 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6549echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6550 { (exit 1); exit 1; }; } 6551 fi 6552 PKG_HEADERS="$PKG_HEADERS $i" 6553 done 6554 6555 6556 6557 vars="-I. -I\"`${CYGPATH} ${srcdir}/generic`\"" 6558 for i in $vars; do 6559 PKG_INCLUDES="$PKG_INCLUDES $i" 6560 done 6561 6562 6563 6564 PKG_CFLAGS="$PKG_CFLAGS " 6565 6566 6567 6568 vars="" 6569 for i in $vars; do 6570 # check for existence - allows for generic/win/unix VPATH 6571 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6572 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6573 ; then 6574 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6575echo "$as_me: error: could not find stub source file '$i'" >&2;} 6576 { (exit 1); exit 1; }; } 6577 fi 6578 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6579 # this assumes it is in a VPATH dir 6580 i=`basename $i` 6581 # handle user calling this before or after TEA_SETUP_COMPILER 6582 if test x"${OBJEXT}" != x ; then 6583 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6584 else 6585 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6586 fi 6587 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6588 done 6589 6590 6591 6592 6593 vars="" 6594 for i in $vars; do 6595 # check for existence, be strict because it is installed 6596 if test ! -f "${srcdir}/$i" ; then 6597 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6598echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6599 { (exit 1); exit 1; }; } 6600 fi 6601 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6602 done 6603 6604 6605 6606#-------------------------------------------------------------------- 6607# __CHANGE__ 6608# Choose which headers you need. Extension authors should try very 6609# hard to only rely on the Tcl public header files. Internal headers 6610# contain private data structures and are subject to change without 6611# notice. 6612# This MUST be called after TEA_PATH_TCLCONFIG/TEA_LOAD_TCLCONFIG 6613#-------------------------------------------------------------------- 6614 6615# needed for tclPort.h and such ... can be corrected 6616 6617 echo "$as_me:$LINENO: checking for Tcl private include files" >&5 6618echo $ECHO_N "checking for Tcl private include files... $ECHO_C" >&6 6619 6620 TCL_SRC_DIR="${TCL_PREFIX}/include/tcl${TCL_VERSION}" 6621 TCL_SRC_DIR_NATIVE=`${CYGPATH} ${TCL_SRC_DIR}` 6622 TCL_TOP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}\" 6623 TCL_GENERIC_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/generic\" 6624 TCL_UNIX_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/unix\" 6625 TCL_WIN_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/win\" 6626 TCL_BMAP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/bitmaps\" 6627 TCL_TOOL_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/tools\" 6628 TCL_COMPAT_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/compat\" 6629 6630 if test "${TEA_PLATFORM}" = "windows"; then 6631 TCL_PLATFORM_DIR_NATIVE=${TCL_WIN_DIR_NATIVE} 6632 else 6633 TCL_PLATFORM_DIR_NATIVE=${TCL_UNIX_DIR_NATIVE} 6634 fi 6635 # We want to ensure these are substituted so as not to require 6636 # any *_NATIVE vars be defined in the Makefile 6637 TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}" 6638 if test "`uname -s`" = "Darwin"; then 6639 # If Tcl was built as a framework, attempt to use 6640 # the framework's Headers and PrivateHeaders directories 6641 case ${TCL_DEFS} in 6642 *TCL_FRAMEWORK*) 6643 if test -d "${TCL_BIN_DIR}/Headers" -a -d "${TCL_BIN_DIR}/PrivateHeaders"; then 6644 TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}"; else 6645 TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`"; fi 6646 ;; 6647 esac 6648 else 6649 if test ! -f "${TCL_SRC_DIR}/generic/tclInt.h" ; then 6650 { { echo "$as_me:$LINENO: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&5 6651echo "$as_me: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&2;} 6652 { (exit 1); exit 1; }; } 6653 fi 6654 fi 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 echo "$as_me:$LINENO: result: Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" >&5 6667echo "${ECHO_T}Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" >&6 6668 6669 6670 echo "$as_me:$LINENO: checking for Tk private include files" >&5 6671echo $ECHO_N "checking for Tk private include files... $ECHO_C" >&6 6672 6673 TK_SRC_DIR="${TK_PREFIX}/include/tk${TK_VERSION}" 6674 TK_SRC_DIR_NATIVE=`${CYGPATH} ${TK_SRC_DIR}` 6675 TK_TOP_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}\" 6676 TK_UNIX_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/unix\" 6677 TK_WIN_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/win\" 6678 TK_GENERIC_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/generic\" 6679 TK_XLIB_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/xlib\" 6680 if test "${TEA_PLATFORM}" = "windows"; then 6681 TK_PLATFORM_DIR_NATIVE=${TK_WIN_DIR_NATIVE} 6682 else 6683 TK_PLATFORM_DIR_NATIVE=${TK_UNIX_DIR_NATIVE} 6684 fi 6685 # We want to ensure these are substituted so as not to require 6686 # any *_NATIVE vars be defined in the Makefile 6687 TK_INCLUDES="-I${TK_GENERIC_DIR_NATIVE} -I${TK_PLATFORM_DIR_NATIVE}" 6688 if test "${TEA_WINDOWINGSYSTEM}" = "win32" \ 6689 -o "${TEA_WINDOWINGSYSTEM}" = "aqua"; then 6690 TK_INCLUDES="${TK_INCLUDES} -I${TK_XLIB_DIR_NATIVE}" 6691 fi 6692 if test "${TEA_WINDOWINGSYSTEM}" = "aqua"; then 6693 TK_INCLUDES="${TK_INCLUDES} -I${TK_SRC_DIR_NATIVE}/macosx" 6694 fi 6695 if test "`uname -s`" = "Darwin"; then 6696 # If Tk was built as a framework, attempt to use 6697 # the framework's Headers and PrivateHeaders directories 6698 case ${TK_DEFS} in 6699 *TK_FRAMEWORK*) 6700 if test -d "${TK_BIN_DIR}/Headers" -a -d "${TK_BIN_DIR}/PrivateHeaders"; then 6701 TK_INCLUDES="-I\"${TK_BIN_DIR}/Headers\" -I\"${TK_BIN_DIR}/PrivateHeaders\" ${TK_INCLUDES}"; fi 6702 ;; 6703 esac 6704 else 6705 if test ! -f "${TK_SRC_DIR}/generic/tkInt.h" ; then 6706 { { echo "$as_me:$LINENO: error: Cannot find private header tkInt.h in ${TK_SRC_DIR}" >&5 6707echo "$as_me: error: Cannot find private header tkInt.h in ${TK_SRC_DIR}" >&2;} 6708 { (exit 1); exit 1; }; } 6709 fi 6710 fi 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 echo "$as_me:$LINENO: result: Using srcdir found in tkConfig.sh: ${TK_SRC_DIR}" >&5 6721echo "${ECHO_T}Using srcdir found in tkConfig.sh: ${TK_SRC_DIR}" >&6 6722 6723 6724#-------------------------------------------------------------------- 6725# For Unix/Tk builds, make sure that the X libraries/headers are found. 6726#-------------------------------------------------------------------- 6727 6728 6729 if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then 6730 6731 echo "$as_me:$LINENO: checking for X" >&5 6732echo $ECHO_N "checking for X... $ECHO_C" >&6 6733 6734 6735# Check whether --with-x or --without-x was given. 6736if test "${with_x+set}" = set; then 6737 withval="$with_x" 6738 6739fi; 6740# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 6741if test "x$with_x" = xno; then 6742 # The user explicitly disabled X. 6743 have_x=disabled 6744else 6745 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 6746 # Both variables are already set. 6747 have_x=yes 6748 else 6749 if test "${ac_cv_have_x+set}" = set; then 6750 echo $ECHO_N "(cached) $ECHO_C" >&6 6751else 6752 # One or both of the vars are not set, and there is no cached value. 6753ac_x_includes=no ac_x_libraries=no 6754rm -fr conftest.dir 6755if mkdir conftest.dir; then 6756 cd conftest.dir 6757 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 6758 cat >Imakefile <<'_ACEOF' 6759acfindx: 6760 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 6761_ACEOF 6762 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 6763 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 6764 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 6765 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 6766 for ac_extension in a so sl; do 6767 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 6768 test -f $ac_im_libdir/libX11.$ac_extension; then 6769 ac_im_usrlibdir=$ac_im_libdir; break 6770 fi 6771 done 6772 # Screen out bogus values from the imake configuration. They are 6773 # bogus both because they are the default anyway, and because 6774 # using them would break gcc on systems where it needs fixed includes. 6775 case $ac_im_incroot in 6776 /usr/include) ;; 6777 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 6778 esac 6779 case $ac_im_usrlibdir in 6780 /usr/lib | /lib) ;; 6781 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 6782 esac 6783 fi 6784 cd .. 6785 rm -fr conftest.dir 6786fi 6787 6788# Standard set of common directories for X headers. 6789# Check X11 before X11Rn because it is often a symlink to the current release. 6790ac_x_header_dirs=' 6791/usr/X11/include 6792/usr/X11R6/include 6793/usr/X11R5/include 6794/usr/X11R4/include 6795 6796/usr/include/X11 6797/usr/include/X11R6 6798/usr/include/X11R5 6799/usr/include/X11R4 6800 6801/usr/local/X11/include 6802/usr/local/X11R6/include 6803/usr/local/X11R5/include 6804/usr/local/X11R4/include 6805 6806/usr/local/include/X11 6807/usr/local/include/X11R6 6808/usr/local/include/X11R5 6809/usr/local/include/X11R4 6810 6811/usr/X386/include 6812/usr/x386/include 6813/usr/XFree86/include/X11 6814 6815/usr/include 6816/usr/local/include 6817/usr/unsupported/include 6818/usr/athena/include 6819/usr/local/x11r5/include 6820/usr/lpp/Xamples/include 6821 6822/usr/openwin/include 6823/usr/openwin/share/include' 6824 6825if test "$ac_x_includes" = no; then 6826 # Guess where to find include files, by looking for Intrinsic.h. 6827 # First, try using that file with no special directory specified. 6828 cat >conftest.$ac_ext <<_ACEOF 6829/* confdefs.h. */ 6830_ACEOF 6831cat confdefs.h >>conftest.$ac_ext 6832cat >>conftest.$ac_ext <<_ACEOF 6833/* end confdefs.h. */ 6834#include <X11/Intrinsic.h> 6835_ACEOF 6836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6838 ac_status=$? 6839 grep -v '^ *+' conftest.er1 >conftest.err 6840 rm -f conftest.er1 6841 cat conftest.err >&5 6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6843 (exit $ac_status); } >/dev/null; then 6844 if test -s conftest.err; then 6845 ac_cpp_err=$ac_c_preproc_warn_flag 6846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6847 else 6848 ac_cpp_err= 6849 fi 6850else 6851 ac_cpp_err=yes 6852fi 6853if test -z "$ac_cpp_err"; then 6854 # We can compile using X headers with no special include directory. 6855ac_x_includes= 6856else 6857 echo "$as_me: failed program was:" >&5 6858sed 's/^/| /' conftest.$ac_ext >&5 6859 6860 for ac_dir in $ac_x_header_dirs; do 6861 if test -r "$ac_dir/X11/Intrinsic.h"; then 6862 ac_x_includes=$ac_dir 6863 break 6864 fi 6865done 6866fi 6867rm -f conftest.err conftest.$ac_ext 6868fi # $ac_x_includes = no 6869 6870if test "$ac_x_libraries" = no; then 6871 # Check for the libraries. 6872 # See if we find them without any special options. 6873 # Don't add to $LIBS permanently. 6874 ac_save_LIBS=$LIBS 6875 LIBS="-lXt $LIBS" 6876 cat >conftest.$ac_ext <<_ACEOF 6877/* confdefs.h. */ 6878_ACEOF 6879cat confdefs.h >>conftest.$ac_ext 6880cat >>conftest.$ac_ext <<_ACEOF 6881/* end confdefs.h. */ 6882#include <X11/Intrinsic.h> 6883int 6884main () 6885{ 6886XtMalloc (0) 6887 ; 6888 return 0; 6889} 6890_ACEOF 6891rm -f conftest.$ac_objext conftest$ac_exeext 6892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6893 (eval $ac_link) 2>conftest.er1 6894 ac_status=$? 6895 grep -v '^ *+' conftest.er1 >conftest.err 6896 rm -f conftest.er1 6897 cat conftest.err >&5 6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6899 (exit $ac_status); } && 6900 { ac_try='test -z "$ac_c_werror_flag" 6901 || test ! -s conftest.err' 6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6903 (eval $ac_try) 2>&5 6904 ac_status=$? 6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6906 (exit $ac_status); }; } && 6907 { ac_try='test -s conftest$ac_exeext' 6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6909 (eval $ac_try) 2>&5 6910 ac_status=$? 6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6912 (exit $ac_status); }; }; then 6913 LIBS=$ac_save_LIBS 6914# We can link X programs with no special library path. 6915ac_x_libraries= 6916else 6917 echo "$as_me: failed program was:" >&5 6918sed 's/^/| /' conftest.$ac_ext >&5 6919 6920LIBS=$ac_save_LIBS 6921for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 6922do 6923 # Don't even attempt the hair of trying to link an X program! 6924 for ac_extension in a so sl; do 6925 if test -r $ac_dir/libXt.$ac_extension; then 6926 ac_x_libraries=$ac_dir 6927 break 2 6928 fi 6929 done 6930done 6931fi 6932rm -f conftest.err conftest.$ac_objext \ 6933 conftest$ac_exeext conftest.$ac_ext 6934fi # $ac_x_libraries = no 6935 6936if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 6937 # Didn't find X anywhere. Cache the known absence of X. 6938 ac_cv_have_x="have_x=no" 6939else 6940 # Record where we found X for the cache. 6941 ac_cv_have_x="have_x=yes \ 6942 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 6943fi 6944fi 6945 6946 fi 6947 eval "$ac_cv_have_x" 6948fi # $with_x != no 6949 6950if test "$have_x" != yes; then 6951 echo "$as_me:$LINENO: result: $have_x" >&5 6952echo "${ECHO_T}$have_x" >&6 6953 no_x=yes 6954else 6955 # If each of the values was on the command line, it overrides each guess. 6956 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 6957 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 6958 # Update the cache value to reflect the command line values. 6959 ac_cv_have_x="have_x=yes \ 6960 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 6961 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 6962echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 6963fi 6964 6965 not_really_there="" 6966 if test "$no_x" = ""; then 6967 if test "$x_includes" = ""; then 6968 cat >conftest.$ac_ext <<_ACEOF 6969/* confdefs.h. */ 6970_ACEOF 6971cat confdefs.h >>conftest.$ac_ext 6972cat >>conftest.$ac_ext <<_ACEOF 6973/* end confdefs.h. */ 6974#include <X11/XIntrinsic.h> 6975_ACEOF 6976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6978 ac_status=$? 6979 grep -v '^ *+' conftest.er1 >conftest.err 6980 rm -f conftest.er1 6981 cat conftest.err >&5 6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6983 (exit $ac_status); } >/dev/null; then 6984 if test -s conftest.err; then 6985 ac_cpp_err=$ac_c_preproc_warn_flag 6986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6987 else 6988 ac_cpp_err= 6989 fi 6990else 6991 ac_cpp_err=yes 6992fi 6993if test -z "$ac_cpp_err"; then 6994 : 6995else 6996 echo "$as_me: failed program was:" >&5 6997sed 's/^/| /' conftest.$ac_ext >&5 6998 6999 not_really_there="yes" 7000fi 7001rm -f conftest.err conftest.$ac_ext 7002 else 7003 if test ! -r $x_includes/X11/Intrinsic.h; then 7004 not_really_there="yes" 7005 fi 7006 fi 7007 fi 7008 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then 7009 echo "$as_me:$LINENO: checking for X11 header files" >&5 7010echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6 7011 found_xincludes="no" 7012 cat >conftest.$ac_ext <<_ACEOF 7013/* confdefs.h. */ 7014_ACEOF 7015cat confdefs.h >>conftest.$ac_ext 7016cat >>conftest.$ac_ext <<_ACEOF 7017/* end confdefs.h. */ 7018#include <X11/Intrinsic.h> 7019_ACEOF 7020if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7022 ac_status=$? 7023 grep -v '^ *+' conftest.er1 >conftest.err 7024 rm -f conftest.er1 7025 cat conftest.err >&5 7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7027 (exit $ac_status); } >/dev/null; then 7028 if test -s conftest.err; then 7029 ac_cpp_err=$ac_c_preproc_warn_flag 7030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7031 else 7032 ac_cpp_err= 7033 fi 7034else 7035 ac_cpp_err=yes 7036fi 7037if test -z "$ac_cpp_err"; then 7038 found_xincludes="yes" 7039else 7040 echo "$as_me: failed program was:" >&5 7041sed 's/^/| /' conftest.$ac_ext >&5 7042 7043 found_xincludes="no" 7044fi 7045rm -f conftest.err conftest.$ac_ext 7046 if test "$found_xincludes" = "no"; then 7047 dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/X11R6/include /usr/X11R5/include /usr/include/X11R5 /usr/include/X11R4 /usr/openwin/include /usr/X11/include /usr/sww/include" 7048 for i in $dirs ; do 7049 if test -r $i/X11/Intrinsic.h; then 7050 echo "$as_me:$LINENO: result: $i" >&5 7051echo "${ECHO_T}$i" >&6 7052 XINCLUDES=" -I$i" 7053 found_xincludes="yes" 7054 break 7055 fi 7056 done 7057 fi 7058 else 7059 if test "$x_includes" != ""; then 7060 XINCLUDES="-I$x_includes" 7061 found_xincludes="yes" 7062 fi 7063 fi 7064 if test found_xincludes = "no"; then 7065 echo "$as_me:$LINENO: result: couldn't find any!" >&5 7066echo "${ECHO_T}couldn't find any!" >&6 7067 fi 7068 7069 if test "$no_x" = yes; then 7070 echo "$as_me:$LINENO: checking for X11 libraries" >&5 7071echo $ECHO_N "checking for X11 libraries... $ECHO_C" >&6 7072 XLIBSW=nope 7073 dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/X11R6/lib /usr/X11R5/lib /usr/lib/X11R5 /usr/lib/X11R4 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib" 7074 for i in $dirs ; do 7075 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl; then 7076 echo "$as_me:$LINENO: result: $i" >&5 7077echo "${ECHO_T}$i" >&6 7078 XLIBSW="-L$i -lX11" 7079 x_libraries="$i" 7080 break 7081 fi 7082 done 7083 else 7084 if test "$x_libraries" = ""; then 7085 XLIBSW=-lX11 7086 else 7087 XLIBSW="-L$x_libraries -lX11" 7088 fi 7089 fi 7090 if test "$XLIBSW" = nope ; then 7091 echo "$as_me:$LINENO: checking for XCreateWindow in -lXwindow" >&5 7092echo $ECHO_N "checking for XCreateWindow in -lXwindow... $ECHO_C" >&6 7093if test "${ac_cv_lib_Xwindow_XCreateWindow+set}" = set; then 7094 echo $ECHO_N "(cached) $ECHO_C" >&6 7095else 7096 ac_check_lib_save_LIBS=$LIBS 7097LIBS="-lXwindow $LIBS" 7098cat >conftest.$ac_ext <<_ACEOF 7099/* confdefs.h. */ 7100_ACEOF 7101cat confdefs.h >>conftest.$ac_ext 7102cat >>conftest.$ac_ext <<_ACEOF 7103/* end confdefs.h. */ 7104 7105/* Override any gcc2 internal prototype to avoid an error. */ 7106#ifdef __cplusplus 7107extern "C" 7108#endif 7109/* We use char because int might match the return type of a gcc2 7110 builtin and then its argument prototype would still apply. */ 7111char XCreateWindow (); 7112int 7113main () 7114{ 7115XCreateWindow (); 7116 ; 7117 return 0; 7118} 7119_ACEOF 7120rm -f conftest.$ac_objext conftest$ac_exeext 7121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7122 (eval $ac_link) 2>conftest.er1 7123 ac_status=$? 7124 grep -v '^ *+' conftest.er1 >conftest.err 7125 rm -f conftest.er1 7126 cat conftest.err >&5 7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7128 (exit $ac_status); } && 7129 { ac_try='test -z "$ac_c_werror_flag" 7130 || test ! -s conftest.err' 7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7132 (eval $ac_try) 2>&5 7133 ac_status=$? 7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7135 (exit $ac_status); }; } && 7136 { ac_try='test -s conftest$ac_exeext' 7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7138 (eval $ac_try) 2>&5 7139 ac_status=$? 7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7141 (exit $ac_status); }; }; then 7142 ac_cv_lib_Xwindow_XCreateWindow=yes 7143else 7144 echo "$as_me: failed program was:" >&5 7145sed 's/^/| /' conftest.$ac_ext >&5 7146 7147ac_cv_lib_Xwindow_XCreateWindow=no 7148fi 7149rm -f conftest.err conftest.$ac_objext \ 7150 conftest$ac_exeext conftest.$ac_ext 7151LIBS=$ac_check_lib_save_LIBS 7152fi 7153echo "$as_me:$LINENO: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5 7154echo "${ECHO_T}$ac_cv_lib_Xwindow_XCreateWindow" >&6 7155if test $ac_cv_lib_Xwindow_XCreateWindow = yes; then 7156 XLIBSW=-lXwindow 7157fi 7158 7159 fi 7160 if test "$XLIBSW" = nope ; then 7161 echo "$as_me:$LINENO: result: could not find any! Using -lX11." >&5 7162echo "${ECHO_T}could not find any! Using -lX11." >&6 7163 XLIBSW=-lX11 7164 fi 7165 if test x"${XLIBSW}" != x ; then 7166 PKG_LIBS="${PKG_LIBS} ${XLIBSW}" 7167 fi 7168 7169 fi 7170 7171 7172#-------------------------------------------------------------------- 7173# __CHANGE__ 7174# A few miscellaneous platform-specific items: 7175# 7176# Define a special symbol for Windows (BUILD_tix in this case) so 7177# that we create the export library with the dll. 7178# 7179# Windows creates a few extra files that need to be cleaned up. 7180# You can add more files to clean if your extension creates any extra 7181# files. 7182# 7183# TEA_ADD any extra compiler/build info here. 7184#-------------------------------------------------------------------- 7185 7186if test "${TEA_PLATFORM}" = "windows" ; then 7187 cat >>confdefs.h <<_ACEOF 7188#define BUILD_tix 1 7189_ACEOF 7190 7191 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb *.pch" 7192 7193 vars="gdi32.lib user32.lib advapi32.lib comdlg32.lib" 7194 for i in $vars; do 7195 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7196 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7197 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7198 fi 7199 PKG_LIBS="$PKG_LIBS $i" 7200 done 7201 7202 7203 7204 vars="tixWCmpt.c tixWinWm.c tixWinXpm.c tixWinDraw.c" 7205 for i in $vars; do 7206 case $i in 7207 \$*) 7208 # allow $-var names 7209 PKG_SOURCES="$PKG_SOURCES $i" 7210 PKG_OBJECTS="$PKG_OBJECTS $i" 7211 ;; 7212 *) 7213 # check for existence - allows for generic/win/unix VPATH 7214 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7215 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7216 ; then 7217 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7218echo "$as_me: error: could not find source file '$i'" >&2;} 7219 { (exit 1); exit 1; }; } 7220 fi 7221 PKG_SOURCES="$PKG_SOURCES $i" 7222 # this assumes it is in a VPATH dir 7223 i=`basename $i` 7224 # handle user calling this before or after TEA_SETUP_COMPILER 7225 if test x"${OBJEXT}" != x ; then 7226 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7227 else 7228 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7229 fi 7230 PKG_OBJECTS="$PKG_OBJECTS $j" 7231 ;; 7232 esac 7233 done 7234 7235 7236 7237 7238 vars="-I. -I\"`${CYGPATH} ${srcdir}/win`\"" 7239 for i in $vars; do 7240 PKG_INCLUDES="$PKG_INCLUDES $i" 7241 done 7242 7243 7244else 7245 CLEANFILES="pkgIndex.tcl" 7246 7247 vars="tixInputO.c tixUnixMwm.c" 7248 for i in $vars; do 7249 case $i in 7250 \$*) 7251 # allow $-var names 7252 PKG_SOURCES="$PKG_SOURCES $i" 7253 PKG_OBJECTS="$PKG_OBJECTS $i" 7254 ;; 7255 *) 7256 # check for existence - allows for generic/win/unix VPATH 7257 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7258 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7259 ; then 7260 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7261echo "$as_me: error: could not find source file '$i'" >&2;} 7262 { (exit 1); exit 1; }; } 7263 fi 7264 PKG_SOURCES="$PKG_SOURCES $i" 7265 # this assumes it is in a VPATH dir 7266 i=`basename $i` 7267 # handle user calling this before or after TEA_SETUP_COMPILER 7268 if test x"${OBJEXT}" != x ; then 7269 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7270 else 7271 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7272 fi 7273 PKG_OBJECTS="$PKG_OBJECTS $j" 7274 ;; 7275 esac 7276 done 7277 7278 7279 7280 7281 vars="tixUnixDraw.c tixUnixXpm.c tixUnixWm.c" 7282 for i in $vars; do 7283 case $i in 7284 \$*) 7285 # allow $-var names 7286 PKG_SOURCES="$PKG_SOURCES $i" 7287 PKG_OBJECTS="$PKG_OBJECTS $i" 7288 ;; 7289 *) 7290 # check for existence - allows for generic/win/unix VPATH 7291 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7292 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7293 ; then 7294 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7295echo "$as_me: error: could not find source file '$i'" >&2;} 7296 { (exit 1); exit 1; }; } 7297 fi 7298 PKG_SOURCES="$PKG_SOURCES $i" 7299 # this assumes it is in a VPATH dir 7300 i=`basename $i` 7301 # handle user calling this before or after TEA_SETUP_COMPILER 7302 if test x"${OBJEXT}" != x ; then 7303 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7304 else 7305 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7306 fi 7307 PKG_OBJECTS="$PKG_OBJECTS $j" 7308 ;; 7309 esac 7310 done 7311 7312 7313 7314 7315 vars="-I. -I\"`${CYGPATH} ${srcdir}/unix`\"" 7316 for i in $vars; do 7317 PKG_INCLUDES="$PKG_INCLUDES $i" 7318 done 7319 7320 7321fi 7322if test "${TEA_WINDOWINGSYSTEM}" = "aqua"; then 7323 7324 vars="-I${TK_TOP_DIR_NATIVE}/macosx" 7325 for i in $vars; do 7326 PKG_INCLUDES="$PKG_INCLUDES $i" 7327 done 7328 7329 7330fi 7331 7332 7333#-------------------------------------------------------------------- 7334# Check whether --enable-threads or --disable-threads was given. 7335# So far only Tcl responds to this one. 7336#-------------------------------------------------------------------- 7337 7338 7339 # Check whether --enable-threads or --disable-threads was given. 7340if test "${enable_threads+set}" = set; then 7341 enableval="$enable_threads" 7342 tcl_ok=$enableval 7343else 7344 tcl_ok=yes 7345fi; 7346 7347 if test "${enable_threads+set}" = set; then 7348 enableval="$enable_threads" 7349 tcl_ok=$enableval 7350 else 7351 tcl_ok=yes 7352 fi 7353 7354 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 7355 TCL_THREADS=1 7356 7357 if test "${TEA_PLATFORM}" != "windows" ; then 7358 # We are always OK on Windows, so check what this platform wants: 7359 7360 # USE_THREAD_ALLOC tells us to try the special thread-based 7361 # allocator that significantly reduces lock contention 7362 7363cat >>confdefs.h <<\_ACEOF 7364#define USE_THREAD_ALLOC 1 7365_ACEOF 7366 7367 7368cat >>confdefs.h <<\_ACEOF 7369#define _REENTRANT 1 7370_ACEOF 7371 7372 if test "`uname -s`" = "SunOS" ; then 7373 7374cat >>confdefs.h <<\_ACEOF 7375#define _POSIX_PTHREAD_SEMANTICS 1 7376_ACEOF 7377 7378 fi 7379 7380cat >>confdefs.h <<\_ACEOF 7381#define _THREAD_SAFE 1 7382_ACEOF 7383 7384 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 7385echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6 7386if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 7387 echo $ECHO_N "(cached) $ECHO_C" >&6 7388else 7389 ac_check_lib_save_LIBS=$LIBS 7390LIBS="-lpthread $LIBS" 7391cat >conftest.$ac_ext <<_ACEOF 7392/* confdefs.h. */ 7393_ACEOF 7394cat confdefs.h >>conftest.$ac_ext 7395cat >>conftest.$ac_ext <<_ACEOF 7396/* end confdefs.h. */ 7397 7398/* Override any gcc2 internal prototype to avoid an error. */ 7399#ifdef __cplusplus 7400extern "C" 7401#endif 7402/* We use char because int might match the return type of a gcc2 7403 builtin and then its argument prototype would still apply. */ 7404char pthread_mutex_init (); 7405int 7406main () 7407{ 7408pthread_mutex_init (); 7409 ; 7410 return 0; 7411} 7412_ACEOF 7413rm -f conftest.$ac_objext conftest$ac_exeext 7414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7415 (eval $ac_link) 2>conftest.er1 7416 ac_status=$? 7417 grep -v '^ *+' conftest.er1 >conftest.err 7418 rm -f conftest.er1 7419 cat conftest.err >&5 7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7421 (exit $ac_status); } && 7422 { ac_try='test -z "$ac_c_werror_flag" 7423 || test ! -s conftest.err' 7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7425 (eval $ac_try) 2>&5 7426 ac_status=$? 7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7428 (exit $ac_status); }; } && 7429 { ac_try='test -s conftest$ac_exeext' 7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7431 (eval $ac_try) 2>&5 7432 ac_status=$? 7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7434 (exit $ac_status); }; }; then 7435 ac_cv_lib_pthread_pthread_mutex_init=yes 7436else 7437 echo "$as_me: failed program was:" >&5 7438sed 's/^/| /' conftest.$ac_ext >&5 7439 7440ac_cv_lib_pthread_pthread_mutex_init=no 7441fi 7442rm -f conftest.err conftest.$ac_objext \ 7443 conftest$ac_exeext conftest.$ac_ext 7444LIBS=$ac_check_lib_save_LIBS 7445fi 7446echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7447echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6 7448if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7449 tcl_ok=yes 7450else 7451 tcl_ok=no 7452fi 7453 7454 if test "$tcl_ok" = "no"; then 7455 # Check a little harder for __pthread_mutex_init in the same 7456 # library, as some systems hide it there until pthread.h is 7457 # defined. We could alternatively do an AC_TRY_COMPILE with 7458 # pthread.h, but that will work with libpthread really doesn't 7459 # exist, like AIX 4.2. [Bug: 4359] 7460 echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7461echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6 7462if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7463 echo $ECHO_N "(cached) $ECHO_C" >&6 7464else 7465 ac_check_lib_save_LIBS=$LIBS 7466LIBS="-lpthread $LIBS" 7467cat >conftest.$ac_ext <<_ACEOF 7468/* confdefs.h. */ 7469_ACEOF 7470cat confdefs.h >>conftest.$ac_ext 7471cat >>conftest.$ac_ext <<_ACEOF 7472/* end confdefs.h. */ 7473 7474/* Override any gcc2 internal prototype to avoid an error. */ 7475#ifdef __cplusplus 7476extern "C" 7477#endif 7478/* We use char because int might match the return type of a gcc2 7479 builtin and then its argument prototype would still apply. */ 7480char __pthread_mutex_init (); 7481int 7482main () 7483{ 7484__pthread_mutex_init (); 7485 ; 7486 return 0; 7487} 7488_ACEOF 7489rm -f conftest.$ac_objext conftest$ac_exeext 7490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7491 (eval $ac_link) 2>conftest.er1 7492 ac_status=$? 7493 grep -v '^ *+' conftest.er1 >conftest.err 7494 rm -f conftest.er1 7495 cat conftest.err >&5 7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7497 (exit $ac_status); } && 7498 { ac_try='test -z "$ac_c_werror_flag" 7499 || test ! -s conftest.err' 7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7501 (eval $ac_try) 2>&5 7502 ac_status=$? 7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7504 (exit $ac_status); }; } && 7505 { ac_try='test -s conftest$ac_exeext' 7506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7507 (eval $ac_try) 2>&5 7508 ac_status=$? 7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7510 (exit $ac_status); }; }; then 7511 ac_cv_lib_pthread___pthread_mutex_init=yes 7512else 7513 echo "$as_me: failed program was:" >&5 7514sed 's/^/| /' conftest.$ac_ext >&5 7515 7516ac_cv_lib_pthread___pthread_mutex_init=no 7517fi 7518rm -f conftest.err conftest.$ac_objext \ 7519 conftest$ac_exeext conftest.$ac_ext 7520LIBS=$ac_check_lib_save_LIBS 7521fi 7522echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7523echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6 7524if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7525 tcl_ok=yes 7526else 7527 tcl_ok=no 7528fi 7529 7530 fi 7531 7532 if test "$tcl_ok" = "yes"; then 7533 # The space is needed 7534 THREADS_LIBS=" -lpthread" 7535 else 7536 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7537echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6 7538if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7539 echo $ECHO_N "(cached) $ECHO_C" >&6 7540else 7541 ac_check_lib_save_LIBS=$LIBS 7542LIBS="-lpthreads $LIBS" 7543cat >conftest.$ac_ext <<_ACEOF 7544/* confdefs.h. */ 7545_ACEOF 7546cat confdefs.h >>conftest.$ac_ext 7547cat >>conftest.$ac_ext <<_ACEOF 7548/* end confdefs.h. */ 7549 7550/* Override any gcc2 internal prototype to avoid an error. */ 7551#ifdef __cplusplus 7552extern "C" 7553#endif 7554/* We use char because int might match the return type of a gcc2 7555 builtin and then its argument prototype would still apply. */ 7556char pthread_mutex_init (); 7557int 7558main () 7559{ 7560pthread_mutex_init (); 7561 ; 7562 return 0; 7563} 7564_ACEOF 7565rm -f conftest.$ac_objext conftest$ac_exeext 7566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7567 (eval $ac_link) 2>conftest.er1 7568 ac_status=$? 7569 grep -v '^ *+' conftest.er1 >conftest.err 7570 rm -f conftest.er1 7571 cat conftest.err >&5 7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7573 (exit $ac_status); } && 7574 { ac_try='test -z "$ac_c_werror_flag" 7575 || test ! -s conftest.err' 7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7577 (eval $ac_try) 2>&5 7578 ac_status=$? 7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7580 (exit $ac_status); }; } && 7581 { ac_try='test -s conftest$ac_exeext' 7582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7583 (eval $ac_try) 2>&5 7584 ac_status=$? 7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7586 (exit $ac_status); }; }; then 7587 ac_cv_lib_pthreads_pthread_mutex_init=yes 7588else 7589 echo "$as_me: failed program was:" >&5 7590sed 's/^/| /' conftest.$ac_ext >&5 7591 7592ac_cv_lib_pthreads_pthread_mutex_init=no 7593fi 7594rm -f conftest.err conftest.$ac_objext \ 7595 conftest$ac_exeext conftest.$ac_ext 7596LIBS=$ac_check_lib_save_LIBS 7597fi 7598echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7599echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6 7600if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7601 tcl_ok=yes 7602else 7603 tcl_ok=no 7604fi 7605 7606 if test "$tcl_ok" = "yes"; then 7607 # The space is needed 7608 THREADS_LIBS=" -lpthreads" 7609 else 7610 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7611echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6 7612if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7613 echo $ECHO_N "(cached) $ECHO_C" >&6 7614else 7615 ac_check_lib_save_LIBS=$LIBS 7616LIBS="-lc $LIBS" 7617cat >conftest.$ac_ext <<_ACEOF 7618/* confdefs.h. */ 7619_ACEOF 7620cat confdefs.h >>conftest.$ac_ext 7621cat >>conftest.$ac_ext <<_ACEOF 7622/* end confdefs.h. */ 7623 7624/* Override any gcc2 internal prototype to avoid an error. */ 7625#ifdef __cplusplus 7626extern "C" 7627#endif 7628/* We use char because int might match the return type of a gcc2 7629 builtin and then its argument prototype would still apply. */ 7630char pthread_mutex_init (); 7631int 7632main () 7633{ 7634pthread_mutex_init (); 7635 ; 7636 return 0; 7637} 7638_ACEOF 7639rm -f conftest.$ac_objext conftest$ac_exeext 7640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7641 (eval $ac_link) 2>conftest.er1 7642 ac_status=$? 7643 grep -v '^ *+' conftest.er1 >conftest.err 7644 rm -f conftest.er1 7645 cat conftest.err >&5 7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7647 (exit $ac_status); } && 7648 { ac_try='test -z "$ac_c_werror_flag" 7649 || test ! -s conftest.err' 7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7651 (eval $ac_try) 2>&5 7652 ac_status=$? 7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7654 (exit $ac_status); }; } && 7655 { ac_try='test -s conftest$ac_exeext' 7656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7657 (eval $ac_try) 2>&5 7658 ac_status=$? 7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7660 (exit $ac_status); }; }; then 7661 ac_cv_lib_c_pthread_mutex_init=yes 7662else 7663 echo "$as_me: failed program was:" >&5 7664sed 's/^/| /' conftest.$ac_ext >&5 7665 7666ac_cv_lib_c_pthread_mutex_init=no 7667fi 7668rm -f conftest.err conftest.$ac_objext \ 7669 conftest$ac_exeext conftest.$ac_ext 7670LIBS=$ac_check_lib_save_LIBS 7671fi 7672echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7673echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6 7674if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7675 tcl_ok=yes 7676else 7677 tcl_ok=no 7678fi 7679 7680 if test "$tcl_ok" = "no"; then 7681 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7682echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6 7683if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7684 echo $ECHO_N "(cached) $ECHO_C" >&6 7685else 7686 ac_check_lib_save_LIBS=$LIBS 7687LIBS="-lc_r $LIBS" 7688cat >conftest.$ac_ext <<_ACEOF 7689/* confdefs.h. */ 7690_ACEOF 7691cat confdefs.h >>conftest.$ac_ext 7692cat >>conftest.$ac_ext <<_ACEOF 7693/* end confdefs.h. */ 7694 7695/* Override any gcc2 internal prototype to avoid an error. */ 7696#ifdef __cplusplus 7697extern "C" 7698#endif 7699/* We use char because int might match the return type of a gcc2 7700 builtin and then its argument prototype would still apply. */ 7701char pthread_mutex_init (); 7702int 7703main () 7704{ 7705pthread_mutex_init (); 7706 ; 7707 return 0; 7708} 7709_ACEOF 7710rm -f conftest.$ac_objext conftest$ac_exeext 7711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7712 (eval $ac_link) 2>conftest.er1 7713 ac_status=$? 7714 grep -v '^ *+' conftest.er1 >conftest.err 7715 rm -f conftest.er1 7716 cat conftest.err >&5 7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7718 (exit $ac_status); } && 7719 { ac_try='test -z "$ac_c_werror_flag" 7720 || test ! -s conftest.err' 7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7722 (eval $ac_try) 2>&5 7723 ac_status=$? 7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7725 (exit $ac_status); }; } && 7726 { ac_try='test -s conftest$ac_exeext' 7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7728 (eval $ac_try) 2>&5 7729 ac_status=$? 7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7731 (exit $ac_status); }; }; then 7732 ac_cv_lib_c_r_pthread_mutex_init=yes 7733else 7734 echo "$as_me: failed program was:" >&5 7735sed 's/^/| /' conftest.$ac_ext >&5 7736 7737ac_cv_lib_c_r_pthread_mutex_init=no 7738fi 7739rm -f conftest.err conftest.$ac_objext \ 7740 conftest$ac_exeext conftest.$ac_ext 7741LIBS=$ac_check_lib_save_LIBS 7742fi 7743echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7744echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6 7745if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7746 tcl_ok=yes 7747else 7748 tcl_ok=no 7749fi 7750 7751 if test "$tcl_ok" = "yes"; then 7752 # The space is needed 7753 THREADS_LIBS=" -pthread" 7754 else 7755 TCL_THREADS=0 7756 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7757echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7758 fi 7759 fi 7760 fi 7761 fi 7762 fi 7763 else 7764 TCL_THREADS=0 7765 fi 7766 # Do checking message here to not mess up interleaved configure output 7767 echo "$as_me:$LINENO: checking for building with threads" >&5 7768echo $ECHO_N "checking for building with threads... $ECHO_C" >&6 7769 if test "${TCL_THREADS}" = 1; then 7770 7771cat >>confdefs.h <<\_ACEOF 7772#define TCL_THREADS 1 7773_ACEOF 7774 7775 echo "$as_me:$LINENO: result: yes (default)" >&5 7776echo "${ECHO_T}yes (default)" >&6 7777 else 7778 echo "$as_me:$LINENO: result: no" >&5 7779echo "${ECHO_T}no" >&6 7780 fi 7781 # TCL_THREADS sanity checking. See if our request for building with 7782 # threads is the same as the way Tcl was built. If not, warn the user. 7783 case ${TCL_DEFS} in 7784 *THREADS=1*) 7785 if test "${TCL_THREADS}" = "0"; then 7786 { echo "$as_me:$LINENO: WARNING: 7787 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7788 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7789echo "$as_me: WARNING: 7790 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7791 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7792 fi 7793 ;; 7794 *) 7795 if test "${TCL_THREADS}" = "1"; then 7796 { echo "$as_me:$LINENO: WARNING: 7797 --enable-threads requested, but building against a Tcl that is NOT 7798 thread-enabled. This is an OK configuration that will also run in 7799 a thread-enabled core." >&5 7800echo "$as_me: WARNING: 7801 --enable-threads requested, but building against a Tcl that is NOT 7802 thread-enabled. This is an OK configuration that will also run in 7803 a thread-enabled core." >&2;} 7804 fi 7805 ;; 7806 esac 7807 7808 7809 7810#-------------------------------------------------------------------- 7811# The statement below defines a collection of symbols related to 7812# building as a shared library instead of a static library. 7813#-------------------------------------------------------------------- 7814 7815 7816 echo "$as_me:$LINENO: checking how to build libraries" >&5 7817echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6 7818 # Check whether --enable-shared or --disable-shared was given. 7819if test "${enable_shared+set}" = set; then 7820 enableval="$enable_shared" 7821 tcl_ok=$enableval 7822else 7823 tcl_ok=yes 7824fi; 7825 7826 if test "${enable_shared+set}" = set; then 7827 enableval="$enable_shared" 7828 tcl_ok=$enableval 7829 else 7830 tcl_ok=yes 7831 fi 7832 7833 if test "$tcl_ok" = "yes" ; then 7834 echo "$as_me:$LINENO: result: shared" >&5 7835echo "${ECHO_T}shared" >&6 7836 SHARED_BUILD=1 7837 else 7838 echo "$as_me:$LINENO: result: static" >&5 7839echo "${ECHO_T}static" >&6 7840 SHARED_BUILD=0 7841 7842cat >>confdefs.h <<\_ACEOF 7843#define STATIC_BUILD 1 7844_ACEOF 7845 7846 fi 7847 7848 7849 7850#-------------------------------------------------------------------- 7851# This macro figures out what flags to use with the compiler/linker 7852# when building shared/static debug/optimized objects. This information 7853# can be taken from the tclConfig.sh file, but this figures it all out. 7854#-------------------------------------------------------------------- 7855 7856 7857 7858 7859 # Step 0.a: Enable 64 bit support? 7860 7861 echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7862echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6 7863 # Check whether --enable-64bit or --disable-64bit was given. 7864if test "${enable_64bit+set}" = set; then 7865 enableval="$enable_64bit" 7866 do64bit=$enableval 7867else 7868 do64bit=no 7869fi; 7870 echo "$as_me:$LINENO: result: $do64bit" >&5 7871echo "${ECHO_T}$do64bit" >&6 7872 7873 # Step 0.b: Enable Solaris 64 bit VIS support? 7874 7875 echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7876echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6 7877 # Check whether --enable-64bit-vis or --disable-64bit-vis was given. 7878if test "${enable_64bit_vis+set}" = set; then 7879 enableval="$enable_64bit_vis" 7880 do64bitVIS=$enableval 7881else 7882 do64bitVIS=no 7883fi; 7884 echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7885echo "${ECHO_T}$do64bitVIS" >&6 7886 7887 if test "$do64bitVIS" = "yes"; then 7888 # Force 64bit on with VIS 7889 do64bit=yes 7890 fi 7891 7892 # Step 0.c: Cross-compiling options for Windows/CE builds? 7893 7894 if test "${TEA_PLATFORM}" = "windows" ; then 7895 echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7896echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6 7897 # Check whether --enable-wince or --disable-wince was given. 7898if test "${enable_wince+set}" = set; then 7899 enableval="$enable_wince" 7900 doWince=$enableval 7901else 7902 doWince=no 7903fi; 7904 echo "$as_me:$LINENO: result: $doWince" >&5 7905echo "${ECHO_T}$doWince" >&6 7906 fi 7907 7908 # Step 1: set the variable "system" to hold the name and version number 7909 # for the system. 7910 7911 7912 echo "$as_me:$LINENO: checking system version" >&5 7913echo $ECHO_N "checking system version... $ECHO_C" >&6 7914if test "${tcl_cv_sys_version+set}" = set; then 7915 echo $ECHO_N "(cached) $ECHO_C" >&6 7916else 7917 7918 if test "${TEA_PLATFORM}" = "windows" ; then 7919 tcl_cv_sys_version=windows 7920 elif test -f /usr/lib/NextStep/software_version; then 7921 tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` 7922 else 7923 tcl_cv_sys_version=`uname -s`-`uname -r` 7924 if test "$?" -ne 0 ; then 7925 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7926echo "$as_me: WARNING: can't find uname command" >&2;} 7927 tcl_cv_sys_version=unknown 7928 else 7929 # Special check for weird MP-RAS system (uname returns weird 7930 # results, and the version is kept in special file). 7931 7932 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then 7933 tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` 7934 fi 7935 if test "`uname -s`" = "AIX" ; then 7936 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7937 fi 7938 fi 7939 fi 7940 7941fi 7942echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7943echo "${ECHO_T}$tcl_cv_sys_version" >&6 7944 system=$tcl_cv_sys_version 7945 7946 7947 # Step 2: check for existence of -ldl library. This is needed because 7948 # Linux can use either -ldl or -ldld for dynamic loading. 7949 7950 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7951echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7952if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7953 echo $ECHO_N "(cached) $ECHO_C" >&6 7954else 7955 ac_check_lib_save_LIBS=$LIBS 7956LIBS="-ldl $LIBS" 7957cat >conftest.$ac_ext <<_ACEOF 7958/* confdefs.h. */ 7959_ACEOF 7960cat confdefs.h >>conftest.$ac_ext 7961cat >>conftest.$ac_ext <<_ACEOF 7962/* end confdefs.h. */ 7963 7964/* Override any gcc2 internal prototype to avoid an error. */ 7965#ifdef __cplusplus 7966extern "C" 7967#endif 7968/* We use char because int might match the return type of a gcc2 7969 builtin and then its argument prototype would still apply. */ 7970char dlopen (); 7971int 7972main () 7973{ 7974dlopen (); 7975 ; 7976 return 0; 7977} 7978_ACEOF 7979rm -f conftest.$ac_objext conftest$ac_exeext 7980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7981 (eval $ac_link) 2>conftest.er1 7982 ac_status=$? 7983 grep -v '^ *+' conftest.er1 >conftest.err 7984 rm -f conftest.er1 7985 cat conftest.err >&5 7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7987 (exit $ac_status); } && 7988 { ac_try='test -z "$ac_c_werror_flag" 7989 || test ! -s conftest.err' 7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7991 (eval $ac_try) 2>&5 7992 ac_status=$? 7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7994 (exit $ac_status); }; } && 7995 { ac_try='test -s conftest$ac_exeext' 7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7997 (eval $ac_try) 2>&5 7998 ac_status=$? 7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8000 (exit $ac_status); }; }; then 8001 ac_cv_lib_dl_dlopen=yes 8002else 8003 echo "$as_me: failed program was:" >&5 8004sed 's/^/| /' conftest.$ac_ext >&5 8005 8006ac_cv_lib_dl_dlopen=no 8007fi 8008rm -f conftest.err conftest.$ac_objext \ 8009 conftest$ac_exeext conftest.$ac_ext 8010LIBS=$ac_check_lib_save_LIBS 8011fi 8012echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8013echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8014if test $ac_cv_lib_dl_dlopen = yes; then 8015 have_dl=yes 8016else 8017 have_dl=no 8018fi 8019 8020 8021 # Require ranlib early so we can override it in special cases below. 8022 8023 8024 8025 # Step 3: set configuration options based on system name and version. 8026 # This is similar to Tcl's unix/tcl.m4 except that we've added a 8027 # "windows" case. 8028 8029 do64bit_ok=no 8030 LDFLAGS_ORIG="$LDFLAGS" 8031 # When ld needs options to work in 64-bit mode, put them in 8032 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 8033 # is disabled by the user. [Bug 1016796] 8034 LDFLAGS_ARCH="" 8035 TCL_EXPORT_FILE_SUFFIX="" 8036 UNSHARED_LIB_SUFFIX="" 8037 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 8038 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 8039 TCL_LIB_VERSIONS_OK=ok 8040 CFLAGS_DEBUG=-g 8041 CFLAGS_OPTIMIZE=-O 8042 if test "$GCC" = "yes" ; then 8043 CFLAGS_OPTIMIZE=-O2 8044 CFLAGS_WARNING="-Wall -Wno-implicit-int" 8045 else 8046 CFLAGS_WARNING="" 8047 fi 8048 TCL_NEEDS_EXP_FILE=0 8049 TCL_BUILD_EXP_FILE="" 8050 TCL_EXP_FILE="" 8051 # Extract the first word of "ar", so it can be a program name with args. 8052set dummy ar; ac_word=$2 8053echo "$as_me:$LINENO: checking for $ac_word" >&5 8054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8055if test "${ac_cv_prog_AR+set}" = set; then 8056 echo $ECHO_N "(cached) $ECHO_C" >&6 8057else 8058 if test -n "$AR"; then 8059 ac_cv_prog_AR="$AR" # Let the user override the test. 8060else 8061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8062for as_dir in $PATH 8063do 8064 IFS=$as_save_IFS 8065 test -z "$as_dir" && as_dir=. 8066 for ac_exec_ext in '' $ac_executable_extensions; do 8067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8068 ac_cv_prog_AR="ar" 8069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8070 break 2 8071 fi 8072done 8073done 8074 8075fi 8076fi 8077AR=$ac_cv_prog_AR 8078if test -n "$AR"; then 8079 echo "$as_me:$LINENO: result: $AR" >&5 8080echo "${ECHO_T}$AR" >&6 8081else 8082 echo "$as_me:$LINENO: result: no" >&5 8083echo "${ECHO_T}no" >&6 8084fi 8085 8086 STLIB_LD='${AR} cr' 8087 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 8088 case $system in 8089 windows) 8090 # This is a 2-stage check to make sure we have the 64-bit SDK 8091 # We have to know where the SDK is installed. 8092 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 8093 # MACHINE is IX86 for LINK, but this is used by the manifest, 8094 # which requires x86|amd64|ia64. 8095 MACHINE="X86" 8096 if test "$do64bit" != "no" ; then 8097 if test "x${MSSDK}x" = "xx" ; then 8098 MSSDK="C:/Progra~1/Microsoft Platform SDK" 8099 fi 8100 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 8101 PATH64="" 8102 case "$do64bit" in 8103 amd64|x64|yes) 8104 MACHINE="AMD64" ; # default to AMD64 64-bit build 8105 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 8106 ;; 8107 ia64) 8108 MACHINE="IA64" 8109 PATH64="${MSSDK}/Bin/Win64" 8110 ;; 8111 esac 8112 if test ! -d "${PATH64}" ; then 8113 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 8114echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 8115 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 8116echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 8117 do64bit="no" 8118 else 8119 echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 8120echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6 8121 do64bit_ok="yes" 8122 fi 8123 fi 8124 8125 if test "$doWince" != "no" ; then 8126 if test "$do64bit" != "no" ; then 8127 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 8128echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 8129 { (exit 1); exit 1; }; } 8130 fi 8131 if test "$GCC" = "yes" ; then 8132 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 8133echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 8134 { (exit 1); exit 1; }; } 8135 fi 8136 8137 # First, look for one uninstalled. 8138 # the alternative search directory is invoked by --with-celib 8139 8140 if test x"${no_celib}" = x ; then 8141 # we reset no_celib in case something fails here 8142 no_celib=true 8143 8144# Check whether --with-celib or --without-celib was given. 8145if test "${with_celib+set}" = set; then 8146 withval="$with_celib" 8147 with_celibconfig=${withval} 8148fi; 8149 echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 8150echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6 8151 if test "${ac_cv_c_celibconfig+set}" = set; then 8152 echo $ECHO_N "(cached) $ECHO_C" >&6 8153else 8154 8155 # First check to see if --with-celibconfig was specified. 8156 if test x"${with_celibconfig}" != x ; then 8157 if test -d "${with_celibconfig}/inc" ; then 8158 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 8159 else 8160 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 8161echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 8162 { (exit 1); exit 1; }; } 8163 fi 8164 fi 8165 8166 # then check for a celib library 8167 if test x"${ac_cv_c_celibconfig}" = x ; then 8168 for i in \ 8169 ../celib-palm-3.0 \ 8170 ../celib \ 8171 ../../celib-palm-3.0 \ 8172 ../../celib \ 8173 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 8174 ${srcdir}/../celib-palm-3.0 \ 8175 ${srcdir}/../celib \ 8176 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 8177 ; do 8178 if test -d "$i/inc" ; then 8179 ac_cv_c_celibconfig=`(cd $i; pwd)` 8180 break 8181 fi 8182 done 8183 fi 8184 8185fi 8186 8187 if test x"${ac_cv_c_celibconfig}" = x ; then 8188 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 8189echo "$as_me: error: Cannot find celib support library directory" >&2;} 8190 { (exit 1); exit 1; }; } 8191 else 8192 no_celib= 8193 CELIB_DIR=${ac_cv_c_celibconfig} 8194 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 8195 echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 8196echo "${ECHO_T}found $CELIB_DIR" >&6 8197 fi 8198 fi 8199 8200 # Set defaults for common evc4/PPC2003 setup 8201 # Currently Tcl requires 300+, possibly 420+ for sockets 8202 CEVERSION=420; # could be 211 300 301 400 420 ... 8203 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 8204 ARCH=ARM; # could be ARM MIPS X86EM ... 8205 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 8206 if test "$doWince" != "yes"; then 8207 # If !yes then the user specified something 8208 # Reset ARCH to allow user to skip specifying it 8209 ARCH= 8210 eval `echo $doWince | awk -F, '{ \ 8211 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 8212 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 8213 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 8214 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 8215 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 8216 }'` 8217 if test "x${ARCH}" = "x" ; then 8218 ARCH=$TARGETCPU; 8219 fi 8220 fi 8221 OSVERSION=WCE$CEVERSION; 8222 if test "x${WCEROOT}" = "x" ; then 8223 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 8224 if test ! -d "${WCEROOT}" ; then 8225 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 8226 fi 8227 fi 8228 if test "x${SDKROOT}" = "x" ; then 8229 SDKROOT="C:/Program Files/Windows CE Tools" 8230 if test ! -d "${SDKROOT}" ; then 8231 SDKROOT="C:/Windows CE Tools" 8232 fi 8233 fi 8234 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 8235 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 8236 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 8237 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 8238 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 8239echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 8240 { (exit 1); exit 1; }; } 8241 doWince="no" 8242 else 8243 # We could PATH_NOSPACE these, but that's not important, 8244 # as long as we quote them when used. 8245 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 8246 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 8247 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 8248 fi 8249 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 8250 fi 8251 fi 8252 8253 if test "$GCC" != "yes" ; then 8254 if test "${SHARED_BUILD}" = "0" ; then 8255 runtime=-MT 8256 else 8257 runtime=-MD 8258 fi 8259 8260 if test "$do64bit" != "no" ; then 8261 # All this magic is necessary for the Win64 SDK RC1 - hobbs 8262 CC="\"${PATH64}/cl.exe\"" 8263 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 8264 RC="\"${MSSDK}/bin/rc.exe\"" 8265 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 8266 LINKBIN="\"${PATH64}/link.exe\"" 8267 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 8268 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8269 # Avoid 'unresolved external symbol __security_cookie' 8270 # errors, c.f. http://support.microsoft.com/?id=894573 8271 8272 vars="bufferoverflowU.lib" 8273 for i in $vars; do 8274 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 8275 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 8276 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 8277 fi 8278 PKG_LIBS="$PKG_LIBS $i" 8279 done 8280 8281 8282 elif test "$doWince" != "no" ; then 8283 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 8284 if test "${TARGETCPU}" = "X86"; then 8285 CC="\"${CEBINROOT}/cl.exe\"" 8286 else 8287 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 8288 fi 8289 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 8290 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 8291 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 8292 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 8293 if test "${SHARED_BUILD}" = "1" ; then 8294 # Static CE builds require static celib as well 8295 defs="${defs} _DLL" 8296 fi 8297 for i in $defs ; do 8298 8299cat >>confdefs.h <<_ACEOF 8300#define $i 1 8301_ACEOF 8302 8303 done 8304 8305cat >>confdefs.h <<_ACEOF 8306#define _WIN32_WCE $CEVERSION 8307_ACEOF 8308 8309 8310cat >>confdefs.h <<_ACEOF 8311#define UNDER_CE $CEVERSION 8312_ACEOF 8313 8314 CFLAGS_DEBUG="-nologo -Zi -Od" 8315 CFLAGS_OPTIMIZE="-nologo -Ox" 8316 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 8317 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 8318 LINKBIN="\"${CEBINROOT}/link.exe\"" 8319 8320 else 8321 RC="rc" 8322 lflags="-nologo" 8323 LINKBIN="link" 8324 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 8325 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8326 fi 8327 fi 8328 8329 if test "$GCC" = "yes"; then 8330 # mingw gcc mode 8331 RC="windres" 8332 CFLAGS_DEBUG="-g" 8333 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8334 SHLIB_LD="$CC -shared" 8335 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8336 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 8337 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 8338 else 8339 SHLIB_LD="${LINKBIN} -dll ${lflags}" 8340 # link -lib only works when -lib is the first arg 8341 STLIB_LD="${LINKBIN} -lib ${lflags}" 8342 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 8343 PATHTYPE=-w 8344 # For information on what debugtype is most useful, see: 8345 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 8346 # This essentially turns it all on. 8347 LDFLAGS_DEBUG="-debug:full -debugtype:both -warn:2" 8348 LDFLAGS_OPTIMIZE="-release" 8349 if test "$doWince" != "no" ; then 8350 LDFLAGS_CONSOLE="-link ${lflags}" 8351 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 8352 else 8353 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 8354 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 8355 fi 8356 fi 8357 8358 SHLIB_LD_LIBS='${LIBS}' 8359 SHLIB_SUFFIX=".dll" 8360 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 8361 8362 TCL_LIB_VERSIONS_OK=nodots 8363 # Bogus to avoid getting this turned off 8364 DL_OBJS="tclLoadNone.obj" 8365 ;; 8366 AIX-*) 8367 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then 8368 # AIX requires the _r compiler when gcc isn't being used 8369 case "${CC}" in 8370 *_r) 8371 # ok ... 8372 ;; 8373 *) 8374 CC=${CC}_r 8375 ;; 8376 esac 8377 echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 8378echo "${ECHO_T}Using $CC for compiling with threads" >&6 8379 fi 8380 LIBS="$LIBS -lc" 8381 SHLIB_CFLAGS="" 8382 SHLIB_LD_LIBS='${LIBS}' 8383 SHLIB_SUFFIX=".so" 8384 8385 DL_OBJS="tclLoadDl.o" 8386 LD_LIBRARY_PATH_VAR="LIBPATH" 8387 8388 # Check to enable 64-bit flags for compiler/linker on AIX 4+ 8389 if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then 8390 if test "$GCC" = "yes" ; then 8391 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8392echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8393 else 8394 do64bit_ok=yes 8395 CFLAGS="$CFLAGS -q64" 8396 LDFLAGS_ARCH="-q64" 8397 RANLIB="${RANLIB} -X64" 8398 AR="${AR} -X64" 8399 SHLIB_LD_FLAGS="-b64" 8400 fi 8401 fi 8402 8403 if test "`uname -m`" = "ia64" ; then 8404 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8405 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8406 # AIX-5 has dl* in libc.so 8407 DL_LIBS="" 8408 if test "$GCC" = "yes" ; then 8409 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8410 else 8411 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8412 fi 8413 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8414 else 8415 if test "$GCC" = "yes" ; then 8416 SHLIB_LD="gcc -shared" 8417 else 8418 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" 8419 fi 8420 SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8421 DL_LIBS="-ldl" 8422 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8423 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8424 TCL_NEEDS_EXP_FILE=1 8425 TCL_EXPORT_FILE_SUFFIX='${PACKAGE_VERSION}.exp' 8426 fi 8427 8428 # AIX v<=4.1 has some different flags than 4.2+ 8429 if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then 8430 case $LIBOBJS in 8431 "tclLoadAix.$ac_objext" | \ 8432 *" tclLoadAix.$ac_objext" | \ 8433 "tclLoadAix.$ac_objext "* | \ 8434 *" tclLoadAix.$ac_objext "* ) ;; 8435 *) LIBOBJS="$LIBOBJS tclLoadAix.$ac_objext" ;; 8436esac 8437 8438 DL_LIBS="-lld" 8439 fi 8440 8441 # On AIX <=v4 systems, libbsd.a has to be linked in to support 8442 # non-blocking file IO. This library has to be linked in after 8443 # the MATH_LIBS or it breaks the pow() function. The way to 8444 # insure proper sequencing, is to add it to the tail of MATH_LIBS. 8445 # This library also supplies gettimeofday. 8446 # 8447 # AIX does not have a timezone field in struct tm. When the AIX 8448 # bsd library is used, the timezone global and the gettimeofday 8449 # methods are to be avoided for timezone deduction instead, we 8450 # deduce the timezone by comparing the localtime result on a 8451 # known GMT value. 8452 8453 echo "$as_me:$LINENO: checking for gettimeofday in -lbsd" >&5 8454echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6 8455if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then 8456 echo $ECHO_N "(cached) $ECHO_C" >&6 8457else 8458 ac_check_lib_save_LIBS=$LIBS 8459LIBS="-lbsd $LIBS" 8460cat >conftest.$ac_ext <<_ACEOF 8461/* confdefs.h. */ 8462_ACEOF 8463cat confdefs.h >>conftest.$ac_ext 8464cat >>conftest.$ac_ext <<_ACEOF 8465/* end confdefs.h. */ 8466 8467/* Override any gcc2 internal prototype to avoid an error. */ 8468#ifdef __cplusplus 8469extern "C" 8470#endif 8471/* We use char because int might match the return type of a gcc2 8472 builtin and then its argument prototype would still apply. */ 8473char gettimeofday (); 8474int 8475main () 8476{ 8477gettimeofday (); 8478 ; 8479 return 0; 8480} 8481_ACEOF 8482rm -f conftest.$ac_objext conftest$ac_exeext 8483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8484 (eval $ac_link) 2>conftest.er1 8485 ac_status=$? 8486 grep -v '^ *+' conftest.er1 >conftest.err 8487 rm -f conftest.er1 8488 cat conftest.err >&5 8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8490 (exit $ac_status); } && 8491 { ac_try='test -z "$ac_c_werror_flag" 8492 || test ! -s conftest.err' 8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8494 (eval $ac_try) 2>&5 8495 ac_status=$? 8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8497 (exit $ac_status); }; } && 8498 { ac_try='test -s conftest$ac_exeext' 8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8500 (eval $ac_try) 2>&5 8501 ac_status=$? 8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8503 (exit $ac_status); }; }; then 8504 ac_cv_lib_bsd_gettimeofday=yes 8505else 8506 echo "$as_me: failed program was:" >&5 8507sed 's/^/| /' conftest.$ac_ext >&5 8508 8509ac_cv_lib_bsd_gettimeofday=no 8510fi 8511rm -f conftest.err conftest.$ac_objext \ 8512 conftest$ac_exeext conftest.$ac_ext 8513LIBS=$ac_check_lib_save_LIBS 8514fi 8515echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gettimeofday" >&5 8516echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6 8517if test $ac_cv_lib_bsd_gettimeofday = yes; then 8518 libbsd=yes 8519else 8520 libbsd=no 8521fi 8522 8523 if test $libbsd = yes; then 8524 MATH_LIBS="$MATH_LIBS -lbsd" 8525 8526cat >>confdefs.h <<\_ACEOF 8527#define USE_DELTA_FOR_TZ 1 8528_ACEOF 8529 8530 fi 8531 ;; 8532 BeOS*) 8533 SHLIB_CFLAGS="-fPIC" 8534 SHLIB_LD="${CC} -nostart" 8535 SHLIB_LD_LIBS='${LIBS}' 8536 SHLIB_SUFFIX=".so" 8537 DL_OBJS="tclLoadDl.o" 8538 DL_LIBS="-ldl" 8539 8540 #----------------------------------------------------------- 8541 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8542 # -lsocket, even if the network functions are in -lnet which 8543 # is always linked to, for compatibility. 8544 #----------------------------------------------------------- 8545 echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8546echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6 8547if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8548 echo $ECHO_N "(cached) $ECHO_C" >&6 8549else 8550 ac_check_lib_save_LIBS=$LIBS 8551LIBS="-lbind $LIBS" 8552cat >conftest.$ac_ext <<_ACEOF 8553/* confdefs.h. */ 8554_ACEOF 8555cat confdefs.h >>conftest.$ac_ext 8556cat >>conftest.$ac_ext <<_ACEOF 8557/* end confdefs.h. */ 8558 8559/* Override any gcc2 internal prototype to avoid an error. */ 8560#ifdef __cplusplus 8561extern "C" 8562#endif 8563/* We use char because int might match the return type of a gcc2 8564 builtin and then its argument prototype would still apply. */ 8565char inet_ntoa (); 8566int 8567main () 8568{ 8569inet_ntoa (); 8570 ; 8571 return 0; 8572} 8573_ACEOF 8574rm -f conftest.$ac_objext conftest$ac_exeext 8575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8576 (eval $ac_link) 2>conftest.er1 8577 ac_status=$? 8578 grep -v '^ *+' conftest.er1 >conftest.err 8579 rm -f conftest.er1 8580 cat conftest.err >&5 8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8582 (exit $ac_status); } && 8583 { ac_try='test -z "$ac_c_werror_flag" 8584 || test ! -s conftest.err' 8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8586 (eval $ac_try) 2>&5 8587 ac_status=$? 8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8589 (exit $ac_status); }; } && 8590 { ac_try='test -s conftest$ac_exeext' 8591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8592 (eval $ac_try) 2>&5 8593 ac_status=$? 8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8595 (exit $ac_status); }; }; then 8596 ac_cv_lib_bind_inet_ntoa=yes 8597else 8598 echo "$as_me: failed program was:" >&5 8599sed 's/^/| /' conftest.$ac_ext >&5 8600 8601ac_cv_lib_bind_inet_ntoa=no 8602fi 8603rm -f conftest.err conftest.$ac_objext \ 8604 conftest$ac_exeext conftest.$ac_ext 8605LIBS=$ac_check_lib_save_LIBS 8606fi 8607echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8608echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6 8609if test $ac_cv_lib_bind_inet_ntoa = yes; then 8610 LIBS="$LIBS -lbind -lsocket" 8611fi 8612 8613 ;; 8614 BSD/OS-2.1*|BSD/OS-3*) 8615 SHLIB_CFLAGS="" 8616 SHLIB_LD="shlicc -r" 8617 SHLIB_LD_LIBS='${LIBS}' 8618 SHLIB_SUFFIX=".so" 8619 DL_OBJS="tclLoadDl.o" 8620 DL_LIBS="-ldl" 8621 CC_SEARCH_FLAGS="" 8622 LD_SEARCH_FLAGS="" 8623 ;; 8624 BSD/OS-4.*) 8625 SHLIB_CFLAGS="-export-dynamic -fPIC" 8626 SHLIB_LD="cc -shared" 8627 SHLIB_LD_LIBS='${LIBS}' 8628 SHLIB_SUFFIX=".so" 8629 DL_OBJS="tclLoadDl.o" 8630 DL_LIBS="-ldl" 8631 LDFLAGS="$LDFLAGS -export-dynamic" 8632 CC_SEARCH_FLAGS="" 8633 LD_SEARCH_FLAGS="" 8634 ;; 8635 dgux*) 8636 SHLIB_CFLAGS="-K PIC" 8637 SHLIB_LD="cc -G" 8638 SHLIB_LD_LIBS="" 8639 SHLIB_SUFFIX=".so" 8640 DL_OBJS="tclLoadDl.o" 8641 DL_LIBS="-ldl" 8642 CC_SEARCH_FLAGS="" 8643 LD_SEARCH_FLAGS="" 8644 ;; 8645 HP-UX-*.11.*) 8646 # Use updated header definitions where possible 8647 8648cat >>confdefs.h <<\_ACEOF 8649#define _XOPEN_SOURCE_EXTENDED 1 8650_ACEOF 8651 8652 # Needed by Tcl, but not most extensions 8653 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8654 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8655 8656 if test "`uname -m`" = "ia64" ; then 8657 SHLIB_SUFFIX=".so" 8658 else 8659 SHLIB_SUFFIX=".sl" 8660 fi 8661 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8662echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8663if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8664 echo $ECHO_N "(cached) $ECHO_C" >&6 8665else 8666 ac_check_lib_save_LIBS=$LIBS 8667LIBS="-ldld $LIBS" 8668cat >conftest.$ac_ext <<_ACEOF 8669/* confdefs.h. */ 8670_ACEOF 8671cat confdefs.h >>conftest.$ac_ext 8672cat >>conftest.$ac_ext <<_ACEOF 8673/* end confdefs.h. */ 8674 8675/* Override any gcc2 internal prototype to avoid an error. */ 8676#ifdef __cplusplus 8677extern "C" 8678#endif 8679/* We use char because int might match the return type of a gcc2 8680 builtin and then its argument prototype would still apply. */ 8681char shl_load (); 8682int 8683main () 8684{ 8685shl_load (); 8686 ; 8687 return 0; 8688} 8689_ACEOF 8690rm -f conftest.$ac_objext conftest$ac_exeext 8691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8692 (eval $ac_link) 2>conftest.er1 8693 ac_status=$? 8694 grep -v '^ *+' conftest.er1 >conftest.err 8695 rm -f conftest.er1 8696 cat conftest.err >&5 8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8698 (exit $ac_status); } && 8699 { ac_try='test -z "$ac_c_werror_flag" 8700 || test ! -s conftest.err' 8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8702 (eval $ac_try) 2>&5 8703 ac_status=$? 8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8705 (exit $ac_status); }; } && 8706 { ac_try='test -s conftest$ac_exeext' 8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8708 (eval $ac_try) 2>&5 8709 ac_status=$? 8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8711 (exit $ac_status); }; }; then 8712 ac_cv_lib_dld_shl_load=yes 8713else 8714 echo "$as_me: failed program was:" >&5 8715sed 's/^/| /' conftest.$ac_ext >&5 8716 8717ac_cv_lib_dld_shl_load=no 8718fi 8719rm -f conftest.err conftest.$ac_objext \ 8720 conftest$ac_exeext conftest.$ac_ext 8721LIBS=$ac_check_lib_save_LIBS 8722fi 8723echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8724echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8725if test $ac_cv_lib_dld_shl_load = yes; then 8726 tcl_ok=yes 8727else 8728 tcl_ok=no 8729fi 8730 8731 if test "$tcl_ok" = yes; then 8732 SHLIB_CFLAGS="+z" 8733 SHLIB_LD="ld -b" 8734 SHLIB_LD_LIBS='${LIBS}' 8735 DL_OBJS="tclLoadShl.o" 8736 DL_LIBS="-ldld" 8737 LDFLAGS="$LDFLAGS -Wl,-E" 8738 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8739 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8740 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8741 fi 8742 if test "$GCC" = "yes" ; then 8743 SHLIB_LD="gcc -shared" 8744 SHLIB_LD_LIBS='${LIBS}' 8745 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8746 fi 8747 8748 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8749 #CFLAGS="$CFLAGS +DAportable" 8750 8751 # Check to enable 64-bit flags for compiler/linker 8752 if test "$do64bit" = "yes" ; then 8753 if test "$GCC" = "yes" ; then 8754 hpux_arch=`${CC} -dumpmachine` 8755 case $hpux_arch in 8756 hppa64*) 8757 # 64-bit gcc in use. Fix flags for GNU ld. 8758 do64bit_ok=yes 8759 SHLIB_LD="${CC} -shared" 8760 SHLIB_LD_LIBS='${LIBS}' 8761 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8762 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8763 ;; 8764 *) 8765 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8766echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8767 ;; 8768 esac 8769 else 8770 do64bit_ok=yes 8771 CFLAGS="$CFLAGS +DD64" 8772 LDFLAGS_ARCH="+DD64" 8773 fi 8774 fi 8775 ;; 8776 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 8777 SHLIB_SUFFIX=".sl" 8778 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8779echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8780if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8781 echo $ECHO_N "(cached) $ECHO_C" >&6 8782else 8783 ac_check_lib_save_LIBS=$LIBS 8784LIBS="-ldld $LIBS" 8785cat >conftest.$ac_ext <<_ACEOF 8786/* confdefs.h. */ 8787_ACEOF 8788cat confdefs.h >>conftest.$ac_ext 8789cat >>conftest.$ac_ext <<_ACEOF 8790/* end confdefs.h. */ 8791 8792/* Override any gcc2 internal prototype to avoid an error. */ 8793#ifdef __cplusplus 8794extern "C" 8795#endif 8796/* We use char because int might match the return type of a gcc2 8797 builtin and then its argument prototype would still apply. */ 8798char shl_load (); 8799int 8800main () 8801{ 8802shl_load (); 8803 ; 8804 return 0; 8805} 8806_ACEOF 8807rm -f conftest.$ac_objext conftest$ac_exeext 8808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8809 (eval $ac_link) 2>conftest.er1 8810 ac_status=$? 8811 grep -v '^ *+' conftest.er1 >conftest.err 8812 rm -f conftest.er1 8813 cat conftest.err >&5 8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8815 (exit $ac_status); } && 8816 { ac_try='test -z "$ac_c_werror_flag" 8817 || test ! -s conftest.err' 8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8819 (eval $ac_try) 2>&5 8820 ac_status=$? 8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8822 (exit $ac_status); }; } && 8823 { ac_try='test -s conftest$ac_exeext' 8824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8825 (eval $ac_try) 2>&5 8826 ac_status=$? 8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8828 (exit $ac_status); }; }; then 8829 ac_cv_lib_dld_shl_load=yes 8830else 8831 echo "$as_me: failed program was:" >&5 8832sed 's/^/| /' conftest.$ac_ext >&5 8833 8834ac_cv_lib_dld_shl_load=no 8835fi 8836rm -f conftest.err conftest.$ac_objext \ 8837 conftest$ac_exeext conftest.$ac_ext 8838LIBS=$ac_check_lib_save_LIBS 8839fi 8840echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8841echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8842if test $ac_cv_lib_dld_shl_load = yes; then 8843 tcl_ok=yes 8844else 8845 tcl_ok=no 8846fi 8847 8848 if test "$tcl_ok" = yes; then 8849 SHLIB_CFLAGS="+z" 8850 SHLIB_LD="ld -b" 8851 SHLIB_LD_LIBS="" 8852 DL_OBJS="tclLoadShl.o" 8853 DL_LIBS="-ldld" 8854 LDFLAGS="$LDFLAGS -Wl,-E" 8855 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8856 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8857 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8858 fi 8859 ;; 8860 IRIX-5.*) 8861 SHLIB_CFLAGS="" 8862 SHLIB_LD="ld -shared -rdata_shared" 8863 SHLIB_LD_LIBS='${LIBS}' 8864 SHLIB_SUFFIX=".so" 8865 DL_OBJS="tclLoadDl.o" 8866 DL_LIBS="" 8867 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8868 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8869 ;; 8870 IRIX-6.*) 8871 SHLIB_CFLAGS="" 8872 SHLIB_LD="ld -n32 -shared -rdata_shared" 8873 SHLIB_LD_LIBS='${LIBS}' 8874 SHLIB_SUFFIX=".so" 8875 DL_OBJS="tclLoadDl.o" 8876 DL_LIBS="" 8877 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8878 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8879 if test "$GCC" = "yes" ; then 8880 CFLAGS="$CFLAGS -mabi=n32" 8881 LDFLAGS="$LDFLAGS -mabi=n32" 8882 else 8883 case $system in 8884 IRIX-6.3) 8885 # Use to build 6.2 compatible binaries on 6.3. 8886 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8887 ;; 8888 *) 8889 CFLAGS="$CFLAGS -n32" 8890 ;; 8891 esac 8892 LDFLAGS="$LDFLAGS -n32" 8893 fi 8894 ;; 8895 IRIX64-6.*) 8896 SHLIB_CFLAGS="" 8897 SHLIB_LD="ld -n32 -shared -rdata_shared" 8898 SHLIB_LD_LIBS='${LIBS}' 8899 SHLIB_SUFFIX=".so" 8900 DL_OBJS="tclLoadDl.o" 8901 DL_LIBS="" 8902 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8903 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8904 8905 # Check to enable 64-bit flags for compiler/linker 8906 8907 if test "$do64bit" = "yes" ; then 8908 if test "$GCC" = "yes" ; then 8909 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8910echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8911 else 8912 do64bit_ok=yes 8913 SHLIB_LD="ld -64 -shared -rdata_shared" 8914 CFLAGS="$CFLAGS -64" 8915 LDFLAGS_ARCH="-64" 8916 fi 8917 fi 8918 ;; 8919 Linux*) 8920 SHLIB_CFLAGS="-fPIC" 8921 SHLIB_LD_LIBS='${LIBS}' 8922 SHLIB_SUFFIX=".so" 8923 8924 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8925 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings 8926 # when you inline the string and math operations. Turn this off to 8927 # get rid of the warnings. 8928 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 8929 8930 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS here: 8931 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8932 DL_OBJS="tclLoadDl.o" 8933 DL_LIBS="-ldl" 8934 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8935 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8936 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8937 if test "`uname -m`" = "alpha" ; then 8938 CFLAGS="$CFLAGS -mieee" 8939 fi 8940 if test $do64bit = yes; then 8941 echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8942echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6 8943if test "${tcl_cv_cc_m64+set}" = set; then 8944 echo $ECHO_N "(cached) $ECHO_C" >&6 8945else 8946 8947 hold_cflags=$CFLAGS 8948 CFLAGS="$CFLAGS -m64" 8949 cat >conftest.$ac_ext <<_ACEOF 8950/* confdefs.h. */ 8951_ACEOF 8952cat confdefs.h >>conftest.$ac_ext 8953cat >>conftest.$ac_ext <<_ACEOF 8954/* end confdefs.h. */ 8955 8956int 8957main () 8958{ 8959 8960 ; 8961 return 0; 8962} 8963_ACEOF 8964rm -f conftest.$ac_objext conftest$ac_exeext 8965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8966 (eval $ac_link) 2>conftest.er1 8967 ac_status=$? 8968 grep -v '^ *+' conftest.er1 >conftest.err 8969 rm -f conftest.er1 8970 cat conftest.err >&5 8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8972 (exit $ac_status); } && 8973 { ac_try='test -z "$ac_c_werror_flag" 8974 || test ! -s conftest.err' 8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8976 (eval $ac_try) 2>&5 8977 ac_status=$? 8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8979 (exit $ac_status); }; } && 8980 { ac_try='test -s conftest$ac_exeext' 8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8982 (eval $ac_try) 2>&5 8983 ac_status=$? 8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8985 (exit $ac_status); }; }; then 8986 tcl_cv_cc_m64=yes 8987else 8988 echo "$as_me: failed program was:" >&5 8989sed 's/^/| /' conftest.$ac_ext >&5 8990 8991tcl_cv_cc_m64=no 8992fi 8993rm -f conftest.err conftest.$ac_objext \ 8994 conftest$ac_exeext conftest.$ac_ext 8995 CFLAGS=$hold_cflags 8996fi 8997echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8998echo "${ECHO_T}$tcl_cv_cc_m64" >&6 8999 if test $tcl_cv_cc_m64 = yes; then 9000 CFLAGS="$CFLAGS -m64" 9001 do64bit_ok=yes 9002 fi 9003 fi 9004 9005 # The combo of gcc + glibc has a bug related 9006 # to inlining of functions like strtod(). The 9007 # -fno-builtin flag should address this problem 9008 # but it does not work. The -fno-inline flag 9009 # is kind of overkill but it works. 9010 # Disable inlining only when one of the 9011 # files in compat/*.c is being linked in. 9012 if test x"${USE_COMPAT}" != x ; then 9013 CFLAGS="$CFLAGS -fno-inline" 9014 fi 9015 9016 ;; 9017 GNU*) 9018 SHLIB_CFLAGS="-fPIC" 9019 SHLIB_LD_LIBS='${LIBS}' 9020 SHLIB_SUFFIX=".so" 9021 9022 SHLIB_LD="${CC} -shared" 9023 DL_OBJS="" 9024 DL_LIBS="-ldl" 9025 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9026 CC_SEARCH_FLAGS="" 9027 LD_SEARCH_FLAGS="" 9028 if test "`uname -m`" = "alpha" ; then 9029 CFLAGS="$CFLAGS -mieee" 9030 fi 9031 ;; 9032 Lynx*) 9033 SHLIB_CFLAGS="-fPIC" 9034 SHLIB_LD_LIBS='${LIBS}' 9035 SHLIB_SUFFIX=".so" 9036 CFLAGS_OPTIMIZE=-02 9037 SHLIB_LD="${CC} -shared " 9038 DL_OBJS="tclLoadDl.o" 9039 DL_LIBS="-mshared -ldl" 9040 LD_FLAGS="-Wl,--export-dynamic" 9041 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9042 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9043 ;; 9044 MP-RAS-02*) 9045 SHLIB_CFLAGS="-K PIC" 9046 SHLIB_LD="cc -G" 9047 SHLIB_LD_LIBS="" 9048 SHLIB_SUFFIX=".so" 9049 DL_OBJS="tclLoadDl.o" 9050 DL_LIBS="-ldl" 9051 CC_SEARCH_FLAGS="" 9052 LD_SEARCH_FLAGS="" 9053 ;; 9054 MP-RAS-*) 9055 SHLIB_CFLAGS="-K PIC" 9056 SHLIB_LD="cc -G" 9057 SHLIB_LD_LIBS="" 9058 SHLIB_SUFFIX=".so" 9059 DL_OBJS="tclLoadDl.o" 9060 DL_LIBS="-ldl" 9061 LDFLAGS="$LDFLAGS -Wl,-Bexport" 9062 CC_SEARCH_FLAGS="" 9063 LD_SEARCH_FLAGS="" 9064 ;; 9065 NetBSD-*|FreeBSD-[1-2].*) 9066 # NetBSD/SPARC needs -fPIC, -fpic will not do. 9067 SHLIB_CFLAGS="-fPIC" 9068 SHLIB_LD="ld -Bshareable -x" 9069 SHLIB_LD_LIBS='${LIBS}' 9070 SHLIB_SUFFIX=".so" 9071 DL_OBJS="tclLoadDl.o" 9072 DL_LIBS="" 9073 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9074 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9075 echo "$as_me:$LINENO: checking for ELF" >&5 9076echo $ECHO_N "checking for ELF... $ECHO_C" >&6 9077if test "${tcl_cv_ld_elf+set}" = set; then 9078 echo $ECHO_N "(cached) $ECHO_C" >&6 9079else 9080 9081 cat >conftest.$ac_ext <<_ACEOF 9082/* confdefs.h. */ 9083_ACEOF 9084cat confdefs.h >>conftest.$ac_ext 9085cat >>conftest.$ac_ext <<_ACEOF 9086/* end confdefs.h. */ 9087 9088#ifdef __ELF__ 9089 yes 9090#endif 9091 9092_ACEOF 9093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9094 $EGREP "yes" >/dev/null 2>&1; then 9095 tcl_cv_ld_elf=yes 9096else 9097 tcl_cv_ld_elf=no 9098fi 9099rm -f conftest* 9100 9101fi 9102echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 9103echo "${ECHO_T}$tcl_cv_ld_elf" >&6 9104 if test $tcl_cv_ld_elf = yes; then 9105 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 9106 else 9107 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 9108 fi 9109 9110 # Ancient FreeBSD doesn't handle version numbers with dots. 9111 9112 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9113 TCL_LIB_VERSIONS_OK=nodots 9114 ;; 9115 OpenBSD-*) 9116 # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do. 9117 case `machine` in 9118 sparc|sparc64) 9119 SHLIB_CFLAGS="-fPIC";; 9120 *) 9121 SHLIB_CFLAGS="-fpic";; 9122 esac 9123 SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}" 9124 SHLIB_LD_LIBS='${LIBS}' 9125 SHLIB_SUFFIX=".so" 9126 DL_OBJS="tclLoadDl.o" 9127 DL_LIBS="" 9128 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9129 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9130 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 9131 echo "$as_me:$LINENO: checking for ELF" >&5 9132echo $ECHO_N "checking for ELF... $ECHO_C" >&6 9133if test "${tcl_cv_ld_elf+set}" = set; then 9134 echo $ECHO_N "(cached) $ECHO_C" >&6 9135else 9136 9137 cat >conftest.$ac_ext <<_ACEOF 9138/* confdefs.h. */ 9139_ACEOF 9140cat confdefs.h >>conftest.$ac_ext 9141cat >>conftest.$ac_ext <<_ACEOF 9142/* end confdefs.h. */ 9143 9144#ifdef __ELF__ 9145 yes 9146#endif 9147 9148_ACEOF 9149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9150 $EGREP "yes" >/dev/null 2>&1; then 9151 tcl_cv_ld_elf=yes 9152else 9153 tcl_cv_ld_elf=no 9154fi 9155rm -f conftest* 9156 9157fi 9158echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 9159echo "${ECHO_T}$tcl_cv_ld_elf" >&6 9160 if test $tcl_cv_ld_elf = yes; then 9161 LDFLAGS=-Wl,-export-dynamic 9162 else 9163 LDFLAGS="" 9164 fi 9165 9166 # OpenBSD doesn't do version numbers with dots. 9167 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9168 TCL_LIB_VERSIONS_OK=nodots 9169 ;; 9170 FreeBSD-*|DragonFly-*) 9171 # FreeBSD 3.* and greater have ELF. 9172 SHLIB_CFLAGS="-fPIC" 9173 SHLIB_LD="ld -Bshareable -x" 9174 SHLIB_LD_LIBS='${LIBS}' 9175 SHLIB_SUFFIX=".so" 9176 DL_OBJS="tclLoadDl.o" 9177 DL_LIBS="" 9178 LDFLAGS="$LDFLAGS -export-dynamic" 9179 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9180 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9181 if test "${TCL_THREADS}" = "1" ; then 9182 # The -pthread needs to go in the CFLAGS, not LIBS 9183 LIBS=`echo $LIBS | sed s/-pthread//` 9184 CFLAGS="$CFLAGS -pthread" 9185 LDFLAGS="$LDFLAGS -pthread" 9186 fi 9187 case $system in 9188 FreeBSD-3.*) 9189 # FreeBSD-3 doesn't handle version numbers with dots. 9190 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9191 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 9192 TCL_LIB_VERSIONS_OK=nodots 9193 ;; 9194 esac 9195 ;; 9196 Darwin-*) 9197 CFLAGS_OPTIMIZE="-Os" 9198 SHLIB_CFLAGS="-fno-common" 9199 # To avoid discrepancies between what headers configure sees during 9200 # preprocessing tests and compiling tests, move any -isysroot and 9201 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 9202 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 9203 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 9204 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 9205 CFLAGS="`echo " ${CFLAGS}" | \ 9206 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 9207 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 9208 if test $do64bit = yes; then 9209 case `arch` in 9210 ppc) 9211 echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 9212echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6 9213if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 9214 echo $ECHO_N "(cached) $ECHO_C" >&6 9215else 9216 9217 hold_cflags=$CFLAGS 9218 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9219 cat >conftest.$ac_ext <<_ACEOF 9220/* confdefs.h. */ 9221_ACEOF 9222cat confdefs.h >>conftest.$ac_ext 9223cat >>conftest.$ac_ext <<_ACEOF 9224/* end confdefs.h. */ 9225 9226int 9227main () 9228{ 9229 9230 ; 9231 return 0; 9232} 9233_ACEOF 9234rm -f conftest.$ac_objext conftest$ac_exeext 9235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9236 (eval $ac_link) 2>conftest.er1 9237 ac_status=$? 9238 grep -v '^ *+' conftest.er1 >conftest.err 9239 rm -f conftest.er1 9240 cat conftest.err >&5 9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9242 (exit $ac_status); } && 9243 { ac_try='test -z "$ac_c_werror_flag" 9244 || test ! -s conftest.err' 9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9246 (eval $ac_try) 2>&5 9247 ac_status=$? 9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9249 (exit $ac_status); }; } && 9250 { ac_try='test -s conftest$ac_exeext' 9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9252 (eval $ac_try) 2>&5 9253 ac_status=$? 9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9255 (exit $ac_status); }; }; then 9256 tcl_cv_cc_arch_ppc64=yes 9257else 9258 echo "$as_me: failed program was:" >&5 9259sed 's/^/| /' conftest.$ac_ext >&5 9260 9261tcl_cv_cc_arch_ppc64=no 9262fi 9263rm -f conftest.err conftest.$ac_objext \ 9264 conftest$ac_exeext conftest.$ac_ext 9265 CFLAGS=$hold_cflags 9266fi 9267echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 9268echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6 9269 if test $tcl_cv_cc_arch_ppc64 = yes; then 9270 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9271 do64bit_ok=yes 9272 fi;; 9273 i386) 9274 echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 9275echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6 9276if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 9277 echo $ECHO_N "(cached) $ECHO_C" >&6 9278else 9279 9280 hold_cflags=$CFLAGS 9281 CFLAGS="$CFLAGS -arch x86_64" 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 9289int 9290main () 9291{ 9292 9293 ; 9294 return 0; 9295} 9296_ACEOF 9297rm -f conftest.$ac_objext conftest$ac_exeext 9298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9299 (eval $ac_link) 2>conftest.er1 9300 ac_status=$? 9301 grep -v '^ *+' conftest.er1 >conftest.err 9302 rm -f conftest.er1 9303 cat conftest.err >&5 9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9305 (exit $ac_status); } && 9306 { ac_try='test -z "$ac_c_werror_flag" 9307 || test ! -s conftest.err' 9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9309 (eval $ac_try) 2>&5 9310 ac_status=$? 9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9312 (exit $ac_status); }; } && 9313 { ac_try='test -s conftest$ac_exeext' 9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9315 (eval $ac_try) 2>&5 9316 ac_status=$? 9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9318 (exit $ac_status); }; }; then 9319 tcl_cv_cc_arch_x86_64=yes 9320else 9321 echo "$as_me: failed program was:" >&5 9322sed 's/^/| /' conftest.$ac_ext >&5 9323 9324tcl_cv_cc_arch_x86_64=no 9325fi 9326rm -f conftest.err conftest.$ac_objext \ 9327 conftest$ac_exeext conftest.$ac_ext 9328 CFLAGS=$hold_cflags 9329fi 9330echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 9331echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6 9332 if test $tcl_cv_cc_arch_x86_64 = yes; then 9333 CFLAGS="$CFLAGS -arch x86_64" 9334 do64bit_ok=yes 9335 fi;; 9336 *) 9337 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 9338echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 9339 esac 9340 else 9341 # Check for combined 32-bit and 64-bit fat build 9342 echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \ 9343 echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \ 9344 fat_32_64=yes 9345 fi 9346 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS here: 9347 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 9348 echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 9349echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6 9350if test "${tcl_cv_ld_single_module+set}" = set; then 9351 echo $ECHO_N "(cached) $ECHO_C" >&6 9352else 9353 9354 hold_ldflags=$LDFLAGS 9355 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 9356 cat >conftest.$ac_ext <<_ACEOF 9357/* confdefs.h. */ 9358_ACEOF 9359cat confdefs.h >>conftest.$ac_ext 9360cat >>conftest.$ac_ext <<_ACEOF 9361/* end confdefs.h. */ 9362 9363int 9364main () 9365{ 9366int i; 9367 ; 9368 return 0; 9369} 9370_ACEOF 9371rm -f conftest.$ac_objext conftest$ac_exeext 9372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9373 (eval $ac_link) 2>conftest.er1 9374 ac_status=$? 9375 grep -v '^ *+' conftest.er1 >conftest.err 9376 rm -f conftest.er1 9377 cat conftest.err >&5 9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9379 (exit $ac_status); } && 9380 { ac_try='test -z "$ac_c_werror_flag" 9381 || test ! -s conftest.err' 9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9383 (eval $ac_try) 2>&5 9384 ac_status=$? 9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9386 (exit $ac_status); }; } && 9387 { ac_try='test -s conftest$ac_exeext' 9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9389 (eval $ac_try) 2>&5 9390 ac_status=$? 9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9392 (exit $ac_status); }; }; then 9393 tcl_cv_ld_single_module=yes 9394else 9395 echo "$as_me: failed program was:" >&5 9396sed 's/^/| /' conftest.$ac_ext >&5 9397 9398tcl_cv_ld_single_module=no 9399fi 9400rm -f conftest.err conftest.$ac_objext \ 9401 conftest$ac_exeext conftest.$ac_ext 9402 LDFLAGS=$hold_ldflags 9403fi 9404echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 9405echo "${ECHO_T}$tcl_cv_ld_single_module" >&6 9406 if test $tcl_cv_ld_single_module = yes; then 9407 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 9408 fi 9409 SHLIB_LD_LIBS='${LIBS}' 9410 SHLIB_SUFFIX=".dylib" 9411 DL_OBJS="tclLoadDyld.o" 9412 DL_LIBS="" 9413 # Don't use -prebind when building for Mac OS X 10.4 or later only: 9414 test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 9415 "`echo "${CFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \ 9416 LDFLAGS="$LDFLAGS -prebind" 9417 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 9418 echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 9419echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6 9420if test "${tcl_cv_ld_search_paths_first+set}" = set; then 9421 echo $ECHO_N "(cached) $ECHO_C" >&6 9422else 9423 9424 hold_ldflags=$LDFLAGS 9425 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9426 cat >conftest.$ac_ext <<_ACEOF 9427/* confdefs.h. */ 9428_ACEOF 9429cat confdefs.h >>conftest.$ac_ext 9430cat >>conftest.$ac_ext <<_ACEOF 9431/* end confdefs.h. */ 9432 9433int 9434main () 9435{ 9436int i; 9437 ; 9438 return 0; 9439} 9440_ACEOF 9441rm -f conftest.$ac_objext conftest$ac_exeext 9442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9443 (eval $ac_link) 2>conftest.er1 9444 ac_status=$? 9445 grep -v '^ *+' conftest.er1 >conftest.err 9446 rm -f conftest.er1 9447 cat conftest.err >&5 9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9449 (exit $ac_status); } && 9450 { ac_try='test -z "$ac_c_werror_flag" 9451 || test ! -s conftest.err' 9452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9453 (eval $ac_try) 2>&5 9454 ac_status=$? 9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9456 (exit $ac_status); }; } && 9457 { ac_try='test -s conftest$ac_exeext' 9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9459 (eval $ac_try) 2>&5 9460 ac_status=$? 9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9462 (exit $ac_status); }; }; then 9463 tcl_cv_ld_search_paths_first=yes 9464else 9465 echo "$as_me: failed program was:" >&5 9466sed 's/^/| /' conftest.$ac_ext >&5 9467 9468tcl_cv_ld_search_paths_first=no 9469fi 9470rm -f conftest.err conftest.$ac_objext \ 9471 conftest$ac_exeext conftest.$ac_ext 9472 LDFLAGS=$hold_ldflags 9473fi 9474echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9475echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6 9476 if test $tcl_cv_ld_search_paths_first = yes; then 9477 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9478 fi 9479 CC_SEARCH_FLAGS="" 9480 LD_SEARCH_FLAGS="" 9481 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9482 9483 # TEA specific: for Tk extensions, remove 64-bit arch flags from 9484 # CFLAGS for combined 32-bit and 64-bit fat builds as neither TkAqua 9485 # nor TkX11 can be built for 64-bit at present. 9486 test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}" && \ 9487 CFLAGS="`echo "$CFLAGS " | sed -e 's/-arch ppc64 / /g' -e 's/-arch x86_64 / /g'`" 9488 ;; 9489 NEXTSTEP-*) 9490 SHLIB_CFLAGS="" 9491 SHLIB_LD="cc -nostdlib -r" 9492 SHLIB_LD_LIBS="" 9493 SHLIB_SUFFIX=".so" 9494 DL_OBJS="tclLoadNext.o" 9495 DL_LIBS="" 9496 CC_SEARCH_FLAGS="" 9497 LD_SEARCH_FLAGS="" 9498 ;; 9499 OS/390-*) 9500 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9501 9502cat >>confdefs.h <<\_ACEOF 9503#define _OE_SOCKETS 1 9504_ACEOF 9505 9506 ;; 9507 OSF1-1.0|OSF1-1.1|OSF1-1.2) 9508 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 9509 SHLIB_CFLAGS="" 9510 # Hack: make package name same as library name 9511 SHLIB_LD='ld -R -export :' 9512 SHLIB_LD_LIBS="" 9513 SHLIB_SUFFIX=".so" 9514 DL_OBJS="tclLoadOSF.o" 9515 DL_LIBS="" 9516 CC_SEARCH_FLAGS="" 9517 LD_SEARCH_FLAGS="" 9518 ;; 9519 OSF1-1.*) 9520 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 9521 SHLIB_CFLAGS="-fPIC" 9522 if test "$SHARED_BUILD" = "1" ; then 9523 SHLIB_LD="ld -shared" 9524 else 9525 SHLIB_LD="ld -non_shared" 9526 fi 9527 SHLIB_LD_LIBS="" 9528 SHLIB_SUFFIX=".so" 9529 DL_OBJS="tclLoadDl.o" 9530 DL_LIBS="" 9531 CC_SEARCH_FLAGS="" 9532 LD_SEARCH_FLAGS="" 9533 ;; 9534 OSF1-V*) 9535 # Digital OSF/1 9536 SHLIB_CFLAGS="" 9537 if test "$SHARED_BUILD" = "1" ; then 9538 SHLIB_LD='ld -shared -expect_unresolved "*"' 9539 else 9540 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9541 fi 9542 SHLIB_LD_LIBS="" 9543 SHLIB_SUFFIX=".so" 9544 DL_OBJS="tclLoadDl.o" 9545 DL_LIBS="" 9546 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9547 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9548 if test "$GCC" = "yes" ; then 9549 CFLAGS="$CFLAGS -mieee" 9550 else 9551 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9552 fi 9553 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9554 if test "${TCL_THREADS}" = "1" ; then 9555 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9556 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9557 LIBS=`echo $LIBS | sed s/-lpthreads//` 9558 if test "$GCC" = "yes" ; then 9559 LIBS="$LIBS -lpthread -lmach -lexc" 9560 else 9561 CFLAGS="$CFLAGS -pthread" 9562 LDFLAGS="$LDFLAGS -pthread" 9563 fi 9564 fi 9565 9566 ;; 9567 QNX-6*) 9568 # QNX RTP 9569 # This may work for all QNX, but it was only reported for v6. 9570 SHLIB_CFLAGS="-fPIC" 9571 SHLIB_LD="ld -Bshareable -x" 9572 SHLIB_LD_LIBS="" 9573 SHLIB_SUFFIX=".so" 9574 DL_OBJS="tclLoadDl.o" 9575 # dlopen is in -lc on QNX 9576 DL_LIBS="" 9577 CC_SEARCH_FLAGS="" 9578 LD_SEARCH_FLAGS="" 9579 ;; 9580 SCO_SV-3.2*) 9581 # Note, dlopen is available only on SCO 3.2.5 and greater. However, 9582 # this test works, since "uname -s" was non-standard in 3.2.4 and 9583 # below. 9584 if test "$GCC" = "yes" ; then 9585 SHLIB_CFLAGS="-fPIC -melf" 9586 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9587 else 9588 SHLIB_CFLAGS="-Kpic -belf" 9589 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9590 fi 9591 SHLIB_LD="ld -G" 9592 SHLIB_LD_LIBS="" 9593 SHLIB_SUFFIX=".so" 9594 DL_OBJS="tclLoadDl.o" 9595 DL_LIBS="" 9596 CC_SEARCH_FLAGS="" 9597 LD_SEARCH_FLAGS="" 9598 ;; 9599 SINIX*5.4*) 9600 SHLIB_CFLAGS="-K PIC" 9601 SHLIB_LD="cc -G" 9602 SHLIB_LD_LIBS="" 9603 SHLIB_SUFFIX=".so" 9604 DL_OBJS="tclLoadDl.o" 9605 DL_LIBS="-ldl" 9606 CC_SEARCH_FLAGS="" 9607 LD_SEARCH_FLAGS="" 9608 ;; 9609 SunOS-4*) 9610 SHLIB_CFLAGS="-PIC" 9611 SHLIB_LD="ld" 9612 SHLIB_LD_LIBS="" 9613 SHLIB_SUFFIX=".so" 9614 DL_OBJS="tclLoadDl.o" 9615 DL_LIBS="-ldl" 9616 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 9617 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9618 9619 # SunOS can't handle version numbers with dots in them in library 9620 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it 9621 # requires an extra version number at the end of .so file names. 9622 # So, the library has to have a name like libtcl75.so.1.0 9623 9624 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 9625 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9626 TCL_LIB_VERSIONS_OK=nodots 9627 ;; 9628 SunOS-5.[0-6]) 9629 # Careful to not let 5.10+ fall into this case 9630 9631 # Note: If _REENTRANT isn't defined, then Solaris 9632 # won't define thread-safe library routines. 9633 9634 9635cat >>confdefs.h <<\_ACEOF 9636#define _REENTRANT 1 9637_ACEOF 9638 9639 9640cat >>confdefs.h <<\_ACEOF 9641#define _POSIX_PTHREAD_SEMANTICS 1 9642_ACEOF 9643 9644 9645 SHLIB_CFLAGS="-KPIC" 9646 9647 # Note: need the LIBS below, otherwise Tk won't find Tcl's 9648 # symbols when dynamically loaded into tclsh. 9649 9650 SHLIB_LD_LIBS='${LIBS}' 9651 SHLIB_SUFFIX=".so" 9652 DL_OBJS="tclLoadDl.o" 9653 DL_LIBS="-ldl" 9654 if test "$GCC" = "yes" ; then 9655 SHLIB_LD="$CC -shared" 9656 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9657 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9658 else 9659 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9660 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9661 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9662 fi 9663 ;; 9664 SunOS-5*) 9665 # Note: If _REENTRANT isn't defined, then Solaris 9666 # won't define thread-safe library routines. 9667 9668 9669cat >>confdefs.h <<\_ACEOF 9670#define _REENTRANT 1 9671_ACEOF 9672 9673 9674cat >>confdefs.h <<\_ACEOF 9675#define _POSIX_PTHREAD_SEMANTICS 1 9676_ACEOF 9677 9678 9679 SHLIB_CFLAGS="-KPIC" 9680 9681 # Check to enable 64-bit flags for compiler/linker 9682 if test "$do64bit" = "yes" ; then 9683 arch=`isainfo` 9684 if test "$arch" = "sparcv9 sparc" ; then 9685 if test "$GCC" = "yes" ; then 9686 if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then 9687 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9688echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9689 else 9690 do64bit_ok=yes 9691 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9692 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9693 SHLIB_CFLAGS="-fPIC" 9694 fi 9695 else 9696 do64bit_ok=yes 9697 if test "$do64bitVIS" = "yes" ; then 9698 CFLAGS="$CFLAGS -xarch=v9a" 9699 LDFLAGS_ARCH="-xarch=v9a" 9700 else 9701 CFLAGS="$CFLAGS -xarch=v9" 9702 LDFLAGS_ARCH="-xarch=v9" 9703 fi 9704 # Solaris 64 uses this as well 9705 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9706 fi 9707 elif test "$arch" = "amd64 i386" ; then 9708 if test "$GCC" = "yes" ; then 9709 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9710echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 9711 else 9712 do64bit_ok=yes 9713 CFLAGS="$CFLAGS -xarch=amd64" 9714 LDFLAGS="$LDFLAGS -xarch=amd64" 9715 fi 9716 else 9717 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9718echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9719 fi 9720 fi 9721 9722 # Note: need the LIBS below, otherwise Tk won't find Tcl's 9723 # symbols when dynamically loaded into tclsh. 9724 9725 SHLIB_LD_LIBS='${LIBS}' 9726 SHLIB_SUFFIX=".so" 9727 DL_OBJS="tclLoadDl.o" 9728 DL_LIBS="-ldl" 9729 if test "$GCC" = "yes" ; then 9730 SHLIB_LD="$CC -shared" 9731 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9732 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9733 if test "$do64bit_ok" = "yes" ; then 9734 # We need to specify -static-libgcc or we need to 9735 # add the path to the sparv9 libgcc. 9736 # JH: static-libgcc is necessary for core Tcl, but may 9737 # not be necessary for extensions. 9738 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9739 # for finding sparcv9 libgcc, get the regular libgcc 9740 # path, remove so name and append 'sparcv9' 9741 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9742 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9743 fi 9744 else 9745 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9746 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9747 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9748 fi 9749 ;; 9750 UNIX_SV* | UnixWare-5*) 9751 SHLIB_CFLAGS="-KPIC" 9752 SHLIB_LD="cc -G" 9753 SHLIB_LD_LIBS="" 9754 SHLIB_SUFFIX=".so" 9755 DL_OBJS="tclLoadDl.o" 9756 DL_LIBS="-ldl" 9757 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 9758 # that don't grok the -Bexport option. Test that it does. 9759 echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5 9760echo $ECHO_N "checking for ld accepts -Bexport flag... $ECHO_C" >&6 9761if test "${tcl_cv_ld_Bexport+set}" = set; then 9762 echo $ECHO_N "(cached) $ECHO_C" >&6 9763else 9764 9765 hold_ldflags=$LDFLAGS 9766 LDFLAGS="$LDFLAGS -Wl,-Bexport" 9767 cat >conftest.$ac_ext <<_ACEOF 9768/* confdefs.h. */ 9769_ACEOF 9770cat confdefs.h >>conftest.$ac_ext 9771cat >>conftest.$ac_ext <<_ACEOF 9772/* end confdefs.h. */ 9773 9774int 9775main () 9776{ 9777int i; 9778 ; 9779 return 0; 9780} 9781_ACEOF 9782rm -f conftest.$ac_objext conftest$ac_exeext 9783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9784 (eval $ac_link) 2>conftest.er1 9785 ac_status=$? 9786 grep -v '^ *+' conftest.er1 >conftest.err 9787 rm -f conftest.er1 9788 cat conftest.err >&5 9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9790 (exit $ac_status); } && 9791 { ac_try='test -z "$ac_c_werror_flag" 9792 || test ! -s conftest.err' 9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9794 (eval $ac_try) 2>&5 9795 ac_status=$? 9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9797 (exit $ac_status); }; } && 9798 { ac_try='test -s conftest$ac_exeext' 9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9800 (eval $ac_try) 2>&5 9801 ac_status=$? 9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9803 (exit $ac_status); }; }; then 9804 tcl_cv_ld_Bexport=yes 9805else 9806 echo "$as_me: failed program was:" >&5 9807sed 's/^/| /' conftest.$ac_ext >&5 9808 9809tcl_cv_ld_Bexport=no 9810fi 9811rm -f conftest.err conftest.$ac_objext \ 9812 conftest$ac_exeext conftest.$ac_ext 9813 LDFLAGS=$hold_ldflags 9814fi 9815echo "$as_me:$LINENO: result: $tcl_cv_ld_Bexport" >&5 9816echo "${ECHO_T}$tcl_cv_ld_Bexport" >&6 9817 if test $tcl_cv_ld_Bexport = yes; then 9818 LDFLAGS="$LDFLAGS -Wl,-Bexport" 9819 fi 9820 CC_SEARCH_FLAGS="" 9821 LD_SEARCH_FLAGS="" 9822 ;; 9823 esac 9824 9825 if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then 9826 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9827echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9828 fi 9829 9830 9831 9832 # Step 4: disable dynamic loading if requested via a command-line switch. 9833 9834 # Check whether --enable-load or --disable-load was given. 9835if test "${enable_load+set}" = set; then 9836 enableval="$enable_load" 9837 tcl_ok=$enableval 9838else 9839 tcl_ok=yes 9840fi; 9841 if test "$tcl_ok" = "no"; then 9842 DL_OBJS="" 9843 fi 9844 9845 if test "x$DL_OBJS" != "x" ; then 9846 BUILD_DLTEST="\$(DLTEST_TARGETS)" 9847 else 9848 echo "Can't figure out how to do dynamic loading or shared libraries" 9849 echo "on this system." 9850 SHLIB_CFLAGS="" 9851 SHLIB_LD="" 9852 SHLIB_SUFFIX="" 9853 DL_OBJS="tclLoadNone.o" 9854 DL_LIBS="" 9855 LDFLAGS="$LDFLAGS_ORIG" 9856 CC_SEARCH_FLAGS="" 9857 LD_SEARCH_FLAGS="" 9858 BUILD_DLTEST="" 9859 fi 9860 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9861 9862 # If we're running gcc, then change the C flags for compiling shared 9863 # libraries to the right flags for gcc, instead of those for the 9864 # standard manufacturer compiler. 9865 9866 if test "$DL_OBJS" != "tclLoadNone.o" ; then 9867 if test "$GCC" = "yes" ; then 9868 case $system in 9869 AIX-*) 9870 ;; 9871 BSD/OS*) 9872 ;; 9873 IRIX*) 9874 ;; 9875 NetBSD-*|FreeBSD-*|DragonFly-*) 9876 ;; 9877 Darwin-*) 9878 ;; 9879 SCO_SV-3.2*) 9880 ;; 9881 windows) 9882 ;; 9883 *) 9884 SHLIB_CFLAGS="-fPIC" 9885 ;; 9886 esac 9887 fi 9888 fi 9889 9890 if test "$SHARED_LIB_SUFFIX" = "" ; then 9891 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9892 fi 9893 if test "$UNSHARED_LIB_SUFFIX" = "" ; then 9894 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9895 fi 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 # These must be called after we do the basic CFLAGS checks and 9912 # verify any possible 64-bit or similar switches are necessary 9913 9914 echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9915echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6 9916 tcl_flags="" 9917 9918 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9919 echo $ECHO_N "(cached) $ECHO_C" >&6 9920else 9921 cat >conftest.$ac_ext <<_ACEOF 9922/* confdefs.h. */ 9923_ACEOF 9924cat confdefs.h >>conftest.$ac_ext 9925cat >>conftest.$ac_ext <<_ACEOF 9926/* end confdefs.h. */ 9927#include <stdlib.h> 9928int 9929main () 9930{ 9931char *p = (char *)strtoll; char *q = (char *)strtoull; 9932 ; 9933 return 0; 9934} 9935_ACEOF 9936rm -f conftest.$ac_objext 9937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9938 (eval $ac_compile) 2>conftest.er1 9939 ac_status=$? 9940 grep -v '^ *+' conftest.er1 >conftest.err 9941 rm -f conftest.er1 9942 cat conftest.err >&5 9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9944 (exit $ac_status); } && 9945 { ac_try='test -z "$ac_c_werror_flag" 9946 || test ! -s conftest.err' 9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9948 (eval $ac_try) 2>&5 9949 ac_status=$? 9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9951 (exit $ac_status); }; } && 9952 { ac_try='test -s conftest.$ac_objext' 9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9954 (eval $ac_try) 2>&5 9955 ac_status=$? 9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9957 (exit $ac_status); }; }; then 9958 tcl_cv_flag__isoc99_source=no 9959else 9960 echo "$as_me: failed program was:" >&5 9961sed 's/^/| /' conftest.$ac_ext >&5 9962 9963cat >conftest.$ac_ext <<_ACEOF 9964/* confdefs.h. */ 9965_ACEOF 9966cat confdefs.h >>conftest.$ac_ext 9967cat >>conftest.$ac_ext <<_ACEOF 9968/* end confdefs.h. */ 9969#define _ISOC99_SOURCE 1 9970#include <stdlib.h> 9971int 9972main () 9973{ 9974char *p = (char *)strtoll; char *q = (char *)strtoull; 9975 ; 9976 return 0; 9977} 9978_ACEOF 9979rm -f conftest.$ac_objext 9980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9981 (eval $ac_compile) 2>conftest.er1 9982 ac_status=$? 9983 grep -v '^ *+' conftest.er1 >conftest.err 9984 rm -f conftest.er1 9985 cat conftest.err >&5 9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9987 (exit $ac_status); } && 9988 { ac_try='test -z "$ac_c_werror_flag" 9989 || test ! -s conftest.err' 9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9991 (eval $ac_try) 2>&5 9992 ac_status=$? 9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9994 (exit $ac_status); }; } && 9995 { ac_try='test -s conftest.$ac_objext' 9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9997 (eval $ac_try) 2>&5 9998 ac_status=$? 9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10000 (exit $ac_status); }; }; then 10001 tcl_cv_flag__isoc99_source=yes 10002else 10003 echo "$as_me: failed program was:" >&5 10004sed 's/^/| /' conftest.$ac_ext >&5 10005 10006tcl_cv_flag__isoc99_source=no 10007fi 10008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10009fi 10010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10011fi 10012 10013 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 10014 10015cat >>confdefs.h <<\_ACEOF 10016#define _ISOC99_SOURCE 1 10017_ACEOF 10018 10019 tcl_flags="$tcl_flags _ISOC99_SOURCE" 10020 fi 10021 10022 10023 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 10024 echo $ECHO_N "(cached) $ECHO_C" >&6 10025else 10026 cat >conftest.$ac_ext <<_ACEOF 10027/* confdefs.h. */ 10028_ACEOF 10029cat confdefs.h >>conftest.$ac_ext 10030cat >>conftest.$ac_ext <<_ACEOF 10031/* end confdefs.h. */ 10032#include <sys/stat.h> 10033int 10034main () 10035{ 10036struct stat64 buf; int i = stat64("/", &buf); 10037 ; 10038 return 0; 10039} 10040_ACEOF 10041rm -f conftest.$ac_objext 10042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10043 (eval $ac_compile) 2>conftest.er1 10044 ac_status=$? 10045 grep -v '^ *+' conftest.er1 >conftest.err 10046 rm -f conftest.er1 10047 cat conftest.err >&5 10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10049 (exit $ac_status); } && 10050 { ac_try='test -z "$ac_c_werror_flag" 10051 || test ! -s conftest.err' 10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10053 (eval $ac_try) 2>&5 10054 ac_status=$? 10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10056 (exit $ac_status); }; } && 10057 { ac_try='test -s conftest.$ac_objext' 10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10059 (eval $ac_try) 2>&5 10060 ac_status=$? 10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10062 (exit $ac_status); }; }; then 10063 tcl_cv_flag__largefile64_source=no 10064else 10065 echo "$as_me: failed program was:" >&5 10066sed 's/^/| /' conftest.$ac_ext >&5 10067 10068cat >conftest.$ac_ext <<_ACEOF 10069/* confdefs.h. */ 10070_ACEOF 10071cat confdefs.h >>conftest.$ac_ext 10072cat >>conftest.$ac_ext <<_ACEOF 10073/* end confdefs.h. */ 10074#define _LARGEFILE64_SOURCE 1 10075#include <sys/stat.h> 10076int 10077main () 10078{ 10079struct stat64 buf; int i = stat64("/", &buf); 10080 ; 10081 return 0; 10082} 10083_ACEOF 10084rm -f conftest.$ac_objext 10085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10086 (eval $ac_compile) 2>conftest.er1 10087 ac_status=$? 10088 grep -v '^ *+' conftest.er1 >conftest.err 10089 rm -f conftest.er1 10090 cat conftest.err >&5 10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10092 (exit $ac_status); } && 10093 { ac_try='test -z "$ac_c_werror_flag" 10094 || test ! -s conftest.err' 10095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10096 (eval $ac_try) 2>&5 10097 ac_status=$? 10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10099 (exit $ac_status); }; } && 10100 { ac_try='test -s conftest.$ac_objext' 10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10102 (eval $ac_try) 2>&5 10103 ac_status=$? 10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10105 (exit $ac_status); }; }; then 10106 tcl_cv_flag__largefile64_source=yes 10107else 10108 echo "$as_me: failed program was:" >&5 10109sed 's/^/| /' conftest.$ac_ext >&5 10110 10111tcl_cv_flag__largefile64_source=no 10112fi 10113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10114fi 10115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10116fi 10117 10118 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 10119 10120cat >>confdefs.h <<\_ACEOF 10121#define _LARGEFILE64_SOURCE 1 10122_ACEOF 10123 10124 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 10125 fi 10126 10127 10128 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 10129 echo $ECHO_N "(cached) $ECHO_C" >&6 10130else 10131 cat >conftest.$ac_ext <<_ACEOF 10132/* confdefs.h. */ 10133_ACEOF 10134cat confdefs.h >>conftest.$ac_ext 10135cat >>conftest.$ac_ext <<_ACEOF 10136/* end confdefs.h. */ 10137#include <sys/stat.h> 10138int 10139main () 10140{ 10141char *p = (char *)open64; 10142 ; 10143 return 0; 10144} 10145_ACEOF 10146rm -f conftest.$ac_objext 10147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10148 (eval $ac_compile) 2>conftest.er1 10149 ac_status=$? 10150 grep -v '^ *+' conftest.er1 >conftest.err 10151 rm -f conftest.er1 10152 cat conftest.err >&5 10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10154 (exit $ac_status); } && 10155 { ac_try='test -z "$ac_c_werror_flag" 10156 || test ! -s conftest.err' 10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10158 (eval $ac_try) 2>&5 10159 ac_status=$? 10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10161 (exit $ac_status); }; } && 10162 { ac_try='test -s conftest.$ac_objext' 10163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10164 (eval $ac_try) 2>&5 10165 ac_status=$? 10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10167 (exit $ac_status); }; }; then 10168 tcl_cv_flag__largefile_source64=no 10169else 10170 echo "$as_me: failed program was:" >&5 10171sed 's/^/| /' conftest.$ac_ext >&5 10172 10173cat >conftest.$ac_ext <<_ACEOF 10174/* confdefs.h. */ 10175_ACEOF 10176cat confdefs.h >>conftest.$ac_ext 10177cat >>conftest.$ac_ext <<_ACEOF 10178/* end confdefs.h. */ 10179#define _LARGEFILE_SOURCE64 1 10180#include <sys/stat.h> 10181int 10182main () 10183{ 10184char *p = (char *)open64; 10185 ; 10186 return 0; 10187} 10188_ACEOF 10189rm -f conftest.$ac_objext 10190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10191 (eval $ac_compile) 2>conftest.er1 10192 ac_status=$? 10193 grep -v '^ *+' conftest.er1 >conftest.err 10194 rm -f conftest.er1 10195 cat conftest.err >&5 10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10197 (exit $ac_status); } && 10198 { ac_try='test -z "$ac_c_werror_flag" 10199 || test ! -s conftest.err' 10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10201 (eval $ac_try) 2>&5 10202 ac_status=$? 10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10204 (exit $ac_status); }; } && 10205 { ac_try='test -s conftest.$ac_objext' 10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10207 (eval $ac_try) 2>&5 10208 ac_status=$? 10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10210 (exit $ac_status); }; }; then 10211 tcl_cv_flag__largefile_source64=yes 10212else 10213 echo "$as_me: failed program was:" >&5 10214sed 's/^/| /' conftest.$ac_ext >&5 10215 10216tcl_cv_flag__largefile_source64=no 10217fi 10218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10219fi 10220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10221fi 10222 10223 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 10224 10225cat >>confdefs.h <<\_ACEOF 10226#define _LARGEFILE_SOURCE64 1 10227_ACEOF 10228 10229 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 10230 fi 10231 10232 if test "x${tcl_flags}" = "x" ; then 10233 echo "$as_me:$LINENO: result: none" >&5 10234echo "${ECHO_T}none" >&6 10235 else 10236 echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 10237echo "${ECHO_T}${tcl_flags}" >&6 10238 fi 10239 10240 10241 echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 10242echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6 10243 if test "${tcl_cv_type_64bit+set}" = set; then 10244 echo $ECHO_N "(cached) $ECHO_C" >&6 10245else 10246 10247 tcl_cv_type_64bit=none 10248 # See if the compiler knows natively about __int64 10249 cat >conftest.$ac_ext <<_ACEOF 10250/* confdefs.h. */ 10251_ACEOF 10252cat confdefs.h >>conftest.$ac_ext 10253cat >>conftest.$ac_ext <<_ACEOF 10254/* end confdefs.h. */ 10255 10256int 10257main () 10258{ 10259__int64 value = (__int64) 0; 10260 ; 10261 return 0; 10262} 10263_ACEOF 10264rm -f conftest.$ac_objext 10265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10266 (eval $ac_compile) 2>conftest.er1 10267 ac_status=$? 10268 grep -v '^ *+' conftest.er1 >conftest.err 10269 rm -f conftest.er1 10270 cat conftest.err >&5 10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10272 (exit $ac_status); } && 10273 { ac_try='test -z "$ac_c_werror_flag" 10274 || test ! -s conftest.err' 10275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10276 (eval $ac_try) 2>&5 10277 ac_status=$? 10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10279 (exit $ac_status); }; } && 10280 { ac_try='test -s conftest.$ac_objext' 10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10282 (eval $ac_try) 2>&5 10283 ac_status=$? 10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10285 (exit $ac_status); }; }; then 10286 tcl_type_64bit=__int64 10287else 10288 echo "$as_me: failed program was:" >&5 10289sed 's/^/| /' conftest.$ac_ext >&5 10290 10291tcl_type_64bit="long long" 10292fi 10293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10294 # See if we should use long anyway Note that we substitute in the 10295 # type that is our current guess for a 64-bit type inside this check 10296 # program, so it should be modified only carefully... 10297 cat >conftest.$ac_ext <<_ACEOF 10298/* confdefs.h. */ 10299_ACEOF 10300cat confdefs.h >>conftest.$ac_ext 10301cat >>conftest.$ac_ext <<_ACEOF 10302/* end confdefs.h. */ 10303 10304int 10305main () 10306{ 10307switch (0) { 10308 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 10309 } 10310 ; 10311 return 0; 10312} 10313_ACEOF 10314rm -f conftest.$ac_objext 10315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10316 (eval $ac_compile) 2>conftest.er1 10317 ac_status=$? 10318 grep -v '^ *+' conftest.er1 >conftest.err 10319 rm -f conftest.er1 10320 cat conftest.err >&5 10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10322 (exit $ac_status); } && 10323 { ac_try='test -z "$ac_c_werror_flag" 10324 || test ! -s conftest.err' 10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10326 (eval $ac_try) 2>&5 10327 ac_status=$? 10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10329 (exit $ac_status); }; } && 10330 { ac_try='test -s conftest.$ac_objext' 10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10332 (eval $ac_try) 2>&5 10333 ac_status=$? 10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10335 (exit $ac_status); }; }; then 10336 tcl_cv_type_64bit=${tcl_type_64bit} 10337else 10338 echo "$as_me: failed program was:" >&5 10339sed 's/^/| /' conftest.$ac_ext >&5 10340 10341fi 10342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10343fi 10344 10345 if test "${tcl_cv_type_64bit}" = none ; then 10346 10347cat >>confdefs.h <<\_ACEOF 10348#define TCL_WIDE_INT_IS_LONG 1 10349_ACEOF 10350 10351 echo "$as_me:$LINENO: result: using long" >&5 10352echo "${ECHO_T}using long" >&6 10353 elif test "${tcl_cv_type_64bit}" = "__int64" \ 10354 -a "${TEA_PLATFORM}" = "windows" ; then 10355 # We actually want to use the default tcl.h checks in this 10356 # case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 10357 echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 10358echo "${ECHO_T}using Tcl header defaults" >&6 10359 else 10360 10361cat >>confdefs.h <<_ACEOF 10362#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 10363_ACEOF 10364 10365 echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 10366echo "${ECHO_T}${tcl_cv_type_64bit}" >&6 10367 10368 # Now check for auxiliary declarations 10369 echo "$as_me:$LINENO: checking for struct dirent64" >&5 10370echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6 10371if test "${tcl_cv_struct_dirent64+set}" = set; then 10372 echo $ECHO_N "(cached) $ECHO_C" >&6 10373else 10374 10375 cat >conftest.$ac_ext <<_ACEOF 10376/* confdefs.h. */ 10377_ACEOF 10378cat confdefs.h >>conftest.$ac_ext 10379cat >>conftest.$ac_ext <<_ACEOF 10380/* end confdefs.h. */ 10381#include <sys/types.h> 10382#include <sys/dirent.h> 10383int 10384main () 10385{ 10386struct dirent64 p; 10387 ; 10388 return 0; 10389} 10390_ACEOF 10391rm -f conftest.$ac_objext 10392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10393 (eval $ac_compile) 2>conftest.er1 10394 ac_status=$? 10395 grep -v '^ *+' conftest.er1 >conftest.err 10396 rm -f conftest.er1 10397 cat conftest.err >&5 10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10399 (exit $ac_status); } && 10400 { ac_try='test -z "$ac_c_werror_flag" 10401 || test ! -s conftest.err' 10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10403 (eval $ac_try) 2>&5 10404 ac_status=$? 10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10406 (exit $ac_status); }; } && 10407 { ac_try='test -s conftest.$ac_objext' 10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10409 (eval $ac_try) 2>&5 10410 ac_status=$? 10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10412 (exit $ac_status); }; }; then 10413 tcl_cv_struct_dirent64=yes 10414else 10415 echo "$as_me: failed program was:" >&5 10416sed 's/^/| /' conftest.$ac_ext >&5 10417 10418tcl_cv_struct_dirent64=no 10419fi 10420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10421fi 10422echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10423echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6 10424 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10425 10426cat >>confdefs.h <<\_ACEOF 10427#define HAVE_STRUCT_DIRENT64 1 10428_ACEOF 10429 10430 fi 10431 10432 echo "$as_me:$LINENO: checking for struct stat64" >&5 10433echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6 10434if test "${tcl_cv_struct_stat64+set}" = set; then 10435 echo $ECHO_N "(cached) $ECHO_C" >&6 10436else 10437 10438 cat >conftest.$ac_ext <<_ACEOF 10439/* confdefs.h. */ 10440_ACEOF 10441cat confdefs.h >>conftest.$ac_ext 10442cat >>conftest.$ac_ext <<_ACEOF 10443/* end confdefs.h. */ 10444#include <sys/stat.h> 10445int 10446main () 10447{ 10448struct stat64 p; 10449 10450 ; 10451 return 0; 10452} 10453_ACEOF 10454rm -f conftest.$ac_objext 10455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10456 (eval $ac_compile) 2>conftest.er1 10457 ac_status=$? 10458 grep -v '^ *+' conftest.er1 >conftest.err 10459 rm -f conftest.er1 10460 cat conftest.err >&5 10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10462 (exit $ac_status); } && 10463 { ac_try='test -z "$ac_c_werror_flag" 10464 || test ! -s conftest.err' 10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10466 (eval $ac_try) 2>&5 10467 ac_status=$? 10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10469 (exit $ac_status); }; } && 10470 { ac_try='test -s conftest.$ac_objext' 10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10472 (eval $ac_try) 2>&5 10473 ac_status=$? 10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10475 (exit $ac_status); }; }; then 10476 tcl_cv_struct_stat64=yes 10477else 10478 echo "$as_me: failed program was:" >&5 10479sed 's/^/| /' conftest.$ac_ext >&5 10480 10481tcl_cv_struct_stat64=no 10482fi 10483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10484fi 10485echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10486echo "${ECHO_T}$tcl_cv_struct_stat64" >&6 10487 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10488 10489cat >>confdefs.h <<\_ACEOF 10490#define HAVE_STRUCT_STAT64 1 10491_ACEOF 10492 10493 fi 10494 10495 10496 10497for ac_func in open64 lseek64 10498do 10499as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10500echo "$as_me:$LINENO: checking for $ac_func" >&5 10501echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10502if eval "test \"\${$as_ac_var+set}\" = set"; then 10503 echo $ECHO_N "(cached) $ECHO_C" >&6 10504else 10505 cat >conftest.$ac_ext <<_ACEOF 10506/* confdefs.h. */ 10507_ACEOF 10508cat confdefs.h >>conftest.$ac_ext 10509cat >>conftest.$ac_ext <<_ACEOF 10510/* end confdefs.h. */ 10511/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10512 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10513#define $ac_func innocuous_$ac_func 10514 10515/* System header to define __stub macros and hopefully few prototypes, 10516 which can conflict with char $ac_func (); below. 10517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10518 <limits.h> exists even on freestanding compilers. */ 10519 10520#ifdef __STDC__ 10521# include <limits.h> 10522#else 10523# include <assert.h> 10524#endif 10525 10526#undef $ac_func 10527 10528/* Override any gcc2 internal prototype to avoid an error. */ 10529#ifdef __cplusplus 10530extern "C" 10531{ 10532#endif 10533/* We use char because int might match the return type of a gcc2 10534 builtin and then its argument prototype would still apply. */ 10535char $ac_func (); 10536/* The GNU C library defines this for functions which it implements 10537 to always fail with ENOSYS. Some functions are actually named 10538 something starting with __ and the normal name is an alias. */ 10539#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10540choke me 10541#else 10542char (*f) () = $ac_func; 10543#endif 10544#ifdef __cplusplus 10545} 10546#endif 10547 10548int 10549main () 10550{ 10551return f != $ac_func; 10552 ; 10553 return 0; 10554} 10555_ACEOF 10556rm -f conftest.$ac_objext conftest$ac_exeext 10557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10558 (eval $ac_link) 2>conftest.er1 10559 ac_status=$? 10560 grep -v '^ *+' conftest.er1 >conftest.err 10561 rm -f conftest.er1 10562 cat conftest.err >&5 10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10564 (exit $ac_status); } && 10565 { ac_try='test -z "$ac_c_werror_flag" 10566 || test ! -s conftest.err' 10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10568 (eval $ac_try) 2>&5 10569 ac_status=$? 10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10571 (exit $ac_status); }; } && 10572 { ac_try='test -s conftest$ac_exeext' 10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10574 (eval $ac_try) 2>&5 10575 ac_status=$? 10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10577 (exit $ac_status); }; }; then 10578 eval "$as_ac_var=yes" 10579else 10580 echo "$as_me: failed program was:" >&5 10581sed 's/^/| /' conftest.$ac_ext >&5 10582 10583eval "$as_ac_var=no" 10584fi 10585rm -f conftest.err conftest.$ac_objext \ 10586 conftest$ac_exeext conftest.$ac_ext 10587fi 10588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10589echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10590if test `eval echo '${'$as_ac_var'}'` = yes; then 10591 cat >>confdefs.h <<_ACEOF 10592#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10593_ACEOF 10594 10595fi 10596done 10597 10598 echo "$as_me:$LINENO: checking for off64_t" >&5 10599echo $ECHO_N "checking for off64_t... $ECHO_C" >&6 10600 if test "${tcl_cv_type_off64_t+set}" = set; then 10601 echo $ECHO_N "(cached) $ECHO_C" >&6 10602else 10603 10604 cat >conftest.$ac_ext <<_ACEOF 10605/* confdefs.h. */ 10606_ACEOF 10607cat confdefs.h >>conftest.$ac_ext 10608cat >>conftest.$ac_ext <<_ACEOF 10609/* end confdefs.h. */ 10610#include <sys/types.h> 10611int 10612main () 10613{ 10614off64_t offset; 10615 10616 ; 10617 return 0; 10618} 10619_ACEOF 10620rm -f conftest.$ac_objext 10621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10622 (eval $ac_compile) 2>conftest.er1 10623 ac_status=$? 10624 grep -v '^ *+' conftest.er1 >conftest.err 10625 rm -f conftest.er1 10626 cat conftest.err >&5 10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10628 (exit $ac_status); } && 10629 { ac_try='test -z "$ac_c_werror_flag" 10630 || test ! -s conftest.err' 10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10632 (eval $ac_try) 2>&5 10633 ac_status=$? 10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10635 (exit $ac_status); }; } && 10636 { ac_try='test -s conftest.$ac_objext' 10637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10638 (eval $ac_try) 2>&5 10639 ac_status=$? 10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10641 (exit $ac_status); }; }; then 10642 tcl_cv_type_off64_t=yes 10643else 10644 echo "$as_me: failed program was:" >&5 10645sed 's/^/| /' conftest.$ac_ext >&5 10646 10647tcl_cv_type_off64_t=no 10648fi 10649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10650fi 10651 10652 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10653 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10654 test "x${ac_cv_func_open64}" = "xyes" ; then 10655 10656cat >>confdefs.h <<\_ACEOF 10657#define HAVE_TYPE_OFF64_T 1 10658_ACEOF 10659 10660 echo "$as_me:$LINENO: result: yes" >&5 10661echo "${ECHO_T}yes" >&6 10662 else 10663 echo "$as_me:$LINENO: result: no" >&5 10664echo "${ECHO_T}no" >&6 10665 fi 10666 fi 10667 10668 10669 10670#-------------------------------------------------------------------- 10671# Set the default compiler switches based on the --enable-symbols 10672# option. 10673#-------------------------------------------------------------------- 10674 10675 10676 10677 echo "$as_me:$LINENO: checking for build with symbols" >&5 10678echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6 10679 # Check whether --enable-symbols or --disable-symbols was given. 10680if test "${enable_symbols+set}" = set; then 10681 enableval="$enable_symbols" 10682 tcl_ok=$enableval 10683else 10684 tcl_ok=no 10685fi; 10686 DBGX="" 10687 if test "$tcl_ok" = "no"; then 10688 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10689 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10690 echo "$as_me:$LINENO: result: no" >&5 10691echo "${ECHO_T}no" >&6 10692 else 10693 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10694 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10695 if test "$tcl_ok" = "yes"; then 10696 echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10697echo "${ECHO_T}yes (standard debugging)" >&6 10698 fi 10699 fi 10700 if test "${TEA_PLATFORM}" != "windows" ; then 10701 LDFLAGS_DEFAULT="${LDFLAGS}" 10702 fi 10703 10704 10705 10706 10707 10708 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10709 10710cat >>confdefs.h <<\_ACEOF 10711#define TCL_MEM_DEBUG 1 10712_ACEOF 10713 10714 fi 10715 10716 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10717 if test "$tcl_ok" = "all"; then 10718 echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10719echo "${ECHO_T}enabled symbols mem debugging" >&6 10720 else 10721 echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10722echo "${ECHO_T}enabled $tcl_ok debugging" >&6 10723 fi 10724 fi 10725 10726 10727#-------------------------------------------------------------------- 10728# Everyone should be linking against the Tcl stub library. If you 10729# can't for some reason, remove this definition. If you aren't using 10730# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10731# link against the non-stubbed Tcl library. 10732#-------------------------------------------------------------------- 10733 10734cat >>confdefs.h <<\_ACEOF 10735#define USE_TCL_STUBS 1 10736_ACEOF 10737 10738cat >>confdefs.h <<\_ACEOF 10739#define USE_TK_STUBS 1 10740_ACEOF 10741 10742 10743#-------------------------------------------------------------------- 10744# This macro generates a line to use when building a library. It 10745# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10746# and TEA_LOAD_TCLCONFIG macros above. 10747#-------------------------------------------------------------------- 10748 10749 10750 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10751 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10752 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10753 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 10754 else 10755 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 10756 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 10757 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 10758 fi 10759 10760 if test "${SHARED_BUILD}" = "1" ; then 10761 MAKE_LIB="${MAKE_SHARED_LIB} " 10762 else 10763 MAKE_LIB="${MAKE_STATIC_LIB} " 10764 fi 10765 10766 #-------------------------------------------------------------------- 10767 # Shared libraries and static libraries have different names. 10768 # Use the double eval to make sure any variables in the suffix is 10769 # substituted. (@@@ Might not be necessary anymore) 10770 #-------------------------------------------------------------------- 10771 10772 if test "${TEA_PLATFORM}" = "windows" ; then 10773 if test "${SHARED_BUILD}" = "1" ; then 10774 # We force the unresolved linking of symbols that are really in 10775 # the private libraries of Tcl and Tk. 10776 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 10777 if test x"${TK_BIN_DIR}" != x ; then 10778 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 10779 fi 10780 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10781 else 10782 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10783 fi 10784 # Some packages build their own stubs libraries 10785 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10786 if test "$GCC" = "yes"; then 10787 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 10788 fi 10789 # These aren't needed on Windows (either MSVC or gcc) 10790 RANLIB=: 10791 RANLIB_STUB=: 10792 else 10793 RANLIB_STUB="${RANLIB}" 10794 if test "${SHARED_BUILD}" = "1" ; then 10795 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 10796 if test x"${TK_BIN_DIR}" != x ; then 10797 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 10798 fi 10799 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10800 RANLIB=: 10801 else 10802 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10803 fi 10804 # Some packages build their own stubs libraries 10805 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10806 fi 10807 10808 # These are escaped so that only CFLAGS is picked up at configure time. 10809 # The other values will be substituted at make time. 10810 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 10811 if test "${SHARED_BUILD}" = "1" ; then 10812 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 10813 fi 10814 10815 10816 10817 10818 10819 10820 10821 10822#-------------------------------------------------------------------- 10823# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 10824# file during the install process. Don't run the TCLSH_PROG through 10825# ${CYGPATH} because it's being used directly by make. 10826# Require that we use a tclsh shell version 8.2 or later since earlier 10827# versions have bugs in the pkg_mkIndex routine. 10828#-------------------------------------------------------------------- 10829 10830 10831 echo "$as_me:$LINENO: checking for tclsh" >&5 10832echo $ECHO_N "checking for tclsh... $ECHO_C" >&6 10833 if test -f "${TCL_BIN_DIR}/Makefile" ; then 10834 # tclConfig.sh is in Tcl build directory 10835 if test "${TEA_PLATFORM}" = "windows"; then 10836 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10837 else 10838 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 10839 fi 10840 else 10841 # tclConfig.sh is in install location 10842 if test "${TEA_PLATFORM}" = "windows"; then 10843 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10844 else 10845 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 10846 fi 10847 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 10848 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 10849 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 10850 for i in $list ; do 10851 if test -f "$i/${TCLSH_PROG}" ; then 10852 REAL_TCL_BIN_DIR="`cd "$i"; pwd`" 10853 break 10854 fi 10855 done 10856 TCLSH_PROG="${REAL_TCL_BIN_DIR}/${TCLSH_PROG}" 10857 fi 10858 echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 10859echo "${ECHO_T}${TCLSH_PROG}" >&6 10860 10861 10862 10863 echo "$as_me:$LINENO: checking for wish" >&5 10864echo $ECHO_N "checking for wish... $ECHO_C" >&6 10865 if test -f "${TK_BIN_DIR}/Makefile" ; then 10866 # tkConfig.sh is in Tk build directory 10867 if test "${TEA_PLATFORM}" = "windows"; then 10868 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 10869 else 10870 WISH_PROG="${TK_BIN_DIR}/wish" 10871 fi 10872 else 10873 # tkConfig.sh is in install location 10874 if test "${TEA_PLATFORM}" = "windows"; then 10875 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 10876 else 10877 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}" 10878 fi 10879 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \ 10880 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \ 10881 `ls -d ${TK_PREFIX}/bin 2>/dev/null`" 10882 for i in $list ; do 10883 if test -f "$i/${WISH_PROG}" ; then 10884 REAL_TK_BIN_DIR="`cd "$i"; pwd`" 10885 break 10886 fi 10887 done 10888 WISH_PROG="${REAL_TK_BIN_DIR}/${WISH_PROG}" 10889 fi 10890 echo "$as_me:$LINENO: result: ${WISH_PROG}" >&5 10891echo "${ECHO_T}${WISH_PROG}" >&6 10892 10893 10894 10895#-------------------------------------------------------------------- 10896# Finally, substitute all of the various values into the Makefile. 10897#-------------------------------------------------------------------- 10898 10899 ac_config_files="$ac_config_files Makefile" 10900cat >confcache <<\_ACEOF 10901# This file is a shell script that caches the results of configure 10902# tests run on this system so they can be shared between configure 10903# scripts and configure runs, see configure's option --config-cache. 10904# It is not useful on other systems. If it contains results you don't 10905# want to keep, you may remove or edit it. 10906# 10907# config.status only pays attention to the cache file if you give it 10908# the --recheck option to rerun configure. 10909# 10910# `ac_cv_env_foo' variables (set or unset) will be overridden when 10911# loading this file, other *unset* `ac_cv_foo' will be assigned the 10912# following values. 10913 10914_ACEOF 10915 10916# The following way of writing the cache mishandles newlines in values, 10917# but we know of no workaround that is simple, portable, and efficient. 10918# So, don't put newlines in cache variables' values. 10919# Ultrix sh set writes to stderr and can't be redirected directly, 10920# and sets the high bit in the cache file unless we assign to the vars. 10921{ 10922 (set) 2>&1 | 10923 case `(ac_space=' '; set | grep ac_space) 2>&1` in 10924 *ac_space=\ *) 10925 # `set' does not quote correctly, so add quotes (double-quote 10926 # substitution turns \\\\ into \\, and sed turns \\ into \). 10927 sed -n \ 10928 "s/'/'\\\\''/g; 10929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10930 ;; 10931 *) 10932 # `set' quotes correctly as required by POSIX, so do not add quotes. 10933 sed -n \ 10934 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 10935 ;; 10936 esac; 10937} | 10938 sed ' 10939 t clear 10940 : clear 10941 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10942 t end 10943 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10944 : end' >>confcache 10945if diff $cache_file confcache >/dev/null 2>&1; then :; else 10946 if test -w $cache_file; then 10947 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 10948 cat confcache >$cache_file 10949 else 10950 echo "not updating unwritable cache $cache_file" 10951 fi 10952fi 10953rm -f confcache 10954 10955test "x$prefix" = xNONE && prefix=$ac_default_prefix 10956# Let make expand exec_prefix. 10957test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10958 10959# VPATH may cause trouble with some makes, so we remove $(srcdir), 10960# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 10961# trailing colons and then remove the whole line if VPATH becomes empty 10962# (actually we leave an empty line to preserve line numbers). 10963if test "x$srcdir" = x.; then 10964 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 10965s/:*\$(srcdir):*/:/; 10966s/:*\${srcdir}:*/:/; 10967s/:*@srcdir@:*/:/; 10968s/^\([^=]*=[ ]*\):*/\1/; 10969s/:*$//; 10970s/^[^=]*=[ ]*$//; 10971}' 10972fi 10973 10974# Transform confdefs.h into DEFS. 10975# Protect against shell expansion while executing Makefile rules. 10976# Protect against Makefile macro expansion. 10977# 10978# If the first sed substitution is executed (which looks for macros that 10979# take arguments), then we branch to the quote section. Otherwise, 10980# look for a macro that doesn't take arguments. 10981cat >confdef2opt.sed <<\_ACEOF 10982t clear 10983: clear 10984s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 10985t quote 10986s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 10987t quote 10988d 10989: quote 10990s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 10991s,\[,\\&,g 10992s,\],\\&,g 10993s,\$,$$,g 10994p 10995_ACEOF 10996# We use echo to avoid assuming a particular line-breaking character. 10997# The extra dot is to prevent the shell from consuming trailing 10998# line-breaks from the sub-command output. A line-break within 10999# single-quotes doesn't work because, if this script is created in a 11000# platform that uses two characters for line-breaks (e.g., DOS), tr 11001# would break. 11002ac_LF_and_DOT=`echo; echo .` 11003DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 11004rm -f confdef2opt.sed 11005 11006 11007ac_libobjs= 11008ac_ltlibobjs= 11009for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11010 # 1. Remove the extension, and $U if already installed. 11011 ac_i=`echo "$ac_i" | 11012 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 11013 # 2. Add them. 11014 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 11015 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 11016done 11017LIBOBJS=$ac_libobjs 11018 11019LTLIBOBJS=$ac_ltlibobjs 11020 11021 11022CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 11023 11024: ${CONFIG_STATUS=./config.status} 11025ac_clean_files_save=$ac_clean_files 11026ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11027{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11028echo "$as_me: creating $CONFIG_STATUS" >&6;} 11029cat >$CONFIG_STATUS <<_ACEOF 11030#! $SHELL 11031# Generated by $as_me. 11032# Run this file to recreate the current configuration. 11033# Compiler output produced by configure, useful for debugging 11034# configure, is in config.log if it exists. 11035 11036debug=false 11037ac_cs_recheck=false 11038ac_cs_silent=false 11039SHELL=\${CONFIG_SHELL-$SHELL} 11040_ACEOF 11041 11042cat >>$CONFIG_STATUS <<\_ACEOF 11043## --------------------- ## 11044## M4sh Initialization. ## 11045## --------------------- ## 11046 11047# Be Bourne compatible 11048if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11049 emulate sh 11050 NULLCMD=: 11051 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11052 # is contrary to our usage. Disable this feature. 11053 alias -g '${1+"$@"}'='"$@"' 11054elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 11055 set -o posix 11056fi 11057DUALCASE=1; export DUALCASE # for MKS sh 11058 11059# Support unset when possible. 11060if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11061 as_unset=unset 11062else 11063 as_unset=false 11064fi 11065 11066 11067# Work around bugs in pre-3.0 UWIN ksh. 11068$as_unset ENV MAIL MAILPATH 11069PS1='$ ' 11070PS2='> ' 11071PS4='+ ' 11072 11073# NLS nuisances. 11074for as_var in \ 11075 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11076 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11077 LC_TELEPHONE LC_TIME 11078do 11079 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11080 eval $as_var=C; export $as_var 11081 else 11082 $as_unset $as_var 11083 fi 11084done 11085 11086# Required to use basename. 11087if expr a : '\(a\)' >/dev/null 2>&1; then 11088 as_expr=expr 11089else 11090 as_expr=false 11091fi 11092 11093if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 11094 as_basename=basename 11095else 11096 as_basename=false 11097fi 11098 11099 11100# Name of the executable. 11101as_me=`$as_basename "$0" || 11102$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11103 X"$0" : 'X\(//\)$' \| \ 11104 X"$0" : 'X\(/\)$' \| \ 11105 . : '\(.\)' 2>/dev/null || 11106echo X/"$0" | 11107 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 11108 /^X\/\(\/\/\)$/{ s//\1/; q; } 11109 /^X\/\(\/\).*/{ s//\1/; q; } 11110 s/.*/./; q'` 11111 11112 11113# PATH needs CR, and LINENO needs CR and PATH. 11114# Avoid depending upon Character Ranges. 11115as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11116as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11117as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11118as_cr_digits='0123456789' 11119as_cr_alnum=$as_cr_Letters$as_cr_digits 11120 11121# The user is always right. 11122if test "${PATH_SEPARATOR+set}" != set; then 11123 echo "#! /bin/sh" >conf$$.sh 11124 echo "exit 0" >>conf$$.sh 11125 chmod +x conf$$.sh 11126 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11127 PATH_SEPARATOR=';' 11128 else 11129 PATH_SEPARATOR=: 11130 fi 11131 rm -f conf$$.sh 11132fi 11133 11134 11135 as_lineno_1=$LINENO 11136 as_lineno_2=$LINENO 11137 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11138 test "x$as_lineno_1" != "x$as_lineno_2" && 11139 test "x$as_lineno_3" = "x$as_lineno_2" || { 11140 # Find who we are. Look in the path if we contain no path at all 11141 # relative or not. 11142 case $0 in 11143 *[\\/]* ) as_myself=$0 ;; 11144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11145for as_dir in $PATH 11146do 11147 IFS=$as_save_IFS 11148 test -z "$as_dir" && as_dir=. 11149 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11150done 11151 11152 ;; 11153 esac 11154 # We did not find ourselves, most probably we were run as `sh COMMAND' 11155 # in which case we are not to be found in the path. 11156 if test "x$as_myself" = x; then 11157 as_myself=$0 11158 fi 11159 if test ! -f "$as_myself"; then 11160 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 11161echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 11162 { (exit 1); exit 1; }; } 11163 fi 11164 case $CONFIG_SHELL in 11165 '') 11166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11167for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 11168do 11169 IFS=$as_save_IFS 11170 test -z "$as_dir" && as_dir=. 11171 for as_base in sh bash ksh sh5; do 11172 case $as_dir in 11173 /*) 11174 if ("$as_dir/$as_base" -c ' 11175 as_lineno_1=$LINENO 11176 as_lineno_2=$LINENO 11177 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11178 test "x$as_lineno_1" != "x$as_lineno_2" && 11179 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 11180 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 11181 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 11182 CONFIG_SHELL=$as_dir/$as_base 11183 export CONFIG_SHELL 11184 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 11185 fi;; 11186 esac 11187 done 11188done 11189;; 11190 esac 11191 11192 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11193 # uniformly replaced by the line number. The first 'sed' inserts a 11194 # line-number line before each line; the second 'sed' does the real 11195 # work. The second script uses 'N' to pair each line-number line 11196 # with the numbered line, and appends trailing '-' during 11197 # substitution so that $LINENO is not a special case at line end. 11198 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11199 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 11200 sed '=' <$as_myself | 11201 sed ' 11202 N 11203 s,$,-, 11204 : loop 11205 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 11206 t loop 11207 s,-$,, 11208 s,^['$as_cr_digits']*\n,, 11209 ' >$as_me.lineno && 11210 chmod +x $as_me.lineno || 11211 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 11212echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 11213 { (exit 1); exit 1; }; } 11214 11215 # Don't try to exec as it changes $[0], causing all sort of problems 11216 # (the dirname of $[0] is not the place where we might find the 11217 # original and so on. Autoconf is especially sensible to this). 11218 . ./$as_me.lineno 11219 # Exit status is that of the last command. 11220 exit 11221} 11222 11223 11224case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 11225 *c*,-n*) ECHO_N= ECHO_C=' 11226' ECHO_T=' ' ;; 11227 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 11228 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 11229esac 11230 11231if expr a : '\(a\)' >/dev/null 2>&1; then 11232 as_expr=expr 11233else 11234 as_expr=false 11235fi 11236 11237rm -f conf$$ conf$$.exe conf$$.file 11238echo >conf$$.file 11239if ln -s conf$$.file conf$$ 2>/dev/null; then 11240 # We could just check for DJGPP; but this test a) works b) is more generic 11241 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 11242 if test -f conf$$.exe; then 11243 # Don't use ln at all; we don't have any links 11244 as_ln_s='cp -p' 11245 else 11246 as_ln_s='ln -s' 11247 fi 11248elif ln conf$$.file conf$$ 2>/dev/null; then 11249 as_ln_s=ln 11250else 11251 as_ln_s='cp -p' 11252fi 11253rm -f conf$$ conf$$.exe conf$$.file 11254 11255if mkdir -p . 2>/dev/null; then 11256 as_mkdir_p=: 11257else 11258 test -d ./-p && rmdir ./-p 11259 as_mkdir_p=false 11260fi 11261 11262as_executable_p="test -f" 11263 11264# Sed expression to map a string onto a valid CPP name. 11265as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11266 11267# Sed expression to map a string onto a valid variable name. 11268as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11269 11270 11271# IFS 11272# We need space, tab and new line, in precisely that order. 11273as_nl=' 11274' 11275IFS=" $as_nl" 11276 11277# CDPATH. 11278$as_unset CDPATH 11279 11280exec 6>&1 11281 11282# Open the log real soon, to keep \$[0] and so on meaningful, and to 11283# report actual input values of CONFIG_FILES etc. instead of their 11284# values after options handling. Logging --version etc. is OK. 11285exec 5>>config.log 11286{ 11287 echo 11288 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11289## Running $as_me. ## 11290_ASBOX 11291} >&5 11292cat >&5 <<_CSEOF 11293 11294This file was extended by Tix $as_me 8.4.3, which was 11295generated by GNU Autoconf 2.59. Invocation command line was 11296 11297 CONFIG_FILES = $CONFIG_FILES 11298 CONFIG_HEADERS = $CONFIG_HEADERS 11299 CONFIG_LINKS = $CONFIG_LINKS 11300 CONFIG_COMMANDS = $CONFIG_COMMANDS 11301 $ $0 $@ 11302 11303_CSEOF 11304echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 11305echo >&5 11306_ACEOF 11307 11308# Files that config.status was made for. 11309if test -n "$ac_config_files"; then 11310 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 11311fi 11312 11313if test -n "$ac_config_headers"; then 11314 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 11315fi 11316 11317if test -n "$ac_config_links"; then 11318 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 11319fi 11320 11321if test -n "$ac_config_commands"; then 11322 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 11323fi 11324 11325cat >>$CONFIG_STATUS <<\_ACEOF 11326 11327ac_cs_usage="\ 11328\`$as_me' instantiates files from templates according to the 11329current configuration. 11330 11331Usage: $0 [OPTIONS] [FILE]... 11332 11333 -h, --help print this help, then exit 11334 -V, --version print version number, then exit 11335 -q, --quiet do not print progress messages 11336 -d, --debug don't remove temporary files 11337 --recheck update $as_me by reconfiguring in the same conditions 11338 --file=FILE[:TEMPLATE] 11339 instantiate the configuration file FILE 11340 11341Configuration files: 11342$config_files 11343 11344Report bugs to <bug-autoconf@gnu.org>." 11345_ACEOF 11346 11347cat >>$CONFIG_STATUS <<_ACEOF 11348ac_cs_version="\\ 11349Tix config.status 8.4.3 11350configured by $0, generated by GNU Autoconf 2.59, 11351 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 11352 11353Copyright (C) 2003 Free Software Foundation, Inc. 11354This config.status script is free software; the Free Software Foundation 11355gives unlimited permission to copy, distribute and modify it." 11356srcdir=$srcdir 11357INSTALL="$INSTALL" 11358_ACEOF 11359 11360cat >>$CONFIG_STATUS <<\_ACEOF 11361# If no file are specified by the user, then we need to provide default 11362# value. By we need to know if files were specified by the user. 11363ac_need_defaults=: 11364while test $# != 0 11365do 11366 case $1 in 11367 --*=*) 11368 ac_option=`expr "x$1" : 'x\([^=]*\)='` 11369 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 11370 ac_shift=: 11371 ;; 11372 -*) 11373 ac_option=$1 11374 ac_optarg=$2 11375 ac_shift=shift 11376 ;; 11377 *) # This is not an option, so the user has probably given explicit 11378 # arguments. 11379 ac_option=$1 11380 ac_need_defaults=false;; 11381 esac 11382 11383 case $ac_option in 11384 # Handling of the options. 11385_ACEOF 11386cat >>$CONFIG_STATUS <<\_ACEOF 11387 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11388 ac_cs_recheck=: ;; 11389 --version | --vers* | -V ) 11390 echo "$ac_cs_version"; exit 0 ;; 11391 --he | --h) 11392 # Conflict between --help and --header 11393 { { echo "$as_me:$LINENO: error: ambiguous option: $1 11394Try \`$0 --help' for more information." >&5 11395echo "$as_me: error: ambiguous option: $1 11396Try \`$0 --help' for more information." >&2;} 11397 { (exit 1); exit 1; }; };; 11398 --help | --hel | -h ) 11399 echo "$ac_cs_usage"; exit 0 ;; 11400 --debug | --d* | -d ) 11401 debug=: ;; 11402 --file | --fil | --fi | --f ) 11403 $ac_shift 11404 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11405 ac_need_defaults=false;; 11406 --header | --heade | --head | --hea ) 11407 $ac_shift 11408 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 11409 ac_need_defaults=false;; 11410 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11411 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11412 ac_cs_silent=: ;; 11413 11414 # This is an error. 11415 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 11416Try \`$0 --help' for more information." >&5 11417echo "$as_me: error: unrecognized option: $1 11418Try \`$0 --help' for more information." >&2;} 11419 { (exit 1); exit 1; }; } ;; 11420 11421 *) ac_config_targets="$ac_config_targets $1" ;; 11422 11423 esac 11424 shift 11425done 11426 11427ac_configure_extra_args= 11428 11429if $ac_cs_silent; then 11430 exec 6>/dev/null 11431 ac_configure_extra_args="$ac_configure_extra_args --silent" 11432fi 11433 11434_ACEOF 11435cat >>$CONFIG_STATUS <<_ACEOF 11436if \$ac_cs_recheck; then 11437 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11438 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11439fi 11440 11441_ACEOF 11442 11443 11444 11445 11446 11447cat >>$CONFIG_STATUS <<\_ACEOF 11448for ac_config_target in $ac_config_targets 11449do 11450 case "$ac_config_target" in 11451 # Handling of arguments. 11452 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11453 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11454echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11455 { (exit 1); exit 1; }; };; 11456 esac 11457done 11458 11459# If the user did not use the arguments to specify the items to instantiate, 11460# then the envvar interface is used. Set only those that are not. 11461# We use the long form for the default assignment because of an extremely 11462# bizarre bug on SunOS 4.1.3. 11463if $ac_need_defaults; then 11464 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11465fi 11466 11467# Have a temporary directory for convenience. Make it in the build tree 11468# simply because there is no reason to put it here, and in addition, 11469# creating and moving files from /tmp can sometimes cause problems. 11470# Create a temporary directory, and hook for its removal unless debugging. 11471$debug || 11472{ 11473 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 11474 trap '{ (exit 1); exit 1; }' 1 2 13 15 11475} 11476 11477# Create a (secure) tmp directory for tmp files. 11478 11479{ 11480 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 11481 test -n "$tmp" && test -d "$tmp" 11482} || 11483{ 11484 tmp=./confstat$$-$RANDOM 11485 (umask 077 && mkdir $tmp) 11486} || 11487{ 11488 echo "$me: cannot create a temporary directory in ." >&2 11489 { (exit 1); exit 1; } 11490} 11491 11492_ACEOF 11493 11494cat >>$CONFIG_STATUS <<_ACEOF 11495 11496# 11497# CONFIG_FILES section. 11498# 11499 11500# No need to generate the scripts if there are no CONFIG_FILES. 11501# This happens for instance when ./config.status config.h 11502if test -n "\$CONFIG_FILES"; then 11503 # Protect against being on the right side of a sed subst in config.status. 11504 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 11505 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 11506s,@SHELL@,$SHELL,;t t 11507s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 11508s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 11509s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 11510s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 11511s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 11512s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 11513s,@exec_prefix@,$exec_prefix,;t t 11514s,@prefix@,$prefix,;t t 11515s,@program_transform_name@,$program_transform_name,;t t 11516s,@bindir@,$bindir,;t t 11517s,@sbindir@,$sbindir,;t t 11518s,@libexecdir@,$libexecdir,;t t 11519s,@datadir@,$datadir,;t t 11520s,@sysconfdir@,$sysconfdir,;t t 11521s,@sharedstatedir@,$sharedstatedir,;t t 11522s,@localstatedir@,$localstatedir,;t t 11523s,@libdir@,$libdir,;t t 11524s,@includedir@,$includedir,;t t 11525s,@oldincludedir@,$oldincludedir,;t t 11526s,@infodir@,$infodir,;t t 11527s,@mandir@,$mandir,;t t 11528s,@build_alias@,$build_alias,;t t 11529s,@host_alias@,$host_alias,;t t 11530s,@target_alias@,$target_alias,;t t 11531s,@DEFS@,$DEFS,;t t 11532s,@ECHO_C@,$ECHO_C,;t t 11533s,@ECHO_N@,$ECHO_N,;t t 11534s,@ECHO_T@,$ECHO_T,;t t 11535s,@LIBS@,$LIBS,;t t 11536s,@CYGPATH@,$CYGPATH,;t t 11537s,@EXEEXT@,$EXEEXT,;t t 11538s,@PKG_LIB_FILE@,$PKG_LIB_FILE,;t t 11539s,@PKG_STUB_LIB_FILE@,$PKG_STUB_LIB_FILE,;t t 11540s,@PKG_STUB_SOURCES@,$PKG_STUB_SOURCES,;t t 11541s,@PKG_STUB_OBJECTS@,$PKG_STUB_OBJECTS,;t t 11542s,@PKG_TCL_SOURCES@,$PKG_TCL_SOURCES,;t t 11543s,@PKG_HEADERS@,$PKG_HEADERS,;t t 11544s,@PKG_INCLUDES@,$PKG_INCLUDES,;t t 11545s,@PKG_LIBS@,$PKG_LIBS,;t t 11546s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t 11547s,@TCL_VERSION@,$TCL_VERSION,;t t 11548s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t 11549s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t 11550s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t 11551s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t 11552s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t 11553s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t 11554s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t 11555s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t 11556s,@TCL_LIBS@,$TCL_LIBS,;t t 11557s,@TCL_DEFS@,$TCL_DEFS,;t t 11558s,@TCL_EXTRA_CFLAGS@,$TCL_EXTRA_CFLAGS,;t t 11559s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t 11560s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t 11561s,@TK_VERSION@,$TK_VERSION,;t t 11562s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t 11563s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t 11564s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t 11565s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t 11566s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t 11567s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t 11568s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t 11569s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t 11570s,@TK_LIBS@,$TK_LIBS,;t t 11571s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t 11572s,@CC@,$CC,;t t 11573s,@CFLAGS@,$CFLAGS,;t t 11574s,@LDFLAGS@,$LDFLAGS,;t t 11575s,@CPPFLAGS@,$CPPFLAGS,;t t 11576s,@ac_ct_CC@,$ac_ct_CC,;t t 11577s,@OBJEXT@,$OBJEXT,;t t 11578s,@CPP@,$CPP,;t t 11579s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 11580s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 11581s,@INSTALL_DATA@,$INSTALL_DATA,;t t 11582s,@SET_MAKE@,$SET_MAKE,;t t 11583s,@RANLIB@,$RANLIB,;t t 11584s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 11585s,@EGREP@,$EGREP,;t t 11586s,@MATH_LIBS@,$MATH_LIBS,;t t 11587s,@PKG_SOURCES@,$PKG_SOURCES,;t t 11588s,@PKG_OBJECTS@,$PKG_OBJECTS,;t t 11589s,@TCL_TOP_DIR_NATIVE@,$TCL_TOP_DIR_NATIVE,;t t 11590s,@TCL_GENERIC_DIR_NATIVE@,$TCL_GENERIC_DIR_NATIVE,;t t 11591s,@TCL_UNIX_DIR_NATIVE@,$TCL_UNIX_DIR_NATIVE,;t t 11592s,@TCL_WIN_DIR_NATIVE@,$TCL_WIN_DIR_NATIVE,;t t 11593s,@TCL_BMAP_DIR_NATIVE@,$TCL_BMAP_DIR_NATIVE,;t t 11594s,@TCL_TOOL_DIR_NATIVE@,$TCL_TOOL_DIR_NATIVE,;t t 11595s,@TCL_PLATFORM_DIR_NATIVE@,$TCL_PLATFORM_DIR_NATIVE,;t t 11596s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t 11597s,@TK_TOP_DIR_NATIVE@,$TK_TOP_DIR_NATIVE,;t t 11598s,@TK_UNIX_DIR_NATIVE@,$TK_UNIX_DIR_NATIVE,;t t 11599s,@TK_WIN_DIR_NATIVE@,$TK_WIN_DIR_NATIVE,;t t 11600s,@TK_GENERIC_DIR_NATIVE@,$TK_GENERIC_DIR_NATIVE,;t t 11601s,@TK_XLIB_DIR_NATIVE@,$TK_XLIB_DIR_NATIVE,;t t 11602s,@TK_PLATFORM_DIR_NATIVE@,$TK_PLATFORM_DIR_NATIVE,;t t 11603s,@TK_INCLUDES@,$TK_INCLUDES,;t t 11604s,@CLEANFILES@,$CLEANFILES,;t t 11605s,@TCL_THREADS@,$TCL_THREADS,;t t 11606s,@SHARED_BUILD@,$SHARED_BUILD,;t t 11607s,@AR@,$AR,;t t 11608s,@CELIB_DIR@,$CELIB_DIR,;t t 11609s,@LIBOBJS@,$LIBOBJS,;t t 11610s,@DL_LIBS@,$DL_LIBS,;t t 11611s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t 11612s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t 11613s,@CFLAGS_WARNING@,$CFLAGS_WARNING,;t t 11614s,@STLIB_LD@,$STLIB_LD,;t t 11615s,@SHLIB_LD@,$SHLIB_LD,;t t 11616s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t 11617s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t 11618s,@LD_LIBRARY_PATH_VAR@,$LD_LIBRARY_PATH_VAR,;t t 11619s,@TCL_DBGX@,$TCL_DBGX,;t t 11620s,@CFLAGS_DEFAULT@,$CFLAGS_DEFAULT,;t t 11621s,@LDFLAGS_DEFAULT@,$LDFLAGS_DEFAULT,;t t 11622s,@MAKE_LIB@,$MAKE_LIB,;t t 11623s,@MAKE_SHARED_LIB@,$MAKE_SHARED_LIB,;t t 11624s,@MAKE_STATIC_LIB@,$MAKE_STATIC_LIB,;t t 11625s,@MAKE_STUB_LIB@,$MAKE_STUB_LIB,;t t 11626s,@RANLIB_STUB@,$RANLIB_STUB,;t t 11627s,@TCLSH_PROG@,$TCLSH_PROG,;t t 11628s,@WISH_PROG@,$WISH_PROG,;t t 11629s,@LTLIBOBJS@,$LTLIBOBJS,;t t 11630CEOF 11631 11632_ACEOF 11633 11634 cat >>$CONFIG_STATUS <<\_ACEOF 11635 # Split the substitutions into bite-sized pieces for seds with 11636 # small command number limits, like on Digital OSF/1 and HP-UX. 11637 ac_max_sed_lines=48 11638 ac_sed_frag=1 # Number of current file. 11639 ac_beg=1 # First line for current file. 11640 ac_end=$ac_max_sed_lines # Line after last line for current file. 11641 ac_more_lines=: 11642 ac_sed_cmds= 11643 while $ac_more_lines; do 11644 if test $ac_beg -gt 1; then 11645 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 11646 else 11647 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 11648 fi 11649 if test ! -s $tmp/subs.frag; then 11650 ac_more_lines=false 11651 else 11652 # The purpose of the label and of the branching condition is to 11653 # speed up the sed processing (if there are no `@' at all, there 11654 # is no need to browse any of the substitutions). 11655 # These are the two extra sed commands mentioned above. 11656 (echo ':t 11657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 11658 if test -z "$ac_sed_cmds"; then 11659 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 11660 else 11661 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 11662 fi 11663 ac_sed_frag=`expr $ac_sed_frag + 1` 11664 ac_beg=$ac_end 11665 ac_end=`expr $ac_end + $ac_max_sed_lines` 11666 fi 11667 done 11668 if test -z "$ac_sed_cmds"; then 11669 ac_sed_cmds=cat 11670 fi 11671fi # test -n "$CONFIG_FILES" 11672 11673_ACEOF 11674cat >>$CONFIG_STATUS <<\_ACEOF 11675for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 11676 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 11677 case $ac_file in 11678 - | *:- | *:-:* ) # input from stdin 11679 cat >$tmp/stdin 11680 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11681 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11682 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11683 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11684 * ) ac_file_in=$ac_file.in ;; 11685 esac 11686 11687 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 11688 ac_dir=`(dirname "$ac_file") 2>/dev/null || 11689$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11690 X"$ac_file" : 'X\(//\)[^/]' \| \ 11691 X"$ac_file" : 'X\(//\)$' \| \ 11692 X"$ac_file" : 'X\(/\)' \| \ 11693 . : '\(.\)' 2>/dev/null || 11694echo X"$ac_file" | 11695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11696 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11697 /^X\(\/\/\)$/{ s//\1/; q; } 11698 /^X\(\/\).*/{ s//\1/; q; } 11699 s/.*/./; q'` 11700 { if $as_mkdir_p; then 11701 mkdir -p "$ac_dir" 11702 else 11703 as_dir="$ac_dir" 11704 as_dirs= 11705 while test ! -d "$as_dir"; do 11706 as_dirs="$as_dir $as_dirs" 11707 as_dir=`(dirname "$as_dir") 2>/dev/null || 11708$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11709 X"$as_dir" : 'X\(//\)[^/]' \| \ 11710 X"$as_dir" : 'X\(//\)$' \| \ 11711 X"$as_dir" : 'X\(/\)' \| \ 11712 . : '\(.\)' 2>/dev/null || 11713echo X"$as_dir" | 11714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11715 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11716 /^X\(\/\/\)$/{ s//\1/; q; } 11717 /^X\(\/\).*/{ s//\1/; q; } 11718 s/.*/./; q'` 11719 done 11720 test ! -n "$as_dirs" || mkdir $as_dirs 11721 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 11722echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 11723 { (exit 1); exit 1; }; }; } 11724 11725 ac_builddir=. 11726 11727if test "$ac_dir" != .; then 11728 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11729 # A "../" for each directory in $ac_dir_suffix. 11730 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 11731else 11732 ac_dir_suffix= ac_top_builddir= 11733fi 11734 11735case $srcdir in 11736 .) # No --srcdir option. We are building in place. 11737 ac_srcdir=. 11738 if test -z "$ac_top_builddir"; then 11739 ac_top_srcdir=. 11740 else 11741 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 11742 fi ;; 11743 [\\/]* | ?:[\\/]* ) # Absolute path. 11744 ac_srcdir=$srcdir$ac_dir_suffix; 11745 ac_top_srcdir=$srcdir ;; 11746 *) # Relative path. 11747 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 11748 ac_top_srcdir=$ac_top_builddir$srcdir ;; 11749esac 11750 11751# Do not use `cd foo && pwd` to compute absolute paths, because 11752# the directories may not exist. 11753case `pwd` in 11754.) ac_abs_builddir="$ac_dir";; 11755*) 11756 case "$ac_dir" in 11757 .) ac_abs_builddir=`pwd`;; 11758 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 11759 *) ac_abs_builddir=`pwd`/"$ac_dir";; 11760 esac;; 11761esac 11762case $ac_abs_builddir in 11763.) ac_abs_top_builddir=${ac_top_builddir}.;; 11764*) 11765 case ${ac_top_builddir}. in 11766 .) ac_abs_top_builddir=$ac_abs_builddir;; 11767 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 11768 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 11769 esac;; 11770esac 11771case $ac_abs_builddir in 11772.) ac_abs_srcdir=$ac_srcdir;; 11773*) 11774 case $ac_srcdir in 11775 .) ac_abs_srcdir=$ac_abs_builddir;; 11776 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 11777 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 11778 esac;; 11779esac 11780case $ac_abs_builddir in 11781.) ac_abs_top_srcdir=$ac_top_srcdir;; 11782*) 11783 case $ac_top_srcdir in 11784 .) ac_abs_top_srcdir=$ac_abs_builddir;; 11785 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 11786 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 11787 esac;; 11788esac 11789 11790 11791 case $INSTALL in 11792 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11793 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 11794 esac 11795 11796 if test x"$ac_file" != x-; then 11797 { echo "$as_me:$LINENO: creating $ac_file" >&5 11798echo "$as_me: creating $ac_file" >&6;} 11799 rm -f "$ac_file" 11800 fi 11801 # Let's still pretend it is `configure' which instantiates (i.e., don't 11802 # use $as_me), people would be surprised to read: 11803 # /* config.h. Generated by config.status. */ 11804 if test x"$ac_file" = x-; then 11805 configure_input= 11806 else 11807 configure_input="$ac_file. " 11808 fi 11809 configure_input=$configure_input"Generated from `echo $ac_file_in | 11810 sed 's,.*/,,'` by configure." 11811 11812 # First look for the input files in the build tree, otherwise in the 11813 # src tree. 11814 ac_file_inputs=`IFS=: 11815 for f in $ac_file_in; do 11816 case $f in 11817 -) echo $tmp/stdin ;; 11818 [\\/$]*) 11819 # Absolute (can't be DOS-style, as IFS=:) 11820 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11821echo "$as_me: error: cannot find input file: $f" >&2;} 11822 { (exit 1); exit 1; }; } 11823 echo "$f";; 11824 *) # Relative 11825 if test -f "$f"; then 11826 # Build tree 11827 echo "$f" 11828 elif test -f "$srcdir/$f"; then 11829 # Source tree 11830 echo "$srcdir/$f" 11831 else 11832 # /dev/null tree 11833 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11834echo "$as_me: error: cannot find input file: $f" >&2;} 11835 { (exit 1); exit 1; }; } 11836 fi;; 11837 esac 11838 done` || { (exit 1); exit 1; } 11839_ACEOF 11840cat >>$CONFIG_STATUS <<_ACEOF 11841 sed "$ac_vpsub 11842$extrasub 11843_ACEOF 11844cat >>$CONFIG_STATUS <<\_ACEOF 11845:t 11846/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11847s,@configure_input@,$configure_input,;t t 11848s,@srcdir@,$ac_srcdir,;t t 11849s,@abs_srcdir@,$ac_abs_srcdir,;t t 11850s,@top_srcdir@,$ac_top_srcdir,;t t 11851s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 11852s,@builddir@,$ac_builddir,;t t 11853s,@abs_builddir@,$ac_abs_builddir,;t t 11854s,@top_builddir@,$ac_top_builddir,;t t 11855s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 11856s,@INSTALL@,$ac_INSTALL,;t t 11857" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 11858 rm -f $tmp/stdin 11859 if test x"$ac_file" != x-; then 11860 mv $tmp/out $ac_file 11861 else 11862 cat $tmp/out 11863 rm -f $tmp/out 11864 fi 11865 11866done 11867_ACEOF 11868 11869cat >>$CONFIG_STATUS <<\_ACEOF 11870 11871{ (exit 0); exit 0; } 11872_ACEOF 11873chmod +x $CONFIG_STATUS 11874ac_clean_files=$ac_clean_files_save 11875 11876 11877# configure is writing to config.log, and then calls config.status. 11878# config.status does its own redirection, appending to config.log. 11879# Unfortunately, on DOS this fails, as config.log is still kept open 11880# by configure, so config.status won't be able to write to it; its 11881# output is simply discarded. So we exec the FD to /dev/null, 11882# effectively closing config.log, so it can be properly (re)opened and 11883# appended to by config.status. When coming back to configure, we 11884# need to make the FD available again. 11885if test "$no_create" != yes; then 11886 ac_cs_success=: 11887 ac_config_status_args= 11888 test "$silent" = yes && 11889 ac_config_status_args="$ac_config_status_args --quiet" 11890 exec 5>/dev/null 11891 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11892 exec 5>>config.log 11893 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11894 # would make configure fail if this is the last instruction. 11895 $ac_cs_success || { (exit 1); exit 1; } 11896fi 11897 11898