1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for tk 8.5. 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='tk' 269PACKAGE_TARNAME='tk' 270PACKAGE_VERSION='8.5' 271PACKAGE_STRING='tk 8.5' 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 TCL_VERSION TCL_PATCH_LEVEL 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 TCLSH_PROG BUILD_TCLSH MAN_FLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP TCL_THREADS RANLIB ac_ct_RANLIB AR ac_ct_AR TCL_LIBS DL_LIBS DL_OBJS PLAT_OBJS PLAT_SRCS LDAIX_SRC CFLAGS_DEBUG CFLAGS_OPTIMIZE CFLAGS_WARNING LDFLAGS_DEBUG LDFLAGS_OPTIMIZE CC_SEARCH_FLAGS LD_SEARCH_FLAGS STLIB_LD SHLIB_LD TCL_SHLIB_LD_EXTRAS TK_SHLIB_LD_EXTRAS SHLIB_LD_LIBS SHLIB_CFLAGS SHLIB_SUFFIX MAKE_LIB MAKE_STUB_LIB INSTALL_LIB DLL_INSTALL_DIR INSTALL_STUB_LIB CFLAGS_DEFAULT LDFLAGS_DEFAULT LIBOBJS XFT_CFLAGS XFT_LIBS UNIX_FONT_OBJS TK_VERSION TK_MAJOR_VERSION TK_MINOR_VERSION TK_PATCH_LEVEL TK_YEAR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_STUB_LIB_PATH TK_INCLUDE_SPEC TK_BUILD_STUB_LIB_SPEC TK_BUILD_STUB_LIB_PATH TK_SRC_DIR TK_SHARED_BUILD LD_LIBRARY_PATH_VAR TK_BUILD_LIB_SPEC TCL_STUB_FLAGS XINCLUDES XLIBSW LOCALES TK_WINDOWINGSYSTEM TK_PKG_DIR TK_LIBRARY LIB_RUNTIME_DIR PRIVATE_INCLUDE_DIR HTML_DIR EXTRA_CC_SWITCHES EXTRA_APP_CC_SWITCHES EXTRA_INSTALL EXTRA_INSTALL_BINARIES EXTRA_BUILD_HTML EXTRA_WISH_LIBS CFBUNDLELOCALIZATIONS TK_RSRC_FILE WISH_RSRC_FILE LIB_RSRC_FILE APP_RSRC_FILE REZ REZ_FLAGS 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 tk 8.5 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 tk 8.5:";; 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-man-symlinks use symlinks for the manpages (default: off) 849 --enable-man-compression=PROG 850 compress the manpages with PROG (default: off) 851 --enable-man-suffix=STRING 852 use STRING as a suffix to manpage file names 853 (default: no, tk if enabled without 854 specifying STRING) 855 --enable-threads build with threads (default: off) 856 --enable-shared build and link with shared libraries (default: on) 857 --enable-64bit enable 64bit support (default: off) 858 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 859 --disable-rpath disable rpath support (default: on) 860 --enable-corefoundation use CoreFoundation API on MacOSX (default: on) 861 --enable-load allow dynamic loading and "load" command (default: 862 on) 863 --enable-symbols build with debugging symbols (default: off) 864 --enable-aqua=yes|no use Aqua windowingsystem on Mac OS X (default: no) 865 --enable-xft use freetype/fontconfig/xft (default: on) 866 --enable-xss use XScreenSaver for activity timer (default: on) 867 --enable-framework package shared libraries in MacOSX frameworks 868 (default: off) 869 870Optional Packages: 871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 873 --with-tcl directory containing tcl configuration 874 (tclConfig.sh) 875 --with-x use the X Window System 876 877Some influential environment variables: 878 CC C compiler command 879 CFLAGS C compiler flags 880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 881 nonstandard directory <lib dir> 882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 883 headers in a nonstandard directory <include dir> 884 CPP C preprocessor 885 886Use these variables to override the choices made by `configure' or to help 887it to find libraries and programs with nonstandard names/locations. 888 889_ACEOF 890fi 891 892if test "$ac_init_help" = "recursive"; then 893 # If there are subdirs, report their specific --help. 894 ac_popdir=`pwd` 895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 896 test -d $ac_dir || continue 897 ac_builddir=. 898 899if test "$ac_dir" != .; then 900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 901 # A "../" for each directory in $ac_dir_suffix. 902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 903else 904 ac_dir_suffix= ac_top_builddir= 905fi 906 907case $srcdir in 908 .) # No --srcdir option. We are building in place. 909 ac_srcdir=. 910 if test -z "$ac_top_builddir"; then 911 ac_top_srcdir=. 912 else 913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 914 fi ;; 915 [\\/]* | ?:[\\/]* ) # Absolute path. 916 ac_srcdir=$srcdir$ac_dir_suffix; 917 ac_top_srcdir=$srcdir ;; 918 *) # Relative path. 919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 920 ac_top_srcdir=$ac_top_builddir$srcdir ;; 921esac 922 923# Do not use `cd foo && pwd` to compute absolute paths, because 924# the directories may not exist. 925case `pwd` in 926.) ac_abs_builddir="$ac_dir";; 927*) 928 case "$ac_dir" in 929 .) ac_abs_builddir=`pwd`;; 930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 931 *) ac_abs_builddir=`pwd`/"$ac_dir";; 932 esac;; 933esac 934case $ac_abs_builddir in 935.) ac_abs_top_builddir=${ac_top_builddir}.;; 936*) 937 case ${ac_top_builddir}. in 938 .) ac_abs_top_builddir=$ac_abs_builddir;; 939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 941 esac;; 942esac 943case $ac_abs_builddir in 944.) ac_abs_srcdir=$ac_srcdir;; 945*) 946 case $ac_srcdir in 947 .) ac_abs_srcdir=$ac_abs_builddir;; 948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 950 esac;; 951esac 952case $ac_abs_builddir in 953.) ac_abs_top_srcdir=$ac_top_srcdir;; 954*) 955 case $ac_top_srcdir in 956 .) ac_abs_top_srcdir=$ac_abs_builddir;; 957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 959 esac;; 960esac 961 962 cd $ac_dir 963 # Check for guested configure; otherwise get Cygnus style configure. 964 if test -f $ac_srcdir/configure.gnu; then 965 echo 966 $SHELL $ac_srcdir/configure.gnu --help=recursive 967 elif test -f $ac_srcdir/configure; then 968 echo 969 $SHELL $ac_srcdir/configure --help=recursive 970 elif test -f $ac_srcdir/configure.ac || 971 test -f $ac_srcdir/configure.in; then 972 echo 973 $ac_configure --help 974 else 975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 976 fi 977 cd $ac_popdir 978 done 979fi 980 981test -n "$ac_init_help" && exit 0 982if $ac_init_version; then 983 cat <<\_ACEOF 984tk configure 8.5 985generated by GNU Autoconf 2.59 986 987Copyright (C) 2003 Free Software Foundation, Inc. 988This configure script is free software; the Free Software Foundation 989gives unlimited permission to copy, distribute and modify it. 990_ACEOF 991 exit 0 992fi 993exec 5>config.log 994cat >&5 <<_ACEOF 995This file contains any messages produced by compilers while 996running configure, to aid debugging if configure makes a mistake. 997 998It was created by tk $as_me 8.5, which was 999generated by GNU Autoconf 2.59. Invocation command line was 1000 1001 $ $0 $@ 1002 1003_ACEOF 1004{ 1005cat <<_ASUNAME 1006## --------- ## 1007## Platform. ## 1008## --------- ## 1009 1010hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1011uname -m = `(uname -m) 2>/dev/null || echo unknown` 1012uname -r = `(uname -r) 2>/dev/null || echo unknown` 1013uname -s = `(uname -s) 2>/dev/null || echo unknown` 1014uname -v = `(uname -v) 2>/dev/null || echo unknown` 1015 1016/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1017/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1018 1019/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1020/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1021/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1022hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1023/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1024/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1025/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1026 1027_ASUNAME 1028 1029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1030for as_dir in $PATH 1031do 1032 IFS=$as_save_IFS 1033 test -z "$as_dir" && as_dir=. 1034 echo "PATH: $as_dir" 1035done 1036 1037} >&5 1038 1039cat >&5 <<_ACEOF 1040 1041 1042## ----------- ## 1043## Core tests. ## 1044## ----------- ## 1045 1046_ACEOF 1047 1048 1049# Keep a trace of the command line. 1050# Strip out --no-create and --no-recursion so they do not pile up. 1051# Strip out --silent because we don't want to record it for future runs. 1052# Also quote any args containing shell meta-characters. 1053# Make two passes to allow for proper duplicate-argument suppression. 1054ac_configure_args= 1055ac_configure_args0= 1056ac_configure_args1= 1057ac_sep= 1058ac_must_keep_next=false 1059for ac_pass in 1 2 1060do 1061 for ac_arg 1062 do 1063 case $ac_arg in 1064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1066 | -silent | --silent | --silen | --sile | --sil) 1067 continue ;; 1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1069 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1070 esac 1071 case $ac_pass in 1072 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1073 2) 1074 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1075 if test $ac_must_keep_next = true; then 1076 ac_must_keep_next=false # Got value, back to normal. 1077 else 1078 case $ac_arg in 1079 *=* | --config-cache | -C | -disable-* | --disable-* \ 1080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1082 | -with-* | --with-* | -without-* | --without-* | --x) 1083 case "$ac_configure_args0 " in 1084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1085 esac 1086 ;; 1087 -* ) ac_must_keep_next=true ;; 1088 esac 1089 fi 1090 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1091 # Get rid of the leading space. 1092 ac_sep=" " 1093 ;; 1094 esac 1095 done 1096done 1097$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1098$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1099 1100# When interrupted or exit'd, cleanup temporary files, and complete 1101# config.log. We remove comments because anyway the quotes in there 1102# would cause problems or look ugly. 1103# WARNING: Be sure not to use single quotes in there, as some shells, 1104# such as our DU 5.0 friend, will then `close' the trap. 1105trap 'exit_status=$? 1106 # Save into config.log some information that might help in debugging. 1107 { 1108 echo 1109 1110 cat <<\_ASBOX 1111## ---------------- ## 1112## Cache variables. ## 1113## ---------------- ## 1114_ASBOX 1115 echo 1116 # The following way of writing the cache mishandles newlines in values, 1117{ 1118 (set) 2>&1 | 1119 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1120 *ac_space=\ *) 1121 sed -n \ 1122 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1124 ;; 1125 *) 1126 sed -n \ 1127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1128 ;; 1129 esac; 1130} 1131 echo 1132 1133 cat <<\_ASBOX 1134## ----------------- ## 1135## Output variables. ## 1136## ----------------- ## 1137_ASBOX 1138 echo 1139 for ac_var in $ac_subst_vars 1140 do 1141 eval ac_val=$`echo $ac_var` 1142 echo "$ac_var='"'"'$ac_val'"'"'" 1143 done | sort 1144 echo 1145 1146 if test -n "$ac_subst_files"; then 1147 cat <<\_ASBOX 1148## ------------- ## 1149## Output files. ## 1150## ------------- ## 1151_ASBOX 1152 echo 1153 for ac_var in $ac_subst_files 1154 do 1155 eval ac_val=$`echo $ac_var` 1156 echo "$ac_var='"'"'$ac_val'"'"'" 1157 done | sort 1158 echo 1159 fi 1160 1161 if test -s confdefs.h; then 1162 cat <<\_ASBOX 1163## ----------- ## 1164## confdefs.h. ## 1165## ----------- ## 1166_ASBOX 1167 echo 1168 sed "/^$/d" confdefs.h | sort 1169 echo 1170 fi 1171 test "$ac_signal" != 0 && 1172 echo "$as_me: caught signal $ac_signal" 1173 echo "$as_me: exit $exit_status" 1174 } >&5 1175 rm -f core *.core && 1176 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1177 exit $exit_status 1178 ' 0 1179for ac_signal in 1 2 13 15; do 1180 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1181done 1182ac_signal=0 1183 1184# confdefs.h avoids OS command line length limits that DEFS can exceed. 1185rm -rf conftest* confdefs.h 1186# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1187echo >confdefs.h 1188 1189# Predefined preprocessor variables. 1190 1191cat >>confdefs.h <<_ACEOF 1192#define PACKAGE_NAME "$PACKAGE_NAME" 1193_ACEOF 1194 1195 1196cat >>confdefs.h <<_ACEOF 1197#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1198_ACEOF 1199 1200 1201cat >>confdefs.h <<_ACEOF 1202#define PACKAGE_VERSION "$PACKAGE_VERSION" 1203_ACEOF 1204 1205 1206cat >>confdefs.h <<_ACEOF 1207#define PACKAGE_STRING "$PACKAGE_STRING" 1208_ACEOF 1209 1210 1211cat >>confdefs.h <<_ACEOF 1212#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1213_ACEOF 1214 1215 1216# Let the site file select an alternate cache file if it wants to. 1217# Prefer explicitly selected file to automatically selected ones. 1218if test -z "$CONFIG_SITE"; then 1219 if test "x$prefix" != xNONE; then 1220 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1221 else 1222 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1223 fi 1224fi 1225for ac_site_file in $CONFIG_SITE; do 1226 if test -r "$ac_site_file"; then 1227 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1228echo "$as_me: loading site script $ac_site_file" >&6;} 1229 sed 's/^/| /' "$ac_site_file" >&5 1230 . "$ac_site_file" 1231 fi 1232done 1233 1234if test -r "$cache_file"; then 1235 # Some versions of bash will fail to source /dev/null (special 1236 # files actually), so we avoid doing that. 1237 if test -f "$cache_file"; then 1238 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1239echo "$as_me: loading cache $cache_file" >&6;} 1240 case $cache_file in 1241 [\\/]* | ?:[\\/]* ) . $cache_file;; 1242 *) . ./$cache_file;; 1243 esac 1244 fi 1245else 1246 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1247echo "$as_me: creating cache $cache_file" >&6;} 1248 >$cache_file 1249fi 1250 1251# Check that the precious variables saved in the cache have kept the same 1252# value. 1253ac_cache_corrupted=false 1254for ac_var in `(set) 2>&1 | 1255 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1256 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1257 eval ac_new_set=\$ac_env_${ac_var}_set 1258 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1259 eval ac_new_val="\$ac_env_${ac_var}_value" 1260 case $ac_old_set,$ac_new_set in 1261 set,) 1262 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1263echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1264 ac_cache_corrupted=: ;; 1265 ,set) 1266 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1267echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1268 ac_cache_corrupted=: ;; 1269 ,);; 1270 *) 1271 if test "x$ac_old_val" != "x$ac_new_val"; then 1272 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1273echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1274 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1275echo "$as_me: former value: $ac_old_val" >&2;} 1276 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1277echo "$as_me: current value: $ac_new_val" >&2;} 1278 ac_cache_corrupted=: 1279 fi;; 1280 esac 1281 # Pass precious variables to config.status. 1282 if test "$ac_new_set" = set; then 1283 case $ac_new_val in 1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1285 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1286 *) ac_arg=$ac_var=$ac_new_val ;; 1287 esac 1288 case " $ac_configure_args " in 1289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1290 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1291 esac 1292 fi 1293done 1294if $ac_cache_corrupted; then 1295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1296echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1298echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1299 { (exit 1); exit 1; }; } 1300fi 1301 1302ac_ext=c 1303ac_cpp='$CPP $CPPFLAGS' 1304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1306ac_compiler_gnu=$ac_cv_c_compiler_gnu 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338TK_VERSION=8.5 1339TK_MAJOR_VERSION=8 1340TK_MINOR_VERSION=5 1341TK_PATCH_LEVEL=".19" 1342VERSION=${TK_VERSION} 1343LOCALES="cs da de el en en_gb eo es fr hu it nl pl pt ru sv" 1344 1345#-------------------------------------------------------------------- 1346# Find and load the tclConfig.sh file 1347#-------------------------------------------------------------------- 1348 1349 1350 # 1351 # Ok, lets find the tcl configuration 1352 # First, look for one uninstalled. 1353 # the alternative search directory is invoked by --with-tcl 1354 # 1355 1356 if test x"${no_tcl}" = x ; then 1357 # we reset no_tcl in case something fails here 1358 no_tcl=true 1359 1360# Check whether --with-tcl or --without-tcl was given. 1361if test "${with_tcl+set}" = set; then 1362 withval="$with_tcl" 1363 with_tclconfig="${withval}" 1364fi; 1365 echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1366echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 1367 if test "${ac_cv_c_tclconfig+set}" = set; then 1368 echo $ECHO_N "(cached) $ECHO_C" >&6 1369else 1370 1371 1372 # First check to see if --with-tcl was specified. 1373 if test x"${with_tclconfig}" != x ; then 1374 case "${with_tclconfig}" in 1375 */tclConfig.sh ) 1376 if test -f "${with_tclconfig}"; then 1377 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1378echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1379 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1380 fi ;; 1381 esac 1382 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1383 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1384 else 1385 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1386echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1387 { (exit 1); exit 1; }; } 1388 fi 1389 fi 1390 1391 # then check for a private Tcl installation 1392 if test x"${ac_cv_c_tclconfig}" = x ; then 1393 for i in \ 1394 ../tcl \ 1395 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1396 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1397 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1398 ../../tcl \ 1399 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1400 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1401 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1402 ../../../tcl \ 1403 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1404 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1405 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1406 if test -f "$i/unix/tclConfig.sh" ; then 1407 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1408 break 1409 fi 1410 done 1411 fi 1412 1413 # on Darwin, check in Framework installation locations 1414 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1415 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1416 `ls -d /Library/Frameworks 2>/dev/null` \ 1417 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1418 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1419 ; do 1420 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 1421 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 1422 break 1423 fi 1424 done 1425 fi 1426 1427 # check in a few common install locations 1428 if test x"${ac_cv_c_tclconfig}" = x ; then 1429 for i in `ls -d ${libdir} 2>/dev/null` \ 1430 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 1431 `ls -d ${prefix}/lib 2>/dev/null` \ 1432 `ls -d /usr/local/lib 2>/dev/null` \ 1433 `ls -d /usr/contrib/lib 2>/dev/null` \ 1434 `ls -d /usr/lib 2>/dev/null` \ 1435 `ls -d /usr/lib64 2>/dev/null` \ 1436 ; do 1437 if test -f "$i/tclConfig.sh" ; then 1438 ac_cv_c_tclconfig="`(cd $i; pwd)`" 1439 break 1440 fi 1441 done 1442 fi 1443 1444 # check in a few other private locations 1445 if test x"${ac_cv_c_tclconfig}" = x ; then 1446 for i in \ 1447 ${srcdir}/../tcl \ 1448 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1449 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 1450 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 1451 if test -f "$i/unix/tclConfig.sh" ; then 1452 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1453 break 1454 fi 1455 done 1456 fi 1457 1458fi 1459 1460 1461 if test x"${ac_cv_c_tclconfig}" = x ; then 1462 TCL_BIN_DIR="# no Tcl configs found" 1463 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" >&5 1464echo "$as_me: error: Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" >&2;} 1465 { (exit 1); exit 1; }; } 1466 else 1467 no_tcl= 1468 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 1469 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 1470echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6 1471 fi 1472 fi 1473 1474 1475 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 1476echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6 1477 1478 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 1479 echo "$as_me:$LINENO: result: loading" >&5 1480echo "${ECHO_T}loading" >&6 1481 . "${TCL_BIN_DIR}/tclConfig.sh" 1482 else 1483 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 1484echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6 1485 fi 1486 1487 # eval is required to do the TCL_DBGX substitution 1488 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 1489 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 1490 1491 # If the TCL_BIN_DIR is the build directory (not the install directory), 1492 # then set the common variable name to the value of the build variables. 1493 # For example, the variable TCL_LIB_SPEC will be set to the value 1494 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 1495 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 1496 # installed and uninstalled version of Tcl. 1497 if test -f "${TCL_BIN_DIR}/Makefile" ; then 1498 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 1499 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 1500 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 1501 elif test "`uname -s`" = "Darwin"; then 1502 # If Tcl was built as a framework, attempt to use the libraries 1503 # from the framework at the given location so that linking works 1504 # against Tcl.framework installed in an arbitrary location. 1505 case ${TCL_DEFS} in 1506 *TCL_FRAMEWORK*) 1507 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 1508 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 1509 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 1510 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 1511 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 1512 break 1513 fi 1514 done 1515 fi 1516 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 1517 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 1518 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 1519 fi 1520 ;; 1521 esac 1522 fi 1523 1524 # eval is required to do the TCL_DBGX substitution 1525 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 1526 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 1527 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 1528 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544if test "${TCL_VERSION}" != "${TK_VERSION}"; then 1545 { { echo "$as_me:$LINENO: error: ${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}. 1546Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl ${TK_VERSION}. 1547Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl ${TK_VERSION}." >&5 1548echo "$as_me: error: ${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}. 1549Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl ${TK_VERSION}. 1550Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl ${TK_VERSION}." >&2;} 1551 { (exit 1); exit 1; }; } 1552fi 1553 1554 1555 echo "$as_me:$LINENO: checking for tclsh" >&5 1556echo $ECHO_N "checking for tclsh... $ECHO_C" >&6 1557 if test "${ac_cv_path_tclsh+set}" = set; then 1558 echo $ECHO_N "(cached) $ECHO_C" >&6 1559else 1560 1561 search_path=`echo ${PATH} | sed -e 's/:/ /g'` 1562 for dir in $search_path ; do 1563 for j in `ls -r $dir/tclsh[8-9]* 2> /dev/null` \ 1564 `ls -r $dir/tclsh* 2> /dev/null` ; do 1565 if test x"$ac_cv_path_tclsh" = x ; then 1566 if test -f "$j" ; then 1567 ac_cv_path_tclsh=$j 1568 break 1569 fi 1570 fi 1571 done 1572 done 1573 1574fi 1575 1576 1577 if test -f "$ac_cv_path_tclsh" ; then 1578 TCLSH_PROG="$ac_cv_path_tclsh" 1579 echo "$as_me:$LINENO: result: $TCLSH_PROG" >&5 1580echo "${ECHO_T}$TCLSH_PROG" >&6 1581 else 1582 # It is not an error if an installed version of Tcl can't be located. 1583 TCLSH_PROG="" 1584 echo "$as_me:$LINENO: result: No tclsh found on PATH" >&5 1585echo "${ECHO_T}No tclsh found on PATH" >&6 1586 fi 1587 1588 1589 1590 echo "$as_me:$LINENO: checking for tclsh in Tcl build directory" >&5 1591echo $ECHO_N "checking for tclsh in Tcl build directory... $ECHO_C" >&6 1592 BUILD_TCLSH="${TCL_BIN_DIR}"/tclsh 1593 echo "$as_me:$LINENO: result: $BUILD_TCLSH" >&5 1594echo "${ECHO_T}$BUILD_TCLSH" >&6 1595 1596 1597 1598#------------------------------------------------------------------------ 1599# Handle the --prefix=... option 1600#------------------------------------------------------------------------ 1601 1602if test "${prefix}" = "NONE"; then 1603 prefix="$TCL_PREFIX" 1604fi 1605if test "${exec_prefix}" = "NONE"; then 1606 exec_prefix=$prefix 1607fi 1608# Make sure srcdir is fully qualified! 1609srcdir="`cd "$srcdir" ; pwd`" 1610TK_SRC_DIR="`cd "$srcdir"/..; pwd`" 1611 1612#------------------------------------------------------------------------ 1613# Compress and/or soft link the manpages? 1614#------------------------------------------------------------------------ 1615 1616 1617 echo "$as_me:$LINENO: checking whether to use symlinks for manpages" >&5 1618echo $ECHO_N "checking whether to use symlinks for manpages... $ECHO_C" >&6 1619 # Check whether --enable-man-symlinks or --disable-man-symlinks was given. 1620if test "${enable_man_symlinks+set}" = set; then 1621 enableval="$enable_man_symlinks" 1622 test "$enableval" != "no" && MAN_FLAGS="$MAN_FLAGS --symlinks" 1623else 1624 enableval="no" 1625fi; 1626 echo "$as_me:$LINENO: result: $enableval" >&5 1627echo "${ECHO_T}$enableval" >&6 1628 1629 echo "$as_me:$LINENO: checking whether to compress the manpages" >&5 1630echo $ECHO_N "checking whether to compress the manpages... $ECHO_C" >&6 1631 # Check whether --enable-man-compression or --disable-man-compression was given. 1632if test "${enable_man_compression+set}" = set; then 1633 enableval="$enable_man_compression" 1634 case $enableval in 1635 yes) { { echo "$as_me:$LINENO: error: missing argument to --enable-man-compression" >&5 1636echo "$as_me: error: missing argument to --enable-man-compression" >&2;} 1637 { (exit 1); exit 1; }; };; 1638 no) ;; 1639 *) MAN_FLAGS="$MAN_FLAGS --compress $enableval";; 1640 esac 1641else 1642 enableval="no" 1643fi; 1644 echo "$as_me:$LINENO: result: $enableval" >&5 1645echo "${ECHO_T}$enableval" >&6 1646 if test "$enableval" != "no"; then 1647 echo "$as_me:$LINENO: checking for compressed file suffix" >&5 1648echo $ECHO_N "checking for compressed file suffix... $ECHO_C" >&6 1649 touch TeST 1650 $enableval TeST 1651 Z=`ls TeST* | sed 's/^....//'` 1652 rm -f TeST* 1653 MAN_FLAGS="$MAN_FLAGS --extension $Z" 1654 echo "$as_me:$LINENO: result: $Z" >&5 1655echo "${ECHO_T}$Z" >&6 1656 fi 1657 1658 echo "$as_me:$LINENO: checking whether to add a package name suffix for the manpages" >&5 1659echo $ECHO_N "checking whether to add a package name suffix for the manpages... $ECHO_C" >&6 1660 # Check whether --enable-man-suffix or --disable-man-suffix was given. 1661if test "${enable_man_suffix+set}" = set; then 1662 enableval="$enable_man_suffix" 1663 case $enableval in 1664 yes) enableval="tk" MAN_FLAGS="$MAN_FLAGS --suffix $enableval";; 1665 no) ;; 1666 *) MAN_FLAGS="$MAN_FLAGS --suffix $enableval";; 1667 esac 1668else 1669 enableval="no" 1670fi; 1671 echo "$as_me:$LINENO: result: $enableval" >&5 1672echo "${ECHO_T}$enableval" >&6 1673 1674 1675 1676 1677#------------------------------------------------------------------------ 1678# Standard compiler checks 1679#------------------------------------------------------------------------ 1680 1681# If the user did not set CFLAGS, set it now to keep 1682# the AC_PROG_CC macro from adding "-g -O2". 1683if test "${CFLAGS+set}" != "set" ; then 1684 CFLAGS="" 1685fi 1686 1687ac_ext=c 1688ac_cpp='$CPP $CPPFLAGS' 1689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1691ac_compiler_gnu=$ac_cv_c_compiler_gnu 1692if test -n "$ac_tool_prefix"; then 1693 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1694set dummy ${ac_tool_prefix}gcc; ac_word=$2 1695echo "$as_me:$LINENO: checking for $ac_word" >&5 1696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1697if test "${ac_cv_prog_CC+set}" = set; then 1698 echo $ECHO_N "(cached) $ECHO_C" >&6 1699else 1700 if test -n "$CC"; then 1701 ac_cv_prog_CC="$CC" # Let the user override the test. 1702else 1703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1704for as_dir in $PATH 1705do 1706 IFS=$as_save_IFS 1707 test -z "$as_dir" && as_dir=. 1708 for ac_exec_ext in '' $ac_executable_extensions; do 1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1710 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1712 break 2 1713 fi 1714done 1715done 1716 1717fi 1718fi 1719CC=$ac_cv_prog_CC 1720if test -n "$CC"; then 1721 echo "$as_me:$LINENO: result: $CC" >&5 1722echo "${ECHO_T}$CC" >&6 1723else 1724 echo "$as_me:$LINENO: result: no" >&5 1725echo "${ECHO_T}no" >&6 1726fi 1727 1728fi 1729if test -z "$ac_cv_prog_CC"; then 1730 ac_ct_CC=$CC 1731 # Extract the first word of "gcc", so it can be a program name with args. 1732set dummy gcc; ac_word=$2 1733echo "$as_me:$LINENO: checking for $ac_word" >&5 1734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1735if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1736 echo $ECHO_N "(cached) $ECHO_C" >&6 1737else 1738 if test -n "$ac_ct_CC"; then 1739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1740else 1741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1742for as_dir in $PATH 1743do 1744 IFS=$as_save_IFS 1745 test -z "$as_dir" && as_dir=. 1746 for ac_exec_ext in '' $ac_executable_extensions; do 1747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1748 ac_cv_prog_ac_ct_CC="gcc" 1749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1750 break 2 1751 fi 1752done 1753done 1754 1755fi 1756fi 1757ac_ct_CC=$ac_cv_prog_ac_ct_CC 1758if test -n "$ac_ct_CC"; then 1759 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1760echo "${ECHO_T}$ac_ct_CC" >&6 1761else 1762 echo "$as_me:$LINENO: result: no" >&5 1763echo "${ECHO_T}no" >&6 1764fi 1765 1766 CC=$ac_ct_CC 1767else 1768 CC="$ac_cv_prog_CC" 1769fi 1770 1771if test -z "$CC"; then 1772 if test -n "$ac_tool_prefix"; then 1773 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1774set dummy ${ac_tool_prefix}cc; ac_word=$2 1775echo "$as_me:$LINENO: checking for $ac_word" >&5 1776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1777if test "${ac_cv_prog_CC+set}" = set; then 1778 echo $ECHO_N "(cached) $ECHO_C" >&6 1779else 1780 if test -n "$CC"; then 1781 ac_cv_prog_CC="$CC" # Let the user override the test. 1782else 1783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1784for as_dir in $PATH 1785do 1786 IFS=$as_save_IFS 1787 test -z "$as_dir" && as_dir=. 1788 for ac_exec_ext in '' $ac_executable_extensions; do 1789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1790 ac_cv_prog_CC="${ac_tool_prefix}cc" 1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1792 break 2 1793 fi 1794done 1795done 1796 1797fi 1798fi 1799CC=$ac_cv_prog_CC 1800if test -n "$CC"; then 1801 echo "$as_me:$LINENO: result: $CC" >&5 1802echo "${ECHO_T}$CC" >&6 1803else 1804 echo "$as_me:$LINENO: result: no" >&5 1805echo "${ECHO_T}no" >&6 1806fi 1807 1808fi 1809if test -z "$ac_cv_prog_CC"; then 1810 ac_ct_CC=$CC 1811 # Extract the first word of "cc", so it can be a program name with args. 1812set dummy cc; ac_word=$2 1813echo "$as_me:$LINENO: checking for $ac_word" >&5 1814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1815if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1816 echo $ECHO_N "(cached) $ECHO_C" >&6 1817else 1818 if test -n "$ac_ct_CC"; then 1819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1820else 1821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1822for as_dir in $PATH 1823do 1824 IFS=$as_save_IFS 1825 test -z "$as_dir" && as_dir=. 1826 for ac_exec_ext in '' $ac_executable_extensions; do 1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1828 ac_cv_prog_ac_ct_CC="cc" 1829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1830 break 2 1831 fi 1832done 1833done 1834 1835fi 1836fi 1837ac_ct_CC=$ac_cv_prog_ac_ct_CC 1838if test -n "$ac_ct_CC"; then 1839 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1840echo "${ECHO_T}$ac_ct_CC" >&6 1841else 1842 echo "$as_me:$LINENO: result: no" >&5 1843echo "${ECHO_T}no" >&6 1844fi 1845 1846 CC=$ac_ct_CC 1847else 1848 CC="$ac_cv_prog_CC" 1849fi 1850 1851fi 1852if test -z "$CC"; then 1853 # Extract the first word of "cc", so it can be a program name with args. 1854set dummy cc; ac_word=$2 1855echo "$as_me:$LINENO: checking for $ac_word" >&5 1856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1857if test "${ac_cv_prog_CC+set}" = set; then 1858 echo $ECHO_N "(cached) $ECHO_C" >&6 1859else 1860 if test -n "$CC"; then 1861 ac_cv_prog_CC="$CC" # Let the user override the test. 1862else 1863 ac_prog_rejected=no 1864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1865for as_dir in $PATH 1866do 1867 IFS=$as_save_IFS 1868 test -z "$as_dir" && as_dir=. 1869 for ac_exec_ext in '' $ac_executable_extensions; do 1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1871 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1872 ac_prog_rejected=yes 1873 continue 1874 fi 1875 ac_cv_prog_CC="cc" 1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1877 break 2 1878 fi 1879done 1880done 1881 1882if test $ac_prog_rejected = yes; then 1883 # We found a bogon in the path, so make sure we never use it. 1884 set dummy $ac_cv_prog_CC 1885 shift 1886 if test $# != 0; then 1887 # We chose a different compiler from the bogus one. 1888 # However, it has the same basename, so the bogon will be chosen 1889 # first if we set CC to just the basename; use the full file name. 1890 shift 1891 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1892 fi 1893fi 1894fi 1895fi 1896CC=$ac_cv_prog_CC 1897if test -n "$CC"; then 1898 echo "$as_me:$LINENO: result: $CC" >&5 1899echo "${ECHO_T}$CC" >&6 1900else 1901 echo "$as_me:$LINENO: result: no" >&5 1902echo "${ECHO_T}no" >&6 1903fi 1904 1905fi 1906if test -z "$CC"; then 1907 if test -n "$ac_tool_prefix"; then 1908 for ac_prog in cl 1909 do 1910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1911set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1912echo "$as_me:$LINENO: checking for $ac_word" >&5 1913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1914if test "${ac_cv_prog_CC+set}" = set; then 1915 echo $ECHO_N "(cached) $ECHO_C" >&6 1916else 1917 if test -n "$CC"; then 1918 ac_cv_prog_CC="$CC" # Let the user override the test. 1919else 1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1921for as_dir in $PATH 1922do 1923 IFS=$as_save_IFS 1924 test -z "$as_dir" && as_dir=. 1925 for ac_exec_ext in '' $ac_executable_extensions; do 1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1927 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1929 break 2 1930 fi 1931done 1932done 1933 1934fi 1935fi 1936CC=$ac_cv_prog_CC 1937if test -n "$CC"; then 1938 echo "$as_me:$LINENO: result: $CC" >&5 1939echo "${ECHO_T}$CC" >&6 1940else 1941 echo "$as_me:$LINENO: result: no" >&5 1942echo "${ECHO_T}no" >&6 1943fi 1944 1945 test -n "$CC" && break 1946 done 1947fi 1948if test -z "$CC"; then 1949 ac_ct_CC=$CC 1950 for ac_prog in cl 1951do 1952 # Extract the first word of "$ac_prog", so it can be a program name with args. 1953set dummy $ac_prog; ac_word=$2 1954echo "$as_me:$LINENO: checking for $ac_word" >&5 1955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1956if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1957 echo $ECHO_N "(cached) $ECHO_C" >&6 1958else 1959 if test -n "$ac_ct_CC"; then 1960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1961else 1962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1963for as_dir in $PATH 1964do 1965 IFS=$as_save_IFS 1966 test -z "$as_dir" && as_dir=. 1967 for ac_exec_ext in '' $ac_executable_extensions; do 1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1969 ac_cv_prog_ac_ct_CC="$ac_prog" 1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1971 break 2 1972 fi 1973done 1974done 1975 1976fi 1977fi 1978ac_ct_CC=$ac_cv_prog_ac_ct_CC 1979if test -n "$ac_ct_CC"; then 1980 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1981echo "${ECHO_T}$ac_ct_CC" >&6 1982else 1983 echo "$as_me:$LINENO: result: no" >&5 1984echo "${ECHO_T}no" >&6 1985fi 1986 1987 test -n "$ac_ct_CC" && break 1988done 1989 1990 CC=$ac_ct_CC 1991fi 1992 1993fi 1994 1995 1996test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1997See \`config.log' for more details." >&5 1998echo "$as_me: error: no acceptable C compiler found in \$PATH 1999See \`config.log' for more details." >&2;} 2000 { (exit 1); exit 1; }; } 2001 2002# Provide some information about the compiler. 2003echo "$as_me:$LINENO:" \ 2004 "checking for C compiler version" >&5 2005ac_compiler=`set X $ac_compile; echo $2` 2006{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2007 (eval $ac_compiler --version </dev/null >&5) 2>&5 2008 ac_status=$? 2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2010 (exit $ac_status); } 2011{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2012 (eval $ac_compiler -v </dev/null >&5) 2>&5 2013 ac_status=$? 2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2015 (exit $ac_status); } 2016{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2017 (eval $ac_compiler -V </dev/null >&5) 2>&5 2018 ac_status=$? 2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2020 (exit $ac_status); } 2021 2022cat >conftest.$ac_ext <<_ACEOF 2023/* confdefs.h. */ 2024_ACEOF 2025cat confdefs.h >>conftest.$ac_ext 2026cat >>conftest.$ac_ext <<_ACEOF 2027/* end confdefs.h. */ 2028 2029int 2030main () 2031{ 2032 2033 ; 2034 return 0; 2035} 2036_ACEOF 2037ac_clean_files_save=$ac_clean_files 2038ac_clean_files="$ac_clean_files a.out a.exe b.out" 2039# Try to create an executable without -o first, disregard a.out. 2040# It will help us diagnose broken compilers, and finding out an intuition 2041# of exeext. 2042echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2043echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2044ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2045if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2046 (eval $ac_link_default) 2>&5 2047 ac_status=$? 2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2049 (exit $ac_status); }; then 2050 # Find the output, starting from the most likely. This scheme is 2051# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2052# resort. 2053 2054# Be careful to initialize this variable, since it used to be cached. 2055# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2056ac_cv_exeext= 2057# b.out is created by i960 compilers. 2058for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2059do 2060 test -f "$ac_file" || continue 2061 case $ac_file in 2062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2063 ;; 2064 conftest.$ac_ext ) 2065 # This is the source file. 2066 ;; 2067 [ab].out ) 2068 # We found the default executable, but exeext='' is most 2069 # certainly right. 2070 break;; 2071 *.* ) 2072 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2073 # FIXME: I believe we export ac_cv_exeext for Libtool, 2074 # but it would be cool to find out if it's true. Does anybody 2075 # maintain Libtool? --akim. 2076 export ac_cv_exeext 2077 break;; 2078 * ) 2079 break;; 2080 esac 2081done 2082else 2083 echo "$as_me: failed program was:" >&5 2084sed 's/^/| /' conftest.$ac_ext >&5 2085 2086{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2087See \`config.log' for more details." >&5 2088echo "$as_me: error: C compiler cannot create executables 2089See \`config.log' for more details." >&2;} 2090 { (exit 77); exit 77; }; } 2091fi 2092 2093ac_exeext=$ac_cv_exeext 2094echo "$as_me:$LINENO: result: $ac_file" >&5 2095echo "${ECHO_T}$ac_file" >&6 2096 2097# Check the compiler produces executables we can run. If not, either 2098# the compiler is broken, or we cross compile. 2099echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2100echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2101# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2102# If not cross compiling, check that we can run a simple program. 2103if test "$cross_compiling" != yes; then 2104 if { ac_try='./$ac_file' 2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2106 (eval $ac_try) 2>&5 2107 ac_status=$? 2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2109 (exit $ac_status); }; }; then 2110 cross_compiling=no 2111 else 2112 if test "$cross_compiling" = maybe; then 2113 cross_compiling=yes 2114 else 2115 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2116If you meant to cross compile, use \`--host'. 2117See \`config.log' for more details." >&5 2118echo "$as_me: error: cannot run C compiled programs. 2119If you meant to cross compile, use \`--host'. 2120See \`config.log' for more details." >&2;} 2121 { (exit 1); exit 1; }; } 2122 fi 2123 fi 2124fi 2125echo "$as_me:$LINENO: result: yes" >&5 2126echo "${ECHO_T}yes" >&6 2127 2128rm -f a.out a.exe conftest$ac_cv_exeext b.out 2129ac_clean_files=$ac_clean_files_save 2130# Check the compiler produces executables we can run. If not, either 2131# the compiler is broken, or we cross compile. 2132echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2133echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2134echo "$as_me:$LINENO: result: $cross_compiling" >&5 2135echo "${ECHO_T}$cross_compiling" >&6 2136 2137echo "$as_me:$LINENO: checking for suffix of executables" >&5 2138echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2140 (eval $ac_link) 2>&5 2141 ac_status=$? 2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2143 (exit $ac_status); }; then 2144 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2145# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2146# work properly (i.e., refer to `conftest.exe'), while it won't with 2147# `rm'. 2148for ac_file in conftest.exe conftest conftest.*; do 2149 test -f "$ac_file" || continue 2150 case $ac_file in 2151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2152 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2153 export ac_cv_exeext 2154 break;; 2155 * ) break;; 2156 esac 2157done 2158else 2159 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2160See \`config.log' for more details." >&5 2161echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2162See \`config.log' for more details." >&2;} 2163 { (exit 1); exit 1; }; } 2164fi 2165 2166rm -f conftest$ac_cv_exeext 2167echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2168echo "${ECHO_T}$ac_cv_exeext" >&6 2169 2170rm -f conftest.$ac_ext 2171EXEEXT=$ac_cv_exeext 2172ac_exeext=$EXEEXT 2173echo "$as_me:$LINENO: checking for suffix of object files" >&5 2174echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2175if test "${ac_cv_objext+set}" = set; then 2176 echo $ECHO_N "(cached) $ECHO_C" >&6 2177else 2178 cat >conftest.$ac_ext <<_ACEOF 2179/* confdefs.h. */ 2180_ACEOF 2181cat confdefs.h >>conftest.$ac_ext 2182cat >>conftest.$ac_ext <<_ACEOF 2183/* end confdefs.h. */ 2184 2185int 2186main () 2187{ 2188 2189 ; 2190 return 0; 2191} 2192_ACEOF 2193rm -f conftest.o conftest.obj 2194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2195 (eval $ac_compile) 2>&5 2196 ac_status=$? 2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2198 (exit $ac_status); }; then 2199 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2200 case $ac_file in 2201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2202 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2203 break;; 2204 esac 2205done 2206else 2207 echo "$as_me: failed program was:" >&5 2208sed 's/^/| /' conftest.$ac_ext >&5 2209 2210{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2211See \`config.log' for more details." >&5 2212echo "$as_me: error: cannot compute suffix of object files: cannot compile 2213See \`config.log' for more details." >&2;} 2214 { (exit 1); exit 1; }; } 2215fi 2216 2217rm -f conftest.$ac_cv_objext conftest.$ac_ext 2218fi 2219echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2220echo "${ECHO_T}$ac_cv_objext" >&6 2221OBJEXT=$ac_cv_objext 2222ac_objext=$OBJEXT 2223echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2224echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2225if test "${ac_cv_c_compiler_gnu+set}" = set; then 2226 echo $ECHO_N "(cached) $ECHO_C" >&6 2227else 2228 cat >conftest.$ac_ext <<_ACEOF 2229/* confdefs.h. */ 2230_ACEOF 2231cat confdefs.h >>conftest.$ac_ext 2232cat >>conftest.$ac_ext <<_ACEOF 2233/* end confdefs.h. */ 2234 2235int 2236main () 2237{ 2238#ifndef __GNUC__ 2239 choke me 2240#endif 2241 2242 ; 2243 return 0; 2244} 2245_ACEOF 2246rm -f conftest.$ac_objext 2247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2248 (eval $ac_compile) 2>conftest.er1 2249 ac_status=$? 2250 grep -v '^ *+' conftest.er1 >conftest.err 2251 rm -f conftest.er1 2252 cat conftest.err >&5 2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2254 (exit $ac_status); } && 2255 { ac_try='test -z "$ac_c_werror_flag" 2256 || test ! -s conftest.err' 2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2258 (eval $ac_try) 2>&5 2259 ac_status=$? 2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2261 (exit $ac_status); }; } && 2262 { ac_try='test -s conftest.$ac_objext' 2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2264 (eval $ac_try) 2>&5 2265 ac_status=$? 2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2267 (exit $ac_status); }; }; then 2268 ac_compiler_gnu=yes 2269else 2270 echo "$as_me: failed program was:" >&5 2271sed 's/^/| /' conftest.$ac_ext >&5 2272 2273ac_compiler_gnu=no 2274fi 2275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2276ac_cv_c_compiler_gnu=$ac_compiler_gnu 2277 2278fi 2279echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2280echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2281GCC=`test $ac_compiler_gnu = yes && echo yes` 2282ac_test_CFLAGS=${CFLAGS+set} 2283ac_save_CFLAGS=$CFLAGS 2284CFLAGS="-g" 2285echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2286echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2287if test "${ac_cv_prog_cc_g+set}" = set; then 2288 echo $ECHO_N "(cached) $ECHO_C" >&6 2289else 2290 cat >conftest.$ac_ext <<_ACEOF 2291/* confdefs.h. */ 2292_ACEOF 2293cat confdefs.h >>conftest.$ac_ext 2294cat >>conftest.$ac_ext <<_ACEOF 2295/* end confdefs.h. */ 2296 2297int 2298main () 2299{ 2300 2301 ; 2302 return 0; 2303} 2304_ACEOF 2305rm -f conftest.$ac_objext 2306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2307 (eval $ac_compile) 2>conftest.er1 2308 ac_status=$? 2309 grep -v '^ *+' conftest.er1 >conftest.err 2310 rm -f conftest.er1 2311 cat conftest.err >&5 2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2313 (exit $ac_status); } && 2314 { ac_try='test -z "$ac_c_werror_flag" 2315 || test ! -s conftest.err' 2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2317 (eval $ac_try) 2>&5 2318 ac_status=$? 2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2320 (exit $ac_status); }; } && 2321 { ac_try='test -s conftest.$ac_objext' 2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2323 (eval $ac_try) 2>&5 2324 ac_status=$? 2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2326 (exit $ac_status); }; }; then 2327 ac_cv_prog_cc_g=yes 2328else 2329 echo "$as_me: failed program was:" >&5 2330sed 's/^/| /' conftest.$ac_ext >&5 2331 2332ac_cv_prog_cc_g=no 2333fi 2334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2335fi 2336echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2337echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2338if test "$ac_test_CFLAGS" = set; then 2339 CFLAGS=$ac_save_CFLAGS 2340elif test $ac_cv_prog_cc_g = yes; then 2341 if test "$GCC" = yes; then 2342 CFLAGS="-g -O2" 2343 else 2344 CFLAGS="-g" 2345 fi 2346else 2347 if test "$GCC" = yes; then 2348 CFLAGS="-O2" 2349 else 2350 CFLAGS= 2351 fi 2352fi 2353echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2354echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2355if test "${ac_cv_prog_cc_stdc+set}" = set; then 2356 echo $ECHO_N "(cached) $ECHO_C" >&6 2357else 2358 ac_cv_prog_cc_stdc=no 2359ac_save_CC=$CC 2360cat >conftest.$ac_ext <<_ACEOF 2361/* confdefs.h. */ 2362_ACEOF 2363cat confdefs.h >>conftest.$ac_ext 2364cat >>conftest.$ac_ext <<_ACEOF 2365/* end confdefs.h. */ 2366#include <stdarg.h> 2367#include <stdio.h> 2368#include <sys/types.h> 2369#include <sys/stat.h> 2370/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2371struct buf { int x; }; 2372FILE * (*rcsopen) (struct buf *, struct stat *, int); 2373static char *e (p, i) 2374 char **p; 2375 int i; 2376{ 2377 return p[i]; 2378} 2379static char *f (char * (*g) (char **, int), char **p, ...) 2380{ 2381 char *s; 2382 va_list v; 2383 va_start (v,p); 2384 s = g (p, va_arg (v,int)); 2385 va_end (v); 2386 return s; 2387} 2388 2389/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2390 function prototypes and stuff, but not '\xHH' hex character constants. 2391 These don't provoke an error unfortunately, instead are silently treated 2392 as 'x'. The following induces an error, until -std1 is added to get 2393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2394 array size at least. It's necessary to write '\x00'==0 to get something 2395 that's true only with -std1. */ 2396int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2397 2398int test (int i, double x); 2399struct s1 {int (*f) (int a);}; 2400struct s2 {int (*f) (double a);}; 2401int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2402int argc; 2403char **argv; 2404int 2405main () 2406{ 2407return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2408 ; 2409 return 0; 2410} 2411_ACEOF 2412# Don't try gcc -ansi; that turns off useful extensions and 2413# breaks some systems' header files. 2414# AIX -qlanglvl=ansi 2415# Ultrix and OSF/1 -std1 2416# HP-UX 10.20 and later -Ae 2417# HP-UX older versions -Aa -D_HPUX_SOURCE 2418# SVR4 -Xc -D__EXTENSIONS__ 2419for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2420do 2421 CC="$ac_save_CC $ac_arg" 2422 rm -f conftest.$ac_objext 2423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2424 (eval $ac_compile) 2>conftest.er1 2425 ac_status=$? 2426 grep -v '^ *+' conftest.er1 >conftest.err 2427 rm -f conftest.er1 2428 cat conftest.err >&5 2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2430 (exit $ac_status); } && 2431 { ac_try='test -z "$ac_c_werror_flag" 2432 || test ! -s conftest.err' 2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2434 (eval $ac_try) 2>&5 2435 ac_status=$? 2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2437 (exit $ac_status); }; } && 2438 { ac_try='test -s conftest.$ac_objext' 2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2440 (eval $ac_try) 2>&5 2441 ac_status=$? 2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2443 (exit $ac_status); }; }; then 2444 ac_cv_prog_cc_stdc=$ac_arg 2445break 2446else 2447 echo "$as_me: failed program was:" >&5 2448sed 's/^/| /' conftest.$ac_ext >&5 2449 2450fi 2451rm -f conftest.err conftest.$ac_objext 2452done 2453rm -f conftest.$ac_ext conftest.$ac_objext 2454CC=$ac_save_CC 2455 2456fi 2457 2458case "x$ac_cv_prog_cc_stdc" in 2459 x|xno) 2460 echo "$as_me:$LINENO: result: none needed" >&5 2461echo "${ECHO_T}none needed" >&6 ;; 2462 *) 2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2464echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2465 CC="$CC $ac_cv_prog_cc_stdc" ;; 2466esac 2467 2468# Some people use a C++ compiler to compile C. Since we use `exit', 2469# in C++ we need to declare it. In case someone uses the same compiler 2470# for both compiling C and C++ we need to have the C++ compiler decide 2471# the declaration of exit, since it's the most demanding environment. 2472cat >conftest.$ac_ext <<_ACEOF 2473#ifndef __cplusplus 2474 choke me 2475#endif 2476_ACEOF 2477rm -f conftest.$ac_objext 2478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2479 (eval $ac_compile) 2>conftest.er1 2480 ac_status=$? 2481 grep -v '^ *+' conftest.er1 >conftest.err 2482 rm -f conftest.er1 2483 cat conftest.err >&5 2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2485 (exit $ac_status); } && 2486 { ac_try='test -z "$ac_c_werror_flag" 2487 || test ! -s conftest.err' 2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2489 (eval $ac_try) 2>&5 2490 ac_status=$? 2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2492 (exit $ac_status); }; } && 2493 { ac_try='test -s conftest.$ac_objext' 2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2495 (eval $ac_try) 2>&5 2496 ac_status=$? 2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2498 (exit $ac_status); }; }; then 2499 for ac_declaration in \ 2500 '' \ 2501 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2502 'extern "C" void std::exit (int); using std::exit;' \ 2503 'extern "C" void exit (int) throw ();' \ 2504 'extern "C" void exit (int);' \ 2505 'void exit (int);' 2506do 2507 cat >conftest.$ac_ext <<_ACEOF 2508/* confdefs.h. */ 2509_ACEOF 2510cat confdefs.h >>conftest.$ac_ext 2511cat >>conftest.$ac_ext <<_ACEOF 2512/* end confdefs.h. */ 2513$ac_declaration 2514#include <stdlib.h> 2515int 2516main () 2517{ 2518exit (42); 2519 ; 2520 return 0; 2521} 2522_ACEOF 2523rm -f conftest.$ac_objext 2524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2525 (eval $ac_compile) 2>conftest.er1 2526 ac_status=$? 2527 grep -v '^ *+' conftest.er1 >conftest.err 2528 rm -f conftest.er1 2529 cat conftest.err >&5 2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2531 (exit $ac_status); } && 2532 { ac_try='test -z "$ac_c_werror_flag" 2533 || test ! -s conftest.err' 2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2535 (eval $ac_try) 2>&5 2536 ac_status=$? 2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538 (exit $ac_status); }; } && 2539 { ac_try='test -s conftest.$ac_objext' 2540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2541 (eval $ac_try) 2>&5 2542 ac_status=$? 2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2544 (exit $ac_status); }; }; then 2545 : 2546else 2547 echo "$as_me: failed program was:" >&5 2548sed 's/^/| /' conftest.$ac_ext >&5 2549 2550continue 2551fi 2552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2553 cat >conftest.$ac_ext <<_ACEOF 2554/* confdefs.h. */ 2555_ACEOF 2556cat confdefs.h >>conftest.$ac_ext 2557cat >>conftest.$ac_ext <<_ACEOF 2558/* end confdefs.h. */ 2559$ac_declaration 2560int 2561main () 2562{ 2563exit (42); 2564 ; 2565 return 0; 2566} 2567_ACEOF 2568rm -f conftest.$ac_objext 2569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2570 (eval $ac_compile) 2>conftest.er1 2571 ac_status=$? 2572 grep -v '^ *+' conftest.er1 >conftest.err 2573 rm -f conftest.er1 2574 cat conftest.err >&5 2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2576 (exit $ac_status); } && 2577 { ac_try='test -z "$ac_c_werror_flag" 2578 || test ! -s conftest.err' 2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2580 (eval $ac_try) 2>&5 2581 ac_status=$? 2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2583 (exit $ac_status); }; } && 2584 { ac_try='test -s conftest.$ac_objext' 2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2586 (eval $ac_try) 2>&5 2587 ac_status=$? 2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2589 (exit $ac_status); }; }; then 2590 break 2591else 2592 echo "$as_me: failed program was:" >&5 2593sed 's/^/| /' conftest.$ac_ext >&5 2594 2595fi 2596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2597done 2598rm -f conftest* 2599if test -n "$ac_declaration"; then 2600 echo '#ifdef __cplusplus' >>confdefs.h 2601 echo $ac_declaration >>confdefs.h 2602 echo '#endif' >>confdefs.h 2603fi 2604 2605else 2606 echo "$as_me: failed program was:" >&5 2607sed 's/^/| /' conftest.$ac_ext >&5 2608 2609fi 2610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2611ac_ext=c 2612ac_cpp='$CPP $CPPFLAGS' 2613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2615ac_compiler_gnu=$ac_cv_c_compiler_gnu 2616 2617 2618# limits header checks must come early to prevent 2619# an autoconf bug that throws errors on configure 2620 2621ac_ext=c 2622ac_cpp='$CPP $CPPFLAGS' 2623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2625ac_compiler_gnu=$ac_cv_c_compiler_gnu 2626echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2627echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2628# On Suns, sometimes $CPP names a directory. 2629if test -n "$CPP" && test -d "$CPP"; then 2630 CPP= 2631fi 2632if test -z "$CPP"; then 2633 if test "${ac_cv_prog_CPP+set}" = set; then 2634 echo $ECHO_N "(cached) $ECHO_C" >&6 2635else 2636 # Double quotes because CPP needs to be expanded 2637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2638 do 2639 ac_preproc_ok=false 2640for ac_c_preproc_warn_flag in '' yes 2641do 2642 # Use a header file that comes with gcc, so configuring glibc 2643 # with a fresh cross-compiler works. 2644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2645 # <limits.h> exists even on freestanding compilers. 2646 # On the NeXT, cc -E runs the code through the compiler's parser, 2647 # not just through cpp. "Syntax error" is here to catch this case. 2648 cat >conftest.$ac_ext <<_ACEOF 2649/* confdefs.h. */ 2650_ACEOF 2651cat confdefs.h >>conftest.$ac_ext 2652cat >>conftest.$ac_ext <<_ACEOF 2653/* end confdefs.h. */ 2654#ifdef __STDC__ 2655# include <limits.h> 2656#else 2657# include <assert.h> 2658#endif 2659 Syntax error 2660_ACEOF 2661if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2663 ac_status=$? 2664 grep -v '^ *+' conftest.er1 >conftest.err 2665 rm -f conftest.er1 2666 cat conftest.err >&5 2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2668 (exit $ac_status); } >/dev/null; then 2669 if test -s conftest.err; then 2670 ac_cpp_err=$ac_c_preproc_warn_flag 2671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2672 else 2673 ac_cpp_err= 2674 fi 2675else 2676 ac_cpp_err=yes 2677fi 2678if test -z "$ac_cpp_err"; then 2679 : 2680else 2681 echo "$as_me: failed program was:" >&5 2682sed 's/^/| /' conftest.$ac_ext >&5 2683 2684 # Broken: fails on valid input. 2685continue 2686fi 2687rm -f conftest.err conftest.$ac_ext 2688 2689 # OK, works on sane cases. Now check whether non-existent headers 2690 # can be detected and how. 2691 cat >conftest.$ac_ext <<_ACEOF 2692/* confdefs.h. */ 2693_ACEOF 2694cat confdefs.h >>conftest.$ac_ext 2695cat >>conftest.$ac_ext <<_ACEOF 2696/* end confdefs.h. */ 2697#include <ac_nonexistent.h> 2698_ACEOF 2699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2701 ac_status=$? 2702 grep -v '^ *+' conftest.er1 >conftest.err 2703 rm -f conftest.er1 2704 cat conftest.err >&5 2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2706 (exit $ac_status); } >/dev/null; then 2707 if test -s conftest.err; then 2708 ac_cpp_err=$ac_c_preproc_warn_flag 2709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2710 else 2711 ac_cpp_err= 2712 fi 2713else 2714 ac_cpp_err=yes 2715fi 2716if test -z "$ac_cpp_err"; then 2717 # Broken: success on invalid input. 2718continue 2719else 2720 echo "$as_me: failed program was:" >&5 2721sed 's/^/| /' conftest.$ac_ext >&5 2722 2723 # Passes both tests. 2724ac_preproc_ok=: 2725break 2726fi 2727rm -f conftest.err conftest.$ac_ext 2728 2729done 2730# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2731rm -f conftest.err conftest.$ac_ext 2732if $ac_preproc_ok; then 2733 break 2734fi 2735 2736 done 2737 ac_cv_prog_CPP=$CPP 2738 2739fi 2740 CPP=$ac_cv_prog_CPP 2741else 2742 ac_cv_prog_CPP=$CPP 2743fi 2744echo "$as_me:$LINENO: result: $CPP" >&5 2745echo "${ECHO_T}$CPP" >&6 2746ac_preproc_ok=false 2747for ac_c_preproc_warn_flag in '' yes 2748do 2749 # Use a header file that comes with gcc, so configuring glibc 2750 # with a fresh cross-compiler works. 2751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2752 # <limits.h> exists even on freestanding compilers. 2753 # On the NeXT, cc -E runs the code through the compiler's parser, 2754 # not just through cpp. "Syntax error" is here to catch this case. 2755 cat >conftest.$ac_ext <<_ACEOF 2756/* confdefs.h. */ 2757_ACEOF 2758cat confdefs.h >>conftest.$ac_ext 2759cat >>conftest.$ac_ext <<_ACEOF 2760/* end confdefs.h. */ 2761#ifdef __STDC__ 2762# include <limits.h> 2763#else 2764# include <assert.h> 2765#endif 2766 Syntax error 2767_ACEOF 2768if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2770 ac_status=$? 2771 grep -v '^ *+' conftest.er1 >conftest.err 2772 rm -f conftest.er1 2773 cat conftest.err >&5 2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2775 (exit $ac_status); } >/dev/null; then 2776 if test -s conftest.err; then 2777 ac_cpp_err=$ac_c_preproc_warn_flag 2778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2779 else 2780 ac_cpp_err= 2781 fi 2782else 2783 ac_cpp_err=yes 2784fi 2785if test -z "$ac_cpp_err"; then 2786 : 2787else 2788 echo "$as_me: failed program was:" >&5 2789sed 's/^/| /' conftest.$ac_ext >&5 2790 2791 # Broken: fails on valid input. 2792continue 2793fi 2794rm -f conftest.err conftest.$ac_ext 2795 2796 # OK, works on sane cases. Now check whether non-existent headers 2797 # can be detected and how. 2798 cat >conftest.$ac_ext <<_ACEOF 2799/* confdefs.h. */ 2800_ACEOF 2801cat confdefs.h >>conftest.$ac_ext 2802cat >>conftest.$ac_ext <<_ACEOF 2803/* end confdefs.h. */ 2804#include <ac_nonexistent.h> 2805_ACEOF 2806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2808 ac_status=$? 2809 grep -v '^ *+' conftest.er1 >conftest.err 2810 rm -f conftest.er1 2811 cat conftest.err >&5 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2813 (exit $ac_status); } >/dev/null; then 2814 if test -s conftest.err; then 2815 ac_cpp_err=$ac_c_preproc_warn_flag 2816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2817 else 2818 ac_cpp_err= 2819 fi 2820else 2821 ac_cpp_err=yes 2822fi 2823if test -z "$ac_cpp_err"; then 2824 # Broken: success on invalid input. 2825continue 2826else 2827 echo "$as_me: failed program was:" >&5 2828sed 's/^/| /' conftest.$ac_ext >&5 2829 2830 # Passes both tests. 2831ac_preproc_ok=: 2832break 2833fi 2834rm -f conftest.err conftest.$ac_ext 2835 2836done 2837# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2838rm -f conftest.err conftest.$ac_ext 2839if $ac_preproc_ok; then 2840 : 2841else 2842 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2843See \`config.log' for more details." >&5 2844echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2845See \`config.log' for more details." >&2;} 2846 { (exit 1); exit 1; }; } 2847fi 2848 2849ac_ext=c 2850ac_cpp='$CPP $CPPFLAGS' 2851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2853ac_compiler_gnu=$ac_cv_c_compiler_gnu 2854 2855 2856echo "$as_me:$LINENO: checking for egrep" >&5 2857echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2858if test "${ac_cv_prog_egrep+set}" = set; then 2859 echo $ECHO_N "(cached) $ECHO_C" >&6 2860else 2861 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2862 then ac_cv_prog_egrep='grep -E' 2863 else ac_cv_prog_egrep='egrep' 2864 fi 2865fi 2866echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2867echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2868 EGREP=$ac_cv_prog_egrep 2869 2870 2871echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2872echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2873if test "${ac_cv_header_stdc+set}" = set; then 2874 echo $ECHO_N "(cached) $ECHO_C" >&6 2875else 2876 cat >conftest.$ac_ext <<_ACEOF 2877/* confdefs.h. */ 2878_ACEOF 2879cat confdefs.h >>conftest.$ac_ext 2880cat >>conftest.$ac_ext <<_ACEOF 2881/* end confdefs.h. */ 2882#include <stdlib.h> 2883#include <stdarg.h> 2884#include <string.h> 2885#include <float.h> 2886 2887int 2888main () 2889{ 2890 2891 ; 2892 return 0; 2893} 2894_ACEOF 2895rm -f conftest.$ac_objext 2896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2897 (eval $ac_compile) 2>conftest.er1 2898 ac_status=$? 2899 grep -v '^ *+' conftest.er1 >conftest.err 2900 rm -f conftest.er1 2901 cat conftest.err >&5 2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2903 (exit $ac_status); } && 2904 { ac_try='test -z "$ac_c_werror_flag" 2905 || test ! -s conftest.err' 2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2907 (eval $ac_try) 2>&5 2908 ac_status=$? 2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2910 (exit $ac_status); }; } && 2911 { ac_try='test -s conftest.$ac_objext' 2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2913 (eval $ac_try) 2>&5 2914 ac_status=$? 2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2916 (exit $ac_status); }; }; then 2917 ac_cv_header_stdc=yes 2918else 2919 echo "$as_me: failed program was:" >&5 2920sed 's/^/| /' conftest.$ac_ext >&5 2921 2922ac_cv_header_stdc=no 2923fi 2924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2925 2926if test $ac_cv_header_stdc = yes; then 2927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2928 cat >conftest.$ac_ext <<_ACEOF 2929/* confdefs.h. */ 2930_ACEOF 2931cat confdefs.h >>conftest.$ac_ext 2932cat >>conftest.$ac_ext <<_ACEOF 2933/* end confdefs.h. */ 2934#include <string.h> 2935 2936_ACEOF 2937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2938 $EGREP "memchr" >/dev/null 2>&1; then 2939 : 2940else 2941 ac_cv_header_stdc=no 2942fi 2943rm -f conftest* 2944 2945fi 2946 2947if test $ac_cv_header_stdc = yes; then 2948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2949 cat >conftest.$ac_ext <<_ACEOF 2950/* confdefs.h. */ 2951_ACEOF 2952cat confdefs.h >>conftest.$ac_ext 2953cat >>conftest.$ac_ext <<_ACEOF 2954/* end confdefs.h. */ 2955#include <stdlib.h> 2956 2957_ACEOF 2958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2959 $EGREP "free" >/dev/null 2>&1; then 2960 : 2961else 2962 ac_cv_header_stdc=no 2963fi 2964rm -f conftest* 2965 2966fi 2967 2968if test $ac_cv_header_stdc = yes; then 2969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2970 if test "$cross_compiling" = yes; then 2971 : 2972else 2973 cat >conftest.$ac_ext <<_ACEOF 2974/* confdefs.h. */ 2975_ACEOF 2976cat confdefs.h >>conftest.$ac_ext 2977cat >>conftest.$ac_ext <<_ACEOF 2978/* end confdefs.h. */ 2979#include <ctype.h> 2980#if ((' ' & 0x0FF) == 0x020) 2981# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2982# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2983#else 2984# define ISLOWER(c) \ 2985 (('a' <= (c) && (c) <= 'i') \ 2986 || ('j' <= (c) && (c) <= 'r') \ 2987 || ('s' <= (c) && (c) <= 'z')) 2988# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2989#endif 2990 2991#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2992int 2993main () 2994{ 2995 int i; 2996 for (i = 0; i < 256; i++) 2997 if (XOR (islower (i), ISLOWER (i)) 2998 || toupper (i) != TOUPPER (i)) 2999 exit(2); 3000 exit (0); 3001} 3002_ACEOF 3003rm -f conftest$ac_exeext 3004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3005 (eval $ac_link) 2>&5 3006 ac_status=$? 3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3010 (eval $ac_try) 2>&5 3011 ac_status=$? 3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3013 (exit $ac_status); }; }; then 3014 : 3015else 3016 echo "$as_me: program exited with status $ac_status" >&5 3017echo "$as_me: failed program was:" >&5 3018sed 's/^/| /' conftest.$ac_ext >&5 3019 3020( exit $ac_status ) 3021ac_cv_header_stdc=no 3022fi 3023rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3024fi 3025fi 3026fi 3027echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3028echo "${ECHO_T}$ac_cv_header_stdc" >&6 3029if test $ac_cv_header_stdc = yes; then 3030 3031cat >>confdefs.h <<\_ACEOF 3032#define STDC_HEADERS 1 3033_ACEOF 3034 3035fi 3036 3037# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3048 inttypes.h stdint.h unistd.h 3049do 3050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3051echo "$as_me:$LINENO: checking for $ac_header" >&5 3052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3053if eval "test \"\${$as_ac_Header+set}\" = set"; then 3054 echo $ECHO_N "(cached) $ECHO_C" >&6 3055else 3056 cat >conftest.$ac_ext <<_ACEOF 3057/* confdefs.h. */ 3058_ACEOF 3059cat confdefs.h >>conftest.$ac_ext 3060cat >>conftest.$ac_ext <<_ACEOF 3061/* end confdefs.h. */ 3062$ac_includes_default 3063 3064#include <$ac_header> 3065_ACEOF 3066rm -f conftest.$ac_objext 3067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3068 (eval $ac_compile) 2>conftest.er1 3069 ac_status=$? 3070 grep -v '^ *+' conftest.er1 >conftest.err 3071 rm -f conftest.er1 3072 cat conftest.err >&5 3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3074 (exit $ac_status); } && 3075 { ac_try='test -z "$ac_c_werror_flag" 3076 || test ! -s conftest.err' 3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3078 (eval $ac_try) 2>&5 3079 ac_status=$? 3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3081 (exit $ac_status); }; } && 3082 { ac_try='test -s conftest.$ac_objext' 3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3084 (eval $ac_try) 2>&5 3085 ac_status=$? 3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3087 (exit $ac_status); }; }; then 3088 eval "$as_ac_Header=yes" 3089else 3090 echo "$as_me: failed program was:" >&5 3091sed 's/^/| /' conftest.$ac_ext >&5 3092 3093eval "$as_ac_Header=no" 3094fi 3095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3096fi 3097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3099if test `eval echo '${'$as_ac_Header'}'` = yes; then 3100 cat >>confdefs.h <<_ACEOF 3101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3102_ACEOF 3103 3104fi 3105 3106done 3107 3108 3109if test "${ac_cv_header_limits_h+set}" = set; then 3110 echo "$as_me:$LINENO: checking for limits.h" >&5 3111echo $ECHO_N "checking for limits.h... $ECHO_C" >&6 3112if test "${ac_cv_header_limits_h+set}" = set; then 3113 echo $ECHO_N "(cached) $ECHO_C" >&6 3114fi 3115echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 3116echo "${ECHO_T}$ac_cv_header_limits_h" >&6 3117else 3118 # Is the header compilable? 3119echo "$as_me:$LINENO: checking limits.h usability" >&5 3120echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6 3121cat >conftest.$ac_ext <<_ACEOF 3122/* confdefs.h. */ 3123_ACEOF 3124cat confdefs.h >>conftest.$ac_ext 3125cat >>conftest.$ac_ext <<_ACEOF 3126/* end confdefs.h. */ 3127$ac_includes_default 3128#include <limits.h> 3129_ACEOF 3130rm -f conftest.$ac_objext 3131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3132 (eval $ac_compile) 2>conftest.er1 3133 ac_status=$? 3134 grep -v '^ *+' conftest.er1 >conftest.err 3135 rm -f conftest.er1 3136 cat conftest.err >&5 3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3138 (exit $ac_status); } && 3139 { ac_try='test -z "$ac_c_werror_flag" 3140 || test ! -s conftest.err' 3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3142 (eval $ac_try) 2>&5 3143 ac_status=$? 3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3145 (exit $ac_status); }; } && 3146 { ac_try='test -s conftest.$ac_objext' 3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3148 (eval $ac_try) 2>&5 3149 ac_status=$? 3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3151 (exit $ac_status); }; }; then 3152 ac_header_compiler=yes 3153else 3154 echo "$as_me: failed program was:" >&5 3155sed 's/^/| /' conftest.$ac_ext >&5 3156 3157ac_header_compiler=no 3158fi 3159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3160echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3161echo "${ECHO_T}$ac_header_compiler" >&6 3162 3163# Is the header present? 3164echo "$as_me:$LINENO: checking limits.h presence" >&5 3165echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6 3166cat >conftest.$ac_ext <<_ACEOF 3167/* confdefs.h. */ 3168_ACEOF 3169cat confdefs.h >>conftest.$ac_ext 3170cat >>conftest.$ac_ext <<_ACEOF 3171/* end confdefs.h. */ 3172#include <limits.h> 3173_ACEOF 3174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3176 ac_status=$? 3177 grep -v '^ *+' conftest.er1 >conftest.err 3178 rm -f conftest.er1 3179 cat conftest.err >&5 3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 (exit $ac_status); } >/dev/null; then 3182 if test -s conftest.err; then 3183 ac_cpp_err=$ac_c_preproc_warn_flag 3184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3185 else 3186 ac_cpp_err= 3187 fi 3188else 3189 ac_cpp_err=yes 3190fi 3191if test -z "$ac_cpp_err"; then 3192 ac_header_preproc=yes 3193else 3194 echo "$as_me: failed program was:" >&5 3195sed 's/^/| /' conftest.$ac_ext >&5 3196 3197 ac_header_preproc=no 3198fi 3199rm -f conftest.err conftest.$ac_ext 3200echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3201echo "${ECHO_T}$ac_header_preproc" >&6 3202 3203# So? What about this header? 3204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3205 yes:no: ) 3206 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 3207echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3208 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 3209echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 3210 ac_header_preproc=yes 3211 ;; 3212 no:yes:* ) 3213 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 3214echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 3215 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 3216echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 3217 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 3218echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 3219 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 3220echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 3221 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 3222echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 3223 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 3224echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 3225 ( 3226 cat <<\_ASBOX 3227## ----------------------------- ## 3228## Report this to the tk lists. ## 3229## ----------------------------- ## 3230_ASBOX 3231 ) | 3232 sed "s/^/$as_me: WARNING: /" >&2 3233 ;; 3234esac 3235echo "$as_me:$LINENO: checking for limits.h" >&5 3236echo $ECHO_N "checking for limits.h... $ECHO_C" >&6 3237if test "${ac_cv_header_limits_h+set}" = set; then 3238 echo $ECHO_N "(cached) $ECHO_C" >&6 3239else 3240 ac_cv_header_limits_h=$ac_header_preproc 3241fi 3242echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 3243echo "${ECHO_T}$ac_cv_header_limits_h" >&6 3244 3245fi 3246if test $ac_cv_header_limits_h = yes; then 3247 3248cat >>confdefs.h <<\_ACEOF 3249#define HAVE_LIMITS_H 1 3250_ACEOF 3251 3252else 3253 3254cat >>confdefs.h <<\_ACEOF 3255#define NO_LIMITS_H 1 3256_ACEOF 3257 3258fi 3259 3260 3261 3262#-------------------------------------------------------------------- 3263# Supply a substitute for stdlib.h if it doesn't define strtol, 3264# strtoul, or strtod (which it doesn't in some versions of SunOS). 3265#-------------------------------------------------------------------- 3266 3267if test "${ac_cv_header_stdlib_h+set}" = set; then 3268 echo "$as_me:$LINENO: checking for stdlib.h" >&5 3269echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 3270if test "${ac_cv_header_stdlib_h+set}" = set; then 3271 echo $ECHO_N "(cached) $ECHO_C" >&6 3272fi 3273echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 3274echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 3275else 3276 # Is the header compilable? 3277echo "$as_me:$LINENO: checking stdlib.h usability" >&5 3278echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6 3279cat >conftest.$ac_ext <<_ACEOF 3280/* confdefs.h. */ 3281_ACEOF 3282cat confdefs.h >>conftest.$ac_ext 3283cat >>conftest.$ac_ext <<_ACEOF 3284/* end confdefs.h. */ 3285$ac_includes_default 3286#include <stdlib.h> 3287_ACEOF 3288rm -f conftest.$ac_objext 3289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3290 (eval $ac_compile) 2>conftest.er1 3291 ac_status=$? 3292 grep -v '^ *+' conftest.er1 >conftest.err 3293 rm -f conftest.er1 3294 cat conftest.err >&5 3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3296 (exit $ac_status); } && 3297 { ac_try='test -z "$ac_c_werror_flag" 3298 || test ! -s conftest.err' 3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3300 (eval $ac_try) 2>&5 3301 ac_status=$? 3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3303 (exit $ac_status); }; } && 3304 { ac_try='test -s conftest.$ac_objext' 3305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3306 (eval $ac_try) 2>&5 3307 ac_status=$? 3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3309 (exit $ac_status); }; }; then 3310 ac_header_compiler=yes 3311else 3312 echo "$as_me: failed program was:" >&5 3313sed 's/^/| /' conftest.$ac_ext >&5 3314 3315ac_header_compiler=no 3316fi 3317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3318echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3319echo "${ECHO_T}$ac_header_compiler" >&6 3320 3321# Is the header present? 3322echo "$as_me:$LINENO: checking stdlib.h presence" >&5 3323echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6 3324cat >conftest.$ac_ext <<_ACEOF 3325/* confdefs.h. */ 3326_ACEOF 3327cat confdefs.h >>conftest.$ac_ext 3328cat >>conftest.$ac_ext <<_ACEOF 3329/* end confdefs.h. */ 3330#include <stdlib.h> 3331_ACEOF 3332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3334 ac_status=$? 3335 grep -v '^ *+' conftest.er1 >conftest.err 3336 rm -f conftest.er1 3337 cat conftest.err >&5 3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3339 (exit $ac_status); } >/dev/null; then 3340 if test -s conftest.err; then 3341 ac_cpp_err=$ac_c_preproc_warn_flag 3342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3343 else 3344 ac_cpp_err= 3345 fi 3346else 3347 ac_cpp_err=yes 3348fi 3349if test -z "$ac_cpp_err"; then 3350 ac_header_preproc=yes 3351else 3352 echo "$as_me: failed program was:" >&5 3353sed 's/^/| /' conftest.$ac_ext >&5 3354 3355 ac_header_preproc=no 3356fi 3357rm -f conftest.err conftest.$ac_ext 3358echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3359echo "${ECHO_T}$ac_header_preproc" >&6 3360 3361# So? What about this header? 3362case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3363 yes:no: ) 3364 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 3365echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3366 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 3367echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 3368 ac_header_preproc=yes 3369 ;; 3370 no:yes:* ) 3371 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 3372echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 3373 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 3374echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 3375 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 3376echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 3377 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 3378echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 3379 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 3380echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 3381 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 3382echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 3383 ( 3384 cat <<\_ASBOX 3385## ----------------------------- ## 3386## Report this to the tk lists. ## 3387## ----------------------------- ## 3388_ASBOX 3389 ) | 3390 sed "s/^/$as_me: WARNING: /" >&2 3391 ;; 3392esac 3393echo "$as_me:$LINENO: checking for stdlib.h" >&5 3394echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 3395if test "${ac_cv_header_stdlib_h+set}" = set; then 3396 echo $ECHO_N "(cached) $ECHO_C" >&6 3397else 3398 ac_cv_header_stdlib_h=$ac_header_preproc 3399fi 3400echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 3401echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 3402 3403fi 3404if test $ac_cv_header_stdlib_h = yes; then 3405 tk_ok=1 3406else 3407 tk_ok=0 3408fi 3409 3410 3411cat >conftest.$ac_ext <<_ACEOF 3412/* confdefs.h. */ 3413_ACEOF 3414cat confdefs.h >>conftest.$ac_ext 3415cat >>conftest.$ac_ext <<_ACEOF 3416/* end confdefs.h. */ 3417#include <stdlib.h> 3418 3419_ACEOF 3420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3421 $EGREP "strtol" >/dev/null 2>&1; then 3422 : 3423else 3424 tk_ok=0 3425fi 3426rm -f conftest* 3427 3428cat >conftest.$ac_ext <<_ACEOF 3429/* confdefs.h. */ 3430_ACEOF 3431cat confdefs.h >>conftest.$ac_ext 3432cat >>conftest.$ac_ext <<_ACEOF 3433/* end confdefs.h. */ 3434#include <stdlib.h> 3435 3436_ACEOF 3437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3438 $EGREP "strtoul" >/dev/null 2>&1; then 3439 : 3440else 3441 tk_ok=0 3442fi 3443rm -f conftest* 3444 3445cat >conftest.$ac_ext <<_ACEOF 3446/* confdefs.h. */ 3447_ACEOF 3448cat confdefs.h >>conftest.$ac_ext 3449cat >>conftest.$ac_ext <<_ACEOF 3450/* end confdefs.h. */ 3451#include <stdlib.h> 3452 3453_ACEOF 3454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3455 $EGREP "strtod" >/dev/null 2>&1; then 3456 : 3457else 3458 tk_ok=0 3459fi 3460rm -f conftest* 3461 3462if test $tk_ok = 0; then 3463 3464cat >>confdefs.h <<\_ACEOF 3465#define NO_STDLIB_H 1 3466_ACEOF 3467 3468fi 3469 3470#------------------------------------------------------------------------ 3471# If we're using GCC, see if the compiler understands -pipe. If so, use it. 3472# It makes compiling go faster. (This is only a performance feature.) 3473#------------------------------------------------------------------------ 3474 3475if test -z "$no_pipe" && test -n "$GCC"; then 3476 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 3477echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6 3478if test "${tcl_cv_cc_pipe+set}" = set; then 3479 echo $ECHO_N "(cached) $ECHO_C" >&6 3480else 3481 3482 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 3483 cat >conftest.$ac_ext <<_ACEOF 3484/* confdefs.h. */ 3485_ACEOF 3486cat confdefs.h >>conftest.$ac_ext 3487cat >>conftest.$ac_ext <<_ACEOF 3488/* end confdefs.h. */ 3489 3490int 3491main () 3492{ 3493 3494 ; 3495 return 0; 3496} 3497_ACEOF 3498rm -f conftest.$ac_objext 3499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3500 (eval $ac_compile) 2>conftest.er1 3501 ac_status=$? 3502 grep -v '^ *+' conftest.er1 >conftest.err 3503 rm -f conftest.er1 3504 cat conftest.err >&5 3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3506 (exit $ac_status); } && 3507 { ac_try='test -z "$ac_c_werror_flag" 3508 || test ! -s conftest.err' 3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3510 (eval $ac_try) 2>&5 3511 ac_status=$? 3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3513 (exit $ac_status); }; } && 3514 { ac_try='test -s conftest.$ac_objext' 3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3516 (eval $ac_try) 2>&5 3517 ac_status=$? 3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3519 (exit $ac_status); }; }; then 3520 tcl_cv_cc_pipe=yes 3521else 3522 echo "$as_me: failed program was:" >&5 3523sed 's/^/| /' conftest.$ac_ext >&5 3524 3525tcl_cv_cc_pipe=no 3526fi 3527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3528 CFLAGS=$hold_cflags 3529fi 3530echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 3531echo "${ECHO_T}$tcl_cv_cc_pipe" >&6 3532 if test $tcl_cv_cc_pipe = yes; then 3533 CFLAGS="$CFLAGS -pipe" 3534 fi 3535fi 3536 3537#------------------------------------------------------------------------ 3538# Threads support - this auto-enables if Tcl was compiled threaded 3539#------------------------------------------------------------------------ 3540 3541TCL_SRC_DIR=${prefix}/include/tcl${TCLVERSION} 3542 3543 # Check whether --enable-threads or --disable-threads was given. 3544if test "${enable_threads+set}" = set; then 3545 enableval="$enable_threads" 3546 tcl_ok=$enableval 3547else 3548 tcl_ok=no 3549fi; 3550 3551 if test "${TCL_THREADS}" = 1; then 3552 tcl_threaded_core=1; 3553 fi 3554 3555 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 3556 TCL_THREADS=1 3557 # USE_THREAD_ALLOC tells us to try the special thread-based 3558 # allocator that significantly reduces lock contention 3559 3560cat >>confdefs.h <<\_ACEOF 3561#define USE_THREAD_ALLOC 1 3562_ACEOF 3563 3564 3565cat >>confdefs.h <<\_ACEOF 3566#define _REENTRANT 1 3567_ACEOF 3568 3569 if test "`uname -s`" = "SunOS" ; then 3570 3571cat >>confdefs.h <<\_ACEOF 3572#define _POSIX_PTHREAD_SEMANTICS 1 3573_ACEOF 3574 3575 fi 3576 3577cat >>confdefs.h <<\_ACEOF 3578#define _THREAD_SAFE 1 3579_ACEOF 3580 3581 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 3582echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6 3583if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 3584 echo $ECHO_N "(cached) $ECHO_C" >&6 3585else 3586 ac_check_lib_save_LIBS=$LIBS 3587LIBS="-lpthread $LIBS" 3588cat >conftest.$ac_ext <<_ACEOF 3589/* confdefs.h. */ 3590_ACEOF 3591cat confdefs.h >>conftest.$ac_ext 3592cat >>conftest.$ac_ext <<_ACEOF 3593/* end confdefs.h. */ 3594 3595/* Override any gcc2 internal prototype to avoid an error. */ 3596#ifdef __cplusplus 3597extern "C" 3598#endif 3599/* We use char because int might match the return type of a gcc2 3600 builtin and then its argument prototype would still apply. */ 3601char pthread_mutex_init (); 3602int 3603main () 3604{ 3605pthread_mutex_init (); 3606 ; 3607 return 0; 3608} 3609_ACEOF 3610rm -f conftest.$ac_objext conftest$ac_exeext 3611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3612 (eval $ac_link) 2>conftest.er1 3613 ac_status=$? 3614 grep -v '^ *+' conftest.er1 >conftest.err 3615 rm -f conftest.er1 3616 cat conftest.err >&5 3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3618 (exit $ac_status); } && 3619 { ac_try='test -z "$ac_c_werror_flag" 3620 || test ! -s conftest.err' 3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3622 (eval $ac_try) 2>&5 3623 ac_status=$? 3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3625 (exit $ac_status); }; } && 3626 { ac_try='test -s conftest$ac_exeext' 3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3628 (eval $ac_try) 2>&5 3629 ac_status=$? 3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3631 (exit $ac_status); }; }; then 3632 ac_cv_lib_pthread_pthread_mutex_init=yes 3633else 3634 echo "$as_me: failed program was:" >&5 3635sed 's/^/| /' conftest.$ac_ext >&5 3636 3637ac_cv_lib_pthread_pthread_mutex_init=no 3638fi 3639rm -f conftest.err conftest.$ac_objext \ 3640 conftest$ac_exeext conftest.$ac_ext 3641LIBS=$ac_check_lib_save_LIBS 3642fi 3643echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 3644echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6 3645if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 3646 tcl_ok=yes 3647else 3648 tcl_ok=no 3649fi 3650 3651 if test "$tcl_ok" = "no"; then 3652 # Check a little harder for __pthread_mutex_init in the same 3653 # library, as some systems hide it there until pthread.h is 3654 # defined. We could alternatively do an AC_TRY_COMPILE with 3655 # pthread.h, but that will work with libpthread really doesn't 3656 # exist, like AIX 4.2. [Bug: 4359] 3657 echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 3658echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6 3659if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 3660 echo $ECHO_N "(cached) $ECHO_C" >&6 3661else 3662 ac_check_lib_save_LIBS=$LIBS 3663LIBS="-lpthread $LIBS" 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 3671/* Override any gcc2 internal prototype to avoid an error. */ 3672#ifdef __cplusplus 3673extern "C" 3674#endif 3675/* We use char because int might match the return type of a gcc2 3676 builtin and then its argument prototype would still apply. */ 3677char __pthread_mutex_init (); 3678int 3679main () 3680{ 3681__pthread_mutex_init (); 3682 ; 3683 return 0; 3684} 3685_ACEOF 3686rm -f conftest.$ac_objext conftest$ac_exeext 3687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3688 (eval $ac_link) 2>conftest.er1 3689 ac_status=$? 3690 grep -v '^ *+' conftest.er1 >conftest.err 3691 rm -f conftest.er1 3692 cat conftest.err >&5 3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3694 (exit $ac_status); } && 3695 { ac_try='test -z "$ac_c_werror_flag" 3696 || test ! -s conftest.err' 3697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3698 (eval $ac_try) 2>&5 3699 ac_status=$? 3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3701 (exit $ac_status); }; } && 3702 { ac_try='test -s conftest$ac_exeext' 3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3704 (eval $ac_try) 2>&5 3705 ac_status=$? 3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3707 (exit $ac_status); }; }; then 3708 ac_cv_lib_pthread___pthread_mutex_init=yes 3709else 3710 echo "$as_me: failed program was:" >&5 3711sed 's/^/| /' conftest.$ac_ext >&5 3712 3713ac_cv_lib_pthread___pthread_mutex_init=no 3714fi 3715rm -f conftest.err conftest.$ac_objext \ 3716 conftest$ac_exeext conftest.$ac_ext 3717LIBS=$ac_check_lib_save_LIBS 3718fi 3719echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 3720echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6 3721if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 3722 tcl_ok=yes 3723else 3724 tcl_ok=no 3725fi 3726 3727 fi 3728 3729 if test "$tcl_ok" = "yes"; then 3730 # The space is needed 3731 THREADS_LIBS=" -lpthread" 3732 else 3733 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 3734echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6 3735if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 3736 echo $ECHO_N "(cached) $ECHO_C" >&6 3737else 3738 ac_check_lib_save_LIBS=$LIBS 3739LIBS="-lpthreads $LIBS" 3740cat >conftest.$ac_ext <<_ACEOF 3741/* confdefs.h. */ 3742_ACEOF 3743cat confdefs.h >>conftest.$ac_ext 3744cat >>conftest.$ac_ext <<_ACEOF 3745/* end confdefs.h. */ 3746 3747/* Override any gcc2 internal prototype to avoid an error. */ 3748#ifdef __cplusplus 3749extern "C" 3750#endif 3751/* We use char because int might match the return type of a gcc2 3752 builtin and then its argument prototype would still apply. */ 3753char pthread_mutex_init (); 3754int 3755main () 3756{ 3757pthread_mutex_init (); 3758 ; 3759 return 0; 3760} 3761_ACEOF 3762rm -f conftest.$ac_objext conftest$ac_exeext 3763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3764 (eval $ac_link) 2>conftest.er1 3765 ac_status=$? 3766 grep -v '^ *+' conftest.er1 >conftest.err 3767 rm -f conftest.er1 3768 cat conftest.err >&5 3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3770 (exit $ac_status); } && 3771 { ac_try='test -z "$ac_c_werror_flag" 3772 || test ! -s conftest.err' 3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3774 (eval $ac_try) 2>&5 3775 ac_status=$? 3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3777 (exit $ac_status); }; } && 3778 { ac_try='test -s conftest$ac_exeext' 3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3780 (eval $ac_try) 2>&5 3781 ac_status=$? 3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3783 (exit $ac_status); }; }; then 3784 ac_cv_lib_pthreads_pthread_mutex_init=yes 3785else 3786 echo "$as_me: failed program was:" >&5 3787sed 's/^/| /' conftest.$ac_ext >&5 3788 3789ac_cv_lib_pthreads_pthread_mutex_init=no 3790fi 3791rm -f conftest.err conftest.$ac_objext \ 3792 conftest$ac_exeext conftest.$ac_ext 3793LIBS=$ac_check_lib_save_LIBS 3794fi 3795echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 3796echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6 3797if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 3798 tcl_ok=yes 3799else 3800 tcl_ok=no 3801fi 3802 3803 if test "$tcl_ok" = "yes"; then 3804 # The space is needed 3805 THREADS_LIBS=" -lpthreads" 3806 else 3807 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 3808echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6 3809if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 3810 echo $ECHO_N "(cached) $ECHO_C" >&6 3811else 3812 ac_check_lib_save_LIBS=$LIBS 3813LIBS="-lc $LIBS" 3814cat >conftest.$ac_ext <<_ACEOF 3815/* confdefs.h. */ 3816_ACEOF 3817cat confdefs.h >>conftest.$ac_ext 3818cat >>conftest.$ac_ext <<_ACEOF 3819/* end confdefs.h. */ 3820 3821/* Override any gcc2 internal prototype to avoid an error. */ 3822#ifdef __cplusplus 3823extern "C" 3824#endif 3825/* We use char because int might match the return type of a gcc2 3826 builtin and then its argument prototype would still apply. */ 3827char pthread_mutex_init (); 3828int 3829main () 3830{ 3831pthread_mutex_init (); 3832 ; 3833 return 0; 3834} 3835_ACEOF 3836rm -f conftest.$ac_objext conftest$ac_exeext 3837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3838 (eval $ac_link) 2>conftest.er1 3839 ac_status=$? 3840 grep -v '^ *+' conftest.er1 >conftest.err 3841 rm -f conftest.er1 3842 cat conftest.err >&5 3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3844 (exit $ac_status); } && 3845 { ac_try='test -z "$ac_c_werror_flag" 3846 || test ! -s conftest.err' 3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3848 (eval $ac_try) 2>&5 3849 ac_status=$? 3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3851 (exit $ac_status); }; } && 3852 { ac_try='test -s conftest$ac_exeext' 3853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3854 (eval $ac_try) 2>&5 3855 ac_status=$? 3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3857 (exit $ac_status); }; }; then 3858 ac_cv_lib_c_pthread_mutex_init=yes 3859else 3860 echo "$as_me: failed program was:" >&5 3861sed 's/^/| /' conftest.$ac_ext >&5 3862 3863ac_cv_lib_c_pthread_mutex_init=no 3864fi 3865rm -f conftest.err conftest.$ac_objext \ 3866 conftest$ac_exeext conftest.$ac_ext 3867LIBS=$ac_check_lib_save_LIBS 3868fi 3869echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 3870echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6 3871if test $ac_cv_lib_c_pthread_mutex_init = yes; then 3872 tcl_ok=yes 3873else 3874 tcl_ok=no 3875fi 3876 3877 if test "$tcl_ok" = "no"; then 3878 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 3879echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6 3880if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 3881 echo $ECHO_N "(cached) $ECHO_C" >&6 3882else 3883 ac_check_lib_save_LIBS=$LIBS 3884LIBS="-lc_r $LIBS" 3885cat >conftest.$ac_ext <<_ACEOF 3886/* confdefs.h. */ 3887_ACEOF 3888cat confdefs.h >>conftest.$ac_ext 3889cat >>conftest.$ac_ext <<_ACEOF 3890/* end confdefs.h. */ 3891 3892/* Override any gcc2 internal prototype to avoid an error. */ 3893#ifdef __cplusplus 3894extern "C" 3895#endif 3896/* We use char because int might match the return type of a gcc2 3897 builtin and then its argument prototype would still apply. */ 3898char pthread_mutex_init (); 3899int 3900main () 3901{ 3902pthread_mutex_init (); 3903 ; 3904 return 0; 3905} 3906_ACEOF 3907rm -f conftest.$ac_objext conftest$ac_exeext 3908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3909 (eval $ac_link) 2>conftest.er1 3910 ac_status=$? 3911 grep -v '^ *+' conftest.er1 >conftest.err 3912 rm -f conftest.er1 3913 cat conftest.err >&5 3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3915 (exit $ac_status); } && 3916 { ac_try='test -z "$ac_c_werror_flag" 3917 || test ! -s conftest.err' 3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3919 (eval $ac_try) 2>&5 3920 ac_status=$? 3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3922 (exit $ac_status); }; } && 3923 { ac_try='test -s conftest$ac_exeext' 3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3925 (eval $ac_try) 2>&5 3926 ac_status=$? 3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3928 (exit $ac_status); }; }; then 3929 ac_cv_lib_c_r_pthread_mutex_init=yes 3930else 3931 echo "$as_me: failed program was:" >&5 3932sed 's/^/| /' conftest.$ac_ext >&5 3933 3934ac_cv_lib_c_r_pthread_mutex_init=no 3935fi 3936rm -f conftest.err conftest.$ac_objext \ 3937 conftest$ac_exeext conftest.$ac_ext 3938LIBS=$ac_check_lib_save_LIBS 3939fi 3940echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 3941echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6 3942if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 3943 tcl_ok=yes 3944else 3945 tcl_ok=no 3946fi 3947 3948 if test "$tcl_ok" = "yes"; then 3949 # The space is needed 3950 THREADS_LIBS=" -pthread" 3951 else 3952 TCL_THREADS=0 3953 { echo "$as_me:$LINENO: WARNING: Don't know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile..." >&5 3954echo "$as_me: WARNING: Don't know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile..." >&2;} 3955 fi 3956 fi 3957 fi 3958 fi 3959 3960 # Does the pthread-implementation provide 3961 # 'pthread_attr_setstacksize' ? 3962 3963 ac_saved_libs=$LIBS 3964 LIBS="$LIBS $THREADS_LIBS" 3965 3966 3967for ac_func in pthread_attr_setstacksize pthread_atfork 3968do 3969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3970echo "$as_me:$LINENO: checking for $ac_func" >&5 3971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3972if eval "test \"\${$as_ac_var+set}\" = set"; then 3973 echo $ECHO_N "(cached) $ECHO_C" >&6 3974else 3975 cat >conftest.$ac_ext <<_ACEOF 3976/* confdefs.h. */ 3977_ACEOF 3978cat confdefs.h >>conftest.$ac_ext 3979cat >>conftest.$ac_ext <<_ACEOF 3980/* end confdefs.h. */ 3981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 3982 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3983#define $ac_func innocuous_$ac_func 3984 3985/* System header to define __stub macros and hopefully few prototypes, 3986 which can conflict with char $ac_func (); below. 3987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3988 <limits.h> exists even on freestanding compilers. */ 3989 3990#ifdef __STDC__ 3991# include <limits.h> 3992#else 3993# include <assert.h> 3994#endif 3995 3996#undef $ac_func 3997 3998/* Override any gcc2 internal prototype to avoid an error. */ 3999#ifdef __cplusplus 4000extern "C" 4001{ 4002#endif 4003/* We use char because int might match the return type of a gcc2 4004 builtin and then its argument prototype would still apply. */ 4005char $ac_func (); 4006/* The GNU C library defines this for functions which it implements 4007 to always fail with ENOSYS. Some functions are actually named 4008 something starting with __ and the normal name is an alias. */ 4009#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4010choke me 4011#else 4012char (*f) () = $ac_func; 4013#endif 4014#ifdef __cplusplus 4015} 4016#endif 4017 4018int 4019main () 4020{ 4021return f != $ac_func; 4022 ; 4023 return 0; 4024} 4025_ACEOF 4026rm -f conftest.$ac_objext conftest$ac_exeext 4027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4028 (eval $ac_link) 2>conftest.er1 4029 ac_status=$? 4030 grep -v '^ *+' conftest.er1 >conftest.err 4031 rm -f conftest.er1 4032 cat conftest.err >&5 4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4034 (exit $ac_status); } && 4035 { ac_try='test -z "$ac_c_werror_flag" 4036 || test ! -s conftest.err' 4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4038 (eval $ac_try) 2>&5 4039 ac_status=$? 4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4041 (exit $ac_status); }; } && 4042 { ac_try='test -s conftest$ac_exeext' 4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4044 (eval $ac_try) 2>&5 4045 ac_status=$? 4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4047 (exit $ac_status); }; }; then 4048 eval "$as_ac_var=yes" 4049else 4050 echo "$as_me: failed program was:" >&5 4051sed 's/^/| /' conftest.$ac_ext >&5 4052 4053eval "$as_ac_var=no" 4054fi 4055rm -f conftest.err conftest.$ac_objext \ 4056 conftest$ac_exeext conftest.$ac_ext 4057fi 4058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4059echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4060if test `eval echo '${'$as_ac_var'}'` = yes; then 4061 cat >>confdefs.h <<_ACEOF 4062#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4063_ACEOF 4064 4065fi 4066done 4067 4068 echo "$as_me:$LINENO: checking for pthread_attr_get_np" >&5 4069echo $ECHO_N "checking for pthread_attr_get_np... $ECHO_C" >&6 4070if test "${ac_cv_func_pthread_attr_get_np+set}" = set; then 4071 echo $ECHO_N "(cached) $ECHO_C" >&6 4072else 4073 cat >conftest.$ac_ext <<_ACEOF 4074/* confdefs.h. */ 4075_ACEOF 4076cat confdefs.h >>conftest.$ac_ext 4077cat >>conftest.$ac_ext <<_ACEOF 4078/* end confdefs.h. */ 4079/* Define pthread_attr_get_np to an innocuous variant, in case <limits.h> declares pthread_attr_get_np. 4080 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4081#define pthread_attr_get_np innocuous_pthread_attr_get_np 4082 4083/* System header to define __stub macros and hopefully few prototypes, 4084 which can conflict with char pthread_attr_get_np (); below. 4085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4086 <limits.h> exists even on freestanding compilers. */ 4087 4088#ifdef __STDC__ 4089# include <limits.h> 4090#else 4091# include <assert.h> 4092#endif 4093 4094#undef pthread_attr_get_np 4095 4096/* Override any gcc2 internal prototype to avoid an error. */ 4097#ifdef __cplusplus 4098extern "C" 4099{ 4100#endif 4101/* We use char because int might match the return type of a gcc2 4102 builtin and then its argument prototype would still apply. */ 4103char pthread_attr_get_np (); 4104/* The GNU C library defines this for functions which it implements 4105 to always fail with ENOSYS. Some functions are actually named 4106 something starting with __ and the normal name is an alias. */ 4107#if defined (__stub_pthread_attr_get_np) || defined (__stub___pthread_attr_get_np) 4108choke me 4109#else 4110char (*f) () = pthread_attr_get_np; 4111#endif 4112#ifdef __cplusplus 4113} 4114#endif 4115 4116int 4117main () 4118{ 4119return f != pthread_attr_get_np; 4120 ; 4121 return 0; 4122} 4123_ACEOF 4124rm -f conftest.$ac_objext conftest$ac_exeext 4125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4126 (eval $ac_link) 2>conftest.er1 4127 ac_status=$? 4128 grep -v '^ *+' conftest.er1 >conftest.err 4129 rm -f conftest.er1 4130 cat conftest.err >&5 4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4132 (exit $ac_status); } && 4133 { ac_try='test -z "$ac_c_werror_flag" 4134 || test ! -s conftest.err' 4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4136 (eval $ac_try) 2>&5 4137 ac_status=$? 4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4139 (exit $ac_status); }; } && 4140 { ac_try='test -s conftest$ac_exeext' 4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4142 (eval $ac_try) 2>&5 4143 ac_status=$? 4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4145 (exit $ac_status); }; }; then 4146 ac_cv_func_pthread_attr_get_np=yes 4147else 4148 echo "$as_me: failed program was:" >&5 4149sed 's/^/| /' conftest.$ac_ext >&5 4150 4151ac_cv_func_pthread_attr_get_np=no 4152fi 4153rm -f conftest.err conftest.$ac_objext \ 4154 conftest$ac_exeext conftest.$ac_ext 4155fi 4156echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_get_np" >&5 4157echo "${ECHO_T}$ac_cv_func_pthread_attr_get_np" >&6 4158if test $ac_cv_func_pthread_attr_get_np = yes; then 4159 tcl_ok=yes 4160else 4161 tcl_ok=no 4162fi 4163 4164 if test $tcl_ok = yes ; then 4165 4166cat >>confdefs.h <<\_ACEOF 4167#define HAVE_PTHREAD_ATTR_GET_NP 1 4168_ACEOF 4169 4170 echo "$as_me:$LINENO: checking for pthread_attr_get_np declaration" >&5 4171echo $ECHO_N "checking for pthread_attr_get_np declaration... $ECHO_C" >&6 4172if test "${tcl_cv_grep_pthread_attr_get_np+set}" = set; then 4173 echo $ECHO_N "(cached) $ECHO_C" >&6 4174else 4175 4176 cat >conftest.$ac_ext <<_ACEOF 4177/* confdefs.h. */ 4178_ACEOF 4179cat confdefs.h >>conftest.$ac_ext 4180cat >>conftest.$ac_ext <<_ACEOF 4181/* end confdefs.h. */ 4182#include <pthread.h> 4183 4184_ACEOF 4185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4186 $EGREP "pthread_attr_get_np" >/dev/null 2>&1; then 4187 tcl_cv_grep_pthread_attr_get_np=present 4188else 4189 tcl_cv_grep_pthread_attr_get_np=missing 4190fi 4191rm -f conftest* 4192 4193fi 4194echo "$as_me:$LINENO: result: $tcl_cv_grep_pthread_attr_get_np" >&5 4195echo "${ECHO_T}$tcl_cv_grep_pthread_attr_get_np" >&6 4196 if test $tcl_cv_grep_pthread_attr_get_np = missing ; then 4197 4198cat >>confdefs.h <<\_ACEOF 4199#define ATTRGETNP_NOT_DECLARED 1 4200_ACEOF 4201 4202 fi 4203 else 4204 echo "$as_me:$LINENO: checking for pthread_getattr_np" >&5 4205echo $ECHO_N "checking for pthread_getattr_np... $ECHO_C" >&6 4206if test "${ac_cv_func_pthread_getattr_np+set}" = set; then 4207 echo $ECHO_N "(cached) $ECHO_C" >&6 4208else 4209 cat >conftest.$ac_ext <<_ACEOF 4210/* confdefs.h. */ 4211_ACEOF 4212cat confdefs.h >>conftest.$ac_ext 4213cat >>conftest.$ac_ext <<_ACEOF 4214/* end confdefs.h. */ 4215/* Define pthread_getattr_np to an innocuous variant, in case <limits.h> declares pthread_getattr_np. 4216 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4217#define pthread_getattr_np innocuous_pthread_getattr_np 4218 4219/* System header to define __stub macros and hopefully few prototypes, 4220 which can conflict with char pthread_getattr_np (); below. 4221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4222 <limits.h> exists even on freestanding compilers. */ 4223 4224#ifdef __STDC__ 4225# include <limits.h> 4226#else 4227# include <assert.h> 4228#endif 4229 4230#undef pthread_getattr_np 4231 4232/* Override any gcc2 internal prototype to avoid an error. */ 4233#ifdef __cplusplus 4234extern "C" 4235{ 4236#endif 4237/* We use char because int might match the return type of a gcc2 4238 builtin and then its argument prototype would still apply. */ 4239char pthread_getattr_np (); 4240/* The GNU C library defines this for functions which it implements 4241 to always fail with ENOSYS. Some functions are actually named 4242 something starting with __ and the normal name is an alias. */ 4243#if defined (__stub_pthread_getattr_np) || defined (__stub___pthread_getattr_np) 4244choke me 4245#else 4246char (*f) () = pthread_getattr_np; 4247#endif 4248#ifdef __cplusplus 4249} 4250#endif 4251 4252int 4253main () 4254{ 4255return f != pthread_getattr_np; 4256 ; 4257 return 0; 4258} 4259_ACEOF 4260rm -f conftest.$ac_objext conftest$ac_exeext 4261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4262 (eval $ac_link) 2>conftest.er1 4263 ac_status=$? 4264 grep -v '^ *+' conftest.er1 >conftest.err 4265 rm -f conftest.er1 4266 cat conftest.err >&5 4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4268 (exit $ac_status); } && 4269 { ac_try='test -z "$ac_c_werror_flag" 4270 || test ! -s conftest.err' 4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4272 (eval $ac_try) 2>&5 4273 ac_status=$? 4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4275 (exit $ac_status); }; } && 4276 { ac_try='test -s conftest$ac_exeext' 4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4278 (eval $ac_try) 2>&5 4279 ac_status=$? 4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4281 (exit $ac_status); }; }; then 4282 ac_cv_func_pthread_getattr_np=yes 4283else 4284 echo "$as_me: failed program was:" >&5 4285sed 's/^/| /' conftest.$ac_ext >&5 4286 4287ac_cv_func_pthread_getattr_np=no 4288fi 4289rm -f conftest.err conftest.$ac_objext \ 4290 conftest$ac_exeext conftest.$ac_ext 4291fi 4292echo "$as_me:$LINENO: result: $ac_cv_func_pthread_getattr_np" >&5 4293echo "${ECHO_T}$ac_cv_func_pthread_getattr_np" >&6 4294if test $ac_cv_func_pthread_getattr_np = yes; then 4295 tcl_ok=yes 4296else 4297 tcl_ok=no 4298fi 4299 4300 if test $tcl_ok = yes ; then 4301 4302cat >>confdefs.h <<\_ACEOF 4303#define HAVE_PTHREAD_GETATTR_NP 1 4304_ACEOF 4305 4306 echo "$as_me:$LINENO: checking for pthread_getattr_np declaration" >&5 4307echo $ECHO_N "checking for pthread_getattr_np declaration... $ECHO_C" >&6 4308if test "${tcl_cv_grep_pthread_getattr_np+set}" = set; then 4309 echo $ECHO_N "(cached) $ECHO_C" >&6 4310else 4311 4312 cat >conftest.$ac_ext <<_ACEOF 4313/* confdefs.h. */ 4314_ACEOF 4315cat confdefs.h >>conftest.$ac_ext 4316cat >>conftest.$ac_ext <<_ACEOF 4317/* end confdefs.h. */ 4318#include <pthread.h> 4319 4320_ACEOF 4321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4322 $EGREP "pthread_getattr_np" >/dev/null 2>&1; then 4323 tcl_cv_grep_pthread_getattr_np=present 4324else 4325 tcl_cv_grep_pthread_getattr_np=missing 4326fi 4327rm -f conftest* 4328 4329fi 4330echo "$as_me:$LINENO: result: $tcl_cv_grep_pthread_getattr_np" >&5 4331echo "${ECHO_T}$tcl_cv_grep_pthread_getattr_np" >&6 4332 if test $tcl_cv_grep_pthread_getattr_np = missing ; then 4333 4334cat >>confdefs.h <<\_ACEOF 4335#define GETATTRNP_NOT_DECLARED 1 4336_ACEOF 4337 4338 fi 4339 fi 4340 fi 4341 if test $tcl_ok = no; then 4342 # Darwin thread stacksize API 4343 4344for ac_func in pthread_get_stacksize_np 4345do 4346as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4347echo "$as_me:$LINENO: checking for $ac_func" >&5 4348echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4349if eval "test \"\${$as_ac_var+set}\" = set"; then 4350 echo $ECHO_N "(cached) $ECHO_C" >&6 4351else 4352 cat >conftest.$ac_ext <<_ACEOF 4353/* confdefs.h. */ 4354_ACEOF 4355cat confdefs.h >>conftest.$ac_ext 4356cat >>conftest.$ac_ext <<_ACEOF 4357/* end confdefs.h. */ 4358/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4359 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4360#define $ac_func innocuous_$ac_func 4361 4362/* System header to define __stub macros and hopefully few prototypes, 4363 which can conflict with char $ac_func (); below. 4364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4365 <limits.h> exists even on freestanding compilers. */ 4366 4367#ifdef __STDC__ 4368# include <limits.h> 4369#else 4370# include <assert.h> 4371#endif 4372 4373#undef $ac_func 4374 4375/* Override any gcc2 internal prototype to avoid an error. */ 4376#ifdef __cplusplus 4377extern "C" 4378{ 4379#endif 4380/* We use char because int might match the return type of a gcc2 4381 builtin and then its argument prototype would still apply. */ 4382char $ac_func (); 4383/* The GNU C library defines this for functions which it implements 4384 to always fail with ENOSYS. Some functions are actually named 4385 something starting with __ and the normal name is an alias. */ 4386#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4387choke me 4388#else 4389char (*f) () = $ac_func; 4390#endif 4391#ifdef __cplusplus 4392} 4393#endif 4394 4395int 4396main () 4397{ 4398return f != $ac_func; 4399 ; 4400 return 0; 4401} 4402_ACEOF 4403rm -f conftest.$ac_objext conftest$ac_exeext 4404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4405 (eval $ac_link) 2>conftest.er1 4406 ac_status=$? 4407 grep -v '^ *+' conftest.er1 >conftest.err 4408 rm -f conftest.er1 4409 cat conftest.err >&5 4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4411 (exit $ac_status); } && 4412 { ac_try='test -z "$ac_c_werror_flag" 4413 || test ! -s conftest.err' 4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4415 (eval $ac_try) 2>&5 4416 ac_status=$? 4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4418 (exit $ac_status); }; } && 4419 { ac_try='test -s conftest$ac_exeext' 4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4421 (eval $ac_try) 2>&5 4422 ac_status=$? 4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4424 (exit $ac_status); }; }; then 4425 eval "$as_ac_var=yes" 4426else 4427 echo "$as_me: failed program was:" >&5 4428sed 's/^/| /' conftest.$ac_ext >&5 4429 4430eval "$as_ac_var=no" 4431fi 4432rm -f conftest.err conftest.$ac_objext \ 4433 conftest$ac_exeext conftest.$ac_ext 4434fi 4435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4436echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4437if test `eval echo '${'$as_ac_var'}'` = yes; then 4438 cat >>confdefs.h <<_ACEOF 4439#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4440_ACEOF 4441 4442fi 4443done 4444 4445 fi 4446 LIBS=$ac_saved_libs 4447 else 4448 TCL_THREADS=0 4449 fi 4450 # Do checking message here to not mess up interleaved configure output 4451 echo "$as_me:$LINENO: checking for building with threads" >&5 4452echo $ECHO_N "checking for building with threads... $ECHO_C" >&6 4453 if test "${TCL_THREADS}" = 1; then 4454 4455cat >>confdefs.h <<\_ACEOF 4456#define TCL_THREADS 1 4457_ACEOF 4458 4459 if test "${tcl_threaded_core}" = 1; then 4460 echo "$as_me:$LINENO: result: yes (threaded core)" >&5 4461echo "${ECHO_T}yes (threaded core)" >&6 4462 else 4463 echo "$as_me:$LINENO: result: yes" >&5 4464echo "${ECHO_T}yes" >&6 4465 fi 4466 else 4467 echo "$as_me:$LINENO: result: no (default)" >&5 4468echo "${ECHO_T}no (default)" >&6 4469 fi 4470 4471 4472 4473 4474# Add the threads support libraries 4475LIBS="$LIBS$THREADS_LIBS" 4476 4477 4478 echo "$as_me:$LINENO: checking how to build libraries" >&5 4479echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6 4480 # Check whether --enable-shared or --disable-shared was given. 4481if test "${enable_shared+set}" = set; then 4482 enableval="$enable_shared" 4483 tcl_ok=$enableval 4484else 4485 tcl_ok=yes 4486fi; 4487 4488 if test "${enable_shared+set}" = set; then 4489 enableval="$enable_shared" 4490 tcl_ok=$enableval 4491 else 4492 tcl_ok=yes 4493 fi 4494 4495 if test "$tcl_ok" = "yes" ; then 4496 echo "$as_me:$LINENO: result: shared" >&5 4497echo "${ECHO_T}shared" >&6 4498 SHARED_BUILD=1 4499 else 4500 echo "$as_me:$LINENO: result: static" >&5 4501echo "${ECHO_T}static" >&6 4502 SHARED_BUILD=0 4503 4504cat >>confdefs.h <<\_ACEOF 4505#define STATIC_BUILD 1 4506_ACEOF 4507 4508 fi 4509 4510 4511#-------------------------------------------------------------------- 4512# The statements below define a collection of compile flags. This 4513# macro depends on the value of SHARED_BUILD, and should be called 4514# after SC_ENABLE_SHARED checks the configure switches. 4515#-------------------------------------------------------------------- 4516 4517if test -n "$ac_tool_prefix"; then 4518 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4519set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4520echo "$as_me:$LINENO: checking for $ac_word" >&5 4521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4522if test "${ac_cv_prog_RANLIB+set}" = set; then 4523 echo $ECHO_N "(cached) $ECHO_C" >&6 4524else 4525 if test -n "$RANLIB"; then 4526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4527else 4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4529for as_dir in $PATH 4530do 4531 IFS=$as_save_IFS 4532 test -z "$as_dir" && as_dir=. 4533 for ac_exec_ext in '' $ac_executable_extensions; do 4534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4535 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4537 break 2 4538 fi 4539done 4540done 4541 4542fi 4543fi 4544RANLIB=$ac_cv_prog_RANLIB 4545if test -n "$RANLIB"; then 4546 echo "$as_me:$LINENO: result: $RANLIB" >&5 4547echo "${ECHO_T}$RANLIB" >&6 4548else 4549 echo "$as_me:$LINENO: result: no" >&5 4550echo "${ECHO_T}no" >&6 4551fi 4552 4553fi 4554if test -z "$ac_cv_prog_RANLIB"; then 4555 ac_ct_RANLIB=$RANLIB 4556 # Extract the first word of "ranlib", so it can be a program name with args. 4557set dummy ranlib; ac_word=$2 4558echo "$as_me:$LINENO: checking for $ac_word" >&5 4559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4560if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4561 echo $ECHO_N "(cached) $ECHO_C" >&6 4562else 4563 if test -n "$ac_ct_RANLIB"; then 4564 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4565else 4566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4567for as_dir in $PATH 4568do 4569 IFS=$as_save_IFS 4570 test -z "$as_dir" && as_dir=. 4571 for ac_exec_ext in '' $ac_executable_extensions; do 4572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4573 ac_cv_prog_ac_ct_RANLIB="ranlib" 4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4575 break 2 4576 fi 4577done 4578done 4579 4580 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 4581fi 4582fi 4583ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4584if test -n "$ac_ct_RANLIB"; then 4585 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4586echo "${ECHO_T}$ac_ct_RANLIB" >&6 4587else 4588 echo "$as_me:$LINENO: result: no" >&5 4589echo "${ECHO_T}no" >&6 4590fi 4591 4592 RANLIB=$ac_ct_RANLIB 4593else 4594 RANLIB="$ac_cv_prog_RANLIB" 4595fi 4596 4597 4598 4599 # Step 0.a: Enable 64 bit support? 4600 4601 echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 4602echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6 4603 # Check whether --enable-64bit or --disable-64bit was given. 4604if test "${enable_64bit+set}" = set; then 4605 enableval="$enable_64bit" 4606 do64bit=$enableval 4607else 4608 do64bit=no 4609fi; 4610 echo "$as_me:$LINENO: result: $do64bit" >&5 4611echo "${ECHO_T}$do64bit" >&6 4612 4613 # Step 0.b: Enable Solaris 64 bit VIS support? 4614 4615 echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 4616echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6 4617 # Check whether --enable-64bit-vis or --disable-64bit-vis was given. 4618if test "${enable_64bit_vis+set}" = set; then 4619 enableval="$enable_64bit_vis" 4620 do64bitVIS=$enableval 4621else 4622 do64bitVIS=no 4623fi; 4624 echo "$as_me:$LINENO: result: $do64bitVIS" >&5 4625echo "${ECHO_T}$do64bitVIS" >&6 4626 # Force 64bit on with VIS 4627 if test "$do64bitVIS" = "yes"; then 4628 do64bit=yes 4629fi 4630 4631 4632 # Step 0.c: Check if visibility support is available. Do this here so 4633 # that platform specific alternatives can be used below if this fails. 4634 4635 echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 4636echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6 4637if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 4638 echo $ECHO_N "(cached) $ECHO_C" >&6 4639else 4640 4641 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 4642 cat >conftest.$ac_ext <<_ACEOF 4643/* confdefs.h. */ 4644_ACEOF 4645cat confdefs.h >>conftest.$ac_ext 4646cat >>conftest.$ac_ext <<_ACEOF 4647/* end confdefs.h. */ 4648 4649 extern __attribute__((__visibility__("hidden"))) void f(void); 4650 void f(void) {} 4651int 4652main () 4653{ 4654f(); 4655 ; 4656 return 0; 4657} 4658_ACEOF 4659rm -f conftest.$ac_objext conftest$ac_exeext 4660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4661 (eval $ac_link) 2>conftest.er1 4662 ac_status=$? 4663 grep -v '^ *+' conftest.er1 >conftest.err 4664 rm -f conftest.er1 4665 cat conftest.err >&5 4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4667 (exit $ac_status); } && 4668 { ac_try='test -z "$ac_c_werror_flag" 4669 || test ! -s conftest.err' 4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4671 (eval $ac_try) 2>&5 4672 ac_status=$? 4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4674 (exit $ac_status); }; } && 4675 { ac_try='test -s conftest$ac_exeext' 4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4677 (eval $ac_try) 2>&5 4678 ac_status=$? 4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4680 (exit $ac_status); }; }; then 4681 tcl_cv_cc_visibility_hidden=yes 4682else 4683 echo "$as_me: failed program was:" >&5 4684sed 's/^/| /' conftest.$ac_ext >&5 4685 4686tcl_cv_cc_visibility_hidden=no 4687fi 4688rm -f conftest.err conftest.$ac_objext \ 4689 conftest$ac_exeext conftest.$ac_ext 4690 CFLAGS=$hold_cflags 4691fi 4692echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 4693echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6 4694 if test $tcl_cv_cc_visibility_hidden = yes; then 4695 4696 4697cat >>confdefs.h <<\_ACEOF 4698#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 4699_ACEOF 4700 4701 4702fi 4703 4704 4705 # Step 0.d: Disable -rpath support? 4706 4707 echo "$as_me:$LINENO: checking if rpath support is requested" >&5 4708echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6 4709 # Check whether --enable-rpath or --disable-rpath was given. 4710if test "${enable_rpath+set}" = set; then 4711 enableval="$enable_rpath" 4712 doRpath=$enableval 4713else 4714 doRpath=yes 4715fi; 4716 echo "$as_me:$LINENO: result: $doRpath" >&5 4717echo "${ECHO_T}$doRpath" >&6 4718 4719 # Step 1: set the variable "system" to hold the name and version number 4720 # for the system. 4721 4722 4723 echo "$as_me:$LINENO: checking system version" >&5 4724echo $ECHO_N "checking system version... $ECHO_C" >&6 4725if test "${tcl_cv_sys_version+set}" = set; then 4726 echo $ECHO_N "(cached) $ECHO_C" >&6 4727else 4728 4729 if test -f /usr/lib/NextStep/software_version; then 4730 tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` 4731 else 4732 tcl_cv_sys_version=`uname -s`-`uname -r` 4733 if test "$?" -ne 0 ; then 4734 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 4735echo "$as_me: WARNING: can't find uname command" >&2;} 4736 tcl_cv_sys_version=unknown 4737 else 4738 # Special check for weird MP-RAS system (uname returns weird 4739 # results, and the version is kept in special file). 4740 4741 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then 4742 tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` 4743 fi 4744 if test "`uname -s`" = "AIX" ; then 4745 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 4746 fi 4747 fi 4748 fi 4749 4750fi 4751echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 4752echo "${ECHO_T}$tcl_cv_sys_version" >&6 4753 system=$tcl_cv_sys_version 4754 4755 4756 # Step 2: check for existence of -ldl library. This is needed because 4757 # Linux can use either -ldl or -ldld for dynamic loading. 4758 4759 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 4760echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 4761if test "${ac_cv_lib_dl_dlopen+set}" = set; then 4762 echo $ECHO_N "(cached) $ECHO_C" >&6 4763else 4764 ac_check_lib_save_LIBS=$LIBS 4765LIBS="-ldl $LIBS" 4766cat >conftest.$ac_ext <<_ACEOF 4767/* confdefs.h. */ 4768_ACEOF 4769cat confdefs.h >>conftest.$ac_ext 4770cat >>conftest.$ac_ext <<_ACEOF 4771/* end confdefs.h. */ 4772 4773/* Override any gcc2 internal prototype to avoid an error. */ 4774#ifdef __cplusplus 4775extern "C" 4776#endif 4777/* We use char because int might match the return type of a gcc2 4778 builtin and then its argument prototype would still apply. */ 4779char dlopen (); 4780int 4781main () 4782{ 4783dlopen (); 4784 ; 4785 return 0; 4786} 4787_ACEOF 4788rm -f conftest.$ac_objext conftest$ac_exeext 4789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4790 (eval $ac_link) 2>conftest.er1 4791 ac_status=$? 4792 grep -v '^ *+' conftest.er1 >conftest.err 4793 rm -f conftest.er1 4794 cat conftest.err >&5 4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4796 (exit $ac_status); } && 4797 { ac_try='test -z "$ac_c_werror_flag" 4798 || test ! -s conftest.err' 4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4800 (eval $ac_try) 2>&5 4801 ac_status=$? 4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4803 (exit $ac_status); }; } && 4804 { ac_try='test -s conftest$ac_exeext' 4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4806 (eval $ac_try) 2>&5 4807 ac_status=$? 4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4809 (exit $ac_status); }; }; then 4810 ac_cv_lib_dl_dlopen=yes 4811else 4812 echo "$as_me: failed program was:" >&5 4813sed 's/^/| /' conftest.$ac_ext >&5 4814 4815ac_cv_lib_dl_dlopen=no 4816fi 4817rm -f conftest.err conftest.$ac_objext \ 4818 conftest$ac_exeext conftest.$ac_ext 4819LIBS=$ac_check_lib_save_LIBS 4820fi 4821echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 4822echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 4823if test $ac_cv_lib_dl_dlopen = yes; then 4824 have_dl=yes 4825else 4826 have_dl=no 4827fi 4828 4829 4830 # Require ranlib early so we can override it in special cases below. 4831 if test x"${SHLIB_VERSION}" = x; then 4832 SHLIB_VERSION="1.0" 4833fi 4834 4835 4836 4837 4838 # Step 3: set configuration options based on system name and version. 4839 4840 do64bit_ok=no 4841 # default to '{$LIBS}' and set to "" on per-platform necessary basis 4842 SHLIB_LD_LIBS='${LIBS}' 4843 LDFLAGS_ORIG="$LDFLAGS" 4844 # When ld needs options to work in 64-bit mode, put them in 4845 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 4846 # is disabled by the user. [Bug 1016796] 4847 LDFLAGS_ARCH="" 4848 UNSHARED_LIB_SUFFIX="" 4849 TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' 4850 ECHO_VERSION='`echo ${VERSION}`' 4851 TCL_LIB_VERSIONS_OK=ok 4852 CFLAGS_DEBUG=-g 4853 CFLAGS_OPTIMIZE=-O 4854 if test "$GCC" = yes; then 4855 4856 CFLAGS_WARNING="-Wall" 4857 4858else 4859 CFLAGS_WARNING="" 4860fi 4861 4862 if test -n "$ac_tool_prefix"; then 4863 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4864set dummy ${ac_tool_prefix}ar; ac_word=$2 4865echo "$as_me:$LINENO: checking for $ac_word" >&5 4866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4867if test "${ac_cv_prog_AR+set}" = set; then 4868 echo $ECHO_N "(cached) $ECHO_C" >&6 4869else 4870 if test -n "$AR"; then 4871 ac_cv_prog_AR="$AR" # Let the user override the test. 4872else 4873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4874for as_dir in $PATH 4875do 4876 IFS=$as_save_IFS 4877 test -z "$as_dir" && as_dir=. 4878 for ac_exec_ext in '' $ac_executable_extensions; do 4879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4880 ac_cv_prog_AR="${ac_tool_prefix}ar" 4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4882 break 2 4883 fi 4884done 4885done 4886 4887fi 4888fi 4889AR=$ac_cv_prog_AR 4890if test -n "$AR"; then 4891 echo "$as_me:$LINENO: result: $AR" >&5 4892echo "${ECHO_T}$AR" >&6 4893else 4894 echo "$as_me:$LINENO: result: no" >&5 4895echo "${ECHO_T}no" >&6 4896fi 4897 4898fi 4899if test -z "$ac_cv_prog_AR"; then 4900 ac_ct_AR=$AR 4901 # Extract the first word of "ar", so it can be a program name with args. 4902set dummy ar; ac_word=$2 4903echo "$as_me:$LINENO: checking for $ac_word" >&5 4904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4905if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4906 echo $ECHO_N "(cached) $ECHO_C" >&6 4907else 4908 if test -n "$ac_ct_AR"; then 4909 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4910else 4911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4912for as_dir in $PATH 4913do 4914 IFS=$as_save_IFS 4915 test -z "$as_dir" && as_dir=. 4916 for ac_exec_ext in '' $ac_executable_extensions; do 4917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4918 ac_cv_prog_ac_ct_AR="ar" 4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4920 break 2 4921 fi 4922done 4923done 4924 4925fi 4926fi 4927ac_ct_AR=$ac_cv_prog_ac_ct_AR 4928if test -n "$ac_ct_AR"; then 4929 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 4930echo "${ECHO_T}$ac_ct_AR" >&6 4931else 4932 echo "$as_me:$LINENO: result: no" >&5 4933echo "${ECHO_T}no" >&6 4934fi 4935 4936 AR=$ac_ct_AR 4937else 4938 AR="$ac_cv_prog_AR" 4939fi 4940 4941 STLIB_LD='${AR} cr' 4942 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 4943 PLAT_OBJS="" 4944 PLAT_SRCS="" 4945 LDAIX_SRC="" 4946 case $system in 4947 AIX-*) 4948 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 4949 4950 # AIX requires the _r compiler when gcc isn't being used 4951 case "${CC}" in 4952 *_r|*_r\ *) 4953 # ok ... 4954 ;; 4955 *) 4956 # Make sure only first arg gets _r 4957 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 4958 ;; 4959 esac 4960 echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 4961echo "${ECHO_T}Using $CC for compiling with threads" >&6 4962 4963fi 4964 4965 LIBS="$LIBS -lc" 4966 SHLIB_CFLAGS="" 4967 SHLIB_SUFFIX=".so" 4968 4969 DL_OBJS="tclLoadDl.o" 4970 LD_LIBRARY_PATH_VAR="LIBPATH" 4971 4972 # ldAix No longer needed with use of -bexpall/-brtl 4973 # but some extensions may still reference it 4974 LDAIX_SRC='$(UNIX_DIR)/ldAix' 4975 4976 # Check to enable 64-bit flags for compiler/linker 4977 if test "$do64bit" = yes; then 4978 4979 if test "$GCC" = yes; then 4980 4981 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 4982echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 4983 4984else 4985 4986 do64bit_ok=yes 4987 CFLAGS="$CFLAGS -q64" 4988 LDFLAGS_ARCH="-q64" 4989 RANLIB="${RANLIB} -X64" 4990 AR="${AR} -X64" 4991 SHLIB_LD_FLAGS="-b64" 4992 4993fi 4994 4995 4996fi 4997 4998 4999 if test "`uname -m`" = ia64; then 5000 5001 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 5002 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 5003 # AIX-5 has dl* in libc.so 5004 DL_LIBS="" 5005 if test "$GCC" = yes; then 5006 5007 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 5008 5009else 5010 5011 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 5012 5013fi 5014 5015 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 5016 5017else 5018 5019 if test "$GCC" = yes; then 5020 5021 SHLIB_LD='${CC} -shared -Wl,-bexpall' 5022 5023else 5024 5025 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 5026 LDFLAGS="$LDFLAGS -brtl" 5027 5028fi 5029 5030 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 5031 DL_LIBS="-ldl" 5032 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 5033 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5034 5035fi 5036 5037 ;; 5038 BeOS*) 5039 SHLIB_CFLAGS="-fPIC" 5040 SHLIB_LD='${CC} -nostart' 5041 SHLIB_SUFFIX=".so" 5042 DL_OBJS="tclLoadDl.o" 5043 DL_LIBS="-ldl" 5044 5045 #----------------------------------------------------------- 5046 # Check for inet_ntoa in -lbind, for BeOS (which also needs 5047 # -lsocket, even if the network functions are in -lnet which 5048 # is always linked to, for compatibility. 5049 #----------------------------------------------------------- 5050 echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 5051echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6 5052if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 5053 echo $ECHO_N "(cached) $ECHO_C" >&6 5054else 5055 ac_check_lib_save_LIBS=$LIBS 5056LIBS="-lbind $LIBS" 5057cat >conftest.$ac_ext <<_ACEOF 5058/* confdefs.h. */ 5059_ACEOF 5060cat confdefs.h >>conftest.$ac_ext 5061cat >>conftest.$ac_ext <<_ACEOF 5062/* end confdefs.h. */ 5063 5064/* Override any gcc2 internal prototype to avoid an error. */ 5065#ifdef __cplusplus 5066extern "C" 5067#endif 5068/* We use char because int might match the return type of a gcc2 5069 builtin and then its argument prototype would still apply. */ 5070char inet_ntoa (); 5071int 5072main () 5073{ 5074inet_ntoa (); 5075 ; 5076 return 0; 5077} 5078_ACEOF 5079rm -f conftest.$ac_objext conftest$ac_exeext 5080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5081 (eval $ac_link) 2>conftest.er1 5082 ac_status=$? 5083 grep -v '^ *+' conftest.er1 >conftest.err 5084 rm -f conftest.er1 5085 cat conftest.err >&5 5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5087 (exit $ac_status); } && 5088 { ac_try='test -z "$ac_c_werror_flag" 5089 || test ! -s conftest.err' 5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5091 (eval $ac_try) 2>&5 5092 ac_status=$? 5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5094 (exit $ac_status); }; } && 5095 { ac_try='test -s conftest$ac_exeext' 5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5097 (eval $ac_try) 2>&5 5098 ac_status=$? 5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5100 (exit $ac_status); }; }; then 5101 ac_cv_lib_bind_inet_ntoa=yes 5102else 5103 echo "$as_me: failed program was:" >&5 5104sed 's/^/| /' conftest.$ac_ext >&5 5105 5106ac_cv_lib_bind_inet_ntoa=no 5107fi 5108rm -f conftest.err conftest.$ac_objext \ 5109 conftest$ac_exeext conftest.$ac_ext 5110LIBS=$ac_check_lib_save_LIBS 5111fi 5112echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 5113echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6 5114if test $ac_cv_lib_bind_inet_ntoa = yes; then 5115 LIBS="$LIBS -lbind -lsocket" 5116fi 5117 5118 ;; 5119 BSD/OS-2.1*|BSD/OS-3*) 5120 SHLIB_CFLAGS="" 5121 SHLIB_LD="shlicc -r" 5122 SHLIB_SUFFIX=".so" 5123 DL_OBJS="tclLoadDl.o" 5124 DL_LIBS="-ldl" 5125 CC_SEARCH_FLAGS="" 5126 LD_SEARCH_FLAGS="" 5127 ;; 5128 BSD/OS-4.*) 5129 SHLIB_CFLAGS="-export-dynamic -fPIC" 5130 SHLIB_LD='${CC} -shared' 5131 SHLIB_SUFFIX=".so" 5132 DL_OBJS="tclLoadDl.o" 5133 DL_LIBS="-ldl" 5134 LDFLAGS="$LDFLAGS -export-dynamic" 5135 CC_SEARCH_FLAGS="" 5136 LD_SEARCH_FLAGS="" 5137 ;; 5138 CYGWIN_*|MINGW32*) 5139 SHLIB_CFLAGS="" 5140 SHLIB_LD='${CC} -shared' 5141 SHLIB_SUFFIX=".dll" 5142 DL_OBJS="tclLoadDl.o tclWinError.o" 5143 DL_LIBS="-ldl" 5144 CC_SEARCH_FLAGS="" 5145 LD_SEARCH_FLAGS="" 5146 TCL_NEEDS_EXP_FILE=1 5147 TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.dll.a' 5148 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\$@.a" 5149 echo "$as_me:$LINENO: checking for Cygwin version of gcc" >&5 5150echo $ECHO_N "checking for Cygwin version of gcc... $ECHO_C" >&6 5151if test "${ac_cv_cygwin+set}" = set; then 5152 echo $ECHO_N "(cached) $ECHO_C" >&6 5153else 5154 cat >conftest.$ac_ext <<_ACEOF 5155/* confdefs.h. */ 5156_ACEOF 5157cat confdefs.h >>conftest.$ac_ext 5158cat >>conftest.$ac_ext <<_ACEOF 5159/* end confdefs.h. */ 5160 5161 #ifdef __CYGWIN__ 5162 #error cygwin 5163 #endif 5164 5165int 5166main () 5167{ 5168 5169 ; 5170 return 0; 5171} 5172_ACEOF 5173rm -f conftest.$ac_objext 5174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5175 (eval $ac_compile) 2>conftest.er1 5176 ac_status=$? 5177 grep -v '^ *+' conftest.er1 >conftest.err 5178 rm -f conftest.er1 5179 cat conftest.err >&5 5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5181 (exit $ac_status); } && 5182 { ac_try='test -z "$ac_c_werror_flag" 5183 || test ! -s conftest.err' 5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5185 (eval $ac_try) 2>&5 5186 ac_status=$? 5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5188 (exit $ac_status); }; } && 5189 { ac_try='test -s conftest.$ac_objext' 5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5191 (eval $ac_try) 2>&5 5192 ac_status=$? 5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5194 (exit $ac_status); }; }; then 5195 ac_cv_cygwin=no 5196else 5197 echo "$as_me: failed program was:" >&5 5198sed 's/^/| /' conftest.$ac_ext >&5 5199 5200ac_cv_cygwin=yes 5201fi 5202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5203 5204fi 5205echo "$as_me:$LINENO: result: $ac_cv_cygwin" >&5 5206echo "${ECHO_T}$ac_cv_cygwin" >&6 5207 if test "$ac_cv_cygwin" = "no"; then 5208 { { echo "$as_me:$LINENO: error: ${CC} is not a cygwin compiler." >&5 5209echo "$as_me: error: ${CC} is not a cygwin compiler." >&2;} 5210 { (exit 1); exit 1; }; } 5211 fi 5212 if test "x${TCL_THREADS}" = "x0"; then 5213 { { echo "$as_me:$LINENO: error: CYGWIN compile is only supported with --enable-threads" >&5 5214echo "$as_me: error: CYGWIN compile is only supported with --enable-threads" >&2;} 5215 { (exit 1); exit 1; }; } 5216 fi 5217 do64bit_ok=yes 5218 if test "x${SHARED_BUILD}" = "x1"; then 5219 echo "running cd ../win; ${CONFIG_SHELL-/bin/sh} ./configure $ac_configure_args" 5220 # The eval makes quoting arguments work. 5221 if cd ../win; eval ${CONFIG_SHELL-/bin/sh} ./configure $ac_configure_args; cd ../unix 5222 then : 5223 else 5224 { echo "configure: error: configure failed for ../win" 1>&2; exit 1; } 5225 fi 5226 fi 5227 ;; 5228 dgux*) 5229 SHLIB_CFLAGS="-K PIC" 5230 SHLIB_LD='${CC} -G' 5231 SHLIB_LD_LIBS="" 5232 SHLIB_SUFFIX=".so" 5233 DL_OBJS="tclLoadDl.o" 5234 DL_LIBS="-ldl" 5235 CC_SEARCH_FLAGS="" 5236 LD_SEARCH_FLAGS="" 5237 ;; 5238 Haiku*) 5239 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 5240 SHLIB_CFLAGS="-fPIC" 5241 SHLIB_SUFFIX=".so" 5242 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 5243 DL_OBJS="tclLoadDl.o" 5244 DL_LIBS="-lroot" 5245 echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 5246echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6 5247if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 5248 echo $ECHO_N "(cached) $ECHO_C" >&6 5249else 5250 ac_check_lib_save_LIBS=$LIBS 5251LIBS="-lnetwork $LIBS" 5252cat >conftest.$ac_ext <<_ACEOF 5253/* confdefs.h. */ 5254_ACEOF 5255cat confdefs.h >>conftest.$ac_ext 5256cat >>conftest.$ac_ext <<_ACEOF 5257/* end confdefs.h. */ 5258 5259/* Override any gcc2 internal prototype to avoid an error. */ 5260#ifdef __cplusplus 5261extern "C" 5262#endif 5263/* We use char because int might match the return type of a gcc2 5264 builtin and then its argument prototype would still apply. */ 5265char inet_ntoa (); 5266int 5267main () 5268{ 5269inet_ntoa (); 5270 ; 5271 return 0; 5272} 5273_ACEOF 5274rm -f conftest.$ac_objext conftest$ac_exeext 5275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5276 (eval $ac_link) 2>conftest.er1 5277 ac_status=$? 5278 grep -v '^ *+' conftest.er1 >conftest.err 5279 rm -f conftest.er1 5280 cat conftest.err >&5 5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5282 (exit $ac_status); } && 5283 { ac_try='test -z "$ac_c_werror_flag" 5284 || test ! -s conftest.err' 5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5286 (eval $ac_try) 2>&5 5287 ac_status=$? 5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5289 (exit $ac_status); }; } && 5290 { ac_try='test -s conftest$ac_exeext' 5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5292 (eval $ac_try) 2>&5 5293 ac_status=$? 5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5295 (exit $ac_status); }; }; then 5296 ac_cv_lib_network_inet_ntoa=yes 5297else 5298 echo "$as_me: failed program was:" >&5 5299sed 's/^/| /' conftest.$ac_ext >&5 5300 5301ac_cv_lib_network_inet_ntoa=no 5302fi 5303rm -f conftest.err conftest.$ac_objext \ 5304 conftest$ac_exeext conftest.$ac_ext 5305LIBS=$ac_check_lib_save_LIBS 5306fi 5307echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 5308echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6 5309if test $ac_cv_lib_network_inet_ntoa = yes; then 5310 LIBS="$LIBS -lnetwork" 5311fi 5312 5313 ;; 5314 HP-UX-*.11.*) 5315 # Use updated header definitions where possible 5316 5317cat >>confdefs.h <<\_ACEOF 5318#define _XOPEN_SOURCE_EXTENDED 1 5319_ACEOF 5320 5321 5322cat >>confdefs.h <<\_ACEOF 5323#define _XOPEN_SOURCE 1 5324_ACEOF 5325 5326 LIBS="$LIBS -lxnet" # Use the XOPEN network library 5327 5328 if test "`uname -m`" = ia64; then 5329 5330 SHLIB_SUFFIX=".so" 5331 5332else 5333 5334 SHLIB_SUFFIX=".sl" 5335 5336fi 5337 5338 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 5339echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 5340if test "${ac_cv_lib_dld_shl_load+set}" = set; then 5341 echo $ECHO_N "(cached) $ECHO_C" >&6 5342else 5343 ac_check_lib_save_LIBS=$LIBS 5344LIBS="-ldld $LIBS" 5345cat >conftest.$ac_ext <<_ACEOF 5346/* confdefs.h. */ 5347_ACEOF 5348cat confdefs.h >>conftest.$ac_ext 5349cat >>conftest.$ac_ext <<_ACEOF 5350/* end confdefs.h. */ 5351 5352/* Override any gcc2 internal prototype to avoid an error. */ 5353#ifdef __cplusplus 5354extern "C" 5355#endif 5356/* We use char because int might match the return type of a gcc2 5357 builtin and then its argument prototype would still apply. */ 5358char shl_load (); 5359int 5360main () 5361{ 5362shl_load (); 5363 ; 5364 return 0; 5365} 5366_ACEOF 5367rm -f conftest.$ac_objext conftest$ac_exeext 5368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5369 (eval $ac_link) 2>conftest.er1 5370 ac_status=$? 5371 grep -v '^ *+' conftest.er1 >conftest.err 5372 rm -f conftest.er1 5373 cat conftest.err >&5 5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5375 (exit $ac_status); } && 5376 { ac_try='test -z "$ac_c_werror_flag" 5377 || test ! -s conftest.err' 5378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5379 (eval $ac_try) 2>&5 5380 ac_status=$? 5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5382 (exit $ac_status); }; } && 5383 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 5389 ac_cv_lib_dld_shl_load=yes 5390else 5391 echo "$as_me: failed program was:" >&5 5392sed 's/^/| /' conftest.$ac_ext >&5 5393 5394ac_cv_lib_dld_shl_load=no 5395fi 5396rm -f conftest.err conftest.$ac_objext \ 5397 conftest$ac_exeext conftest.$ac_ext 5398LIBS=$ac_check_lib_save_LIBS 5399fi 5400echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 5401echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 5402if test $ac_cv_lib_dld_shl_load = yes; then 5403 tcl_ok=yes 5404else 5405 tcl_ok=no 5406fi 5407 5408 if test "$tcl_ok" = yes; then 5409 5410 SHLIB_CFLAGS="+z" 5411 SHLIB_LD="ld -b" 5412 DL_OBJS="tclLoadShl.o" 5413 DL_LIBS="-ldld" 5414 LDFLAGS="$LDFLAGS -Wl,-E" 5415 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 5416 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 5417 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 5418 5419fi 5420 5421 if test "$GCC" = yes; then 5422 5423 SHLIB_LD='${CC} -shared' 5424 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5425 5426fi 5427 5428 5429 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 5430 #CFLAGS="$CFLAGS +DAportable" 5431 5432 # Check to enable 64-bit flags for compiler/linker 5433 if test "$do64bit" = "yes"; then 5434 5435 if test "$GCC" = yes; then 5436 5437 case `${CC} -dumpmachine` in 5438 hppa64*) 5439 # 64-bit gcc in use. Fix flags for GNU ld. 5440 do64bit_ok=yes 5441 SHLIB_LD='${CC} -shared' 5442 if test $doRpath = yes; then 5443 5444 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5445fi 5446 5447 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5448 ;; 5449 *) 5450 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 5451echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 5452 ;; 5453 esac 5454 5455else 5456 5457 do64bit_ok=yes 5458 CFLAGS="$CFLAGS +DD64" 5459 LDFLAGS_ARCH="+DD64" 5460 5461fi 5462 5463 5464fi 5465 ;; 5466 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 5467 SHLIB_SUFFIX=".sl" 5468 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 5469echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 5470if test "${ac_cv_lib_dld_shl_load+set}" = set; then 5471 echo $ECHO_N "(cached) $ECHO_C" >&6 5472else 5473 ac_check_lib_save_LIBS=$LIBS 5474LIBS="-ldld $LIBS" 5475cat >conftest.$ac_ext <<_ACEOF 5476/* confdefs.h. */ 5477_ACEOF 5478cat confdefs.h >>conftest.$ac_ext 5479cat >>conftest.$ac_ext <<_ACEOF 5480/* end confdefs.h. */ 5481 5482/* Override any gcc2 internal prototype to avoid an error. */ 5483#ifdef __cplusplus 5484extern "C" 5485#endif 5486/* We use char because int might match the return type of a gcc2 5487 builtin and then its argument prototype would still apply. */ 5488char shl_load (); 5489int 5490main () 5491{ 5492shl_load (); 5493 ; 5494 return 0; 5495} 5496_ACEOF 5497rm -f conftest.$ac_objext conftest$ac_exeext 5498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5499 (eval $ac_link) 2>conftest.er1 5500 ac_status=$? 5501 grep -v '^ *+' conftest.er1 >conftest.err 5502 rm -f conftest.er1 5503 cat conftest.err >&5 5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5505 (exit $ac_status); } && 5506 { ac_try='test -z "$ac_c_werror_flag" 5507 || test ! -s conftest.err' 5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5509 (eval $ac_try) 2>&5 5510 ac_status=$? 5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5512 (exit $ac_status); }; } && 5513 { ac_try='test -s conftest$ac_exeext' 5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5515 (eval $ac_try) 2>&5 5516 ac_status=$? 5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5518 (exit $ac_status); }; }; then 5519 ac_cv_lib_dld_shl_load=yes 5520else 5521 echo "$as_me: failed program was:" >&5 5522sed 's/^/| /' conftest.$ac_ext >&5 5523 5524ac_cv_lib_dld_shl_load=no 5525fi 5526rm -f conftest.err conftest.$ac_objext \ 5527 conftest$ac_exeext conftest.$ac_ext 5528LIBS=$ac_check_lib_save_LIBS 5529fi 5530echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 5531echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 5532if test $ac_cv_lib_dld_shl_load = yes; then 5533 tcl_ok=yes 5534else 5535 tcl_ok=no 5536fi 5537 5538 if test "$tcl_ok" = yes; then 5539 5540 SHLIB_CFLAGS="+z" 5541 SHLIB_LD="ld -b" 5542 SHLIB_LD_LIBS="" 5543 DL_OBJS="tclLoadShl.o" 5544 DL_LIBS="-ldld" 5545 LDFLAGS="$LDFLAGS -Wl,-E" 5546 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 5547 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 5548 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 5549 5550fi 5551 ;; 5552 IRIX-5.*) 5553 SHLIB_CFLAGS="" 5554 SHLIB_LD="ld -shared -rdata_shared" 5555 SHLIB_SUFFIX=".so" 5556 DL_OBJS="tclLoadDl.o" 5557 DL_LIBS="" 5558 if test $doRpath = yes; then 5559 5560 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5561 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5562fi 5563 5564 ;; 5565 IRIX-6.*) 5566 SHLIB_CFLAGS="" 5567 SHLIB_LD="ld -n32 -shared -rdata_shared" 5568 SHLIB_SUFFIX=".so" 5569 DL_OBJS="tclLoadDl.o" 5570 DL_LIBS="" 5571 if test $doRpath = yes; then 5572 5573 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5574 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5575fi 5576 5577 if test "$GCC" = yes; then 5578 5579 CFLAGS="$CFLAGS -mabi=n32" 5580 LDFLAGS="$LDFLAGS -mabi=n32" 5581 5582else 5583 5584 case $system in 5585 IRIX-6.3) 5586 # Use to build 6.2 compatible binaries on 6.3. 5587 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 5588 ;; 5589 *) 5590 CFLAGS="$CFLAGS -n32" 5591 ;; 5592 esac 5593 LDFLAGS="$LDFLAGS -n32" 5594 5595fi 5596 5597 ;; 5598 IRIX64-6.*) 5599 SHLIB_CFLAGS="" 5600 SHLIB_LD="ld -n32 -shared -rdata_shared" 5601 SHLIB_SUFFIX=".so" 5602 DL_OBJS="tclLoadDl.o" 5603 DL_LIBS="" 5604 if test $doRpath = yes; then 5605 5606 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5607 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5608fi 5609 5610 5611 # Check to enable 64-bit flags for compiler/linker 5612 5613 if test "$do64bit" = yes; then 5614 5615 if test "$GCC" = yes; then 5616 5617 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 5618echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 5619 5620else 5621 5622 do64bit_ok=yes 5623 SHLIB_LD="ld -64 -shared -rdata_shared" 5624 CFLAGS="$CFLAGS -64" 5625 LDFLAGS_ARCH="-64" 5626 5627fi 5628 5629 5630fi 5631 5632 ;; 5633 Linux*|GNU*|NetBSD-Debian) 5634 SHLIB_CFLAGS="-fPIC" 5635 SHLIB_SUFFIX=".so" 5636 5637 CFLAGS_OPTIMIZE="-O2" 5638 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings 5639 # when you inline the string and math operations. Turn this off to 5640 # get rid of the warnings. 5641 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 5642 5643 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 5644 DL_OBJS="tclLoadDl.o" 5645 DL_LIBS="-ldl" 5646 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 5647 if test $doRpath = yes; then 5648 5649 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5650fi 5651 5652 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5653 if test "`uname -m`" = "alpha"; then 5654 CFLAGS="$CFLAGS -mieee" 5655fi 5656 5657 if test $do64bit = yes; then 5658 5659 echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 5660echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6 5661if test "${tcl_cv_cc_m64+set}" = set; then 5662 echo $ECHO_N "(cached) $ECHO_C" >&6 5663else 5664 5665 hold_cflags=$CFLAGS 5666 CFLAGS="$CFLAGS -m64" 5667 cat >conftest.$ac_ext <<_ACEOF 5668/* confdefs.h. */ 5669_ACEOF 5670cat confdefs.h >>conftest.$ac_ext 5671cat >>conftest.$ac_ext <<_ACEOF 5672/* end confdefs.h. */ 5673 5674int 5675main () 5676{ 5677 5678 ; 5679 return 0; 5680} 5681_ACEOF 5682rm -f conftest.$ac_objext conftest$ac_exeext 5683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5684 (eval $ac_link) 2>conftest.er1 5685 ac_status=$? 5686 grep -v '^ *+' conftest.er1 >conftest.err 5687 rm -f conftest.er1 5688 cat conftest.err >&5 5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5690 (exit $ac_status); } && 5691 { ac_try='test -z "$ac_c_werror_flag" 5692 || test ! -s conftest.err' 5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5694 (eval $ac_try) 2>&5 5695 ac_status=$? 5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5697 (exit $ac_status); }; } && 5698 { ac_try='test -s conftest$ac_exeext' 5699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5700 (eval $ac_try) 2>&5 5701 ac_status=$? 5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5703 (exit $ac_status); }; }; then 5704 tcl_cv_cc_m64=yes 5705else 5706 echo "$as_me: failed program was:" >&5 5707sed 's/^/| /' conftest.$ac_ext >&5 5708 5709tcl_cv_cc_m64=no 5710fi 5711rm -f conftest.err conftest.$ac_objext \ 5712 conftest$ac_exeext conftest.$ac_ext 5713 CFLAGS=$hold_cflags 5714fi 5715echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 5716echo "${ECHO_T}$tcl_cv_cc_m64" >&6 5717 if test $tcl_cv_cc_m64 = yes; then 5718 5719 CFLAGS="$CFLAGS -m64" 5720 do64bit_ok=yes 5721 5722fi 5723 5724 5725fi 5726 5727 5728 # The combo of gcc + glibc has a bug related to inlining of 5729 # functions like strtod(). The -fno-builtin flag should address 5730 # this problem but it does not work. The -fno-inline flag is kind 5731 # of overkill but it works. Disable inlining only when one of the 5732 # files in compat/*.c is being linked in. 5733 5734 if test x"${USE_COMPAT}" != x; then 5735 CFLAGS="$CFLAGS -fno-inline" 5736fi 5737 5738 ;; 5739 Lynx*) 5740 SHLIB_CFLAGS="-fPIC" 5741 SHLIB_SUFFIX=".so" 5742 CFLAGS_OPTIMIZE=-02 5743 SHLIB_LD='${CC} -shared' 5744 DL_OBJS="tclLoadDl.o" 5745 DL_LIBS="-mshared -ldl" 5746 LD_FLAGS="-Wl,--export-dynamic" 5747 if test $doRpath = yes; then 5748 5749 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5750 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5751fi 5752 5753 ;; 5754 MP-RAS-02*) 5755 SHLIB_CFLAGS="-K PIC" 5756 SHLIB_LD='${CC} -G' 5757 SHLIB_LD_LIBS="" 5758 SHLIB_SUFFIX=".so" 5759 DL_OBJS="tclLoadDl.o" 5760 DL_LIBS="-ldl" 5761 CC_SEARCH_FLAGS="" 5762 LD_SEARCH_FLAGS="" 5763 ;; 5764 MP-RAS-*) 5765 SHLIB_CFLAGS="-K PIC" 5766 SHLIB_LD='${CC} -G' 5767 SHLIB_LD_LIBS="" 5768 SHLIB_SUFFIX=".so" 5769 DL_OBJS="tclLoadDl.o" 5770 DL_LIBS="-ldl" 5771 LDFLAGS="$LDFLAGS -Wl,-Bexport" 5772 CC_SEARCH_FLAGS="" 5773 LD_SEARCH_FLAGS="" 5774 ;; 5775 OpenBSD-*) 5776 arch=`arch -s` 5777 case "$arch" in 5778 vax) 5779 # Equivalent using configure option --disable-load 5780 # Step 4 will set the necessary variables 5781 DL_OBJS="" 5782 SHLIB_LD_LIBS="" 5783 LDFLAGS="" 5784 ;; 5785 *) 5786 case "$arch" in 5787 alpha|sparc|sparc64) 5788 SHLIB_CFLAGS="-fPIC" 5789 ;; 5790 *) 5791 SHLIB_CFLAGS="-fpic" 5792 ;; 5793 esac 5794 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 5795 SHLIB_SUFFIX=".so" 5796 DL_OBJS="tclLoadDl.o" 5797 DL_LIBS="" 5798 if test $doRpath = yes; then 5799 5800 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5801fi 5802 5803 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5804 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 5805 LDFLAGS="-Wl,-export-dynamic" 5806 ;; 5807 esac 5808 case "$arch" in 5809 vax) 5810 CFLAGS_OPTIMIZE="-O1" 5811 ;; 5812 sh) 5813 CFLAGS_OPTIMIZE="-O0" 5814 ;; 5815 *) 5816 CFLAGS_OPTIMIZE="-O2" 5817 ;; 5818 esac 5819 if test "${TCL_THREADS}" = "1"; then 5820 5821 # On OpenBSD: Compile with -pthread 5822 # Don't link with -lpthread 5823 LIBS=`echo $LIBS | sed s/-lpthread//` 5824 CFLAGS="$CFLAGS -pthread" 5825 5826fi 5827 5828 # OpenBSD doesn't do version numbers with dots. 5829 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 5830 TCL_LIB_VERSIONS_OK=nodots 5831 ;; 5832 NetBSD-*) 5833 # NetBSD has ELF and can use 'cc -shared' to build shared libs 5834 SHLIB_CFLAGS="-fPIC" 5835 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 5836 SHLIB_SUFFIX=".so" 5837 DL_OBJS="tclLoadDl.o" 5838 DL_LIBS="" 5839 LDFLAGS="$LDFLAGS -export-dynamic" 5840 if test $doRpath = yes; then 5841 5842 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5843fi 5844 5845 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5846 if test "${TCL_THREADS}" = "1"; then 5847 5848 # The -pthread needs to go in the CFLAGS, not LIBS 5849 LIBS=`echo $LIBS | sed s/-pthread//` 5850 CFLAGS="$CFLAGS -pthread" 5851 LDFLAGS="$LDFLAGS -pthread" 5852 5853fi 5854 5855 ;; 5856 FreeBSD-*|DragonFly-*) 5857 # This configuration from FreeBSD Ports. 5858 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 5859 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 5860 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 5861 TCL_LIB_VERSIONS_OK=nodots 5862 SHLIB_CFLAGS="-fPIC" 5863 SHLIB_LD="${CC} -shared" 5864 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,-soname,\$@" 5865 SHLIB_SUFFIX=".so" 5866 DL_OBJS="tclLoadDl.o" 5867 DL_LIBS="" 5868 LDFLAGS="" 5869 if test $doRpath = yes; then 5870 5871 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5872 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5873fi 5874 5875 if test "${TCL_THREADS}" = "1"; then 5876 5877 # The -pthread needs to go in the LDFLAGS, not LIBS 5878 LIBS=`echo $LIBS | sed s/-pthread//` 5879 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 5880 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 5881fi 5882 5883 case $system in 5884 FreeBSD-3.*) 5885 # Version numbers are dot-stripped by system policy. 5886 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 5887 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 5888 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 5889 TCL_LIB_VERSIONS_OK=nodots 5890 ;; 5891 esac 5892 ;; 5893 Darwin-*) 5894 CFLAGS_OPTIMIZE="-Os" 5895 SHLIB_CFLAGS="-fno-common" 5896 # To avoid discrepancies between what headers configure sees during 5897 # preprocessing tests and compiling tests, move any -isysroot and 5898 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 5899 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 5900 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 5901 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 5902 CFLAGS="`echo " ${CFLAGS}" | \ 5903 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 5904 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 5905 if test $do64bit = yes; then 5906 5907 case `arch` in 5908 ppc) 5909 echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 5910echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6 5911if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 5912 echo $ECHO_N "(cached) $ECHO_C" >&6 5913else 5914 5915 hold_cflags=$CFLAGS 5916 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 5917 cat >conftest.$ac_ext <<_ACEOF 5918/* confdefs.h. */ 5919_ACEOF 5920cat confdefs.h >>conftest.$ac_ext 5921cat >>conftest.$ac_ext <<_ACEOF 5922/* end confdefs.h. */ 5923 5924int 5925main () 5926{ 5927 5928 ; 5929 return 0; 5930} 5931_ACEOF 5932rm -f conftest.$ac_objext conftest$ac_exeext 5933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5934 (eval $ac_link) 2>conftest.er1 5935 ac_status=$? 5936 grep -v '^ *+' conftest.er1 >conftest.err 5937 rm -f conftest.er1 5938 cat conftest.err >&5 5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5940 (exit $ac_status); } && 5941 { ac_try='test -z "$ac_c_werror_flag" 5942 || test ! -s conftest.err' 5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5944 (eval $ac_try) 2>&5 5945 ac_status=$? 5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5947 (exit $ac_status); }; } && 5948 { ac_try='test -s conftest$ac_exeext' 5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5950 (eval $ac_try) 2>&5 5951 ac_status=$? 5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5953 (exit $ac_status); }; }; then 5954 tcl_cv_cc_arch_ppc64=yes 5955else 5956 echo "$as_me: failed program was:" >&5 5957sed 's/^/| /' conftest.$ac_ext >&5 5958 5959tcl_cv_cc_arch_ppc64=no 5960fi 5961rm -f conftest.err conftest.$ac_objext \ 5962 conftest$ac_exeext conftest.$ac_ext 5963 CFLAGS=$hold_cflags 5964fi 5965echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 5966echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6 5967 if test $tcl_cv_cc_arch_ppc64 = yes; then 5968 5969 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 5970 do64bit_ok=yes 5971 5972fi 5973;; 5974 i386) 5975 echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 5976echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6 5977if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 5978 echo $ECHO_N "(cached) $ECHO_C" >&6 5979else 5980 5981 hold_cflags=$CFLAGS 5982 CFLAGS="$CFLAGS -arch x86_64" 5983 cat >conftest.$ac_ext <<_ACEOF 5984/* confdefs.h. */ 5985_ACEOF 5986cat confdefs.h >>conftest.$ac_ext 5987cat >>conftest.$ac_ext <<_ACEOF 5988/* end confdefs.h. */ 5989 5990int 5991main () 5992{ 5993 5994 ; 5995 return 0; 5996} 5997_ACEOF 5998rm -f conftest.$ac_objext conftest$ac_exeext 5999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6000 (eval $ac_link) 2>conftest.er1 6001 ac_status=$? 6002 grep -v '^ *+' conftest.er1 >conftest.err 6003 rm -f conftest.er1 6004 cat conftest.err >&5 6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6006 (exit $ac_status); } && 6007 { ac_try='test -z "$ac_c_werror_flag" 6008 || test ! -s conftest.err' 6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6010 (eval $ac_try) 2>&5 6011 ac_status=$? 6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6013 (exit $ac_status); }; } && 6014 { ac_try='test -s conftest$ac_exeext' 6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6016 (eval $ac_try) 2>&5 6017 ac_status=$? 6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6019 (exit $ac_status); }; }; then 6020 tcl_cv_cc_arch_x86_64=yes 6021else 6022 echo "$as_me: failed program was:" >&5 6023sed 's/^/| /' conftest.$ac_ext >&5 6024 6025tcl_cv_cc_arch_x86_64=no 6026fi 6027rm -f conftest.err conftest.$ac_objext \ 6028 conftest$ac_exeext conftest.$ac_ext 6029 CFLAGS=$hold_cflags 6030fi 6031echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 6032echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6 6033 if test $tcl_cv_cc_arch_x86_64 = yes; then 6034 6035 CFLAGS="$CFLAGS -arch x86_64" 6036 do64bit_ok=yes 6037 6038fi 6039;; 6040 *) 6041 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 6042echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 6043 esac 6044 6045else 6046 6047 # Check for combined 32-bit and 64-bit fat build 6048 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 6049 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 6050 6051 fat_32_64=yes 6052fi 6053 6054 6055fi 6056 6057 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}' 6058 echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 6059echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6 6060if test "${tcl_cv_ld_single_module+set}" = set; then 6061 echo $ECHO_N "(cached) $ECHO_C" >&6 6062else 6063 6064 hold_ldflags=$LDFLAGS 6065 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 6066 cat >conftest.$ac_ext <<_ACEOF 6067/* confdefs.h. */ 6068_ACEOF 6069cat confdefs.h >>conftest.$ac_ext 6070cat >>conftest.$ac_ext <<_ACEOF 6071/* end confdefs.h. */ 6072 6073int 6074main () 6075{ 6076int i; 6077 ; 6078 return 0; 6079} 6080_ACEOF 6081rm -f conftest.$ac_objext conftest$ac_exeext 6082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6083 (eval $ac_link) 2>conftest.er1 6084 ac_status=$? 6085 grep -v '^ *+' conftest.er1 >conftest.err 6086 rm -f conftest.er1 6087 cat conftest.err >&5 6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6089 (exit $ac_status); } && 6090 { ac_try='test -z "$ac_c_werror_flag" 6091 || test ! -s conftest.err' 6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6093 (eval $ac_try) 2>&5 6094 ac_status=$? 6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6096 (exit $ac_status); }; } && 6097 { ac_try='test -s conftest$ac_exeext' 6098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6099 (eval $ac_try) 2>&5 6100 ac_status=$? 6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6102 (exit $ac_status); }; }; then 6103 tcl_cv_ld_single_module=yes 6104else 6105 echo "$as_me: failed program was:" >&5 6106sed 's/^/| /' conftest.$ac_ext >&5 6107 6108tcl_cv_ld_single_module=no 6109fi 6110rm -f conftest.err conftest.$ac_objext \ 6111 conftest$ac_exeext conftest.$ac_ext 6112 LDFLAGS=$hold_ldflags 6113fi 6114echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 6115echo "${ECHO_T}$tcl_cv_ld_single_module" >&6 6116 if test $tcl_cv_ld_single_module = yes; then 6117 6118 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 6119 6120fi 6121 6122 SHLIB_SUFFIX=".dylib" 6123 DL_OBJS="tclLoadDyld.o" 6124 DL_LIBS="" 6125 # Don't use -prebind when building for Mac OS X 10.4 or later only: 6126 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 6127 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 6128 6129 LDFLAGS="$LDFLAGS -prebind" 6130fi 6131 6132 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 6133 echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 6134echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6 6135if test "${tcl_cv_ld_search_paths_first+set}" = set; then 6136 echo $ECHO_N "(cached) $ECHO_C" >&6 6137else 6138 6139 hold_ldflags=$LDFLAGS 6140 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 6141 cat >conftest.$ac_ext <<_ACEOF 6142/* confdefs.h. */ 6143_ACEOF 6144cat confdefs.h >>conftest.$ac_ext 6145cat >>conftest.$ac_ext <<_ACEOF 6146/* end confdefs.h. */ 6147 6148int 6149main () 6150{ 6151int i; 6152 ; 6153 return 0; 6154} 6155_ACEOF 6156rm -f conftest.$ac_objext conftest$ac_exeext 6157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6158 (eval $ac_link) 2>conftest.er1 6159 ac_status=$? 6160 grep -v '^ *+' conftest.er1 >conftest.err 6161 rm -f conftest.er1 6162 cat conftest.err >&5 6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6164 (exit $ac_status); } && 6165 { ac_try='test -z "$ac_c_werror_flag" 6166 || test ! -s conftest.err' 6167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6168 (eval $ac_try) 2>&5 6169 ac_status=$? 6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6171 (exit $ac_status); }; } && 6172 { ac_try='test -s conftest$ac_exeext' 6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6174 (eval $ac_try) 2>&5 6175 ac_status=$? 6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6177 (exit $ac_status); }; }; then 6178 tcl_cv_ld_search_paths_first=yes 6179else 6180 echo "$as_me: failed program was:" >&5 6181sed 's/^/| /' conftest.$ac_ext >&5 6182 6183tcl_cv_ld_search_paths_first=no 6184fi 6185rm -f conftest.err conftest.$ac_objext \ 6186 conftest$ac_exeext conftest.$ac_ext 6187 LDFLAGS=$hold_ldflags 6188fi 6189echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 6190echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6 6191 if test $tcl_cv_ld_search_paths_first = yes; then 6192 6193 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 6194 6195fi 6196 6197 if test "$tcl_cv_cc_visibility_hidden" != yes; then 6198 6199 6200cat >>confdefs.h <<\_ACEOF 6201#define MODULE_SCOPE __private_extern__ 6202_ACEOF 6203 6204 6205fi 6206 6207 CC_SEARCH_FLAGS="" 6208 LD_SEARCH_FLAGS="" 6209 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 6210 6211cat >>confdefs.h <<\_ACEOF 6212#define MAC_OSX_TCL 1 6213_ACEOF 6214 6215 PLAT_OBJS='${MAC_OSX_OBJS}' 6216 PLAT_SRCS='${MAC_OSX_SRCS}' 6217 echo "$as_me:$LINENO: checking whether to use CoreFoundation" >&5 6218echo $ECHO_N "checking whether to use CoreFoundation... $ECHO_C" >&6 6219 # Check whether --enable-corefoundation or --disable-corefoundation was given. 6220if test "${enable_corefoundation+set}" = set; then 6221 enableval="$enable_corefoundation" 6222 tcl_corefoundation=$enableval 6223else 6224 tcl_corefoundation=yes 6225fi; 6226 echo "$as_me:$LINENO: result: $tcl_corefoundation" >&5 6227echo "${ECHO_T}$tcl_corefoundation" >&6 6228 if test $tcl_corefoundation = yes; then 6229 6230 echo "$as_me:$LINENO: checking for CoreFoundation.framework" >&5 6231echo $ECHO_N "checking for CoreFoundation.framework... $ECHO_C" >&6 6232if test "${tcl_cv_lib_corefoundation+set}" = set; then 6233 echo $ECHO_N "(cached) $ECHO_C" >&6 6234else 6235 6236 hold_libs=$LIBS 6237 if test "$fat_32_64" = yes; then 6238 6239 for v in CFLAGS CPPFLAGS LDFLAGS; do 6240 # On Tiger there is no 64-bit CF, so remove 64-bit 6241 # archs from CFLAGS et al. while testing for 6242 # presence of CF. 64-bit CF is disabled in 6243 # tclUnixPort.h if necessary. 6244 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 6245 done 6246fi 6247 6248 LIBS="$LIBS -framework CoreFoundation" 6249 cat >conftest.$ac_ext <<_ACEOF 6250/* confdefs.h. */ 6251_ACEOF 6252cat confdefs.h >>conftest.$ac_ext 6253cat >>conftest.$ac_ext <<_ACEOF 6254/* end confdefs.h. */ 6255#include <CoreFoundation/CoreFoundation.h> 6256int 6257main () 6258{ 6259CFBundleRef b = CFBundleGetMainBundle(); 6260 ; 6261 return 0; 6262} 6263_ACEOF 6264rm -f conftest.$ac_objext conftest$ac_exeext 6265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6266 (eval $ac_link) 2>conftest.er1 6267 ac_status=$? 6268 grep -v '^ *+' conftest.er1 >conftest.err 6269 rm -f conftest.er1 6270 cat conftest.err >&5 6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6272 (exit $ac_status); } && 6273 { ac_try='test -z "$ac_c_werror_flag" 6274 || test ! -s conftest.err' 6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6276 (eval $ac_try) 2>&5 6277 ac_status=$? 6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6279 (exit $ac_status); }; } && 6280 { ac_try='test -s conftest$ac_exeext' 6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6282 (eval $ac_try) 2>&5 6283 ac_status=$? 6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6285 (exit $ac_status); }; }; then 6286 tcl_cv_lib_corefoundation=yes 6287else 6288 echo "$as_me: failed program was:" >&5 6289sed 's/^/| /' conftest.$ac_ext >&5 6290 6291tcl_cv_lib_corefoundation=no 6292fi 6293rm -f conftest.err conftest.$ac_objext \ 6294 conftest$ac_exeext conftest.$ac_ext 6295 if test "$fat_32_64" = yes; then 6296 6297 for v in CFLAGS CPPFLAGS LDFLAGS; do 6298 eval $v'="$hold_'$v'"' 6299 done 6300fi 6301 6302 LIBS=$hold_libs 6303fi 6304echo "$as_me:$LINENO: result: $tcl_cv_lib_corefoundation" >&5 6305echo "${ECHO_T}$tcl_cv_lib_corefoundation" >&6 6306 if test $tcl_cv_lib_corefoundation = yes; then 6307 6308 LIBS="$LIBS -framework CoreFoundation" 6309 6310cat >>confdefs.h <<\_ACEOF 6311#define HAVE_COREFOUNDATION 1 6312_ACEOF 6313 6314 6315else 6316 tcl_corefoundation=no 6317fi 6318 6319 if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then 6320 6321 echo "$as_me:$LINENO: checking for 64-bit CoreFoundation" >&5 6322echo $ECHO_N "checking for 64-bit CoreFoundation... $ECHO_C" >&6 6323if test "${tcl_cv_lib_corefoundation_64+set}" = set; then 6324 echo $ECHO_N "(cached) $ECHO_C" >&6 6325else 6326 6327 for v in CFLAGS CPPFLAGS LDFLAGS; do 6328 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 6329 done 6330 cat >conftest.$ac_ext <<_ACEOF 6331/* confdefs.h. */ 6332_ACEOF 6333cat confdefs.h >>conftest.$ac_ext 6334cat >>conftest.$ac_ext <<_ACEOF 6335/* end confdefs.h. */ 6336#include <CoreFoundation/CoreFoundation.h> 6337int 6338main () 6339{ 6340CFBundleRef b = CFBundleGetMainBundle(); 6341 ; 6342 return 0; 6343} 6344_ACEOF 6345rm -f conftest.$ac_objext conftest$ac_exeext 6346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6347 (eval $ac_link) 2>conftest.er1 6348 ac_status=$? 6349 grep -v '^ *+' conftest.er1 >conftest.err 6350 rm -f conftest.er1 6351 cat conftest.err >&5 6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6353 (exit $ac_status); } && 6354 { ac_try='test -z "$ac_c_werror_flag" 6355 || test ! -s conftest.err' 6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6357 (eval $ac_try) 2>&5 6358 ac_status=$? 6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6360 (exit $ac_status); }; } && 6361 { ac_try='test -s conftest$ac_exeext' 6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6363 (eval $ac_try) 2>&5 6364 ac_status=$? 6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6366 (exit $ac_status); }; }; then 6367 tcl_cv_lib_corefoundation_64=yes 6368else 6369 echo "$as_me: failed program was:" >&5 6370sed 's/^/| /' conftest.$ac_ext >&5 6371 6372tcl_cv_lib_corefoundation_64=no 6373fi 6374rm -f conftest.err conftest.$ac_objext \ 6375 conftest$ac_exeext conftest.$ac_ext 6376 for v in CFLAGS CPPFLAGS LDFLAGS; do 6377 eval $v'="$hold_'$v'"' 6378 done 6379fi 6380echo "$as_me:$LINENO: result: $tcl_cv_lib_corefoundation_64" >&5 6381echo "${ECHO_T}$tcl_cv_lib_corefoundation_64" >&6 6382 if test $tcl_cv_lib_corefoundation_64 = no; then 6383 6384 6385cat >>confdefs.h <<\_ACEOF 6386#define NO_COREFOUNDATION_64 1 6387_ACEOF 6388 6389 LDFLAGS="$LDFLAGS -Wl,-no_arch_warnings" 6390 6391fi 6392 6393 6394fi 6395 6396 6397fi 6398 6399 ;; 6400 NEXTSTEP-*) 6401 SHLIB_CFLAGS="" 6402 SHLIB_LD='${CC} -nostdlib -r' 6403 SHLIB_LD_LIBS="" 6404 SHLIB_SUFFIX=".so" 6405 DL_OBJS="tclLoadNext.o" 6406 DL_LIBS="" 6407 CC_SEARCH_FLAGS="" 6408 LD_SEARCH_FLAGS="" 6409 ;; 6410 OS/390-*) 6411 SHLIB_LD_LIBS="" 6412 CFLAGS_OPTIMIZE="" # Optimizer is buggy 6413 6414cat >>confdefs.h <<\_ACEOF 6415#define _OE_SOCKETS 1 6416_ACEOF 6417 6418 ;; 6419 OSF1-1.0|OSF1-1.1|OSF1-1.2) 6420 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 6421 SHLIB_CFLAGS="" 6422 # Hack: make package name same as library name 6423 SHLIB_LD='ld -R -export :' 6424 SHLIB_LD_LIBS="" 6425 SHLIB_SUFFIX=".so" 6426 DL_OBJS="tclLoadOSF.o" 6427 DL_LIBS="" 6428 CC_SEARCH_FLAGS="" 6429 LD_SEARCH_FLAGS="" 6430 ;; 6431 OSF1-1.*) 6432 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 6433 SHLIB_CFLAGS="-fPIC" 6434 if test "$SHARED_BUILD" = 1; then 6435 SHLIB_LD="ld -shared" 6436else 6437 6438 SHLIB_LD="ld -non_shared" 6439 6440fi 6441 6442 SHLIB_LD_LIBS="" 6443 SHLIB_SUFFIX=".so" 6444 DL_OBJS="tclLoadDl.o" 6445 DL_LIBS="" 6446 CC_SEARCH_FLAGS="" 6447 LD_SEARCH_FLAGS="" 6448 ;; 6449 OSF1-V*) 6450 # Digital OSF/1 6451 SHLIB_CFLAGS="" 6452 if test "$SHARED_BUILD" = 1; then 6453 6454 SHLIB_LD='ld -shared -expect_unresolved "*"' 6455 6456else 6457 6458 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 6459 6460fi 6461 6462 SHLIB_SUFFIX=".so" 6463 DL_OBJS="tclLoadDl.o" 6464 DL_LIBS="" 6465 if test $doRpath = yes; then 6466 6467 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 6468 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 6469fi 6470 6471 if test "$GCC" = yes; then 6472 CFLAGS="$CFLAGS -mieee" 6473else 6474 6475 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 6476fi 6477 6478 # see pthread_intro(3) for pthread support on osf1, k.furukawa 6479 if test "${TCL_THREADS}" = 1; then 6480 6481 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 6482 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 6483 LIBS=`echo $LIBS | sed s/-lpthreads//` 6484 if test "$GCC" = yes; then 6485 6486 LIBS="$LIBS -lpthread -lmach -lexc" 6487 6488else 6489 6490 CFLAGS="$CFLAGS -pthread" 6491 LDFLAGS="$LDFLAGS -pthread" 6492 6493fi 6494 6495 6496fi 6497 6498 ;; 6499 QNX-6*) 6500 # QNX RTP 6501 # This may work for all QNX, but it was only reported for v6. 6502 SHLIB_CFLAGS="-fPIC" 6503 SHLIB_LD="ld -Bshareable -x" 6504 SHLIB_LD_LIBS="" 6505 SHLIB_SUFFIX=".so" 6506 DL_OBJS="tclLoadDl.o" 6507 # dlopen is in -lc on QNX 6508 DL_LIBS="" 6509 CC_SEARCH_FLAGS="" 6510 LD_SEARCH_FLAGS="" 6511 ;; 6512 SCO_SV-3.2*) 6513 # Note, dlopen is available only on SCO 3.2.5 and greater. However, 6514 # this test works, since "uname -s" was non-standard in 3.2.4 and 6515 # below. 6516 if test "$GCC" = yes; then 6517 6518 SHLIB_CFLAGS="-fPIC -melf" 6519 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 6520 6521else 6522 6523 SHLIB_CFLAGS="-Kpic -belf" 6524 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 6525 6526fi 6527 6528 SHLIB_LD="ld -G" 6529 SHLIB_LD_LIBS="" 6530 SHLIB_SUFFIX=".so" 6531 DL_OBJS="tclLoadDl.o" 6532 DL_LIBS="" 6533 CC_SEARCH_FLAGS="" 6534 LD_SEARCH_FLAGS="" 6535 ;; 6536 SINIX*5.4*) 6537 SHLIB_CFLAGS="-K PIC" 6538 SHLIB_LD='${CC} -G' 6539 SHLIB_LD_LIBS="" 6540 SHLIB_SUFFIX=".so" 6541 DL_OBJS="tclLoadDl.o" 6542 DL_LIBS="-ldl" 6543 CC_SEARCH_FLAGS="" 6544 LD_SEARCH_FLAGS="" 6545 ;; 6546 SunOS-4*) 6547 SHLIB_CFLAGS="-PIC" 6548 SHLIB_LD="ld" 6549 SHLIB_LD_LIBS="" 6550 SHLIB_SUFFIX=".so" 6551 DL_OBJS="tclLoadDl.o" 6552 DL_LIBS="-ldl" 6553 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 6554 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6555 6556 # SunOS can't handle version numbers with dots in them in library 6557 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it 6558 # requires an extra version number at the end of .so file names. 6559 # So, the library has to have a name like libtcl75.so.1.0 6560 6561 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 6562 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 6563 TCL_LIB_VERSIONS_OK=nodots 6564 ;; 6565 SunOS-5.[0-6]) 6566 # Careful to not let 5.10+ fall into this case 6567 6568 # Note: If _REENTRANT isn't defined, then Solaris 6569 # won't define thread-safe library routines. 6570 6571 6572cat >>confdefs.h <<\_ACEOF 6573#define _REENTRANT 1 6574_ACEOF 6575 6576 6577cat >>confdefs.h <<\_ACEOF 6578#define _POSIX_PTHREAD_SEMANTICS 1 6579_ACEOF 6580 6581 6582 SHLIB_CFLAGS="-KPIC" 6583 SHLIB_SUFFIX=".so" 6584 DL_OBJS="tclLoadDl.o" 6585 DL_LIBS="-ldl" 6586 if test "$GCC" = yes; then 6587 6588 SHLIB_LD='${CC} -shared' 6589 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 6590 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6591 6592else 6593 6594 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 6595 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 6596 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6597 6598fi 6599 6600 ;; 6601 SunOS-5*) 6602 # Note: If _REENTRANT isn't defined, then Solaris 6603 # won't define thread-safe library routines. 6604 6605 6606cat >>confdefs.h <<\_ACEOF 6607#define _REENTRANT 1 6608_ACEOF 6609 6610 6611cat >>confdefs.h <<\_ACEOF 6612#define _POSIX_PTHREAD_SEMANTICS 1 6613_ACEOF 6614 6615 6616 SHLIB_CFLAGS="-KPIC" 6617 6618 # Check to enable 64-bit flags for compiler/linker 6619 if test "$do64bit" = yes; then 6620 6621 arch=`isainfo` 6622 if test "$arch" = "sparcv9 sparc"; then 6623 6624 if test "$GCC" = yes; then 6625 6626 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 6627 6628 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 6629echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 6630 6631else 6632 6633 do64bit_ok=yes 6634 CFLAGS="$CFLAGS -m64 -mcpu=v9" 6635 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 6636 SHLIB_CFLAGS="-fPIC" 6637 6638fi 6639 6640 6641else 6642 6643 do64bit_ok=yes 6644 if test "$do64bitVIS" = yes; then 6645 6646 CFLAGS="$CFLAGS -xarch=v9a" 6647 LDFLAGS_ARCH="-xarch=v9a" 6648 6649else 6650 6651 CFLAGS="$CFLAGS -xarch=v9" 6652 LDFLAGS_ARCH="-xarch=v9" 6653 6654fi 6655 6656 # Solaris 64 uses this as well 6657 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 6658 6659fi 6660 6661 6662else 6663 if test "$arch" = "amd64 i386"; then 6664 6665 if test "$GCC" = yes; then 6666 6667 case $system in 6668 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 6669 do64bit_ok=yes 6670 CFLAGS="$CFLAGS -m64" 6671 LDFLAGS="$LDFLAGS -m64";; 6672 *) 6673 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 6674echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 6675 esac 6676 6677else 6678 6679 do64bit_ok=yes 6680 case $system in 6681 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 6682 CFLAGS="$CFLAGS -m64" 6683 LDFLAGS="$LDFLAGS -m64";; 6684 *) 6685 CFLAGS="$CFLAGS -xarch=amd64" 6686 LDFLAGS="$LDFLAGS -xarch=amd64";; 6687 esac 6688 6689fi 6690 6691 6692else 6693 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 6694echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 6695fi 6696 6697fi 6698 6699 6700fi 6701 6702 6703 #-------------------------------------------------------------------- 6704 # On Solaris 5.x i386 with the sunpro compiler we need to link 6705 # with sunmath to get floating point rounding control 6706 #-------------------------------------------------------------------- 6707 if test "$GCC" = yes; then 6708 use_sunmath=no 6709else 6710 6711 arch=`isainfo` 6712 echo "$as_me:$LINENO: checking whether to use -lsunmath for fp rounding control" >&5 6713echo $ECHO_N "checking whether to use -lsunmath for fp rounding control... $ECHO_C" >&6 6714 if test "$arch" = "amd64 i386"; then 6715 6716 echo "$as_me:$LINENO: result: yes" >&5 6717echo "${ECHO_T}yes" >&6 6718 MATH_LIBS="-lsunmath $MATH_LIBS" 6719 if test "${ac_cv_header_sunmath_h+set}" = set; then 6720 echo "$as_me:$LINENO: checking for sunmath.h" >&5 6721echo $ECHO_N "checking for sunmath.h... $ECHO_C" >&6 6722if test "${ac_cv_header_sunmath_h+set}" = set; then 6723 echo $ECHO_N "(cached) $ECHO_C" >&6 6724fi 6725echo "$as_me:$LINENO: result: $ac_cv_header_sunmath_h" >&5 6726echo "${ECHO_T}$ac_cv_header_sunmath_h" >&6 6727else 6728 # Is the header compilable? 6729echo "$as_me:$LINENO: checking sunmath.h usability" >&5 6730echo $ECHO_N "checking sunmath.h usability... $ECHO_C" >&6 6731cat >conftest.$ac_ext <<_ACEOF 6732/* confdefs.h. */ 6733_ACEOF 6734cat confdefs.h >>conftest.$ac_ext 6735cat >>conftest.$ac_ext <<_ACEOF 6736/* end confdefs.h. */ 6737$ac_includes_default 6738#include <sunmath.h> 6739_ACEOF 6740rm -f conftest.$ac_objext 6741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6742 (eval $ac_compile) 2>conftest.er1 6743 ac_status=$? 6744 grep -v '^ *+' conftest.er1 >conftest.err 6745 rm -f conftest.er1 6746 cat conftest.err >&5 6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6748 (exit $ac_status); } && 6749 { ac_try='test -z "$ac_c_werror_flag" 6750 || test ! -s conftest.err' 6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6752 (eval $ac_try) 2>&5 6753 ac_status=$? 6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6755 (exit $ac_status); }; } && 6756 { ac_try='test -s conftest.$ac_objext' 6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6758 (eval $ac_try) 2>&5 6759 ac_status=$? 6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6761 (exit $ac_status); }; }; then 6762 ac_header_compiler=yes 6763else 6764 echo "$as_me: failed program was:" >&5 6765sed 's/^/| /' conftest.$ac_ext >&5 6766 6767ac_header_compiler=no 6768fi 6769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6770echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6771echo "${ECHO_T}$ac_header_compiler" >&6 6772 6773# Is the header present? 6774echo "$as_me:$LINENO: checking sunmath.h presence" >&5 6775echo $ECHO_N "checking sunmath.h presence... $ECHO_C" >&6 6776cat >conftest.$ac_ext <<_ACEOF 6777/* confdefs.h. */ 6778_ACEOF 6779cat confdefs.h >>conftest.$ac_ext 6780cat >>conftest.$ac_ext <<_ACEOF 6781/* end confdefs.h. */ 6782#include <sunmath.h> 6783_ACEOF 6784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6786 ac_status=$? 6787 grep -v '^ *+' conftest.er1 >conftest.err 6788 rm -f conftest.er1 6789 cat conftest.err >&5 6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6791 (exit $ac_status); } >/dev/null; then 6792 if test -s conftest.err; then 6793 ac_cpp_err=$ac_c_preproc_warn_flag 6794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6795 else 6796 ac_cpp_err= 6797 fi 6798else 6799 ac_cpp_err=yes 6800fi 6801if test -z "$ac_cpp_err"; then 6802 ac_header_preproc=yes 6803else 6804 echo "$as_me: failed program was:" >&5 6805sed 's/^/| /' conftest.$ac_ext >&5 6806 6807 ac_header_preproc=no 6808fi 6809rm -f conftest.err conftest.$ac_ext 6810echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6811echo "${ECHO_T}$ac_header_preproc" >&6 6812 6813# So? What about this header? 6814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6815 yes:no: ) 6816 { echo "$as_me:$LINENO: WARNING: sunmath.h: accepted by the compiler, rejected by the preprocessor!" >&5 6817echo "$as_me: WARNING: sunmath.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6818 { echo "$as_me:$LINENO: WARNING: sunmath.h: proceeding with the compiler's result" >&5 6819echo "$as_me: WARNING: sunmath.h: proceeding with the compiler's result" >&2;} 6820 ac_header_preproc=yes 6821 ;; 6822 no:yes:* ) 6823 { echo "$as_me:$LINENO: WARNING: sunmath.h: present but cannot be compiled" >&5 6824echo "$as_me: WARNING: sunmath.h: present but cannot be compiled" >&2;} 6825 { echo "$as_me:$LINENO: WARNING: sunmath.h: check for missing prerequisite headers?" >&5 6826echo "$as_me: WARNING: sunmath.h: check for missing prerequisite headers?" >&2;} 6827 { echo "$as_me:$LINENO: WARNING: sunmath.h: see the Autoconf documentation" >&5 6828echo "$as_me: WARNING: sunmath.h: see the Autoconf documentation" >&2;} 6829 { echo "$as_me:$LINENO: WARNING: sunmath.h: section \"Present But Cannot Be Compiled\"" >&5 6830echo "$as_me: WARNING: sunmath.h: section \"Present But Cannot Be Compiled\"" >&2;} 6831 { echo "$as_me:$LINENO: WARNING: sunmath.h: proceeding with the preprocessor's result" >&5 6832echo "$as_me: WARNING: sunmath.h: proceeding with the preprocessor's result" >&2;} 6833 { echo "$as_me:$LINENO: WARNING: sunmath.h: in the future, the compiler will take precedence" >&5 6834echo "$as_me: WARNING: sunmath.h: in the future, the compiler will take precedence" >&2;} 6835 ( 6836 cat <<\_ASBOX 6837## ----------------------------- ## 6838## Report this to the tk lists. ## 6839## ----------------------------- ## 6840_ASBOX 6841 ) | 6842 sed "s/^/$as_me: WARNING: /" >&2 6843 ;; 6844esac 6845echo "$as_me:$LINENO: checking for sunmath.h" >&5 6846echo $ECHO_N "checking for sunmath.h... $ECHO_C" >&6 6847if test "${ac_cv_header_sunmath_h+set}" = set; then 6848 echo $ECHO_N "(cached) $ECHO_C" >&6 6849else 6850 ac_cv_header_sunmath_h=$ac_header_preproc 6851fi 6852echo "$as_me:$LINENO: result: $ac_cv_header_sunmath_h" >&5 6853echo "${ECHO_T}$ac_cv_header_sunmath_h" >&6 6854 6855fi 6856 6857 6858 use_sunmath=yes 6859 6860else 6861 6862 echo "$as_me:$LINENO: result: no" >&5 6863echo "${ECHO_T}no" >&6 6864 use_sunmath=no 6865 6866fi 6867 6868 6869fi 6870 6871 SHLIB_SUFFIX=".so" 6872 DL_OBJS="tclLoadDl.o" 6873 DL_LIBS="-ldl" 6874 if test "$GCC" = yes; then 6875 6876 SHLIB_LD='${CC} -shared' 6877 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 6878 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6879 if test "$do64bit_ok" = yes; then 6880 6881 if test "$arch" = "sparcv9 sparc"; then 6882 6883 # We need to specify -static-libgcc or we need to 6884 # add the path to the sparv9 libgcc. 6885 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 6886 # for finding sparcv9 libgcc, get the regular libgcc 6887 # path, remove so name and append 'sparcv9' 6888 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 6889 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 6890 6891else 6892 if test "$arch" = "amd64 i386"; then 6893 6894 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 6895 6896fi 6897 6898fi 6899 6900 6901fi 6902 6903 6904else 6905 6906 if test "$use_sunmath" = yes; then 6907 textmode=textoff 6908else 6909 textmode=text 6910fi 6911 6912 case $system in 6913 SunOS-5.[1-9][0-9]*) 6914 SHLIB_LD="\${CC} -G -z $textmode \${LDFLAGS}";; 6915 *) 6916 SHLIB_LD="/usr/ccs/bin/ld -G -z $textmode";; 6917 esac 6918 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 6919 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 6920 6921fi 6922 6923 ;; 6924 UNIX_SV* | UnixWare-5*) 6925 SHLIB_CFLAGS="-KPIC" 6926 SHLIB_LD='${CC} -G' 6927 SHLIB_LD_LIBS="" 6928 SHLIB_SUFFIX=".so" 6929 DL_OBJS="tclLoadDl.o" 6930 DL_LIBS="-ldl" 6931 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 6932 # that don't grok the -Bexport option. Test that it does. 6933 echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5 6934echo $ECHO_N "checking for ld accepts -Bexport flag... $ECHO_C" >&6 6935if test "${tcl_cv_ld_Bexport+set}" = set; then 6936 echo $ECHO_N "(cached) $ECHO_C" >&6 6937else 6938 6939 hold_ldflags=$LDFLAGS 6940 LDFLAGS="$LDFLAGS -Wl,-Bexport" 6941 cat >conftest.$ac_ext <<_ACEOF 6942/* confdefs.h. */ 6943_ACEOF 6944cat confdefs.h >>conftest.$ac_ext 6945cat >>conftest.$ac_ext <<_ACEOF 6946/* end confdefs.h. */ 6947 6948int 6949main () 6950{ 6951int i; 6952 ; 6953 return 0; 6954} 6955_ACEOF 6956rm -f conftest.$ac_objext conftest$ac_exeext 6957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6958 (eval $ac_link) 2>conftest.er1 6959 ac_status=$? 6960 grep -v '^ *+' conftest.er1 >conftest.err 6961 rm -f conftest.er1 6962 cat conftest.err >&5 6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6964 (exit $ac_status); } && 6965 { ac_try='test -z "$ac_c_werror_flag" 6966 || test ! -s conftest.err' 6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6968 (eval $ac_try) 2>&5 6969 ac_status=$? 6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6971 (exit $ac_status); }; } && 6972 { ac_try='test -s conftest$ac_exeext' 6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6974 (eval $ac_try) 2>&5 6975 ac_status=$? 6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6977 (exit $ac_status); }; }; then 6978 tcl_cv_ld_Bexport=yes 6979else 6980 echo "$as_me: failed program was:" >&5 6981sed 's/^/| /' conftest.$ac_ext >&5 6982 6983tcl_cv_ld_Bexport=no 6984fi 6985rm -f conftest.err conftest.$ac_objext \ 6986 conftest$ac_exeext conftest.$ac_ext 6987 LDFLAGS=$hold_ldflags 6988fi 6989echo "$as_me:$LINENO: result: $tcl_cv_ld_Bexport" >&5 6990echo "${ECHO_T}$tcl_cv_ld_Bexport" >&6 6991 if test $tcl_cv_ld_Bexport = yes; then 6992 6993 LDFLAGS="$LDFLAGS -Wl,-Bexport" 6994 6995fi 6996 6997 CC_SEARCH_FLAGS="" 6998 LD_SEARCH_FLAGS="" 6999 ;; 7000 esac 7001 7002 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 7003 7004 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 7005echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 7006 7007fi 7008 7009 7010 if test "$do64bit" = yes -a "$do64bit_ok" = yes; then 7011 7012 7013cat >>confdefs.h <<\_ACEOF 7014#define TCL_CFG_DO64BIT 1 7015_ACEOF 7016 7017 7018fi 7019 7020 7021 7022 7023 # Step 4: disable dynamic loading if requested via a command-line switch. 7024 7025 # Check whether --enable-load or --disable-load was given. 7026if test "${enable_load+set}" = set; then 7027 enableval="$enable_load" 7028 tcl_ok=$enableval 7029else 7030 tcl_ok=yes 7031fi; 7032 if test "$tcl_ok" = no; then 7033 DL_OBJS="" 7034fi 7035 7036 7037 if test "x$DL_OBJS" != x; then 7038 BUILD_DLTEST="\$(DLTEST_TARGETS)" 7039else 7040 7041 { echo "$as_me:$LINENO: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&5 7042echo "$as_me: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&2;} 7043 SHLIB_CFLAGS="" 7044 SHLIB_LD="" 7045 SHLIB_SUFFIX="" 7046 DL_OBJS="tclLoadNone.o" 7047 DL_LIBS="" 7048 LDFLAGS="$LDFLAGS_ORIG" 7049 CC_SEARCH_FLAGS="" 7050 LD_SEARCH_FLAGS="" 7051 BUILD_DLTEST="" 7052 7053fi 7054 7055 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 7056 7057 # If we're running gcc, then change the C flags for compiling shared 7058 # libraries to the right flags for gcc, instead of those for the 7059 # standard manufacturer compiler. 7060 7061 if test "$DL_OBJS" != "tclLoadNone.o" -a "$GCC" = yes; then 7062 7063 case $system in 7064 AIX-*) ;; 7065 BSD/OS*) ;; 7066 CYGWIN_*|MINGW32_*) ;; 7067 IRIX*) ;; 7068 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 7069 Darwin-*) ;; 7070 SCO_SV-3.2*) ;; 7071 *) SHLIB_CFLAGS="-fPIC" ;; 7072 esac 7073fi 7074 7075 7076 if test "$SHARED_LIB_SUFFIX" = ""; then 7077 7078 SHARED_LIB_SUFFIX='${VERSION}${SHLIB_SUFFIX}' 7079fi 7080 7081 if test "$UNSHARED_LIB_SUFFIX" = ""; then 7082 7083 UNSHARED_LIB_SUFFIX='${VERSION}.a' 7084fi 7085 7086 DLL_INSTALL_DIR="\$(LIB_INSTALL_DIR)" 7087 7088 if test "${SHARED_BUILD}" = 1 -a "${SHLIB_SUFFIX}" != ""; then 7089 7090 LIB_SUFFIX=${SHARED_LIB_SUFFIX} 7091 MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' 7092 if test "${SHLIB_SUFFIX}" = ".dll"; then 7093 7094 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(BIN_INSTALL_DIR)/$(LIB_FILE)";if test -f $(LIB_FILE).a; then $(INSTALL_DATA) $(LIB_FILE).a "$(LIB_INSTALL_DIR)"; fi;' 7095 DLL_INSTALL_DIR="\$(BIN_INSTALL_DIR)" 7096 7097else 7098 7099 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/$(LIB_FILE)"' 7100 7101fi 7102 7103 7104else 7105 7106 LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} 7107 7108 if test "$RANLIB" = ""; then 7109 7110 MAKE_LIB='$(STLIB_LD) $@ ${OBJS}' 7111 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/$(LIB_FILE)"' 7112 7113else 7114 7115 MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@' 7116 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/$(LIB_FILE)" ; (cd "$(LIB_INSTALL_DIR)" ; $(RANLIB) $(LIB_FILE))' 7117 7118fi 7119 7120 7121fi 7122 7123 7124 # Stub lib does not depend on shared/static configuration 7125 if test "$RANLIB" = ""; then 7126 7127 MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}' 7128 INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) "$(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)"' 7129 7130else 7131 7132 MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@' 7133 INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) "$(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)" ; (cd "$(LIB_INSTALL_DIR)" ; $(RANLIB) $(STUB_LIB_FILE))' 7134 7135fi 7136 7137 7138 # Define TCL_LIBS now that we know what DL_LIBS is. 7139 # The trick here is that we don't want to change the value of TCL_LIBS if 7140 # it is already set when tclConfig.sh had been loaded by Tk. 7141 if test "x${TCL_LIBS}" = x; then 7142 7143 TCL_LIBS="${DL_LIBS} ${LIBS} ${MATH_LIBS}" 7144fi 7145 7146 7147 7148 # See if the compiler supports casting to a union type. 7149 # This is used to stop gcc from printing a compiler 7150 # warning when initializing a union member. 7151 7152 echo "$as_me:$LINENO: checking for cast to union support" >&5 7153echo $ECHO_N "checking for cast to union support... $ECHO_C" >&6 7154if test "${tcl_cv_cast_to_union+set}" = set; then 7155 echo $ECHO_N "(cached) $ECHO_C" >&6 7156else 7157 cat >conftest.$ac_ext <<_ACEOF 7158/* confdefs.h. */ 7159_ACEOF 7160cat confdefs.h >>conftest.$ac_ext 7161cat >>conftest.$ac_ext <<_ACEOF 7162/* end confdefs.h. */ 7163 7164int 7165main () 7166{ 7167 7168 union foo { int i; double d; }; 7169 union foo f = (union foo) (int) 0; 7170 7171 ; 7172 return 0; 7173} 7174_ACEOF 7175rm -f conftest.$ac_objext 7176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7177 (eval $ac_compile) 2>conftest.er1 7178 ac_status=$? 7179 grep -v '^ *+' conftest.er1 >conftest.err 7180 rm -f conftest.er1 7181 cat conftest.err >&5 7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7183 (exit $ac_status); } && 7184 { ac_try='test -z "$ac_c_werror_flag" 7185 || test ! -s conftest.err' 7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7187 (eval $ac_try) 2>&5 7188 ac_status=$? 7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7190 (exit $ac_status); }; } && 7191 { ac_try='test -s conftest.$ac_objext' 7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7193 (eval $ac_try) 2>&5 7194 ac_status=$? 7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7196 (exit $ac_status); }; }; then 7197 tcl_cv_cast_to_union=yes 7198else 7199 echo "$as_me: failed program was:" >&5 7200sed 's/^/| /' conftest.$ac_ext >&5 7201 7202tcl_cv_cast_to_union=no 7203fi 7204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7205 7206fi 7207echo "$as_me:$LINENO: result: $tcl_cv_cast_to_union" >&5 7208echo "${ECHO_T}$tcl_cv_cast_to_union" >&6 7209 if test "$tcl_cv_cast_to_union" = "yes"; then 7210 7211cat >>confdefs.h <<\_ACEOF 7212#define HAVE_CAST_TO_UNION 1 7213_ACEOF 7214 7215 fi 7216 7217 # FIXME: This subst was left in only because the TCL_DL_LIBS 7218 # entry in tclConfig.sh uses it. It is not clear why someone 7219 # would use TCL_DL_LIBS instead of TCL_LIBS. 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245cat >>confdefs.h <<_ACEOF 7246#define TCL_SHLIB_EXT "${SHLIB_SUFFIX}" 7247_ACEOF 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 echo "$as_me:$LINENO: checking for build with symbols" >&5 7260echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6 7261 # Check whether --enable-symbols or --disable-symbols was given. 7262if test "${enable_symbols+set}" = set; then 7263 enableval="$enable_symbols" 7264 tcl_ok=$enableval 7265else 7266 tcl_ok=no 7267fi; 7268# FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT. 7269 DBGX="" 7270 if test "$tcl_ok" = "no"; then 7271 CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)' 7272 LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)' 7273 7274cat >>confdefs.h <<\_ACEOF 7275#define NDEBUG 1 7276_ACEOF 7277 7278 echo "$as_me:$LINENO: result: no" >&5 7279echo "${ECHO_T}no" >&6 7280 7281cat >>confdefs.h <<\_ACEOF 7282#define TCL_CFG_OPTIMIZED 1 7283_ACEOF 7284 7285 else 7286 CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' 7287 LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' 7288 if test "$tcl_ok" = "yes"; then 7289 echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 7290echo "${ECHO_T}yes (standard debugging)" >&6 7291 fi 7292 fi 7293 7294 7295 7296 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 7297 7298cat >>confdefs.h <<\_ACEOF 7299#define TCL_MEM_DEBUG 1 7300_ACEOF 7301 7302 fi 7303 7304 7305 7306 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 7307 if test "$tcl_ok" = "all"; then 7308 echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 7309echo "${ECHO_T}enabled symbols mem debugging" >&6 7310 else 7311 echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 7312echo "${ECHO_T}enabled $tcl_ok debugging" >&6 7313 fi 7314 fi 7315 7316 7317#-------------------------------------------------------------------- 7318# Detect what compiler flags to set for 64-bit support. 7319#-------------------------------------------------------------------- 7320 7321 7322 echo "$as_me:$LINENO: checking for required early compiler flags" >&5 7323echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6 7324 tcl_flags="" 7325 7326 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 7327 echo $ECHO_N "(cached) $ECHO_C" >&6 7328else 7329 cat >conftest.$ac_ext <<_ACEOF 7330/* confdefs.h. */ 7331_ACEOF 7332cat confdefs.h >>conftest.$ac_ext 7333cat >>conftest.$ac_ext <<_ACEOF 7334/* end confdefs.h. */ 7335#include <stdlib.h> 7336int 7337main () 7338{ 7339char *p = (char *)strtoll; char *q = (char *)strtoull; 7340 ; 7341 return 0; 7342} 7343_ACEOF 7344rm -f conftest.$ac_objext 7345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7346 (eval $ac_compile) 2>conftest.er1 7347 ac_status=$? 7348 grep -v '^ *+' conftest.er1 >conftest.err 7349 rm -f conftest.er1 7350 cat conftest.err >&5 7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7352 (exit $ac_status); } && 7353 { ac_try='test -z "$ac_c_werror_flag" 7354 || test ! -s conftest.err' 7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7356 (eval $ac_try) 2>&5 7357 ac_status=$? 7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7359 (exit $ac_status); }; } && 7360 { ac_try='test -s conftest.$ac_objext' 7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7362 (eval $ac_try) 2>&5 7363 ac_status=$? 7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7365 (exit $ac_status); }; }; then 7366 tcl_cv_flag__isoc99_source=no 7367else 7368 echo "$as_me: failed program was:" >&5 7369sed 's/^/| /' conftest.$ac_ext >&5 7370 7371cat >conftest.$ac_ext <<_ACEOF 7372/* confdefs.h. */ 7373_ACEOF 7374cat confdefs.h >>conftest.$ac_ext 7375cat >>conftest.$ac_ext <<_ACEOF 7376/* end confdefs.h. */ 7377#define _ISOC99_SOURCE 1 7378#include <stdlib.h> 7379int 7380main () 7381{ 7382char *p = (char *)strtoll; char *q = (char *)strtoull; 7383 ; 7384 return 0; 7385} 7386_ACEOF 7387rm -f conftest.$ac_objext 7388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7389 (eval $ac_compile) 2>conftest.er1 7390 ac_status=$? 7391 grep -v '^ *+' conftest.er1 >conftest.err 7392 rm -f conftest.er1 7393 cat conftest.err >&5 7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7395 (exit $ac_status); } && 7396 { ac_try='test -z "$ac_c_werror_flag" 7397 || test ! -s conftest.err' 7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7399 (eval $ac_try) 2>&5 7400 ac_status=$? 7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7402 (exit $ac_status); }; } && 7403 { ac_try='test -s conftest.$ac_objext' 7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7405 (eval $ac_try) 2>&5 7406 ac_status=$? 7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7408 (exit $ac_status); }; }; then 7409 tcl_cv_flag__isoc99_source=yes 7410else 7411 echo "$as_me: failed program was:" >&5 7412sed 's/^/| /' conftest.$ac_ext >&5 7413 7414tcl_cv_flag__isoc99_source=no 7415fi 7416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7417fi 7418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7419fi 7420 7421 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 7422 7423cat >>confdefs.h <<\_ACEOF 7424#define _ISOC99_SOURCE 1 7425_ACEOF 7426 7427 tcl_flags="$tcl_flags _ISOC99_SOURCE" 7428 fi 7429 7430 7431 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 7432 echo $ECHO_N "(cached) $ECHO_C" >&6 7433else 7434 cat >conftest.$ac_ext <<_ACEOF 7435/* confdefs.h. */ 7436_ACEOF 7437cat confdefs.h >>conftest.$ac_ext 7438cat >>conftest.$ac_ext <<_ACEOF 7439/* end confdefs.h. */ 7440#include <sys/stat.h> 7441int 7442main () 7443{ 7444struct stat64 buf; int i = stat64("/", &buf); 7445 ; 7446 return 0; 7447} 7448_ACEOF 7449rm -f conftest.$ac_objext 7450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7451 (eval $ac_compile) 2>conftest.er1 7452 ac_status=$? 7453 grep -v '^ *+' conftest.er1 >conftest.err 7454 rm -f conftest.er1 7455 cat conftest.err >&5 7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7457 (exit $ac_status); } && 7458 { ac_try='test -z "$ac_c_werror_flag" 7459 || test ! -s conftest.err' 7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7461 (eval $ac_try) 2>&5 7462 ac_status=$? 7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7464 (exit $ac_status); }; } && 7465 { ac_try='test -s conftest.$ac_objext' 7466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7467 (eval $ac_try) 2>&5 7468 ac_status=$? 7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7470 (exit $ac_status); }; }; then 7471 tcl_cv_flag__largefile64_source=no 7472else 7473 echo "$as_me: failed program was:" >&5 7474sed 's/^/| /' conftest.$ac_ext >&5 7475 7476cat >conftest.$ac_ext <<_ACEOF 7477/* confdefs.h. */ 7478_ACEOF 7479cat confdefs.h >>conftest.$ac_ext 7480cat >>conftest.$ac_ext <<_ACEOF 7481/* end confdefs.h. */ 7482#define _LARGEFILE64_SOURCE 1 7483#include <sys/stat.h> 7484int 7485main () 7486{ 7487struct stat64 buf; int i = stat64("/", &buf); 7488 ; 7489 return 0; 7490} 7491_ACEOF 7492rm -f conftest.$ac_objext 7493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7494 (eval $ac_compile) 2>conftest.er1 7495 ac_status=$? 7496 grep -v '^ *+' conftest.er1 >conftest.err 7497 rm -f conftest.er1 7498 cat conftest.err >&5 7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7500 (exit $ac_status); } && 7501 { ac_try='test -z "$ac_c_werror_flag" 7502 || test ! -s conftest.err' 7503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7504 (eval $ac_try) 2>&5 7505 ac_status=$? 7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7507 (exit $ac_status); }; } && 7508 { ac_try='test -s conftest.$ac_objext' 7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7510 (eval $ac_try) 2>&5 7511 ac_status=$? 7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7513 (exit $ac_status); }; }; then 7514 tcl_cv_flag__largefile64_source=yes 7515else 7516 echo "$as_me: failed program was:" >&5 7517sed 's/^/| /' conftest.$ac_ext >&5 7518 7519tcl_cv_flag__largefile64_source=no 7520fi 7521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7522fi 7523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7524fi 7525 7526 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 7527 7528cat >>confdefs.h <<\_ACEOF 7529#define _LARGEFILE64_SOURCE 1 7530_ACEOF 7531 7532 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 7533 fi 7534 7535 7536 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 7537 echo $ECHO_N "(cached) $ECHO_C" >&6 7538else 7539 cat >conftest.$ac_ext <<_ACEOF 7540/* confdefs.h. */ 7541_ACEOF 7542cat confdefs.h >>conftest.$ac_ext 7543cat >>conftest.$ac_ext <<_ACEOF 7544/* end confdefs.h. */ 7545#include <sys/stat.h> 7546int 7547main () 7548{ 7549char *p = (char *)open64; 7550 ; 7551 return 0; 7552} 7553_ACEOF 7554rm -f conftest.$ac_objext 7555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7556 (eval $ac_compile) 2>conftest.er1 7557 ac_status=$? 7558 grep -v '^ *+' conftest.er1 >conftest.err 7559 rm -f conftest.er1 7560 cat conftest.err >&5 7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7562 (exit $ac_status); } && 7563 { ac_try='test -z "$ac_c_werror_flag" 7564 || test ! -s conftest.err' 7565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7566 (eval $ac_try) 2>&5 7567 ac_status=$? 7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7569 (exit $ac_status); }; } && 7570 { ac_try='test -s conftest.$ac_objext' 7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7572 (eval $ac_try) 2>&5 7573 ac_status=$? 7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7575 (exit $ac_status); }; }; then 7576 tcl_cv_flag__largefile_source64=no 7577else 7578 echo "$as_me: failed program was:" >&5 7579sed 's/^/| /' conftest.$ac_ext >&5 7580 7581cat >conftest.$ac_ext <<_ACEOF 7582/* confdefs.h. */ 7583_ACEOF 7584cat confdefs.h >>conftest.$ac_ext 7585cat >>conftest.$ac_ext <<_ACEOF 7586/* end confdefs.h. */ 7587#define _LARGEFILE_SOURCE64 1 7588#include <sys/stat.h> 7589int 7590main () 7591{ 7592char *p = (char *)open64; 7593 ; 7594 return 0; 7595} 7596_ACEOF 7597rm -f conftest.$ac_objext 7598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7599 (eval $ac_compile) 2>conftest.er1 7600 ac_status=$? 7601 grep -v '^ *+' conftest.er1 >conftest.err 7602 rm -f conftest.er1 7603 cat conftest.err >&5 7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7605 (exit $ac_status); } && 7606 { ac_try='test -z "$ac_c_werror_flag" 7607 || test ! -s conftest.err' 7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7609 (eval $ac_try) 2>&5 7610 ac_status=$? 7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7612 (exit $ac_status); }; } && 7613 { ac_try='test -s conftest.$ac_objext' 7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7615 (eval $ac_try) 2>&5 7616 ac_status=$? 7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7618 (exit $ac_status); }; }; then 7619 tcl_cv_flag__largefile_source64=yes 7620else 7621 echo "$as_me: failed program was:" >&5 7622sed 's/^/| /' conftest.$ac_ext >&5 7623 7624tcl_cv_flag__largefile_source64=no 7625fi 7626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7627fi 7628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7629fi 7630 7631 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 7632 7633cat >>confdefs.h <<\_ACEOF 7634#define _LARGEFILE_SOURCE64 1 7635_ACEOF 7636 7637 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 7638 fi 7639 7640 if test "x${tcl_flags}" = "x" ; then 7641 echo "$as_me:$LINENO: result: none" >&5 7642echo "${ECHO_T}none" >&6 7643 else 7644 echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 7645echo "${ECHO_T}${tcl_flags}" >&6 7646 fi 7647 7648 7649 7650 echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 7651echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6 7652 if test "${tcl_cv_type_64bit+set}" = set; then 7653 echo $ECHO_N "(cached) $ECHO_C" >&6 7654else 7655 7656 tcl_cv_type_64bit=none 7657 # See if the compiler knows natively about __int64 7658 cat >conftest.$ac_ext <<_ACEOF 7659/* confdefs.h. */ 7660_ACEOF 7661cat confdefs.h >>conftest.$ac_ext 7662cat >>conftest.$ac_ext <<_ACEOF 7663/* end confdefs.h. */ 7664 7665int 7666main () 7667{ 7668__int64 value = (__int64) 0; 7669 ; 7670 return 0; 7671} 7672_ACEOF 7673rm -f conftest.$ac_objext 7674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7675 (eval $ac_compile) 2>conftest.er1 7676 ac_status=$? 7677 grep -v '^ *+' conftest.er1 >conftest.err 7678 rm -f conftest.er1 7679 cat conftest.err >&5 7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7681 (exit $ac_status); } && 7682 { ac_try='test -z "$ac_c_werror_flag" 7683 || test ! -s conftest.err' 7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7685 (eval $ac_try) 2>&5 7686 ac_status=$? 7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7688 (exit $ac_status); }; } && 7689 { ac_try='test -s conftest.$ac_objext' 7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7691 (eval $ac_try) 2>&5 7692 ac_status=$? 7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7694 (exit $ac_status); }; }; then 7695 tcl_type_64bit=__int64 7696else 7697 echo "$as_me: failed program was:" >&5 7698sed 's/^/| /' conftest.$ac_ext >&5 7699 7700tcl_type_64bit="long long" 7701fi 7702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7703 # See if we should use long anyway Note that we substitute in the 7704 # type that is our current guess for a 64-bit type inside this check 7705 # program, so it should be modified only carefully... 7706 cat >conftest.$ac_ext <<_ACEOF 7707/* confdefs.h. */ 7708_ACEOF 7709cat confdefs.h >>conftest.$ac_ext 7710cat >>conftest.$ac_ext <<_ACEOF 7711/* end confdefs.h. */ 7712 7713int 7714main () 7715{ 7716switch (0) { 7717 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 7718 } 7719 ; 7720 return 0; 7721} 7722_ACEOF 7723rm -f conftest.$ac_objext 7724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7725 (eval $ac_compile) 2>conftest.er1 7726 ac_status=$? 7727 grep -v '^ *+' conftest.er1 >conftest.err 7728 rm -f conftest.er1 7729 cat conftest.err >&5 7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7731 (exit $ac_status); } && 7732 { ac_try='test -z "$ac_c_werror_flag" 7733 || test ! -s conftest.err' 7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7735 (eval $ac_try) 2>&5 7736 ac_status=$? 7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7738 (exit $ac_status); }; } && 7739 { ac_try='test -s conftest.$ac_objext' 7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7741 (eval $ac_try) 2>&5 7742 ac_status=$? 7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7744 (exit $ac_status); }; }; then 7745 tcl_cv_type_64bit=${tcl_type_64bit} 7746else 7747 echo "$as_me: failed program was:" >&5 7748sed 's/^/| /' conftest.$ac_ext >&5 7749 7750fi 7751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7752fi 7753 7754 if test "${tcl_cv_type_64bit}" = none ; then 7755 7756cat >>confdefs.h <<\_ACEOF 7757#define TCL_WIDE_INT_IS_LONG 1 7758_ACEOF 7759 7760 echo "$as_me:$LINENO: result: using long" >&5 7761echo "${ECHO_T}using long" >&6 7762 else 7763 7764cat >>confdefs.h <<_ACEOF 7765#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 7766_ACEOF 7767 7768 echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 7769echo "${ECHO_T}${tcl_cv_type_64bit}" >&6 7770 7771 # Now check for auxiliary declarations 7772 echo "$as_me:$LINENO: checking for struct dirent64" >&5 7773echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6 7774if test "${tcl_cv_struct_dirent64+set}" = set; then 7775 echo $ECHO_N "(cached) $ECHO_C" >&6 7776else 7777 7778 cat >conftest.$ac_ext <<_ACEOF 7779/* confdefs.h. */ 7780_ACEOF 7781cat confdefs.h >>conftest.$ac_ext 7782cat >>conftest.$ac_ext <<_ACEOF 7783/* end confdefs.h. */ 7784#include <sys/types.h> 7785#include <dirent.h> 7786int 7787main () 7788{ 7789struct dirent64 p; 7790 ; 7791 return 0; 7792} 7793_ACEOF 7794rm -f conftest.$ac_objext 7795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7796 (eval $ac_compile) 2>conftest.er1 7797 ac_status=$? 7798 grep -v '^ *+' conftest.er1 >conftest.err 7799 rm -f conftest.er1 7800 cat conftest.err >&5 7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7802 (exit $ac_status); } && 7803 { ac_try='test -z "$ac_c_werror_flag" 7804 || test ! -s conftest.err' 7805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7806 (eval $ac_try) 2>&5 7807 ac_status=$? 7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7809 (exit $ac_status); }; } && 7810 { ac_try='test -s conftest.$ac_objext' 7811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7812 (eval $ac_try) 2>&5 7813 ac_status=$? 7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7815 (exit $ac_status); }; }; then 7816 tcl_cv_struct_dirent64=yes 7817else 7818 echo "$as_me: failed program was:" >&5 7819sed 's/^/| /' conftest.$ac_ext >&5 7820 7821tcl_cv_struct_dirent64=no 7822fi 7823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7824fi 7825echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 7826echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6 7827 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 7828 7829cat >>confdefs.h <<\_ACEOF 7830#define HAVE_STRUCT_DIRENT64 1 7831_ACEOF 7832 7833 fi 7834 7835 echo "$as_me:$LINENO: checking for struct stat64" >&5 7836echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6 7837if test "${tcl_cv_struct_stat64+set}" = set; then 7838 echo $ECHO_N "(cached) $ECHO_C" >&6 7839else 7840 7841 cat >conftest.$ac_ext <<_ACEOF 7842/* confdefs.h. */ 7843_ACEOF 7844cat confdefs.h >>conftest.$ac_ext 7845cat >>conftest.$ac_ext <<_ACEOF 7846/* end confdefs.h. */ 7847#include <sys/stat.h> 7848int 7849main () 7850{ 7851struct stat64 p; 7852 7853 ; 7854 return 0; 7855} 7856_ACEOF 7857rm -f conftest.$ac_objext 7858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7859 (eval $ac_compile) 2>conftest.er1 7860 ac_status=$? 7861 grep -v '^ *+' conftest.er1 >conftest.err 7862 rm -f conftest.er1 7863 cat conftest.err >&5 7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7865 (exit $ac_status); } && 7866 { ac_try='test -z "$ac_c_werror_flag" 7867 || test ! -s conftest.err' 7868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7869 (eval $ac_try) 2>&5 7870 ac_status=$? 7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7872 (exit $ac_status); }; } && 7873 { ac_try='test -s conftest.$ac_objext' 7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7875 (eval $ac_try) 2>&5 7876 ac_status=$? 7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7878 (exit $ac_status); }; }; then 7879 tcl_cv_struct_stat64=yes 7880else 7881 echo "$as_me: failed program was:" >&5 7882sed 's/^/| /' conftest.$ac_ext >&5 7883 7884tcl_cv_struct_stat64=no 7885fi 7886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7887fi 7888echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 7889echo "${ECHO_T}$tcl_cv_struct_stat64" >&6 7890 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 7891 7892cat >>confdefs.h <<\_ACEOF 7893#define HAVE_STRUCT_STAT64 1 7894_ACEOF 7895 7896 fi 7897 7898 7899 7900for ac_func in open64 lseek64 7901do 7902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7903echo "$as_me:$LINENO: checking for $ac_func" >&5 7904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7905if eval "test \"\${$as_ac_var+set}\" = set"; then 7906 echo $ECHO_N "(cached) $ECHO_C" >&6 7907else 7908 cat >conftest.$ac_ext <<_ACEOF 7909/* confdefs.h. */ 7910_ACEOF 7911cat confdefs.h >>conftest.$ac_ext 7912cat >>conftest.$ac_ext <<_ACEOF 7913/* end confdefs.h. */ 7914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7915 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7916#define $ac_func innocuous_$ac_func 7917 7918/* System header to define __stub macros and hopefully few prototypes, 7919 which can conflict with char $ac_func (); below. 7920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7921 <limits.h> exists even on freestanding compilers. */ 7922 7923#ifdef __STDC__ 7924# include <limits.h> 7925#else 7926# include <assert.h> 7927#endif 7928 7929#undef $ac_func 7930 7931/* Override any gcc2 internal prototype to avoid an error. */ 7932#ifdef __cplusplus 7933extern "C" 7934{ 7935#endif 7936/* We use char because int might match the return type of a gcc2 7937 builtin and then its argument prototype would still apply. */ 7938char $ac_func (); 7939/* The GNU C library defines this for functions which it implements 7940 to always fail with ENOSYS. Some functions are actually named 7941 something starting with __ and the normal name is an alias. */ 7942#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7943choke me 7944#else 7945char (*f) () = $ac_func; 7946#endif 7947#ifdef __cplusplus 7948} 7949#endif 7950 7951int 7952main () 7953{ 7954return f != $ac_func; 7955 ; 7956 return 0; 7957} 7958_ACEOF 7959rm -f conftest.$ac_objext conftest$ac_exeext 7960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7961 (eval $ac_link) 2>conftest.er1 7962 ac_status=$? 7963 grep -v '^ *+' conftest.er1 >conftest.err 7964 rm -f conftest.er1 7965 cat conftest.err >&5 7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7967 (exit $ac_status); } && 7968 { ac_try='test -z "$ac_c_werror_flag" 7969 || test ! -s conftest.err' 7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7971 (eval $ac_try) 2>&5 7972 ac_status=$? 7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7974 (exit $ac_status); }; } && 7975 { ac_try='test -s conftest$ac_exeext' 7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7977 (eval $ac_try) 2>&5 7978 ac_status=$? 7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7980 (exit $ac_status); }; }; then 7981 eval "$as_ac_var=yes" 7982else 7983 echo "$as_me: failed program was:" >&5 7984sed 's/^/| /' conftest.$ac_ext >&5 7985 7986eval "$as_ac_var=no" 7987fi 7988rm -f conftest.err conftest.$ac_objext \ 7989 conftest$ac_exeext conftest.$ac_ext 7990fi 7991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7992echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7993if test `eval echo '${'$as_ac_var'}'` = yes; then 7994 cat >>confdefs.h <<_ACEOF 7995#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7996_ACEOF 7997 7998fi 7999done 8000 8001 echo "$as_me:$LINENO: checking for off64_t" >&5 8002echo $ECHO_N "checking for off64_t... $ECHO_C" >&6 8003 if test "${tcl_cv_type_off64_t+set}" = set; then 8004 echo $ECHO_N "(cached) $ECHO_C" >&6 8005else 8006 8007 cat >conftest.$ac_ext <<_ACEOF 8008/* confdefs.h. */ 8009_ACEOF 8010cat confdefs.h >>conftest.$ac_ext 8011cat >>conftest.$ac_ext <<_ACEOF 8012/* end confdefs.h. */ 8013#include <sys/types.h> 8014int 8015main () 8016{ 8017off64_t offset; 8018 8019 ; 8020 return 0; 8021} 8022_ACEOF 8023rm -f conftest.$ac_objext 8024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8025 (eval $ac_compile) 2>conftest.er1 8026 ac_status=$? 8027 grep -v '^ *+' conftest.er1 >conftest.err 8028 rm -f conftest.er1 8029 cat conftest.err >&5 8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8031 (exit $ac_status); } && 8032 { ac_try='test -z "$ac_c_werror_flag" 8033 || test ! -s conftest.err' 8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8035 (eval $ac_try) 2>&5 8036 ac_status=$? 8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8038 (exit $ac_status); }; } && 8039 { ac_try='test -s conftest.$ac_objext' 8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8041 (eval $ac_try) 2>&5 8042 ac_status=$? 8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8044 (exit $ac_status); }; }; then 8045 tcl_cv_type_off64_t=yes 8046else 8047 echo "$as_me: failed program was:" >&5 8048sed 's/^/| /' conftest.$ac_ext >&5 8049 8050tcl_cv_type_off64_t=no 8051fi 8052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8053fi 8054 8055 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 8056 test "x${ac_cv_func_lseek64}" = "xyes" && \ 8057 test "x${ac_cv_func_open64}" = "xyes" ; then 8058 8059cat >>confdefs.h <<\_ACEOF 8060#define HAVE_TYPE_OFF64_T 1 8061_ACEOF 8062 8063 echo "$as_me:$LINENO: result: yes" >&5 8064echo "${ECHO_T}yes" >&6 8065 else 8066 echo "$as_me:$LINENO: result: no" >&5 8067echo "${ECHO_T}no" >&6 8068 fi 8069 fi 8070 8071 8072#-------------------------------------------------------------------- 8073# Check endianness because we can optimize some operations 8074#-------------------------------------------------------------------- 8075 8076echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 8077echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 8078if test "${ac_cv_c_bigendian+set}" = set; then 8079 echo $ECHO_N "(cached) $ECHO_C" >&6 8080else 8081 # See if sys/param.h defines the BYTE_ORDER macro. 8082cat >conftest.$ac_ext <<_ACEOF 8083/* confdefs.h. */ 8084_ACEOF 8085cat confdefs.h >>conftest.$ac_ext 8086cat >>conftest.$ac_ext <<_ACEOF 8087/* end confdefs.h. */ 8088#include <sys/types.h> 8089#include <sys/param.h> 8090 8091int 8092main () 8093{ 8094#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 8095 bogus endian macros 8096#endif 8097 8098 ; 8099 return 0; 8100} 8101_ACEOF 8102rm -f conftest.$ac_objext 8103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8104 (eval $ac_compile) 2>conftest.er1 8105 ac_status=$? 8106 grep -v '^ *+' conftest.er1 >conftest.err 8107 rm -f conftest.er1 8108 cat conftest.err >&5 8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8110 (exit $ac_status); } && 8111 { ac_try='test -z "$ac_c_werror_flag" 8112 || test ! -s conftest.err' 8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8114 (eval $ac_try) 2>&5 8115 ac_status=$? 8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8117 (exit $ac_status); }; } && 8118 { ac_try='test -s conftest.$ac_objext' 8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8120 (eval $ac_try) 2>&5 8121 ac_status=$? 8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8123 (exit $ac_status); }; }; then 8124 # It does; now see whether it defined to BIG_ENDIAN or not. 8125cat >conftest.$ac_ext <<_ACEOF 8126/* confdefs.h. */ 8127_ACEOF 8128cat confdefs.h >>conftest.$ac_ext 8129cat >>conftest.$ac_ext <<_ACEOF 8130/* end confdefs.h. */ 8131#include <sys/types.h> 8132#include <sys/param.h> 8133 8134int 8135main () 8136{ 8137#if BYTE_ORDER != BIG_ENDIAN 8138 not big endian 8139#endif 8140 8141 ; 8142 return 0; 8143} 8144_ACEOF 8145rm -f conftest.$ac_objext 8146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8147 (eval $ac_compile) 2>conftest.er1 8148 ac_status=$? 8149 grep -v '^ *+' conftest.er1 >conftest.err 8150 rm -f conftest.er1 8151 cat conftest.err >&5 8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8153 (exit $ac_status); } && 8154 { ac_try='test -z "$ac_c_werror_flag" 8155 || test ! -s conftest.err' 8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8157 (eval $ac_try) 2>&5 8158 ac_status=$? 8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8160 (exit $ac_status); }; } && 8161 { ac_try='test -s conftest.$ac_objext' 8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8163 (eval $ac_try) 2>&5 8164 ac_status=$? 8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8166 (exit $ac_status); }; }; then 8167 ac_cv_c_bigendian=yes 8168else 8169 echo "$as_me: failed program was:" >&5 8170sed 's/^/| /' conftest.$ac_ext >&5 8171 8172ac_cv_c_bigendian=no 8173fi 8174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8175else 8176 echo "$as_me: failed program was:" >&5 8177sed 's/^/| /' conftest.$ac_ext >&5 8178 8179# It does not; compile a test program. 8180if test "$cross_compiling" = yes; then 8181 # try to guess the endianness by grepping values into an object file 8182 ac_cv_c_bigendian=unknown 8183 cat >conftest.$ac_ext <<_ACEOF 8184/* confdefs.h. */ 8185_ACEOF 8186cat confdefs.h >>conftest.$ac_ext 8187cat >>conftest.$ac_ext <<_ACEOF 8188/* end confdefs.h. */ 8189short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 8190short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 8191void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 8192short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 8193short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 8194void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 8195int 8196main () 8197{ 8198 _ascii (); _ebcdic (); 8199 ; 8200 return 0; 8201} 8202_ACEOF 8203rm -f conftest.$ac_objext 8204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8205 (eval $ac_compile) 2>conftest.er1 8206 ac_status=$? 8207 grep -v '^ *+' conftest.er1 >conftest.err 8208 rm -f conftest.er1 8209 cat conftest.err >&5 8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8211 (exit $ac_status); } && 8212 { ac_try='test -z "$ac_c_werror_flag" 8213 || test ! -s conftest.err' 8214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8215 (eval $ac_try) 2>&5 8216 ac_status=$? 8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8218 (exit $ac_status); }; } && 8219 { ac_try='test -s conftest.$ac_objext' 8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8221 (eval $ac_try) 2>&5 8222 ac_status=$? 8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8224 (exit $ac_status); }; }; then 8225 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 8226 ac_cv_c_bigendian=yes 8227fi 8228if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 8229 if test "$ac_cv_c_bigendian" = unknown; then 8230 ac_cv_c_bigendian=no 8231 else 8232 # finding both strings is unlikely to happen, but who knows? 8233 ac_cv_c_bigendian=unknown 8234 fi 8235fi 8236else 8237 echo "$as_me: failed program was:" >&5 8238sed 's/^/| /' conftest.$ac_ext >&5 8239 8240fi 8241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8242else 8243 cat >conftest.$ac_ext <<_ACEOF 8244/* confdefs.h. */ 8245_ACEOF 8246cat confdefs.h >>conftest.$ac_ext 8247cat >>conftest.$ac_ext <<_ACEOF 8248/* end confdefs.h. */ 8249int 8250main () 8251{ 8252 /* Are we little or big endian? From Harbison&Steele. */ 8253 union 8254 { 8255 long l; 8256 char c[sizeof (long)]; 8257 } u; 8258 u.l = 1; 8259 exit (u.c[sizeof (long) - 1] == 1); 8260} 8261_ACEOF 8262rm -f conftest$ac_exeext 8263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8264 (eval $ac_link) 2>&5 8265 ac_status=$? 8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8269 (eval $ac_try) 2>&5 8270 ac_status=$? 8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8272 (exit $ac_status); }; }; then 8273 ac_cv_c_bigendian=no 8274else 8275 echo "$as_me: program exited with status $ac_status" >&5 8276echo "$as_me: failed program was:" >&5 8277sed 's/^/| /' conftest.$ac_ext >&5 8278 8279( exit $ac_status ) 8280ac_cv_c_bigendian=yes 8281fi 8282rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8283fi 8284fi 8285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8286fi 8287echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 8288echo "${ECHO_T}$ac_cv_c_bigendian" >&6 8289case $ac_cv_c_bigendian in 8290 yes) 8291 8292cat >>confdefs.h <<\_ACEOF 8293#define WORDS_BIGENDIAN 1 8294_ACEOF 8295 ;; 8296 no) 8297 ;; 8298 *) 8299 { { echo "$as_me:$LINENO: error: unknown endianness 8300presetting ac_cv_c_bigendian=no (or yes) will help" >&5 8301echo "$as_me: error: unknown endianness 8302presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 8303 { (exit 1); exit 1; }; } ;; 8304esac 8305 8306 8307#------------------------------------------------------------------------ 8308# If Tcl and Tk are installed in different places, adjust the library 8309# search path to reflect this. 8310#------------------------------------------------------------------------ 8311 8312LIB_RUNTIME_DIR='${LIB_RUNTIME_DIR}' 8313 8314if test "$TCL_EXEC_PREFIX" != "$exec_prefix"; then 8315 LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${TCL_EXEC_PREFIX}/lib" 8316fi 8317 8318if test "$TCL_PREFIX" != "$prefix"; then 8319 { echo "$as_me:$LINENO: WARNING: 8320 Different --prefix selected for Tk and Tcl! 8321 [package require Tk] may not work correctly in tclsh." >&5 8322echo "$as_me: WARNING: 8323 Different --prefix selected for Tk and Tcl! 8324 [package require Tk] may not work correctly in tclsh." >&2;} 8325fi 8326 8327#-------------------------------------------------------------------- 8328# Include sys/select.h if it exists and if it supplies things 8329# that appear to be useful and aren't already in sys/types.h. 8330# This appears to be true only on the RS/6000 under AIX. Some 8331# systems like OSF/1 have a sys/select.h that's of no use, and 8332# other systems like SCO UNIX have a sys/select.h that's 8333# pernicious. If "fd_set" isn't defined anywhere then set a 8334# special flag. 8335#-------------------------------------------------------------------- 8336 8337echo "$as_me:$LINENO: checking for fd_set in sys/types" >&5 8338echo $ECHO_N "checking for fd_set in sys/types... $ECHO_C" >&6 8339if test "${tcl_cv_type_fd_set+set}" = set; then 8340 echo $ECHO_N "(cached) $ECHO_C" >&6 8341else 8342 8343 cat >conftest.$ac_ext <<_ACEOF 8344/* confdefs.h. */ 8345_ACEOF 8346cat confdefs.h >>conftest.$ac_ext 8347cat >>conftest.$ac_ext <<_ACEOF 8348/* end confdefs.h. */ 8349#include <sys/types.h> 8350int 8351main () 8352{ 8353fd_set readMask, writeMask; 8354 ; 8355 return 0; 8356} 8357_ACEOF 8358rm -f conftest.$ac_objext 8359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8360 (eval $ac_compile) 2>conftest.er1 8361 ac_status=$? 8362 grep -v '^ *+' conftest.er1 >conftest.err 8363 rm -f conftest.er1 8364 cat conftest.err >&5 8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8366 (exit $ac_status); } && 8367 { ac_try='test -z "$ac_c_werror_flag" 8368 || test ! -s conftest.err' 8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8370 (eval $ac_try) 2>&5 8371 ac_status=$? 8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8373 (exit $ac_status); }; } && 8374 { ac_try='test -s conftest.$ac_objext' 8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8376 (eval $ac_try) 2>&5 8377 ac_status=$? 8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8379 (exit $ac_status); }; }; then 8380 tcl_cv_type_fd_set=yes 8381else 8382 echo "$as_me: failed program was:" >&5 8383sed 's/^/| /' conftest.$ac_ext >&5 8384 8385tcl_cv_type_fd_set=no 8386fi 8387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8388fi 8389echo "$as_me:$LINENO: result: $tcl_cv_type_fd_set" >&5 8390echo "${ECHO_T}$tcl_cv_type_fd_set" >&6 8391tk_ok=$tcl_cv_type_fd_set 8392if test $tk_ok = no; then 8393 echo "$as_me:$LINENO: checking for fd_mask in sys/select" >&5 8394echo $ECHO_N "checking for fd_mask in sys/select... $ECHO_C" >&6 8395if test "${tcl_cv_grep_fd_mask+set}" = set; then 8396 echo $ECHO_N "(cached) $ECHO_C" >&6 8397else 8398 8399 cat >conftest.$ac_ext <<_ACEOF 8400/* confdefs.h. */ 8401_ACEOF 8402cat confdefs.h >>conftest.$ac_ext 8403cat >>conftest.$ac_ext <<_ACEOF 8404/* end confdefs.h. */ 8405#include <sys/select.h> 8406 8407_ACEOF 8408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8409 $EGREP "fd_mask" >/dev/null 2>&1; then 8410 tcl_cv_grep_fd_mask=present 8411else 8412 tcl_cv_grep_fd_mask=missing 8413fi 8414rm -f conftest* 8415 8416fi 8417echo "$as_me:$LINENO: result: $tcl_cv_grep_fd_mask" >&5 8418echo "${ECHO_T}$tcl_cv_grep_fd_mask" >&6 8419 if test $tcl_cv_grep_fd_mask = present; then 8420 8421cat >>confdefs.h <<\_ACEOF 8422#define HAVE_SYS_SELECT_H 1 8423_ACEOF 8424 8425 tk_ok=yes 8426 fi 8427fi 8428if test $tk_ok = no; then 8429 8430cat >>confdefs.h <<\_ACEOF 8431#define NO_FD_SET 1 8432_ACEOF 8433 8434fi 8435 8436#------------------------------------------------------------------------------ 8437# Find out all about time handling differences. 8438#------------------------------------------------------------------------------ 8439 8440 8441for ac_header in sys/time.h 8442do 8443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8444if eval "test \"\${$as_ac_Header+set}\" = set"; then 8445 echo "$as_me:$LINENO: checking for $ac_header" >&5 8446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8447if eval "test \"\${$as_ac_Header+set}\" = set"; then 8448 echo $ECHO_N "(cached) $ECHO_C" >&6 8449fi 8450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8452else 8453 # Is the header compilable? 8454echo "$as_me:$LINENO: checking $ac_header usability" >&5 8455echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8456cat >conftest.$ac_ext <<_ACEOF 8457/* confdefs.h. */ 8458_ACEOF 8459cat confdefs.h >>conftest.$ac_ext 8460cat >>conftest.$ac_ext <<_ACEOF 8461/* end confdefs.h. */ 8462$ac_includes_default 8463#include <$ac_header> 8464_ACEOF 8465rm -f conftest.$ac_objext 8466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8467 (eval $ac_compile) 2>conftest.er1 8468 ac_status=$? 8469 grep -v '^ *+' conftest.er1 >conftest.err 8470 rm -f conftest.er1 8471 cat conftest.err >&5 8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8473 (exit $ac_status); } && 8474 { ac_try='test -z "$ac_c_werror_flag" 8475 || test ! -s conftest.err' 8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8477 (eval $ac_try) 2>&5 8478 ac_status=$? 8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8480 (exit $ac_status); }; } && 8481 { ac_try='test -s conftest.$ac_objext' 8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8483 (eval $ac_try) 2>&5 8484 ac_status=$? 8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8486 (exit $ac_status); }; }; then 8487 ac_header_compiler=yes 8488else 8489 echo "$as_me: failed program was:" >&5 8490sed 's/^/| /' conftest.$ac_ext >&5 8491 8492ac_header_compiler=no 8493fi 8494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8495echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8496echo "${ECHO_T}$ac_header_compiler" >&6 8497 8498# Is the header present? 8499echo "$as_me:$LINENO: checking $ac_header presence" >&5 8500echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8501cat >conftest.$ac_ext <<_ACEOF 8502/* confdefs.h. */ 8503_ACEOF 8504cat confdefs.h >>conftest.$ac_ext 8505cat >>conftest.$ac_ext <<_ACEOF 8506/* end confdefs.h. */ 8507#include <$ac_header> 8508_ACEOF 8509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8511 ac_status=$? 8512 grep -v '^ *+' conftest.er1 >conftest.err 8513 rm -f conftest.er1 8514 cat conftest.err >&5 8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8516 (exit $ac_status); } >/dev/null; then 8517 if test -s conftest.err; then 8518 ac_cpp_err=$ac_c_preproc_warn_flag 8519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8520 else 8521 ac_cpp_err= 8522 fi 8523else 8524 ac_cpp_err=yes 8525fi 8526if test -z "$ac_cpp_err"; then 8527 ac_header_preproc=yes 8528else 8529 echo "$as_me: failed program was:" >&5 8530sed 's/^/| /' conftest.$ac_ext >&5 8531 8532 ac_header_preproc=no 8533fi 8534rm -f conftest.err conftest.$ac_ext 8535echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8536echo "${ECHO_T}$ac_header_preproc" >&6 8537 8538# So? What about this header? 8539case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8540 yes:no: ) 8541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8542echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8544echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8545 ac_header_preproc=yes 8546 ;; 8547 no:yes:* ) 8548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8549echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8551echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8553echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8555echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8557echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8559echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8560 ( 8561 cat <<\_ASBOX 8562## ----------------------------- ## 8563## Report this to the tk lists. ## 8564## ----------------------------- ## 8565_ASBOX 8566 ) | 8567 sed "s/^/$as_me: WARNING: /" >&2 8568 ;; 8569esac 8570echo "$as_me:$LINENO: checking for $ac_header" >&5 8571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8572if eval "test \"\${$as_ac_Header+set}\" = set"; then 8573 echo $ECHO_N "(cached) $ECHO_C" >&6 8574else 8575 eval "$as_ac_Header=\$ac_header_preproc" 8576fi 8577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8579 8580fi 8581if test `eval echo '${'$as_ac_Header'}'` = yes; then 8582 cat >>confdefs.h <<_ACEOF 8583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8584_ACEOF 8585 8586fi 8587 8588done 8589 8590echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 8591echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 8592if test "${ac_cv_header_time+set}" = set; then 8593 echo $ECHO_N "(cached) $ECHO_C" >&6 8594else 8595 cat >conftest.$ac_ext <<_ACEOF 8596/* confdefs.h. */ 8597_ACEOF 8598cat confdefs.h >>conftest.$ac_ext 8599cat >>conftest.$ac_ext <<_ACEOF 8600/* end confdefs.h. */ 8601#include <sys/types.h> 8602#include <sys/time.h> 8603#include <time.h> 8604 8605int 8606main () 8607{ 8608if ((struct tm *) 0) 8609return 0; 8610 ; 8611 return 0; 8612} 8613_ACEOF 8614rm -f conftest.$ac_objext 8615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8616 (eval $ac_compile) 2>conftest.er1 8617 ac_status=$? 8618 grep -v '^ *+' conftest.er1 >conftest.err 8619 rm -f conftest.er1 8620 cat conftest.err >&5 8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8622 (exit $ac_status); } && 8623 { ac_try='test -z "$ac_c_werror_flag" 8624 || test ! -s conftest.err' 8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8626 (eval $ac_try) 2>&5 8627 ac_status=$? 8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8629 (exit $ac_status); }; } && 8630 { ac_try='test -s conftest.$ac_objext' 8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8632 (eval $ac_try) 2>&5 8633 ac_status=$? 8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8635 (exit $ac_status); }; }; then 8636 ac_cv_header_time=yes 8637else 8638 echo "$as_me: failed program was:" >&5 8639sed 's/^/| /' conftest.$ac_ext >&5 8640 8641ac_cv_header_time=no 8642fi 8643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8644fi 8645echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 8646echo "${ECHO_T}$ac_cv_header_time" >&6 8647if test $ac_cv_header_time = yes; then 8648 8649cat >>confdefs.h <<\_ACEOF 8650#define TIME_WITH_SYS_TIME 1 8651_ACEOF 8652 8653fi 8654 8655 8656#-------------------------------------------------------------------- 8657# Under Solaris 2.4, strtod returns the wrong value for the 8658# terminating character under some conditions. Check for this 8659# and if the problem exists use a substitute procedure 8660# "fixstrtod" (provided by Tcl) that corrects the error. 8661#-------------------------------------------------------------------- 8662 8663 8664 echo "$as_me:$LINENO: checking for strtod" >&5 8665echo $ECHO_N "checking for strtod... $ECHO_C" >&6 8666if test "${ac_cv_func_strtod+set}" = set; then 8667 echo $ECHO_N "(cached) $ECHO_C" >&6 8668else 8669 cat >conftest.$ac_ext <<_ACEOF 8670/* confdefs.h. */ 8671_ACEOF 8672cat confdefs.h >>conftest.$ac_ext 8673cat >>conftest.$ac_ext <<_ACEOF 8674/* end confdefs.h. */ 8675/* Define strtod to an innocuous variant, in case <limits.h> declares strtod. 8676 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8677#define strtod innocuous_strtod 8678 8679/* System header to define __stub macros and hopefully few prototypes, 8680 which can conflict with char strtod (); below. 8681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8682 <limits.h> exists even on freestanding compilers. */ 8683 8684#ifdef __STDC__ 8685# include <limits.h> 8686#else 8687# include <assert.h> 8688#endif 8689 8690#undef strtod 8691 8692/* Override any gcc2 internal prototype to avoid an error. */ 8693#ifdef __cplusplus 8694extern "C" 8695{ 8696#endif 8697/* We use char because int might match the return type of a gcc2 8698 builtin and then its argument prototype would still apply. */ 8699char strtod (); 8700/* The GNU C library defines this for functions which it implements 8701 to always fail with ENOSYS. Some functions are actually named 8702 something starting with __ and the normal name is an alias. */ 8703#if defined (__stub_strtod) || defined (__stub___strtod) 8704choke me 8705#else 8706char (*f) () = strtod; 8707#endif 8708#ifdef __cplusplus 8709} 8710#endif 8711 8712int 8713main () 8714{ 8715return f != strtod; 8716 ; 8717 return 0; 8718} 8719_ACEOF 8720rm -f conftest.$ac_objext conftest$ac_exeext 8721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8722 (eval $ac_link) 2>conftest.er1 8723 ac_status=$? 8724 grep -v '^ *+' conftest.er1 >conftest.err 8725 rm -f conftest.er1 8726 cat conftest.err >&5 8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8728 (exit $ac_status); } && 8729 { ac_try='test -z "$ac_c_werror_flag" 8730 || test ! -s conftest.err' 8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8732 (eval $ac_try) 2>&5 8733 ac_status=$? 8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8735 (exit $ac_status); }; } && 8736 { ac_try='test -s conftest$ac_exeext' 8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8738 (eval $ac_try) 2>&5 8739 ac_status=$? 8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8741 (exit $ac_status); }; }; then 8742 ac_cv_func_strtod=yes 8743else 8744 echo "$as_me: failed program was:" >&5 8745sed 's/^/| /' conftest.$ac_ext >&5 8746 8747ac_cv_func_strtod=no 8748fi 8749rm -f conftest.err conftest.$ac_objext \ 8750 conftest$ac_exeext conftest.$ac_ext 8751fi 8752echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 8753echo "${ECHO_T}$ac_cv_func_strtod" >&6 8754if test $ac_cv_func_strtod = yes; then 8755 tcl_strtod=1 8756else 8757 tcl_strtod=0 8758fi 8759 8760 if test "$tcl_strtod" = 1; then 8761 echo "$as_me:$LINENO: checking for Solaris2.4/Tru64 strtod bugs" >&5 8762echo $ECHO_N "checking for Solaris2.4/Tru64 strtod bugs... $ECHO_C" >&6 8763if test "${tcl_cv_strtod_buggy+set}" = set; then 8764 echo $ECHO_N "(cached) $ECHO_C" >&6 8765else 8766 8767 if test "$cross_compiling" = yes; then 8768 tcl_cv_strtod_buggy=buggy 8769else 8770 cat >conftest.$ac_ext <<_ACEOF 8771/* confdefs.h. */ 8772_ACEOF 8773cat confdefs.h >>conftest.$ac_ext 8774cat >>conftest.$ac_ext <<_ACEOF 8775/* end confdefs.h. */ 8776 8777 extern double strtod(); 8778 int main() { 8779 char *infString="Inf", *nanString="NaN", *spaceString=" "; 8780 char *term; 8781 double value; 8782 value = strtod(infString, &term); 8783 if ((term != infString) && (term[-1] == 0)) { 8784 exit(1); 8785 } 8786 value = strtod(nanString, &term); 8787 if ((term != nanString) && (term[-1] == 0)) { 8788 exit(1); 8789 } 8790 value = strtod(spaceString, &term); 8791 if (term == (spaceString+1)) { 8792 exit(1); 8793 } 8794 exit(0); 8795 } 8796_ACEOF 8797rm -f conftest$ac_exeext 8798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8799 (eval $ac_link) 2>&5 8800 ac_status=$? 8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8804 (eval $ac_try) 2>&5 8805 ac_status=$? 8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8807 (exit $ac_status); }; }; then 8808 tcl_cv_strtod_buggy=ok 8809else 8810 echo "$as_me: program exited with status $ac_status" >&5 8811echo "$as_me: failed program was:" >&5 8812sed 's/^/| /' conftest.$ac_ext >&5 8813 8814( exit $ac_status ) 8815tcl_cv_strtod_buggy=buggy 8816fi 8817rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8818fi 8819fi 8820echo "$as_me:$LINENO: result: $tcl_cv_strtod_buggy" >&5 8821echo "${ECHO_T}$tcl_cv_strtod_buggy" >&6 8822 if test "$tcl_cv_strtod_buggy" = buggy; then 8823 case $LIBOBJS in 8824 "fixstrtod.$ac_objext" | \ 8825 *" fixstrtod.$ac_objext" | \ 8826 "fixstrtod.$ac_objext "* | \ 8827 *" fixstrtod.$ac_objext "* ) ;; 8828 *) LIBOBJS="$LIBOBJS fixstrtod.$ac_objext" ;; 8829esac 8830 8831 USE_COMPAT=1 8832 8833cat >>confdefs.h <<\_ACEOF 8834#define strtod fixstrtod 8835_ACEOF 8836 8837 fi 8838 fi 8839 8840 8841#-------------------------------------------------------------------- 8842# Check for various typedefs and provide substitutes if 8843# they don't exist. 8844#-------------------------------------------------------------------- 8845 8846echo "$as_me:$LINENO: checking for mode_t" >&5 8847echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 8848if test "${ac_cv_type_mode_t+set}" = set; then 8849 echo $ECHO_N "(cached) $ECHO_C" >&6 8850else 8851 cat >conftest.$ac_ext <<_ACEOF 8852/* confdefs.h. */ 8853_ACEOF 8854cat confdefs.h >>conftest.$ac_ext 8855cat >>conftest.$ac_ext <<_ACEOF 8856/* end confdefs.h. */ 8857$ac_includes_default 8858int 8859main () 8860{ 8861if ((mode_t *) 0) 8862 return 0; 8863if (sizeof (mode_t)) 8864 return 0; 8865 ; 8866 return 0; 8867} 8868_ACEOF 8869rm -f conftest.$ac_objext 8870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8871 (eval $ac_compile) 2>conftest.er1 8872 ac_status=$? 8873 grep -v '^ *+' conftest.er1 >conftest.err 8874 rm -f conftest.er1 8875 cat conftest.err >&5 8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8877 (exit $ac_status); } && 8878 { ac_try='test -z "$ac_c_werror_flag" 8879 || test ! -s conftest.err' 8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8881 (eval $ac_try) 2>&5 8882 ac_status=$? 8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8884 (exit $ac_status); }; } && 8885 { ac_try='test -s conftest.$ac_objext' 8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8887 (eval $ac_try) 2>&5 8888 ac_status=$? 8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8890 (exit $ac_status); }; }; then 8891 ac_cv_type_mode_t=yes 8892else 8893 echo "$as_me: failed program was:" >&5 8894sed 's/^/| /' conftest.$ac_ext >&5 8895 8896ac_cv_type_mode_t=no 8897fi 8898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8899fi 8900echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 8901echo "${ECHO_T}$ac_cv_type_mode_t" >&6 8902if test $ac_cv_type_mode_t = yes; then 8903 : 8904else 8905 8906cat >>confdefs.h <<_ACEOF 8907#define mode_t int 8908_ACEOF 8909 8910fi 8911 8912echo "$as_me:$LINENO: checking for pid_t" >&5 8913echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 8914if test "${ac_cv_type_pid_t+set}" = set; then 8915 echo $ECHO_N "(cached) $ECHO_C" >&6 8916else 8917 cat >conftest.$ac_ext <<_ACEOF 8918/* confdefs.h. */ 8919_ACEOF 8920cat confdefs.h >>conftest.$ac_ext 8921cat >>conftest.$ac_ext <<_ACEOF 8922/* end confdefs.h. */ 8923$ac_includes_default 8924int 8925main () 8926{ 8927if ((pid_t *) 0) 8928 return 0; 8929if (sizeof (pid_t)) 8930 return 0; 8931 ; 8932 return 0; 8933} 8934_ACEOF 8935rm -f conftest.$ac_objext 8936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8937 (eval $ac_compile) 2>conftest.er1 8938 ac_status=$? 8939 grep -v '^ *+' conftest.er1 >conftest.err 8940 rm -f conftest.er1 8941 cat conftest.err >&5 8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8943 (exit $ac_status); } && 8944 { ac_try='test -z "$ac_c_werror_flag" 8945 || test ! -s conftest.err' 8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8947 (eval $ac_try) 2>&5 8948 ac_status=$? 8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8950 (exit $ac_status); }; } && 8951 { ac_try='test -s conftest.$ac_objext' 8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8953 (eval $ac_try) 2>&5 8954 ac_status=$? 8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8956 (exit $ac_status); }; }; then 8957 ac_cv_type_pid_t=yes 8958else 8959 echo "$as_me: failed program was:" >&5 8960sed 's/^/| /' conftest.$ac_ext >&5 8961 8962ac_cv_type_pid_t=no 8963fi 8964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8965fi 8966echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 8967echo "${ECHO_T}$ac_cv_type_pid_t" >&6 8968if test $ac_cv_type_pid_t = yes; then 8969 : 8970else 8971 8972cat >>confdefs.h <<_ACEOF 8973#define pid_t int 8974_ACEOF 8975 8976fi 8977 8978echo "$as_me:$LINENO: checking for size_t" >&5 8979echo $ECHO_N "checking for size_t... $ECHO_C" >&6 8980if test "${ac_cv_type_size_t+set}" = set; then 8981 echo $ECHO_N "(cached) $ECHO_C" >&6 8982else 8983 cat >conftest.$ac_ext <<_ACEOF 8984/* confdefs.h. */ 8985_ACEOF 8986cat confdefs.h >>conftest.$ac_ext 8987cat >>conftest.$ac_ext <<_ACEOF 8988/* end confdefs.h. */ 8989$ac_includes_default 8990int 8991main () 8992{ 8993if ((size_t *) 0) 8994 return 0; 8995if (sizeof (size_t)) 8996 return 0; 8997 ; 8998 return 0; 8999} 9000_ACEOF 9001rm -f conftest.$ac_objext 9002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9003 (eval $ac_compile) 2>conftest.er1 9004 ac_status=$? 9005 grep -v '^ *+' conftest.er1 >conftest.err 9006 rm -f conftest.er1 9007 cat conftest.err >&5 9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9009 (exit $ac_status); } && 9010 { ac_try='test -z "$ac_c_werror_flag" 9011 || test ! -s conftest.err' 9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9013 (eval $ac_try) 2>&5 9014 ac_status=$? 9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9016 (exit $ac_status); }; } && 9017 { ac_try='test -s conftest.$ac_objext' 9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9019 (eval $ac_try) 2>&5 9020 ac_status=$? 9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9022 (exit $ac_status); }; }; then 9023 ac_cv_type_size_t=yes 9024else 9025 echo "$as_me: failed program was:" >&5 9026sed 's/^/| /' conftest.$ac_ext >&5 9027 9028ac_cv_type_size_t=no 9029fi 9030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9031fi 9032echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 9033echo "${ECHO_T}$ac_cv_type_size_t" >&6 9034if test $ac_cv_type_size_t = yes; then 9035 : 9036else 9037 9038cat >>confdefs.h <<_ACEOF 9039#define size_t unsigned 9040_ACEOF 9041 9042fi 9043 9044echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 9045echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 9046if test "${ac_cv_type_uid_t+set}" = set; then 9047 echo $ECHO_N "(cached) $ECHO_C" >&6 9048else 9049 cat >conftest.$ac_ext <<_ACEOF 9050/* confdefs.h. */ 9051_ACEOF 9052cat confdefs.h >>conftest.$ac_ext 9053cat >>conftest.$ac_ext <<_ACEOF 9054/* end confdefs.h. */ 9055#include <sys/types.h> 9056 9057_ACEOF 9058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9059 $EGREP "uid_t" >/dev/null 2>&1; then 9060 ac_cv_type_uid_t=yes 9061else 9062 ac_cv_type_uid_t=no 9063fi 9064rm -f conftest* 9065 9066fi 9067echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 9068echo "${ECHO_T}$ac_cv_type_uid_t" >&6 9069if test $ac_cv_type_uid_t = no; then 9070 9071cat >>confdefs.h <<\_ACEOF 9072#define uid_t int 9073_ACEOF 9074 9075 9076cat >>confdefs.h <<\_ACEOF 9077#define gid_t int 9078_ACEOF 9079 9080fi 9081 9082 9083echo "$as_me:$LINENO: checking for intptr_t" >&5 9084echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6 9085if test "${ac_cv_type_intptr_t+set}" = set; then 9086 echo $ECHO_N "(cached) $ECHO_C" >&6 9087else 9088 cat >conftest.$ac_ext <<_ACEOF 9089/* confdefs.h. */ 9090_ACEOF 9091cat confdefs.h >>conftest.$ac_ext 9092cat >>conftest.$ac_ext <<_ACEOF 9093/* end confdefs.h. */ 9094$ac_includes_default 9095int 9096main () 9097{ 9098if ((intptr_t *) 0) 9099 return 0; 9100if (sizeof (intptr_t)) 9101 return 0; 9102 ; 9103 return 0; 9104} 9105_ACEOF 9106rm -f conftest.$ac_objext 9107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9108 (eval $ac_compile) 2>conftest.er1 9109 ac_status=$? 9110 grep -v '^ *+' conftest.er1 >conftest.err 9111 rm -f conftest.er1 9112 cat conftest.err >&5 9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9114 (exit $ac_status); } && 9115 { ac_try='test -z "$ac_c_werror_flag" 9116 || test ! -s conftest.err' 9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9118 (eval $ac_try) 2>&5 9119 ac_status=$? 9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9121 (exit $ac_status); }; } && 9122 { ac_try='test -s conftest.$ac_objext' 9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9124 (eval $ac_try) 2>&5 9125 ac_status=$? 9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9127 (exit $ac_status); }; }; then 9128 ac_cv_type_intptr_t=yes 9129else 9130 echo "$as_me: failed program was:" >&5 9131sed 's/^/| /' conftest.$ac_ext >&5 9132 9133ac_cv_type_intptr_t=no 9134fi 9135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9136fi 9137echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 9138echo "${ECHO_T}$ac_cv_type_intptr_t" >&6 9139if test $ac_cv_type_intptr_t = yes; then 9140 9141 9142cat >>confdefs.h <<\_ACEOF 9143#define HAVE_INTPTR_T 1 9144_ACEOF 9145 9146else 9147 9148 echo "$as_me:$LINENO: checking for pointer-size signed integer type" >&5 9149echo $ECHO_N "checking for pointer-size signed integer type... $ECHO_C" >&6 9150if test "${tcl_cv_intptr_t+set}" = set; then 9151 echo $ECHO_N "(cached) $ECHO_C" >&6 9152else 9153 9154 for tcl_cv_intptr_t in "int" "long" "long long" none; do 9155 if test "$tcl_cv_intptr_t" != none; then 9156 cat >conftest.$ac_ext <<_ACEOF 9157/* confdefs.h. */ 9158_ACEOF 9159cat confdefs.h >>conftest.$ac_ext 9160cat >>conftest.$ac_ext <<_ACEOF 9161/* end confdefs.h. */ 9162$ac_includes_default 9163int 9164main () 9165{ 9166static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_intptr_t))]; 9167test_array [0] = 0 9168 9169 ; 9170 return 0; 9171} 9172_ACEOF 9173rm -f conftest.$ac_objext 9174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9175 (eval $ac_compile) 2>conftest.er1 9176 ac_status=$? 9177 grep -v '^ *+' conftest.er1 >conftest.err 9178 rm -f conftest.er1 9179 cat conftest.err >&5 9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9181 (exit $ac_status); } && 9182 { ac_try='test -z "$ac_c_werror_flag" 9183 || test ! -s conftest.err' 9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9185 (eval $ac_try) 2>&5 9186 ac_status=$? 9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9188 (exit $ac_status); }; } && 9189 { ac_try='test -s conftest.$ac_objext' 9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9191 (eval $ac_try) 2>&5 9192 ac_status=$? 9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9194 (exit $ac_status); }; }; then 9195 tcl_ok=yes 9196else 9197 echo "$as_me: failed program was:" >&5 9198sed 's/^/| /' conftest.$ac_ext >&5 9199 9200tcl_ok=no 9201fi 9202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9203 test "$tcl_ok" = yes && break; fi 9204 done 9205fi 9206echo "$as_me:$LINENO: result: $tcl_cv_intptr_t" >&5 9207echo "${ECHO_T}$tcl_cv_intptr_t" >&6 9208 if test "$tcl_cv_intptr_t" != none; then 9209 9210cat >>confdefs.h <<_ACEOF 9211#define intptr_t $tcl_cv_intptr_t 9212_ACEOF 9213 9214 fi 9215 9216fi 9217 9218echo "$as_me:$LINENO: checking for uintptr_t" >&5 9219echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 9220if test "${ac_cv_type_uintptr_t+set}" = set; then 9221 echo $ECHO_N "(cached) $ECHO_C" >&6 9222else 9223 cat >conftest.$ac_ext <<_ACEOF 9224/* confdefs.h. */ 9225_ACEOF 9226cat confdefs.h >>conftest.$ac_ext 9227cat >>conftest.$ac_ext <<_ACEOF 9228/* end confdefs.h. */ 9229$ac_includes_default 9230int 9231main () 9232{ 9233if ((uintptr_t *) 0) 9234 return 0; 9235if (sizeof (uintptr_t)) 9236 return 0; 9237 ; 9238 return 0; 9239} 9240_ACEOF 9241rm -f conftest.$ac_objext 9242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9243 (eval $ac_compile) 2>conftest.er1 9244 ac_status=$? 9245 grep -v '^ *+' conftest.er1 >conftest.err 9246 rm -f conftest.er1 9247 cat conftest.err >&5 9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9249 (exit $ac_status); } && 9250 { ac_try='test -z "$ac_c_werror_flag" 9251 || test ! -s conftest.err' 9252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9253 (eval $ac_try) 2>&5 9254 ac_status=$? 9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9256 (exit $ac_status); }; } && 9257 { ac_try='test -s conftest.$ac_objext' 9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9259 (eval $ac_try) 2>&5 9260 ac_status=$? 9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9262 (exit $ac_status); }; }; then 9263 ac_cv_type_uintptr_t=yes 9264else 9265 echo "$as_me: failed program was:" >&5 9266sed 's/^/| /' conftest.$ac_ext >&5 9267 9268ac_cv_type_uintptr_t=no 9269fi 9270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9271fi 9272echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 9273echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 9274if test $ac_cv_type_uintptr_t = yes; then 9275 9276 9277cat >>confdefs.h <<\_ACEOF 9278#define HAVE_UINTPTR_T 1 9279_ACEOF 9280 9281else 9282 9283 echo "$as_me:$LINENO: checking for pointer-size unsigned integer type" >&5 9284echo $ECHO_N "checking for pointer-size unsigned integer type... $ECHO_C" >&6 9285if test "${tcl_cv_uintptr_t+set}" = set; then 9286 echo $ECHO_N "(cached) $ECHO_C" >&6 9287else 9288 9289 for tcl_cv_uintptr_t in "unsigned int" "unsigned long" "unsigned long long" \ 9290 none; do 9291 if test "$tcl_cv_uintptr_t" != none; then 9292 cat >conftest.$ac_ext <<_ACEOF 9293/* confdefs.h. */ 9294_ACEOF 9295cat confdefs.h >>conftest.$ac_ext 9296cat >>conftest.$ac_ext <<_ACEOF 9297/* end confdefs.h. */ 9298$ac_includes_default 9299int 9300main () 9301{ 9302static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_uintptr_t))]; 9303test_array [0] = 0 9304 9305 ; 9306 return 0; 9307} 9308_ACEOF 9309rm -f conftest.$ac_objext 9310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9311 (eval $ac_compile) 2>conftest.er1 9312 ac_status=$? 9313 grep -v '^ *+' conftest.er1 >conftest.err 9314 rm -f conftest.er1 9315 cat conftest.err >&5 9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9317 (exit $ac_status); } && 9318 { ac_try='test -z "$ac_c_werror_flag" 9319 || test ! -s conftest.err' 9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9321 (eval $ac_try) 2>&5 9322 ac_status=$? 9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9324 (exit $ac_status); }; } && 9325 { ac_try='test -s conftest.$ac_objext' 9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9327 (eval $ac_try) 2>&5 9328 ac_status=$? 9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9330 (exit $ac_status); }; }; then 9331 tcl_ok=yes 9332else 9333 echo "$as_me: failed program was:" >&5 9334sed 's/^/| /' conftest.$ac_ext >&5 9335 9336tcl_ok=no 9337fi 9338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9339 test "$tcl_ok" = yes && break; fi 9340 done 9341fi 9342echo "$as_me:$LINENO: result: $tcl_cv_uintptr_t" >&5 9343echo "${ECHO_T}$tcl_cv_uintptr_t" >&6 9344 if test "$tcl_cv_uintptr_t" != none; then 9345 9346cat >>confdefs.h <<_ACEOF 9347#define uintptr_t $tcl_cv_uintptr_t 9348_ACEOF 9349 9350 fi 9351 9352fi 9353 9354 9355#------------------------------------------- 9356# In OS/390 struct pwd has no pw_gecos field 9357#------------------------------------------- 9358 9359echo "$as_me:$LINENO: checking pw_gecos in struct pwd" >&5 9360echo $ECHO_N "checking pw_gecos in struct pwd... $ECHO_C" >&6 9361if test "${tcl_cv_pwd_pw_gecos+set}" = set; then 9362 echo $ECHO_N "(cached) $ECHO_C" >&6 9363else 9364 9365 cat >conftest.$ac_ext <<_ACEOF 9366/* confdefs.h. */ 9367_ACEOF 9368cat confdefs.h >>conftest.$ac_ext 9369cat >>conftest.$ac_ext <<_ACEOF 9370/* end confdefs.h. */ 9371#include <pwd.h> 9372int 9373main () 9374{ 9375struct passwd pwd; pwd.pw_gecos; 9376 ; 9377 return 0; 9378} 9379_ACEOF 9380rm -f conftest.$ac_objext 9381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9382 (eval $ac_compile) 2>conftest.er1 9383 ac_status=$? 9384 grep -v '^ *+' conftest.er1 >conftest.err 9385 rm -f conftest.er1 9386 cat conftest.err >&5 9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9388 (exit $ac_status); } && 9389 { ac_try='test -z "$ac_c_werror_flag" 9390 || test ! -s conftest.err' 9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9392 (eval $ac_try) 2>&5 9393 ac_status=$? 9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9395 (exit $ac_status); }; } && 9396 { ac_try='test -s conftest.$ac_objext' 9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9398 (eval $ac_try) 2>&5 9399 ac_status=$? 9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9401 (exit $ac_status); }; }; then 9402 tcl_cv_pwd_pw_gecos=yes 9403else 9404 echo "$as_me: failed program was:" >&5 9405sed 's/^/| /' conftest.$ac_ext >&5 9406 9407tcl_cv_pwd_pw_gecos=no 9408fi 9409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9410fi 9411echo "$as_me:$LINENO: result: $tcl_cv_pwd_pw_gecos" >&5 9412echo "${ECHO_T}$tcl_cv_pwd_pw_gecos" >&6 9413if test $tcl_cv_pwd_pw_gecos = yes; then 9414 9415cat >>confdefs.h <<\_ACEOF 9416#define HAVE_PW_GECOS 1 9417_ACEOF 9418 9419fi 9420 9421#-------------------------------------------------------------------- 9422# On Mac OS X, we can build either with X11 or with Aqua 9423#-------------------------------------------------------------------- 9424 9425if test "`uname -s`" = "Darwin" ; then 9426 echo "$as_me:$LINENO: checking whether to use Aqua" >&5 9427echo $ECHO_N "checking whether to use Aqua... $ECHO_C" >&6 9428 # Check whether --enable-aqua or --disable-aqua was given. 9429if test "${enable_aqua+set}" = set; then 9430 enableval="$enable_aqua" 9431 tk_aqua=$enableval 9432else 9433 tk_aqua=no 9434fi; 9435 if test $tk_aqua = yes -o $tk_aqua = cocoa; then 9436 tk_aqua=yes 9437 if test $tcl_corefoundation = no; then 9438 { echo "$as_me:$LINENO: WARNING: Aqua can only be used when CoreFoundation is available" >&5 9439echo "$as_me: WARNING: Aqua can only be used when CoreFoundation is available" >&2;} 9440 tk_aqua=no 9441 fi 9442 if test ! -d /System/Library/Frameworks/Cocoa.framework; then 9443 { echo "$as_me:$LINENO: WARNING: Aqua can only be used when Cocoa is available" >&5 9444echo "$as_me: WARNING: Aqua can only be used when Cocoa is available" >&2;} 9445 tk_aqua=no 9446 fi 9447 if test "`uname -r | awk -F. '{print $1}'`" -lt 9; then 9448 { echo "$as_me:$LINENO: WARNING: Aqua requires Mac OS X 10.5 or later" >&5 9449echo "$as_me: WARNING: Aqua requires Mac OS X 10.5 or later" >&2;} 9450 tk_aqua=no 9451 fi 9452 fi 9453 echo "$as_me:$LINENO: result: $tk_aqua" >&5 9454echo "${ECHO_T}$tk_aqua" >&6 9455 if test "$fat_32_64" = yes; then 9456 if test $tk_aqua = no; then 9457 echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9458echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6 9459if test "${tcl_cv_lib_x11_64+set}" = set; then 9460 echo $ECHO_N "(cached) $ECHO_C" >&6 9461else 9462 9463 for v in CFLAGS CPPFLAGS LDFLAGS; do 9464 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9465 done 9466 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9467 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9468 cat >conftest.$ac_ext <<_ACEOF 9469/* confdefs.h. */ 9470_ACEOF 9471cat confdefs.h >>conftest.$ac_ext 9472cat >>conftest.$ac_ext <<_ACEOF 9473/* end confdefs.h. */ 9474#include <X11/Xlib.h> 9475int 9476main () 9477{ 9478XrmInitialize(); 9479 ; 9480 return 0; 9481} 9482_ACEOF 9483rm -f conftest.$ac_objext conftest$ac_exeext 9484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9485 (eval $ac_link) 2>conftest.er1 9486 ac_status=$? 9487 grep -v '^ *+' conftest.er1 >conftest.err 9488 rm -f conftest.er1 9489 cat conftest.err >&5 9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9491 (exit $ac_status); } && 9492 { ac_try='test -z "$ac_c_werror_flag" 9493 || test ! -s conftest.err' 9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9495 (eval $ac_try) 2>&5 9496 ac_status=$? 9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9498 (exit $ac_status); }; } && 9499 { ac_try='test -s conftest$ac_exeext' 9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9501 (eval $ac_try) 2>&5 9502 ac_status=$? 9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9504 (exit $ac_status); }; }; then 9505 tcl_cv_lib_x11_64=yes 9506else 9507 echo "$as_me: failed program was:" >&5 9508sed 's/^/| /' conftest.$ac_ext >&5 9509 9510tcl_cv_lib_x11_64=no 9511fi 9512rm -f conftest.err conftest.$ac_objext \ 9513 conftest$ac_exeext conftest.$ac_ext 9514 for v in CFLAGS CPPFLAGS LDFLAGS; do 9515 eval $v'="$hold_'$v'"' 9516 done 9517fi 9518echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9519echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6 9520 fi 9521 # remove 64-bit arch flags from CFLAGS et al. for combined 32 & 64 bit 9522 # fat builds if configuration does not support 64-bit. 9523 if test "$tcl_cv_lib_x11_64" = no; then 9524 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9525echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9526 for v in CFLAGS CPPFLAGS LDFLAGS; do 9527 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9528 done 9529 fi 9530 fi 9531 if test $tk_aqua = no; then 9532 # check if weak linking whole libraries is possible. 9533 echo "$as_me:$LINENO: checking if ld accepts -weak-l flag" >&5 9534echo $ECHO_N "checking if ld accepts -weak-l flag... $ECHO_C" >&6 9535if test "${tcl_cv_ld_weak_l+set}" = set; then 9536 echo $ECHO_N "(cached) $ECHO_C" >&6 9537else 9538 9539 hold_ldflags=$LDFLAGS 9540 LDFLAGS="$LDFLAGS -Wl,-weak-lm" 9541 cat >conftest.$ac_ext <<_ACEOF 9542/* confdefs.h. */ 9543_ACEOF 9544cat confdefs.h >>conftest.$ac_ext 9545cat >>conftest.$ac_ext <<_ACEOF 9546/* end confdefs.h. */ 9547#include <math.h> 9548int 9549main () 9550{ 9551double f = sin(1.0); 9552 ; 9553 return 0; 9554} 9555_ACEOF 9556rm -f conftest.$ac_objext conftest$ac_exeext 9557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9558 (eval $ac_link) 2>conftest.er1 9559 ac_status=$? 9560 grep -v '^ *+' conftest.er1 >conftest.err 9561 rm -f conftest.er1 9562 cat conftest.err >&5 9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9564 (exit $ac_status); } && 9565 { ac_try='test -z "$ac_c_werror_flag" 9566 || test ! -s conftest.err' 9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9568 (eval $ac_try) 2>&5 9569 ac_status=$? 9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9571 (exit $ac_status); }; } && 9572 { ac_try='test -s conftest$ac_exeext' 9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9574 (eval $ac_try) 2>&5 9575 ac_status=$? 9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9577 (exit $ac_status); }; }; then 9578 tcl_cv_ld_weak_l=yes 9579else 9580 echo "$as_me: failed program was:" >&5 9581sed 's/^/| /' conftest.$ac_ext >&5 9582 9583tcl_cv_ld_weak_l=no 9584fi 9585rm -f conftest.err conftest.$ac_objext \ 9586 conftest$ac_exeext conftest.$ac_ext 9587 LDFLAGS=$hold_ldflags 9588fi 9589echo "$as_me:$LINENO: result: $tcl_cv_ld_weak_l" >&5 9590echo "${ECHO_T}$tcl_cv_ld_weak_l" >&6 9591 fi 9592 9593for ac_header in AvailabilityMacros.h 9594do 9595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9596if eval "test \"\${$as_ac_Header+set}\" = set"; then 9597 echo "$as_me:$LINENO: checking for $ac_header" >&5 9598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9599if eval "test \"\${$as_ac_Header+set}\" = set"; then 9600 echo $ECHO_N "(cached) $ECHO_C" >&6 9601fi 9602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9603echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9604else 9605 # Is the header compilable? 9606echo "$as_me:$LINENO: checking $ac_header usability" >&5 9607echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9608cat >conftest.$ac_ext <<_ACEOF 9609/* confdefs.h. */ 9610_ACEOF 9611cat confdefs.h >>conftest.$ac_ext 9612cat >>conftest.$ac_ext <<_ACEOF 9613/* end confdefs.h. */ 9614$ac_includes_default 9615#include <$ac_header> 9616_ACEOF 9617rm -f conftest.$ac_objext 9618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9619 (eval $ac_compile) 2>conftest.er1 9620 ac_status=$? 9621 grep -v '^ *+' conftest.er1 >conftest.err 9622 rm -f conftest.er1 9623 cat conftest.err >&5 9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9625 (exit $ac_status); } && 9626 { ac_try='test -z "$ac_c_werror_flag" 9627 || test ! -s conftest.err' 9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9629 (eval $ac_try) 2>&5 9630 ac_status=$? 9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9632 (exit $ac_status); }; } && 9633 { ac_try='test -s conftest.$ac_objext' 9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9635 (eval $ac_try) 2>&5 9636 ac_status=$? 9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9638 (exit $ac_status); }; }; then 9639 ac_header_compiler=yes 9640else 9641 echo "$as_me: failed program was:" >&5 9642sed 's/^/| /' conftest.$ac_ext >&5 9643 9644ac_header_compiler=no 9645fi 9646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9647echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9648echo "${ECHO_T}$ac_header_compiler" >&6 9649 9650# Is the header present? 9651echo "$as_me:$LINENO: checking $ac_header presence" >&5 9652echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9653cat >conftest.$ac_ext <<_ACEOF 9654/* confdefs.h. */ 9655_ACEOF 9656cat confdefs.h >>conftest.$ac_ext 9657cat >>conftest.$ac_ext <<_ACEOF 9658/* end confdefs.h. */ 9659#include <$ac_header> 9660_ACEOF 9661if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9663 ac_status=$? 9664 grep -v '^ *+' conftest.er1 >conftest.err 9665 rm -f conftest.er1 9666 cat conftest.err >&5 9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9668 (exit $ac_status); } >/dev/null; then 9669 if test -s conftest.err; then 9670 ac_cpp_err=$ac_c_preproc_warn_flag 9671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9672 else 9673 ac_cpp_err= 9674 fi 9675else 9676 ac_cpp_err=yes 9677fi 9678if test -z "$ac_cpp_err"; then 9679 ac_header_preproc=yes 9680else 9681 echo "$as_me: failed program was:" >&5 9682sed 's/^/| /' conftest.$ac_ext >&5 9683 9684 ac_header_preproc=no 9685fi 9686rm -f conftest.err conftest.$ac_ext 9687echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9688echo "${ECHO_T}$ac_header_preproc" >&6 9689 9690# So? What about this header? 9691case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9692 yes:no: ) 9693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9694echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9696echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9697 ac_header_preproc=yes 9698 ;; 9699 no:yes:* ) 9700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9701echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9703echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9705echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9707echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9709echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9711echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9712 ( 9713 cat <<\_ASBOX 9714## ----------------------------- ## 9715## Report this to the tk lists. ## 9716## ----------------------------- ## 9717_ASBOX 9718 ) | 9719 sed "s/^/$as_me: WARNING: /" >&2 9720 ;; 9721esac 9722echo "$as_me:$LINENO: checking for $ac_header" >&5 9723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9724if eval "test \"\${$as_ac_Header+set}\" = set"; then 9725 echo $ECHO_N "(cached) $ECHO_C" >&6 9726else 9727 eval "$as_ac_Header=\$ac_header_preproc" 9728fi 9729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9730echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9731 9732fi 9733if test `eval echo '${'$as_ac_Header'}'` = yes; then 9734 cat >>confdefs.h <<_ACEOF 9735#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9736_ACEOF 9737 9738fi 9739 9740done 9741 9742 if test "$ac_cv_header_AvailabilityMacros_h" = yes; then 9743 echo "$as_me:$LINENO: checking if weak import is available" >&5 9744echo $ECHO_N "checking if weak import is available... $ECHO_C" >&6 9745if test "${tcl_cv_cc_weak_import+set}" = set; then 9746 echo $ECHO_N "(cached) $ECHO_C" >&6 9747else 9748 9749 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 9750 cat >conftest.$ac_ext <<_ACEOF 9751/* confdefs.h. */ 9752_ACEOF 9753cat confdefs.h >>conftest.$ac_ext 9754cat >>conftest.$ac_ext <<_ACEOF 9755/* end confdefs.h. */ 9756 9757 #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 9758 #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1020 9759 #error __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1020 9760 #endif 9761 #elif MAC_OS_X_VERSION_MIN_REQUIRED < 1020 9762 #error MAC_OS_X_VERSION_MIN_REQUIRED < 1020 9763 #endif 9764 int rand(void) __attribute__((weak_import)); 9765 9766int 9767main () 9768{ 9769rand(); 9770 ; 9771 return 0; 9772} 9773_ACEOF 9774rm -f conftest.$ac_objext conftest$ac_exeext 9775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9776 (eval $ac_link) 2>conftest.er1 9777 ac_status=$? 9778 grep -v '^ *+' conftest.er1 >conftest.err 9779 rm -f conftest.er1 9780 cat conftest.err >&5 9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9782 (exit $ac_status); } && 9783 { ac_try='test -z "$ac_c_werror_flag" 9784 || test ! -s conftest.err' 9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9786 (eval $ac_try) 2>&5 9787 ac_status=$? 9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9789 (exit $ac_status); }; } && 9790 { ac_try='test -s conftest$ac_exeext' 9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9792 (eval $ac_try) 2>&5 9793 ac_status=$? 9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9795 (exit $ac_status); }; }; then 9796 tcl_cv_cc_weak_import=yes 9797else 9798 echo "$as_me: failed program was:" >&5 9799sed 's/^/| /' conftest.$ac_ext >&5 9800 9801tcl_cv_cc_weak_import=no 9802fi 9803rm -f conftest.err conftest.$ac_objext \ 9804 conftest$ac_exeext conftest.$ac_ext 9805 CFLAGS=$hold_cflags 9806fi 9807echo "$as_me:$LINENO: result: $tcl_cv_cc_weak_import" >&5 9808echo "${ECHO_T}$tcl_cv_cc_weak_import" >&6 9809 if test $tcl_cv_cc_weak_import = yes; then 9810 9811cat >>confdefs.h <<\_ACEOF 9812#define HAVE_WEAK_IMPORT 1 9813_ACEOF 9814 9815 fi 9816 echo "$as_me:$LINENO: checking if Darwin SUSv3 extensions are available" >&5 9817echo $ECHO_N "checking if Darwin SUSv3 extensions are available... $ECHO_C" >&6 9818if test "${tcl_cv_cc_darwin_c_source+set}" = set; then 9819 echo $ECHO_N "(cached) $ECHO_C" >&6 9820else 9821 9822 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 9823 cat >conftest.$ac_ext <<_ACEOF 9824/* confdefs.h. */ 9825_ACEOF 9826cat confdefs.h >>conftest.$ac_ext 9827cat >>conftest.$ac_ext <<_ACEOF 9828/* end confdefs.h. */ 9829 9830 #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 9831 #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050 9832 #error __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050 9833 #endif 9834 #elif MAC_OS_X_VERSION_MIN_REQUIRED < 1050 9835 #error MAC_OS_X_VERSION_MIN_REQUIRED < 1050 9836 #endif 9837 #define _DARWIN_C_SOURCE 1 9838 #include <sys/cdefs.h> 9839 9840int 9841main () 9842{ 9843 9844 ; 9845 return 0; 9846} 9847_ACEOF 9848rm -f conftest.$ac_objext 9849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9850 (eval $ac_compile) 2>conftest.er1 9851 ac_status=$? 9852 grep -v '^ *+' conftest.er1 >conftest.err 9853 rm -f conftest.er1 9854 cat conftest.err >&5 9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9856 (exit $ac_status); } && 9857 { ac_try='test -z "$ac_c_werror_flag" 9858 || test ! -s conftest.err' 9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9860 (eval $ac_try) 2>&5 9861 ac_status=$? 9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9863 (exit $ac_status); }; } && 9864 { ac_try='test -s conftest.$ac_objext' 9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9866 (eval $ac_try) 2>&5 9867 ac_status=$? 9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9869 (exit $ac_status); }; }; then 9870 tcl_cv_cc_darwin_c_source=yes 9871else 9872 echo "$as_me: failed program was:" >&5 9873sed 's/^/| /' conftest.$ac_ext >&5 9874 9875tcl_cv_cc_darwin_c_source=no 9876fi 9877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9878 CFLAGS=$hold_cflags 9879fi 9880echo "$as_me:$LINENO: result: $tcl_cv_cc_darwin_c_source" >&5 9881echo "${ECHO_T}$tcl_cv_cc_darwin_c_source" >&6 9882 if test $tcl_cv_cc_darwin_c_source = yes; then 9883 9884cat >>confdefs.h <<\_ACEOF 9885#define _DARWIN_C_SOURCE 1 9886_ACEOF 9887 9888 fi 9889 fi 9890else 9891 tk_aqua=no 9892fi 9893 9894if test $tk_aqua = yes; then 9895 9896cat >>confdefs.h <<\_ACEOF 9897#define MAC_OSX_TK 1 9898_ACEOF 9899 9900 LIBS="$LIBS -framework Cocoa -framework Carbon -framework IOKit" 9901 EXTRA_CC_SWITCHES='-std=gnu99 -x objective-c' 9902 TK_WINDOWINGSYSTEM=AQUA 9903 if test -n "${enable_symbols}" -a "${enable_symbols}" != no; then 9904 9905cat >>confdefs.h <<\_ACEOF 9906#define TK_MAC_DEBUG 1 9907_ACEOF 9908 9909 fi 9910else 9911 #-------------------------------------------------------------------- 9912 # Locate the X11 header files and the X11 library archive. Try 9913 # the ac_path_x macro first, but if it doesn't find the X stuff 9914 # (e.g. because there's no xmkmf program) then check through 9915 # a list of possible directories. Under some conditions the 9916 # autoconf macro will return an include directory that contains 9917 # no include files, so double-check its result just to be safe. 9918 #-------------------------------------------------------------------- 9919 9920 9921 echo "$as_me:$LINENO: checking for X" >&5 9922echo $ECHO_N "checking for X... $ECHO_C" >&6 9923 9924 9925# Check whether --with-x or --without-x was given. 9926if test "${with_x+set}" = set; then 9927 withval="$with_x" 9928 9929fi; 9930# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 9931if test "x$with_x" = xno; then 9932 # The user explicitly disabled X. 9933 have_x=disabled 9934else 9935 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 9936 # Both variables are already set. 9937 have_x=yes 9938 else 9939 if test "${ac_cv_have_x+set}" = set; then 9940 echo $ECHO_N "(cached) $ECHO_C" >&6 9941else 9942 # One or both of the vars are not set, and there is no cached value. 9943ac_x_includes=no ac_x_libraries=no 9944rm -fr conftest.dir 9945if mkdir conftest.dir; then 9946 cd conftest.dir 9947 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 9948 cat >Imakefile <<'_ACEOF' 9949acfindx: 9950 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 9951_ACEOF 9952 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 9953 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 9954 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 9955 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 9956 for ac_extension in a so sl; do 9957 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 9958 test -f $ac_im_libdir/libX11.$ac_extension; then 9959 ac_im_usrlibdir=$ac_im_libdir; break 9960 fi 9961 done 9962 # Screen out bogus values from the imake configuration. They are 9963 # bogus both because they are the default anyway, and because 9964 # using them would break gcc on systems where it needs fixed includes. 9965 case $ac_im_incroot in 9966 /usr/include) ;; 9967 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 9968 esac 9969 case $ac_im_usrlibdir in 9970 /usr/lib | /lib) ;; 9971 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 9972 esac 9973 fi 9974 cd .. 9975 rm -fr conftest.dir 9976fi 9977 9978# Standard set of common directories for X headers. 9979# Check X11 before X11Rn because it is often a symlink to the current release. 9980ac_x_header_dirs=' 9981/usr/X11/include 9982/usr/X11R6/include 9983/usr/X11R5/include 9984/usr/X11R4/include 9985 9986/usr/include/X11 9987/usr/include/X11R6 9988/usr/include/X11R5 9989/usr/include/X11R4 9990 9991/usr/local/X11/include 9992/usr/local/X11R6/include 9993/usr/local/X11R5/include 9994/usr/local/X11R4/include 9995 9996/usr/local/include/X11 9997/usr/local/include/X11R6 9998/usr/local/include/X11R5 9999/usr/local/include/X11R4 10000 10001/usr/X386/include 10002/usr/x386/include 10003/usr/XFree86/include/X11 10004 10005/usr/include 10006/usr/local/include 10007/usr/unsupported/include 10008/usr/athena/include 10009/usr/local/x11r5/include 10010/usr/lpp/Xamples/include 10011 10012/usr/openwin/include 10013/usr/openwin/share/include' 10014 10015if test "$ac_x_includes" = no; then 10016 # Guess where to find include files, by looking for Xlib.h. 10017 # First, try using that file with no special directory specified. 10018 cat >conftest.$ac_ext <<_ACEOF 10019/* confdefs.h. */ 10020_ACEOF 10021cat confdefs.h >>conftest.$ac_ext 10022cat >>conftest.$ac_ext <<_ACEOF 10023/* end confdefs.h. */ 10024#include <X11/Xlib.h> 10025_ACEOF 10026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10028 ac_status=$? 10029 grep -v '^ *+' conftest.er1 >conftest.err 10030 rm -f conftest.er1 10031 cat conftest.err >&5 10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10033 (exit $ac_status); } >/dev/null; then 10034 if test -s conftest.err; then 10035 ac_cpp_err=$ac_c_preproc_warn_flag 10036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10037 else 10038 ac_cpp_err= 10039 fi 10040else 10041 ac_cpp_err=yes 10042fi 10043if test -z "$ac_cpp_err"; then 10044 # We can compile using X headers with no special include directory. 10045ac_x_includes= 10046else 10047 echo "$as_me: failed program was:" >&5 10048sed 's/^/| /' conftest.$ac_ext >&5 10049 10050 for ac_dir in $ac_x_header_dirs; do 10051 if test -r "$ac_dir/X11/Xlib.h"; then 10052 ac_x_includes=$ac_dir 10053 break 10054 fi 10055done 10056fi 10057rm -f conftest.err conftest.$ac_ext 10058fi # $ac_x_includes = no 10059 10060if test "$ac_x_libraries" = no; then 10061 # Check for the libraries. 10062 # See if we find them without any special options. 10063 # Don't add to $LIBS permanently. 10064 ac_save_LIBS=$LIBS 10065 LIBS="-lX11 $LIBS" 10066 cat >conftest.$ac_ext <<_ACEOF 10067/* confdefs.h. */ 10068_ACEOF 10069cat confdefs.h >>conftest.$ac_ext 10070cat >>conftest.$ac_ext <<_ACEOF 10071/* end confdefs.h. */ 10072#include <X11/Xlib.h> 10073int 10074main () 10075{ 10076XrmInitialize () 10077 ; 10078 return 0; 10079} 10080_ACEOF 10081rm -f conftest.$ac_objext conftest$ac_exeext 10082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10083 (eval $ac_link) 2>conftest.er1 10084 ac_status=$? 10085 grep -v '^ *+' conftest.er1 >conftest.err 10086 rm -f conftest.er1 10087 cat conftest.err >&5 10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10089 (exit $ac_status); } && 10090 { ac_try='test -z "$ac_c_werror_flag" 10091 || test ! -s conftest.err' 10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10093 (eval $ac_try) 2>&5 10094 ac_status=$? 10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10096 (exit $ac_status); }; } && 10097 { ac_try='test -s conftest$ac_exeext' 10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10099 (eval $ac_try) 2>&5 10100 ac_status=$? 10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10102 (exit $ac_status); }; }; then 10103 LIBS=$ac_save_LIBS 10104# We can link X programs with no special library path. 10105ac_x_libraries= 10106else 10107 echo "$as_me: failed program was:" >&5 10108sed 's/^/| /' conftest.$ac_ext >&5 10109 10110LIBS=$ac_save_LIBS 10111for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 10112do 10113 # Don't even attempt the hair of trying to link an X program! 10114 for ac_extension in a so sl; do 10115 if test -r $ac_dir/libXt.$ac_extension; then 10116 ac_x_libraries=$ac_dir 10117 break 2 10118 fi 10119 done 10120done 10121fi 10122rm -f conftest.err conftest.$ac_objext \ 10123 conftest$ac_exeext conftest.$ac_ext 10124fi # $ac_x_libraries = no 10125 10126if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 10127 # Didn't find X anywhere. Cache the known absence of X. 10128 ac_cv_have_x="have_x=no" 10129else 10130 # Record where we found X for the cache. 10131 ac_cv_have_x="have_x=yes \ 10132 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 10133fi 10134fi 10135 10136 fi 10137 eval "$ac_cv_have_x" 10138fi # $with_x != no 10139 10140if test "$have_x" != yes; then 10141 echo "$as_me:$LINENO: result: $have_x" >&5 10142echo "${ECHO_T}$have_x" >&6 10143 no_x=yes 10144else 10145 # If each of the values was on the command line, it overrides each guess. 10146 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 10147 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 10148 # Update the cache value to reflect the command line values. 10149 ac_cv_have_x="have_x=yes \ 10150 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 10151 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 10152echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 10153fi 10154 10155 not_really_there="" 10156 if test "$no_x" = ""; then 10157 if test "$x_includes" = ""; then 10158 cat >conftest.$ac_ext <<_ACEOF 10159/* confdefs.h. */ 10160_ACEOF 10161cat confdefs.h >>conftest.$ac_ext 10162cat >>conftest.$ac_ext <<_ACEOF 10163/* end confdefs.h. */ 10164#include <X11/Xlib.h> 10165_ACEOF 10166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10168 ac_status=$? 10169 grep -v '^ *+' conftest.er1 >conftest.err 10170 rm -f conftest.er1 10171 cat conftest.err >&5 10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10173 (exit $ac_status); } >/dev/null; then 10174 if test -s conftest.err; then 10175 ac_cpp_err=$ac_c_preproc_warn_flag 10176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10177 else 10178 ac_cpp_err= 10179 fi 10180else 10181 ac_cpp_err=yes 10182fi 10183if test -z "$ac_cpp_err"; then 10184 : 10185else 10186 echo "$as_me: failed program was:" >&5 10187sed 's/^/| /' conftest.$ac_ext >&5 10188 10189 not_really_there="yes" 10190fi 10191rm -f conftest.err conftest.$ac_ext 10192 else 10193 if test ! -r $x_includes/X11/Xlib.h; then 10194 not_really_there="yes" 10195 fi 10196 fi 10197 fi 10198 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then 10199 echo "$as_me:$LINENO: checking for X11 header files" >&5 10200echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6 10201 found_xincludes="no" 10202 cat >conftest.$ac_ext <<_ACEOF 10203/* confdefs.h. */ 10204_ACEOF 10205cat confdefs.h >>conftest.$ac_ext 10206cat >>conftest.$ac_ext <<_ACEOF 10207/* end confdefs.h. */ 10208#include <X11/Xlib.h> 10209_ACEOF 10210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10212 ac_status=$? 10213 grep -v '^ *+' conftest.er1 >conftest.err 10214 rm -f conftest.er1 10215 cat conftest.err >&5 10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10217 (exit $ac_status); } >/dev/null; then 10218 if test -s conftest.err; then 10219 ac_cpp_err=$ac_c_preproc_warn_flag 10220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10221 else 10222 ac_cpp_err= 10223 fi 10224else 10225 ac_cpp_err=yes 10226fi 10227if test -z "$ac_cpp_err"; then 10228 found_xincludes="yes" 10229else 10230 echo "$as_me: failed program was:" >&5 10231sed 's/^/| /' conftest.$ac_ext >&5 10232 10233 found_xincludes="no" 10234fi 10235rm -f conftest.err conftest.$ac_ext 10236 if test "$found_xincludes" = "no"; then 10237 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" 10238 for i in $dirs ; do 10239 if test -r $i/X11/Xlib.h; then 10240 echo "$as_me:$LINENO: result: $i" >&5 10241echo "${ECHO_T}$i" >&6 10242 XINCLUDES=" -I$i" 10243 found_xincludes="yes" 10244 break 10245 fi 10246 done 10247 fi 10248 else 10249 if test "$x_includes" != ""; then 10250 XINCLUDES="-I$x_includes" 10251 found_xincludes="yes" 10252 fi 10253 fi 10254 if test "$found_xincludes" = "no"; then 10255 echo "$as_me:$LINENO: result: couldn't find any!" >&5 10256echo "${ECHO_T}couldn't find any!" >&6 10257 fi 10258 10259 if test "$no_x" = yes; then 10260 echo "$as_me:$LINENO: checking for X11 libraries" >&5 10261echo $ECHO_N "checking for X11 libraries... $ECHO_C" >&6 10262 XLIBSW=nope 10263 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" 10264 for i in $dirs ; do 10265 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then 10266 echo "$as_me:$LINENO: result: $i" >&5 10267echo "${ECHO_T}$i" >&6 10268 XLIBSW="-L$i -lX11" 10269 x_libraries="$i" 10270 break 10271 fi 10272 done 10273 else 10274 if test "$x_libraries" = ""; then 10275 XLIBSW=-lX11 10276 else 10277 XLIBSW="-L$x_libraries -lX11" 10278 fi 10279 fi 10280 if test "$XLIBSW" = nope ; then 10281 echo "$as_me:$LINENO: checking for XCreateWindow in -lXwindow" >&5 10282echo $ECHO_N "checking for XCreateWindow in -lXwindow... $ECHO_C" >&6 10283if test "${ac_cv_lib_Xwindow_XCreateWindow+set}" = set; then 10284 echo $ECHO_N "(cached) $ECHO_C" >&6 10285else 10286 ac_check_lib_save_LIBS=$LIBS 10287LIBS="-lXwindow $LIBS" 10288cat >conftest.$ac_ext <<_ACEOF 10289/* confdefs.h. */ 10290_ACEOF 10291cat confdefs.h >>conftest.$ac_ext 10292cat >>conftest.$ac_ext <<_ACEOF 10293/* end confdefs.h. */ 10294 10295/* Override any gcc2 internal prototype to avoid an error. */ 10296#ifdef __cplusplus 10297extern "C" 10298#endif 10299/* We use char because int might match the return type of a gcc2 10300 builtin and then its argument prototype would still apply. */ 10301char XCreateWindow (); 10302int 10303main () 10304{ 10305XCreateWindow (); 10306 ; 10307 return 0; 10308} 10309_ACEOF 10310rm -f conftest.$ac_objext conftest$ac_exeext 10311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10312 (eval $ac_link) 2>conftest.er1 10313 ac_status=$? 10314 grep -v '^ *+' conftest.er1 >conftest.err 10315 rm -f conftest.er1 10316 cat conftest.err >&5 10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10318 (exit $ac_status); } && 10319 { ac_try='test -z "$ac_c_werror_flag" 10320 || test ! -s conftest.err' 10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10322 (eval $ac_try) 2>&5 10323 ac_status=$? 10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10325 (exit $ac_status); }; } && 10326 { ac_try='test -s conftest$ac_exeext' 10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10328 (eval $ac_try) 2>&5 10329 ac_status=$? 10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10331 (exit $ac_status); }; }; then 10332 ac_cv_lib_Xwindow_XCreateWindow=yes 10333else 10334 echo "$as_me: failed program was:" >&5 10335sed 's/^/| /' conftest.$ac_ext >&5 10336 10337ac_cv_lib_Xwindow_XCreateWindow=no 10338fi 10339rm -f conftest.err conftest.$ac_objext \ 10340 conftest$ac_exeext conftest.$ac_ext 10341LIBS=$ac_check_lib_save_LIBS 10342fi 10343echo "$as_me:$LINENO: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5 10344echo "${ECHO_T}$ac_cv_lib_Xwindow_XCreateWindow" >&6 10345if test $ac_cv_lib_Xwindow_XCreateWindow = yes; then 10346 XLIBSW=-lXwindow 10347fi 10348 10349 fi 10350 if test "$XLIBSW" = nope ; then 10351 echo "$as_me:$LINENO: result: could not find any! Using -lX11." >&5 10352echo "${ECHO_T}could not find any! Using -lX11." >&6 10353 XLIBSW=-lX11 10354 fi 10355 10356 TK_WINDOWINGSYSTEM=X11 10357fi 10358 10359#-------------------------------------------------------------------- 10360# Various manipulations on the search path used at runtime to 10361# find shared libraries: 10362# 1. If the X library binaries are in a non-standard directory, 10363# add the X library location into that search path. 10364# 2. On systems such as AIX and Ultrix that use "-L" as the 10365# search path option, colons cannot be used to separate 10366# directories from each other. Change colons to " -L". 10367# 3. Create two sets of search flags, one for use in cc lines 10368# and the other for when the linker is invoked directly. In 10369# the second case, '-Wl,' must be stripped off and commas must 10370# be replaced by spaces. 10371#-------------------------------------------------------------------- 10372 10373if test "x${x_libraries}" != "x"; then 10374 if test "x${x_libraries}" != "xNONE"; then 10375 LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${x_libraries}" 10376 fi 10377fi 10378if test "${TCL_LD_SEARCH_FLAGS}" = '-L${LIB_RUNTIME_DIR}'; then 10379 LIB_RUNTIME_DIR=`echo ${LIB_RUNTIME_DIR} |sed -e 's/:/ -L/g'` 10380fi 10381 10382#-------------------------------------------------------------------- 10383# Check for the existence of various libraries. The order here 10384# is important, so that then end up in the right order in the 10385# command line generated by make. The -lsocket and -lnsl libraries 10386# require a couple of special tricks: 10387# 1. Use "connect" and "accept" to check for -lsocket, and 10388# "gethostbyname" to check for -lnsl. 10389# 2. Use each function name only once: can't redo a check because 10390# autoconf caches the results of the last check and won't redo it. 10391# 3. Use -lnsl and -lsocket only if they supply procedures that 10392# aren't already present in the normal libraries. This is because 10393# IRIX 5.2 has libraries, but they aren't needed and they're 10394# bogus: they goof up name resolution if used. 10395# 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 10396# To get around this problem, check for both libraries together 10397# if -lsocket doesn't work by itself. 10398#-------------------------------------------------------------------- 10399 10400if test $tk_aqua = no; then 10401 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 10402echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 10403if test "${ac_cv_lib_Xbsd_main+set}" = set; then 10404 echo $ECHO_N "(cached) $ECHO_C" >&6 10405else 10406 ac_check_lib_save_LIBS=$LIBS 10407LIBS="-lXbsd $LIBS" 10408cat >conftest.$ac_ext <<_ACEOF 10409/* confdefs.h. */ 10410_ACEOF 10411cat confdefs.h >>conftest.$ac_ext 10412cat >>conftest.$ac_ext <<_ACEOF 10413/* end confdefs.h. */ 10414 10415 10416int 10417main () 10418{ 10419main (); 10420 ; 10421 return 0; 10422} 10423_ACEOF 10424rm -f conftest.$ac_objext conftest$ac_exeext 10425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10426 (eval $ac_link) 2>conftest.er1 10427 ac_status=$? 10428 grep -v '^ *+' conftest.er1 >conftest.err 10429 rm -f conftest.er1 10430 cat conftest.err >&5 10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10432 (exit $ac_status); } && 10433 { ac_try='test -z "$ac_c_werror_flag" 10434 || test ! -s conftest.err' 10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10436 (eval $ac_try) 2>&5 10437 ac_status=$? 10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10439 (exit $ac_status); }; } && 10440 { ac_try='test -s conftest$ac_exeext' 10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10442 (eval $ac_try) 2>&5 10443 ac_status=$? 10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10445 (exit $ac_status); }; }; then 10446 ac_cv_lib_Xbsd_main=yes 10447else 10448 echo "$as_me: failed program was:" >&5 10449sed 's/^/| /' conftest.$ac_ext >&5 10450 10451ac_cv_lib_Xbsd_main=no 10452fi 10453rm -f conftest.err conftest.$ac_objext \ 10454 conftest$ac_exeext conftest.$ac_ext 10455LIBS=$ac_check_lib_save_LIBS 10456fi 10457echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 10458echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 10459if test $ac_cv_lib_Xbsd_main = yes; then 10460 LIBS="$LIBS -lXbsd" 10461fi 10462 10463fi 10464 10465#-------------------------------------------------------------------- 10466# One more check related to the X libraries. The standard releases 10467# of Ultrix don't support the "xauth" mechanism, so send won't work 10468# unless TK_NO_SECURITY is defined. However, there are usually copies 10469# of the MIT X server available as well, which do support xauth. 10470# Check for the MIT stuff and use it if it exists. 10471# 10472# Note: can't use ac_check_lib macro (at least, not in Autoconf 2.1) 10473# because it can't deal with the "-" in the library name. 10474#-------------------------------------------------------------------- 10475 10476if test -d /usr/include/mit -a $tk_aqua = no; then 10477 echo "$as_me:$LINENO: checking MIT X libraries" >&5 10478echo $ECHO_N "checking MIT X libraries... $ECHO_C" >&6 10479 tk_oldCFlags=$CFLAGS 10480 CFLAGS="$CFLAGS -I/usr/include/mit" 10481 tk_oldLibs=$LIBS 10482 LIBS="$LIBS -lX11-mit" 10483 cat >conftest.$ac_ext <<_ACEOF 10484/* confdefs.h. */ 10485_ACEOF 10486cat confdefs.h >>conftest.$ac_ext 10487cat >>conftest.$ac_ext <<_ACEOF 10488/* end confdefs.h. */ 10489 10490 #include <X11/Xlib.h> 10491 10492int 10493main () 10494{ 10495 10496 XOpenDisplay(0); 10497 10498 ; 10499 return 0; 10500} 10501_ACEOF 10502rm -f conftest.$ac_objext conftest$ac_exeext 10503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10504 (eval $ac_link) 2>conftest.er1 10505 ac_status=$? 10506 grep -v '^ *+' conftest.er1 >conftest.err 10507 rm -f conftest.er1 10508 cat conftest.err >&5 10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10510 (exit $ac_status); } && 10511 { ac_try='test -z "$ac_c_werror_flag" 10512 || test ! -s conftest.err' 10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10514 (eval $ac_try) 2>&5 10515 ac_status=$? 10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10517 (exit $ac_status); }; } && 10518 { ac_try='test -s conftest$ac_exeext' 10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10520 (eval $ac_try) 2>&5 10521 ac_status=$? 10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10523 (exit $ac_status); }; }; then 10524 10525 echo "$as_me:$LINENO: result: yes" >&5 10526echo "${ECHO_T}yes" >&6 10527 XLIBSW="-lX11-mit" 10528 XINCLUDES="-I/usr/include/mit" 10529 10530else 10531 echo "$as_me: failed program was:" >&5 10532sed 's/^/| /' conftest.$ac_ext >&5 10533 10534echo "$as_me:$LINENO: result: no" >&5 10535echo "${ECHO_T}no" >&6 10536fi 10537rm -f conftest.err conftest.$ac_objext \ 10538 conftest$ac_exeext conftest.$ac_ext 10539 CFLAGS=$tk_oldCFlags 10540 LIBS=$tk_oldLibs 10541fi 10542 10543#-------------------------------------------------------------------- 10544# Check for freetype / fontconfig / Xft support. 10545#-------------------------------------------------------------------- 10546 10547if test $tk_aqua = no; then 10548 echo "$as_me:$LINENO: checking whether to use xft" >&5 10549echo $ECHO_N "checking whether to use xft... $ECHO_C" >&6 10550 # Check whether --enable-xft or --disable-xft was given. 10551if test "${enable_xft+set}" = set; then 10552 enableval="$enable_xft" 10553 enable_xft=$enableval 10554else 10555 enable_xft="default" 10556fi; 10557 XFT_CFLAGS="" 10558 XFT_LIBS="" 10559 if test "$enable_xft" = "no" ; then 10560 echo "$as_me:$LINENO: result: $enable_xft" >&5 10561echo "${ECHO_T}$enable_xft" >&6 10562 else 10563 found_xft="yes" 10564 XFT_CFLAGS=`xft-config --cflags 2>/dev/null` || found_xft="no" 10565 XFT_LIBS=`xft-config --libs 2>/dev/null` || found_xft="no" 10566 if test "$found_xft" = "no" ; then 10567 found_xft=yes 10568 XFT_CFLAGS=`pkg-config --cflags xft 2>/dev/null` || found_xft="no" 10569 XFT_LIBS=`pkg-config --libs xft 2>/dev/null` || found_xft="no" 10570 fi 10571 echo "$as_me:$LINENO: result: $found_xft" >&5 10572echo "${ECHO_T}$found_xft" >&6 10573 if test "$found_xft" = "yes" ; then 10574 tk_oldCFlags=$CFLAGS 10575 CFLAGS="$CFLAGS $XINCLUDES $XFT_CFLAGS" 10576 tk_oldLibs=$LIBS 10577 LIBS="$tk_oldLIBS $XFT_LIBS $XLIBSW" 10578 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 10579echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6 10580if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then 10581 echo $ECHO_N "(cached) $ECHO_C" >&6 10582else 10583 cat >conftest.$ac_ext <<_ACEOF 10584/* confdefs.h. */ 10585_ACEOF 10586cat confdefs.h >>conftest.$ac_ext 10587cat >>conftest.$ac_ext <<_ACEOF 10588/* end confdefs.h. */ 10589#include <X11/Xlib.h> 10590 10591#include <X11/Xft/Xft.h> 10592_ACEOF 10593rm -f conftest.$ac_objext 10594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10595 (eval $ac_compile) 2>conftest.er1 10596 ac_status=$? 10597 grep -v '^ *+' conftest.er1 >conftest.err 10598 rm -f conftest.er1 10599 cat conftest.err >&5 10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10601 (exit $ac_status); } && 10602 { ac_try='test -z "$ac_c_werror_flag" 10603 || test ! -s conftest.err' 10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10605 (eval $ac_try) 2>&5 10606 ac_status=$? 10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10608 (exit $ac_status); }; } && 10609 { ac_try='test -s conftest.$ac_objext' 10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10611 (eval $ac_try) 2>&5 10612 ac_status=$? 10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10614 (exit $ac_status); }; }; then 10615 ac_cv_header_X11_Xft_Xft_h=yes 10616else 10617 echo "$as_me: failed program was:" >&5 10618sed 's/^/| /' conftest.$ac_ext >&5 10619 10620ac_cv_header_X11_Xft_Xft_h=no 10621fi 10622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10623fi 10624echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 10625echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6 10626if test $ac_cv_header_X11_Xft_Xft_h = yes; then 10627 : 10628else 10629 10630 found_xft=no 10631 10632fi 10633 10634 10635 CFLAGS=$tk_oldCFlags 10636 LIBS=$tk_oldLibs 10637 fi 10638 if test "$found_xft" = "yes" ; then 10639 tk_oldCFlags=$CFLAGS 10640 CFLAGS="$CFLAGS $XINCLUDES $XFT_CFLAGS" 10641 tk_oldLibs=$LIBS 10642 LIBS="$tk_oldLIBS $XFT_LIBS $XLIBSW" 10643 10644echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5 10645echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6 10646if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then 10647 echo $ECHO_N "(cached) $ECHO_C" >&6 10648else 10649 ac_check_lib_save_LIBS=$LIBS 10650LIBS="-lXft $LIBS" 10651cat >conftest.$ac_ext <<_ACEOF 10652/* confdefs.h. */ 10653_ACEOF 10654cat confdefs.h >>conftest.$ac_ext 10655cat >>conftest.$ac_ext <<_ACEOF 10656/* end confdefs.h. */ 10657 10658/* Override any gcc2 internal prototype to avoid an error. */ 10659#ifdef __cplusplus 10660extern "C" 10661#endif 10662/* We use char because int might match the return type of a gcc2 10663 builtin and then its argument prototype would still apply. */ 10664char XftFontOpen (); 10665int 10666main () 10667{ 10668XftFontOpen (); 10669 ; 10670 return 0; 10671} 10672_ACEOF 10673rm -f conftest.$ac_objext conftest$ac_exeext 10674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10675 (eval $ac_link) 2>conftest.er1 10676 ac_status=$? 10677 grep -v '^ *+' conftest.er1 >conftest.err 10678 rm -f conftest.er1 10679 cat conftest.err >&5 10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10681 (exit $ac_status); } && 10682 { ac_try='test -z "$ac_c_werror_flag" 10683 || test ! -s conftest.err' 10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10685 (eval $ac_try) 2>&5 10686 ac_status=$? 10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10688 (exit $ac_status); }; } && 10689 { ac_try='test -s conftest$ac_exeext' 10690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10691 (eval $ac_try) 2>&5 10692 ac_status=$? 10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10694 (exit $ac_status); }; }; then 10695 ac_cv_lib_Xft_XftFontOpen=yes 10696else 10697 echo "$as_me: failed program was:" >&5 10698sed 's/^/| /' conftest.$ac_ext >&5 10699 10700ac_cv_lib_Xft_XftFontOpen=no 10701fi 10702rm -f conftest.err conftest.$ac_objext \ 10703 conftest$ac_exeext conftest.$ac_ext 10704LIBS=$ac_check_lib_save_LIBS 10705fi 10706echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5 10707echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6 10708if test $ac_cv_lib_Xft_XftFontOpen = yes; then 10709 cat >>confdefs.h <<_ACEOF 10710#define HAVE_LIBXFT 1 10711_ACEOF 10712 10713 LIBS="-lXft $LIBS" 10714 10715else 10716 10717 found_xft=no 10718 10719fi 10720 10721 CFLAGS=$tk_oldCFlags 10722 LIBS=$tk_oldLibs 10723 fi 10724 if test "$found_xft" = "yes" ; then 10725 tk_oldCFlags=$CFLAGS 10726 CFLAGS="$CFLAGS $XINCLUDES $XFT_CFLAGS" 10727 tk_oldLibs=$LIBS 10728 LIBS="$tk_oldLIBS $XFT_LIBS $XLIBSW -lfontconfig" 10729 echo "$as_me:$LINENO: checking for FcFontSort in -lfontconfig" >&5 10730echo $ECHO_N "checking for FcFontSort in -lfontconfig... $ECHO_C" >&6 10731if test "${ac_cv_lib_fontconfig_FcFontSort+set}" = set; then 10732 echo $ECHO_N "(cached) $ECHO_C" >&6 10733else 10734 ac_check_lib_save_LIBS=$LIBS 10735LIBS="-lfontconfig $LIBS" 10736cat >conftest.$ac_ext <<_ACEOF 10737/* confdefs.h. */ 10738_ACEOF 10739cat confdefs.h >>conftest.$ac_ext 10740cat >>conftest.$ac_ext <<_ACEOF 10741/* end confdefs.h. */ 10742 10743/* Override any gcc2 internal prototype to avoid an error. */ 10744#ifdef __cplusplus 10745extern "C" 10746#endif 10747/* We use char because int might match the return type of a gcc2 10748 builtin and then its argument prototype would still apply. */ 10749char FcFontSort (); 10750int 10751main () 10752{ 10753FcFontSort (); 10754 ; 10755 return 0; 10756} 10757_ACEOF 10758rm -f conftest.$ac_objext conftest$ac_exeext 10759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10760 (eval $ac_link) 2>conftest.er1 10761 ac_status=$? 10762 grep -v '^ *+' conftest.er1 >conftest.err 10763 rm -f conftest.er1 10764 cat conftest.err >&5 10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10766 (exit $ac_status); } && 10767 { ac_try='test -z "$ac_c_werror_flag" 10768 || test ! -s conftest.err' 10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10770 (eval $ac_try) 2>&5 10771 ac_status=$? 10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10773 (exit $ac_status); }; } && 10774 { ac_try='test -s conftest$ac_exeext' 10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10776 (eval $ac_try) 2>&5 10777 ac_status=$? 10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10779 (exit $ac_status); }; }; then 10780 ac_cv_lib_fontconfig_FcFontSort=yes 10781else 10782 echo "$as_me: failed program was:" >&5 10783sed 's/^/| /' conftest.$ac_ext >&5 10784 10785ac_cv_lib_fontconfig_FcFontSort=no 10786fi 10787rm -f conftest.err conftest.$ac_objext \ 10788 conftest$ac_exeext conftest.$ac_ext 10789LIBS=$ac_check_lib_save_LIBS 10790fi 10791echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcFontSort" >&5 10792echo "${ECHO_T}$ac_cv_lib_fontconfig_FcFontSort" >&6 10793if test $ac_cv_lib_fontconfig_FcFontSort = yes; then 10794 10795 XFT_LIBS="$XFT_LIBS -lfontconfig" 10796 10797fi 10798 10799 CFLAGS=$tk_oldCFlags 10800 LIBS=$tk_oldLibs 10801 fi 10802 if test "$found_xft" = "no" ; then 10803 if test "$enable_xft" = "yes" ; then 10804 { echo "$as_me:$LINENO: WARNING: Can't find xft configuration, or xft is unusable" >&5 10805echo "$as_me: WARNING: Can't find xft configuration, or xft is unusable" >&2;} 10806 fi 10807 enable_xft=no 10808 XFT_CFLAGS="" 10809 XFT_LIBS="" 10810 else 10811 enable_xft=yes 10812 fi 10813 fi 10814 if test $enable_xft = "yes" ; then 10815 UNIX_FONT_OBJS=tkUnixRFont.o 10816 10817cat >>confdefs.h <<\_ACEOF 10818#define HAVE_XFT 1 10819_ACEOF 10820 10821 else 10822 UNIX_FONT_OBJS=tkUnixFont.o 10823 fi 10824 10825 10826 10827fi 10828 10829#-------------------------------------------------------------------- 10830# Check for XkbKeycodeToKeysym. 10831#-------------------------------------------------------------------- 10832 10833if test $tk_aqua = no; then 10834 tk_oldCFlags=$CFLAGS 10835 tk_oldLibs=$LIBS 10836 CFLAGS="$CFLAGS $XINCLUDES" 10837 LIBS="$LIBS $XLIBSW" 10838 echo "$as_me:$LINENO: checking for X11/XKBlib.h" >&5 10839echo $ECHO_N "checking for X11/XKBlib.h... $ECHO_C" >&6 10840if test "${ac_cv_header_X11_XKBlib_h+set}" = set; then 10841 echo $ECHO_N "(cached) $ECHO_C" >&6 10842else 10843 cat >conftest.$ac_ext <<_ACEOF 10844/* confdefs.h. */ 10845_ACEOF 10846cat confdefs.h >>conftest.$ac_ext 10847cat >>conftest.$ac_ext <<_ACEOF 10848/* end confdefs.h. */ 10849#include <X11/Xlib.h> 10850 10851#include <X11/XKBlib.h> 10852_ACEOF 10853rm -f conftest.$ac_objext 10854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10855 (eval $ac_compile) 2>conftest.er1 10856 ac_status=$? 10857 grep -v '^ *+' conftest.er1 >conftest.err 10858 rm -f conftest.er1 10859 cat conftest.err >&5 10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10861 (exit $ac_status); } && 10862 { ac_try='test -z "$ac_c_werror_flag" 10863 || test ! -s conftest.err' 10864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10865 (eval $ac_try) 2>&5 10866 ac_status=$? 10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10868 (exit $ac_status); }; } && 10869 { ac_try='test -s conftest.$ac_objext' 10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10871 (eval $ac_try) 2>&5 10872 ac_status=$? 10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10874 (exit $ac_status); }; }; then 10875 ac_cv_header_X11_XKBlib_h=yes 10876else 10877 echo "$as_me: failed program was:" >&5 10878sed 's/^/| /' conftest.$ac_ext >&5 10879 10880ac_cv_header_X11_XKBlib_h=no 10881fi 10882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10883fi 10884echo "$as_me:$LINENO: result: $ac_cv_header_X11_XKBlib_h" >&5 10885echo "${ECHO_T}$ac_cv_header_X11_XKBlib_h" >&6 10886if test $ac_cv_header_X11_XKBlib_h = yes; then 10887 10888 xkblib_header_found=yes 10889 10890else 10891 10892 xkblib_header_found=no 10893 10894fi 10895 10896 10897 if test $xkblib_header_found = "yes" ; then 10898 echo "$as_me:$LINENO: checking for XkbKeycodeToKeysym in -lX11" >&5 10899echo $ECHO_N "checking for XkbKeycodeToKeysym in -lX11... $ECHO_C" >&6 10900if test "${ac_cv_lib_X11_XkbKeycodeToKeysym+set}" = set; then 10901 echo $ECHO_N "(cached) $ECHO_C" >&6 10902else 10903 ac_check_lib_save_LIBS=$LIBS 10904LIBS="-lX11 $LIBS" 10905cat >conftest.$ac_ext <<_ACEOF 10906/* confdefs.h. */ 10907_ACEOF 10908cat confdefs.h >>conftest.$ac_ext 10909cat >>conftest.$ac_ext <<_ACEOF 10910/* end confdefs.h. */ 10911 10912/* Override any gcc2 internal prototype to avoid an error. */ 10913#ifdef __cplusplus 10914extern "C" 10915#endif 10916/* We use char because int might match the return type of a gcc2 10917 builtin and then its argument prototype would still apply. */ 10918char XkbKeycodeToKeysym (); 10919int 10920main () 10921{ 10922XkbKeycodeToKeysym (); 10923 ; 10924 return 0; 10925} 10926_ACEOF 10927rm -f conftest.$ac_objext conftest$ac_exeext 10928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10929 (eval $ac_link) 2>conftest.er1 10930 ac_status=$? 10931 grep -v '^ *+' conftest.er1 >conftest.err 10932 rm -f conftest.er1 10933 cat conftest.err >&5 10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10935 (exit $ac_status); } && 10936 { ac_try='test -z "$ac_c_werror_flag" 10937 || test ! -s conftest.err' 10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10939 (eval $ac_try) 2>&5 10940 ac_status=$? 10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10942 (exit $ac_status); }; } && 10943 { ac_try='test -s conftest$ac_exeext' 10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10945 (eval $ac_try) 2>&5 10946 ac_status=$? 10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10948 (exit $ac_status); }; }; then 10949 ac_cv_lib_X11_XkbKeycodeToKeysym=yes 10950else 10951 echo "$as_me: failed program was:" >&5 10952sed 's/^/| /' conftest.$ac_ext >&5 10953 10954ac_cv_lib_X11_XkbKeycodeToKeysym=no 10955fi 10956rm -f conftest.err conftest.$ac_objext \ 10957 conftest$ac_exeext conftest.$ac_ext 10958LIBS=$ac_check_lib_save_LIBS 10959fi 10960echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5 10961echo "${ECHO_T}$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6 10962if test $ac_cv_lib_X11_XkbKeycodeToKeysym = yes; then 10963 10964 xkbkeycodetokeysym_found=yes 10965 10966else 10967 10968 xkbkeycodetokeysym_found=no 10969 10970fi 10971 10972 else 10973 xkbkeycodetokeysym_found=no 10974 fi 10975 if test $xkbkeycodetokeysym_found = "yes" ; then 10976 10977cat >>confdefs.h <<\_ACEOF 10978#define HAVE_XKBKEYCODETOKEYSYM 1 10979_ACEOF 10980 10981 fi 10982 CFLAGS=$tk_oldCFlags 10983 LIBS=$tk_oldLibs 10984fi 10985 10986#-------------------------------------------------------------------- 10987# XXX Do this last. 10988# It might modify XLIBSW which could affect other tests. 10989# 10990# Check whether the header and library for the XScreenSaver 10991# extension are available, and set HAVE_XSS if so. 10992# XScreenSaver is needed for Tk_GetUserInactiveTime(). 10993#-------------------------------------------------------------------- 10994 10995if test $tk_aqua = no; then 10996 tk_oldCFlags=$CFLAGS 10997 CFLAGS="$CFLAGS $XINCLUDES" 10998 tk_oldLibs=$LIBS 10999 LIBS="$tk_oldLibs $XLIBSW" 11000 xss_header_found=no 11001 xss_lib_found=no 11002 echo "$as_me:$LINENO: checking whether to try to use XScreenSaver" >&5 11003echo $ECHO_N "checking whether to try to use XScreenSaver... $ECHO_C" >&6 11004 # Check whether --enable-xss or --disable-xss was given. 11005if test "${enable_xss+set}" = set; then 11006 enableval="$enable_xss" 11007 enable_xss=$enableval 11008else 11009 enable_xss=yes 11010fi; 11011 if test "$enable_xss" = "no" ; then 11012 echo "$as_me:$LINENO: result: $enable_xss" >&5 11013echo "${ECHO_T}$enable_xss" >&6 11014 else 11015 echo "$as_me:$LINENO: result: $enable_xss" >&5 11016echo "${ECHO_T}$enable_xss" >&6 11017 echo "$as_me:$LINENO: checking for X11/extensions/scrnsaver.h" >&5 11018echo $ECHO_N "checking for X11/extensions/scrnsaver.h... $ECHO_C" >&6 11019if test "${ac_cv_header_X11_extensions_scrnsaver_h+set}" = set; then 11020 echo $ECHO_N "(cached) $ECHO_C" >&6 11021else 11022 cat >conftest.$ac_ext <<_ACEOF 11023/* confdefs.h. */ 11024_ACEOF 11025cat confdefs.h >>conftest.$ac_ext 11026cat >>conftest.$ac_ext <<_ACEOF 11027/* end confdefs.h. */ 11028#include <X11/Xlib.h> 11029 11030#include <X11/extensions/scrnsaver.h> 11031_ACEOF 11032rm -f conftest.$ac_objext 11033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11034 (eval $ac_compile) 2>conftest.er1 11035 ac_status=$? 11036 grep -v '^ *+' conftest.er1 >conftest.err 11037 rm -f conftest.er1 11038 cat conftest.err >&5 11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11040 (exit $ac_status); } && 11041 { ac_try='test -z "$ac_c_werror_flag" 11042 || test ! -s conftest.err' 11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11044 (eval $ac_try) 2>&5 11045 ac_status=$? 11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11047 (exit $ac_status); }; } && 11048 { ac_try='test -s conftest.$ac_objext' 11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11050 (eval $ac_try) 2>&5 11051 ac_status=$? 11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11053 (exit $ac_status); }; }; then 11054 ac_cv_header_X11_extensions_scrnsaver_h=yes 11055else 11056 echo "$as_me: failed program was:" >&5 11057sed 's/^/| /' conftest.$ac_ext >&5 11058 11059ac_cv_header_X11_extensions_scrnsaver_h=no 11060fi 11061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11062fi 11063echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_scrnsaver_h" >&5 11064echo "${ECHO_T}$ac_cv_header_X11_extensions_scrnsaver_h" >&6 11065if test $ac_cv_header_X11_extensions_scrnsaver_h = yes; then 11066 11067 xss_header_found=yes 11068 11069fi 11070 11071 11072 echo "$as_me:$LINENO: checking for XScreenSaverQueryInfo" >&5 11073echo $ECHO_N "checking for XScreenSaverQueryInfo... $ECHO_C" >&6 11074if test "${ac_cv_func_XScreenSaverQueryInfo+set}" = set; then 11075 echo $ECHO_N "(cached) $ECHO_C" >&6 11076else 11077 cat >conftest.$ac_ext <<_ACEOF 11078/* confdefs.h. */ 11079_ACEOF 11080cat confdefs.h >>conftest.$ac_ext 11081cat >>conftest.$ac_ext <<_ACEOF 11082/* end confdefs.h. */ 11083/* Define XScreenSaverQueryInfo to an innocuous variant, in case <limits.h> declares XScreenSaverQueryInfo. 11084 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11085#define XScreenSaverQueryInfo innocuous_XScreenSaverQueryInfo 11086 11087/* System header to define __stub macros and hopefully few prototypes, 11088 which can conflict with char XScreenSaverQueryInfo (); below. 11089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11090 <limits.h> exists even on freestanding compilers. */ 11091 11092#ifdef __STDC__ 11093# include <limits.h> 11094#else 11095# include <assert.h> 11096#endif 11097 11098#undef XScreenSaverQueryInfo 11099 11100/* Override any gcc2 internal prototype to avoid an error. */ 11101#ifdef __cplusplus 11102extern "C" 11103{ 11104#endif 11105/* We use char because int might match the return type of a gcc2 11106 builtin and then its argument prototype would still apply. */ 11107char XScreenSaverQueryInfo (); 11108/* The GNU C library defines this for functions which it implements 11109 to always fail with ENOSYS. Some functions are actually named 11110 something starting with __ and the normal name is an alias. */ 11111#if defined (__stub_XScreenSaverQueryInfo) || defined (__stub___XScreenSaverQueryInfo) 11112choke me 11113#else 11114char (*f) () = XScreenSaverQueryInfo; 11115#endif 11116#ifdef __cplusplus 11117} 11118#endif 11119 11120int 11121main () 11122{ 11123return f != XScreenSaverQueryInfo; 11124 ; 11125 return 0; 11126} 11127_ACEOF 11128rm -f conftest.$ac_objext conftest$ac_exeext 11129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11130 (eval $ac_link) 2>conftest.er1 11131 ac_status=$? 11132 grep -v '^ *+' conftest.er1 >conftest.err 11133 rm -f conftest.er1 11134 cat conftest.err >&5 11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11136 (exit $ac_status); } && 11137 { ac_try='test -z "$ac_c_werror_flag" 11138 || test ! -s conftest.err' 11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11140 (eval $ac_try) 2>&5 11141 ac_status=$? 11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11143 (exit $ac_status); }; } && 11144 { ac_try='test -s conftest$ac_exeext' 11145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11146 (eval $ac_try) 2>&5 11147 ac_status=$? 11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11149 (exit $ac_status); }; }; then 11150 ac_cv_func_XScreenSaverQueryInfo=yes 11151else 11152 echo "$as_me: failed program was:" >&5 11153sed 's/^/| /' conftest.$ac_ext >&5 11154 11155ac_cv_func_XScreenSaverQueryInfo=no 11156fi 11157rm -f conftest.err conftest.$ac_objext \ 11158 conftest$ac_exeext conftest.$ac_ext 11159fi 11160echo "$as_me:$LINENO: result: $ac_cv_func_XScreenSaverQueryInfo" >&5 11161echo "${ECHO_T}$ac_cv_func_XScreenSaverQueryInfo" >&6 11162if test $ac_cv_func_XScreenSaverQueryInfo = yes; then 11163 : 11164else 11165 11166 echo "$as_me:$LINENO: checking for XScreenSaverQueryInfo in -lXext" >&5 11167echo $ECHO_N "checking for XScreenSaverQueryInfo in -lXext... $ECHO_C" >&6 11168if test "${ac_cv_lib_Xext_XScreenSaverQueryInfo+set}" = set; then 11169 echo $ECHO_N "(cached) $ECHO_C" >&6 11170else 11171 ac_check_lib_save_LIBS=$LIBS 11172LIBS="-lXext $LIBS" 11173cat >conftest.$ac_ext <<_ACEOF 11174/* confdefs.h. */ 11175_ACEOF 11176cat confdefs.h >>conftest.$ac_ext 11177cat >>conftest.$ac_ext <<_ACEOF 11178/* end confdefs.h. */ 11179 11180/* Override any gcc2 internal prototype to avoid an error. */ 11181#ifdef __cplusplus 11182extern "C" 11183#endif 11184/* We use char because int might match the return type of a gcc2 11185 builtin and then its argument prototype would still apply. */ 11186char XScreenSaverQueryInfo (); 11187int 11188main () 11189{ 11190XScreenSaverQueryInfo (); 11191 ; 11192 return 0; 11193} 11194_ACEOF 11195rm -f conftest.$ac_objext conftest$ac_exeext 11196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11197 (eval $ac_link) 2>conftest.er1 11198 ac_status=$? 11199 grep -v '^ *+' conftest.er1 >conftest.err 11200 rm -f conftest.er1 11201 cat conftest.err >&5 11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11203 (exit $ac_status); } && 11204 { ac_try='test -z "$ac_c_werror_flag" 11205 || test ! -s conftest.err' 11206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11207 (eval $ac_try) 2>&5 11208 ac_status=$? 11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11210 (exit $ac_status); }; } && 11211 { ac_try='test -s conftest$ac_exeext' 11212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11213 (eval $ac_try) 2>&5 11214 ac_status=$? 11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11216 (exit $ac_status); }; }; then 11217 ac_cv_lib_Xext_XScreenSaverQueryInfo=yes 11218else 11219 echo "$as_me: failed program was:" >&5 11220sed 's/^/| /' conftest.$ac_ext >&5 11221 11222ac_cv_lib_Xext_XScreenSaverQueryInfo=no 11223fi 11224rm -f conftest.err conftest.$ac_objext \ 11225 conftest$ac_exeext conftest.$ac_ext 11226LIBS=$ac_check_lib_save_LIBS 11227fi 11228echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XScreenSaverQueryInfo" >&5 11229echo "${ECHO_T}$ac_cv_lib_Xext_XScreenSaverQueryInfo" >&6 11230if test $ac_cv_lib_Xext_XScreenSaverQueryInfo = yes; then 11231 11232 XLIBSW="$XLIBSW -lXext" 11233 xss_lib_found=yes 11234 11235else 11236 11237 echo "$as_me:$LINENO: checking for XScreenSaverQueryInfo in -lXss" >&5 11238echo $ECHO_N "checking for XScreenSaverQueryInfo in -lXss... $ECHO_C" >&6 11239if test "${ac_cv_lib_Xss_XScreenSaverQueryInfo+set}" = set; then 11240 echo $ECHO_N "(cached) $ECHO_C" >&6 11241else 11242 ac_check_lib_save_LIBS=$LIBS 11243LIBS="-lXss -lXext $LIBS" 11244cat >conftest.$ac_ext <<_ACEOF 11245/* confdefs.h. */ 11246_ACEOF 11247cat confdefs.h >>conftest.$ac_ext 11248cat >>conftest.$ac_ext <<_ACEOF 11249/* end confdefs.h. */ 11250 11251/* Override any gcc2 internal prototype to avoid an error. */ 11252#ifdef __cplusplus 11253extern "C" 11254#endif 11255/* We use char because int might match the return type of a gcc2 11256 builtin and then its argument prototype would still apply. */ 11257char XScreenSaverQueryInfo (); 11258int 11259main () 11260{ 11261XScreenSaverQueryInfo (); 11262 ; 11263 return 0; 11264} 11265_ACEOF 11266rm -f conftest.$ac_objext conftest$ac_exeext 11267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11268 (eval $ac_link) 2>conftest.er1 11269 ac_status=$? 11270 grep -v '^ *+' conftest.er1 >conftest.err 11271 rm -f conftest.er1 11272 cat conftest.err >&5 11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11274 (exit $ac_status); } && 11275 { ac_try='test -z "$ac_c_werror_flag" 11276 || test ! -s conftest.err' 11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11278 (eval $ac_try) 2>&5 11279 ac_status=$? 11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11281 (exit $ac_status); }; } && 11282 { ac_try='test -s conftest$ac_exeext' 11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11284 (eval $ac_try) 2>&5 11285 ac_status=$? 11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11287 (exit $ac_status); }; }; then 11288 ac_cv_lib_Xss_XScreenSaverQueryInfo=yes 11289else 11290 echo "$as_me: failed program was:" >&5 11291sed 's/^/| /' conftest.$ac_ext >&5 11292 11293ac_cv_lib_Xss_XScreenSaverQueryInfo=no 11294fi 11295rm -f conftest.err conftest.$ac_objext \ 11296 conftest$ac_exeext conftest.$ac_ext 11297LIBS=$ac_check_lib_save_LIBS 11298fi 11299echo "$as_me:$LINENO: result: $ac_cv_lib_Xss_XScreenSaverQueryInfo" >&5 11300echo "${ECHO_T}$ac_cv_lib_Xss_XScreenSaverQueryInfo" >&6 11301if test $ac_cv_lib_Xss_XScreenSaverQueryInfo = yes; then 11302 11303 if test "$tcl_cv_ld_weak_l" = yes; then 11304 # On Darwin, weak link libXss if possible, 11305 # as it is only available on Tiger or later. 11306 XLIBSW="$XLIBSW -Wl,-weak-lXss -lXext" 11307 else 11308 XLIBSW="$XLIBSW -lXss -lXext" 11309 fi 11310 xss_lib_found=yes 11311 11312fi 11313 11314 11315fi 11316 11317 11318fi 11319 11320 fi 11321 if test $enable_xss = yes -a $xss_lib_found = yes -a $xss_header_found = yes; then 11322 11323cat >>confdefs.h <<\_ACEOF 11324#define HAVE_XSS 1 11325_ACEOF 11326 11327 fi 11328 CFLAGS=$tk_oldCFlags 11329 LIBS=$tk_oldLibs 11330fi 11331 11332#-------------------------------------------------------------------- 11333# Figure out whether "char" is unsigned. If so, set a 11334# #define for __CHAR_UNSIGNED__. 11335#-------------------------------------------------------------------- 11336 11337 11338echo "$as_me:$LINENO: checking whether char is unsigned" >&5 11339echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 11340if test "${ac_cv_c_char_unsigned+set}" = set; then 11341 echo $ECHO_N "(cached) $ECHO_C" >&6 11342else 11343 cat >conftest.$ac_ext <<_ACEOF 11344/* confdefs.h. */ 11345_ACEOF 11346cat confdefs.h >>conftest.$ac_ext 11347cat >>conftest.$ac_ext <<_ACEOF 11348/* end confdefs.h. */ 11349$ac_includes_default 11350int 11351main () 11352{ 11353static int test_array [1 - 2 * !(((char) -1) < 0)]; 11354test_array [0] = 0 11355 11356 ; 11357 return 0; 11358} 11359_ACEOF 11360rm -f conftest.$ac_objext 11361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11362 (eval $ac_compile) 2>conftest.er1 11363 ac_status=$? 11364 grep -v '^ *+' conftest.er1 >conftest.err 11365 rm -f conftest.er1 11366 cat conftest.err >&5 11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11368 (exit $ac_status); } && 11369 { ac_try='test -z "$ac_c_werror_flag" 11370 || test ! -s conftest.err' 11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11372 (eval $ac_try) 2>&5 11373 ac_status=$? 11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11375 (exit $ac_status); }; } && 11376 { ac_try='test -s conftest.$ac_objext' 11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11378 (eval $ac_try) 2>&5 11379 ac_status=$? 11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11381 (exit $ac_status); }; }; then 11382 ac_cv_c_char_unsigned=no 11383else 11384 echo "$as_me: failed program was:" >&5 11385sed 's/^/| /' conftest.$ac_ext >&5 11386 11387ac_cv_c_char_unsigned=yes 11388fi 11389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11390fi 11391echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 11392echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 11393if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 11394 cat >>confdefs.h <<\_ACEOF 11395#define __CHAR_UNSIGNED__ 1 11396_ACEOF 11397 11398fi 11399 11400 11401#-------------------------------------------------------------------- 11402# The statements below define a collection of symbols related to 11403# building libtk as a shared library instead of a static library. 11404#-------------------------------------------------------------------- 11405 11406eval eval "TK_UNSHARED_LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}" 11407eval eval "TK_SHARED_LIB_SUFFIX=${SHARED_LIB_SUFFIX}" 11408eval "TK_LIB_FILE=libtk${LIB_SUFFIX}" 11409 11410# tkConfig.sh needs a version of the _LIB_SUFFIX that has been eval'ed 11411# since on some platforms TK_LIB_FILE contains shell escapes. 11412 11413eval "TK_LIB_FILE=${TK_LIB_FILE}" 11414 11415if test "${SHARED_BUILD}" = "1" -a "${SHLIB_SUFFIX}" != ""; then 11416 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \${TCL_STUB_LIB_SPEC}" 11417 TCL_STUB_FLAGS="-DUSE_TCL_STUBS" 11418fi 11419 11420TK_LIBRARY='$(prefix)/lib/tk$(VERSION)' 11421PRIVATE_INCLUDE_DIR='$(includedir)' 11422HTML_DIR='$(DISTDIR)/html' 11423TK_PKG_DIR='tk$(VERSION)' 11424TK_RSRC_FILE='tk$(VERSION).rsrc' 11425WISH_RSRC_FILE='wish$(VERSION).rsrc' 11426 11427# Note: in the following variable, it's important to use the absolute 11428# path name of the Tcl directory rather than "..": this is because 11429# AIX remembers this path and will attempt to use it at run-time to look 11430# up the Tcl library. 11431 11432if test "`uname -s`" = "Darwin" ; then 11433 11434 if test "`uname -s`" = "Darwin" ; then 11435 echo "$as_me:$LINENO: checking how to package libraries" >&5 11436echo $ECHO_N "checking how to package libraries... $ECHO_C" >&6 11437 # Check whether --enable-framework or --disable-framework was given. 11438if test "${enable_framework+set}" = set; then 11439 enableval="$enable_framework" 11440 enable_framework=$enableval 11441else 11442 enable_framework=no 11443fi; 11444 if test $enable_framework = yes; then 11445 if test $SHARED_BUILD = 0; then 11446 { echo "$as_me:$LINENO: WARNING: Frameworks can only be built if --enable-shared is yes" >&5 11447echo "$as_me: WARNING: Frameworks can only be built if --enable-shared is yes" >&2;} 11448 enable_framework=no 11449 fi 11450 if test $tcl_corefoundation = no; then 11451 { echo "$as_me:$LINENO: WARNING: Frameworks can only be used when CoreFoundation is available" >&5 11452echo "$as_me: WARNING: Frameworks can only be used when CoreFoundation is available" >&2;} 11453 enable_framework=no 11454 fi 11455 fi 11456 if test $enable_framework = yes; then 11457 echo "$as_me:$LINENO: result: framework" >&5 11458echo "${ECHO_T}framework" >&6 11459 FRAMEWORK_BUILD=1 11460 else 11461 if test $SHARED_BUILD = 1; then 11462 echo "$as_me:$LINENO: result: shared library" >&5 11463echo "${ECHO_T}shared library" >&6 11464 else 11465 echo "$as_me:$LINENO: result: static library" >&5 11466echo "${ECHO_T}static library" >&6 11467 fi 11468 FRAMEWORK_BUILD=0 11469 fi 11470 fi 11471 11472 TK_SHLIB_LD_EXTRAS="-compatibility_version ${TK_VERSION} -current_version ${TK_VERSION}`echo ${TK_PATCH_LEVEL} | awk '{match($0, "\\\.[0-9]+"); print substr($0,RSTART,RLENGTH)}'`" 11473 TK_SHLIB_LD_EXTRAS="${TK_SHLIB_LD_EXTRAS}"' -install_name "${DYLIB_INSTALL_DIR}/${TK_LIB_FILE}" -unexported_symbols_list $$(f=$(TK_LIB_FILE).E && nm -gp tkMacOSX*.o 2>/dev/null | awk "/^[0-9a-f]+ . \.objc/ {print \$$3}" > $$f && nm -gjp "$(TCL_BIN_DIR)"/$(TCL_STUB_LIB_FILE) | grep ^_[^_] >> $$f && echo $$f)' 11474 echo "$LDFLAGS " | grep -q -- '-prebind ' && TK_SHLIB_LD_EXTRAS="${TK_SHLIB_LD_EXTRAS}"' -seg1addr 0xb000000' 11475 TK_SHLIB_LD_EXTRAS="${TK_SHLIB_LD_EXTRAS}"' -sectcreate __TEXT __info_plist Tk-Info.plist' 11476 EXTRA_WISH_LIBS='-sectcreate __TEXT __info_plist Wish-Info.plist' 11477 EXTRA_APP_CC_SWITCHES="${EXTRA_APP_CC_SWITCHES}"' -mdynamic-no-pic' 11478 ac_config_files="$ac_config_files Tk-Info.plist:../macosx/Tk-Info.plist.in Wish-Info.plist:../macosx/Wish-Info.plist.in" 11479 11480 for l in ${LOCALES}; do CFBUNDLELOCALIZATIONS="${CFBUNDLELOCALIZATIONS}<string>$l</string>"; done 11481 TK_YEAR="`date +%Y`" 11482fi 11483 11484if test "$FRAMEWORK_BUILD" = "1" ; then 11485 11486cat >>confdefs.h <<\_ACEOF 11487#define TK_FRAMEWORK 1 11488_ACEOF 11489 11490 # Construct a fake local framework structure to make linking with 11491 # '-framework Tk' and running of tktest work 11492 ac_config_commands="$ac_config_commands Tk.framework" 11493 11494 LD_LIBRARY_PATH_VAR="DYLD_FRAMEWORK_PATH" 11495 if test "${libdir}" = '${exec_prefix}/lib'; then 11496 # override libdir default 11497 libdir="/Library/Frameworks" 11498 fi 11499 TK_LIB_FILE="Tk" 11500 TK_LIB_FLAG="-framework Tk" 11501 TK_BUILD_LIB_SPEC="-F`pwd | sed -e 's/ /\\\\ /g'` -framework Tk" 11502 TK_LIB_SPEC="-F${libdir} -framework Tk" 11503 libdir="${libdir}/Tk.framework/Versions/\${VERSION}" 11504 TK_LIBRARY="${libdir}/Resources/Scripts" 11505 TK_PKG_DIR="Resources/Scripts" 11506 TK_RSRC_FILE="Tk.rsrc" 11507 WISH_RSRC_FILE="Wish.rsrc" 11508 includedir="${libdir}/Headers" 11509 PRIVATE_INCLUDE_DIR="${libdir}/PrivateHeaders" 11510 HTML_DIR="${libdir}/Resources/Documentation/Reference/Tk" 11511 EXTRA_INSTALL="install-private-headers html-tk" 11512 EXTRA_BUILD_HTML='@ln -fs contents.htm "$(HTML_INSTALL_DIR)"/TkTOC.html' 11513 EXTRA_INSTALL_BINARIES='@echo "Installing Info.plist to $(LIB_INSTALL_DIR)/Resources/" && mkdir -p "$(LIB_INSTALL_DIR)/Resources" && $(INSTALL_DATA) Tk-Info.plist "$(LIB_INSTALL_DIR)/Resources/Info.plist"' 11514 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing license.terms to $(LIB_INSTALL_DIR)/Resources" && $(INSTALL_DATA) "$(TOP_DIR)/license.terms" "$(LIB_INSTALL_DIR)/Resources"' 11515 if test $tk_aqua = yes; then 11516 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Images to $(LIB_INSTALL_DIR)/Resources" && mkdir -p "$(LIB_INSTALL_DIR)/Resources" && for i in Tk.tiff Tk.icns; do $(INSTALL_DATA) "$(MAC_OSX_DIR)/$$i" "$(LIB_INSTALL_DIR)/Resources"; done' 11517 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing wish$(VERSION) script to $(INSTALL_ROOT)/'"${bindir}"'" && mkdir -p "$(INSTALL_ROOT)/'"${bindir}"'" && printf > "$(INSTALL_ROOT)/'"${bindir}"'/wish$(VERSION)" "#!/bin/sh\n\"\$$(dirname \$$0)'"`eval d="${bindir}"; echo "$d" | sed -e 's#/[^/][^/]*#/..#g'`"'$(bindir)/Wish\" \"\$$@\"" && chmod +x "$(INSTALL_ROOT)/'"${bindir}"'/wish$(VERSION)"' 11518 bindir="${libdir}/Resources/Wish.app/Contents/MacOS" 11519 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Info.plist to $(BIN_INSTALL_DIR)/.." && $(INSTALL_DATA) Wish-Info.plist "$(BIN_INSTALL_DIR)/../Info.plist" && mv -f "$(BIN_INSTALL_DIR)/wish$(VERSION)" "$(BIN_INSTALL_DIR)/Wish"' 11520 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Wish.icns to $(BIN_INSTALL_DIR)/../Resources" && mkdir -p "$(BIN_INSTALL_DIR)/../Resources"' 11521 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && $(INSTALL_DATA) "$(MAC_OSX_DIR)/Tk.icns" "$(BIN_INSTALL_DIR)/../Resources/Wish.icns"' 11522 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Wish.sdef to $(BIN_INSTALL_DIR)/../Resources" && $(INSTALL_DATA) "$(MAC_OSX_DIR)/Wish.sdef" "$(BIN_INSTALL_DIR)/../Resources"' 11523 fi 11524 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Finalizing Tk.framework" && rm -f "$(LIB_INSTALL_DIR)/../Current" && ln -s "$(VERSION)" "$(LIB_INSTALL_DIR)/../Current" && for f in "$(LIB_FILE)" tkConfig.sh Resources Headers PrivateHeaders; do rm -f "$(LIB_INSTALL_DIR)/../../$$f" && ln -s "Versions/Current/$$f" "$(LIB_INSTALL_DIR)/../.."; done && f="$(STUB_LIB_FILE)" && rm -f "$(LIB_INSTALL_DIR)/../../$$f" && ln -s "Versions/$(VERSION)/$$f" "$(LIB_INSTALL_DIR)/../.."' 11525 # Don't use AC_DEFINE for the following as the framework version define 11526 # needs to go into the Makefile even when using autoheader, so that we 11527 # can pick up a potential make override of VERSION. Also, don't put this 11528 # into CFLAGS as it should not go into tkConfig.sh 11529 EXTRA_CC_SWITCHES="$EXTRA_CC_SWITCHES"' -DTK_FRAMEWORK_VERSION=\"$(VERSION)\"' 11530else 11531 if test $tk_aqua = yes; then 11532 EXTRA_INSTALL_BINARIES='@echo "Installing Images to $(LIB_INSTALL_DIR)/" && mkdir -p "$(LIB_INSTALL_DIR)" && for i in Tk.tiff Tk.icns; do $(INSTALL_DATA) "$(MAC_OSX_DIR)/$$i" "$(LIB_INSTALL_DIR)"; done' 11533 fi 11534 # libdir must be a fully qualified path and not ${exec_prefix}/lib 11535 eval libdir="$libdir" 11536 if test "${ac_cv_cygwin}" = "yes" -a "$SHARED_BUILD" = "1"; then 11537 TK_LIB_FLAG="-ltk`echo ${TK_VERSION} | tr -d .`" 11538 TK_BUILD_LIB_SPEC="-L\$(TOP_DIR)/win ${TK_LIB_FLAG}" 11539 else 11540 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then 11541 TK_LIB_FLAG="-ltk${TK_VERSION}" 11542 else 11543 TK_LIB_FLAG="-ltk`echo ${TK_VERSION} | tr -d .`" 11544 fi 11545 TK_BUILD_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_LIB_FLAG}" 11546 fi 11547 TK_LIB_SPEC="-L${libdir} ${TK_LIB_FLAG}" 11548fi 11549 11550#-------------------------------------------------------------------- 11551# The statements below define various symbols relating to Tk 11552# stub support. 11553#-------------------------------------------------------------------- 11554 11555# Replace ${VERSION} with contents of ${TK_VERSION} 11556eval "TK_STUB_LIB_FILE=libtkstub${TK_UNSHARED_LIB_SUFFIX}" 11557eval "TK_STUB_LIB_DIR=${libdir}" 11558 11559if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then 11560 TK_STUB_LIB_FLAG="-ltkstub${TK_VERSION}" 11561else 11562 TK_STUB_LIB_FLAG="-ltkstub`echo ${TK_VERSION} | tr -d .`" 11563fi 11564 11565TK_BUILD_STUB_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}" 11566TK_STUB_LIB_SPEC="-L${TK_STUB_LIB_DIR} ${TK_STUB_LIB_FLAG}" 11567TK_BUILD_STUB_LIB_PATH="`pwd`/${TK_STUB_LIB_FILE}" 11568TK_STUB_LIB_PATH="${TK_STUB_LIB_DIR}/${TK_STUB_LIB_FILE}" 11569 11570# Install time header dir can be set via --includedir 11571eval "TK_INCLUDE_SPEC=\"-I${includedir}\"" 11572 11573#------------------------------------------------------------------------ 11574# tkConfig.sh refers to this by a different name 11575#------------------------------------------------------------------------ 11576 11577TK_SHARED_BUILD=${SHARED_BUILD} 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 ac_config_files="$ac_config_files Makefile:../unix/Makefile.in tkConfig.sh:../unix/tkConfig.sh.in tk.pc:../unix/tk.pc.in" 11631 11632cat >confcache <<\_ACEOF 11633# This file is a shell script that caches the results of configure 11634# tests run on this system so they can be shared between configure 11635# scripts and configure runs, see configure's option --config-cache. 11636# It is not useful on other systems. If it contains results you don't 11637# want to keep, you may remove or edit it. 11638# 11639# config.status only pays attention to the cache file if you give it 11640# the --recheck option to rerun configure. 11641# 11642# `ac_cv_env_foo' variables (set or unset) will be overridden when 11643# loading this file, other *unset* `ac_cv_foo' will be assigned the 11644# following values. 11645 11646_ACEOF 11647 11648# The following way of writing the cache mishandles newlines in values, 11649# but we know of no workaround that is simple, portable, and efficient. 11650# So, don't put newlines in cache variables' values. 11651# Ultrix sh set writes to stderr and can't be redirected directly, 11652# and sets the high bit in the cache file unless we assign to the vars. 11653{ 11654 (set) 2>&1 | 11655 case `(ac_space=' '; set | grep ac_space) 2>&1` in 11656 *ac_space=\ *) 11657 # `set' does not quote correctly, so add quotes (double-quote 11658 # substitution turns \\\\ into \\, and sed turns \\ into \). 11659 sed -n \ 11660 "s/'/'\\\\''/g; 11661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11662 ;; 11663 *) 11664 # `set' quotes correctly as required by POSIX, so do not add quotes. 11665 sed -n \ 11666 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 11667 ;; 11668 esac; 11669} | 11670 sed ' 11671 t clear 11672 : clear 11673 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11674 t end 11675 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11676 : end' >>confcache 11677if diff $cache_file confcache >/dev/null 2>&1; then :; else 11678 if test -w $cache_file; then 11679 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 11680 cat confcache >$cache_file 11681 else 11682 echo "not updating unwritable cache $cache_file" 11683 fi 11684fi 11685rm -f confcache 11686 11687test "x$prefix" = xNONE && prefix=$ac_default_prefix 11688# Let make expand exec_prefix. 11689test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11690 11691# VPATH may cause trouble with some makes, so we remove $(srcdir), 11692# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11693# trailing colons and then remove the whole line if VPATH becomes empty 11694# (actually we leave an empty line to preserve line numbers). 11695if test "x$srcdir" = x.; then 11696 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11697s/:*\$(srcdir):*/:/; 11698s/:*\${srcdir}:*/:/; 11699s/:*@srcdir@:*/:/; 11700s/^\([^=]*=[ ]*\):*/\1/; 11701s/:*$//; 11702s/^[^=]*=[ ]*$//; 11703}' 11704fi 11705 11706# Transform confdefs.h into DEFS. 11707# Protect against shell expansion while executing Makefile rules. 11708# Protect against Makefile macro expansion. 11709# 11710# If the first sed substitution is executed (which looks for macros that 11711# take arguments), then we branch to the quote section. Otherwise, 11712# look for a macro that doesn't take arguments. 11713cat >confdef2opt.sed <<\_ACEOF 11714t clear 11715: clear 11716s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 11717t quote 11718s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 11719t quote 11720d 11721: quote 11722s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 11723s,\[,\\&,g 11724s,\],\\&,g 11725s,\$,$$,g 11726p 11727_ACEOF 11728# We use echo to avoid assuming a particular line-breaking character. 11729# The extra dot is to prevent the shell from consuming trailing 11730# line-breaks from the sub-command output. A line-break within 11731# single-quotes doesn't work because, if this script is created in a 11732# platform that uses two characters for line-breaks (e.g., DOS), tr 11733# would break. 11734ac_LF_and_DOT=`echo; echo .` 11735DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 11736rm -f confdef2opt.sed 11737 11738 11739ac_libobjs= 11740ac_ltlibobjs= 11741for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11742 # 1. Remove the extension, and $U if already installed. 11743 ac_i=`echo "$ac_i" | 11744 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 11745 # 2. Add them. 11746 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 11747 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 11748done 11749LIBOBJS=$ac_libobjs 11750 11751LTLIBOBJS=$ac_ltlibobjs 11752 11753 11754CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 11755 11756: ${CONFIG_STATUS=./config.status} 11757ac_clean_files_save=$ac_clean_files 11758ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11759{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11760echo "$as_me: creating $CONFIG_STATUS" >&6;} 11761cat >$CONFIG_STATUS <<_ACEOF 11762#! $SHELL 11763# Generated by $as_me. 11764# Run this file to recreate the current configuration. 11765# Compiler output produced by configure, useful for debugging 11766# configure, is in config.log if it exists. 11767 11768debug=false 11769ac_cs_recheck=false 11770ac_cs_silent=false 11771SHELL=\${CONFIG_SHELL-$SHELL} 11772_ACEOF 11773 11774cat >>$CONFIG_STATUS <<\_ACEOF 11775## --------------------- ## 11776## M4sh Initialization. ## 11777## --------------------- ## 11778 11779# Be Bourne compatible 11780if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11781 emulate sh 11782 NULLCMD=: 11783 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11784 # is contrary to our usage. Disable this feature. 11785 alias -g '${1+"$@"}'='"$@"' 11786elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 11787 set -o posix 11788fi 11789DUALCASE=1; export DUALCASE # for MKS sh 11790 11791# Support unset when possible. 11792if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11793 as_unset=unset 11794else 11795 as_unset=false 11796fi 11797 11798 11799# Work around bugs in pre-3.0 UWIN ksh. 11800$as_unset ENV MAIL MAILPATH 11801PS1='$ ' 11802PS2='> ' 11803PS4='+ ' 11804 11805# NLS nuisances. 11806for as_var in \ 11807 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11808 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11809 LC_TELEPHONE LC_TIME 11810do 11811 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11812 eval $as_var=C; export $as_var 11813 else 11814 $as_unset $as_var 11815 fi 11816done 11817 11818# Required to use basename. 11819if expr a : '\(a\)' >/dev/null 2>&1; then 11820 as_expr=expr 11821else 11822 as_expr=false 11823fi 11824 11825if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 11826 as_basename=basename 11827else 11828 as_basename=false 11829fi 11830 11831 11832# Name of the executable. 11833as_me=`$as_basename "$0" || 11834$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11835 X"$0" : 'X\(//\)$' \| \ 11836 X"$0" : 'X\(/\)$' \| \ 11837 . : '\(.\)' 2>/dev/null || 11838echo X/"$0" | 11839 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 11840 /^X\/\(\/\/\)$/{ s//\1/; q; } 11841 /^X\/\(\/\).*/{ s//\1/; q; } 11842 s/.*/./; q'` 11843 11844 11845# PATH needs CR, and LINENO needs CR and PATH. 11846# Avoid depending upon Character Ranges. 11847as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11848as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11849as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11850as_cr_digits='0123456789' 11851as_cr_alnum=$as_cr_Letters$as_cr_digits 11852 11853# The user is always right. 11854if test "${PATH_SEPARATOR+set}" != set; then 11855 echo "#! /bin/sh" >conf$$.sh 11856 echo "exit 0" >>conf$$.sh 11857 chmod +x conf$$.sh 11858 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11859 PATH_SEPARATOR=';' 11860 else 11861 PATH_SEPARATOR=: 11862 fi 11863 rm -f conf$$.sh 11864fi 11865 11866 11867 as_lineno_1=$LINENO 11868 as_lineno_2=$LINENO 11869 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11870 test "x$as_lineno_1" != "x$as_lineno_2" && 11871 test "x$as_lineno_3" = "x$as_lineno_2" || { 11872 # Find who we are. Look in the path if we contain no path at all 11873 # relative or not. 11874 case $0 in 11875 *[\\/]* ) as_myself=$0 ;; 11876 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11877for as_dir in $PATH 11878do 11879 IFS=$as_save_IFS 11880 test -z "$as_dir" && as_dir=. 11881 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11882done 11883 11884 ;; 11885 esac 11886 # We did not find ourselves, most probably we were run as `sh COMMAND' 11887 # in which case we are not to be found in the path. 11888 if test "x$as_myself" = x; then 11889 as_myself=$0 11890 fi 11891 if test ! -f "$as_myself"; then 11892 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 11893echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 11894 { (exit 1); exit 1; }; } 11895 fi 11896 case $CONFIG_SHELL in 11897 '') 11898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11899for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 11900do 11901 IFS=$as_save_IFS 11902 test -z "$as_dir" && as_dir=. 11903 for as_base in sh bash ksh sh5; do 11904 case $as_dir in 11905 /*) 11906 if ("$as_dir/$as_base" -c ' 11907 as_lineno_1=$LINENO 11908 as_lineno_2=$LINENO 11909 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11910 test "x$as_lineno_1" != "x$as_lineno_2" && 11911 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 11912 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 11913 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 11914 CONFIG_SHELL=$as_dir/$as_base 11915 export CONFIG_SHELL 11916 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 11917 fi;; 11918 esac 11919 done 11920done 11921;; 11922 esac 11923 11924 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11925 # uniformly replaced by the line number. The first 'sed' inserts a 11926 # line-number line before each line; the second 'sed' does the real 11927 # work. The second script uses 'N' to pair each line-number line 11928 # with the numbered line, and appends trailing '-' during 11929 # substitution so that $LINENO is not a special case at line end. 11930 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11931 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 11932 sed '=' <$as_myself | 11933 sed ' 11934 N 11935 s,$,-, 11936 : loop 11937 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 11938 t loop 11939 s,-$,, 11940 s,^['$as_cr_digits']*\n,, 11941 ' >$as_me.lineno && 11942 chmod +x $as_me.lineno || 11943 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 11944echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 11945 { (exit 1); exit 1; }; } 11946 11947 # Don't try to exec as it changes $[0], causing all sort of problems 11948 # (the dirname of $[0] is not the place where we might find the 11949 # original and so on. Autoconf is especially sensible to this). 11950 . ./$as_me.lineno 11951 # Exit status is that of the last command. 11952 exit 11953} 11954 11955 11956case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 11957 *c*,-n*) ECHO_N= ECHO_C=' 11958' ECHO_T=' ' ;; 11959 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 11960 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 11961esac 11962 11963if expr a : '\(a\)' >/dev/null 2>&1; then 11964 as_expr=expr 11965else 11966 as_expr=false 11967fi 11968 11969rm -f conf$$ conf$$.exe conf$$.file 11970echo >conf$$.file 11971if ln -s conf$$.file conf$$ 2>/dev/null; then 11972 # We could just check for DJGPP; but this test a) works b) is more generic 11973 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 11974 if test -f conf$$.exe; then 11975 # Don't use ln at all; we don't have any links 11976 as_ln_s='cp -p' 11977 else 11978 as_ln_s='ln -s' 11979 fi 11980elif ln conf$$.file conf$$ 2>/dev/null; then 11981 as_ln_s=ln 11982else 11983 as_ln_s='cp -p' 11984fi 11985rm -f conf$$ conf$$.exe conf$$.file 11986 11987if mkdir -p . 2>/dev/null; then 11988 as_mkdir_p=: 11989else 11990 test -d ./-p && rmdir ./-p 11991 as_mkdir_p=false 11992fi 11993 11994as_executable_p="test -f" 11995 11996# Sed expression to map a string onto a valid CPP name. 11997as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11998 11999# Sed expression to map a string onto a valid variable name. 12000as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12001 12002 12003# IFS 12004# We need space, tab and new line, in precisely that order. 12005as_nl=' 12006' 12007IFS=" $as_nl" 12008 12009# CDPATH. 12010$as_unset CDPATH 12011 12012exec 6>&1 12013 12014# Open the log real soon, to keep \$[0] and so on meaningful, and to 12015# report actual input values of CONFIG_FILES etc. instead of their 12016# values after options handling. Logging --version etc. is OK. 12017exec 5>>config.log 12018{ 12019 echo 12020 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12021## Running $as_me. ## 12022_ASBOX 12023} >&5 12024cat >&5 <<_CSEOF 12025 12026This file was extended by tk $as_me 8.5, which was 12027generated by GNU Autoconf 2.59. Invocation command line was 12028 12029 CONFIG_FILES = $CONFIG_FILES 12030 CONFIG_HEADERS = $CONFIG_HEADERS 12031 CONFIG_LINKS = $CONFIG_LINKS 12032 CONFIG_COMMANDS = $CONFIG_COMMANDS 12033 $ $0 $@ 12034 12035_CSEOF 12036echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 12037echo >&5 12038_ACEOF 12039 12040# Files that config.status was made for. 12041if test -n "$ac_config_files"; then 12042 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 12043fi 12044 12045if test -n "$ac_config_headers"; then 12046 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 12047fi 12048 12049if test -n "$ac_config_links"; then 12050 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 12051fi 12052 12053if test -n "$ac_config_commands"; then 12054 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 12055fi 12056 12057cat >>$CONFIG_STATUS <<\_ACEOF 12058 12059ac_cs_usage="\ 12060\`$as_me' instantiates files from templates according to the 12061current configuration. 12062 12063Usage: $0 [OPTIONS] [FILE]... 12064 12065 -h, --help print this help, then exit 12066 -V, --version print version number, then exit 12067 -q, --quiet do not print progress messages 12068 -d, --debug don't remove temporary files 12069 --recheck update $as_me by reconfiguring in the same conditions 12070 --file=FILE[:TEMPLATE] 12071 instantiate the configuration file FILE 12072 12073Configuration files: 12074$config_files 12075 12076Configuration commands: 12077$config_commands 12078 12079Report bugs to <bug-autoconf@gnu.org>." 12080_ACEOF 12081 12082cat >>$CONFIG_STATUS <<_ACEOF 12083ac_cs_version="\\ 12084tk config.status 8.5 12085configured by $0, generated by GNU Autoconf 2.59, 12086 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 12087 12088Copyright (C) 2003 Free Software Foundation, Inc. 12089This config.status script is free software; the Free Software Foundation 12090gives unlimited permission to copy, distribute and modify it." 12091srcdir=$srcdir 12092_ACEOF 12093 12094cat >>$CONFIG_STATUS <<\_ACEOF 12095# If no file are specified by the user, then we need to provide default 12096# value. By we need to know if files were specified by the user. 12097ac_need_defaults=: 12098while test $# != 0 12099do 12100 case $1 in 12101 --*=*) 12102 ac_option=`expr "x$1" : 'x\([^=]*\)='` 12103 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 12104 ac_shift=: 12105 ;; 12106 -*) 12107 ac_option=$1 12108 ac_optarg=$2 12109 ac_shift=shift 12110 ;; 12111 *) # This is not an option, so the user has probably given explicit 12112 # arguments. 12113 ac_option=$1 12114 ac_need_defaults=false;; 12115 esac 12116 12117 case $ac_option in 12118 # Handling of the options. 12119_ACEOF 12120cat >>$CONFIG_STATUS <<\_ACEOF 12121 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12122 ac_cs_recheck=: ;; 12123 --version | --vers* | -V ) 12124 echo "$ac_cs_version"; exit 0 ;; 12125 --he | --h) 12126 # Conflict between --help and --header 12127 { { echo "$as_me:$LINENO: error: ambiguous option: $1 12128Try \`$0 --help' for more information." >&5 12129echo "$as_me: error: ambiguous option: $1 12130Try \`$0 --help' for more information." >&2;} 12131 { (exit 1); exit 1; }; };; 12132 --help | --hel | -h ) 12133 echo "$ac_cs_usage"; exit 0 ;; 12134 --debug | --d* | -d ) 12135 debug=: ;; 12136 --file | --fil | --fi | --f ) 12137 $ac_shift 12138 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 12139 ac_need_defaults=false;; 12140 --header | --heade | --head | --hea ) 12141 $ac_shift 12142 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 12143 ac_need_defaults=false;; 12144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12145 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12146 ac_cs_silent=: ;; 12147 12148 # This is an error. 12149 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 12150Try \`$0 --help' for more information." >&5 12151echo "$as_me: error: unrecognized option: $1 12152Try \`$0 --help' for more information." >&2;} 12153 { (exit 1); exit 1; }; } ;; 12154 12155 *) ac_config_targets="$ac_config_targets $1" ;; 12156 12157 esac 12158 shift 12159done 12160 12161ac_configure_extra_args= 12162 12163if $ac_cs_silent; then 12164 exec 6>/dev/null 12165 ac_configure_extra_args="$ac_configure_extra_args --silent" 12166fi 12167 12168_ACEOF 12169cat >>$CONFIG_STATUS <<_ACEOF 12170if \$ac_cs_recheck; then 12171 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 12172 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12173fi 12174 12175_ACEOF 12176 12177cat >>$CONFIG_STATUS <<_ACEOF 12178# 12179# INIT-COMMANDS section. 12180# 12181 12182VERSION=${TK_VERSION} && tk_aqua=${tk_aqua} 12183 12184_ACEOF 12185 12186 12187 12188cat >>$CONFIG_STATUS <<\_ACEOF 12189for ac_config_target in $ac_config_targets 12190do 12191 case "$ac_config_target" in 12192 # Handling of arguments. 12193 "Tk-Info.plist" ) CONFIG_FILES="$CONFIG_FILES Tk-Info.plist:../macosx/Tk-Info.plist.in" ;; 12194 "Wish-Info.plist" ) CONFIG_FILES="$CONFIG_FILES Wish-Info.plist:../macosx/Wish-Info.plist.in" ;; 12195 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:../unix/Makefile.in" ;; 12196 "tkConfig.sh" ) CONFIG_FILES="$CONFIG_FILES tkConfig.sh:../unix/tkConfig.sh.in" ;; 12197 "tk.pc" ) CONFIG_FILES="$CONFIG_FILES tk.pc:../unix/tk.pc.in" ;; 12198 "Tk.framework" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Tk.framework" ;; 12199 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12200echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12201 { (exit 1); exit 1; }; };; 12202 esac 12203done 12204 12205# If the user did not use the arguments to specify the items to instantiate, 12206# then the envvar interface is used. Set only those that are not. 12207# We use the long form for the default assignment because of an extremely 12208# bizarre bug on SunOS 4.1.3. 12209if $ac_need_defaults; then 12210 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12211 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12212fi 12213 12214# Have a temporary directory for convenience. Make it in the build tree 12215# simply because there is no reason to put it here, and in addition, 12216# creating and moving files from /tmp can sometimes cause problems. 12217# Create a temporary directory, and hook for its removal unless debugging. 12218$debug || 12219{ 12220 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 12221 trap '{ (exit 1); exit 1; }' 1 2 13 15 12222} 12223 12224# Create a (secure) tmp directory for tmp files. 12225 12226{ 12227 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 12228 test -n "$tmp" && test -d "$tmp" 12229} || 12230{ 12231 tmp=./confstat$$-$RANDOM 12232 (umask 077 && mkdir $tmp) 12233} || 12234{ 12235 echo "$me: cannot create a temporary directory in ." >&2 12236 { (exit 1); exit 1; } 12237} 12238 12239_ACEOF 12240 12241cat >>$CONFIG_STATUS <<_ACEOF 12242 12243# 12244# CONFIG_FILES section. 12245# 12246 12247# No need to generate the scripts if there are no CONFIG_FILES. 12248# This happens for instance when ./config.status config.h 12249if test -n "\$CONFIG_FILES"; then 12250 # Protect against being on the right side of a sed subst in config.status. 12251 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 12252 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 12253s,@SHELL@,$SHELL,;t t 12254s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 12255s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 12256s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 12257s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 12258s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 12259s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 12260s,@exec_prefix@,$exec_prefix,;t t 12261s,@prefix@,$prefix,;t t 12262s,@program_transform_name@,$program_transform_name,;t t 12263s,@bindir@,$bindir,;t t 12264s,@sbindir@,$sbindir,;t t 12265s,@libexecdir@,$libexecdir,;t t 12266s,@datadir@,$datadir,;t t 12267s,@sysconfdir@,$sysconfdir,;t t 12268s,@sharedstatedir@,$sharedstatedir,;t t 12269s,@localstatedir@,$localstatedir,;t t 12270s,@libdir@,$libdir,;t t 12271s,@includedir@,$includedir,;t t 12272s,@oldincludedir@,$oldincludedir,;t t 12273s,@infodir@,$infodir,;t t 12274s,@mandir@,$mandir,;t t 12275s,@build_alias@,$build_alias,;t t 12276s,@host_alias@,$host_alias,;t t 12277s,@target_alias@,$target_alias,;t t 12278s,@DEFS@,$DEFS,;t t 12279s,@ECHO_C@,$ECHO_C,;t t 12280s,@ECHO_N@,$ECHO_N,;t t 12281s,@ECHO_T@,$ECHO_T,;t t 12282s,@LIBS@,$LIBS,;t t 12283s,@TCL_VERSION@,$TCL_VERSION,;t t 12284s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t 12285s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t 12286s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t 12287s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t 12288s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t 12289s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t 12290s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t 12291s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t 12292s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t 12293s,@TCLSH_PROG@,$TCLSH_PROG,;t t 12294s,@BUILD_TCLSH@,$BUILD_TCLSH,;t t 12295s,@MAN_FLAGS@,$MAN_FLAGS,;t t 12296s,@CC@,$CC,;t t 12297s,@CFLAGS@,$CFLAGS,;t t 12298s,@LDFLAGS@,$LDFLAGS,;t t 12299s,@CPPFLAGS@,$CPPFLAGS,;t t 12300s,@ac_ct_CC@,$ac_ct_CC,;t t 12301s,@EXEEXT@,$EXEEXT,;t t 12302s,@OBJEXT@,$OBJEXT,;t t 12303s,@CPP@,$CPP,;t t 12304s,@EGREP@,$EGREP,;t t 12305s,@TCL_THREADS@,$TCL_THREADS,;t t 12306s,@RANLIB@,$RANLIB,;t t 12307s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 12308s,@AR@,$AR,;t t 12309s,@ac_ct_AR@,$ac_ct_AR,;t t 12310s,@TCL_LIBS@,$TCL_LIBS,;t t 12311s,@DL_LIBS@,$DL_LIBS,;t t 12312s,@DL_OBJS@,$DL_OBJS,;t t 12313s,@PLAT_OBJS@,$PLAT_OBJS,;t t 12314s,@PLAT_SRCS@,$PLAT_SRCS,;t t 12315s,@LDAIX_SRC@,$LDAIX_SRC,;t t 12316s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t 12317s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t 12318s,@CFLAGS_WARNING@,$CFLAGS_WARNING,;t t 12319s,@LDFLAGS_DEBUG@,$LDFLAGS_DEBUG,;t t 12320s,@LDFLAGS_OPTIMIZE@,$LDFLAGS_OPTIMIZE,;t t 12321s,@CC_SEARCH_FLAGS@,$CC_SEARCH_FLAGS,;t t 12322s,@LD_SEARCH_FLAGS@,$LD_SEARCH_FLAGS,;t t 12323s,@STLIB_LD@,$STLIB_LD,;t t 12324s,@SHLIB_LD@,$SHLIB_LD,;t t 12325s,@TCL_SHLIB_LD_EXTRAS@,$TCL_SHLIB_LD_EXTRAS,;t t 12326s,@TK_SHLIB_LD_EXTRAS@,$TK_SHLIB_LD_EXTRAS,;t t 12327s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t 12328s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t 12329s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t 12330s,@MAKE_LIB@,$MAKE_LIB,;t t 12331s,@MAKE_STUB_LIB@,$MAKE_STUB_LIB,;t t 12332s,@INSTALL_LIB@,$INSTALL_LIB,;t t 12333s,@DLL_INSTALL_DIR@,$DLL_INSTALL_DIR,;t t 12334s,@INSTALL_STUB_LIB@,$INSTALL_STUB_LIB,;t t 12335s,@CFLAGS_DEFAULT@,$CFLAGS_DEFAULT,;t t 12336s,@LDFLAGS_DEFAULT@,$LDFLAGS_DEFAULT,;t t 12337s,@LIBOBJS@,$LIBOBJS,;t t 12338s,@XFT_CFLAGS@,$XFT_CFLAGS,;t t 12339s,@XFT_LIBS@,$XFT_LIBS,;t t 12340s,@UNIX_FONT_OBJS@,$UNIX_FONT_OBJS,;t t 12341s,@TK_VERSION@,$TK_VERSION,;t t 12342s,@TK_MAJOR_VERSION@,$TK_MAJOR_VERSION,;t t 12343s,@TK_MINOR_VERSION@,$TK_MINOR_VERSION,;t t 12344s,@TK_PATCH_LEVEL@,$TK_PATCH_LEVEL,;t t 12345s,@TK_YEAR@,$TK_YEAR,;t t 12346s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t 12347s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t 12348s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t 12349s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t 12350s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t 12351s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t 12352s,@TK_STUB_LIB_PATH@,$TK_STUB_LIB_PATH,;t t 12353s,@TK_INCLUDE_SPEC@,$TK_INCLUDE_SPEC,;t t 12354s,@TK_BUILD_STUB_LIB_SPEC@,$TK_BUILD_STUB_LIB_SPEC,;t t 12355s,@TK_BUILD_STUB_LIB_PATH@,$TK_BUILD_STUB_LIB_PATH,;t t 12356s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t 12357s,@TK_SHARED_BUILD@,$TK_SHARED_BUILD,;t t 12358s,@LD_LIBRARY_PATH_VAR@,$LD_LIBRARY_PATH_VAR,;t t 12359s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t 12360s,@TCL_STUB_FLAGS@,$TCL_STUB_FLAGS,;t t 12361s,@XINCLUDES@,$XINCLUDES,;t t 12362s,@XLIBSW@,$XLIBSW,;t t 12363s,@LOCALES@,$LOCALES,;t t 12364s,@TK_WINDOWINGSYSTEM@,$TK_WINDOWINGSYSTEM,;t t 12365s,@TK_PKG_DIR@,$TK_PKG_DIR,;t t 12366s,@TK_LIBRARY@,$TK_LIBRARY,;t t 12367s,@LIB_RUNTIME_DIR@,$LIB_RUNTIME_DIR,;t t 12368s,@PRIVATE_INCLUDE_DIR@,$PRIVATE_INCLUDE_DIR,;t t 12369s,@HTML_DIR@,$HTML_DIR,;t t 12370s,@EXTRA_CC_SWITCHES@,$EXTRA_CC_SWITCHES,;t t 12371s,@EXTRA_APP_CC_SWITCHES@,$EXTRA_APP_CC_SWITCHES,;t t 12372s,@EXTRA_INSTALL@,$EXTRA_INSTALL,;t t 12373s,@EXTRA_INSTALL_BINARIES@,$EXTRA_INSTALL_BINARIES,;t t 12374s,@EXTRA_BUILD_HTML@,$EXTRA_BUILD_HTML,;t t 12375s,@EXTRA_WISH_LIBS@,$EXTRA_WISH_LIBS,;t t 12376s,@CFBUNDLELOCALIZATIONS@,$CFBUNDLELOCALIZATIONS,;t t 12377s,@TK_RSRC_FILE@,$TK_RSRC_FILE,;t t 12378s,@WISH_RSRC_FILE@,$WISH_RSRC_FILE,;t t 12379s,@LIB_RSRC_FILE@,$LIB_RSRC_FILE,;t t 12380s,@APP_RSRC_FILE@,$APP_RSRC_FILE,;t t 12381s,@REZ@,$REZ,;t t 12382s,@REZ_FLAGS@,$REZ_FLAGS,;t t 12383s,@LTLIBOBJS@,$LTLIBOBJS,;t t 12384CEOF 12385 12386_ACEOF 12387 12388 cat >>$CONFIG_STATUS <<\_ACEOF 12389 # Split the substitutions into bite-sized pieces for seds with 12390 # small command number limits, like on Digital OSF/1 and HP-UX. 12391 ac_max_sed_lines=48 12392 ac_sed_frag=1 # Number of current file. 12393 ac_beg=1 # First line for current file. 12394 ac_end=$ac_max_sed_lines # Line after last line for current file. 12395 ac_more_lines=: 12396 ac_sed_cmds= 12397 while $ac_more_lines; do 12398 if test $ac_beg -gt 1; then 12399 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12400 else 12401 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12402 fi 12403 if test ! -s $tmp/subs.frag; then 12404 ac_more_lines=false 12405 else 12406 # The purpose of the label and of the branching condition is to 12407 # speed up the sed processing (if there are no `@' at all, there 12408 # is no need to browse any of the substitutions). 12409 # These are the two extra sed commands mentioned above. 12410 (echo ':t 12411 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 12412 if test -z "$ac_sed_cmds"; then 12413 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 12414 else 12415 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 12416 fi 12417 ac_sed_frag=`expr $ac_sed_frag + 1` 12418 ac_beg=$ac_end 12419 ac_end=`expr $ac_end + $ac_max_sed_lines` 12420 fi 12421 done 12422 if test -z "$ac_sed_cmds"; then 12423 ac_sed_cmds=cat 12424 fi 12425fi # test -n "$CONFIG_FILES" 12426 12427_ACEOF 12428cat >>$CONFIG_STATUS <<\_ACEOF 12429for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 12430 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12431 case $ac_file in 12432 - | *:- | *:-:* ) # input from stdin 12433 cat >$tmp/stdin 12434 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12435 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12436 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12437 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12438 * ) ac_file_in=$ac_file.in ;; 12439 esac 12440 12441 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 12442 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12443$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12444 X"$ac_file" : 'X\(//\)[^/]' \| \ 12445 X"$ac_file" : 'X\(//\)$' \| \ 12446 X"$ac_file" : 'X\(/\)' \| \ 12447 . : '\(.\)' 2>/dev/null || 12448echo X"$ac_file" | 12449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12450 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12451 /^X\(\/\/\)$/{ s//\1/; q; } 12452 /^X\(\/\).*/{ s//\1/; q; } 12453 s/.*/./; q'` 12454 { if $as_mkdir_p; then 12455 mkdir -p "$ac_dir" 12456 else 12457 as_dir="$ac_dir" 12458 as_dirs= 12459 while test ! -d "$as_dir"; do 12460 as_dirs="$as_dir $as_dirs" 12461 as_dir=`(dirname "$as_dir") 2>/dev/null || 12462$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12463 X"$as_dir" : 'X\(//\)[^/]' \| \ 12464 X"$as_dir" : 'X\(//\)$' \| \ 12465 X"$as_dir" : 'X\(/\)' \| \ 12466 . : '\(.\)' 2>/dev/null || 12467echo X"$as_dir" | 12468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12469 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12470 /^X\(\/\/\)$/{ s//\1/; q; } 12471 /^X\(\/\).*/{ s//\1/; q; } 12472 s/.*/./; q'` 12473 done 12474 test ! -n "$as_dirs" || mkdir $as_dirs 12475 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12476echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12477 { (exit 1); exit 1; }; }; } 12478 12479 ac_builddir=. 12480 12481if test "$ac_dir" != .; then 12482 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12483 # A "../" for each directory in $ac_dir_suffix. 12484 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12485else 12486 ac_dir_suffix= ac_top_builddir= 12487fi 12488 12489case $srcdir in 12490 .) # No --srcdir option. We are building in place. 12491 ac_srcdir=. 12492 if test -z "$ac_top_builddir"; then 12493 ac_top_srcdir=. 12494 else 12495 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12496 fi ;; 12497 [\\/]* | ?:[\\/]* ) # Absolute path. 12498 ac_srcdir=$srcdir$ac_dir_suffix; 12499 ac_top_srcdir=$srcdir ;; 12500 *) # Relative path. 12501 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12502 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12503esac 12504 12505# Do not use `cd foo && pwd` to compute absolute paths, because 12506# the directories may not exist. 12507case `pwd` in 12508.) ac_abs_builddir="$ac_dir";; 12509*) 12510 case "$ac_dir" in 12511 .) ac_abs_builddir=`pwd`;; 12512 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 12513 *) ac_abs_builddir=`pwd`/"$ac_dir";; 12514 esac;; 12515esac 12516case $ac_abs_builddir in 12517.) ac_abs_top_builddir=${ac_top_builddir}.;; 12518*) 12519 case ${ac_top_builddir}. in 12520 .) ac_abs_top_builddir=$ac_abs_builddir;; 12521 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 12522 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 12523 esac;; 12524esac 12525case $ac_abs_builddir in 12526.) ac_abs_srcdir=$ac_srcdir;; 12527*) 12528 case $ac_srcdir in 12529 .) ac_abs_srcdir=$ac_abs_builddir;; 12530 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 12531 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 12532 esac;; 12533esac 12534case $ac_abs_builddir in 12535.) ac_abs_top_srcdir=$ac_top_srcdir;; 12536*) 12537 case $ac_top_srcdir in 12538 .) ac_abs_top_srcdir=$ac_abs_builddir;; 12539 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 12540 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 12541 esac;; 12542esac 12543 12544 12545 12546 if test x"$ac_file" != x-; then 12547 { echo "$as_me:$LINENO: creating $ac_file" >&5 12548echo "$as_me: creating $ac_file" >&6;} 12549 rm -f "$ac_file" 12550 fi 12551 # Let's still pretend it is `configure' which instantiates (i.e., don't 12552 # use $as_me), people would be surprised to read: 12553 # /* config.h. Generated by config.status. */ 12554 if test x"$ac_file" = x-; then 12555 configure_input= 12556 else 12557 configure_input="$ac_file. " 12558 fi 12559 configure_input=$configure_input"Generated from `echo $ac_file_in | 12560 sed 's,.*/,,'` by configure." 12561 12562 # First look for the input files in the build tree, otherwise in the 12563 # src tree. 12564 ac_file_inputs=`IFS=: 12565 for f in $ac_file_in; do 12566 case $f in 12567 -) echo $tmp/stdin ;; 12568 [\\/$]*) 12569 # Absolute (can't be DOS-style, as IFS=:) 12570 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12571echo "$as_me: error: cannot find input file: $f" >&2;} 12572 { (exit 1); exit 1; }; } 12573 echo "$f";; 12574 *) # Relative 12575 if test -f "$f"; then 12576 # Build tree 12577 echo "$f" 12578 elif test -f "$srcdir/$f"; then 12579 # Source tree 12580 echo "$srcdir/$f" 12581 else 12582 # /dev/null tree 12583 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12584echo "$as_me: error: cannot find input file: $f" >&2;} 12585 { (exit 1); exit 1; }; } 12586 fi;; 12587 esac 12588 done` || { (exit 1); exit 1; } 12589_ACEOF 12590cat >>$CONFIG_STATUS <<_ACEOF 12591 sed "$ac_vpsub 12592$extrasub 12593_ACEOF 12594cat >>$CONFIG_STATUS <<\_ACEOF 12595:t 12596/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12597s,@configure_input@,$configure_input,;t t 12598s,@srcdir@,$ac_srcdir,;t t 12599s,@abs_srcdir@,$ac_abs_srcdir,;t t 12600s,@top_srcdir@,$ac_top_srcdir,;t t 12601s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 12602s,@builddir@,$ac_builddir,;t t 12603s,@abs_builddir@,$ac_abs_builddir,;t t 12604s,@top_builddir@,$ac_top_builddir,;t t 12605s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 12606" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 12607 rm -f $tmp/stdin 12608 if test x"$ac_file" != x-; then 12609 mv $tmp/out $ac_file 12610 else 12611 cat $tmp/out 12612 rm -f $tmp/out 12613 fi 12614 12615done 12616_ACEOF 12617cat >>$CONFIG_STATUS <<\_ACEOF 12618 12619# 12620# CONFIG_COMMANDS section. 12621# 12622for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 12623 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 12624 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 12625 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 12626$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12627 X"$ac_dest" : 'X\(//\)[^/]' \| \ 12628 X"$ac_dest" : 'X\(//\)$' \| \ 12629 X"$ac_dest" : 'X\(/\)' \| \ 12630 . : '\(.\)' 2>/dev/null || 12631echo X"$ac_dest" | 12632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12633 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12634 /^X\(\/\/\)$/{ s//\1/; q; } 12635 /^X\(\/\).*/{ s//\1/; q; } 12636 s/.*/./; q'` 12637 { if $as_mkdir_p; then 12638 mkdir -p "$ac_dir" 12639 else 12640 as_dir="$ac_dir" 12641 as_dirs= 12642 while test ! -d "$as_dir"; do 12643 as_dirs="$as_dir $as_dirs" 12644 as_dir=`(dirname "$as_dir") 2>/dev/null || 12645$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12646 X"$as_dir" : 'X\(//\)[^/]' \| \ 12647 X"$as_dir" : 'X\(//\)$' \| \ 12648 X"$as_dir" : 'X\(/\)' \| \ 12649 . : '\(.\)' 2>/dev/null || 12650echo X"$as_dir" | 12651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12652 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12653 /^X\(\/\/\)$/{ s//\1/; q; } 12654 /^X\(\/\).*/{ s//\1/; q; } 12655 s/.*/./; q'` 12656 done 12657 test ! -n "$as_dirs" || mkdir $as_dirs 12658 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12659echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12660 { (exit 1); exit 1; }; }; } 12661 12662 ac_builddir=. 12663 12664if test "$ac_dir" != .; then 12665 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12666 # A "../" for each directory in $ac_dir_suffix. 12667 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12668else 12669 ac_dir_suffix= ac_top_builddir= 12670fi 12671 12672case $srcdir in 12673 .) # No --srcdir option. We are building in place. 12674 ac_srcdir=. 12675 if test -z "$ac_top_builddir"; then 12676 ac_top_srcdir=. 12677 else 12678 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12679 fi ;; 12680 [\\/]* | ?:[\\/]* ) # Absolute path. 12681 ac_srcdir=$srcdir$ac_dir_suffix; 12682 ac_top_srcdir=$srcdir ;; 12683 *) # Relative path. 12684 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12685 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12686esac 12687 12688# Do not use `cd foo && pwd` to compute absolute paths, because 12689# the directories may not exist. 12690case `pwd` in 12691.) ac_abs_builddir="$ac_dir";; 12692*) 12693 case "$ac_dir" in 12694 .) ac_abs_builddir=`pwd`;; 12695 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 12696 *) ac_abs_builddir=`pwd`/"$ac_dir";; 12697 esac;; 12698esac 12699case $ac_abs_builddir in 12700.) ac_abs_top_builddir=${ac_top_builddir}.;; 12701*) 12702 case ${ac_top_builddir}. in 12703 .) ac_abs_top_builddir=$ac_abs_builddir;; 12704 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 12705 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 12706 esac;; 12707esac 12708case $ac_abs_builddir in 12709.) ac_abs_srcdir=$ac_srcdir;; 12710*) 12711 case $ac_srcdir in 12712 .) ac_abs_srcdir=$ac_abs_builddir;; 12713 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 12714 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 12715 esac;; 12716esac 12717case $ac_abs_builddir in 12718.) ac_abs_top_srcdir=$ac_top_srcdir;; 12719*) 12720 case $ac_top_srcdir in 12721 .) ac_abs_top_srcdir=$ac_abs_builddir;; 12722 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 12723 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 12724 esac;; 12725esac 12726 12727 12728 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 12729echo "$as_me: executing $ac_dest commands" >&6;} 12730 case $ac_dest in 12731 Tk.framework ) n=Tk && 12732 f=$n.framework && v=Versions/$VERSION && 12733 rm -rf $f && mkdir -p $f/$v/Resources && 12734 ln -s $v/$n $v/Resources $f && ln -s ../../../$n $f/$v && 12735 ln -s ../../../../$n-Info.plist $f/$v/Resources/Info.plist && 12736 if test $tk_aqua = yes; then ln -s ../../../../$n.rsrc $f/$v/Resources; fi && 12737 unset n f v 12738 ;; 12739 esac 12740done 12741_ACEOF 12742 12743cat >>$CONFIG_STATUS <<\_ACEOF 12744 12745{ (exit 0); exit 0; } 12746_ACEOF 12747chmod +x $CONFIG_STATUS 12748ac_clean_files=$ac_clean_files_save 12749 12750 12751# configure is writing to config.log, and then calls config.status. 12752# config.status does its own redirection, appending to config.log. 12753# Unfortunately, on DOS this fails, as config.log is still kept open 12754# by configure, so config.status won't be able to write to it; its 12755# output is simply discarded. So we exec the FD to /dev/null, 12756# effectively closing config.log, so it can be properly (re)opened and 12757# appended to by config.status. When coming back to configure, we 12758# need to make the FD available again. 12759if test "$no_create" != yes; then 12760 ac_cs_success=: 12761 ac_config_status_args= 12762 test "$silent" = yes && 12763 ac_config_status_args="$ac_config_status_args --quiet" 12764 exec 5>/dev/null 12765 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12766 exec 5>>config.log 12767 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12768 # would make configure fail if this is the last instruction. 12769 $ac_cs_success || { (exit 1); exit 1; } 12770fi 12771 12772 12773