1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.58 for tkpng 0.9. 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='tkpng' 269PACKAGE_TARNAME='tkpng' 270PACKAGE_VERSION='0.9' 271PACKAGE_STRING='tkpng 0.9' 272PACKAGE_BUGREPORT='' 273 274# Factoring default headers for most tests. 275ac_includes_default="\ 276#include <stdio.h> 277#if HAVE_SYS_TYPES_H 278# include <sys/types.h> 279#endif 280#if HAVE_SYS_STAT_H 281# include <sys/stat.h> 282#endif 283#if STDC_HEADERS 284# include <stdlib.h> 285# include <stddef.h> 286#else 287# if HAVE_STDLIB_H 288# include <stdlib.h> 289# endif 290#endif 291#if HAVE_STRING_H 292# if !STDC_HEADERS && HAVE_MEMORY_H 293# include <memory.h> 294# endif 295# include <string.h> 296#endif 297#if HAVE_STRINGS_H 298# include <strings.h> 299#endif 300#if HAVE_INTTYPES_H 301# include <inttypes.h> 302#else 303# if HAVE_STDINT_H 304# include <stdint.h> 305# endif 306#endif 307#if HAVE_UNISTD_H 308# include <unistd.h> 309#endif" 310 311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CYGPATH EXEEXT PKG_LIB_FILE PKG_STUB_LIB_FILE PKG_STUB_SOURCES PKG_STUB_OBJECTS PKG_TCL_SOURCES PKG_HEADERS PKG_INCLUDES PKG_LIBS PKG_CFLAGS TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_LIBS TCL_DEFS TCL_EXTRA_CFLAGS TCL_LD_FLAGS TCL_SHLIB_LD_LIBS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_LIBS TK_XINCLUDES CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE RANLIB ac_ct_RANLIB EGREP MATH_LIBS PKG_SOURCES PKG_OBJECTS CLEANFILES TCL_INCLUDES TK_INCLUDES TCL_THREADS SHARED_BUILD AR CELIB_DIR LIBOBJS DL_LIBS CFLAGS_DEBUG CFLAGS_OPTIMIZE CFLAGS_WARNING STLIB_LD SHLIB_LD SHLIB_LD_LIBS SHLIB_CFLAGS LD_LIBRARY_PATH_VAR CFLAGS_DEFAULT LDFLAGS_DEFAULT TCL_DBGX MAKE_LIB MAKE_SHARED_LIB MAKE_STATIC_LIB MAKE_STUB_LIB RANLIB_STUB TCLSH_PROG WISH_PROG LTLIBOBJS' 312ac_subst_files='' 313 314# Initialize some variables set by options. 315ac_init_help= 316ac_init_version=false 317# The variables have the same names as the options, with 318# dashes changed to underlines. 319cache_file=/dev/null 320exec_prefix=NONE 321no_create= 322no_recursion= 323prefix=NONE 324program_prefix=NONE 325program_suffix=NONE 326program_transform_name=s,x,x, 327silent= 328site= 329srcdir= 330verbose= 331x_includes=NONE 332x_libraries=NONE 333 334# Installation directory options. 335# These are left unexpanded so users can "make install exec_prefix=/foo" 336# and all the variables that are supposed to be based on exec_prefix 337# by default will actually change. 338# Use braces instead of parens because sh, perl, etc. also accept them. 339bindir='${exec_prefix}/bin' 340sbindir='${exec_prefix}/sbin' 341libexecdir='${exec_prefix}/libexec' 342datadir='${prefix}/share' 343sysconfdir='${prefix}/etc' 344sharedstatedir='${prefix}/com' 345localstatedir='${prefix}/var' 346libdir='${exec_prefix}/lib' 347includedir='${prefix}/include' 348oldincludedir='/usr/include' 349infodir='${prefix}/info' 350mandir='${prefix}/man' 351 352ac_prev= 353for ac_option 354do 355 # If the previous option needs an argument, assign it. 356 if test -n "$ac_prev"; then 357 eval "$ac_prev=\$ac_option" 358 ac_prev= 359 continue 360 fi 361 362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 363 364 # Accept the important Cygnus configure options, so we can diagnose typos. 365 366 case $ac_option in 367 368 -bindir | --bindir | --bindi | --bind | --bin | --bi) 369 ac_prev=bindir ;; 370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 371 bindir=$ac_optarg ;; 372 373 -build | --build | --buil | --bui | --bu) 374 ac_prev=build_alias ;; 375 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 376 build_alias=$ac_optarg ;; 377 378 -cache-file | --cache-file | --cache-fil | --cache-fi \ 379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 380 ac_prev=cache_file ;; 381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 383 cache_file=$ac_optarg ;; 384 385 --config-cache | -C) 386 cache_file=config.cache ;; 387 388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 389 ac_prev=datadir ;; 390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 391 | --da=*) 392 datadir=$ac_optarg ;; 393 394 -disable-* | --disable-*) 395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 396 # Reject names that are not valid shell variable names. 397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 399 { (exit 1); exit 1; }; } 400 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 401 eval "enable_$ac_feature=no" ;; 402 403 -enable-* | --enable-*) 404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 405 # Reject names that are not valid shell variable names. 406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 408 { (exit 1); exit 1; }; } 409 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 410 case $ac_option in 411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 412 *) ac_optarg=yes ;; 413 esac 414 eval "enable_$ac_feature='$ac_optarg'" ;; 415 416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 418 | --exec | --exe | --ex) 419 ac_prev=exec_prefix ;; 420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 422 | --exec=* | --exe=* | --ex=*) 423 exec_prefix=$ac_optarg ;; 424 425 -gas | --gas | --ga | --g) 426 # Obsolete; use --with-gas. 427 with_gas=yes ;; 428 429 -help | --help | --hel | --he | -h) 430 ac_init_help=long ;; 431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 432 ac_init_help=recursive ;; 433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 434 ac_init_help=short ;; 435 436 -host | --host | --hos | --ho) 437 ac_prev=host_alias ;; 438 -host=* | --host=* | --hos=* | --ho=*) 439 host_alias=$ac_optarg ;; 440 441 -includedir | --includedir | --includedi | --included | --include \ 442 | --includ | --inclu | --incl | --inc) 443 ac_prev=includedir ;; 444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 445 | --includ=* | --inclu=* | --incl=* | --inc=*) 446 includedir=$ac_optarg ;; 447 448 -infodir | --infodir | --infodi | --infod | --info | --inf) 449 ac_prev=infodir ;; 450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 451 infodir=$ac_optarg ;; 452 453 -libdir | --libdir | --libdi | --libd) 454 ac_prev=libdir ;; 455 -libdir=* | --libdir=* | --libdi=* | --libd=*) 456 libdir=$ac_optarg ;; 457 458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 459 | --libexe | --libex | --libe) 460 ac_prev=libexecdir ;; 461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 462 | --libexe=* | --libex=* | --libe=*) 463 libexecdir=$ac_optarg ;; 464 465 -localstatedir | --localstatedir | --localstatedi | --localstated \ 466 | --localstate | --localstat | --localsta | --localst \ 467 | --locals | --local | --loca | --loc | --lo) 468 ac_prev=localstatedir ;; 469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 472 localstatedir=$ac_optarg ;; 473 474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 475 ac_prev=mandir ;; 476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 477 mandir=$ac_optarg ;; 478 479 -nfp | --nfp | --nf) 480 # Obsolete; use --without-fp. 481 with_fp=no ;; 482 483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 484 | --no-cr | --no-c | -n) 485 no_create=yes ;; 486 487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 489 no_recursion=yes ;; 490 491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 493 | --oldin | --oldi | --old | --ol | --o) 494 ac_prev=oldincludedir ;; 495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 498 oldincludedir=$ac_optarg ;; 499 500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 501 ac_prev=prefix ;; 502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 503 prefix=$ac_optarg ;; 504 505 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 506 | --program-pre | --program-pr | --program-p) 507 ac_prev=program_prefix ;; 508 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 510 program_prefix=$ac_optarg ;; 511 512 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 513 | --program-suf | --program-su | --program-s) 514 ac_prev=program_suffix ;; 515 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 517 program_suffix=$ac_optarg ;; 518 519 -program-transform-name | --program-transform-name \ 520 | --program-transform-nam | --program-transform-na \ 521 | --program-transform-n | --program-transform- \ 522 | --program-transform | --program-transfor \ 523 | --program-transfo | --program-transf \ 524 | --program-trans | --program-tran \ 525 | --progr-tra | --program-tr | --program-t) 526 ac_prev=program_transform_name ;; 527 -program-transform-name=* | --program-transform-name=* \ 528 | --program-transform-nam=* | --program-transform-na=* \ 529 | --program-transform-n=* | --program-transform-=* \ 530 | --program-transform=* | --program-transfor=* \ 531 | --program-transfo=* | --program-transf=* \ 532 | --program-trans=* | --program-tran=* \ 533 | --progr-tra=* | --program-tr=* | --program-t=*) 534 program_transform_name=$ac_optarg ;; 535 536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 537 | -silent | --silent | --silen | --sile | --sil) 538 silent=yes ;; 539 540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 541 ac_prev=sbindir ;; 542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 543 | --sbi=* | --sb=*) 544 sbindir=$ac_optarg ;; 545 546 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 548 | --sharedst | --shareds | --shared | --share | --shar \ 549 | --sha | --sh) 550 ac_prev=sharedstatedir ;; 551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 554 | --sha=* | --sh=*) 555 sharedstatedir=$ac_optarg ;; 556 557 -site | --site | --sit) 558 ac_prev=site ;; 559 -site=* | --site=* | --sit=*) 560 site=$ac_optarg ;; 561 562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 563 ac_prev=srcdir ;; 564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 565 srcdir=$ac_optarg ;; 566 567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 568 | --syscon | --sysco | --sysc | --sys | --sy) 569 ac_prev=sysconfdir ;; 570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 572 sysconfdir=$ac_optarg ;; 573 574 -target | --target | --targe | --targ | --tar | --ta | --t) 575 ac_prev=target_alias ;; 576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 577 target_alias=$ac_optarg ;; 578 579 -v | -verbose | --verbose | --verbos | --verbo | --verb) 580 verbose=yes ;; 581 582 -version | --version | --versio | --versi | --vers | -V) 583 ac_init_version=: ;; 584 585 -with-* | --with-*) 586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 587 # Reject names that are not valid shell variable names. 588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 589 { echo "$as_me: error: invalid package name: $ac_package" >&2 590 { (exit 1); exit 1; }; } 591 ac_package=`echo $ac_package| sed 's/-/_/g'` 592 case $ac_option in 593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 594 *) ac_optarg=yes ;; 595 esac 596 eval "with_$ac_package='$ac_optarg'" ;; 597 598 -without-* | --without-*) 599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 600 # Reject names that are not valid shell variable names. 601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 602 { echo "$as_me: error: invalid package name: $ac_package" >&2 603 { (exit 1); exit 1; }; } 604 ac_package=`echo $ac_package | sed 's/-/_/g'` 605 eval "with_$ac_package=no" ;; 606 607 --x) 608 # Obsolete; use --with-x. 609 with_x=yes ;; 610 611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 612 | --x-incl | --x-inc | --x-in | --x-i) 613 ac_prev=x_includes ;; 614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 616 x_includes=$ac_optarg ;; 617 618 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 620 ac_prev=x_libraries ;; 621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 623 x_libraries=$ac_optarg ;; 624 625 -*) { echo "$as_me: error: unrecognized option: $ac_option 626Try \`$0 --help' for more information." >&2 627 { (exit 1); exit 1; }; } 628 ;; 629 630 *=*) 631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 632 # Reject names that are not valid shell variable names. 633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 635 { (exit 1); exit 1; }; } 636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 637 eval "$ac_envvar='$ac_optarg'" 638 export $ac_envvar ;; 639 640 *) 641 # FIXME: should be removed in autoconf 3.0. 642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 646 ;; 647 648 esac 649done 650 651if test -n "$ac_prev"; then 652 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 653 { echo "$as_me: error: missing argument to $ac_option" >&2 654 { (exit 1); exit 1; }; } 655fi 656 657# Be sure to have absolute paths. 658for ac_var in exec_prefix prefix 659do 660 eval ac_val=$`echo $ac_var` 661 case $ac_val in 662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 664 { (exit 1); exit 1; }; };; 665 esac 666done 667 668# Be sure to have absolute paths. 669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 670 localstatedir libdir includedir oldincludedir infodir mandir 671do 672 eval ac_val=$`echo $ac_var` 673 case $ac_val in 674 [\\/$]* | ?:[\\/]* ) ;; 675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 676 { (exit 1); exit 1; }; };; 677 esac 678done 679 680# There might be people who depend on the old broken behavior: `$host' 681# used to hold the argument of --host etc. 682# FIXME: To remove some day. 683build=$build_alias 684host=$host_alias 685target=$target_alias 686 687# FIXME: To remove some day. 688if test "x$host_alias" != x; then 689 if test "x$build_alias" = x; then 690 cross_compiling=maybe 691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 692 If a cross compiler is detected then cross compile mode will be used." >&2 693 elif test "x$build_alias" != "x$host_alias"; then 694 cross_compiling=yes 695 fi 696fi 697 698ac_tool_prefix= 699test -n "$host_alias" && ac_tool_prefix=$host_alias- 700 701test "$silent" = yes && exec 6>/dev/null 702 703 704# Find the source files, if location was not specified. 705if test -z "$srcdir"; then 706 ac_srcdir_defaulted=yes 707 # Try the directory containing this script, then its parent. 708 ac_confdir=`(dirname "$0") 2>/dev/null || 709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 710 X"$0" : 'X\(//\)[^/]' \| \ 711 X"$0" : 'X\(//\)$' \| \ 712 X"$0" : 'X\(/\)' \| \ 713 . : '\(.\)' 2>/dev/null || 714echo X"$0" | 715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 716 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 717 /^X\(\/\/\)$/{ s//\1/; q; } 718 /^X\(\/\).*/{ s//\1/; q; } 719 s/.*/./; q'` 720 srcdir=$ac_confdir 721 if test ! -r $srcdir/$ac_unique_file; then 722 srcdir=.. 723 fi 724else 725 ac_srcdir_defaulted=no 726fi 727if test ! -r $srcdir/$ac_unique_file; then 728 if test "$ac_srcdir_defaulted" = yes; then 729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 730 { (exit 1); exit 1; }; } 731 else 732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 733 { (exit 1); exit 1; }; } 734 fi 735fi 736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 738 { (exit 1); exit 1; }; } 739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 740ac_env_build_alias_set=${build_alias+set} 741ac_env_build_alias_value=$build_alias 742ac_cv_env_build_alias_set=${build_alias+set} 743ac_cv_env_build_alias_value=$build_alias 744ac_env_host_alias_set=${host_alias+set} 745ac_env_host_alias_value=$host_alias 746ac_cv_env_host_alias_set=${host_alias+set} 747ac_cv_env_host_alias_value=$host_alias 748ac_env_target_alias_set=${target_alias+set} 749ac_env_target_alias_value=$target_alias 750ac_cv_env_target_alias_set=${target_alias+set} 751ac_cv_env_target_alias_value=$target_alias 752ac_env_CC_set=${CC+set} 753ac_env_CC_value=$CC 754ac_cv_env_CC_set=${CC+set} 755ac_cv_env_CC_value=$CC 756ac_env_CFLAGS_set=${CFLAGS+set} 757ac_env_CFLAGS_value=$CFLAGS 758ac_cv_env_CFLAGS_set=${CFLAGS+set} 759ac_cv_env_CFLAGS_value=$CFLAGS 760ac_env_LDFLAGS_set=${LDFLAGS+set} 761ac_env_LDFLAGS_value=$LDFLAGS 762ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 763ac_cv_env_LDFLAGS_value=$LDFLAGS 764ac_env_CPPFLAGS_set=${CPPFLAGS+set} 765ac_env_CPPFLAGS_value=$CPPFLAGS 766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 767ac_cv_env_CPPFLAGS_value=$CPPFLAGS 768ac_env_CPP_set=${CPP+set} 769ac_env_CPP_value=$CPP 770ac_cv_env_CPP_set=${CPP+set} 771ac_cv_env_CPP_value=$CPP 772 773# 774# Report the --help message. 775# 776if test "$ac_init_help" = "long"; then 777 # Omit some internal or obsolete options to make the list less imposing. 778 # This message is too long to be a string in the A/UX 3.1 sh. 779 cat <<_ACEOF 780\`configure' configures tkpng 0.9 to adapt to many kinds of systems. 781 782Usage: $0 [OPTION]... [VAR=VALUE]... 783 784To assign environment variables (e.g., CC, CFLAGS...), specify them as 785VAR=VALUE. See below for descriptions of some of the useful variables. 786 787Defaults for the options are specified in brackets. 788 789Configuration: 790 -h, --help display this help and exit 791 --help=short display options specific to this package 792 --help=recursive display the short help of all the included packages 793 -V, --version display version information and exit 794 -q, --quiet, --silent do not print \`checking...' messages 795 --cache-file=FILE cache test results in FILE [disabled] 796 -C, --config-cache alias for \`--cache-file=config.cache' 797 -n, --no-create do not create output files 798 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 799 800_ACEOF 801 802 cat <<_ACEOF 803Installation directories: 804 --prefix=PREFIX install architecture-independent files in PREFIX 805 [$ac_default_prefix] 806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 807 [PREFIX] 808 809By default, \`make install' will install all the files in 810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 811an installation prefix other than \`$ac_default_prefix' using \`--prefix', 812for instance \`--prefix=\$HOME'. 813 814For better control, use the options below. 815 816Fine tuning of the installation directories: 817 --bindir=DIR user executables [EPREFIX/bin] 818 --sbindir=DIR system admin executables [EPREFIX/sbin] 819 --libexecdir=DIR program executables [EPREFIX/libexec] 820 --datadir=DIR read-only architecture-independent data [PREFIX/share] 821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 823 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 824 --libdir=DIR object code libraries [EPREFIX/lib] 825 --includedir=DIR C header files [PREFIX/include] 826 --oldincludedir=DIR C header files for non-gcc [/usr/include] 827 --infodir=DIR info documentation [PREFIX/info] 828 --mandir=DIR man documentation [PREFIX/man] 829_ACEOF 830 831 cat <<\_ACEOF 832_ACEOF 833fi 834 835if test -n "$ac_init_help"; then 836 case $ac_init_help in 837 short | recursive ) echo "Configuration of tkpng 0.9:";; 838 esac 839 cat <<\_ACEOF 840 841Optional Features: 842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 844 --enable-threads build with threads 845 --enable-shared build and link with shared libraries (default: on) 846 --enable-64bit enable 64bit support (default: off) 847 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 848 --disable-rpath disable rpath support (default: on) 849 --enable-wince enable Win/CE support (where applicable) 850 --enable-load allow dynamic loading and "load" command (default: 851 on) 852 --enable-symbols build with debugging symbols (default: off) 853 854Optional Packages: 855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 857 --with-tcl directory containing tcl configuration 858 (tclConfig.sh) 859 --with-tk directory containing tk configuration (tkConfig.sh) 860 --with-tclinclude directory containing the public Tcl header files 861 --with-tkinclude directory containing the public Tk header files 862 --with-celib=DIR use Windows/CE support library from DIR 863 864Some influential environment variables: 865 CC C compiler command 866 CFLAGS C compiler flags 867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 868 nonstandard directory <lib dir> 869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 870 headers in a nonstandard directory <include dir> 871 CPP C preprocessor 872 873Use these variables to override the choices made by `configure' or to help 874it to find libraries and programs with nonstandard names/locations. 875 876_ACEOF 877fi 878 879if test "$ac_init_help" = "recursive"; then 880 # If there are subdirs, report their specific --help. 881 ac_popdir=`pwd` 882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 883 test -d $ac_dir || continue 884 ac_builddir=. 885 886if test "$ac_dir" != .; then 887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 888 # A "../" for each directory in $ac_dir_suffix. 889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 890else 891 ac_dir_suffix= ac_top_builddir= 892fi 893 894case $srcdir in 895 .) # No --srcdir option. We are building in place. 896 ac_srcdir=. 897 if test -z "$ac_top_builddir"; then 898 ac_top_srcdir=. 899 else 900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 901 fi ;; 902 [\\/]* | ?:[\\/]* ) # Absolute path. 903 ac_srcdir=$srcdir$ac_dir_suffix; 904 ac_top_srcdir=$srcdir ;; 905 *) # Relative path. 906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 907 ac_top_srcdir=$ac_top_builddir$srcdir ;; 908esac 909case "$ac_dir" in 910.) ac_abs_builddir=$ac_builddir;; 911*) 912 case $ac_builddir in 913 .) ac_abs_builddir="$ac_dir";; 914 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; 915 *) ac_abs_builddir="$ac_dir"/$ac_builddir;; 916 esac;; 917esac 918case "$ac_dir" in 919.) ac_abs_top_builddir=${ac_top_builddir}.;; 920*) 921 case ${ac_top_builddir}. in 922 .) ac_abs_top_builddir="$ac_dir";; 923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 924 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; 925 esac;; 926esac 927case "$ac_dir" in 928.) ac_abs_srcdir=$ac_srcdir;; 929*) 930 case $ac_srcdir in 931 .) ac_abs_srcdir="$ac_dir";; 932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 933 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; 934 esac;; 935esac 936case "$ac_dir" in 937.) ac_abs_top_srcdir=$ac_top_srcdir;; 938*) 939 case $ac_top_srcdir in 940 .) ac_abs_top_srcdir="$ac_dir";; 941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 942 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; 943 esac;; 944esac 945 946 cd $ac_dir 947 # Check for guested configure; otherwise get Cygnus style configure. 948 if test -f $ac_srcdir/configure.gnu; then 949 echo 950 $SHELL $ac_srcdir/configure.gnu --help=recursive 951 elif test -f $ac_srcdir/configure; then 952 echo 953 $SHELL $ac_srcdir/configure --help=recursive 954 elif test -f $ac_srcdir/configure.ac || 955 test -f $ac_srcdir/configure.in; then 956 echo 957 $ac_configure --help 958 else 959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 960 fi 961 cd $ac_popdir 962 done 963fi 964 965test -n "$ac_init_help" && exit 0 966if $ac_init_version; then 967 cat <<\_ACEOF 968tkpng configure 0.9 969generated by GNU Autoconf 2.58 970 971Copyright (C) 2003 Free Software Foundation, Inc. 972This configure script is free software; the Free Software Foundation 973gives unlimited permission to copy, distribute and modify it. 974_ACEOF 975 exit 0 976fi 977exec 5>config.log 978cat >&5 <<_ACEOF 979This file contains any messages produced by compilers while 980running configure, to aid debugging if configure makes a mistake. 981 982It was created by tkpng $as_me 0.9, which was 983generated by GNU Autoconf 2.58. Invocation command line was 984 985 $ $0 $@ 986 987_ACEOF 988{ 989cat <<_ASUNAME 990## --------- ## 991## Platform. ## 992## --------- ## 993 994hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 995uname -m = `(uname -m) 2>/dev/null || echo unknown` 996uname -r = `(uname -r) 2>/dev/null || echo unknown` 997uname -s = `(uname -s) 2>/dev/null || echo unknown` 998uname -v = `(uname -v) 2>/dev/null || echo unknown` 999 1000/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1001/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1002 1003/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1004/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1005/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1006hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1007/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1008/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1009/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1010 1011_ASUNAME 1012 1013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1014for as_dir in $PATH 1015do 1016 IFS=$as_save_IFS 1017 test -z "$as_dir" && as_dir=. 1018 echo "PATH: $as_dir" 1019done 1020 1021} >&5 1022 1023cat >&5 <<_ACEOF 1024 1025 1026## ----------- ## 1027## Core tests. ## 1028## ----------- ## 1029 1030_ACEOF 1031 1032 1033# Keep a trace of the command line. 1034# Strip out --no-create and --no-recursion so they do not pile up. 1035# Strip out --silent because we don't want to record it for future runs. 1036# Also quote any args containing shell meta-characters. 1037# Make two passes to allow for proper duplicate-argument suppression. 1038ac_configure_args= 1039ac_configure_args0= 1040ac_configure_args1= 1041ac_sep= 1042ac_must_keep_next=false 1043for ac_pass in 1 2 1044do 1045 for ac_arg 1046 do 1047 case $ac_arg in 1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1050 | -silent | --silent | --silen | --sile | --sil) 1051 continue ;; 1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1054 esac 1055 case $ac_pass in 1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1057 2) 1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1059 if test $ac_must_keep_next = true; then 1060 ac_must_keep_next=false # Got value, back to normal. 1061 else 1062 case $ac_arg in 1063 *=* | --config-cache | -C | -disable-* | --disable-* \ 1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1066 | -with-* | --with-* | -without-* | --without-* | --x) 1067 case "$ac_configure_args0 " in 1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1069 esac 1070 ;; 1071 -* ) ac_must_keep_next=true ;; 1072 esac 1073 fi 1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1075 # Get rid of the leading space. 1076 ac_sep=" " 1077 ;; 1078 esac 1079 done 1080done 1081$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1082$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1083 1084# When interrupted or exit'd, cleanup temporary files, and complete 1085# config.log. We remove comments because anyway the quotes in there 1086# would cause problems or look ugly. 1087# WARNING: Be sure not to use single quotes in there, as some shells, 1088# such as our DU 5.0 friend, will then `close' the trap. 1089trap 'exit_status=$? 1090 # Save into config.log some information that might help in debugging. 1091 { 1092 echo 1093 1094 cat <<\_ASBOX 1095## ---------------- ## 1096## Cache variables. ## 1097## ---------------- ## 1098_ASBOX 1099 echo 1100 # The following way of writing the cache mishandles newlines in values, 1101{ 1102 (set) 2>&1 | 1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1104 *ac_space=\ *) 1105 sed -n \ 1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1108 ;; 1109 *) 1110 sed -n \ 1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1112 ;; 1113 esac; 1114} 1115 echo 1116 1117 cat <<\_ASBOX 1118## ----------------- ## 1119## Output variables. ## 1120## ----------------- ## 1121_ASBOX 1122 echo 1123 for ac_var in $ac_subst_vars 1124 do 1125 eval ac_val=$`echo $ac_var` 1126 echo "$ac_var='"'"'$ac_val'"'"'" 1127 done | sort 1128 echo 1129 1130 if test -n "$ac_subst_files"; then 1131 cat <<\_ASBOX 1132## ------------- ## 1133## Output files. ## 1134## ------------- ## 1135_ASBOX 1136 echo 1137 for ac_var in $ac_subst_files 1138 do 1139 eval ac_val=$`echo $ac_var` 1140 echo "$ac_var='"'"'$ac_val'"'"'" 1141 done | sort 1142 echo 1143 fi 1144 1145 if test -s confdefs.h; then 1146 cat <<\_ASBOX 1147## ----------- ## 1148## confdefs.h. ## 1149## ----------- ## 1150_ASBOX 1151 echo 1152 sed "/^$/d" confdefs.h | sort 1153 echo 1154 fi 1155 test "$ac_signal" != 0 && 1156 echo "$as_me: caught signal $ac_signal" 1157 echo "$as_me: exit $exit_status" 1158 } >&5 1159 rm -f core *.core && 1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1161 exit $exit_status 1162 ' 0 1163for ac_signal in 1 2 13 15; do 1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1165done 1166ac_signal=0 1167 1168# confdefs.h avoids OS command line length limits that DEFS can exceed. 1169rm -rf conftest* confdefs.h 1170# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1171echo >confdefs.h 1172 1173# Predefined preprocessor variables. 1174 1175cat >>confdefs.h <<_ACEOF 1176#define PACKAGE_NAME "$PACKAGE_NAME" 1177_ACEOF 1178 1179 1180cat >>confdefs.h <<_ACEOF 1181#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1182_ACEOF 1183 1184 1185cat >>confdefs.h <<_ACEOF 1186#define PACKAGE_VERSION "$PACKAGE_VERSION" 1187_ACEOF 1188 1189 1190cat >>confdefs.h <<_ACEOF 1191#define PACKAGE_STRING "$PACKAGE_STRING" 1192_ACEOF 1193 1194 1195cat >>confdefs.h <<_ACEOF 1196#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1197_ACEOF 1198 1199 1200# Let the site file select an alternate cache file if it wants to. 1201# Prefer explicitly selected file to automatically selected ones. 1202if test -z "$CONFIG_SITE"; then 1203 if test "x$prefix" != xNONE; then 1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1205 else 1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1207 fi 1208fi 1209for ac_site_file in $CONFIG_SITE; do 1210 if test -r "$ac_site_file"; then 1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1212echo "$as_me: loading site script $ac_site_file" >&6;} 1213 sed 's/^/| /' "$ac_site_file" >&5 1214 . "$ac_site_file" 1215 fi 1216done 1217 1218if test -r "$cache_file"; then 1219 # Some versions of bash will fail to source /dev/null (special 1220 # files actually), so we avoid doing that. 1221 if test -f "$cache_file"; then 1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1223echo "$as_me: loading cache $cache_file" >&6;} 1224 case $cache_file in 1225 [\\/]* | ?:[\\/]* ) . $cache_file;; 1226 *) . ./$cache_file;; 1227 esac 1228 fi 1229else 1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1231echo "$as_me: creating cache $cache_file" >&6;} 1232 >$cache_file 1233fi 1234 1235# Check that the precious variables saved in the cache have kept the same 1236# value. 1237ac_cache_corrupted=false 1238for ac_var in `(set) 2>&1 | 1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1241 eval ac_new_set=\$ac_env_${ac_var}_set 1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1243 eval ac_new_val="\$ac_env_${ac_var}_value" 1244 case $ac_old_set,$ac_new_set in 1245 set,) 1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1247echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1248 ac_cache_corrupted=: ;; 1249 ,set) 1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1251echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1252 ac_cache_corrupted=: ;; 1253 ,);; 1254 *) 1255 if test "x$ac_old_val" != "x$ac_new_val"; then 1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1257echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1259echo "$as_me: former value: $ac_old_val" >&2;} 1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1261echo "$as_me: current value: $ac_new_val" >&2;} 1262 ac_cache_corrupted=: 1263 fi;; 1264 esac 1265 # Pass precious variables to config.status. 1266 if test "$ac_new_set" = set; then 1267 case $ac_new_val in 1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1269 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1270 *) ac_arg=$ac_var=$ac_new_val ;; 1271 esac 1272 case " $ac_configure_args " in 1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1275 esac 1276 fi 1277done 1278if $ac_cache_corrupted; then 1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1280echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1282echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1283 { (exit 1); exit 1; }; } 1284fi 1285 1286ac_ext=c 1287ac_cpp='$CPP $CPPFLAGS' 1288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1290ac_compiler_gnu=$ac_cv_c_compiler_gnu 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 # TEA extensions pass this us the version of TEA they think they 1321 # are compatible with. 1322 TEA_VERSION="3.6" 1323 1324 echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1325echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6 1326 if test x"${PACKAGE_NAME}" = x ; then 1327 { { echo "$as_me:$LINENO: error: 1328The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1329echo "$as_me: error: 1330The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1331 { (exit 1); exit 1; }; } 1332 fi 1333 if test x"3.6" = x ; then 1334 { { echo "$as_me:$LINENO: error: 1335TEA version not specified." >&5 1336echo "$as_me: error: 1337TEA version not specified." >&2;} 1338 { (exit 1); exit 1; }; } 1339 elif test "3.6" != "${TEA_VERSION}" ; then 1340 echo "$as_me:$LINENO: result: warning: requested TEA version \"3.6\", have \"${TEA_VERSION}\"" >&5 1341echo "${ECHO_T}warning: requested TEA version \"3.6\", have \"${TEA_VERSION}\"" >&6 1342 else 1343 echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1344echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6 1345 fi 1346 case "`uname -s`" in 1347 *win32*|*WIN32*|*CYGWIN_NT*|*CYGWIN_9*|*CYGWIN_ME*|*MINGW32_*) 1348 # Extract the first word of "cygpath", so it can be a program name with args. 1349set dummy cygpath; ac_word=$2 1350echo "$as_me:$LINENO: checking for $ac_word" >&5 1351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1352if test "${ac_cv_prog_CYGPATH+set}" = set; then 1353 echo $ECHO_N "(cached) $ECHO_C" >&6 1354else 1355 if test -n "$CYGPATH"; then 1356 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1357else 1358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1359for as_dir in $PATH 1360do 1361 IFS=$as_save_IFS 1362 test -z "$as_dir" && as_dir=. 1363 for ac_exec_ext in '' $ac_executable_extensions; do 1364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1365 ac_cv_prog_CYGPATH="cygpath -w" 1366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1367 break 2 1368 fi 1369done 1370done 1371 1372 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1373fi 1374fi 1375CYGPATH=$ac_cv_prog_CYGPATH 1376if test -n "$CYGPATH"; then 1377 echo "$as_me:$LINENO: result: $CYGPATH" >&5 1378echo "${ECHO_T}$CYGPATH" >&6 1379else 1380 echo "$as_me:$LINENO: result: no" >&5 1381echo "${ECHO_T}no" >&6 1382fi 1383 1384 EXEEXT=".exe" 1385 TEA_PLATFORM="windows" 1386 ;; 1387 *) 1388 CYGPATH=echo 1389 EXEEXT="" 1390 TEA_PLATFORM="unix" 1391 ;; 1392 esac 1393 1394 # Check if exec_prefix is set. If not use fall back to prefix. 1395 # Note when adjusted, so that TEA_PREFIX can correct for this. 1396 # This is needed for recursive configures, since autoconf propagates 1397 # $prefix, but not $exec_prefix (doh!). 1398 if test x$exec_prefix = xNONE ; then 1399 exec_prefix_default=yes 1400 exec_prefix=$prefix 1401 fi 1402 1403 1404 1405 1406 # This package name must be replaced statically for AC_SUBST to work 1407 1408 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1409 1410 1411 # We AC_SUBST these here to ensure they are subst'ed, 1412 # in case the user doesn't call TEA_ADD_... 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422ac_aux_dir= 1423for ac_dir in tclconfig $srcdir/tclconfig; do 1424 if test -f $ac_dir/install-sh; then 1425 ac_aux_dir=$ac_dir 1426 ac_install_sh="$ac_aux_dir/install-sh -c" 1427 break 1428 elif test -f $ac_dir/install.sh; then 1429 ac_aux_dir=$ac_dir 1430 ac_install_sh="$ac_aux_dir/install.sh -c" 1431 break 1432 elif test -f $ac_dir/shtool; then 1433 ac_aux_dir=$ac_dir 1434 ac_install_sh="$ac_aux_dir/shtool install -c" 1435 break 1436 fi 1437done 1438if test -z "$ac_aux_dir"; then 1439 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig $srcdir/tclconfig" >&5 1440echo "$as_me: error: cannot find install-sh or install.sh in tclconfig $srcdir/tclconfig" >&2;} 1441 { (exit 1); exit 1; }; } 1442fi 1443ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1444ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1445ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1446 1447 1448#-------------------------------------------------------------------- 1449# Load the tclConfig.sh file 1450#-------------------------------------------------------------------- 1451 1452 1453 1454 # 1455 # Ok, lets find the tcl configuration 1456 # First, look for one uninstalled. 1457 # the alternative search directory is invoked by --with-tcl 1458 # 1459 1460 if test x"${no_tcl}" = x ; then 1461 # we reset no_tcl in case something fails here 1462 no_tcl=true 1463 1464# Check whether --with-tcl or --without-tcl was given. 1465if test "${with_tcl+set}" = set; then 1466 withval="$with_tcl" 1467 with_tclconfig=${withval} 1468fi; 1469 echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1470echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 1471 if test "${ac_cv_c_tclconfig+set}" = set; then 1472 echo $ECHO_N "(cached) $ECHO_C" >&6 1473else 1474 1475 1476 # First check to see if --with-tcl was specified. 1477 if test x"${with_tclconfig}" != x ; then 1478 case ${with_tclconfig} in 1479 */tclConfig.sh ) 1480 if test -f ${with_tclconfig}; then 1481 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1482echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1483 with_tclconfig=`echo ${with_tclconfig} | sed 's!/tclConfig\.sh$!!'` 1484 fi ;; 1485 esac 1486 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1487 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 1488 else 1489 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1490echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1491 { (exit 1); exit 1; }; } 1492 fi 1493 fi 1494 1495 # then check for a private Tcl installation 1496 if test x"${ac_cv_c_tclconfig}" = x ; then 1497 for i in \ 1498 ../tcl \ 1499 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1500 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1501 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1502 ../../tcl \ 1503 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1504 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1505 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1506 ../../../tcl \ 1507 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1508 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1509 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1510 if test -f "$i/unix/tclConfig.sh" ; then 1511 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 1512 break 1513 fi 1514 done 1515 fi 1516 1517 # on Darwin, check in Framework installation locations 1518 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1519 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1520 `ls -d /Library/Frameworks 2>/dev/null` \ 1521 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1522 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1523 ; do 1524 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 1525 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)` 1526 break 1527 fi 1528 done 1529 fi 1530 1531 # TEA specific: on Windows, check in common installation locations 1532 if test "${TEA_PLATFORM}" = "windows" \ 1533 -a x"${ac_cv_c_tclconfig}" = x ; then 1534 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 1535 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 1536 ; do 1537 if test -f "$i/tclConfig.sh" ; then 1538 ac_cv_c_tclconfig=`(cd $i; pwd)` 1539 break 1540 fi 1541 done 1542 fi 1543 1544 # check in a few common install locations 1545 if test x"${ac_cv_c_tclconfig}" = x ; then 1546 for i in `ls -d ${libdir} 2>/dev/null` \ 1547 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 1548 `ls -d ${prefix}/lib 2>/dev/null` \ 1549 `ls -d /usr/local/lib 2>/dev/null` \ 1550 `ls -d /usr/contrib/lib 2>/dev/null` \ 1551 `ls -d /usr/lib 2>/dev/null` \ 1552 ; do 1553 if test -f "$i/tclConfig.sh" ; then 1554 ac_cv_c_tclconfig=`(cd $i; pwd)` 1555 break 1556 fi 1557 done 1558 fi 1559 1560 # check in a few other private locations 1561 if test x"${ac_cv_c_tclconfig}" = x ; then 1562 for i in \ 1563 ${srcdir}/../tcl \ 1564 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1565 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 1566 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 1567 if test -f "$i/unix/tclConfig.sh" ; then 1568 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 1569 break 1570 fi 1571 done 1572 fi 1573 1574fi 1575 1576 1577 if test x"${ac_cv_c_tclconfig}" = x ; then 1578 TCL_BIN_DIR="# no Tcl configs found" 1579 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 1580echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 1581 exit 0 1582 else 1583 no_tcl= 1584 TCL_BIN_DIR=${ac_cv_c_tclconfig} 1585 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 1586echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6 1587 fi 1588 fi 1589 1590 1591 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 1592echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6 1593 1594 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 1595 echo "$as_me:$LINENO: result: loading" >&5 1596echo "${ECHO_T}loading" >&6 1597 . "${TCL_BIN_DIR}/tclConfig.sh" 1598 else 1599 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 1600echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6 1601 fi 1602 1603 # eval is required to do the TCL_DBGX substitution 1604 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 1605 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 1606 1607 # If the TCL_BIN_DIR is the build directory (not the install directory), 1608 # then set the common variable name to the value of the build variables. 1609 # For example, the variable TCL_LIB_SPEC will be set to the value 1610 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 1611 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 1612 # installed and uninstalled version of Tcl. 1613 if test -f "${TCL_BIN_DIR}/Makefile" ; then 1614 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 1615 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 1616 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 1617 elif test "`uname -s`" = "Darwin"; then 1618 # If Tcl was built as a framework, attempt to use the libraries 1619 # from the framework at the given location so that linking works 1620 # against Tcl.framework installed in an arbitary location. 1621 case ${TCL_DEFS} in 1622 *TCL_FRAMEWORK*) 1623 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 1624 for i in "`cd ${TCL_BIN_DIR}; pwd`" \ 1625 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do 1626 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 1627 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}" 1628 break 1629 fi 1630 done 1631 fi 1632 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 1633 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}" 1634 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 1635 fi 1636 ;; 1637 esac 1638 fi 1639 1640 # eval is required to do the TCL_DBGX substitution 1641 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 1642 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 1643 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 1644 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 # TEA specific: 1659 1660 1661 1662 1663 1664 1665 1666#-------------------------------------------------------------------- 1667# Load the tkConfig.sh file if necessary (Tk extension) 1668#-------------------------------------------------------------------- 1669 1670 1671 # 1672 # Ok, lets find the tk configuration 1673 # First, look for one uninstalled. 1674 # the alternative search directory is invoked by --with-tk 1675 # 1676 1677 if test x"${no_tk}" = x ; then 1678 # we reset no_tk in case something fails here 1679 no_tk=true 1680 1681# Check whether --with-tk or --without-tk was given. 1682if test "${with_tk+set}" = set; then 1683 withval="$with_tk" 1684 with_tkconfig=${withval} 1685fi; 1686 echo "$as_me:$LINENO: checking for Tk configuration" >&5 1687echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 1688 if test "${ac_cv_c_tkconfig+set}" = set; then 1689 echo $ECHO_N "(cached) $ECHO_C" >&6 1690else 1691 1692 1693 # First check to see if --with-tkconfig was specified. 1694 if test x"${with_tkconfig}" != x ; then 1695 case ${with_tkconfig} in 1696 */tkConfig.sh ) 1697 if test -f ${with_tkconfig}; then 1698 { echo "$as_me:$LINENO: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5 1699echo "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;} 1700 with_tkconfig=`echo ${with_tkconfig} | sed 's!/tkConfig\.sh$!!'` 1701 fi ;; 1702 esac 1703 if test -f "${with_tkconfig}/tkConfig.sh" ; then 1704 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` 1705 else 1706 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 1707echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} 1708 { (exit 1); exit 1; }; } 1709 fi 1710 fi 1711 1712 # then check for a private Tk library 1713 if test x"${ac_cv_c_tkconfig}" = x ; then 1714 for i in \ 1715 ../tk \ 1716 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 1717 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ 1718 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ 1719 ../../tk \ 1720 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 1721 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ 1722 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ 1723 ../../../tk \ 1724 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 1725 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ 1726 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do 1727 if test -f "$i/unix/tkConfig.sh" ; then 1728 ac_cv_c_tkconfig=`(cd $i/unix; pwd)` 1729 break 1730 fi 1731 done 1732 fi 1733 1734 # on Darwin, check in Framework installation locations 1735 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then 1736 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1737 `ls -d /Library/Frameworks 2>/dev/null` \ 1738 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1739 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1740 ; do 1741 if test -f "$i/Tk.framework/tkConfig.sh" ; then 1742 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)` 1743 break 1744 fi 1745 done 1746 fi 1747 1748 # check in a few common install locations 1749 if test x"${ac_cv_c_tkconfig}" = x ; then 1750 for i in `ls -d ${libdir} 2>/dev/null` \ 1751 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 1752 `ls -d ${prefix}/lib 2>/dev/null` \ 1753 `ls -d /usr/local/lib 2>/dev/null` \ 1754 `ls -d /usr/contrib/lib 2>/dev/null` \ 1755 `ls -d /usr/lib 2>/dev/null` \ 1756 ; do 1757 if test -f "$i/tkConfig.sh" ; then 1758 ac_cv_c_tkconfig=`(cd $i; pwd)` 1759 break 1760 fi 1761 done 1762 fi 1763 1764 # TEA specific: on Windows, check in common installation locations 1765 if test "${TEA_PLATFORM}" = "windows" \ 1766 -a x"${ac_cv_c_tkconfig}" = x ; then 1767 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 1768 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 1769 ; do 1770 if test -f "$i/tkConfig.sh" ; then 1771 ac_cv_c_tkconfig=`(cd $i; pwd)` 1772 break 1773 fi 1774 done 1775 fi 1776 1777 # check in a few other private locations 1778 if test x"${ac_cv_c_tkconfig}" = x ; then 1779 for i in \ 1780 ${srcdir}/../tk \ 1781 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 1782 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ 1783 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do 1784 if test -f "$i/unix/tkConfig.sh" ; then 1785 ac_cv_c_tkconfig=`(cd $i/unix; pwd)` 1786 break 1787 fi 1788 done 1789 fi 1790 1791fi 1792 1793 1794 if test x"${ac_cv_c_tkconfig}" = x ; then 1795 TK_BIN_DIR="# no Tk configs found" 1796 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 1797echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} 1798 exit 0 1799 else 1800 no_tk= 1801 TK_BIN_DIR=${ac_cv_c_tkconfig} 1802 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 1803echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6 1804 fi 1805 fi 1806 1807 1808 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 1809echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6 1810 1811 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then 1812 echo "$as_me:$LINENO: result: loading" >&5 1813echo "${ECHO_T}loading" >&6 1814 . "${TK_BIN_DIR}/tkConfig.sh" 1815 else 1816 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 1817echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6 1818 fi 1819 1820 # eval is required to do the TK_DBGX substitution 1821 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" 1822 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" 1823 1824 # If the TK_BIN_DIR is the build directory (not the install directory), 1825 # then set the common variable name to the value of the build variables. 1826 # For example, the variable TK_LIB_SPEC will be set to the value 1827 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC 1828 # instead of TK_BUILD_LIB_SPEC since it will work with both an 1829 # installed and uninstalled version of Tcl. 1830 if test -f "${TK_BIN_DIR}/Makefile" ; then 1831 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC} 1832 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC} 1833 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH} 1834 elif test "`uname -s`" = "Darwin"; then 1835 # If Tk was built as a framework, attempt to use the libraries 1836 # from the framework at the given location so that linking works 1837 # against Tk.framework installed in an arbitary location. 1838 case ${TK_DEFS} in 1839 *TK_FRAMEWORK*) 1840 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then 1841 for i in "`cd ${TK_BIN_DIR}; pwd`" \ 1842 "`cd ${TK_BIN_DIR}/../..; pwd`"; do 1843 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then 1844 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}" 1845 break 1846 fi 1847 done 1848 fi 1849 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then 1850 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}" 1851 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" 1852 fi 1853 ;; 1854 esac 1855 fi 1856 1857 # eval is required to do the TK_DBGX substitution 1858 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" 1859 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" 1860 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" 1861 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" 1862 1863 # TEA specific: Ensure windowingsystem is defined 1864 if test "${TEA_PLATFORM}" = "unix" ; then 1865 case ${TK_DEFS} in 1866 *MAC_OSX_TK*) 1867 1868cat >>confdefs.h <<\_ACEOF 1869#define MAC_OSX_TK 1 1870_ACEOF 1871 1872 TEA_WINDOWINGSYSTEM="aqua" 1873 ;; 1874 *) 1875 TEA_WINDOWINGSYSTEM="x11" 1876 ;; 1877 esac 1878 elif test "${TEA_PLATFORM}" = "windows" ; then 1879 TEA_WINDOWINGSYSTEM="win32" 1880 fi 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 # TEA specific: 1895 1896 1897 1898 1899#----------------------------------------------------------------------- 1900# Handle the --prefix=... option by defaulting to what Tcl gave. 1901# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 1902#----------------------------------------------------------------------- 1903 1904 1905 if test "${prefix}" = "NONE"; then 1906 prefix_default=yes 1907 if test x"${TCL_PREFIX}" != x; then 1908 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 1909echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 1910 prefix=${TCL_PREFIX} 1911 else 1912 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 1913echo "$as_me: --prefix defaulting to /usr/local" >&6;} 1914 prefix=/usr/local 1915 fi 1916 fi 1917 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 1918 -o x"${exec_prefix_default}" = x"yes" ; then 1919 if test x"${TCL_EXEC_PREFIX}" != x; then 1920 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 1921echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 1922 exec_prefix=${TCL_EXEC_PREFIX} 1923 else 1924 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 1925echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 1926 exec_prefix=$prefix 1927 fi 1928 fi 1929 1930 1931#----------------------------------------------------------------------- 1932# Standard compiler checks. 1933# This sets up CC by using the CC env var, or looks for gcc otherwise. 1934# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 1935# the basic setup necessary to compile executables. 1936#----------------------------------------------------------------------- 1937 1938 1939 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 1940 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 1941 1942 # If the user did not set CFLAGS, set it now to keep 1943 # the AC_PROG_CC macro from adding "-g -O2". 1944 if test "${CFLAGS+set}" != "set" ; then 1945 CFLAGS="" 1946 fi 1947 1948 ac_ext=c 1949ac_cpp='$CPP $CPPFLAGS' 1950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1952ac_compiler_gnu=$ac_cv_c_compiler_gnu 1953if test -n "$ac_tool_prefix"; then 1954 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1955set dummy ${ac_tool_prefix}gcc; ac_word=$2 1956echo "$as_me:$LINENO: checking for $ac_word" >&5 1957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1958if test "${ac_cv_prog_CC+set}" = set; then 1959 echo $ECHO_N "(cached) $ECHO_C" >&6 1960else 1961 if test -n "$CC"; then 1962 ac_cv_prog_CC="$CC" # Let the user override the test. 1963else 1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1965for as_dir in $PATH 1966do 1967 IFS=$as_save_IFS 1968 test -z "$as_dir" && as_dir=. 1969 for ac_exec_ext in '' $ac_executable_extensions; do 1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1971 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1973 break 2 1974 fi 1975done 1976done 1977 1978fi 1979fi 1980CC=$ac_cv_prog_CC 1981if test -n "$CC"; then 1982 echo "$as_me:$LINENO: result: $CC" >&5 1983echo "${ECHO_T}$CC" >&6 1984else 1985 echo "$as_me:$LINENO: result: no" >&5 1986echo "${ECHO_T}no" >&6 1987fi 1988 1989fi 1990if test -z "$ac_cv_prog_CC"; then 1991 ac_ct_CC=$CC 1992 # Extract the first word of "gcc", so it can be a program name with args. 1993set dummy gcc; ac_word=$2 1994echo "$as_me:$LINENO: checking for $ac_word" >&5 1995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1996if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1997 echo $ECHO_N "(cached) $ECHO_C" >&6 1998else 1999 if test -n "$ac_ct_CC"; then 2000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2001else 2002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2003for as_dir in $PATH 2004do 2005 IFS=$as_save_IFS 2006 test -z "$as_dir" && as_dir=. 2007 for ac_exec_ext in '' $ac_executable_extensions; do 2008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2009 ac_cv_prog_ac_ct_CC="gcc" 2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2011 break 2 2012 fi 2013done 2014done 2015 2016fi 2017fi 2018ac_ct_CC=$ac_cv_prog_ac_ct_CC 2019if test -n "$ac_ct_CC"; then 2020 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2021echo "${ECHO_T}$ac_ct_CC" >&6 2022else 2023 echo "$as_me:$LINENO: result: no" >&5 2024echo "${ECHO_T}no" >&6 2025fi 2026 2027 CC=$ac_ct_CC 2028else 2029 CC="$ac_cv_prog_CC" 2030fi 2031 2032if test -z "$CC"; then 2033 if test -n "$ac_tool_prefix"; then 2034 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2035set dummy ${ac_tool_prefix}cc; ac_word=$2 2036echo "$as_me:$LINENO: checking for $ac_word" >&5 2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2038if test "${ac_cv_prog_CC+set}" = set; then 2039 echo $ECHO_N "(cached) $ECHO_C" >&6 2040else 2041 if test -n "$CC"; then 2042 ac_cv_prog_CC="$CC" # Let the user override the test. 2043else 2044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2045for as_dir in $PATH 2046do 2047 IFS=$as_save_IFS 2048 test -z "$as_dir" && as_dir=. 2049 for ac_exec_ext in '' $ac_executable_extensions; do 2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2051 ac_cv_prog_CC="${ac_tool_prefix}cc" 2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2053 break 2 2054 fi 2055done 2056done 2057 2058fi 2059fi 2060CC=$ac_cv_prog_CC 2061if test -n "$CC"; then 2062 echo "$as_me:$LINENO: result: $CC" >&5 2063echo "${ECHO_T}$CC" >&6 2064else 2065 echo "$as_me:$LINENO: result: no" >&5 2066echo "${ECHO_T}no" >&6 2067fi 2068 2069fi 2070if test -z "$ac_cv_prog_CC"; then 2071 ac_ct_CC=$CC 2072 # Extract the first word of "cc", so it can be a program name with args. 2073set dummy cc; ac_word=$2 2074echo "$as_me:$LINENO: checking for $ac_word" >&5 2075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2076if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2077 echo $ECHO_N "(cached) $ECHO_C" >&6 2078else 2079 if test -n "$ac_ct_CC"; then 2080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2081else 2082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2083for as_dir in $PATH 2084do 2085 IFS=$as_save_IFS 2086 test -z "$as_dir" && as_dir=. 2087 for ac_exec_ext in '' $ac_executable_extensions; do 2088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2089 ac_cv_prog_ac_ct_CC="cc" 2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2091 break 2 2092 fi 2093done 2094done 2095 2096fi 2097fi 2098ac_ct_CC=$ac_cv_prog_ac_ct_CC 2099if test -n "$ac_ct_CC"; then 2100 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2101echo "${ECHO_T}$ac_ct_CC" >&6 2102else 2103 echo "$as_me:$LINENO: result: no" >&5 2104echo "${ECHO_T}no" >&6 2105fi 2106 2107 CC=$ac_ct_CC 2108else 2109 CC="$ac_cv_prog_CC" 2110fi 2111 2112fi 2113if test -z "$CC"; then 2114 # Extract the first word of "cc", so it can be a program name with args. 2115set dummy cc; ac_word=$2 2116echo "$as_me:$LINENO: checking for $ac_word" >&5 2117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2118if test "${ac_cv_prog_CC+set}" = set; then 2119 echo $ECHO_N "(cached) $ECHO_C" >&6 2120else 2121 if test -n "$CC"; then 2122 ac_cv_prog_CC="$CC" # Let the user override the test. 2123else 2124 ac_prog_rejected=no 2125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2126for as_dir in $PATH 2127do 2128 IFS=$as_save_IFS 2129 test -z "$as_dir" && as_dir=. 2130 for ac_exec_ext in '' $ac_executable_extensions; do 2131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2132 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2133 ac_prog_rejected=yes 2134 continue 2135 fi 2136 ac_cv_prog_CC="cc" 2137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2138 break 2 2139 fi 2140done 2141done 2142 2143if test $ac_prog_rejected = yes; then 2144 # We found a bogon in the path, so make sure we never use it. 2145 set dummy $ac_cv_prog_CC 2146 shift 2147 if test $# != 0; then 2148 # We chose a different compiler from the bogus one. 2149 # However, it has the same basename, so the bogon will be chosen 2150 # first if we set CC to just the basename; use the full file name. 2151 shift 2152 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2153 fi 2154fi 2155fi 2156fi 2157CC=$ac_cv_prog_CC 2158if test -n "$CC"; then 2159 echo "$as_me:$LINENO: result: $CC" >&5 2160echo "${ECHO_T}$CC" >&6 2161else 2162 echo "$as_me:$LINENO: result: no" >&5 2163echo "${ECHO_T}no" >&6 2164fi 2165 2166fi 2167if test -z "$CC"; then 2168 if test -n "$ac_tool_prefix"; then 2169 for ac_prog in cl 2170 do 2171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2172set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2173echo "$as_me:$LINENO: checking for $ac_word" >&5 2174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2175if test "${ac_cv_prog_CC+set}" = set; then 2176 echo $ECHO_N "(cached) $ECHO_C" >&6 2177else 2178 if test -n "$CC"; then 2179 ac_cv_prog_CC="$CC" # Let the user override the test. 2180else 2181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2182for as_dir in $PATH 2183do 2184 IFS=$as_save_IFS 2185 test -z "$as_dir" && as_dir=. 2186 for ac_exec_ext in '' $ac_executable_extensions; do 2187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2188 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2190 break 2 2191 fi 2192done 2193done 2194 2195fi 2196fi 2197CC=$ac_cv_prog_CC 2198if test -n "$CC"; then 2199 echo "$as_me:$LINENO: result: $CC" >&5 2200echo "${ECHO_T}$CC" >&6 2201else 2202 echo "$as_me:$LINENO: result: no" >&5 2203echo "${ECHO_T}no" >&6 2204fi 2205 2206 test -n "$CC" && break 2207 done 2208fi 2209if test -z "$CC"; then 2210 ac_ct_CC=$CC 2211 for ac_prog in cl 2212do 2213 # Extract the first word of "$ac_prog", so it can be a program name with args. 2214set dummy $ac_prog; ac_word=$2 2215echo "$as_me:$LINENO: checking for $ac_word" >&5 2216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2217if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2218 echo $ECHO_N "(cached) $ECHO_C" >&6 2219else 2220 if test -n "$ac_ct_CC"; then 2221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2222else 2223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2224for as_dir in $PATH 2225do 2226 IFS=$as_save_IFS 2227 test -z "$as_dir" && as_dir=. 2228 for ac_exec_ext in '' $ac_executable_extensions; do 2229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2230 ac_cv_prog_ac_ct_CC="$ac_prog" 2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2232 break 2 2233 fi 2234done 2235done 2236 2237fi 2238fi 2239ac_ct_CC=$ac_cv_prog_ac_ct_CC 2240if test -n "$ac_ct_CC"; then 2241 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2242echo "${ECHO_T}$ac_ct_CC" >&6 2243else 2244 echo "$as_me:$LINENO: result: no" >&5 2245echo "${ECHO_T}no" >&6 2246fi 2247 2248 test -n "$ac_ct_CC" && break 2249done 2250 2251 CC=$ac_ct_CC 2252fi 2253 2254fi 2255 2256 2257test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2258See \`config.log' for more details." >&5 2259echo "$as_me: error: no acceptable C compiler found in \$PATH 2260See \`config.log' for more details." >&2;} 2261 { (exit 1); exit 1; }; } 2262 2263# Provide some information about the compiler. 2264echo "$as_me:$LINENO:" \ 2265 "checking for C compiler version" >&5 2266ac_compiler=`set X $ac_compile; echo $2` 2267{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2268 (eval $ac_compiler --version </dev/null >&5) 2>&5 2269 ac_status=$? 2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2271 (exit $ac_status); } 2272{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2273 (eval $ac_compiler -v </dev/null >&5) 2>&5 2274 ac_status=$? 2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2276 (exit $ac_status); } 2277{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2278 (eval $ac_compiler -V </dev/null >&5) 2>&5 2279 ac_status=$? 2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2281 (exit $ac_status); } 2282 2283cat >conftest.$ac_ext <<_ACEOF 2284/* confdefs.h. */ 2285_ACEOF 2286cat confdefs.h >>conftest.$ac_ext 2287cat >>conftest.$ac_ext <<_ACEOF 2288/* end confdefs.h. */ 2289 2290int 2291main () 2292{ 2293 2294 ; 2295 return 0; 2296} 2297_ACEOF 2298ac_clean_files_save=$ac_clean_files 2299ac_clean_files="$ac_clean_files a.out a.exe b.out" 2300# Try to create an executable without -o first, disregard a.out. 2301# It will help us diagnose broken compilers, and finding out an intuition 2302# of exeext. 2303echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2304echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2305ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2306if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2307 (eval $ac_link_default) 2>&5 2308 ac_status=$? 2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2310 (exit $ac_status); }; then 2311 # Find the output, starting from the most likely. This scheme is 2312# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2313# resort. 2314 2315# Be careful to initialize this variable, since it used to be cached. 2316# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2317ac_cv_exeext= 2318# b.out is created by i960 compilers. 2319for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2320do 2321 test -f "$ac_file" || continue 2322 case $ac_file in 2323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2324 ;; 2325 conftest.$ac_ext ) 2326 # This is the source file. 2327 ;; 2328 [ab].out ) 2329 # We found the default executable, but exeext='' is most 2330 # certainly right. 2331 break;; 2332 *.* ) 2333 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2334 # FIXME: I believe we export ac_cv_exeext for Libtool, 2335 # but it would be cool to find out if it's true. Does anybody 2336 # maintain Libtool? --akim. 2337 export ac_cv_exeext 2338 break;; 2339 * ) 2340 break;; 2341 esac 2342done 2343else 2344 echo "$as_me: failed program was:" >&5 2345sed 's/^/| /' conftest.$ac_ext >&5 2346 2347{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2348See \`config.log' for more details." >&5 2349echo "$as_me: error: C compiler cannot create executables 2350See \`config.log' for more details." >&2;} 2351 { (exit 77); exit 77; }; } 2352fi 2353 2354ac_exeext=$ac_cv_exeext 2355echo "$as_me:$LINENO: result: $ac_file" >&5 2356echo "${ECHO_T}$ac_file" >&6 2357 2358# Check the compiler produces executables we can run. If not, either 2359# the compiler is broken, or we cross compile. 2360echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2361echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2362# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2363# If not cross compiling, check that we can run a simple program. 2364if test "$cross_compiling" != yes; then 2365 if { ac_try='./$ac_file' 2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2367 (eval $ac_try) 2>&5 2368 ac_status=$? 2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2370 (exit $ac_status); }; }; then 2371 cross_compiling=no 2372 else 2373 if test "$cross_compiling" = maybe; then 2374 cross_compiling=yes 2375 else 2376 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2377If you meant to cross compile, use \`--host'. 2378See \`config.log' for more details." >&5 2379echo "$as_me: error: cannot run C compiled programs. 2380If you meant to cross compile, use \`--host'. 2381See \`config.log' for more details." >&2;} 2382 { (exit 1); exit 1; }; } 2383 fi 2384 fi 2385fi 2386echo "$as_me:$LINENO: result: yes" >&5 2387echo "${ECHO_T}yes" >&6 2388 2389rm -f a.out a.exe conftest$ac_cv_exeext b.out 2390ac_clean_files=$ac_clean_files_save 2391# Check the compiler produces executables we can run. If not, either 2392# the compiler is broken, or we cross compile. 2393echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2394echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2395echo "$as_me:$LINENO: result: $cross_compiling" >&5 2396echo "${ECHO_T}$cross_compiling" >&6 2397 2398echo "$as_me:$LINENO: checking for suffix of executables" >&5 2399echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2401 (eval $ac_link) 2>&5 2402 ac_status=$? 2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2404 (exit $ac_status); }; then 2405 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2406# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2407# work properly (i.e., refer to `conftest.exe'), while it won't with 2408# `rm'. 2409for ac_file in conftest.exe conftest conftest.*; do 2410 test -f "$ac_file" || continue 2411 case $ac_file in 2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2413 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2414 export ac_cv_exeext 2415 break;; 2416 * ) break;; 2417 esac 2418done 2419else 2420 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2421See \`config.log' for more details." >&5 2422echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2423See \`config.log' for more details." >&2;} 2424 { (exit 1); exit 1; }; } 2425fi 2426 2427rm -f conftest$ac_cv_exeext 2428echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2429echo "${ECHO_T}$ac_cv_exeext" >&6 2430 2431rm -f conftest.$ac_ext 2432EXEEXT=$ac_cv_exeext 2433ac_exeext=$EXEEXT 2434echo "$as_me:$LINENO: checking for suffix of object files" >&5 2435echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2436if test "${ac_cv_objext+set}" = set; then 2437 echo $ECHO_N "(cached) $ECHO_C" >&6 2438else 2439 cat >conftest.$ac_ext <<_ACEOF 2440/* confdefs.h. */ 2441_ACEOF 2442cat confdefs.h >>conftest.$ac_ext 2443cat >>conftest.$ac_ext <<_ACEOF 2444/* end confdefs.h. */ 2445 2446int 2447main () 2448{ 2449 2450 ; 2451 return 0; 2452} 2453_ACEOF 2454rm -f conftest.o conftest.obj 2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2456 (eval $ac_compile) 2>&5 2457 ac_status=$? 2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2459 (exit $ac_status); }; then 2460 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2461 case $ac_file in 2462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2463 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2464 break;; 2465 esac 2466done 2467else 2468 echo "$as_me: failed program was:" >&5 2469sed 's/^/| /' conftest.$ac_ext >&5 2470 2471{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2472See \`config.log' for more details." >&5 2473echo "$as_me: error: cannot compute suffix of object files: cannot compile 2474See \`config.log' for more details." >&2;} 2475 { (exit 1); exit 1; }; } 2476fi 2477 2478rm -f conftest.$ac_cv_objext conftest.$ac_ext 2479fi 2480echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2481echo "${ECHO_T}$ac_cv_objext" >&6 2482OBJEXT=$ac_cv_objext 2483ac_objext=$OBJEXT 2484echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2485echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2486if test "${ac_cv_c_compiler_gnu+set}" = set; then 2487 echo $ECHO_N "(cached) $ECHO_C" >&6 2488else 2489 cat >conftest.$ac_ext <<_ACEOF 2490/* confdefs.h. */ 2491_ACEOF 2492cat confdefs.h >>conftest.$ac_ext 2493cat >>conftest.$ac_ext <<_ACEOF 2494/* end confdefs.h. */ 2495 2496int 2497main () 2498{ 2499#ifndef __GNUC__ 2500 choke me 2501#endif 2502 2503 ; 2504 return 0; 2505} 2506_ACEOF 2507rm -f conftest.$ac_objext 2508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2509 (eval $ac_compile) 2>conftest.er1 2510 ac_status=$? 2511 grep -v '^ *+' conftest.er1 >conftest.err 2512 rm -f conftest.er1 2513 cat conftest.err >&5 2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2515 (exit $ac_status); } && 2516 { ac_try='test -z "$ac_c_werror_flag" 2517 || test ! -s conftest.err' 2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2519 (eval $ac_try) 2>&5 2520 ac_status=$? 2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2522 (exit $ac_status); }; } && 2523 { ac_try='test -s conftest.$ac_objext' 2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2525 (eval $ac_try) 2>&5 2526 ac_status=$? 2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2528 (exit $ac_status); }; }; then 2529 ac_compiler_gnu=yes 2530else 2531 echo "$as_me: failed program was:" >&5 2532sed 's/^/| /' conftest.$ac_ext >&5 2533 2534ac_compiler_gnu=no 2535fi 2536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2537ac_cv_c_compiler_gnu=$ac_compiler_gnu 2538 2539fi 2540echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2541echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2542GCC=`test $ac_compiler_gnu = yes && echo yes` 2543ac_test_CFLAGS=${CFLAGS+set} 2544ac_save_CFLAGS=$CFLAGS 2545CFLAGS="-g" 2546echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2547echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2548if test "${ac_cv_prog_cc_g+set}" = set; then 2549 echo $ECHO_N "(cached) $ECHO_C" >&6 2550else 2551 cat >conftest.$ac_ext <<_ACEOF 2552/* confdefs.h. */ 2553_ACEOF 2554cat confdefs.h >>conftest.$ac_ext 2555cat >>conftest.$ac_ext <<_ACEOF 2556/* end confdefs.h. */ 2557 2558int 2559main () 2560{ 2561 2562 ; 2563 return 0; 2564} 2565_ACEOF 2566rm -f conftest.$ac_objext 2567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2568 (eval $ac_compile) 2>conftest.er1 2569 ac_status=$? 2570 grep -v '^ *+' conftest.er1 >conftest.err 2571 rm -f conftest.er1 2572 cat conftest.err >&5 2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2574 (exit $ac_status); } && 2575 { ac_try='test -z "$ac_c_werror_flag" 2576 || test ! -s conftest.err' 2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2578 (eval $ac_try) 2>&5 2579 ac_status=$? 2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2581 (exit $ac_status); }; } && 2582 { ac_try='test -s conftest.$ac_objext' 2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2584 (eval $ac_try) 2>&5 2585 ac_status=$? 2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2587 (exit $ac_status); }; }; then 2588 ac_cv_prog_cc_g=yes 2589else 2590 echo "$as_me: failed program was:" >&5 2591sed 's/^/| /' conftest.$ac_ext >&5 2592 2593ac_cv_prog_cc_g=no 2594fi 2595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2596fi 2597echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2598echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2599if test "$ac_test_CFLAGS" = set; then 2600 CFLAGS=$ac_save_CFLAGS 2601elif test $ac_cv_prog_cc_g = yes; then 2602 if test "$GCC" = yes; then 2603 CFLAGS="-g -O2" 2604 else 2605 CFLAGS="-g" 2606 fi 2607else 2608 if test "$GCC" = yes; then 2609 CFLAGS="-O2" 2610 else 2611 CFLAGS= 2612 fi 2613fi 2614echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2615echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2616if test "${ac_cv_prog_cc_stdc+set}" = set; then 2617 echo $ECHO_N "(cached) $ECHO_C" >&6 2618else 2619 ac_cv_prog_cc_stdc=no 2620ac_save_CC=$CC 2621cat >conftest.$ac_ext <<_ACEOF 2622/* confdefs.h. */ 2623_ACEOF 2624cat confdefs.h >>conftest.$ac_ext 2625cat >>conftest.$ac_ext <<_ACEOF 2626/* end confdefs.h. */ 2627#include <stdarg.h> 2628#include <stdio.h> 2629#include <sys/types.h> 2630#include <sys/stat.h> 2631/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2632struct buf { int x; }; 2633FILE * (*rcsopen) (struct buf *, struct stat *, int); 2634static char *e (p, i) 2635 char **p; 2636 int i; 2637{ 2638 return p[i]; 2639} 2640static char *f (char * (*g) (char **, int), char **p, ...) 2641{ 2642 char *s; 2643 va_list v; 2644 va_start (v,p); 2645 s = g (p, va_arg (v,int)); 2646 va_end (v); 2647 return s; 2648} 2649 2650/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2651 function prototypes and stuff, but not '\xHH' hex character constants. 2652 These don't provoke an error unfortunately, instead are silently treated 2653 as 'x'. The following induces an error, until -std1 is added to get 2654 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2655 array size at least. It's necessary to write '\x00'==0 to get something 2656 that's true only with -std1. */ 2657int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2658 2659int test (int i, double x); 2660struct s1 {int (*f) (int a);}; 2661struct s2 {int (*f) (double a);}; 2662int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2663int argc; 2664char **argv; 2665int 2666main () 2667{ 2668return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2669 ; 2670 return 0; 2671} 2672_ACEOF 2673# Don't try gcc -ansi; that turns off useful extensions and 2674# breaks some systems' header files. 2675# AIX -qlanglvl=ansi 2676# Ultrix and OSF/1 -std1 2677# HP-UX 10.20 and later -Ae 2678# HP-UX older versions -Aa -D_HPUX_SOURCE 2679# SVR4 -Xc -D__EXTENSIONS__ 2680for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2681do 2682 CC="$ac_save_CC $ac_arg" 2683 rm -f conftest.$ac_objext 2684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2685 (eval $ac_compile) 2>conftest.er1 2686 ac_status=$? 2687 grep -v '^ *+' conftest.er1 >conftest.err 2688 rm -f conftest.er1 2689 cat conftest.err >&5 2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2691 (exit $ac_status); } && 2692 { ac_try='test -z "$ac_c_werror_flag" 2693 || test ! -s conftest.err' 2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2695 (eval $ac_try) 2>&5 2696 ac_status=$? 2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2698 (exit $ac_status); }; } && 2699 { ac_try='test -s conftest.$ac_objext' 2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2701 (eval $ac_try) 2>&5 2702 ac_status=$? 2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2704 (exit $ac_status); }; }; then 2705 ac_cv_prog_cc_stdc=$ac_arg 2706break 2707else 2708 echo "$as_me: failed program was:" >&5 2709sed 's/^/| /' conftest.$ac_ext >&5 2710 2711fi 2712rm -f conftest.err conftest.$ac_objext 2713done 2714rm -f conftest.$ac_ext conftest.$ac_objext 2715CC=$ac_save_CC 2716 2717fi 2718 2719case "x$ac_cv_prog_cc_stdc" in 2720 x|xno) 2721 echo "$as_me:$LINENO: result: none needed" >&5 2722echo "${ECHO_T}none needed" >&6 ;; 2723 *) 2724 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2725echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2726 CC="$CC $ac_cv_prog_cc_stdc" ;; 2727esac 2728 2729# Some people use a C++ compiler to compile C. Since we use `exit', 2730# in C++ we need to declare it. In case someone uses the same compiler 2731# for both compiling C and C++ we need to have the C++ compiler decide 2732# the declaration of exit, since it's the most demanding environment. 2733cat >conftest.$ac_ext <<_ACEOF 2734#ifndef __cplusplus 2735 choke me 2736#endif 2737_ACEOF 2738rm -f conftest.$ac_objext 2739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2740 (eval $ac_compile) 2>conftest.er1 2741 ac_status=$? 2742 grep -v '^ *+' conftest.er1 >conftest.err 2743 rm -f conftest.er1 2744 cat conftest.err >&5 2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2746 (exit $ac_status); } && 2747 { ac_try='test -z "$ac_c_werror_flag" 2748 || test ! -s conftest.err' 2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2750 (eval $ac_try) 2>&5 2751 ac_status=$? 2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2753 (exit $ac_status); }; } && 2754 { ac_try='test -s conftest.$ac_objext' 2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2756 (eval $ac_try) 2>&5 2757 ac_status=$? 2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2759 (exit $ac_status); }; }; then 2760 for ac_declaration in \ 2761 '' \ 2762 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2763 'extern "C" void std::exit (int); using std::exit;' \ 2764 'extern "C" void exit (int) throw ();' \ 2765 'extern "C" void exit (int);' \ 2766 'void exit (int);' 2767do 2768 cat >conftest.$ac_ext <<_ACEOF 2769/* confdefs.h. */ 2770_ACEOF 2771cat confdefs.h >>conftest.$ac_ext 2772cat >>conftest.$ac_ext <<_ACEOF 2773/* end confdefs.h. */ 2774$ac_declaration 2775#include <stdlib.h> 2776int 2777main () 2778{ 2779exit (42); 2780 ; 2781 return 0; 2782} 2783_ACEOF 2784rm -f conftest.$ac_objext 2785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2786 (eval $ac_compile) 2>conftest.er1 2787 ac_status=$? 2788 grep -v '^ *+' conftest.er1 >conftest.err 2789 rm -f conftest.er1 2790 cat conftest.err >&5 2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2792 (exit $ac_status); } && 2793 { ac_try='test -z "$ac_c_werror_flag" 2794 || test ! -s conftest.err' 2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2796 (eval $ac_try) 2>&5 2797 ac_status=$? 2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2799 (exit $ac_status); }; } && 2800 { ac_try='test -s conftest.$ac_objext' 2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2802 (eval $ac_try) 2>&5 2803 ac_status=$? 2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2805 (exit $ac_status); }; }; then 2806 : 2807else 2808 echo "$as_me: failed program was:" >&5 2809sed 's/^/| /' conftest.$ac_ext >&5 2810 2811continue 2812fi 2813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2814 cat >conftest.$ac_ext <<_ACEOF 2815/* confdefs.h. */ 2816_ACEOF 2817cat confdefs.h >>conftest.$ac_ext 2818cat >>conftest.$ac_ext <<_ACEOF 2819/* end confdefs.h. */ 2820$ac_declaration 2821int 2822main () 2823{ 2824exit (42); 2825 ; 2826 return 0; 2827} 2828_ACEOF 2829rm -f conftest.$ac_objext 2830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2831 (eval $ac_compile) 2>conftest.er1 2832 ac_status=$? 2833 grep -v '^ *+' conftest.er1 >conftest.err 2834 rm -f conftest.er1 2835 cat conftest.err >&5 2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2837 (exit $ac_status); } && 2838 { ac_try='test -z "$ac_c_werror_flag" 2839 || test ! -s conftest.err' 2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2841 (eval $ac_try) 2>&5 2842 ac_status=$? 2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2844 (exit $ac_status); }; } && 2845 { ac_try='test -s conftest.$ac_objext' 2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2847 (eval $ac_try) 2>&5 2848 ac_status=$? 2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2850 (exit $ac_status); }; }; then 2851 break 2852else 2853 echo "$as_me: failed program was:" >&5 2854sed 's/^/| /' conftest.$ac_ext >&5 2855 2856fi 2857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2858done 2859rm -f conftest* 2860if test -n "$ac_declaration"; then 2861 echo '#ifdef __cplusplus' >>confdefs.h 2862 echo $ac_declaration >>confdefs.h 2863 echo '#endif' >>confdefs.h 2864fi 2865 2866else 2867 echo "$as_me: failed program was:" >&5 2868sed 's/^/| /' conftest.$ac_ext >&5 2869 2870fi 2871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2872ac_ext=c 2873ac_cpp='$CPP $CPPFLAGS' 2874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2876ac_compiler_gnu=$ac_cv_c_compiler_gnu 2877 2878 ac_ext=c 2879ac_cpp='$CPP $CPPFLAGS' 2880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2882ac_compiler_gnu=$ac_cv_c_compiler_gnu 2883echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2884echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2885# On Suns, sometimes $CPP names a directory. 2886if test -n "$CPP" && test -d "$CPP"; then 2887 CPP= 2888fi 2889if test -z "$CPP"; then 2890 if test "${ac_cv_prog_CPP+set}" = set; then 2891 echo $ECHO_N "(cached) $ECHO_C" >&6 2892else 2893 # Double quotes because CPP needs to be expanded 2894 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2895 do 2896 ac_preproc_ok=false 2897for ac_c_preproc_warn_flag in '' yes 2898do 2899 # Use a header file that comes with gcc, so configuring glibc 2900 # with a fresh cross-compiler works. 2901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2902 # <limits.h> exists even on freestanding compilers. 2903 # On the NeXT, cc -E runs the code through the compiler's parser, 2904 # not just through cpp. "Syntax error" is here to catch this case. 2905 cat >conftest.$ac_ext <<_ACEOF 2906/* confdefs.h. */ 2907_ACEOF 2908cat confdefs.h >>conftest.$ac_ext 2909cat >>conftest.$ac_ext <<_ACEOF 2910/* end confdefs.h. */ 2911#ifdef __STDC__ 2912# include <limits.h> 2913#else 2914# include <assert.h> 2915#endif 2916 Syntax error 2917_ACEOF 2918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2920 ac_status=$? 2921 grep -v '^ *+' conftest.er1 >conftest.err 2922 rm -f conftest.er1 2923 cat conftest.err >&5 2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2925 (exit $ac_status); } >/dev/null; then 2926 if test -s conftest.err; then 2927 ac_cpp_err=$ac_c_preproc_warn_flag 2928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2929 else 2930 ac_cpp_err= 2931 fi 2932else 2933 ac_cpp_err=yes 2934fi 2935if test -z "$ac_cpp_err"; then 2936 : 2937else 2938 echo "$as_me: failed program was:" >&5 2939sed 's/^/| /' conftest.$ac_ext >&5 2940 2941 # Broken: fails on valid input. 2942continue 2943fi 2944rm -f conftest.err conftest.$ac_ext 2945 2946 # OK, works on sane cases. Now check whether non-existent headers 2947 # can be detected and how. 2948 cat >conftest.$ac_ext <<_ACEOF 2949/* confdefs.h. */ 2950_ACEOF 2951cat confdefs.h >>conftest.$ac_ext 2952cat >>conftest.$ac_ext <<_ACEOF 2953/* end confdefs.h. */ 2954#include <ac_nonexistent.h> 2955_ACEOF 2956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2958 ac_status=$? 2959 grep -v '^ *+' conftest.er1 >conftest.err 2960 rm -f conftest.er1 2961 cat conftest.err >&5 2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2963 (exit $ac_status); } >/dev/null; then 2964 if test -s conftest.err; then 2965 ac_cpp_err=$ac_c_preproc_warn_flag 2966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2967 else 2968 ac_cpp_err= 2969 fi 2970else 2971 ac_cpp_err=yes 2972fi 2973if test -z "$ac_cpp_err"; then 2974 # Broken: success on invalid input. 2975continue 2976else 2977 echo "$as_me: failed program was:" >&5 2978sed 's/^/| /' conftest.$ac_ext >&5 2979 2980 # Passes both tests. 2981ac_preproc_ok=: 2982break 2983fi 2984rm -f conftest.err conftest.$ac_ext 2985 2986done 2987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2988rm -f conftest.err conftest.$ac_ext 2989if $ac_preproc_ok; then 2990 break 2991fi 2992 2993 done 2994 ac_cv_prog_CPP=$CPP 2995 2996fi 2997 CPP=$ac_cv_prog_CPP 2998else 2999 ac_cv_prog_CPP=$CPP 3000fi 3001echo "$as_me:$LINENO: result: $CPP" >&5 3002echo "${ECHO_T}$CPP" >&6 3003ac_preproc_ok=false 3004for ac_c_preproc_warn_flag in '' yes 3005do 3006 # Use a header file that comes with gcc, so configuring glibc 3007 # with a fresh cross-compiler works. 3008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3009 # <limits.h> exists even on freestanding compilers. 3010 # On the NeXT, cc -E runs the code through the compiler's parser, 3011 # not just through cpp. "Syntax error" is here to catch this case. 3012 cat >conftest.$ac_ext <<_ACEOF 3013/* confdefs.h. */ 3014_ACEOF 3015cat confdefs.h >>conftest.$ac_ext 3016cat >>conftest.$ac_ext <<_ACEOF 3017/* end confdefs.h. */ 3018#ifdef __STDC__ 3019# include <limits.h> 3020#else 3021# include <assert.h> 3022#endif 3023 Syntax error 3024_ACEOF 3025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3027 ac_status=$? 3028 grep -v '^ *+' conftest.er1 >conftest.err 3029 rm -f conftest.er1 3030 cat conftest.err >&5 3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3032 (exit $ac_status); } >/dev/null; then 3033 if test -s conftest.err; then 3034 ac_cpp_err=$ac_c_preproc_warn_flag 3035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3036 else 3037 ac_cpp_err= 3038 fi 3039else 3040 ac_cpp_err=yes 3041fi 3042if test -z "$ac_cpp_err"; then 3043 : 3044else 3045 echo "$as_me: failed program was:" >&5 3046sed 's/^/| /' conftest.$ac_ext >&5 3047 3048 # Broken: fails on valid input. 3049continue 3050fi 3051rm -f conftest.err conftest.$ac_ext 3052 3053 # OK, works on sane cases. Now check whether non-existent headers 3054 # can be detected and how. 3055 cat >conftest.$ac_ext <<_ACEOF 3056/* confdefs.h. */ 3057_ACEOF 3058cat confdefs.h >>conftest.$ac_ext 3059cat >>conftest.$ac_ext <<_ACEOF 3060/* end confdefs.h. */ 3061#include <ac_nonexistent.h> 3062_ACEOF 3063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3065 ac_status=$? 3066 grep -v '^ *+' conftest.er1 >conftest.err 3067 rm -f conftest.er1 3068 cat conftest.err >&5 3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3070 (exit $ac_status); } >/dev/null; then 3071 if test -s conftest.err; then 3072 ac_cpp_err=$ac_c_preproc_warn_flag 3073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3074 else 3075 ac_cpp_err= 3076 fi 3077else 3078 ac_cpp_err=yes 3079fi 3080if test -z "$ac_cpp_err"; then 3081 # Broken: success on invalid input. 3082continue 3083else 3084 echo "$as_me: failed program was:" >&5 3085sed 's/^/| /' conftest.$ac_ext >&5 3086 3087 # Passes both tests. 3088ac_preproc_ok=: 3089break 3090fi 3091rm -f conftest.err conftest.$ac_ext 3092 3093done 3094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3095rm -f conftest.err conftest.$ac_ext 3096if $ac_preproc_ok; then 3097 : 3098else 3099 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3100See \`config.log' for more details." >&5 3101echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3102See \`config.log' for more details." >&2;} 3103 { (exit 1); exit 1; }; } 3104fi 3105 3106ac_ext=c 3107ac_cpp='$CPP $CPPFLAGS' 3108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3110ac_compiler_gnu=$ac_cv_c_compiler_gnu 3111 3112 3113 # Find a good install program. We prefer a C program (faster), 3114# so one script is as good as another. But avoid the broken or 3115# incompatible versions: 3116# SysV /etc/install, /usr/sbin/install 3117# SunOS /usr/etc/install 3118# IRIX /sbin/install 3119# AIX /bin/install 3120# AmigaOS /C/install, which installs bootblocks on floppy discs 3121# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3122# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3123# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3124# OS/2's system install, which has a completely different semantic 3125# ./install, which can be erroneously created by make from ./install.sh. 3126echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3127echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3128if test -z "$INSTALL"; then 3129if test "${ac_cv_path_install+set}" = set; then 3130 echo $ECHO_N "(cached) $ECHO_C" >&6 3131else 3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3133for as_dir in $PATH 3134do 3135 IFS=$as_save_IFS 3136 test -z "$as_dir" && as_dir=. 3137 # Account for people who put trailing slashes in PATH elements. 3138case $as_dir/ in 3139 ./ | .// | /cC/* | \ 3140 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3141 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3142 /usr/ucb/* ) ;; 3143 *) 3144 # OSF1 and SCO ODT 3.0 have their own names for install. 3145 # Don't use installbsd from OSF since it installs stuff as root 3146 # by default. 3147 for ac_prog in ginstall scoinst install; do 3148 for ac_exec_ext in '' $ac_executable_extensions; do 3149 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3150 if test $ac_prog = install && 3151 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3152 # AIX install. It has an incompatible calling convention. 3153 : 3154 elif test $ac_prog = install && 3155 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3156 # program-specific install script used by HP pwplus--don't use. 3157 : 3158 else 3159 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3160 break 3 3161 fi 3162 fi 3163 done 3164 done 3165 ;; 3166esac 3167done 3168 3169 3170fi 3171 if test "${ac_cv_path_install+set}" = set; then 3172 INSTALL=$ac_cv_path_install 3173 else 3174 # As a last resort, use the slow shell script. We don't cache a 3175 # path for INSTALL within a source directory, because that will 3176 # break other packages using the cache if that directory is 3177 # removed, or if the path is relative. 3178 INSTALL=$ac_install_sh 3179 fi 3180fi 3181echo "$as_me:$LINENO: result: $INSTALL" >&5 3182echo "${ECHO_T}$INSTALL" >&6 3183 3184# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3185# It thinks the first close brace ends the variable substitution. 3186test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3187 3188test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3189 3190test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3191 3192 3193 #-------------------------------------------------------------------- 3194 # Checks to see if the make program sets the $MAKE variable. 3195 #-------------------------------------------------------------------- 3196 3197 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3198echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3199set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3200if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3201 echo $ECHO_N "(cached) $ECHO_C" >&6 3202else 3203 cat >conftest.make <<\_ACEOF 3204all: 3205 @echo 'ac_maketemp="$(MAKE)"' 3206_ACEOF 3207# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3208eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3209if test -n "$ac_maketemp"; then 3210 eval ac_cv_prog_make_${ac_make}_set=yes 3211else 3212 eval ac_cv_prog_make_${ac_make}_set=no 3213fi 3214rm -f conftest.make 3215fi 3216if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3217 echo "$as_me:$LINENO: result: yes" >&5 3218echo "${ECHO_T}yes" >&6 3219 SET_MAKE= 3220else 3221 echo "$as_me:$LINENO: result: no" >&5 3222echo "${ECHO_T}no" >&6 3223 SET_MAKE="MAKE=${MAKE-make}" 3224fi 3225 3226 3227 #-------------------------------------------------------------------- 3228 # Find ranlib 3229 #-------------------------------------------------------------------- 3230 3231 if test -n "$ac_tool_prefix"; then 3232 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3233set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3234echo "$as_me:$LINENO: checking for $ac_word" >&5 3235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3236if test "${ac_cv_prog_RANLIB+set}" = set; then 3237 echo $ECHO_N "(cached) $ECHO_C" >&6 3238else 3239 if test -n "$RANLIB"; then 3240 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3241else 3242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3243for as_dir in $PATH 3244do 3245 IFS=$as_save_IFS 3246 test -z "$as_dir" && as_dir=. 3247 for ac_exec_ext in '' $ac_executable_extensions; do 3248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3249 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3251 break 2 3252 fi 3253done 3254done 3255 3256fi 3257fi 3258RANLIB=$ac_cv_prog_RANLIB 3259if test -n "$RANLIB"; then 3260 echo "$as_me:$LINENO: result: $RANLIB" >&5 3261echo "${ECHO_T}$RANLIB" >&6 3262else 3263 echo "$as_me:$LINENO: result: no" >&5 3264echo "${ECHO_T}no" >&6 3265fi 3266 3267fi 3268if test -z "$ac_cv_prog_RANLIB"; then 3269 ac_ct_RANLIB=$RANLIB 3270 # Extract the first word of "ranlib", so it can be a program name with args. 3271set dummy ranlib; ac_word=$2 3272echo "$as_me:$LINENO: checking for $ac_word" >&5 3273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3274if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3275 echo $ECHO_N "(cached) $ECHO_C" >&6 3276else 3277 if test -n "$ac_ct_RANLIB"; then 3278 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3279else 3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3281for as_dir in $PATH 3282do 3283 IFS=$as_save_IFS 3284 test -z "$as_dir" && as_dir=. 3285 for ac_exec_ext in '' $ac_executable_extensions; do 3286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3287 ac_cv_prog_ac_ct_RANLIB="ranlib" 3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3289 break 2 3290 fi 3291done 3292done 3293 3294 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3295fi 3296fi 3297ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3298if test -n "$ac_ct_RANLIB"; then 3299 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3300echo "${ECHO_T}$ac_ct_RANLIB" >&6 3301else 3302 echo "$as_me:$LINENO: result: no" >&5 3303echo "${ECHO_T}no" >&6 3304fi 3305 3306 RANLIB=$ac_ct_RANLIB 3307else 3308 RANLIB="$ac_cv_prog_RANLIB" 3309fi 3310 3311 3312 #-------------------------------------------------------------------- 3313 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3314 #-------------------------------------------------------------------- 3315 3316 3317 3318 3319 3320 3321echo "$as_me:$LINENO: checking for egrep" >&5 3322echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3323if test "${ac_cv_prog_egrep+set}" = set; then 3324 echo $ECHO_N "(cached) $ECHO_C" >&6 3325else 3326 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3327 then ac_cv_prog_egrep='grep -E' 3328 else ac_cv_prog_egrep='egrep' 3329 fi 3330fi 3331echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3332echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3333 EGREP=$ac_cv_prog_egrep 3334 3335 3336echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3337echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3338if test "${ac_cv_header_stdc+set}" = set; then 3339 echo $ECHO_N "(cached) $ECHO_C" >&6 3340else 3341 cat >conftest.$ac_ext <<_ACEOF 3342/* confdefs.h. */ 3343_ACEOF 3344cat confdefs.h >>conftest.$ac_ext 3345cat >>conftest.$ac_ext <<_ACEOF 3346/* end confdefs.h. */ 3347#include <stdlib.h> 3348#include <stdarg.h> 3349#include <string.h> 3350#include <float.h> 3351 3352int 3353main () 3354{ 3355 3356 ; 3357 return 0; 3358} 3359_ACEOF 3360rm -f conftest.$ac_objext 3361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3362 (eval $ac_compile) 2>conftest.er1 3363 ac_status=$? 3364 grep -v '^ *+' conftest.er1 >conftest.err 3365 rm -f conftest.er1 3366 cat conftest.err >&5 3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3368 (exit $ac_status); } && 3369 { ac_try='test -z "$ac_c_werror_flag" 3370 || test ! -s conftest.err' 3371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3372 (eval $ac_try) 2>&5 3373 ac_status=$? 3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3375 (exit $ac_status); }; } && 3376 { ac_try='test -s conftest.$ac_objext' 3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3378 (eval $ac_try) 2>&5 3379 ac_status=$? 3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3381 (exit $ac_status); }; }; then 3382 ac_cv_header_stdc=yes 3383else 3384 echo "$as_me: failed program was:" >&5 3385sed 's/^/| /' conftest.$ac_ext >&5 3386 3387ac_cv_header_stdc=no 3388fi 3389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3390 3391if test $ac_cv_header_stdc = yes; then 3392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3393 cat >conftest.$ac_ext <<_ACEOF 3394/* confdefs.h. */ 3395_ACEOF 3396cat confdefs.h >>conftest.$ac_ext 3397cat >>conftest.$ac_ext <<_ACEOF 3398/* end confdefs.h. */ 3399#include <string.h> 3400 3401_ACEOF 3402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3403 $EGREP "memchr" >/dev/null 2>&1; then 3404 : 3405else 3406 ac_cv_header_stdc=no 3407fi 3408rm -f conftest* 3409 3410fi 3411 3412if test $ac_cv_header_stdc = yes; then 3413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3414 cat >conftest.$ac_ext <<_ACEOF 3415/* confdefs.h. */ 3416_ACEOF 3417cat confdefs.h >>conftest.$ac_ext 3418cat >>conftest.$ac_ext <<_ACEOF 3419/* end confdefs.h. */ 3420#include <stdlib.h> 3421 3422_ACEOF 3423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3424 $EGREP "free" >/dev/null 2>&1; then 3425 : 3426else 3427 ac_cv_header_stdc=no 3428fi 3429rm -f conftest* 3430 3431fi 3432 3433if test $ac_cv_header_stdc = yes; then 3434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3435 if test "$cross_compiling" = yes; then 3436 : 3437else 3438 cat >conftest.$ac_ext <<_ACEOF 3439/* confdefs.h. */ 3440_ACEOF 3441cat confdefs.h >>conftest.$ac_ext 3442cat >>conftest.$ac_ext <<_ACEOF 3443/* end confdefs.h. */ 3444#include <ctype.h> 3445#if ((' ' & 0x0FF) == 0x020) 3446# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3447# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3448#else 3449# define ISLOWER(c) \ 3450 (('a' <= (c) && (c) <= 'i') \ 3451 || ('j' <= (c) && (c) <= 'r') \ 3452 || ('s' <= (c) && (c) <= 'z')) 3453# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3454#endif 3455 3456#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3457int 3458main () 3459{ 3460 int i; 3461 for (i = 0; i < 256; i++) 3462 if (XOR (islower (i), ISLOWER (i)) 3463 || toupper (i) != TOUPPER (i)) 3464 exit(2); 3465 exit (0); 3466} 3467_ACEOF 3468rm -f conftest$ac_exeext 3469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3470 (eval $ac_link) 2>&5 3471 ac_status=$? 3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3475 (eval $ac_try) 2>&5 3476 ac_status=$? 3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3478 (exit $ac_status); }; }; then 3479 : 3480else 3481 echo "$as_me: program exited with status $ac_status" >&5 3482echo "$as_me: failed program was:" >&5 3483sed 's/^/| /' conftest.$ac_ext >&5 3484 3485( exit $ac_status ) 3486ac_cv_header_stdc=no 3487fi 3488rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3489fi 3490fi 3491fi 3492echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3493echo "${ECHO_T}$ac_cv_header_stdc" >&6 3494if test $ac_cv_header_stdc = yes; then 3495 3496cat >>confdefs.h <<\_ACEOF 3497#define STDC_HEADERS 1 3498_ACEOF 3499 3500fi 3501 3502# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3513 inttypes.h stdint.h unistd.h 3514do 3515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3516echo "$as_me:$LINENO: checking for $ac_header" >&5 3517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3518if eval "test \"\${$as_ac_Header+set}\" = set"; then 3519 echo $ECHO_N "(cached) $ECHO_C" >&6 3520else 3521 cat >conftest.$ac_ext <<_ACEOF 3522/* confdefs.h. */ 3523_ACEOF 3524cat confdefs.h >>conftest.$ac_ext 3525cat >>conftest.$ac_ext <<_ACEOF 3526/* end confdefs.h. */ 3527$ac_includes_default 3528 3529#include <$ac_header> 3530_ACEOF 3531rm -f conftest.$ac_objext 3532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3533 (eval $ac_compile) 2>conftest.er1 3534 ac_status=$? 3535 grep -v '^ *+' conftest.er1 >conftest.err 3536 rm -f conftest.er1 3537 cat conftest.err >&5 3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3539 (exit $ac_status); } && 3540 { ac_try='test -z "$ac_c_werror_flag" 3541 || test ! -s conftest.err' 3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3543 (eval $ac_try) 2>&5 3544 ac_status=$? 3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3546 (exit $ac_status); }; } && 3547 { ac_try='test -s conftest.$ac_objext' 3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3549 (eval $ac_try) 2>&5 3550 ac_status=$? 3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3552 (exit $ac_status); }; }; then 3553 eval "$as_ac_Header=yes" 3554else 3555 echo "$as_me: failed program was:" >&5 3556sed 's/^/| /' conftest.$ac_ext >&5 3557 3558eval "$as_ac_Header=no" 3559fi 3560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3561fi 3562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3564if test `eval echo '${'$as_ac_Header'}'` = yes; then 3565 cat >>confdefs.h <<_ACEOF 3566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3567_ACEOF 3568 3569fi 3570 3571done 3572 3573 3574 3575 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 3576 3577 3578 #------------------------------------------------------------------------ 3579 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 3580 # It makes compiling go faster. (This is only a performance feature.) 3581 #------------------------------------------------------------------------ 3582 3583 if test -z "$no_pipe" -a -n "$GCC"; then 3584 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 3585echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6 3586if test "${tcl_cv_cc_pipe+set}" = set; then 3587 echo $ECHO_N "(cached) $ECHO_C" >&6 3588else 3589 3590 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 3591 cat >conftest.$ac_ext <<_ACEOF 3592/* confdefs.h. */ 3593_ACEOF 3594cat confdefs.h >>conftest.$ac_ext 3595cat >>conftest.$ac_ext <<_ACEOF 3596/* end confdefs.h. */ 3597 3598int 3599main () 3600{ 3601 3602 ; 3603 return 0; 3604} 3605_ACEOF 3606rm -f conftest.$ac_objext 3607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3608 (eval $ac_compile) 2>conftest.er1 3609 ac_status=$? 3610 grep -v '^ *+' conftest.er1 >conftest.err 3611 rm -f conftest.er1 3612 cat conftest.err >&5 3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3614 (exit $ac_status); } && 3615 { ac_try='test -z "$ac_c_werror_flag" 3616 || test ! -s conftest.err' 3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3618 (eval $ac_try) 2>&5 3619 ac_status=$? 3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3621 (exit $ac_status); }; } && 3622 { ac_try='test -s conftest.$ac_objext' 3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3624 (eval $ac_try) 2>&5 3625 ac_status=$? 3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3627 (exit $ac_status); }; }; then 3628 tcl_cv_cc_pipe=yes 3629else 3630 echo "$as_me: failed program was:" >&5 3631sed 's/^/| /' conftest.$ac_ext >&5 3632 3633tcl_cv_cc_pipe=no 3634fi 3635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3636 CFLAGS=$hold_cflags 3637fi 3638echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 3639echo "${ECHO_T}$tcl_cv_cc_pipe" >&6 3640 if test $tcl_cv_cc_pipe = yes; then 3641 CFLAGS="$CFLAGS -pipe" 3642 fi 3643 fi 3644 3645 #-------------------------------------------------------------------- 3646 # Common compiler flag setup 3647 #-------------------------------------------------------------------- 3648 3649 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 3650echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 3651if test "${ac_cv_c_bigendian+set}" = set; then 3652 echo $ECHO_N "(cached) $ECHO_C" >&6 3653else 3654 # See if sys/param.h defines the BYTE_ORDER macro. 3655cat >conftest.$ac_ext <<_ACEOF 3656/* confdefs.h. */ 3657_ACEOF 3658cat confdefs.h >>conftest.$ac_ext 3659cat >>conftest.$ac_ext <<_ACEOF 3660/* end confdefs.h. */ 3661#include <sys/types.h> 3662#include <sys/param.h> 3663 3664int 3665main () 3666{ 3667#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3668 bogus endian macros 3669#endif 3670 3671 ; 3672 return 0; 3673} 3674_ACEOF 3675rm -f conftest.$ac_objext 3676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3677 (eval $ac_compile) 2>conftest.er1 3678 ac_status=$? 3679 grep -v '^ *+' conftest.er1 >conftest.err 3680 rm -f conftest.er1 3681 cat conftest.err >&5 3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3683 (exit $ac_status); } && 3684 { ac_try='test -z "$ac_c_werror_flag" 3685 || test ! -s conftest.err' 3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3687 (eval $ac_try) 2>&5 3688 ac_status=$? 3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3690 (exit $ac_status); }; } && 3691 { ac_try='test -s conftest.$ac_objext' 3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3693 (eval $ac_try) 2>&5 3694 ac_status=$? 3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3696 (exit $ac_status); }; }; then 3697 # It does; now see whether it defined to BIG_ENDIAN or not. 3698cat >conftest.$ac_ext <<_ACEOF 3699/* confdefs.h. */ 3700_ACEOF 3701cat confdefs.h >>conftest.$ac_ext 3702cat >>conftest.$ac_ext <<_ACEOF 3703/* end confdefs.h. */ 3704#include <sys/types.h> 3705#include <sys/param.h> 3706 3707int 3708main () 3709{ 3710#if BYTE_ORDER != BIG_ENDIAN 3711 not big endian 3712#endif 3713 3714 ; 3715 return 0; 3716} 3717_ACEOF 3718rm -f conftest.$ac_objext 3719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3720 (eval $ac_compile) 2>conftest.er1 3721 ac_status=$? 3722 grep -v '^ *+' conftest.er1 >conftest.err 3723 rm -f conftest.er1 3724 cat conftest.err >&5 3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3726 (exit $ac_status); } && 3727 { ac_try='test -z "$ac_c_werror_flag" 3728 || test ! -s conftest.err' 3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3730 (eval $ac_try) 2>&5 3731 ac_status=$? 3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3733 (exit $ac_status); }; } && 3734 { ac_try='test -s conftest.$ac_objext' 3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3736 (eval $ac_try) 2>&5 3737 ac_status=$? 3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3739 (exit $ac_status); }; }; then 3740 ac_cv_c_bigendian=yes 3741else 3742 echo "$as_me: failed program was:" >&5 3743sed 's/^/| /' conftest.$ac_ext >&5 3744 3745ac_cv_c_bigendian=no 3746fi 3747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3748else 3749 echo "$as_me: failed program was:" >&5 3750sed 's/^/| /' conftest.$ac_ext >&5 3751 3752# It does not; compile a test program. 3753if test "$cross_compiling" = yes; then 3754 # try to guess the endianness by grepping values into an object file 3755 ac_cv_c_bigendian=unknown 3756 cat >conftest.$ac_ext <<_ACEOF 3757/* confdefs.h. */ 3758_ACEOF 3759cat confdefs.h >>conftest.$ac_ext 3760cat >>conftest.$ac_ext <<_ACEOF 3761/* end confdefs.h. */ 3762short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 3763short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 3764void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 3765short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 3766short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 3767void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 3768int 3769main () 3770{ 3771 _ascii (); _ebcdic (); 3772 ; 3773 return 0; 3774} 3775_ACEOF 3776rm -f conftest.$ac_objext 3777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3778 (eval $ac_compile) 2>conftest.er1 3779 ac_status=$? 3780 grep -v '^ *+' conftest.er1 >conftest.err 3781 rm -f conftest.er1 3782 cat conftest.err >&5 3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3784 (exit $ac_status); } && 3785 { ac_try='test -z "$ac_c_werror_flag" 3786 || test ! -s conftest.err' 3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3788 (eval $ac_try) 2>&5 3789 ac_status=$? 3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3791 (exit $ac_status); }; } && 3792 { ac_try='test -s conftest.$ac_objext' 3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3794 (eval $ac_try) 2>&5 3795 ac_status=$? 3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3797 (exit $ac_status); }; }; then 3798 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 3799 ac_cv_c_bigendian=yes 3800fi 3801if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 3802 if test "$ac_cv_c_bigendian" = unknown; then 3803 ac_cv_c_bigendian=no 3804 else 3805 # finding both strings is unlikely to happen, but who knows? 3806 ac_cv_c_bigendian=unknown 3807 fi 3808fi 3809else 3810 echo "$as_me: failed program was:" >&5 3811sed 's/^/| /' conftest.$ac_ext >&5 3812 3813fi 3814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3815else 3816 cat >conftest.$ac_ext <<_ACEOF 3817/* confdefs.h. */ 3818_ACEOF 3819cat confdefs.h >>conftest.$ac_ext 3820cat >>conftest.$ac_ext <<_ACEOF 3821/* end confdefs.h. */ 3822int 3823main () 3824{ 3825 /* Are we little or big endian? From Harbison&Steele. */ 3826 union 3827 { 3828 long l; 3829 char c[sizeof (long)]; 3830 } u; 3831 u.l = 1; 3832 exit (u.c[sizeof (long) - 1] == 1); 3833} 3834_ACEOF 3835rm -f conftest$ac_exeext 3836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3837 (eval $ac_link) 2>&5 3838 ac_status=$? 3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3842 (eval $ac_try) 2>&5 3843 ac_status=$? 3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3845 (exit $ac_status); }; }; then 3846 ac_cv_c_bigendian=no 3847else 3848 echo "$as_me: program exited with status $ac_status" >&5 3849echo "$as_me: failed program was:" >&5 3850sed 's/^/| /' conftest.$ac_ext >&5 3851 3852( exit $ac_status ) 3853ac_cv_c_bigendian=yes 3854fi 3855rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3856fi 3857fi 3858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3859fi 3860echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 3861echo "${ECHO_T}$ac_cv_c_bigendian" >&6 3862case $ac_cv_c_bigendian in 3863 yes) 3864 3865cat >>confdefs.h <<\_ACEOF 3866#define WORDS_BIGENDIAN 1 3867_ACEOF 3868 ;; 3869 no) 3870 ;; 3871 *) 3872 { { echo "$as_me:$LINENO: error: unknown endianness 3873presetting ac_cv_c_bigendian=no (or yes) will help" >&5 3874echo "$as_me: error: unknown endianness 3875presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 3876 { (exit 1); exit 1; }; } ;; 3877esac 3878 3879 if test "${TEA_PLATFORM}" = "unix" ; then 3880 3881 #-------------------------------------------------------------------- 3882 # On a few very rare systems, all of the libm.a stuff is 3883 # already in libc.a. Set compiler flags accordingly. 3884 # Also, Linux requires the "ieee" library for math to work 3885 # right (and it must appear before "-lm"). 3886 #-------------------------------------------------------------------- 3887 3888 echo "$as_me:$LINENO: checking for sin" >&5 3889echo $ECHO_N "checking for sin... $ECHO_C" >&6 3890if test "${ac_cv_func_sin+set}" = set; then 3891 echo $ECHO_N "(cached) $ECHO_C" >&6 3892else 3893 cat >conftest.$ac_ext <<_ACEOF 3894/* confdefs.h. */ 3895_ACEOF 3896cat confdefs.h >>conftest.$ac_ext 3897cat >>conftest.$ac_ext <<_ACEOF 3898/* end confdefs.h. */ 3899/* Define sin to an innocuous variant, in case <limits.h> declares sin. 3900 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3901#define sin innocuous_sin 3902 3903/* System header to define __stub macros and hopefully few prototypes, 3904 which can conflict with char sin (); below. 3905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3906 <limits.h> exists even on freestanding compilers. */ 3907 3908#ifdef __STDC__ 3909# include <limits.h> 3910#else 3911# include <assert.h> 3912#endif 3913 3914#undef sin 3915 3916/* Override any gcc2 internal prototype to avoid an error. */ 3917#ifdef __cplusplus 3918extern "C" 3919{ 3920#endif 3921/* We use char because int might match the return type of a gcc2 3922 builtin and then its argument prototype would still apply. */ 3923char sin (); 3924/* The GNU C library defines this for functions which it implements 3925 to always fail with ENOSYS. Some functions are actually named 3926 something starting with __ and the normal name is an alias. */ 3927#if defined (__stub_sin) || defined (__stub___sin) 3928choke me 3929#else 3930char (*f) () = sin; 3931#endif 3932#ifdef __cplusplus 3933} 3934#endif 3935 3936int 3937main () 3938{ 3939return f != sin; 3940 ; 3941 return 0; 3942} 3943_ACEOF 3944rm -f conftest.$ac_objext conftest$ac_exeext 3945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3946 (eval $ac_link) 2>conftest.er1 3947 ac_status=$? 3948 grep -v '^ *+' conftest.er1 >conftest.err 3949 rm -f conftest.er1 3950 cat conftest.err >&5 3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3952 (exit $ac_status); } && 3953 { ac_try='test -z "$ac_c_werror_flag" 3954 || test ! -s conftest.err' 3955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3956 (eval $ac_try) 2>&5 3957 ac_status=$? 3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3959 (exit $ac_status); }; } && 3960 { ac_try='test -s conftest$ac_exeext' 3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3962 (eval $ac_try) 2>&5 3963 ac_status=$? 3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3965 (exit $ac_status); }; }; then 3966 ac_cv_func_sin=yes 3967else 3968 echo "$as_me: failed program was:" >&5 3969sed 's/^/| /' conftest.$ac_ext >&5 3970 3971ac_cv_func_sin=no 3972fi 3973rm -f conftest.err conftest.$ac_objext \ 3974 conftest$ac_exeext conftest.$ac_ext 3975fi 3976echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 3977echo "${ECHO_T}$ac_cv_func_sin" >&6 3978if test $ac_cv_func_sin = yes; then 3979 MATH_LIBS="" 3980else 3981 MATH_LIBS="-lm" 3982fi 3983 3984 echo "$as_me:$LINENO: checking for main in -lieee" >&5 3985echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6 3986if test "${ac_cv_lib_ieee_main+set}" = set; then 3987 echo $ECHO_N "(cached) $ECHO_C" >&6 3988else 3989 ac_check_lib_save_LIBS=$LIBS 3990LIBS="-lieee $LIBS" 3991cat >conftest.$ac_ext <<_ACEOF 3992/* confdefs.h. */ 3993_ACEOF 3994cat confdefs.h >>conftest.$ac_ext 3995cat >>conftest.$ac_ext <<_ACEOF 3996/* end confdefs.h. */ 3997 3998 3999int 4000main () 4001{ 4002main (); 4003 ; 4004 return 0; 4005} 4006_ACEOF 4007rm -f conftest.$ac_objext conftest$ac_exeext 4008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4009 (eval $ac_link) 2>conftest.er1 4010 ac_status=$? 4011 grep -v '^ *+' conftest.er1 >conftest.err 4012 rm -f conftest.er1 4013 cat conftest.err >&5 4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4015 (exit $ac_status); } && 4016 { ac_try='test -z "$ac_c_werror_flag" 4017 || test ! -s conftest.err' 4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4019 (eval $ac_try) 2>&5 4020 ac_status=$? 4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4022 (exit $ac_status); }; } && 4023 { ac_try='test -s conftest$ac_exeext' 4024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4025 (eval $ac_try) 2>&5 4026 ac_status=$? 4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4028 (exit $ac_status); }; }; then 4029 ac_cv_lib_ieee_main=yes 4030else 4031 echo "$as_me: failed program was:" >&5 4032sed 's/^/| /' conftest.$ac_ext >&5 4033 4034ac_cv_lib_ieee_main=no 4035fi 4036rm -f conftest.err conftest.$ac_objext \ 4037 conftest$ac_exeext conftest.$ac_ext 4038LIBS=$ac_check_lib_save_LIBS 4039fi 4040echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4041echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6 4042if test $ac_cv_lib_ieee_main = yes; then 4043 MATH_LIBS="-lieee $MATH_LIBS" 4044fi 4045 4046 4047 #-------------------------------------------------------------------- 4048 # Interactive UNIX requires -linet instead of -lsocket, plus it 4049 # needs net/errno.h to define the socket-related error codes. 4050 #-------------------------------------------------------------------- 4051 4052 echo "$as_me:$LINENO: checking for main in -linet" >&5 4053echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6 4054if test "${ac_cv_lib_inet_main+set}" = set; then 4055 echo $ECHO_N "(cached) $ECHO_C" >&6 4056else 4057 ac_check_lib_save_LIBS=$LIBS 4058LIBS="-linet $LIBS" 4059cat >conftest.$ac_ext <<_ACEOF 4060/* confdefs.h. */ 4061_ACEOF 4062cat confdefs.h >>conftest.$ac_ext 4063cat >>conftest.$ac_ext <<_ACEOF 4064/* end confdefs.h. */ 4065 4066 4067int 4068main () 4069{ 4070main (); 4071 ; 4072 return 0; 4073} 4074_ACEOF 4075rm -f conftest.$ac_objext conftest$ac_exeext 4076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4077 (eval $ac_link) 2>conftest.er1 4078 ac_status=$? 4079 grep -v '^ *+' conftest.er1 >conftest.err 4080 rm -f conftest.er1 4081 cat conftest.err >&5 4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4083 (exit $ac_status); } && 4084 { ac_try='test -z "$ac_c_werror_flag" 4085 || test ! -s conftest.err' 4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4087 (eval $ac_try) 2>&5 4088 ac_status=$? 4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4090 (exit $ac_status); }; } && 4091 { ac_try='test -s conftest$ac_exeext' 4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4093 (eval $ac_try) 2>&5 4094 ac_status=$? 4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4096 (exit $ac_status); }; }; then 4097 ac_cv_lib_inet_main=yes 4098else 4099 echo "$as_me: failed program was:" >&5 4100sed 's/^/| /' conftest.$ac_ext >&5 4101 4102ac_cv_lib_inet_main=no 4103fi 4104rm -f conftest.err conftest.$ac_objext \ 4105 conftest$ac_exeext conftest.$ac_ext 4106LIBS=$ac_check_lib_save_LIBS 4107fi 4108echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4109echo "${ECHO_T}$ac_cv_lib_inet_main" >&6 4110if test $ac_cv_lib_inet_main = yes; then 4111 LIBS="$LIBS -linet" 4112fi 4113 4114 if test "${ac_cv_header_net_errno_h+set}" = set; then 4115 echo "$as_me:$LINENO: checking for net/errno.h" >&5 4116echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6 4117if test "${ac_cv_header_net_errno_h+set}" = set; then 4118 echo $ECHO_N "(cached) $ECHO_C" >&6 4119fi 4120echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4121echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6 4122else 4123 # Is the header compilable? 4124echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4125echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6 4126cat >conftest.$ac_ext <<_ACEOF 4127/* confdefs.h. */ 4128_ACEOF 4129cat confdefs.h >>conftest.$ac_ext 4130cat >>conftest.$ac_ext <<_ACEOF 4131/* end confdefs.h. */ 4132$ac_includes_default 4133#include <net/errno.h> 4134_ACEOF 4135rm -f conftest.$ac_objext 4136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4137 (eval $ac_compile) 2>conftest.er1 4138 ac_status=$? 4139 grep -v '^ *+' conftest.er1 >conftest.err 4140 rm -f conftest.er1 4141 cat conftest.err >&5 4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4143 (exit $ac_status); } && 4144 { ac_try='test -z "$ac_c_werror_flag" 4145 || test ! -s conftest.err' 4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4147 (eval $ac_try) 2>&5 4148 ac_status=$? 4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4150 (exit $ac_status); }; } && 4151 { ac_try='test -s conftest.$ac_objext' 4152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4153 (eval $ac_try) 2>&5 4154 ac_status=$? 4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4156 (exit $ac_status); }; }; then 4157 ac_header_compiler=yes 4158else 4159 echo "$as_me: failed program was:" >&5 4160sed 's/^/| /' conftest.$ac_ext >&5 4161 4162ac_header_compiler=no 4163fi 4164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4165echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4166echo "${ECHO_T}$ac_header_compiler" >&6 4167 4168# Is the header present? 4169echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4170echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6 4171cat >conftest.$ac_ext <<_ACEOF 4172/* confdefs.h. */ 4173_ACEOF 4174cat confdefs.h >>conftest.$ac_ext 4175cat >>conftest.$ac_ext <<_ACEOF 4176/* end confdefs.h. */ 4177#include <net/errno.h> 4178_ACEOF 4179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4181 ac_status=$? 4182 grep -v '^ *+' conftest.er1 >conftest.err 4183 rm -f conftest.er1 4184 cat conftest.err >&5 4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4186 (exit $ac_status); } >/dev/null; then 4187 if test -s conftest.err; then 4188 ac_cpp_err=$ac_c_preproc_warn_flag 4189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4190 else 4191 ac_cpp_err= 4192 fi 4193else 4194 ac_cpp_err=yes 4195fi 4196if test -z "$ac_cpp_err"; then 4197 ac_header_preproc=yes 4198else 4199 echo "$as_me: failed program was:" >&5 4200sed 's/^/| /' conftest.$ac_ext >&5 4201 4202 ac_header_preproc=no 4203fi 4204rm -f conftest.err conftest.$ac_ext 4205echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4206echo "${ECHO_T}$ac_header_preproc" >&6 4207 4208# So? What about this header? 4209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4210 yes:no: ) 4211 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4212echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4213 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4214echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4215 ac_header_preproc=yes 4216 ;; 4217 no:yes:* ) 4218 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4219echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4220 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4221echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4222 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4223echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4224 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4225echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4226 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4227echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4228 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4229echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4230 ( 4231 cat <<\_ASBOX 4232## -------------------------------- ## 4233## Report this to the tkpng lists. ## 4234## -------------------------------- ## 4235_ASBOX 4236 ) | 4237 sed "s/^/$as_me: WARNING: /" >&2 4238 ;; 4239esac 4240echo "$as_me:$LINENO: checking for net/errno.h" >&5 4241echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6 4242if test "${ac_cv_header_net_errno_h+set}" = set; then 4243 echo $ECHO_N "(cached) $ECHO_C" >&6 4244else 4245 ac_cv_header_net_errno_h=$ac_header_preproc 4246fi 4247echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4248echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6 4249 4250fi 4251if test $ac_cv_header_net_errno_h = yes; then 4252 4253 4254cat >>confdefs.h <<\_ACEOF 4255#define HAVE_NET_ERRNO_H 1 4256_ACEOF 4257 4258fi 4259 4260 4261 4262 #-------------------------------------------------------------------- 4263 # Check for the existence of the -lsocket and -lnsl libraries. 4264 # The order here is important, so that they end up in the right 4265 # order in the command line generated by make. Here are some 4266 # special considerations: 4267 # 1. Use "connect" and "accept" to check for -lsocket, and 4268 # "gethostbyname" to check for -lnsl. 4269 # 2. Use each function name only once: can't redo a check because 4270 # autoconf caches the results of the last check and won't redo it. 4271 # 3. Use -lnsl and -lsocket only if they supply procedures that 4272 # aren't already present in the normal libraries. This is because 4273 # IRIX 5.2 has libraries, but they aren't needed and they're 4274 # bogus: they goof up name resolution if used. 4275 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4276 # To get around this problem, check for both libraries together 4277 # if -lsocket doesn't work by itself. 4278 #-------------------------------------------------------------------- 4279 4280 tcl_checkBoth=0 4281 echo "$as_me:$LINENO: checking for connect" >&5 4282echo $ECHO_N "checking for connect... $ECHO_C" >&6 4283if test "${ac_cv_func_connect+set}" = set; then 4284 echo $ECHO_N "(cached) $ECHO_C" >&6 4285else 4286 cat >conftest.$ac_ext <<_ACEOF 4287/* confdefs.h. */ 4288_ACEOF 4289cat confdefs.h >>conftest.$ac_ext 4290cat >>conftest.$ac_ext <<_ACEOF 4291/* end confdefs.h. */ 4292/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4293 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4294#define connect innocuous_connect 4295 4296/* System header to define __stub macros and hopefully few prototypes, 4297 which can conflict with char connect (); below. 4298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4299 <limits.h> exists even on freestanding compilers. */ 4300 4301#ifdef __STDC__ 4302# include <limits.h> 4303#else 4304# include <assert.h> 4305#endif 4306 4307#undef connect 4308 4309/* Override any gcc2 internal prototype to avoid an error. */ 4310#ifdef __cplusplus 4311extern "C" 4312{ 4313#endif 4314/* We use char because int might match the return type of a gcc2 4315 builtin and then its argument prototype would still apply. */ 4316char connect (); 4317/* The GNU C library defines this for functions which it implements 4318 to always fail with ENOSYS. Some functions are actually named 4319 something starting with __ and the normal name is an alias. */ 4320#if defined (__stub_connect) || defined (__stub___connect) 4321choke me 4322#else 4323char (*f) () = connect; 4324#endif 4325#ifdef __cplusplus 4326} 4327#endif 4328 4329int 4330main () 4331{ 4332return f != connect; 4333 ; 4334 return 0; 4335} 4336_ACEOF 4337rm -f conftest.$ac_objext conftest$ac_exeext 4338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4339 (eval $ac_link) 2>conftest.er1 4340 ac_status=$? 4341 grep -v '^ *+' conftest.er1 >conftest.err 4342 rm -f conftest.er1 4343 cat conftest.err >&5 4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4345 (exit $ac_status); } && 4346 { ac_try='test -z "$ac_c_werror_flag" 4347 || test ! -s conftest.err' 4348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4349 (eval $ac_try) 2>&5 4350 ac_status=$? 4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4352 (exit $ac_status); }; } && 4353 { ac_try='test -s conftest$ac_exeext' 4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4355 (eval $ac_try) 2>&5 4356 ac_status=$? 4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4358 (exit $ac_status); }; }; then 4359 ac_cv_func_connect=yes 4360else 4361 echo "$as_me: failed program was:" >&5 4362sed 's/^/| /' conftest.$ac_ext >&5 4363 4364ac_cv_func_connect=no 4365fi 4366rm -f conftest.err conftest.$ac_objext \ 4367 conftest$ac_exeext conftest.$ac_ext 4368fi 4369echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4370echo "${ECHO_T}$ac_cv_func_connect" >&6 4371if test $ac_cv_func_connect = yes; then 4372 tcl_checkSocket=0 4373else 4374 tcl_checkSocket=1 4375fi 4376 4377 if test "$tcl_checkSocket" = 1; then 4378 echo "$as_me:$LINENO: checking for setsockopt" >&5 4379echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 4380if test "${ac_cv_func_setsockopt+set}" = set; then 4381 echo $ECHO_N "(cached) $ECHO_C" >&6 4382else 4383 cat >conftest.$ac_ext <<_ACEOF 4384/* confdefs.h. */ 4385_ACEOF 4386cat confdefs.h >>conftest.$ac_ext 4387cat >>conftest.$ac_ext <<_ACEOF 4388/* end confdefs.h. */ 4389/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4390 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4391#define setsockopt innocuous_setsockopt 4392 4393/* System header to define __stub macros and hopefully few prototypes, 4394 which can conflict with char setsockopt (); below. 4395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4396 <limits.h> exists even on freestanding compilers. */ 4397 4398#ifdef __STDC__ 4399# include <limits.h> 4400#else 4401# include <assert.h> 4402#endif 4403 4404#undef setsockopt 4405 4406/* Override any gcc2 internal prototype to avoid an error. */ 4407#ifdef __cplusplus 4408extern "C" 4409{ 4410#endif 4411/* We use char because int might match the return type of a gcc2 4412 builtin and then its argument prototype would still apply. */ 4413char setsockopt (); 4414/* The GNU C library defines this for functions which it implements 4415 to always fail with ENOSYS. Some functions are actually named 4416 something starting with __ and the normal name is an alias. */ 4417#if defined (__stub_setsockopt) || defined (__stub___setsockopt) 4418choke me 4419#else 4420char (*f) () = setsockopt; 4421#endif 4422#ifdef __cplusplus 4423} 4424#endif 4425 4426int 4427main () 4428{ 4429return f != setsockopt; 4430 ; 4431 return 0; 4432} 4433_ACEOF 4434rm -f conftest.$ac_objext conftest$ac_exeext 4435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4436 (eval $ac_link) 2>conftest.er1 4437 ac_status=$? 4438 grep -v '^ *+' conftest.er1 >conftest.err 4439 rm -f conftest.er1 4440 cat conftest.err >&5 4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4442 (exit $ac_status); } && 4443 { ac_try='test -z "$ac_c_werror_flag" 4444 || test ! -s conftest.err' 4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4446 (eval $ac_try) 2>&5 4447 ac_status=$? 4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4449 (exit $ac_status); }; } && 4450 { ac_try='test -s conftest$ac_exeext' 4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4452 (eval $ac_try) 2>&5 4453 ac_status=$? 4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4455 (exit $ac_status); }; }; then 4456 ac_cv_func_setsockopt=yes 4457else 4458 echo "$as_me: failed program was:" >&5 4459sed 's/^/| /' conftest.$ac_ext >&5 4460 4461ac_cv_func_setsockopt=no 4462fi 4463rm -f conftest.err conftest.$ac_objext \ 4464 conftest$ac_exeext conftest.$ac_ext 4465fi 4466echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4467echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 4468if test $ac_cv_func_setsockopt = yes; then 4469 : 4470else 4471 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4472echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 4473if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4474 echo $ECHO_N "(cached) $ECHO_C" >&6 4475else 4476 ac_check_lib_save_LIBS=$LIBS 4477LIBS="-lsocket $LIBS" 4478cat >conftest.$ac_ext <<_ACEOF 4479/* confdefs.h. */ 4480_ACEOF 4481cat confdefs.h >>conftest.$ac_ext 4482cat >>conftest.$ac_ext <<_ACEOF 4483/* end confdefs.h. */ 4484 4485/* Override any gcc2 internal prototype to avoid an error. */ 4486#ifdef __cplusplus 4487extern "C" 4488#endif 4489/* We use char because int might match the return type of a gcc2 4490 builtin and then its argument prototype would still apply. */ 4491char setsockopt (); 4492int 4493main () 4494{ 4495setsockopt (); 4496 ; 4497 return 0; 4498} 4499_ACEOF 4500rm -f conftest.$ac_objext conftest$ac_exeext 4501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4502 (eval $ac_link) 2>conftest.er1 4503 ac_status=$? 4504 grep -v '^ *+' conftest.er1 >conftest.err 4505 rm -f conftest.er1 4506 cat conftest.err >&5 4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4508 (exit $ac_status); } && 4509 { ac_try='test -z "$ac_c_werror_flag" 4510 || test ! -s conftest.err' 4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4512 (eval $ac_try) 2>&5 4513 ac_status=$? 4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4515 (exit $ac_status); }; } && 4516 { ac_try='test -s conftest$ac_exeext' 4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4518 (eval $ac_try) 2>&5 4519 ac_status=$? 4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4521 (exit $ac_status); }; }; then 4522 ac_cv_lib_socket_setsockopt=yes 4523else 4524 echo "$as_me: failed program was:" >&5 4525sed 's/^/| /' conftest.$ac_ext >&5 4526 4527ac_cv_lib_socket_setsockopt=no 4528fi 4529rm -f conftest.err conftest.$ac_objext \ 4530 conftest$ac_exeext conftest.$ac_ext 4531LIBS=$ac_check_lib_save_LIBS 4532fi 4533echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4534echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 4535if test $ac_cv_lib_socket_setsockopt = yes; then 4536 LIBS="$LIBS -lsocket" 4537else 4538 tcl_checkBoth=1 4539fi 4540 4541fi 4542 4543 fi 4544 if test "$tcl_checkBoth" = 1; then 4545 tk_oldLibs=$LIBS 4546 LIBS="$LIBS -lsocket -lnsl" 4547 echo "$as_me:$LINENO: checking for accept" >&5 4548echo $ECHO_N "checking for accept... $ECHO_C" >&6 4549if test "${ac_cv_func_accept+set}" = set; then 4550 echo $ECHO_N "(cached) $ECHO_C" >&6 4551else 4552 cat >conftest.$ac_ext <<_ACEOF 4553/* confdefs.h. */ 4554_ACEOF 4555cat confdefs.h >>conftest.$ac_ext 4556cat >>conftest.$ac_ext <<_ACEOF 4557/* end confdefs.h. */ 4558/* Define accept to an innocuous variant, in case <limits.h> declares accept. 4559 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4560#define accept innocuous_accept 4561 4562/* System header to define __stub macros and hopefully few prototypes, 4563 which can conflict with char accept (); below. 4564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4565 <limits.h> exists even on freestanding compilers. */ 4566 4567#ifdef __STDC__ 4568# include <limits.h> 4569#else 4570# include <assert.h> 4571#endif 4572 4573#undef accept 4574 4575/* Override any gcc2 internal prototype to avoid an error. */ 4576#ifdef __cplusplus 4577extern "C" 4578{ 4579#endif 4580/* We use char because int might match the return type of a gcc2 4581 builtin and then its argument prototype would still apply. */ 4582char accept (); 4583/* The GNU C library defines this for functions which it implements 4584 to always fail with ENOSYS. Some functions are actually named 4585 something starting with __ and the normal name is an alias. */ 4586#if defined (__stub_accept) || defined (__stub___accept) 4587choke me 4588#else 4589char (*f) () = accept; 4590#endif 4591#ifdef __cplusplus 4592} 4593#endif 4594 4595int 4596main () 4597{ 4598return f != accept; 4599 ; 4600 return 0; 4601} 4602_ACEOF 4603rm -f conftest.$ac_objext conftest$ac_exeext 4604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4605 (eval $ac_link) 2>conftest.er1 4606 ac_status=$? 4607 grep -v '^ *+' conftest.er1 >conftest.err 4608 rm -f conftest.er1 4609 cat conftest.err >&5 4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4611 (exit $ac_status); } && 4612 { ac_try='test -z "$ac_c_werror_flag" 4613 || test ! -s conftest.err' 4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4615 (eval $ac_try) 2>&5 4616 ac_status=$? 4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4618 (exit $ac_status); }; } && 4619 { ac_try='test -s conftest$ac_exeext' 4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4621 (eval $ac_try) 2>&5 4622 ac_status=$? 4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4624 (exit $ac_status); }; }; then 4625 ac_cv_func_accept=yes 4626else 4627 echo "$as_me: failed program was:" >&5 4628sed 's/^/| /' conftest.$ac_ext >&5 4629 4630ac_cv_func_accept=no 4631fi 4632rm -f conftest.err conftest.$ac_objext \ 4633 conftest$ac_exeext conftest.$ac_ext 4634fi 4635echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 4636echo "${ECHO_T}$ac_cv_func_accept" >&6 4637if test $ac_cv_func_accept = yes; then 4638 tcl_checkNsl=0 4639else 4640 LIBS=$tk_oldLibs 4641fi 4642 4643 fi 4644 echo "$as_me:$LINENO: checking for gethostbyname" >&5 4645echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 4646if test "${ac_cv_func_gethostbyname+set}" = set; then 4647 echo $ECHO_N "(cached) $ECHO_C" >&6 4648else 4649 cat >conftest.$ac_ext <<_ACEOF 4650/* confdefs.h. */ 4651_ACEOF 4652cat confdefs.h >>conftest.$ac_ext 4653cat >>conftest.$ac_ext <<_ACEOF 4654/* end confdefs.h. */ 4655/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 4656 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4657#define gethostbyname innocuous_gethostbyname 4658 4659/* System header to define __stub macros and hopefully few prototypes, 4660 which can conflict with char gethostbyname (); below. 4661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4662 <limits.h> exists even on freestanding compilers. */ 4663 4664#ifdef __STDC__ 4665# include <limits.h> 4666#else 4667# include <assert.h> 4668#endif 4669 4670#undef gethostbyname 4671 4672/* Override any gcc2 internal prototype to avoid an error. */ 4673#ifdef __cplusplus 4674extern "C" 4675{ 4676#endif 4677/* We use char because int might match the return type of a gcc2 4678 builtin and then its argument prototype would still apply. */ 4679char gethostbyname (); 4680/* The GNU C library defines this for functions which it implements 4681 to always fail with ENOSYS. Some functions are actually named 4682 something starting with __ and the normal name is an alias. */ 4683#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 4684choke me 4685#else 4686char (*f) () = gethostbyname; 4687#endif 4688#ifdef __cplusplus 4689} 4690#endif 4691 4692int 4693main () 4694{ 4695return f != gethostbyname; 4696 ; 4697 return 0; 4698} 4699_ACEOF 4700rm -f conftest.$ac_objext conftest$ac_exeext 4701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4702 (eval $ac_link) 2>conftest.er1 4703 ac_status=$? 4704 grep -v '^ *+' conftest.er1 >conftest.err 4705 rm -f conftest.er1 4706 cat conftest.err >&5 4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4708 (exit $ac_status); } && 4709 { ac_try='test -z "$ac_c_werror_flag" 4710 || test ! -s conftest.err' 4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4712 (eval $ac_try) 2>&5 4713 ac_status=$? 4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4715 (exit $ac_status); }; } && 4716 { ac_try='test -s conftest$ac_exeext' 4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4718 (eval $ac_try) 2>&5 4719 ac_status=$? 4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4721 (exit $ac_status); }; }; then 4722 ac_cv_func_gethostbyname=yes 4723else 4724 echo "$as_me: failed program was:" >&5 4725sed 's/^/| /' conftest.$ac_ext >&5 4726 4727ac_cv_func_gethostbyname=no 4728fi 4729rm -f conftest.err conftest.$ac_objext \ 4730 conftest$ac_exeext conftest.$ac_ext 4731fi 4732echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 4733echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 4734if test $ac_cv_func_gethostbyname = yes; then 4735 : 4736else 4737 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 4738echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 4739if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 4740 echo $ECHO_N "(cached) $ECHO_C" >&6 4741else 4742 ac_check_lib_save_LIBS=$LIBS 4743LIBS="-lnsl $LIBS" 4744cat >conftest.$ac_ext <<_ACEOF 4745/* confdefs.h. */ 4746_ACEOF 4747cat confdefs.h >>conftest.$ac_ext 4748cat >>conftest.$ac_ext <<_ACEOF 4749/* end confdefs.h. */ 4750 4751/* Override any gcc2 internal prototype to avoid an error. */ 4752#ifdef __cplusplus 4753extern "C" 4754#endif 4755/* We use char because int might match the return type of a gcc2 4756 builtin and then its argument prototype would still apply. */ 4757char gethostbyname (); 4758int 4759main () 4760{ 4761gethostbyname (); 4762 ; 4763 return 0; 4764} 4765_ACEOF 4766rm -f conftest.$ac_objext conftest$ac_exeext 4767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4768 (eval $ac_link) 2>conftest.er1 4769 ac_status=$? 4770 grep -v '^ *+' conftest.er1 >conftest.err 4771 rm -f conftest.er1 4772 cat conftest.err >&5 4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4774 (exit $ac_status); } && 4775 { ac_try='test -z "$ac_c_werror_flag" 4776 || test ! -s conftest.err' 4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4778 (eval $ac_try) 2>&5 4779 ac_status=$? 4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4781 (exit $ac_status); }; } && 4782 { ac_try='test -s conftest$ac_exeext' 4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4784 (eval $ac_try) 2>&5 4785 ac_status=$? 4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4787 (exit $ac_status); }; }; then 4788 ac_cv_lib_nsl_gethostbyname=yes 4789else 4790 echo "$as_me: failed program was:" >&5 4791sed 's/^/| /' conftest.$ac_ext >&5 4792 4793ac_cv_lib_nsl_gethostbyname=no 4794fi 4795rm -f conftest.err conftest.$ac_objext \ 4796 conftest$ac_exeext conftest.$ac_ext 4797LIBS=$ac_check_lib_save_LIBS 4798fi 4799echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4800echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 4801if test $ac_cv_lib_nsl_gethostbyname = yes; then 4802 LIBS="$LIBS -lnsl" 4803fi 4804 4805fi 4806 4807 4808 # TEA specific: Don't perform the eval of the libraries here because 4809 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 4810 4811 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 4812 4813 4814 4815 4816 echo "$as_me:$LINENO: checking dirent.h" >&5 4817echo $ECHO_N "checking dirent.h... $ECHO_C" >&6 4818if test "${tcl_cv_dirent_h+set}" = set; then 4819 echo $ECHO_N "(cached) $ECHO_C" >&6 4820else 4821 4822 cat >conftest.$ac_ext <<_ACEOF 4823/* confdefs.h. */ 4824_ACEOF 4825cat confdefs.h >>conftest.$ac_ext 4826cat >>conftest.$ac_ext <<_ACEOF 4827/* end confdefs.h. */ 4828#include <sys/types.h> 4829#include <dirent.h> 4830int 4831main () 4832{ 4833 4834#ifndef _POSIX_SOURCE 4835# ifdef __Lynx__ 4836 /* 4837 * Generate compilation error to make the test fail: Lynx headers 4838 * are only valid if really in the POSIX environment. 4839 */ 4840 4841 missing_procedure(); 4842# endif 4843#endif 4844DIR *d; 4845struct dirent *entryPtr; 4846char *p; 4847d = opendir("foobar"); 4848entryPtr = readdir(d); 4849p = entryPtr->d_name; 4850closedir(d); 4851 4852 ; 4853 return 0; 4854} 4855_ACEOF 4856rm -f conftest.$ac_objext conftest$ac_exeext 4857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4858 (eval $ac_link) 2>conftest.er1 4859 ac_status=$? 4860 grep -v '^ *+' conftest.er1 >conftest.err 4861 rm -f conftest.er1 4862 cat conftest.err >&5 4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4864 (exit $ac_status); } && 4865 { ac_try='test -z "$ac_c_werror_flag" 4866 || test ! -s conftest.err' 4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4868 (eval $ac_try) 2>&5 4869 ac_status=$? 4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4871 (exit $ac_status); }; } && 4872 { ac_try='test -s conftest$ac_exeext' 4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4874 (eval $ac_try) 2>&5 4875 ac_status=$? 4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4877 (exit $ac_status); }; }; then 4878 tcl_cv_dirent_h=yes 4879else 4880 echo "$as_me: failed program was:" >&5 4881sed 's/^/| /' conftest.$ac_ext >&5 4882 4883tcl_cv_dirent_h=no 4884fi 4885rm -f conftest.err conftest.$ac_objext \ 4886 conftest$ac_exeext conftest.$ac_ext 4887fi 4888echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 4889echo "${ECHO_T}$tcl_cv_dirent_h" >&6 4890 4891 if test $tcl_cv_dirent_h = no; then 4892 4893cat >>confdefs.h <<\_ACEOF 4894#define NO_DIRENT_H 1 4895_ACEOF 4896 4897 fi 4898 4899 # TEA specific: 4900 if test "${ac_cv_header_errno_h+set}" = set; then 4901 echo "$as_me:$LINENO: checking for errno.h" >&5 4902echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 4903if test "${ac_cv_header_errno_h+set}" = set; then 4904 echo $ECHO_N "(cached) $ECHO_C" >&6 4905fi 4906echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 4907echo "${ECHO_T}$ac_cv_header_errno_h" >&6 4908else 4909 # Is the header compilable? 4910echo "$as_me:$LINENO: checking errno.h usability" >&5 4911echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6 4912cat >conftest.$ac_ext <<_ACEOF 4913/* confdefs.h. */ 4914_ACEOF 4915cat confdefs.h >>conftest.$ac_ext 4916cat >>conftest.$ac_ext <<_ACEOF 4917/* end confdefs.h. */ 4918$ac_includes_default 4919#include <errno.h> 4920_ACEOF 4921rm -f conftest.$ac_objext 4922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4923 (eval $ac_compile) 2>conftest.er1 4924 ac_status=$? 4925 grep -v '^ *+' conftest.er1 >conftest.err 4926 rm -f conftest.er1 4927 cat conftest.err >&5 4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4929 (exit $ac_status); } && 4930 { ac_try='test -z "$ac_c_werror_flag" 4931 || test ! -s conftest.err' 4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4933 (eval $ac_try) 2>&5 4934 ac_status=$? 4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4936 (exit $ac_status); }; } && 4937 { ac_try='test -s conftest.$ac_objext' 4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4939 (eval $ac_try) 2>&5 4940 ac_status=$? 4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4942 (exit $ac_status); }; }; then 4943 ac_header_compiler=yes 4944else 4945 echo "$as_me: failed program was:" >&5 4946sed 's/^/| /' conftest.$ac_ext >&5 4947 4948ac_header_compiler=no 4949fi 4950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4951echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4952echo "${ECHO_T}$ac_header_compiler" >&6 4953 4954# Is the header present? 4955echo "$as_me:$LINENO: checking errno.h presence" >&5 4956echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6 4957cat >conftest.$ac_ext <<_ACEOF 4958/* confdefs.h. */ 4959_ACEOF 4960cat confdefs.h >>conftest.$ac_ext 4961cat >>conftest.$ac_ext <<_ACEOF 4962/* end confdefs.h. */ 4963#include <errno.h> 4964_ACEOF 4965if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4967 ac_status=$? 4968 grep -v '^ *+' conftest.er1 >conftest.err 4969 rm -f conftest.er1 4970 cat conftest.err >&5 4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4972 (exit $ac_status); } >/dev/null; then 4973 if test -s conftest.err; then 4974 ac_cpp_err=$ac_c_preproc_warn_flag 4975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4976 else 4977 ac_cpp_err= 4978 fi 4979else 4980 ac_cpp_err=yes 4981fi 4982if test -z "$ac_cpp_err"; then 4983 ac_header_preproc=yes 4984else 4985 echo "$as_me: failed program was:" >&5 4986sed 's/^/| /' conftest.$ac_ext >&5 4987 4988 ac_header_preproc=no 4989fi 4990rm -f conftest.err conftest.$ac_ext 4991echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4992echo "${ECHO_T}$ac_header_preproc" >&6 4993 4994# So? What about this header? 4995case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4996 yes:no: ) 4997 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4998echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4999 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5000echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5001 ac_header_preproc=yes 5002 ;; 5003 no:yes:* ) 5004 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5005echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5006 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5007echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5008 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5009echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5010 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5011echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5012 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5013echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5014 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5015echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5016 ( 5017 cat <<\_ASBOX 5018## -------------------------------- ## 5019## Report this to the tkpng lists. ## 5020## -------------------------------- ## 5021_ASBOX 5022 ) | 5023 sed "s/^/$as_me: WARNING: /" >&2 5024 ;; 5025esac 5026echo "$as_me:$LINENO: checking for errno.h" >&5 5027echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 5028if test "${ac_cv_header_errno_h+set}" = set; then 5029 echo $ECHO_N "(cached) $ECHO_C" >&6 5030else 5031 ac_cv_header_errno_h=$ac_header_preproc 5032fi 5033echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5034echo "${ECHO_T}$ac_cv_header_errno_h" >&6 5035 5036fi 5037if test $ac_cv_header_errno_h = yes; then 5038 : 5039else 5040 5041cat >>confdefs.h <<\_ACEOF 5042#define NO_ERRNO_H 1 5043_ACEOF 5044 5045fi 5046 5047 5048 if test "${ac_cv_header_float_h+set}" = set; then 5049 echo "$as_me:$LINENO: checking for float.h" >&5 5050echo $ECHO_N "checking for float.h... $ECHO_C" >&6 5051if test "${ac_cv_header_float_h+set}" = set; then 5052 echo $ECHO_N "(cached) $ECHO_C" >&6 5053fi 5054echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5055echo "${ECHO_T}$ac_cv_header_float_h" >&6 5056else 5057 # Is the header compilable? 5058echo "$as_me:$LINENO: checking float.h usability" >&5 5059echo $ECHO_N "checking float.h usability... $ECHO_C" >&6 5060cat >conftest.$ac_ext <<_ACEOF 5061/* confdefs.h. */ 5062_ACEOF 5063cat confdefs.h >>conftest.$ac_ext 5064cat >>conftest.$ac_ext <<_ACEOF 5065/* end confdefs.h. */ 5066$ac_includes_default 5067#include <float.h> 5068_ACEOF 5069rm -f conftest.$ac_objext 5070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5071 (eval $ac_compile) 2>conftest.er1 5072 ac_status=$? 5073 grep -v '^ *+' conftest.er1 >conftest.err 5074 rm -f conftest.er1 5075 cat conftest.err >&5 5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5077 (exit $ac_status); } && 5078 { ac_try='test -z "$ac_c_werror_flag" 5079 || test ! -s conftest.err' 5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5081 (eval $ac_try) 2>&5 5082 ac_status=$? 5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5084 (exit $ac_status); }; } && 5085 { ac_try='test -s conftest.$ac_objext' 5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5087 (eval $ac_try) 2>&5 5088 ac_status=$? 5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5090 (exit $ac_status); }; }; then 5091 ac_header_compiler=yes 5092else 5093 echo "$as_me: failed program was:" >&5 5094sed 's/^/| /' conftest.$ac_ext >&5 5095 5096ac_header_compiler=no 5097fi 5098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5099echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5100echo "${ECHO_T}$ac_header_compiler" >&6 5101 5102# Is the header present? 5103echo "$as_me:$LINENO: checking float.h presence" >&5 5104echo $ECHO_N "checking float.h presence... $ECHO_C" >&6 5105cat >conftest.$ac_ext <<_ACEOF 5106/* confdefs.h. */ 5107_ACEOF 5108cat confdefs.h >>conftest.$ac_ext 5109cat >>conftest.$ac_ext <<_ACEOF 5110/* end confdefs.h. */ 5111#include <float.h> 5112_ACEOF 5113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5115 ac_status=$? 5116 grep -v '^ *+' conftest.er1 >conftest.err 5117 rm -f conftest.er1 5118 cat conftest.err >&5 5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5120 (exit $ac_status); } >/dev/null; then 5121 if test -s conftest.err; then 5122 ac_cpp_err=$ac_c_preproc_warn_flag 5123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5124 else 5125 ac_cpp_err= 5126 fi 5127else 5128 ac_cpp_err=yes 5129fi 5130if test -z "$ac_cpp_err"; then 5131 ac_header_preproc=yes 5132else 5133 echo "$as_me: failed program was:" >&5 5134sed 's/^/| /' conftest.$ac_ext >&5 5135 5136 ac_header_preproc=no 5137fi 5138rm -f conftest.err conftest.$ac_ext 5139echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5140echo "${ECHO_T}$ac_header_preproc" >&6 5141 5142# So? What about this header? 5143case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5144 yes:no: ) 5145 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5146echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5147 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5148echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5149 ac_header_preproc=yes 5150 ;; 5151 no:yes:* ) 5152 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5153echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5154 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5155echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5156 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5157echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5158 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5159echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5160 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5161echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5162 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5163echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5164 ( 5165 cat <<\_ASBOX 5166## -------------------------------- ## 5167## Report this to the tkpng lists. ## 5168## -------------------------------- ## 5169_ASBOX 5170 ) | 5171 sed "s/^/$as_me: WARNING: /" >&2 5172 ;; 5173esac 5174echo "$as_me:$LINENO: checking for float.h" >&5 5175echo $ECHO_N "checking for float.h... $ECHO_C" >&6 5176if test "${ac_cv_header_float_h+set}" = set; then 5177 echo $ECHO_N "(cached) $ECHO_C" >&6 5178else 5179 ac_cv_header_float_h=$ac_header_preproc 5180fi 5181echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5182echo "${ECHO_T}$ac_cv_header_float_h" >&6 5183 5184fi 5185if test $ac_cv_header_float_h = yes; then 5186 : 5187else 5188 5189cat >>confdefs.h <<\_ACEOF 5190#define NO_FLOAT_H 1 5191_ACEOF 5192 5193fi 5194 5195 5196 if test "${ac_cv_header_values_h+set}" = set; then 5197 echo "$as_me:$LINENO: checking for values.h" >&5 5198echo $ECHO_N "checking for values.h... $ECHO_C" >&6 5199if test "${ac_cv_header_values_h+set}" = set; then 5200 echo $ECHO_N "(cached) $ECHO_C" >&6 5201fi 5202echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5203echo "${ECHO_T}$ac_cv_header_values_h" >&6 5204else 5205 # Is the header compilable? 5206echo "$as_me:$LINENO: checking values.h usability" >&5 5207echo $ECHO_N "checking values.h usability... $ECHO_C" >&6 5208cat >conftest.$ac_ext <<_ACEOF 5209/* confdefs.h. */ 5210_ACEOF 5211cat confdefs.h >>conftest.$ac_ext 5212cat >>conftest.$ac_ext <<_ACEOF 5213/* end confdefs.h. */ 5214$ac_includes_default 5215#include <values.h> 5216_ACEOF 5217rm -f conftest.$ac_objext 5218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5219 (eval $ac_compile) 2>conftest.er1 5220 ac_status=$? 5221 grep -v '^ *+' conftest.er1 >conftest.err 5222 rm -f conftest.er1 5223 cat conftest.err >&5 5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5225 (exit $ac_status); } && 5226 { ac_try='test -z "$ac_c_werror_flag" 5227 || test ! -s conftest.err' 5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5229 (eval $ac_try) 2>&5 5230 ac_status=$? 5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5232 (exit $ac_status); }; } && 5233 { ac_try='test -s conftest.$ac_objext' 5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5235 (eval $ac_try) 2>&5 5236 ac_status=$? 5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5238 (exit $ac_status); }; }; then 5239 ac_header_compiler=yes 5240else 5241 echo "$as_me: failed program was:" >&5 5242sed 's/^/| /' conftest.$ac_ext >&5 5243 5244ac_header_compiler=no 5245fi 5246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5247echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5248echo "${ECHO_T}$ac_header_compiler" >&6 5249 5250# Is the header present? 5251echo "$as_me:$LINENO: checking values.h presence" >&5 5252echo $ECHO_N "checking values.h presence... $ECHO_C" >&6 5253cat >conftest.$ac_ext <<_ACEOF 5254/* confdefs.h. */ 5255_ACEOF 5256cat confdefs.h >>conftest.$ac_ext 5257cat >>conftest.$ac_ext <<_ACEOF 5258/* end confdefs.h. */ 5259#include <values.h> 5260_ACEOF 5261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5263 ac_status=$? 5264 grep -v '^ *+' conftest.er1 >conftest.err 5265 rm -f conftest.er1 5266 cat conftest.err >&5 5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5268 (exit $ac_status); } >/dev/null; then 5269 if test -s conftest.err; then 5270 ac_cpp_err=$ac_c_preproc_warn_flag 5271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5272 else 5273 ac_cpp_err= 5274 fi 5275else 5276 ac_cpp_err=yes 5277fi 5278if test -z "$ac_cpp_err"; then 5279 ac_header_preproc=yes 5280else 5281 echo "$as_me: failed program was:" >&5 5282sed 's/^/| /' conftest.$ac_ext >&5 5283 5284 ac_header_preproc=no 5285fi 5286rm -f conftest.err conftest.$ac_ext 5287echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5288echo "${ECHO_T}$ac_header_preproc" >&6 5289 5290# So? What about this header? 5291case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5292 yes:no: ) 5293 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5294echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5295 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5296echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5297 ac_header_preproc=yes 5298 ;; 5299 no:yes:* ) 5300 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5301echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5302 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5303echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5304 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5305echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5306 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5307echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5308 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5309echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5310 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5311echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5312 ( 5313 cat <<\_ASBOX 5314## -------------------------------- ## 5315## Report this to the tkpng lists. ## 5316## -------------------------------- ## 5317_ASBOX 5318 ) | 5319 sed "s/^/$as_me: WARNING: /" >&2 5320 ;; 5321esac 5322echo "$as_me:$LINENO: checking for values.h" >&5 5323echo $ECHO_N "checking for values.h... $ECHO_C" >&6 5324if test "${ac_cv_header_values_h+set}" = set; then 5325 echo $ECHO_N "(cached) $ECHO_C" >&6 5326else 5327 ac_cv_header_values_h=$ac_header_preproc 5328fi 5329echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5330echo "${ECHO_T}$ac_cv_header_values_h" >&6 5331 5332fi 5333if test $ac_cv_header_values_h = yes; then 5334 : 5335else 5336 5337cat >>confdefs.h <<\_ACEOF 5338#define NO_VALUES_H 1 5339_ACEOF 5340 5341fi 5342 5343 5344 if test "${ac_cv_header_limits_h+set}" = set; then 5345 echo "$as_me:$LINENO: checking for limits.h" >&5 5346echo $ECHO_N "checking for limits.h... $ECHO_C" >&6 5347if test "${ac_cv_header_limits_h+set}" = set; then 5348 echo $ECHO_N "(cached) $ECHO_C" >&6 5349fi 5350echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5351echo "${ECHO_T}$ac_cv_header_limits_h" >&6 5352else 5353 # Is the header compilable? 5354echo "$as_me:$LINENO: checking limits.h usability" >&5 5355echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6 5356cat >conftest.$ac_ext <<_ACEOF 5357/* confdefs.h. */ 5358_ACEOF 5359cat confdefs.h >>conftest.$ac_ext 5360cat >>conftest.$ac_ext <<_ACEOF 5361/* end confdefs.h. */ 5362$ac_includes_default 5363#include <limits.h> 5364_ACEOF 5365rm -f conftest.$ac_objext 5366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5367 (eval $ac_compile) 2>conftest.er1 5368 ac_status=$? 5369 grep -v '^ *+' conftest.er1 >conftest.err 5370 rm -f conftest.er1 5371 cat conftest.err >&5 5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5373 (exit $ac_status); } && 5374 { ac_try='test -z "$ac_c_werror_flag" 5375 || test ! -s conftest.err' 5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5377 (eval $ac_try) 2>&5 5378 ac_status=$? 5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5380 (exit $ac_status); }; } && 5381 { ac_try='test -s conftest.$ac_objext' 5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5383 (eval $ac_try) 2>&5 5384 ac_status=$? 5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5386 (exit $ac_status); }; }; then 5387 ac_header_compiler=yes 5388else 5389 echo "$as_me: failed program was:" >&5 5390sed 's/^/| /' conftest.$ac_ext >&5 5391 5392ac_header_compiler=no 5393fi 5394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5395echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5396echo "${ECHO_T}$ac_header_compiler" >&6 5397 5398# Is the header present? 5399echo "$as_me:$LINENO: checking limits.h presence" >&5 5400echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6 5401cat >conftest.$ac_ext <<_ACEOF 5402/* confdefs.h. */ 5403_ACEOF 5404cat confdefs.h >>conftest.$ac_ext 5405cat >>conftest.$ac_ext <<_ACEOF 5406/* end confdefs.h. */ 5407#include <limits.h> 5408_ACEOF 5409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5411 ac_status=$? 5412 grep -v '^ *+' conftest.er1 >conftest.err 5413 rm -f conftest.er1 5414 cat conftest.err >&5 5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5416 (exit $ac_status); } >/dev/null; then 5417 if test -s conftest.err; then 5418 ac_cpp_err=$ac_c_preproc_warn_flag 5419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5420 else 5421 ac_cpp_err= 5422 fi 5423else 5424 ac_cpp_err=yes 5425fi 5426if test -z "$ac_cpp_err"; then 5427 ac_header_preproc=yes 5428else 5429 echo "$as_me: failed program was:" >&5 5430sed 's/^/| /' conftest.$ac_ext >&5 5431 5432 ac_header_preproc=no 5433fi 5434rm -f conftest.err conftest.$ac_ext 5435echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5436echo "${ECHO_T}$ac_header_preproc" >&6 5437 5438# So? What about this header? 5439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5440 yes:no: ) 5441 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5442echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5443 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5444echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5445 ac_header_preproc=yes 5446 ;; 5447 no:yes:* ) 5448 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5449echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5450 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5451echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5452 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5453echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5454 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5455echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5456 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5457echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5458 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5459echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5460 ( 5461 cat <<\_ASBOX 5462## -------------------------------- ## 5463## Report this to the tkpng lists. ## 5464## -------------------------------- ## 5465_ASBOX 5466 ) | 5467 sed "s/^/$as_me: WARNING: /" >&2 5468 ;; 5469esac 5470echo "$as_me:$LINENO: checking for limits.h" >&5 5471echo $ECHO_N "checking for limits.h... $ECHO_C" >&6 5472if test "${ac_cv_header_limits_h+set}" = set; then 5473 echo $ECHO_N "(cached) $ECHO_C" >&6 5474else 5475 ac_cv_header_limits_h=$ac_header_preproc 5476fi 5477echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5478echo "${ECHO_T}$ac_cv_header_limits_h" >&6 5479 5480fi 5481if test $ac_cv_header_limits_h = yes; then 5482 5483cat >>confdefs.h <<\_ACEOF 5484#define HAVE_LIMITS_H 1 5485_ACEOF 5486 5487else 5488 5489cat >>confdefs.h <<\_ACEOF 5490#define NO_LIMITS_H 1 5491_ACEOF 5492 5493fi 5494 5495 5496 if test "${ac_cv_header_stdlib_h+set}" = set; then 5497 echo "$as_me:$LINENO: checking for stdlib.h" >&5 5498echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 5499if test "${ac_cv_header_stdlib_h+set}" = set; then 5500 echo $ECHO_N "(cached) $ECHO_C" >&6 5501fi 5502echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5503echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 5504else 5505 # Is the header compilable? 5506echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5507echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6 5508cat >conftest.$ac_ext <<_ACEOF 5509/* confdefs.h. */ 5510_ACEOF 5511cat confdefs.h >>conftest.$ac_ext 5512cat >>conftest.$ac_ext <<_ACEOF 5513/* end confdefs.h. */ 5514$ac_includes_default 5515#include <stdlib.h> 5516_ACEOF 5517rm -f conftest.$ac_objext 5518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5519 (eval $ac_compile) 2>conftest.er1 5520 ac_status=$? 5521 grep -v '^ *+' conftest.er1 >conftest.err 5522 rm -f conftest.er1 5523 cat conftest.err >&5 5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5525 (exit $ac_status); } && 5526 { ac_try='test -z "$ac_c_werror_flag" 5527 || test ! -s conftest.err' 5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5529 (eval $ac_try) 2>&5 5530 ac_status=$? 5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5532 (exit $ac_status); }; } && 5533 { ac_try='test -s conftest.$ac_objext' 5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5535 (eval $ac_try) 2>&5 5536 ac_status=$? 5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5538 (exit $ac_status); }; }; then 5539 ac_header_compiler=yes 5540else 5541 echo "$as_me: failed program was:" >&5 5542sed 's/^/| /' conftest.$ac_ext >&5 5543 5544ac_header_compiler=no 5545fi 5546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5547echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5548echo "${ECHO_T}$ac_header_compiler" >&6 5549 5550# Is the header present? 5551echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5552echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6 5553cat >conftest.$ac_ext <<_ACEOF 5554/* confdefs.h. */ 5555_ACEOF 5556cat confdefs.h >>conftest.$ac_ext 5557cat >>conftest.$ac_ext <<_ACEOF 5558/* end confdefs.h. */ 5559#include <stdlib.h> 5560_ACEOF 5561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5563 ac_status=$? 5564 grep -v '^ *+' conftest.er1 >conftest.err 5565 rm -f conftest.er1 5566 cat conftest.err >&5 5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5568 (exit $ac_status); } >/dev/null; then 5569 if test -s conftest.err; then 5570 ac_cpp_err=$ac_c_preproc_warn_flag 5571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5572 else 5573 ac_cpp_err= 5574 fi 5575else 5576 ac_cpp_err=yes 5577fi 5578if test -z "$ac_cpp_err"; then 5579 ac_header_preproc=yes 5580else 5581 echo "$as_me: failed program was:" >&5 5582sed 's/^/| /' conftest.$ac_ext >&5 5583 5584 ac_header_preproc=no 5585fi 5586rm -f conftest.err conftest.$ac_ext 5587echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5588echo "${ECHO_T}$ac_header_preproc" >&6 5589 5590# So? What about this header? 5591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5592 yes:no: ) 5593 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5594echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5595 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5596echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5597 ac_header_preproc=yes 5598 ;; 5599 no:yes:* ) 5600 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5601echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5602 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5603echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5604 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5605echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5606 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5607echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5608 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5609echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5610 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5611echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5612 ( 5613 cat <<\_ASBOX 5614## -------------------------------- ## 5615## Report this to the tkpng lists. ## 5616## -------------------------------- ## 5617_ASBOX 5618 ) | 5619 sed "s/^/$as_me: WARNING: /" >&2 5620 ;; 5621esac 5622echo "$as_me:$LINENO: checking for stdlib.h" >&5 5623echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 5624if test "${ac_cv_header_stdlib_h+set}" = set; then 5625 echo $ECHO_N "(cached) $ECHO_C" >&6 5626else 5627 ac_cv_header_stdlib_h=$ac_header_preproc 5628fi 5629echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5630echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 5631 5632fi 5633if test $ac_cv_header_stdlib_h = yes; then 5634 tcl_ok=1 5635else 5636 tcl_ok=0 5637fi 5638 5639 5640 cat >conftest.$ac_ext <<_ACEOF 5641/* confdefs.h. */ 5642_ACEOF 5643cat confdefs.h >>conftest.$ac_ext 5644cat >>conftest.$ac_ext <<_ACEOF 5645/* end confdefs.h. */ 5646#include <stdlib.h> 5647 5648_ACEOF 5649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5650 $EGREP "strtol" >/dev/null 2>&1; then 5651 : 5652else 5653 tcl_ok=0 5654fi 5655rm -f conftest* 5656 5657 cat >conftest.$ac_ext <<_ACEOF 5658/* confdefs.h. */ 5659_ACEOF 5660cat confdefs.h >>conftest.$ac_ext 5661cat >>conftest.$ac_ext <<_ACEOF 5662/* end confdefs.h. */ 5663#include <stdlib.h> 5664 5665_ACEOF 5666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5667 $EGREP "strtoul" >/dev/null 2>&1; then 5668 : 5669else 5670 tcl_ok=0 5671fi 5672rm -f conftest* 5673 5674 cat >conftest.$ac_ext <<_ACEOF 5675/* confdefs.h. */ 5676_ACEOF 5677cat confdefs.h >>conftest.$ac_ext 5678cat >>conftest.$ac_ext <<_ACEOF 5679/* end confdefs.h. */ 5680#include <stdlib.h> 5681 5682_ACEOF 5683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5684 $EGREP "strtod" >/dev/null 2>&1; then 5685 : 5686else 5687 tcl_ok=0 5688fi 5689rm -f conftest* 5690 5691 if test $tcl_ok = 0; then 5692 5693cat >>confdefs.h <<\_ACEOF 5694#define NO_STDLIB_H 1 5695_ACEOF 5696 5697 fi 5698 if test "${ac_cv_header_string_h+set}" = set; then 5699 echo "$as_me:$LINENO: checking for string.h" >&5 5700echo $ECHO_N "checking for string.h... $ECHO_C" >&6 5701if test "${ac_cv_header_string_h+set}" = set; then 5702 echo $ECHO_N "(cached) $ECHO_C" >&6 5703fi 5704echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 5705echo "${ECHO_T}$ac_cv_header_string_h" >&6 5706else 5707 # Is the header compilable? 5708echo "$as_me:$LINENO: checking string.h usability" >&5 5709echo $ECHO_N "checking string.h usability... $ECHO_C" >&6 5710cat >conftest.$ac_ext <<_ACEOF 5711/* confdefs.h. */ 5712_ACEOF 5713cat confdefs.h >>conftest.$ac_ext 5714cat >>conftest.$ac_ext <<_ACEOF 5715/* end confdefs.h. */ 5716$ac_includes_default 5717#include <string.h> 5718_ACEOF 5719rm -f conftest.$ac_objext 5720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5721 (eval $ac_compile) 2>conftest.er1 5722 ac_status=$? 5723 grep -v '^ *+' conftest.er1 >conftest.err 5724 rm -f conftest.er1 5725 cat conftest.err >&5 5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5727 (exit $ac_status); } && 5728 { ac_try='test -z "$ac_c_werror_flag" 5729 || test ! -s conftest.err' 5730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5731 (eval $ac_try) 2>&5 5732 ac_status=$? 5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5734 (exit $ac_status); }; } && 5735 { ac_try='test -s conftest.$ac_objext' 5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5737 (eval $ac_try) 2>&5 5738 ac_status=$? 5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5740 (exit $ac_status); }; }; then 5741 ac_header_compiler=yes 5742else 5743 echo "$as_me: failed program was:" >&5 5744sed 's/^/| /' conftest.$ac_ext >&5 5745 5746ac_header_compiler=no 5747fi 5748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5749echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5750echo "${ECHO_T}$ac_header_compiler" >&6 5751 5752# Is the header present? 5753echo "$as_me:$LINENO: checking string.h presence" >&5 5754echo $ECHO_N "checking string.h presence... $ECHO_C" >&6 5755cat >conftest.$ac_ext <<_ACEOF 5756/* confdefs.h. */ 5757_ACEOF 5758cat confdefs.h >>conftest.$ac_ext 5759cat >>conftest.$ac_ext <<_ACEOF 5760/* end confdefs.h. */ 5761#include <string.h> 5762_ACEOF 5763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5765 ac_status=$? 5766 grep -v '^ *+' conftest.er1 >conftest.err 5767 rm -f conftest.er1 5768 cat conftest.err >&5 5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5770 (exit $ac_status); } >/dev/null; then 5771 if test -s conftest.err; then 5772 ac_cpp_err=$ac_c_preproc_warn_flag 5773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5774 else 5775 ac_cpp_err= 5776 fi 5777else 5778 ac_cpp_err=yes 5779fi 5780if test -z "$ac_cpp_err"; then 5781 ac_header_preproc=yes 5782else 5783 echo "$as_me: failed program was:" >&5 5784sed 's/^/| /' conftest.$ac_ext >&5 5785 5786 ac_header_preproc=no 5787fi 5788rm -f conftest.err conftest.$ac_ext 5789echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5790echo "${ECHO_T}$ac_header_preproc" >&6 5791 5792# So? What about this header? 5793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5794 yes:no: ) 5795 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 5796echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5797 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 5798echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 5799 ac_header_preproc=yes 5800 ;; 5801 no:yes:* ) 5802 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 5803echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 5804 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 5805echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 5806 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 5807echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 5808 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 5809echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 5810 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 5811echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 5812 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 5813echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 5814 ( 5815 cat <<\_ASBOX 5816## -------------------------------- ## 5817## Report this to the tkpng lists. ## 5818## -------------------------------- ## 5819_ASBOX 5820 ) | 5821 sed "s/^/$as_me: WARNING: /" >&2 5822 ;; 5823esac 5824echo "$as_me:$LINENO: checking for string.h" >&5 5825echo $ECHO_N "checking for string.h... $ECHO_C" >&6 5826if test "${ac_cv_header_string_h+set}" = set; then 5827 echo $ECHO_N "(cached) $ECHO_C" >&6 5828else 5829 ac_cv_header_string_h=$ac_header_preproc 5830fi 5831echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 5832echo "${ECHO_T}$ac_cv_header_string_h" >&6 5833 5834fi 5835if test $ac_cv_header_string_h = yes; then 5836 tcl_ok=1 5837else 5838 tcl_ok=0 5839fi 5840 5841 5842 cat >conftest.$ac_ext <<_ACEOF 5843/* confdefs.h. */ 5844_ACEOF 5845cat confdefs.h >>conftest.$ac_ext 5846cat >>conftest.$ac_ext <<_ACEOF 5847/* end confdefs.h. */ 5848#include <string.h> 5849 5850_ACEOF 5851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5852 $EGREP "strstr" >/dev/null 2>&1; then 5853 : 5854else 5855 tcl_ok=0 5856fi 5857rm -f conftest* 5858 5859 cat >conftest.$ac_ext <<_ACEOF 5860/* confdefs.h. */ 5861_ACEOF 5862cat confdefs.h >>conftest.$ac_ext 5863cat >>conftest.$ac_ext <<_ACEOF 5864/* end confdefs.h. */ 5865#include <string.h> 5866 5867_ACEOF 5868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5869 $EGREP "strerror" >/dev/null 2>&1; then 5870 : 5871else 5872 tcl_ok=0 5873fi 5874rm -f conftest* 5875 5876 5877 # See also memmove check below for a place where NO_STRING_H can be 5878 # set and why. 5879 5880 if test $tcl_ok = 0; then 5881 5882cat >>confdefs.h <<\_ACEOF 5883#define NO_STRING_H 1 5884_ACEOF 5885 5886 fi 5887 5888 if test "${ac_cv_header_sys_wait_h+set}" = set; then 5889 echo "$as_me:$LINENO: checking for sys/wait.h" >&5 5890echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6 5891if test "${ac_cv_header_sys_wait_h+set}" = set; then 5892 echo $ECHO_N "(cached) $ECHO_C" >&6 5893fi 5894echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 5895echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 5896else 5897 # Is the header compilable? 5898echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 5899echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6 5900cat >conftest.$ac_ext <<_ACEOF 5901/* confdefs.h. */ 5902_ACEOF 5903cat confdefs.h >>conftest.$ac_ext 5904cat >>conftest.$ac_ext <<_ACEOF 5905/* end confdefs.h. */ 5906$ac_includes_default 5907#include <sys/wait.h> 5908_ACEOF 5909rm -f conftest.$ac_objext 5910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5911 (eval $ac_compile) 2>conftest.er1 5912 ac_status=$? 5913 grep -v '^ *+' conftest.er1 >conftest.err 5914 rm -f conftest.er1 5915 cat conftest.err >&5 5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5917 (exit $ac_status); } && 5918 { ac_try='test -z "$ac_c_werror_flag" 5919 || test ! -s conftest.err' 5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5921 (eval $ac_try) 2>&5 5922 ac_status=$? 5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5924 (exit $ac_status); }; } && 5925 { ac_try='test -s conftest.$ac_objext' 5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5927 (eval $ac_try) 2>&5 5928 ac_status=$? 5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5930 (exit $ac_status); }; }; then 5931 ac_header_compiler=yes 5932else 5933 echo "$as_me: failed program was:" >&5 5934sed 's/^/| /' conftest.$ac_ext >&5 5935 5936ac_header_compiler=no 5937fi 5938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5939echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5940echo "${ECHO_T}$ac_header_compiler" >&6 5941 5942# Is the header present? 5943echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 5944echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6 5945cat >conftest.$ac_ext <<_ACEOF 5946/* confdefs.h. */ 5947_ACEOF 5948cat confdefs.h >>conftest.$ac_ext 5949cat >>conftest.$ac_ext <<_ACEOF 5950/* end confdefs.h. */ 5951#include <sys/wait.h> 5952_ACEOF 5953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5955 ac_status=$? 5956 grep -v '^ *+' conftest.er1 >conftest.err 5957 rm -f conftest.er1 5958 cat conftest.err >&5 5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5960 (exit $ac_status); } >/dev/null; then 5961 if test -s conftest.err; then 5962 ac_cpp_err=$ac_c_preproc_warn_flag 5963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5964 else 5965 ac_cpp_err= 5966 fi 5967else 5968 ac_cpp_err=yes 5969fi 5970if test -z "$ac_cpp_err"; then 5971 ac_header_preproc=yes 5972else 5973 echo "$as_me: failed program was:" >&5 5974sed 's/^/| /' conftest.$ac_ext >&5 5975 5976 ac_header_preproc=no 5977fi 5978rm -f conftest.err conftest.$ac_ext 5979echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5980echo "${ECHO_T}$ac_header_preproc" >&6 5981 5982# So? What about this header? 5983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5984 yes:no: ) 5985 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 5986echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5987 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 5988echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 5989 ac_header_preproc=yes 5990 ;; 5991 no:yes:* ) 5992 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 5993echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 5994 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 5995echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 5996 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 5997echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 5998 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 5999echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6000 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6001echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6002 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6003echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6004 ( 6005 cat <<\_ASBOX 6006## -------------------------------- ## 6007## Report this to the tkpng lists. ## 6008## -------------------------------- ## 6009_ASBOX 6010 ) | 6011 sed "s/^/$as_me: WARNING: /" >&2 6012 ;; 6013esac 6014echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6015echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6 6016if test "${ac_cv_header_sys_wait_h+set}" = set; then 6017 echo $ECHO_N "(cached) $ECHO_C" >&6 6018else 6019 ac_cv_header_sys_wait_h=$ac_header_preproc 6020fi 6021echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6022echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 6023 6024fi 6025if test $ac_cv_header_sys_wait_h = yes; then 6026 : 6027else 6028 6029cat >>confdefs.h <<\_ACEOF 6030#define NO_SYS_WAIT_H 1 6031_ACEOF 6032 6033fi 6034 6035 6036 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6037 echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6038echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 6039if test "${ac_cv_header_dlfcn_h+set}" = set; then 6040 echo $ECHO_N "(cached) $ECHO_C" >&6 6041fi 6042echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6043echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 6044else 6045 # Is the header compilable? 6046echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6047echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6 6048cat >conftest.$ac_ext <<_ACEOF 6049/* confdefs.h. */ 6050_ACEOF 6051cat confdefs.h >>conftest.$ac_ext 6052cat >>conftest.$ac_ext <<_ACEOF 6053/* end confdefs.h. */ 6054$ac_includes_default 6055#include <dlfcn.h> 6056_ACEOF 6057rm -f conftest.$ac_objext 6058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6059 (eval $ac_compile) 2>conftest.er1 6060 ac_status=$? 6061 grep -v '^ *+' conftest.er1 >conftest.err 6062 rm -f conftest.er1 6063 cat conftest.err >&5 6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6065 (exit $ac_status); } && 6066 { ac_try='test -z "$ac_c_werror_flag" 6067 || test ! -s conftest.err' 6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6069 (eval $ac_try) 2>&5 6070 ac_status=$? 6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6072 (exit $ac_status); }; } && 6073 { ac_try='test -s conftest.$ac_objext' 6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6075 (eval $ac_try) 2>&5 6076 ac_status=$? 6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6078 (exit $ac_status); }; }; then 6079 ac_header_compiler=yes 6080else 6081 echo "$as_me: failed program was:" >&5 6082sed 's/^/| /' conftest.$ac_ext >&5 6083 6084ac_header_compiler=no 6085fi 6086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6087echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6088echo "${ECHO_T}$ac_header_compiler" >&6 6089 6090# Is the header present? 6091echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6092echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6 6093cat >conftest.$ac_ext <<_ACEOF 6094/* confdefs.h. */ 6095_ACEOF 6096cat confdefs.h >>conftest.$ac_ext 6097cat >>conftest.$ac_ext <<_ACEOF 6098/* end confdefs.h. */ 6099#include <dlfcn.h> 6100_ACEOF 6101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6103 ac_status=$? 6104 grep -v '^ *+' conftest.er1 >conftest.err 6105 rm -f conftest.er1 6106 cat conftest.err >&5 6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6108 (exit $ac_status); } >/dev/null; then 6109 if test -s conftest.err; then 6110 ac_cpp_err=$ac_c_preproc_warn_flag 6111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6112 else 6113 ac_cpp_err= 6114 fi 6115else 6116 ac_cpp_err=yes 6117fi 6118if test -z "$ac_cpp_err"; then 6119 ac_header_preproc=yes 6120else 6121 echo "$as_me: failed program was:" >&5 6122sed 's/^/| /' conftest.$ac_ext >&5 6123 6124 ac_header_preproc=no 6125fi 6126rm -f conftest.err conftest.$ac_ext 6127echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6128echo "${ECHO_T}$ac_header_preproc" >&6 6129 6130# So? What about this header? 6131case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6132 yes:no: ) 6133 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6134echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6135 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6136echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6137 ac_header_preproc=yes 6138 ;; 6139 no:yes:* ) 6140 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6141echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6142 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6143echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6144 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6145echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6146 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6147echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6148 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6149echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6150 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6151echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6152 ( 6153 cat <<\_ASBOX 6154## -------------------------------- ## 6155## Report this to the tkpng lists. ## 6156## -------------------------------- ## 6157_ASBOX 6158 ) | 6159 sed "s/^/$as_me: WARNING: /" >&2 6160 ;; 6161esac 6162echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6163echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 6164if test "${ac_cv_header_dlfcn_h+set}" = set; then 6165 echo $ECHO_N "(cached) $ECHO_C" >&6 6166else 6167 ac_cv_header_dlfcn_h=$ac_header_preproc 6168fi 6169echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6170echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 6171 6172fi 6173if test $ac_cv_header_dlfcn_h = yes; then 6174 : 6175else 6176 6177cat >>confdefs.h <<\_ACEOF 6178#define NO_DLFCN_H 1 6179_ACEOF 6180 6181fi 6182 6183 6184 6185 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6186 6187for ac_header in sys/param.h 6188do 6189as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6190if eval "test \"\${$as_ac_Header+set}\" = set"; then 6191 echo "$as_me:$LINENO: checking for $ac_header" >&5 6192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6193if eval "test \"\${$as_ac_Header+set}\" = set"; then 6194 echo $ECHO_N "(cached) $ECHO_C" >&6 6195fi 6196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6198else 6199 # Is the header compilable? 6200echo "$as_me:$LINENO: checking $ac_header usability" >&5 6201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6202cat >conftest.$ac_ext <<_ACEOF 6203/* confdefs.h. */ 6204_ACEOF 6205cat confdefs.h >>conftest.$ac_ext 6206cat >>conftest.$ac_ext <<_ACEOF 6207/* end confdefs.h. */ 6208$ac_includes_default 6209#include <$ac_header> 6210_ACEOF 6211rm -f conftest.$ac_objext 6212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6213 (eval $ac_compile) 2>conftest.er1 6214 ac_status=$? 6215 grep -v '^ *+' conftest.er1 >conftest.err 6216 rm -f conftest.er1 6217 cat conftest.err >&5 6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6219 (exit $ac_status); } && 6220 { ac_try='test -z "$ac_c_werror_flag" 6221 || test ! -s conftest.err' 6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6223 (eval $ac_try) 2>&5 6224 ac_status=$? 6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6226 (exit $ac_status); }; } && 6227 { ac_try='test -s conftest.$ac_objext' 6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6229 (eval $ac_try) 2>&5 6230 ac_status=$? 6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6232 (exit $ac_status); }; }; then 6233 ac_header_compiler=yes 6234else 6235 echo "$as_me: failed program was:" >&5 6236sed 's/^/| /' conftest.$ac_ext >&5 6237 6238ac_header_compiler=no 6239fi 6240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6241echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6242echo "${ECHO_T}$ac_header_compiler" >&6 6243 6244# Is the header present? 6245echo "$as_me:$LINENO: checking $ac_header presence" >&5 6246echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6247cat >conftest.$ac_ext <<_ACEOF 6248/* confdefs.h. */ 6249_ACEOF 6250cat confdefs.h >>conftest.$ac_ext 6251cat >>conftest.$ac_ext <<_ACEOF 6252/* end confdefs.h. */ 6253#include <$ac_header> 6254_ACEOF 6255if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6257 ac_status=$? 6258 grep -v '^ *+' conftest.er1 >conftest.err 6259 rm -f conftest.er1 6260 cat conftest.err >&5 6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6262 (exit $ac_status); } >/dev/null; then 6263 if test -s conftest.err; then 6264 ac_cpp_err=$ac_c_preproc_warn_flag 6265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6266 else 6267 ac_cpp_err= 6268 fi 6269else 6270 ac_cpp_err=yes 6271fi 6272if test -z "$ac_cpp_err"; then 6273 ac_header_preproc=yes 6274else 6275 echo "$as_me: failed program was:" >&5 6276sed 's/^/| /' conftest.$ac_ext >&5 6277 6278 ac_header_preproc=no 6279fi 6280rm -f conftest.err conftest.$ac_ext 6281echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6282echo "${ECHO_T}$ac_header_preproc" >&6 6283 6284# So? What about this header? 6285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6286 yes:no: ) 6287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6291 ac_header_preproc=yes 6292 ;; 6293 no:yes:* ) 6294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6297echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6301echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6306 ( 6307 cat <<\_ASBOX 6308## -------------------------------- ## 6309## Report this to the tkpng lists. ## 6310## -------------------------------- ## 6311_ASBOX 6312 ) | 6313 sed "s/^/$as_me: WARNING: /" >&2 6314 ;; 6315esac 6316echo "$as_me:$LINENO: checking for $ac_header" >&5 6317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6318if eval "test \"\${$as_ac_Header+set}\" = set"; then 6319 echo $ECHO_N "(cached) $ECHO_C" >&6 6320else 6321 eval "$as_ac_Header=\$ac_header_preproc" 6322fi 6323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6325 6326fi 6327if test `eval echo '${'$as_ac_Header'}'` = yes; then 6328 cat >>confdefs.h <<_ACEOF 6329#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6330_ACEOF 6331 6332fi 6333 6334done 6335 6336 6337 # Let the user call this, because if it triggers, they will 6338 # need a compat/strtod.c that is correct. Users can also 6339 # use Tcl_GetDouble(FromObj) instead. 6340 #TEA_BUGGY_STRTOD 6341 fi 6342 6343 6344 6345 vars="tkImgPNG.c tkImgPNGInit.c" 6346 for i in $vars; do 6347 case $i in 6348 \$*) 6349 # allow $-var names 6350 PKG_SOURCES="$PKG_SOURCES $i" 6351 PKG_OBJECTS="$PKG_OBJECTS $i" 6352 ;; 6353 *) 6354 # check for existence - allows for generic/win/unix VPATH 6355 # To add more dirs here (like 'src'), you have to update VPATH 6356 # in Makefile.in as well 6357 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6358 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6359 ; then 6360 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6361echo "$as_me: error: could not find source file '$i'" >&2;} 6362 { (exit 1); exit 1; }; } 6363 fi 6364 PKG_SOURCES="$PKG_SOURCES $i" 6365 # this assumes it is in a VPATH dir 6366 i=`basename $i` 6367 # handle user calling this before or after TEA_SETUP_COMPILER 6368 if test x"${OBJEXT}" != x ; then 6369 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6370 else 6371 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6372 fi 6373 PKG_OBJECTS="$PKG_OBJECTS $j" 6374 ;; 6375 esac 6376 done 6377 6378 6379 6380 6381 vars="" 6382 for i in $vars; do 6383 # check for existence, be strict because it is installed 6384 if test ! -f "${srcdir}/$i" ; then 6385 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6386echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6387 { (exit 1); exit 1; }; } 6388 fi 6389 PKG_HEADERS="$PKG_HEADERS $i" 6390 done 6391 6392 6393 6394 vars="" 6395 for i in $vars; do 6396 PKG_INCLUDES="$PKG_INCLUDES $i" 6397 done 6398 6399 6400 6401 vars="-lz" 6402 for i in $vars; do 6403 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6404 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6405 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6406 fi 6407 PKG_LIBS="$PKG_LIBS $i" 6408 done 6409 6410 6411 6412 PKG_CFLAGS="$PKG_CFLAGS " 6413 6414 6415 6416 vars="" 6417 for i in $vars; do 6418 # check for existence - allows for generic/win/unix VPATH 6419 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6420 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6421 ; then 6422 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6423echo "$as_me: error: could not find stub source file '$i'" >&2;} 6424 { (exit 1); exit 1; }; } 6425 fi 6426 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6427 # this assumes it is in a VPATH dir 6428 i=`basename $i` 6429 # handle user calling this before or after TEA_SETUP_COMPILER 6430 if test x"${OBJEXT}" != x ; then 6431 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6432 else 6433 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6434 fi 6435 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6436 done 6437 6438 6439 6440 6441 vars="" 6442 for i in $vars; do 6443 # check for existence, be strict because it is installed 6444 if test ! -f "${srcdir}/$i" ; then 6445 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6446echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6447 { (exit 1); exit 1; }; } 6448 fi 6449 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6450 done 6451 6452 6453 6454#-------------------------------------------------------------------- 6455# A few miscellaneous platform-specific items: 6456# 6457# Define a special symbol for Windows (BUILD_sample in this case) so 6458# that we create the export library with the dll. 6459# 6460# Windows creates a few extra files that need to be cleaned up. 6461# You can add more files to clean if your extension creates any extra 6462# files. 6463# 6464# TEA_ADD_* any platform specific compiler/build info here. 6465#-------------------------------------------------------------------- 6466 6467if test "${TEA_PLATFORM}" = "windows" ; then 6468 cat >>confdefs.h <<\_ACEOF 6469#define BUILD_sample 1 6470_ACEOF 6471 6472 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" 6473 #TEA_ADD_SOURCES([win/winFile.c]) 6474 #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"]) 6475else 6476 CLEANFILES="pkgIndex.tcl" 6477 #TEA_ADD_SOURCES([unix/unixFile.c]) 6478 #TEA_ADD_LIBS([-lsuperfly]) 6479fi 6480 6481 6482 6483 echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6484echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6 6485 6486 6487# Check whether --with-tclinclude or --without-tclinclude was given. 6488if test "${with_tclinclude+set}" = set; then 6489 withval="$with_tclinclude" 6490 with_tclinclude=${withval} 6491fi; 6492 6493 if test "${ac_cv_c_tclh+set}" = set; then 6494 echo $ECHO_N "(cached) $ECHO_C" >&6 6495else 6496 6497 # Use the value from --with-tclinclude, if it was given 6498 6499 if test x"${with_tclinclude}" != x ; then 6500 if test -f "${with_tclinclude}/tcl.h" ; then 6501 ac_cv_c_tclh=${with_tclinclude} 6502 else 6503 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6504echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6505 { (exit 1); exit 1; }; } 6506 fi 6507 else 6508 if test "`uname -s`" = "Darwin"; then 6509 # If Tcl was built as a framework, attempt to use 6510 # the framework's Headers directory 6511 case ${TCL_DEFS} in 6512 *TCL_FRAMEWORK*) 6513 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 6514 ;; 6515 esac 6516 fi 6517 6518 # Look in the source dir only if Tcl is not installed, 6519 # and in that situation, look there before installed locations. 6520 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6521 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 6522 fi 6523 6524 # Check order: pkg --prefix location, Tcl's --prefix location, 6525 # relative to directory of tclConfig.sh. 6526 6527 eval "temp_includedir=${includedir}" 6528 list="$list \ 6529 `ls -d ${temp_includedir} 2>/dev/null` \ 6530 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 6531 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 6532 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 6533 list="$list /usr/local/include /usr/include" 6534 if test x"${TCL_INCLUDE_SPEC}" != x ; then 6535 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 6536 list="$list `ls -d ${d} 2>/dev/null`" 6537 fi 6538 fi 6539 for i in $list ; do 6540 if test -f "$i/tcl.h" ; then 6541 ac_cv_c_tclh=$i 6542 break 6543 fi 6544 done 6545 fi 6546 6547fi 6548 6549 6550 # Print a message based on how we determined the include path 6551 6552 if test x"${ac_cv_c_tclh}" = x ; then 6553 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 6554echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 6555 { (exit 1); exit 1; }; } 6556 else 6557 echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 6558echo "${ECHO_T}${ac_cv_c_tclh}" >&6 6559 fi 6560 6561 # Convert to a native path and substitute into the output files. 6562 6563 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 6564 6565 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 6566 6567 6568 6569#TEA_PRIVATE_TCL_HEADERS 6570 6571 6572 echo "$as_me:$LINENO: checking for Tk public headers" >&5 6573echo $ECHO_N "checking for Tk public headers... $ECHO_C" >&6 6574 6575 6576# Check whether --with-tkinclude or --without-tkinclude was given. 6577if test "${with_tkinclude+set}" = set; then 6578 withval="$with_tkinclude" 6579 with_tkinclude=${withval} 6580fi; 6581 6582 if test "${ac_cv_c_tkh+set}" = set; then 6583 echo $ECHO_N "(cached) $ECHO_C" >&6 6584else 6585 6586 # Use the value from --with-tkinclude, if it was given 6587 6588 if test x"${with_tkinclude}" != x ; then 6589 if test -f "${with_tkinclude}/tk.h" ; then 6590 ac_cv_c_tkh=${with_tkinclude} 6591 else 6592 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory does not contain tk.h" >&5 6593echo "$as_me: error: ${with_tkinclude} directory does not contain tk.h" >&2;} 6594 { (exit 1); exit 1; }; } 6595 fi 6596 else 6597 if test "`uname -s`" = "Darwin"; then 6598 # If Tk was built as a framework, attempt to use 6599 # the framework's Headers directory. 6600 case ${TK_DEFS} in 6601 *TK_FRAMEWORK*) 6602 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`" 6603 ;; 6604 esac 6605 fi 6606 6607 # Look in the source dir only if Tk is not installed, 6608 # and in that situation, look there before installed locations. 6609 if test -f "${TK_BIN_DIR}/Makefile" ; then 6610 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`" 6611 fi 6612 6613 # Check order: pkg --prefix location, Tk's --prefix location, 6614 # relative to directory of tkConfig.sh, Tcl's --prefix location, 6615 # relative to directory of tclConfig.sh. 6616 6617 eval "temp_includedir=${includedir}" 6618 list="$list \ 6619 `ls -d ${temp_includedir} 2>/dev/null` \ 6620 `ls -d ${TK_PREFIX}/include 2>/dev/null` \ 6621 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \ 6622 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 6623 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 6624 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 6625 list="$list /usr/local/include /usr/include" 6626 fi 6627 for i in $list ; do 6628 if test -f "$i/tk.h" ; then 6629 ac_cv_c_tkh=$i 6630 break 6631 fi 6632 done 6633 fi 6634 6635fi 6636 6637 6638 # Print a message based on how we determined the include path 6639 6640 if test x"${ac_cv_c_tkh}" = x ; then 6641 { { echo "$as_me:$LINENO: error: tk.h not found. Please specify its location with --with-tkinclude" >&5 6642echo "$as_me: error: tk.h not found. Please specify its location with --with-tkinclude" >&2;} 6643 { (exit 1); exit 1; }; } 6644 else 6645 echo "$as_me:$LINENO: result: ${ac_cv_c_tkh}" >&5 6646echo "${ECHO_T}${ac_cv_c_tkh}" >&6 6647 fi 6648 6649 # Convert to a native path and substitute into the output files. 6650 6651 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}` 6652 6653 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 6654 6655 6656 6657 if test "${TEA_WINDOWINGSYSTEM}" = "win32" \ 6658 -o "${TEA_WINDOWINGSYSTEM}" = "aqua"; then 6659 # On Windows and Aqua, we need the X compat headers 6660 echo "$as_me:$LINENO: checking for X11 header files" >&5 6661echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6 6662 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then 6663 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`" 6664 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 6665 6666 fi 6667 echo "$as_me:$LINENO: result: ${INCLUDE_DIR_NATIVE}" >&5 6668echo "${ECHO_T}${INCLUDE_DIR_NATIVE}" >&6 6669 fi 6670 6671#TEA_PRIVATE_TK_HEADERS 6672#TEA_PATH_X 6673 6674#-------------------------------------------------------------------- 6675# Check whether --enable-threads or --disable-threads was given. 6676# This auto-enables if Tcl was compiled threaded. 6677#-------------------------------------------------------------------- 6678 6679 6680 # Check whether --enable-threads or --disable-threads was given. 6681if test "${enable_threads+set}" = set; then 6682 enableval="$enable_threads" 6683 tcl_ok=$enableval 6684else 6685 tcl_ok=yes 6686fi; 6687 6688 if test "${enable_threads+set}" = set; then 6689 enableval="$enable_threads" 6690 tcl_ok=$enableval 6691 else 6692 tcl_ok=yes 6693 fi 6694 6695 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 6696 TCL_THREADS=1 6697 6698 if test "${TEA_PLATFORM}" != "windows" ; then 6699 # We are always OK on Windows, so check what this platform wants: 6700 6701 # USE_THREAD_ALLOC tells us to try the special thread-based 6702 # allocator that significantly reduces lock contention 6703 6704cat >>confdefs.h <<\_ACEOF 6705#define USE_THREAD_ALLOC 1 6706_ACEOF 6707 6708 6709cat >>confdefs.h <<\_ACEOF 6710#define _REENTRANT 1 6711_ACEOF 6712 6713 if test "`uname -s`" = "SunOS" ; then 6714 6715cat >>confdefs.h <<\_ACEOF 6716#define _POSIX_PTHREAD_SEMANTICS 1 6717_ACEOF 6718 6719 fi 6720 6721cat >>confdefs.h <<\_ACEOF 6722#define _THREAD_SAFE 1 6723_ACEOF 6724 6725 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 6726echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6 6727if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 6728 echo $ECHO_N "(cached) $ECHO_C" >&6 6729else 6730 ac_check_lib_save_LIBS=$LIBS 6731LIBS="-lpthread $LIBS" 6732cat >conftest.$ac_ext <<_ACEOF 6733/* confdefs.h. */ 6734_ACEOF 6735cat confdefs.h >>conftest.$ac_ext 6736cat >>conftest.$ac_ext <<_ACEOF 6737/* end confdefs.h. */ 6738 6739/* Override any gcc2 internal prototype to avoid an error. */ 6740#ifdef __cplusplus 6741extern "C" 6742#endif 6743/* We use char because int might match the return type of a gcc2 6744 builtin and then its argument prototype would still apply. */ 6745char pthread_mutex_init (); 6746int 6747main () 6748{ 6749pthread_mutex_init (); 6750 ; 6751 return 0; 6752} 6753_ACEOF 6754rm -f conftest.$ac_objext conftest$ac_exeext 6755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6756 (eval $ac_link) 2>conftest.er1 6757 ac_status=$? 6758 grep -v '^ *+' conftest.er1 >conftest.err 6759 rm -f conftest.er1 6760 cat conftest.err >&5 6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6762 (exit $ac_status); } && 6763 { ac_try='test -z "$ac_c_werror_flag" 6764 || test ! -s conftest.err' 6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6766 (eval $ac_try) 2>&5 6767 ac_status=$? 6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6769 (exit $ac_status); }; } && 6770 { ac_try='test -s conftest$ac_exeext' 6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6772 (eval $ac_try) 2>&5 6773 ac_status=$? 6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6775 (exit $ac_status); }; }; then 6776 ac_cv_lib_pthread_pthread_mutex_init=yes 6777else 6778 echo "$as_me: failed program was:" >&5 6779sed 's/^/| /' conftest.$ac_ext >&5 6780 6781ac_cv_lib_pthread_pthread_mutex_init=no 6782fi 6783rm -f conftest.err conftest.$ac_objext \ 6784 conftest$ac_exeext conftest.$ac_ext 6785LIBS=$ac_check_lib_save_LIBS 6786fi 6787echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 6788echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6 6789if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 6790 tcl_ok=yes 6791else 6792 tcl_ok=no 6793fi 6794 6795 if test "$tcl_ok" = "no"; then 6796 # Check a little harder for __pthread_mutex_init in the same 6797 # library, as some systems hide it there until pthread.h is 6798 # defined. We could alternatively do an AC_TRY_COMPILE with 6799 # pthread.h, but that will work with libpthread really doesn't 6800 # exist, like AIX 4.2. [Bug: 4359] 6801 echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 6802echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6 6803if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 6804 echo $ECHO_N "(cached) $ECHO_C" >&6 6805else 6806 ac_check_lib_save_LIBS=$LIBS 6807LIBS="-lpthread $LIBS" 6808cat >conftest.$ac_ext <<_ACEOF 6809/* confdefs.h. */ 6810_ACEOF 6811cat confdefs.h >>conftest.$ac_ext 6812cat >>conftest.$ac_ext <<_ACEOF 6813/* end confdefs.h. */ 6814 6815/* Override any gcc2 internal prototype to avoid an error. */ 6816#ifdef __cplusplus 6817extern "C" 6818#endif 6819/* We use char because int might match the return type of a gcc2 6820 builtin and then its argument prototype would still apply. */ 6821char __pthread_mutex_init (); 6822int 6823main () 6824{ 6825__pthread_mutex_init (); 6826 ; 6827 return 0; 6828} 6829_ACEOF 6830rm -f conftest.$ac_objext conftest$ac_exeext 6831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6832 (eval $ac_link) 2>conftest.er1 6833 ac_status=$? 6834 grep -v '^ *+' conftest.er1 >conftest.err 6835 rm -f conftest.er1 6836 cat conftest.err >&5 6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6838 (exit $ac_status); } && 6839 { ac_try='test -z "$ac_c_werror_flag" 6840 || test ! -s conftest.err' 6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6842 (eval $ac_try) 2>&5 6843 ac_status=$? 6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6845 (exit $ac_status); }; } && 6846 { ac_try='test -s conftest$ac_exeext' 6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6848 (eval $ac_try) 2>&5 6849 ac_status=$? 6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6851 (exit $ac_status); }; }; then 6852 ac_cv_lib_pthread___pthread_mutex_init=yes 6853else 6854 echo "$as_me: failed program was:" >&5 6855sed 's/^/| /' conftest.$ac_ext >&5 6856 6857ac_cv_lib_pthread___pthread_mutex_init=no 6858fi 6859rm -f conftest.err conftest.$ac_objext \ 6860 conftest$ac_exeext conftest.$ac_ext 6861LIBS=$ac_check_lib_save_LIBS 6862fi 6863echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 6864echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6 6865if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 6866 tcl_ok=yes 6867else 6868 tcl_ok=no 6869fi 6870 6871 fi 6872 6873 if test "$tcl_ok" = "yes"; then 6874 # The space is needed 6875 THREADS_LIBS=" -lpthread" 6876 else 6877 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 6878echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6 6879if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 6880 echo $ECHO_N "(cached) $ECHO_C" >&6 6881else 6882 ac_check_lib_save_LIBS=$LIBS 6883LIBS="-lpthreads $LIBS" 6884cat >conftest.$ac_ext <<_ACEOF 6885/* confdefs.h. */ 6886_ACEOF 6887cat confdefs.h >>conftest.$ac_ext 6888cat >>conftest.$ac_ext <<_ACEOF 6889/* end confdefs.h. */ 6890 6891/* Override any gcc2 internal prototype to avoid an error. */ 6892#ifdef __cplusplus 6893extern "C" 6894#endif 6895/* We use char because int might match the return type of a gcc2 6896 builtin and then its argument prototype would still apply. */ 6897char pthread_mutex_init (); 6898int 6899main () 6900{ 6901pthread_mutex_init (); 6902 ; 6903 return 0; 6904} 6905_ACEOF 6906rm -f conftest.$ac_objext conftest$ac_exeext 6907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6908 (eval $ac_link) 2>conftest.er1 6909 ac_status=$? 6910 grep -v '^ *+' conftest.er1 >conftest.err 6911 rm -f conftest.er1 6912 cat conftest.err >&5 6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6914 (exit $ac_status); } && 6915 { ac_try='test -z "$ac_c_werror_flag" 6916 || test ! -s conftest.err' 6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6918 (eval $ac_try) 2>&5 6919 ac_status=$? 6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6921 (exit $ac_status); }; } && 6922 { ac_try='test -s conftest$ac_exeext' 6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6924 (eval $ac_try) 2>&5 6925 ac_status=$? 6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6927 (exit $ac_status); }; }; then 6928 ac_cv_lib_pthreads_pthread_mutex_init=yes 6929else 6930 echo "$as_me: failed program was:" >&5 6931sed 's/^/| /' conftest.$ac_ext >&5 6932 6933ac_cv_lib_pthreads_pthread_mutex_init=no 6934fi 6935rm -f conftest.err conftest.$ac_objext \ 6936 conftest$ac_exeext conftest.$ac_ext 6937LIBS=$ac_check_lib_save_LIBS 6938fi 6939echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 6940echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6 6941if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 6942 tcl_ok=yes 6943else 6944 tcl_ok=no 6945fi 6946 6947 if test "$tcl_ok" = "yes"; then 6948 # The space is needed 6949 THREADS_LIBS=" -lpthreads" 6950 else 6951 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 6952echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6 6953if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 6954 echo $ECHO_N "(cached) $ECHO_C" >&6 6955else 6956 ac_check_lib_save_LIBS=$LIBS 6957LIBS="-lc $LIBS" 6958cat >conftest.$ac_ext <<_ACEOF 6959/* confdefs.h. */ 6960_ACEOF 6961cat confdefs.h >>conftest.$ac_ext 6962cat >>conftest.$ac_ext <<_ACEOF 6963/* end confdefs.h. */ 6964 6965/* Override any gcc2 internal prototype to avoid an error. */ 6966#ifdef __cplusplus 6967extern "C" 6968#endif 6969/* We use char because int might match the return type of a gcc2 6970 builtin and then its argument prototype would still apply. */ 6971char pthread_mutex_init (); 6972int 6973main () 6974{ 6975pthread_mutex_init (); 6976 ; 6977 return 0; 6978} 6979_ACEOF 6980rm -f conftest.$ac_objext conftest$ac_exeext 6981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6982 (eval $ac_link) 2>conftest.er1 6983 ac_status=$? 6984 grep -v '^ *+' conftest.er1 >conftest.err 6985 rm -f conftest.er1 6986 cat conftest.err >&5 6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6988 (exit $ac_status); } && 6989 { ac_try='test -z "$ac_c_werror_flag" 6990 || test ! -s conftest.err' 6991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6992 (eval $ac_try) 2>&5 6993 ac_status=$? 6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6995 (exit $ac_status); }; } && 6996 { ac_try='test -s conftest$ac_exeext' 6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6998 (eval $ac_try) 2>&5 6999 ac_status=$? 7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7001 (exit $ac_status); }; }; then 7002 ac_cv_lib_c_pthread_mutex_init=yes 7003else 7004 echo "$as_me: failed program was:" >&5 7005sed 's/^/| /' conftest.$ac_ext >&5 7006 7007ac_cv_lib_c_pthread_mutex_init=no 7008fi 7009rm -f conftest.err conftest.$ac_objext \ 7010 conftest$ac_exeext conftest.$ac_ext 7011LIBS=$ac_check_lib_save_LIBS 7012fi 7013echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7014echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6 7015if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7016 tcl_ok=yes 7017else 7018 tcl_ok=no 7019fi 7020 7021 if test "$tcl_ok" = "no"; then 7022 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7023echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6 7024if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7025 echo $ECHO_N "(cached) $ECHO_C" >&6 7026else 7027 ac_check_lib_save_LIBS=$LIBS 7028LIBS="-lc_r $LIBS" 7029cat >conftest.$ac_ext <<_ACEOF 7030/* confdefs.h. */ 7031_ACEOF 7032cat confdefs.h >>conftest.$ac_ext 7033cat >>conftest.$ac_ext <<_ACEOF 7034/* end confdefs.h. */ 7035 7036/* Override any gcc2 internal prototype to avoid an error. */ 7037#ifdef __cplusplus 7038extern "C" 7039#endif 7040/* We use char because int might match the return type of a gcc2 7041 builtin and then its argument prototype would still apply. */ 7042char pthread_mutex_init (); 7043int 7044main () 7045{ 7046pthread_mutex_init (); 7047 ; 7048 return 0; 7049} 7050_ACEOF 7051rm -f conftest.$ac_objext conftest$ac_exeext 7052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7053 (eval $ac_link) 2>conftest.er1 7054 ac_status=$? 7055 grep -v '^ *+' conftest.er1 >conftest.err 7056 rm -f conftest.er1 7057 cat conftest.err >&5 7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7059 (exit $ac_status); } && 7060 { ac_try='test -z "$ac_c_werror_flag" 7061 || test ! -s conftest.err' 7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7063 (eval $ac_try) 2>&5 7064 ac_status=$? 7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7066 (exit $ac_status); }; } && 7067 { ac_try='test -s conftest$ac_exeext' 7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7069 (eval $ac_try) 2>&5 7070 ac_status=$? 7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7072 (exit $ac_status); }; }; then 7073 ac_cv_lib_c_r_pthread_mutex_init=yes 7074else 7075 echo "$as_me: failed program was:" >&5 7076sed 's/^/| /' conftest.$ac_ext >&5 7077 7078ac_cv_lib_c_r_pthread_mutex_init=no 7079fi 7080rm -f conftest.err conftest.$ac_objext \ 7081 conftest$ac_exeext conftest.$ac_ext 7082LIBS=$ac_check_lib_save_LIBS 7083fi 7084echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7085echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6 7086if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7087 tcl_ok=yes 7088else 7089 tcl_ok=no 7090fi 7091 7092 if test "$tcl_ok" = "yes"; then 7093 # The space is needed 7094 THREADS_LIBS=" -pthread" 7095 else 7096 TCL_THREADS=0 7097 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7098echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7099 fi 7100 fi 7101 fi 7102 fi 7103 fi 7104 else 7105 TCL_THREADS=0 7106 fi 7107 # Do checking message here to not mess up interleaved configure output 7108 echo "$as_me:$LINENO: checking for building with threads" >&5 7109echo $ECHO_N "checking for building with threads... $ECHO_C" >&6 7110 if test "${TCL_THREADS}" = 1; then 7111 7112cat >>confdefs.h <<\_ACEOF 7113#define TCL_THREADS 1 7114_ACEOF 7115 7116 echo "$as_me:$LINENO: result: yes (default)" >&5 7117echo "${ECHO_T}yes (default)" >&6 7118 else 7119 echo "$as_me:$LINENO: result: no" >&5 7120echo "${ECHO_T}no" >&6 7121 fi 7122 # TCL_THREADS sanity checking. See if our request for building with 7123 # threads is the same as the way Tcl was built. If not, warn the user. 7124 case ${TCL_DEFS} in 7125 *THREADS=1*) 7126 if test "${TCL_THREADS}" = "0"; then 7127 { echo "$as_me:$LINENO: WARNING: 7128 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7129 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7130echo "$as_me: WARNING: 7131 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7132 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7133 fi 7134 ;; 7135 *) 7136 if test "${TCL_THREADS}" = "1"; then 7137 { echo "$as_me:$LINENO: WARNING: 7138 --enable-threads requested, but building against a Tcl that is NOT 7139 thread-enabled. This is an OK configuration that will also run in 7140 a thread-enabled core." >&5 7141echo "$as_me: WARNING: 7142 --enable-threads requested, but building against a Tcl that is NOT 7143 thread-enabled. This is an OK configuration that will also run in 7144 a thread-enabled core." >&2;} 7145 fi 7146 ;; 7147 esac 7148 7149 7150 7151#-------------------------------------------------------------------- 7152# The statement below defines a collection of symbols related to 7153# building as a shared library instead of a static library. 7154#-------------------------------------------------------------------- 7155 7156 7157 echo "$as_me:$LINENO: checking how to build libraries" >&5 7158echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6 7159 # Check whether --enable-shared or --disable-shared was given. 7160if test "${enable_shared+set}" = set; then 7161 enableval="$enable_shared" 7162 tcl_ok=$enableval 7163else 7164 tcl_ok=yes 7165fi; 7166 7167 if test "${enable_shared+set}" = set; then 7168 enableval="$enable_shared" 7169 tcl_ok=$enableval 7170 else 7171 tcl_ok=yes 7172 fi 7173 7174 if test "$tcl_ok" = "yes" ; then 7175 echo "$as_me:$LINENO: result: shared" >&5 7176echo "${ECHO_T}shared" >&6 7177 SHARED_BUILD=1 7178 else 7179 echo "$as_me:$LINENO: result: static" >&5 7180echo "${ECHO_T}static" >&6 7181 SHARED_BUILD=0 7182 7183cat >>confdefs.h <<\_ACEOF 7184#define STATIC_BUILD 1 7185_ACEOF 7186 7187 fi 7188 7189 7190 7191#-------------------------------------------------------------------- 7192# This macro figures out what flags to use with the compiler/linker 7193# when building shared/static debug/optimized objects. This information 7194# can be taken from the tclConfig.sh file, but this figures it all out. 7195#-------------------------------------------------------------------- 7196 7197 7198 7199 7200 # Step 0.a: Enable 64 bit support? 7201 7202 echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7203echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6 7204 # Check whether --enable-64bit or --disable-64bit was given. 7205if test "${enable_64bit+set}" = set; then 7206 enableval="$enable_64bit" 7207 do64bit=$enableval 7208else 7209 do64bit=no 7210fi; 7211 echo "$as_me:$LINENO: result: $do64bit" >&5 7212echo "${ECHO_T}$do64bit" >&6 7213 7214 # Step 0.b: Enable Solaris 64 bit VIS support? 7215 7216 echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7217echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6 7218 # Check whether --enable-64bit-vis or --disable-64bit-vis was given. 7219if test "${enable_64bit_vis+set}" = set; then 7220 enableval="$enable_64bit_vis" 7221 do64bitVIS=$enableval 7222else 7223 do64bitVIS=no 7224fi; 7225 echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7226echo "${ECHO_T}$do64bitVIS" >&6 7227 # Force 64bit on with VIS 7228 if test "$do64bitVIS" = "yes"; then 7229 do64bit=yes 7230fi 7231 7232 7233 # Step 0.c: Check if visibility support is available. Do this here so 7234 # that platform specific alternatives can be used below if this fails. 7235 7236 echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7237echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6 7238if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7239 echo $ECHO_N "(cached) $ECHO_C" >&6 7240else 7241 7242 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7243 cat >conftest.$ac_ext <<_ACEOF 7244/* confdefs.h. */ 7245_ACEOF 7246cat confdefs.h >>conftest.$ac_ext 7247cat >>conftest.$ac_ext <<_ACEOF 7248/* end confdefs.h. */ 7249 7250 extern __attribute__((__visibility__("hidden"))) void f(void); 7251 void f(void) {} 7252int 7253main () 7254{ 7255f(); 7256 ; 7257 return 0; 7258} 7259_ACEOF 7260rm -f conftest.$ac_objext conftest$ac_exeext 7261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7262 (eval $ac_link) 2>conftest.er1 7263 ac_status=$? 7264 grep -v '^ *+' conftest.er1 >conftest.err 7265 rm -f conftest.er1 7266 cat conftest.err >&5 7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7268 (exit $ac_status); } && 7269 { ac_try='test -z "$ac_c_werror_flag" 7270 || test ! -s conftest.err' 7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7272 (eval $ac_try) 2>&5 7273 ac_status=$? 7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7275 (exit $ac_status); }; } && 7276 { ac_try='test -s conftest$ac_exeext' 7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7278 (eval $ac_try) 2>&5 7279 ac_status=$? 7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7281 (exit $ac_status); }; }; then 7282 tcl_cv_cc_visibility_hidden=yes 7283else 7284 echo "$as_me: failed program was:" >&5 7285sed 's/^/| /' conftest.$ac_ext >&5 7286 7287tcl_cv_cc_visibility_hidden=no 7288fi 7289rm -f conftest.err conftest.$ac_objext \ 7290 conftest$ac_exeext conftest.$ac_ext 7291 CFLAGS=$hold_cflags 7292fi 7293echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7294echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6 7295 if test $tcl_cv_cc_visibility_hidden = yes; then 7296 7297 7298cat >>confdefs.h <<\_ACEOF 7299#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7300_ACEOF 7301 7302 7303fi 7304 7305 7306 # Step 0.d: Disable -rpath support? 7307 7308 echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7309echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6 7310 # Check whether --enable-rpath or --disable-rpath was given. 7311if test "${enable_rpath+set}" = set; then 7312 enableval="$enable_rpath" 7313 doRpath=$enableval 7314else 7315 doRpath=yes 7316fi; 7317 echo "$as_me:$LINENO: result: $doRpath" >&5 7318echo "${ECHO_T}$doRpath" >&6 7319 7320 # TEA specific: Cross-compiling options for Windows/CE builds? 7321 7322 if test "${TEA_PLATFORM}" = windows; then 7323 7324 echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7325echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6 7326 # Check whether --enable-wince or --disable-wince was given. 7327if test "${enable_wince+set}" = set; then 7328 enableval="$enable_wince" 7329 doWince=$enableval 7330else 7331 doWince=no 7332fi; 7333 echo "$as_me:$LINENO: result: $doWince" >&5 7334echo "${ECHO_T}$doWince" >&6 7335 7336fi 7337 7338 7339 # Step 1: set the variable "system" to hold the name and version number 7340 # for the system. 7341 7342 7343 echo "$as_me:$LINENO: checking system version" >&5 7344echo $ECHO_N "checking system version... $ECHO_C" >&6 7345if test "${tcl_cv_sys_version+set}" = set; then 7346 echo $ECHO_N "(cached) $ECHO_C" >&6 7347else 7348 7349 # TEA specific: 7350 if test "${TEA_PLATFORM}" = "windows" ; then 7351 tcl_cv_sys_version=windows 7352 elif test -f /usr/lib/NextStep/software_version; then 7353 tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` 7354 else 7355 tcl_cv_sys_version=`uname -s`-`uname -r` 7356 if test "$?" -ne 0 ; then 7357 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7358echo "$as_me: WARNING: can't find uname command" >&2;} 7359 tcl_cv_sys_version=unknown 7360 else 7361 # Special check for weird MP-RAS system (uname returns weird 7362 # results, and the version is kept in special file). 7363 7364 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then 7365 tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` 7366 fi 7367 if test "`uname -s`" = "AIX" ; then 7368 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7369 fi 7370 fi 7371 fi 7372 7373fi 7374echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7375echo "${ECHO_T}$tcl_cv_sys_version" >&6 7376 system=$tcl_cv_sys_version 7377 7378 7379 # Step 2: check for existence of -ldl library. This is needed because 7380 # Linux can use either -ldl or -ldld for dynamic loading. 7381 7382 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7383echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7384if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7385 echo $ECHO_N "(cached) $ECHO_C" >&6 7386else 7387 ac_check_lib_save_LIBS=$LIBS 7388LIBS="-ldl $LIBS" 7389cat >conftest.$ac_ext <<_ACEOF 7390/* confdefs.h. */ 7391_ACEOF 7392cat confdefs.h >>conftest.$ac_ext 7393cat >>conftest.$ac_ext <<_ACEOF 7394/* end confdefs.h. */ 7395 7396/* Override any gcc2 internal prototype to avoid an error. */ 7397#ifdef __cplusplus 7398extern "C" 7399#endif 7400/* We use char because int might match the return type of a gcc2 7401 builtin and then its argument prototype would still apply. */ 7402char dlopen (); 7403int 7404main () 7405{ 7406dlopen (); 7407 ; 7408 return 0; 7409} 7410_ACEOF 7411rm -f conftest.$ac_objext conftest$ac_exeext 7412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7413 (eval $ac_link) 2>conftest.er1 7414 ac_status=$? 7415 grep -v '^ *+' conftest.er1 >conftest.err 7416 rm -f conftest.er1 7417 cat conftest.err >&5 7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7419 (exit $ac_status); } && 7420 { ac_try='test -z "$ac_c_werror_flag" 7421 || test ! -s conftest.err' 7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7423 (eval $ac_try) 2>&5 7424 ac_status=$? 7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7426 (exit $ac_status); }; } && 7427 { ac_try='test -s conftest$ac_exeext' 7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7429 (eval $ac_try) 2>&5 7430 ac_status=$? 7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7432 (exit $ac_status); }; }; then 7433 ac_cv_lib_dl_dlopen=yes 7434else 7435 echo "$as_me: failed program was:" >&5 7436sed 's/^/| /' conftest.$ac_ext >&5 7437 7438ac_cv_lib_dl_dlopen=no 7439fi 7440rm -f conftest.err conftest.$ac_objext \ 7441 conftest$ac_exeext conftest.$ac_ext 7442LIBS=$ac_check_lib_save_LIBS 7443fi 7444echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 7445echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 7446if test $ac_cv_lib_dl_dlopen = yes; then 7447 have_dl=yes 7448else 7449 have_dl=no 7450fi 7451 7452 7453 # Require ranlib early so we can override it in special cases below. 7454 7455 7456 7457 # Step 3: set configuration options based on system name and version. 7458 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7459 # "windows" case. 7460 7461 do64bit_ok=no 7462 LDFLAGS_ORIG="$LDFLAGS" 7463 # When ld needs options to work in 64-bit mode, put them in 7464 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7465 # is disabled by the user. [Bug 1016796] 7466 LDFLAGS_ARCH="" 7467 TCL_EXPORT_FILE_SUFFIX="" 7468 UNSHARED_LIB_SUFFIX="" 7469 # TEA specific: use PACKAGE_VERSION instead of VERSION 7470 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7471 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7472 TCL_LIB_VERSIONS_OK=ok 7473 CFLAGS_DEBUG=-g 7474 CFLAGS_OPTIMIZE=-O 7475 if test "$GCC" = yes; then 7476 7477 # TEA specific: 7478 CFLAGS_OPTIMIZE=-O2 7479 CFLAGS_WARNING="-Wall -Wno-implicit-int" 7480 7481else 7482 CFLAGS_WARNING="" 7483fi 7484 7485 TCL_NEEDS_EXP_FILE=0 7486 TCL_BUILD_EXP_FILE="" 7487 TCL_EXP_FILE="" 7488 # Extract the first word of "ar", so it can be a program name with args. 7489set dummy ar; ac_word=$2 7490echo "$as_me:$LINENO: checking for $ac_word" >&5 7491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7492if test "${ac_cv_prog_AR+set}" = set; then 7493 echo $ECHO_N "(cached) $ECHO_C" >&6 7494else 7495 if test -n "$AR"; then 7496 ac_cv_prog_AR="$AR" # Let the user override the test. 7497else 7498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7499for as_dir in $PATH 7500do 7501 IFS=$as_save_IFS 7502 test -z "$as_dir" && as_dir=. 7503 for ac_exec_ext in '' $ac_executable_extensions; do 7504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7505 ac_cv_prog_AR="ar" 7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7507 break 2 7508 fi 7509done 7510done 7511 7512fi 7513fi 7514AR=$ac_cv_prog_AR 7515if test -n "$AR"; then 7516 echo "$as_me:$LINENO: result: $AR" >&5 7517echo "${ECHO_T}$AR" >&6 7518else 7519 echo "$as_me:$LINENO: result: no" >&5 7520echo "${ECHO_T}no" >&6 7521fi 7522 7523 STLIB_LD='${AR} cr' 7524 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7525 case $system in 7526 # TEA specific: 7527 windows) 7528 # This is a 2-stage check to make sure we have the 64-bit SDK 7529 # We have to know where the SDK is installed. 7530 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7531 # MACHINE is IX86 for LINK, but this is used by the manifest, 7532 # which requires x86|amd64|ia64. 7533 MACHINE="X86" 7534 if test "$do64bit" != "no" ; then 7535 if test "x${MSSDK}x" = "xx" ; then 7536 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7537 fi 7538 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7539 PATH64="" 7540 case "$do64bit" in 7541 amd64|x64|yes) 7542 MACHINE="AMD64" ; # default to AMD64 64-bit build 7543 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7544 ;; 7545 ia64) 7546 MACHINE="IA64" 7547 PATH64="${MSSDK}/Bin/Win64" 7548 ;; 7549 esac 7550 if test ! -d "${PATH64}" ; then 7551 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7552echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7553 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7554echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7555 do64bit="no" 7556 else 7557 echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7558echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6 7559 do64bit_ok="yes" 7560 fi 7561 fi 7562 7563 if test "$doWince" != "no" ; then 7564 if test "$do64bit" != "no" ; then 7565 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7566echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7567 { (exit 1); exit 1; }; } 7568 fi 7569 if test "$GCC" = "yes" ; then 7570 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7571echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7572 { (exit 1); exit 1; }; } 7573 fi 7574 7575 # First, look for one uninstalled. 7576 # the alternative search directory is invoked by --with-celib 7577 7578 if test x"${no_celib}" = x ; then 7579 # we reset no_celib in case something fails here 7580 no_celib=true 7581 7582# Check whether --with-celib or --without-celib was given. 7583if test "${with_celib+set}" = set; then 7584 withval="$with_celib" 7585 with_celibconfig=${withval} 7586fi; 7587 echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7588echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6 7589 if test "${ac_cv_c_celibconfig+set}" = set; then 7590 echo $ECHO_N "(cached) $ECHO_C" >&6 7591else 7592 7593 # First check to see if --with-celibconfig was specified. 7594 if test x"${with_celibconfig}" != x ; then 7595 if test -d "${with_celibconfig}/inc" ; then 7596 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7597 else 7598 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7599echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7600 { (exit 1); exit 1; }; } 7601 fi 7602 fi 7603 7604 # then check for a celib library 7605 if test x"${ac_cv_c_celibconfig}" = x ; then 7606 for i in \ 7607 ../celib-palm-3.0 \ 7608 ../celib \ 7609 ../../celib-palm-3.0 \ 7610 ../../celib \ 7611 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7612 ${srcdir}/../celib-palm-3.0 \ 7613 ${srcdir}/../celib \ 7614 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7615 ; do 7616 if test -d "$i/inc" ; then 7617 ac_cv_c_celibconfig=`(cd $i; pwd)` 7618 break 7619 fi 7620 done 7621 fi 7622 7623fi 7624 7625 if test x"${ac_cv_c_celibconfig}" = x ; then 7626 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7627echo "$as_me: error: Cannot find celib support library directory" >&2;} 7628 { (exit 1); exit 1; }; } 7629 else 7630 no_celib= 7631 CELIB_DIR=${ac_cv_c_celibconfig} 7632 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7633 echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7634echo "${ECHO_T}found $CELIB_DIR" >&6 7635 fi 7636 fi 7637 7638 # Set defaults for common evc4/PPC2003 setup 7639 # Currently Tcl requires 300+, possibly 420+ for sockets 7640 CEVERSION=420; # could be 211 300 301 400 420 ... 7641 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7642 ARCH=ARM; # could be ARM MIPS X86EM ... 7643 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7644 if test "$doWince" != "yes"; then 7645 # If !yes then the user specified something 7646 # Reset ARCH to allow user to skip specifying it 7647 ARCH= 7648 eval `echo $doWince | awk -F, '{ \ 7649 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7650 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7651 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7652 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7653 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7654 }'` 7655 if test "x${ARCH}" = "x" ; then 7656 ARCH=$TARGETCPU; 7657 fi 7658 fi 7659 OSVERSION=WCE$CEVERSION; 7660 if test "x${WCEROOT}" = "x" ; then 7661 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7662 if test ! -d "${WCEROOT}" ; then 7663 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7664 fi 7665 fi 7666 if test "x${SDKROOT}" = "x" ; then 7667 SDKROOT="C:/Program Files/Windows CE Tools" 7668 if test ! -d "${SDKROOT}" ; then 7669 SDKROOT="C:/Windows CE Tools" 7670 fi 7671 fi 7672 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7673 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7674 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7675 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7676 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7677echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7678 { (exit 1); exit 1; }; } 7679 doWince="no" 7680 else 7681 # We could PATH_NOSPACE these, but that's not important, 7682 # as long as we quote them when used. 7683 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7684 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7685 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7686 fi 7687 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7688 fi 7689 fi 7690 7691 if test "$GCC" != "yes" ; then 7692 if test "${SHARED_BUILD}" = "0" ; then 7693 runtime=-MT 7694 else 7695 runtime=-MD 7696 fi 7697 7698 if test "$do64bit" != "no" ; then 7699 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7700 CC="\"${PATH64}/cl.exe\"" 7701 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7702 RC="\"${MSSDK}/bin/rc.exe\"" 7703 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7704 LINKBIN="\"${PATH64}/link.exe\"" 7705 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7706 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7707 # Avoid 'unresolved external symbol __security_cookie' 7708 # errors, c.f. http://support.microsoft.com/?id=894573 7709 7710 vars="bufferoverflowU.lib" 7711 for i in $vars; do 7712 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7713 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7714 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7715 fi 7716 PKG_LIBS="$PKG_LIBS $i" 7717 done 7718 7719 7720 elif test "$doWince" != "no" ; then 7721 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7722 if test "${TARGETCPU}" = "X86"; then 7723 CC="\"${CEBINROOT}/cl.exe\"" 7724 else 7725 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 7726 fi 7727 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7728 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 7729 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 7730 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 7731 if test "${SHARED_BUILD}" = "1" ; then 7732 # Static CE builds require static celib as well 7733 defs="${defs} _DLL" 7734 fi 7735 for i in $defs ; do 7736 7737cat >>confdefs.h <<_ACEOF 7738#define $i 1 7739_ACEOF 7740 7741 done 7742 7743cat >>confdefs.h <<_ACEOF 7744#define _WIN32_WCE $CEVERSION 7745_ACEOF 7746 7747 7748cat >>confdefs.h <<_ACEOF 7749#define UNDER_CE $CEVERSION 7750_ACEOF 7751 7752 CFLAGS_DEBUG="-nologo -Zi -Od" 7753 CFLAGS_OPTIMIZE="-nologo -Ox" 7754 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 7755 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 7756 LINKBIN="\"${CEBINROOT}/link.exe\"" 7757 7758 else 7759 RC="rc" 7760 lflags="-nologo" 7761 LINKBIN="link" 7762 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 7763 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7764 fi 7765 fi 7766 7767 if test "$GCC" = "yes"; then 7768 # mingw gcc mode 7769 RC="windres" 7770 CFLAGS_DEBUG="-g" 7771 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 7772 SHLIB_LD="$CC -shared" 7773 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7774 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 7775 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 7776 else 7777 SHLIB_LD="${LINKBIN} -dll ${lflags}" 7778 # link -lib only works when -lib is the first arg 7779 STLIB_LD="${LINKBIN} -lib ${lflags}" 7780 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 7781 PATHTYPE=-w 7782 # For information on what debugtype is most useful, see: 7783 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 7784 # This essentially turns it all on. 7785 LDFLAGS_DEBUG="-debug:full -debugtype:both -warn:2" 7786 LDFLAGS_OPTIMIZE="-release" 7787 if test "$doWince" != "no" ; then 7788 LDFLAGS_CONSOLE="-link ${lflags}" 7789 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 7790 else 7791 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 7792 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 7793 fi 7794 fi 7795 7796 SHLIB_LD_LIBS='${LIBS}' 7797 SHLIB_SUFFIX=".dll" 7798 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 7799 7800 TCL_LIB_VERSIONS_OK=nodots 7801 # Bogus to avoid getting this turned off 7802 DL_OBJS="tclLoadNone.obj" 7803 ;; 7804 AIX-*) 7805 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 7806 7807 # AIX requires the _r compiler when gcc isn't being used 7808 case "${CC}" in 7809 *_r) 7810 # ok ... 7811 ;; 7812 *) 7813 CC=${CC}_r 7814 ;; 7815 esac 7816 echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 7817echo "${ECHO_T}Using $CC for compiling with threads" >&6 7818 7819fi 7820 7821 LIBS="$LIBS -lc" 7822 SHLIB_CFLAGS="" 7823 SHLIB_LD_LIBS='${LIBS}' 7824 SHLIB_SUFFIX=".so" 7825 7826 DL_OBJS="tclLoadDl.o" 7827 LD_LIBRARY_PATH_VAR="LIBPATH" 7828 7829 # Check to enable 64-bit flags for compiler/linker on AIX 4+ 7830 if test "$do64bit" = yes -a "`uname -v`" -gt 3; then 7831 7832 if test "$GCC" = yes; then 7833 7834 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 7835echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 7836 7837else 7838 7839 do64bit_ok=yes 7840 CFLAGS="$CFLAGS -q64" 7841 LDFLAGS_ARCH="-q64" 7842 RANLIB="${RANLIB} -X64" 7843 AR="${AR} -X64" 7844 SHLIB_LD_FLAGS="-b64" 7845 7846fi 7847 7848 7849fi 7850 7851 7852 if test "`uname -m`" = ia64; then 7853 7854 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 7855 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 7856 # AIX-5 has dl* in libc.so 7857 DL_LIBS="" 7858 if test "$GCC" = yes; then 7859 7860 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7861 7862else 7863 7864 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 7865 7866fi 7867 7868 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 7869 7870else 7871 7872 if test "$GCC" = yes; then 7873 SHLIB_LD='${CC} -shared' 7874else 7875 7876 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" 7877 7878fi 7879 7880 SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" 7881 DL_LIBS="-ldl" 7882 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 7883 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7884 TCL_NEEDS_EXP_FILE=1 7885 # TEA specific: use PACKAGE_VERSION instead of VERSION 7886 TCL_EXPORT_FILE_SUFFIX='${PACKAGE_VERSION}.exp' 7887 7888fi 7889 7890 7891 # AIX v<=4.1 has some different flags than 4.2+ 7892 if test "$system" = "AIX-4.1" -o "`uname -v`" -lt 4; then 7893 7894 case $LIBOBJS in 7895 "tclLoadAix.$ac_objext" | \ 7896 *" tclLoadAix.$ac_objext" | \ 7897 "tclLoadAix.$ac_objext "* | \ 7898 *" tclLoadAix.$ac_objext "* ) ;; 7899 *) LIBOBJS="$LIBOBJS tclLoadAix.$ac_objext" ;; 7900esac 7901 7902 DL_LIBS="-lld" 7903 7904fi 7905 7906 7907 # On AIX <=v4 systems, libbsd.a has to be linked in to support 7908 # non-blocking file IO. This library has to be linked in after 7909 # the MATH_LIBS or it breaks the pow() function. The way to 7910 # insure proper sequencing, is to add it to the tail of MATH_LIBS. 7911 # This library also supplies gettimeofday. 7912 # 7913 # AIX does not have a timezone field in struct tm. When the AIX 7914 # bsd library is used, the timezone global and the gettimeofday 7915 # methods are to be avoided for timezone deduction instead, we 7916 # deduce the timezone by comparing the localtime result on a 7917 # known GMT value. 7918 7919 echo "$as_me:$LINENO: checking for gettimeofday in -lbsd" >&5 7920echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6 7921if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then 7922 echo $ECHO_N "(cached) $ECHO_C" >&6 7923else 7924 ac_check_lib_save_LIBS=$LIBS 7925LIBS="-lbsd $LIBS" 7926cat >conftest.$ac_ext <<_ACEOF 7927/* confdefs.h. */ 7928_ACEOF 7929cat confdefs.h >>conftest.$ac_ext 7930cat >>conftest.$ac_ext <<_ACEOF 7931/* end confdefs.h. */ 7932 7933/* Override any gcc2 internal prototype to avoid an error. */ 7934#ifdef __cplusplus 7935extern "C" 7936#endif 7937/* We use char because int might match the return type of a gcc2 7938 builtin and then its argument prototype would still apply. */ 7939char gettimeofday (); 7940int 7941main () 7942{ 7943gettimeofday (); 7944 ; 7945 return 0; 7946} 7947_ACEOF 7948rm -f conftest.$ac_objext conftest$ac_exeext 7949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7950 (eval $ac_link) 2>conftest.er1 7951 ac_status=$? 7952 grep -v '^ *+' conftest.er1 >conftest.err 7953 rm -f conftest.er1 7954 cat conftest.err >&5 7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7956 (exit $ac_status); } && 7957 { ac_try='test -z "$ac_c_werror_flag" 7958 || test ! -s conftest.err' 7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7960 (eval $ac_try) 2>&5 7961 ac_status=$? 7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7963 (exit $ac_status); }; } && 7964 { ac_try='test -s conftest$ac_exeext' 7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7966 (eval $ac_try) 2>&5 7967 ac_status=$? 7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7969 (exit $ac_status); }; }; then 7970 ac_cv_lib_bsd_gettimeofday=yes 7971else 7972 echo "$as_me: failed program was:" >&5 7973sed 's/^/| /' conftest.$ac_ext >&5 7974 7975ac_cv_lib_bsd_gettimeofday=no 7976fi 7977rm -f conftest.err conftest.$ac_objext \ 7978 conftest$ac_exeext conftest.$ac_ext 7979LIBS=$ac_check_lib_save_LIBS 7980fi 7981echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gettimeofday" >&5 7982echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6 7983if test $ac_cv_lib_bsd_gettimeofday = yes; then 7984 libbsd=yes 7985else 7986 libbsd=no 7987fi 7988 7989 if test $libbsd = yes; then 7990 7991 MATH_LIBS="$MATH_LIBS -lbsd" 7992 7993cat >>confdefs.h <<\_ACEOF 7994#define USE_DELTA_FOR_TZ 1 7995_ACEOF 7996 7997 7998fi 7999 8000 ;; 8001 BeOS*) 8002 SHLIB_CFLAGS="-fPIC" 8003 SHLIB_LD='${CC} -nostart' 8004 SHLIB_LD_LIBS='${LIBS}' 8005 SHLIB_SUFFIX=".so" 8006 DL_OBJS="tclLoadDl.o" 8007 DL_LIBS="-ldl" 8008 8009 #----------------------------------------------------------- 8010 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8011 # -lsocket, even if the network functions are in -lnet which 8012 # is always linked to, for compatibility. 8013 #----------------------------------------------------------- 8014 echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8015echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6 8016if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8017 echo $ECHO_N "(cached) $ECHO_C" >&6 8018else 8019 ac_check_lib_save_LIBS=$LIBS 8020LIBS="-lbind $LIBS" 8021cat >conftest.$ac_ext <<_ACEOF 8022/* confdefs.h. */ 8023_ACEOF 8024cat confdefs.h >>conftest.$ac_ext 8025cat >>conftest.$ac_ext <<_ACEOF 8026/* end confdefs.h. */ 8027 8028/* Override any gcc2 internal prototype to avoid an error. */ 8029#ifdef __cplusplus 8030extern "C" 8031#endif 8032/* We use char because int might match the return type of a gcc2 8033 builtin and then its argument prototype would still apply. */ 8034char inet_ntoa (); 8035int 8036main () 8037{ 8038inet_ntoa (); 8039 ; 8040 return 0; 8041} 8042_ACEOF 8043rm -f conftest.$ac_objext conftest$ac_exeext 8044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8045 (eval $ac_link) 2>conftest.er1 8046 ac_status=$? 8047 grep -v '^ *+' conftest.er1 >conftest.err 8048 rm -f conftest.er1 8049 cat conftest.err >&5 8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8051 (exit $ac_status); } && 8052 { ac_try='test -z "$ac_c_werror_flag" 8053 || test ! -s conftest.err' 8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8055 (eval $ac_try) 2>&5 8056 ac_status=$? 8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8058 (exit $ac_status); }; } && 8059 { ac_try='test -s conftest$ac_exeext' 8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8061 (eval $ac_try) 2>&5 8062 ac_status=$? 8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8064 (exit $ac_status); }; }; then 8065 ac_cv_lib_bind_inet_ntoa=yes 8066else 8067 echo "$as_me: failed program was:" >&5 8068sed 's/^/| /' conftest.$ac_ext >&5 8069 8070ac_cv_lib_bind_inet_ntoa=no 8071fi 8072rm -f conftest.err conftest.$ac_objext \ 8073 conftest$ac_exeext conftest.$ac_ext 8074LIBS=$ac_check_lib_save_LIBS 8075fi 8076echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8077echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6 8078if test $ac_cv_lib_bind_inet_ntoa = yes; then 8079 LIBS="$LIBS -lbind -lsocket" 8080fi 8081 8082 ;; 8083 BSD/OS-2.1*|BSD/OS-3*) 8084 SHLIB_CFLAGS="" 8085 SHLIB_LD="shlicc -r" 8086 SHLIB_LD_LIBS='${LIBS}' 8087 SHLIB_SUFFIX=".so" 8088 DL_OBJS="tclLoadDl.o" 8089 DL_LIBS="-ldl" 8090 CC_SEARCH_FLAGS="" 8091 LD_SEARCH_FLAGS="" 8092 ;; 8093 BSD/OS-4.*) 8094 SHLIB_CFLAGS="-export-dynamic -fPIC" 8095 SHLIB_LD='${CC} -shared' 8096 SHLIB_LD_LIBS='${LIBS}' 8097 SHLIB_SUFFIX=".so" 8098 DL_OBJS="tclLoadDl.o" 8099 DL_LIBS="-ldl" 8100 LDFLAGS="$LDFLAGS -export-dynamic" 8101 CC_SEARCH_FLAGS="" 8102 LD_SEARCH_FLAGS="" 8103 ;; 8104 dgux*) 8105 SHLIB_CFLAGS="-K PIC" 8106 SHLIB_LD='${CC} -G' 8107 SHLIB_LD_LIBS="" 8108 SHLIB_SUFFIX=".so" 8109 DL_OBJS="tclLoadDl.o" 8110 DL_LIBS="-ldl" 8111 CC_SEARCH_FLAGS="" 8112 LD_SEARCH_FLAGS="" 8113 ;; 8114 HP-UX-*.11.*) 8115 # Use updated header definitions where possible 8116 8117cat >>confdefs.h <<\_ACEOF 8118#define _XOPEN_SOURCE_EXTENDED 1 8119_ACEOF 8120 8121 # TEA specific: Needed by Tcl, but not most extensions 8122 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8123 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8124 8125 if test "`uname -m`" = ia64; then 8126 8127 SHLIB_SUFFIX=".so" 8128 # Use newer C++ library for C++ extensions 8129 #if test "$GCC" != "yes" ; then 8130 # CPPFLAGS="-AA" 8131 #fi 8132 8133else 8134 8135 SHLIB_SUFFIX=".sl" 8136 8137fi 8138 8139 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8140echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8141if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8142 echo $ECHO_N "(cached) $ECHO_C" >&6 8143else 8144 ac_check_lib_save_LIBS=$LIBS 8145LIBS="-ldld $LIBS" 8146cat >conftest.$ac_ext <<_ACEOF 8147/* confdefs.h. */ 8148_ACEOF 8149cat confdefs.h >>conftest.$ac_ext 8150cat >>conftest.$ac_ext <<_ACEOF 8151/* end confdefs.h. */ 8152 8153/* Override any gcc2 internal prototype to avoid an error. */ 8154#ifdef __cplusplus 8155extern "C" 8156#endif 8157/* We use char because int might match the return type of a gcc2 8158 builtin and then its argument prototype would still apply. */ 8159char shl_load (); 8160int 8161main () 8162{ 8163shl_load (); 8164 ; 8165 return 0; 8166} 8167_ACEOF 8168rm -f conftest.$ac_objext conftest$ac_exeext 8169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8170 (eval $ac_link) 2>conftest.er1 8171 ac_status=$? 8172 grep -v '^ *+' conftest.er1 >conftest.err 8173 rm -f conftest.er1 8174 cat conftest.err >&5 8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8176 (exit $ac_status); } && 8177 { ac_try='test -z "$ac_c_werror_flag" 8178 || test ! -s conftest.err' 8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8180 (eval $ac_try) 2>&5 8181 ac_status=$? 8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8183 (exit $ac_status); }; } && 8184 { ac_try='test -s conftest$ac_exeext' 8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8186 (eval $ac_try) 2>&5 8187 ac_status=$? 8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8189 (exit $ac_status); }; }; then 8190 ac_cv_lib_dld_shl_load=yes 8191else 8192 echo "$as_me: failed program was:" >&5 8193sed 's/^/| /' conftest.$ac_ext >&5 8194 8195ac_cv_lib_dld_shl_load=no 8196fi 8197rm -f conftest.err conftest.$ac_objext \ 8198 conftest$ac_exeext conftest.$ac_ext 8199LIBS=$ac_check_lib_save_LIBS 8200fi 8201echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8202echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8203if test $ac_cv_lib_dld_shl_load = yes; then 8204 tcl_ok=yes 8205else 8206 tcl_ok=no 8207fi 8208 8209 if test "$tcl_ok" = yes; then 8210 8211 SHLIB_CFLAGS="+z" 8212 SHLIB_LD="ld -b" 8213 SHLIB_LD_LIBS='${LIBS}' 8214 DL_OBJS="tclLoadShl.o" 8215 DL_LIBS="-ldld" 8216 LDFLAGS="$LDFLAGS -Wl,-E" 8217 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8218 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8219 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8220 8221fi 8222 8223 if test "$GCC" = yes; then 8224 8225 SHLIB_LD='${CC} -shared' 8226 SHLIB_LD_LIBS='${LIBS}' 8227 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8228 8229fi 8230 8231 8232 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8233 #CFLAGS="$CFLAGS +DAportable" 8234 8235 # Check to enable 64-bit flags for compiler/linker 8236 if test "$do64bit" = "yes"; then 8237 8238 if test "$GCC" = yes; then 8239 8240 case `${CC} -dumpmachine` in 8241 hppa64*) 8242 # 64-bit gcc in use. Fix flags for GNU ld. 8243 do64bit_ok=yes 8244 SHLIB_LD='${CC} -shared' 8245 SHLIB_LD_LIBS='${LIBS}' 8246 if test $doRpath = yes; then 8247 8248 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8249fi 8250 8251 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8252 ;; 8253 *) 8254 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8255echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8256 ;; 8257 esac 8258 8259else 8260 8261 do64bit_ok=yes 8262 CFLAGS="$CFLAGS +DD64" 8263 LDFLAGS_ARCH="+DD64" 8264 8265fi 8266 8267 8268fi 8269 ;; 8270 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 8271 SHLIB_SUFFIX=".sl" 8272 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8273echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8274if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8275 echo $ECHO_N "(cached) $ECHO_C" >&6 8276else 8277 ac_check_lib_save_LIBS=$LIBS 8278LIBS="-ldld $LIBS" 8279cat >conftest.$ac_ext <<_ACEOF 8280/* confdefs.h. */ 8281_ACEOF 8282cat confdefs.h >>conftest.$ac_ext 8283cat >>conftest.$ac_ext <<_ACEOF 8284/* end confdefs.h. */ 8285 8286/* Override any gcc2 internal prototype to avoid an error. */ 8287#ifdef __cplusplus 8288extern "C" 8289#endif 8290/* We use char because int might match the return type of a gcc2 8291 builtin and then its argument prototype would still apply. */ 8292char shl_load (); 8293int 8294main () 8295{ 8296shl_load (); 8297 ; 8298 return 0; 8299} 8300_ACEOF 8301rm -f conftest.$ac_objext conftest$ac_exeext 8302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8303 (eval $ac_link) 2>conftest.er1 8304 ac_status=$? 8305 grep -v '^ *+' conftest.er1 >conftest.err 8306 rm -f conftest.er1 8307 cat conftest.err >&5 8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8309 (exit $ac_status); } && 8310 { ac_try='test -z "$ac_c_werror_flag" 8311 || test ! -s conftest.err' 8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8313 (eval $ac_try) 2>&5 8314 ac_status=$? 8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8316 (exit $ac_status); }; } && 8317 { ac_try='test -s conftest$ac_exeext' 8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8319 (eval $ac_try) 2>&5 8320 ac_status=$? 8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8322 (exit $ac_status); }; }; then 8323 ac_cv_lib_dld_shl_load=yes 8324else 8325 echo "$as_me: failed program was:" >&5 8326sed 's/^/| /' conftest.$ac_ext >&5 8327 8328ac_cv_lib_dld_shl_load=no 8329fi 8330rm -f conftest.err conftest.$ac_objext \ 8331 conftest$ac_exeext conftest.$ac_ext 8332LIBS=$ac_check_lib_save_LIBS 8333fi 8334echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8335echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8336if test $ac_cv_lib_dld_shl_load = yes; then 8337 tcl_ok=yes 8338else 8339 tcl_ok=no 8340fi 8341 8342 if test "$tcl_ok" = yes; then 8343 8344 SHLIB_CFLAGS="+z" 8345 SHLIB_LD="ld -b" 8346 SHLIB_LD_LIBS="" 8347 DL_OBJS="tclLoadShl.o" 8348 DL_LIBS="-ldld" 8349 LDFLAGS="$LDFLAGS -Wl,-E" 8350 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8351 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8352 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8353 8354fi 8355 ;; 8356 IRIX-5.*) 8357 SHLIB_CFLAGS="" 8358 SHLIB_LD="ld -shared -rdata_shared" 8359 SHLIB_LD_LIBS='${LIBS}' 8360 SHLIB_SUFFIX=".so" 8361 DL_OBJS="tclLoadDl.o" 8362 DL_LIBS="" 8363 if test $doRpath = yes; then 8364 8365 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8366 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8367fi 8368 8369 ;; 8370 IRIX-6.*) 8371 SHLIB_CFLAGS="" 8372 SHLIB_LD="ld -n32 -shared -rdata_shared" 8373 SHLIB_LD_LIBS='${LIBS}' 8374 SHLIB_SUFFIX=".so" 8375 DL_OBJS="tclLoadDl.o" 8376 DL_LIBS="" 8377 if test $doRpath = yes; then 8378 8379 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8380 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8381fi 8382 8383 if test "$GCC" = yes; then 8384 8385 CFLAGS="$CFLAGS -mabi=n32" 8386 LDFLAGS="$LDFLAGS -mabi=n32" 8387 8388else 8389 8390 case $system in 8391 IRIX-6.3) 8392 # Use to build 6.2 compatible binaries on 6.3. 8393 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8394 ;; 8395 *) 8396 CFLAGS="$CFLAGS -n32" 8397 ;; 8398 esac 8399 LDFLAGS="$LDFLAGS -n32" 8400 8401fi 8402 8403 ;; 8404 IRIX64-6.*) 8405 SHLIB_CFLAGS="" 8406 SHLIB_LD="ld -n32 -shared -rdata_shared" 8407 SHLIB_LD_LIBS='${LIBS}' 8408 SHLIB_SUFFIX=".so" 8409 DL_OBJS="tclLoadDl.o" 8410 DL_LIBS="" 8411 if test $doRpath = yes; then 8412 8413 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8414 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8415fi 8416 8417 8418 # Check to enable 64-bit flags for compiler/linker 8419 8420 if test "$do64bit" = yes; then 8421 8422 if test "$GCC" = yes; then 8423 8424 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8425echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8426 8427else 8428 8429 do64bit_ok=yes 8430 SHLIB_LD="ld -64 -shared -rdata_shared" 8431 CFLAGS="$CFLAGS -64" 8432 LDFLAGS_ARCH="-64" 8433 8434fi 8435 8436 8437fi 8438 8439 ;; 8440 Linux*) 8441 SHLIB_CFLAGS="-fPIC" 8442 SHLIB_LD_LIBS='${LIBS}' 8443 SHLIB_SUFFIX=".so" 8444 8445 # TEA specific: 8446 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8447 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings 8448 # when you inline the string and math operations. Turn this off to 8449 # get rid of the warnings. 8450 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 8451 8452 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8453 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8454 DL_OBJS="tclLoadDl.o" 8455 DL_LIBS="-ldl" 8456 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8457 if test $doRpath = yes; then 8458 8459 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8460fi 8461 8462 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8463 if test "`uname -m`" = "alpha"; then 8464 CFLAGS="$CFLAGS -mieee" 8465fi 8466 8467 if test $do64bit = yes; then 8468 8469 echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8470echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6 8471if test "${tcl_cv_cc_m64+set}" = set; then 8472 echo $ECHO_N "(cached) $ECHO_C" >&6 8473else 8474 8475 hold_cflags=$CFLAGS 8476 CFLAGS="$CFLAGS -m64" 8477 cat >conftest.$ac_ext <<_ACEOF 8478/* confdefs.h. */ 8479_ACEOF 8480cat confdefs.h >>conftest.$ac_ext 8481cat >>conftest.$ac_ext <<_ACEOF 8482/* end confdefs.h. */ 8483 8484int 8485main () 8486{ 8487 8488 ; 8489 return 0; 8490} 8491_ACEOF 8492rm -f conftest.$ac_objext conftest$ac_exeext 8493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8494 (eval $ac_link) 2>conftest.er1 8495 ac_status=$? 8496 grep -v '^ *+' conftest.er1 >conftest.err 8497 rm -f conftest.er1 8498 cat conftest.err >&5 8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8500 (exit $ac_status); } && 8501 { ac_try='test -z "$ac_c_werror_flag" 8502 || test ! -s conftest.err' 8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8504 (eval $ac_try) 2>&5 8505 ac_status=$? 8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8507 (exit $ac_status); }; } && 8508 { ac_try='test -s conftest$ac_exeext' 8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8510 (eval $ac_try) 2>&5 8511 ac_status=$? 8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8513 (exit $ac_status); }; }; then 8514 tcl_cv_cc_m64=yes 8515else 8516 echo "$as_me: failed program was:" >&5 8517sed 's/^/| /' conftest.$ac_ext >&5 8518 8519tcl_cv_cc_m64=no 8520fi 8521rm -f conftest.err conftest.$ac_objext \ 8522 conftest$ac_exeext conftest.$ac_ext 8523 CFLAGS=$hold_cflags 8524fi 8525echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8526echo "${ECHO_T}$tcl_cv_cc_m64" >&6 8527 if test $tcl_cv_cc_m64 = yes; then 8528 8529 CFLAGS="$CFLAGS -m64" 8530 do64bit_ok=yes 8531 8532fi 8533 8534 8535fi 8536 8537 8538 # The combo of gcc + glibc has a bug related to inlining of 8539 # functions like strtod(). The -fno-builtin flag should address 8540 # this problem but it does not work. The -fno-inline flag is kind 8541 # of overkill but it works. Disable inlining only when one of the 8542 # files in compat/*.c is being linked in. 8543 8544 if test x"${USE_COMPAT}" != x; then 8545 CFLAGS="$CFLAGS -fno-inline" 8546fi 8547 8548 8549 ;; 8550 GNU*) 8551 SHLIB_CFLAGS="-fPIC" 8552 SHLIB_LD_LIBS='${LIBS}' 8553 SHLIB_SUFFIX=".so" 8554 8555 SHLIB_LD='${CC} -shared' 8556 DL_OBJS="" 8557 DL_LIBS="-ldl" 8558 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8559 CC_SEARCH_FLAGS="" 8560 LD_SEARCH_FLAGS="" 8561 if test "`uname -m`" = "alpha"; then 8562 CFLAGS="$CFLAGS -mieee" 8563fi 8564 8565 ;; 8566 Lynx*) 8567 SHLIB_CFLAGS="-fPIC" 8568 SHLIB_LD_LIBS='${LIBS}' 8569 SHLIB_SUFFIX=".so" 8570 CFLAGS_OPTIMIZE=-02 8571 SHLIB_LD='${CC} -shared' 8572 DL_OBJS="tclLoadDl.o" 8573 DL_LIBS="-mshared -ldl" 8574 LD_FLAGS="-Wl,--export-dynamic" 8575 if test $doRpath = yes; then 8576 8577 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8578 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8579fi 8580 8581 ;; 8582 MP-RAS-02*) 8583 SHLIB_CFLAGS="-K PIC" 8584 SHLIB_LD='${CC} -G' 8585 SHLIB_LD_LIBS="" 8586 SHLIB_SUFFIX=".so" 8587 DL_OBJS="tclLoadDl.o" 8588 DL_LIBS="-ldl" 8589 CC_SEARCH_FLAGS="" 8590 LD_SEARCH_FLAGS="" 8591 ;; 8592 MP-RAS-*) 8593 SHLIB_CFLAGS="-K PIC" 8594 SHLIB_LD='${CC} -G' 8595 SHLIB_LD_LIBS="" 8596 SHLIB_SUFFIX=".so" 8597 DL_OBJS="tclLoadDl.o" 8598 DL_LIBS="-ldl" 8599 LDFLAGS="$LDFLAGS -Wl,-Bexport" 8600 CC_SEARCH_FLAGS="" 8601 LD_SEARCH_FLAGS="" 8602 ;; 8603 NetBSD-1.*|FreeBSD-[1-2].*) 8604 SHLIB_CFLAGS="-fPIC" 8605 SHLIB_LD="ld -Bshareable -x" 8606 SHLIB_LD_LIBS='${LIBS}' 8607 SHLIB_SUFFIX=".so" 8608 DL_OBJS="tclLoadDl.o" 8609 DL_LIBS="" 8610 if test $doRpath = yes; then 8611 8612 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8613 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8614fi 8615 8616 echo "$as_me:$LINENO: checking for ELF" >&5 8617echo $ECHO_N "checking for ELF... $ECHO_C" >&6 8618if test "${tcl_cv_ld_elf+set}" = set; then 8619 echo $ECHO_N "(cached) $ECHO_C" >&6 8620else 8621 8622 cat >conftest.$ac_ext <<_ACEOF 8623/* confdefs.h. */ 8624_ACEOF 8625cat confdefs.h >>conftest.$ac_ext 8626cat >>conftest.$ac_ext <<_ACEOF 8627/* end confdefs.h. */ 8628 8629#ifdef __ELF__ 8630 yes 8631#endif 8632 8633_ACEOF 8634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8635 $EGREP "yes" >/dev/null 2>&1; then 8636 tcl_cv_ld_elf=yes 8637else 8638 tcl_cv_ld_elf=no 8639fi 8640rm -f conftest* 8641 8642fi 8643echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8644echo "${ECHO_T}$tcl_cv_ld_elf" >&6 8645 if test $tcl_cv_ld_elf = yes; then 8646 8647 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8648 8649else 8650 8651 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 8652 8653fi 8654 8655 8656 # Ancient FreeBSD doesn't handle version numbers with dots. 8657 8658 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8659 TCL_LIB_VERSIONS_OK=nodots 8660 ;; 8661 OpenBSD-*) 8662 SHLIB_CFLAGS="-fPIC" 8663 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8664 SHLIB_LD_LIBS='${LIBS}' 8665 SHLIB_SUFFIX=".so" 8666 DL_OBJS="tclLoadDl.o" 8667 DL_LIBS="" 8668 if test $doRpath = yes; then 8669 8670 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8671fi 8672 8673 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8674 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 8675 echo "$as_me:$LINENO: checking for ELF" >&5 8676echo $ECHO_N "checking for ELF... $ECHO_C" >&6 8677if test "${tcl_cv_ld_elf+set}" = set; then 8678 echo $ECHO_N "(cached) $ECHO_C" >&6 8679else 8680 8681 cat >conftest.$ac_ext <<_ACEOF 8682/* confdefs.h. */ 8683_ACEOF 8684cat confdefs.h >>conftest.$ac_ext 8685cat >>conftest.$ac_ext <<_ACEOF 8686/* end confdefs.h. */ 8687 8688#ifdef __ELF__ 8689 yes 8690#endif 8691 8692_ACEOF 8693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8694 $EGREP "yes" >/dev/null 2>&1; then 8695 tcl_cv_ld_elf=yes 8696else 8697 tcl_cv_ld_elf=no 8698fi 8699rm -f conftest* 8700 8701fi 8702echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8703echo "${ECHO_T}$tcl_cv_ld_elf" >&6 8704 if test $tcl_cv_ld_elf = yes; then 8705 8706 LDFLAGS=-Wl,-export-dynamic 8707 8708else 8709 LDFLAGS="" 8710fi 8711 8712 8713 # OpenBSD doesn't do version numbers with dots. 8714 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8715 TCL_LIB_VERSIONS_OK=nodots 8716 ;; 8717 NetBSD-*|DragonFly-*|FreeBSD-*) 8718 # FreeBSD 3.* and greater have ELF. 8719 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8720 SHLIB_CFLAGS="-fPIC" 8721 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8722 SHLIB_LD_LIBS='${LIBS}' 8723 SHLIB_SUFFIX=".so" 8724 DL_OBJS="tclLoadDl.o" 8725 DL_LIBS="" 8726 LDFLAGS="$LDFLAGS -export-dynamic" 8727 if test $doRpath = yes; then 8728 8729 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8730fi 8731 8732 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8733 if test "${TCL_THREADS}" = "1"; then 8734 8735 # The -pthread needs to go in the CFLAGS, not LIBS 8736 LIBS=`echo $LIBS | sed s/-pthread//` 8737 CFLAGS="$CFLAGS -pthread" 8738 LDFLAGS="$LDFLAGS -pthread" 8739 8740fi 8741 8742 case $system in 8743 FreeBSD-3.*) 8744 # FreeBSD-3 doesn't handle version numbers with dots. 8745 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8746 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8747 TCL_LIB_VERSIONS_OK=nodots 8748 ;; 8749 esac 8750 ;; 8751 Darwin-*) 8752 CFLAGS_OPTIMIZE="-Os" 8753 SHLIB_CFLAGS="-fno-common" 8754 # To avoid discrepancies between what headers configure sees during 8755 # preprocessing tests and compiling tests, move any -isysroot and 8756 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8757 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8758 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8759 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8760 CFLAGS="`echo " ${CFLAGS}" | \ 8761 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8762 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8763 if test $do64bit = yes; then 8764 8765 case `arch` in 8766 ppc) 8767 echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8768echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6 8769if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8770 echo $ECHO_N "(cached) $ECHO_C" >&6 8771else 8772 8773 hold_cflags=$CFLAGS 8774 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8775 cat >conftest.$ac_ext <<_ACEOF 8776/* confdefs.h. */ 8777_ACEOF 8778cat confdefs.h >>conftest.$ac_ext 8779cat >>conftest.$ac_ext <<_ACEOF 8780/* end confdefs.h. */ 8781 8782int 8783main () 8784{ 8785 8786 ; 8787 return 0; 8788} 8789_ACEOF 8790rm -f conftest.$ac_objext conftest$ac_exeext 8791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8792 (eval $ac_link) 2>conftest.er1 8793 ac_status=$? 8794 grep -v '^ *+' conftest.er1 >conftest.err 8795 rm -f conftest.er1 8796 cat conftest.err >&5 8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8798 (exit $ac_status); } && 8799 { ac_try='test -z "$ac_c_werror_flag" 8800 || test ! -s conftest.err' 8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8802 (eval $ac_try) 2>&5 8803 ac_status=$? 8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8805 (exit $ac_status); }; } && 8806 { ac_try='test -s conftest$ac_exeext' 8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8808 (eval $ac_try) 2>&5 8809 ac_status=$? 8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8811 (exit $ac_status); }; }; then 8812 tcl_cv_cc_arch_ppc64=yes 8813else 8814 echo "$as_me: failed program was:" >&5 8815sed 's/^/| /' conftest.$ac_ext >&5 8816 8817tcl_cv_cc_arch_ppc64=no 8818fi 8819rm -f conftest.err conftest.$ac_objext \ 8820 conftest$ac_exeext conftest.$ac_ext 8821 CFLAGS=$hold_cflags 8822fi 8823echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8824echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6 8825 if test $tcl_cv_cc_arch_ppc64 = yes; then 8826 8827 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8828 do64bit_ok=yes 8829 8830fi 8831;; 8832 i386) 8833 echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8834echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6 8835if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8836 echo $ECHO_N "(cached) $ECHO_C" >&6 8837else 8838 8839 hold_cflags=$CFLAGS 8840 CFLAGS="$CFLAGS -arch x86_64" 8841 cat >conftest.$ac_ext <<_ACEOF 8842/* confdefs.h. */ 8843_ACEOF 8844cat confdefs.h >>conftest.$ac_ext 8845cat >>conftest.$ac_ext <<_ACEOF 8846/* end confdefs.h. */ 8847 8848int 8849main () 8850{ 8851 8852 ; 8853 return 0; 8854} 8855_ACEOF 8856rm -f conftest.$ac_objext conftest$ac_exeext 8857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8858 (eval $ac_link) 2>conftest.er1 8859 ac_status=$? 8860 grep -v '^ *+' conftest.er1 >conftest.err 8861 rm -f conftest.er1 8862 cat conftest.err >&5 8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8864 (exit $ac_status); } && 8865 { ac_try='test -z "$ac_c_werror_flag" 8866 || test ! -s conftest.err' 8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8868 (eval $ac_try) 2>&5 8869 ac_status=$? 8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8871 (exit $ac_status); }; } && 8872 { ac_try='test -s conftest$ac_exeext' 8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8874 (eval $ac_try) 2>&5 8875 ac_status=$? 8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8877 (exit $ac_status); }; }; then 8878 tcl_cv_cc_arch_x86_64=yes 8879else 8880 echo "$as_me: failed program was:" >&5 8881sed 's/^/| /' conftest.$ac_ext >&5 8882 8883tcl_cv_cc_arch_x86_64=no 8884fi 8885rm -f conftest.err conftest.$ac_objext \ 8886 conftest$ac_exeext conftest.$ac_ext 8887 CFLAGS=$hold_cflags 8888fi 8889echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8890echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6 8891 if test $tcl_cv_cc_arch_x86_64 = yes; then 8892 8893 CFLAGS="$CFLAGS -arch x86_64" 8894 do64bit_ok=yes 8895 8896fi 8897;; 8898 *) 8899 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8900echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8901 esac 8902 8903else 8904 8905 # Check for combined 32-bit and 64-bit fat build 8906 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8907 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 8908 8909 fat_32_64=yes 8910fi 8911 8912 8913fi 8914 8915 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8916 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8917 echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8918echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6 8919if test "${tcl_cv_ld_single_module+set}" = set; then 8920 echo $ECHO_N "(cached) $ECHO_C" >&6 8921else 8922 8923 hold_ldflags=$LDFLAGS 8924 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8925 cat >conftest.$ac_ext <<_ACEOF 8926/* confdefs.h. */ 8927_ACEOF 8928cat confdefs.h >>conftest.$ac_ext 8929cat >>conftest.$ac_ext <<_ACEOF 8930/* end confdefs.h. */ 8931 8932int 8933main () 8934{ 8935int i; 8936 ; 8937 return 0; 8938} 8939_ACEOF 8940rm -f conftest.$ac_objext conftest$ac_exeext 8941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8942 (eval $ac_link) 2>conftest.er1 8943 ac_status=$? 8944 grep -v '^ *+' conftest.er1 >conftest.err 8945 rm -f conftest.er1 8946 cat conftest.err >&5 8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8948 (exit $ac_status); } && 8949 { ac_try='test -z "$ac_c_werror_flag" 8950 || test ! -s conftest.err' 8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8952 (eval $ac_try) 2>&5 8953 ac_status=$? 8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8955 (exit $ac_status); }; } && 8956 { ac_try='test -s conftest$ac_exeext' 8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8958 (eval $ac_try) 2>&5 8959 ac_status=$? 8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8961 (exit $ac_status); }; }; then 8962 tcl_cv_ld_single_module=yes 8963else 8964 echo "$as_me: failed program was:" >&5 8965sed 's/^/| /' conftest.$ac_ext >&5 8966 8967tcl_cv_ld_single_module=no 8968fi 8969rm -f conftest.err conftest.$ac_objext \ 8970 conftest$ac_exeext conftest.$ac_ext 8971 LDFLAGS=$hold_ldflags 8972fi 8973echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 8974echo "${ECHO_T}$tcl_cv_ld_single_module" >&6 8975 if test $tcl_cv_ld_single_module = yes; then 8976 8977 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 8978 8979fi 8980 8981 SHLIB_LD_LIBS='${LIBS}' 8982 SHLIB_SUFFIX=".dylib" 8983 DL_OBJS="tclLoadDyld.o" 8984 DL_LIBS="" 8985 # Don't use -prebind when building for Mac OS X 10.4 or later only: 8986 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 8987 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 8988 8989 LDFLAGS="$LDFLAGS -prebind" 8990fi 8991 8992 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 8993 echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 8994echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6 8995if test "${tcl_cv_ld_search_paths_first+set}" = set; then 8996 echo $ECHO_N "(cached) $ECHO_C" >&6 8997else 8998 8999 hold_ldflags=$LDFLAGS 9000 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9001 cat >conftest.$ac_ext <<_ACEOF 9002/* confdefs.h. */ 9003_ACEOF 9004cat confdefs.h >>conftest.$ac_ext 9005cat >>conftest.$ac_ext <<_ACEOF 9006/* end confdefs.h. */ 9007 9008int 9009main () 9010{ 9011int i; 9012 ; 9013 return 0; 9014} 9015_ACEOF 9016rm -f conftest.$ac_objext conftest$ac_exeext 9017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9018 (eval $ac_link) 2>conftest.er1 9019 ac_status=$? 9020 grep -v '^ *+' conftest.er1 >conftest.err 9021 rm -f conftest.er1 9022 cat conftest.err >&5 9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9024 (exit $ac_status); } && 9025 { ac_try='test -z "$ac_c_werror_flag" 9026 || test ! -s conftest.err' 9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9028 (eval $ac_try) 2>&5 9029 ac_status=$? 9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9031 (exit $ac_status); }; } && 9032 { ac_try='test -s conftest$ac_exeext' 9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9034 (eval $ac_try) 2>&5 9035 ac_status=$? 9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9037 (exit $ac_status); }; }; then 9038 tcl_cv_ld_search_paths_first=yes 9039else 9040 echo "$as_me: failed program was:" >&5 9041sed 's/^/| /' conftest.$ac_ext >&5 9042 9043tcl_cv_ld_search_paths_first=no 9044fi 9045rm -f conftest.err conftest.$ac_objext \ 9046 conftest$ac_exeext conftest.$ac_ext 9047 LDFLAGS=$hold_ldflags 9048fi 9049echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9050echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6 9051 if test $tcl_cv_ld_search_paths_first = yes; then 9052 9053 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9054 9055fi 9056 9057 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9058 9059 9060cat >>confdefs.h <<\_ACEOF 9061#define MODULE_SCOPE __private_extern__ 9062_ACEOF 9063 9064 9065fi 9066 9067 CC_SEARCH_FLAGS="" 9068 LD_SEARCH_FLAGS="" 9069 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9070 # TEA specific: for combined 32 & 64 bit fat builds of Tk 9071 # extensions, verify that 64-bit build is possible. 9072 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 9073 9074 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 9075 9076 echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9077echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6 9078if test "${tcl_cv_lib_x11_64+set}" = set; then 9079 echo $ECHO_N "(cached) $ECHO_C" >&6 9080else 9081 9082 for v in CFLAGS CPPFLAGS LDFLAGS; do 9083 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9084 done 9085 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9086 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9087 cat >conftest.$ac_ext <<_ACEOF 9088/* confdefs.h. */ 9089_ACEOF 9090cat confdefs.h >>conftest.$ac_ext 9091cat >>conftest.$ac_ext <<_ACEOF 9092/* end confdefs.h. */ 9093#include <X11/Xlib.h> 9094int 9095main () 9096{ 9097XrmInitialize(); 9098 ; 9099 return 0; 9100} 9101_ACEOF 9102rm -f conftest.$ac_objext conftest$ac_exeext 9103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9104 (eval $ac_link) 2>conftest.er1 9105 ac_status=$? 9106 grep -v '^ *+' conftest.er1 >conftest.err 9107 rm -f conftest.er1 9108 cat conftest.err >&5 9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9110 (exit $ac_status); } && 9111 { ac_try='test -z "$ac_c_werror_flag" 9112 || test ! -s conftest.err' 9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9114 (eval $ac_try) 2>&5 9115 ac_status=$? 9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9117 (exit $ac_status); }; } && 9118 { ac_try='test -s conftest$ac_exeext' 9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9120 (eval $ac_try) 2>&5 9121 ac_status=$? 9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9123 (exit $ac_status); }; }; then 9124 tcl_cv_lib_x11_64=yes 9125else 9126 echo "$as_me: failed program was:" >&5 9127sed 's/^/| /' conftest.$ac_ext >&5 9128 9129tcl_cv_lib_x11_64=no 9130fi 9131rm -f conftest.err conftest.$ac_objext \ 9132 conftest$ac_exeext conftest.$ac_ext 9133 for v in CFLAGS CPPFLAGS LDFLAGS; do 9134 eval $v'="$hold_'$v'"' 9135 done 9136fi 9137echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9138echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6 9139 9140fi 9141 9142 # remove 64-bit arch flags from CFLAGS et al. if configuration 9143 # does not support 64-bit. 9144 if test "${TEA_WINDOWINGSYSTEM}" = aqua -o "$tcl_cv_lib_x11_64" = no; then 9145 9146 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9147echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9148 for v in CFLAGS CPPFLAGS LDFLAGS; do 9149 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9150 done 9151fi 9152 9153 9154fi 9155 9156 ;; 9157 NEXTSTEP-*) 9158 SHLIB_CFLAGS="" 9159 SHLIB_LD='${CC} -nostdlib -r' 9160 SHLIB_LD_LIBS="" 9161 SHLIB_SUFFIX=".so" 9162 DL_OBJS="tclLoadNext.o" 9163 DL_LIBS="" 9164 CC_SEARCH_FLAGS="" 9165 LD_SEARCH_FLAGS="" 9166 ;; 9167 OS/390-*) 9168 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9169 9170cat >>confdefs.h <<\_ACEOF 9171#define _OE_SOCKETS 1 9172_ACEOF 9173 9174 ;; 9175 OSF1-1.0|OSF1-1.1|OSF1-1.2) 9176 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 9177 SHLIB_CFLAGS="" 9178 # Hack: make package name same as library name 9179 SHLIB_LD='ld -R -export :' 9180 SHLIB_LD_LIBS="" 9181 SHLIB_SUFFIX=".so" 9182 DL_OBJS="tclLoadOSF.o" 9183 DL_LIBS="" 9184 CC_SEARCH_FLAGS="" 9185 LD_SEARCH_FLAGS="" 9186 ;; 9187 OSF1-1.*) 9188 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 9189 SHLIB_CFLAGS="-fPIC" 9190 if test "$SHARED_BUILD" = 1; then 9191 SHLIB_LD="ld -shared" 9192else 9193 9194 SHLIB_LD="ld -non_shared" 9195 9196fi 9197 9198 SHLIB_LD_LIBS="" 9199 SHLIB_SUFFIX=".so" 9200 DL_OBJS="tclLoadDl.o" 9201 DL_LIBS="" 9202 CC_SEARCH_FLAGS="" 9203 LD_SEARCH_FLAGS="" 9204 ;; 9205 OSF1-V*) 9206 # Digital OSF/1 9207 SHLIB_CFLAGS="" 9208 if test "$SHARED_BUILD" = 1; then 9209 9210 SHLIB_LD='ld -shared -expect_unresolved "*"' 9211 9212else 9213 9214 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9215 9216fi 9217 9218 SHLIB_LD_LIBS="" 9219 SHLIB_SUFFIX=".so" 9220 DL_OBJS="tclLoadDl.o" 9221 DL_LIBS="" 9222 if test $doRpath = yes; then 9223 9224 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9225 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9226fi 9227 9228 if test "$GCC" = yes; then 9229 CFLAGS="$CFLAGS -mieee" 9230else 9231 9232 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9233fi 9234 9235 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9236 if test "${TCL_THREADS}" = 1; then 9237 9238 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9239 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9240 LIBS=`echo $LIBS | sed s/-lpthreads//` 9241 if test "$GCC" = yes; then 9242 9243 LIBS="$LIBS -lpthread -lmach -lexc" 9244 9245else 9246 9247 CFLAGS="$CFLAGS -pthread" 9248 LDFLAGS="$LDFLAGS -pthread" 9249 9250fi 9251 9252 9253fi 9254 9255 ;; 9256 QNX-6*) 9257 # QNX RTP 9258 # This may work for all QNX, but it was only reported for v6. 9259 SHLIB_CFLAGS="-fPIC" 9260 SHLIB_LD="ld -Bshareable -x" 9261 SHLIB_LD_LIBS="" 9262 SHLIB_SUFFIX=".so" 9263 DL_OBJS="tclLoadDl.o" 9264 # dlopen is in -lc on QNX 9265 DL_LIBS="" 9266 CC_SEARCH_FLAGS="" 9267 LD_SEARCH_FLAGS="" 9268 ;; 9269 SCO_SV-3.2*) 9270 # Note, dlopen is available only on SCO 3.2.5 and greater. However, 9271 # this test works, since "uname -s" was non-standard in 3.2.4 and 9272 # below. 9273 if test "$GCC" = yes; then 9274 9275 SHLIB_CFLAGS="-fPIC -melf" 9276 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9277 9278else 9279 9280 SHLIB_CFLAGS="-Kpic -belf" 9281 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9282 9283fi 9284 9285 SHLIB_LD="ld -G" 9286 SHLIB_LD_LIBS="" 9287 SHLIB_SUFFIX=".so" 9288 DL_OBJS="tclLoadDl.o" 9289 DL_LIBS="" 9290 CC_SEARCH_FLAGS="" 9291 LD_SEARCH_FLAGS="" 9292 ;; 9293 SINIX*5.4*) 9294 SHLIB_CFLAGS="-K PIC" 9295 SHLIB_LD='${CC} -G' 9296 SHLIB_LD_LIBS="" 9297 SHLIB_SUFFIX=".so" 9298 DL_OBJS="tclLoadDl.o" 9299 DL_LIBS="-ldl" 9300 CC_SEARCH_FLAGS="" 9301 LD_SEARCH_FLAGS="" 9302 ;; 9303 SunOS-4*) 9304 SHLIB_CFLAGS="-PIC" 9305 SHLIB_LD="ld" 9306 SHLIB_LD_LIBS="" 9307 SHLIB_SUFFIX=".so" 9308 DL_OBJS="tclLoadDl.o" 9309 DL_LIBS="-ldl" 9310 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 9311 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9312 9313 # SunOS can't handle version numbers with dots in them in library 9314 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it 9315 # requires an extra version number at the end of .so file names. 9316 # So, the library has to have a name like libtcl75.so.1.0 9317 9318 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 9319 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9320 TCL_LIB_VERSIONS_OK=nodots 9321 ;; 9322 SunOS-5.[0-6]) 9323 # Careful to not let 5.10+ fall into this case 9324 9325 # Note: If _REENTRANT isn't defined, then Solaris 9326 # won't define thread-safe library routines. 9327 9328 9329cat >>confdefs.h <<\_ACEOF 9330#define _REENTRANT 1 9331_ACEOF 9332 9333 9334cat >>confdefs.h <<\_ACEOF 9335#define _POSIX_PTHREAD_SEMANTICS 1 9336_ACEOF 9337 9338 9339 SHLIB_CFLAGS="-KPIC" 9340 9341 # Note: need the LIBS below, otherwise Tk won't find Tcl's 9342 # symbols when dynamically loaded into tclsh. 9343 9344 SHLIB_LD_LIBS='${LIBS}' 9345 SHLIB_SUFFIX=".so" 9346 DL_OBJS="tclLoadDl.o" 9347 DL_LIBS="-ldl" 9348 if test "$GCC" = yes; then 9349 9350 SHLIB_LD='${CC} -shared' 9351 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9352 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9353 9354else 9355 9356 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9357 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9358 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9359 9360fi 9361 9362 ;; 9363 SunOS-5*) 9364 # Note: If _REENTRANT isn't defined, then Solaris 9365 # won't define thread-safe library routines. 9366 9367 9368cat >>confdefs.h <<\_ACEOF 9369#define _REENTRANT 1 9370_ACEOF 9371 9372 9373cat >>confdefs.h <<\_ACEOF 9374#define _POSIX_PTHREAD_SEMANTICS 1 9375_ACEOF 9376 9377 9378 SHLIB_CFLAGS="-KPIC" 9379 9380 # Check to enable 64-bit flags for compiler/linker 9381 if test "$do64bit" = yes; then 9382 9383 arch=`isainfo` 9384 if test "$arch" = "sparcv9 sparc"; then 9385 9386 if test "$GCC" = yes; then 9387 9388 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9389 9390 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9391echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9392 9393else 9394 9395 do64bit_ok=yes 9396 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9397 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9398 SHLIB_CFLAGS="-fPIC" 9399 9400fi 9401 9402 9403else 9404 9405 do64bit_ok=yes 9406 if test "$do64bitVIS" = yes; then 9407 9408 CFLAGS="$CFLAGS -xarch=v9a" 9409 LDFLAGS_ARCH="-xarch=v9a" 9410 9411else 9412 9413 CFLAGS="$CFLAGS -xarch=v9" 9414 LDFLAGS_ARCH="-xarch=v9" 9415 9416fi 9417 9418 # Solaris 64 uses this as well 9419 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9420 9421fi 9422 9423 9424else 9425 if test "$arch" = "amd64 i386"; then 9426 9427 if test "$GCC" = yes; then 9428 9429 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9430echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 9431 9432else 9433 9434 do64bit_ok=yes 9435 CFLAGS="$CFLAGS -xarch=amd64" 9436 LDFLAGS="$LDFLAGS -xarch=amd64" 9437 9438fi 9439 9440 9441else 9442 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9443echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9444fi 9445 9446fi 9447 9448 9449fi 9450 9451 9452 # Note: need the LIBS below, otherwise Tk won't find Tcl's 9453 # symbols when dynamically loaded into tclsh. 9454 9455 SHLIB_LD_LIBS='${LIBS}' 9456 SHLIB_SUFFIX=".so" 9457 DL_OBJS="tclLoadDl.o" 9458 DL_LIBS="-ldl" 9459 if test "$GCC" = yes; then 9460 9461 SHLIB_LD='${CC} -shared' 9462 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9463 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9464 if test "$do64bit_ok" = yes; then 9465 9466 # We need to specify -static-libgcc or we need to 9467 # add the path to the sparv9 libgcc. 9468 # JH: static-libgcc is necessary for core Tcl, but may 9469 # not be necessary for extensions. 9470 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9471 # for finding sparcv9 libgcc, get the regular libgcc 9472 # path, remove so name and append 'sparcv9' 9473 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9474 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9475 9476fi 9477 9478 9479else 9480 9481 case $system in 9482 SunOS-5.[1-9][0-9]*) 9483 SHLIB_LD='${CC} -G -z text';; 9484 *) 9485 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9486 esac 9487 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9488 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9489 9490fi 9491 9492 ;; 9493 UNIX_SV* | UnixWare-5*) 9494 SHLIB_CFLAGS="-KPIC" 9495 SHLIB_LD='${CC} -G' 9496 SHLIB_LD_LIBS="" 9497 SHLIB_SUFFIX=".so" 9498 DL_OBJS="tclLoadDl.o" 9499 DL_LIBS="-ldl" 9500 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 9501 # that don't grok the -Bexport option. Test that it does. 9502 echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5 9503echo $ECHO_N "checking for ld accepts -Bexport flag... $ECHO_C" >&6 9504if test "${tcl_cv_ld_Bexport+set}" = set; then 9505 echo $ECHO_N "(cached) $ECHO_C" >&6 9506else 9507 9508 hold_ldflags=$LDFLAGS 9509 LDFLAGS="$LDFLAGS -Wl,-Bexport" 9510 cat >conftest.$ac_ext <<_ACEOF 9511/* confdefs.h. */ 9512_ACEOF 9513cat confdefs.h >>conftest.$ac_ext 9514cat >>conftest.$ac_ext <<_ACEOF 9515/* end confdefs.h. */ 9516 9517int 9518main () 9519{ 9520int i; 9521 ; 9522 return 0; 9523} 9524_ACEOF 9525rm -f conftest.$ac_objext conftest$ac_exeext 9526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9527 (eval $ac_link) 2>conftest.er1 9528 ac_status=$? 9529 grep -v '^ *+' conftest.er1 >conftest.err 9530 rm -f conftest.er1 9531 cat conftest.err >&5 9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9533 (exit $ac_status); } && 9534 { ac_try='test -z "$ac_c_werror_flag" 9535 || test ! -s conftest.err' 9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9537 (eval $ac_try) 2>&5 9538 ac_status=$? 9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9540 (exit $ac_status); }; } && 9541 { ac_try='test -s conftest$ac_exeext' 9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9543 (eval $ac_try) 2>&5 9544 ac_status=$? 9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9546 (exit $ac_status); }; }; then 9547 tcl_cv_ld_Bexport=yes 9548else 9549 echo "$as_me: failed program was:" >&5 9550sed 's/^/| /' conftest.$ac_ext >&5 9551 9552tcl_cv_ld_Bexport=no 9553fi 9554rm -f conftest.err conftest.$ac_objext \ 9555 conftest$ac_exeext conftest.$ac_ext 9556 LDFLAGS=$hold_ldflags 9557fi 9558echo "$as_me:$LINENO: result: $tcl_cv_ld_Bexport" >&5 9559echo "${ECHO_T}$tcl_cv_ld_Bexport" >&6 9560 if test $tcl_cv_ld_Bexport = yes; then 9561 9562 LDFLAGS="$LDFLAGS -Wl,-Bexport" 9563 9564fi 9565 9566 CC_SEARCH_FLAGS="" 9567 LD_SEARCH_FLAGS="" 9568 ;; 9569 esac 9570 9571 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9572 9573 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9574echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9575 9576fi 9577 9578 9579 9580 9581 # Step 4: disable dynamic loading if requested via a command-line switch. 9582 9583 # Check whether --enable-load or --disable-load was given. 9584if test "${enable_load+set}" = set; then 9585 enableval="$enable_load" 9586 tcl_ok=$enableval 9587else 9588 tcl_ok=yes 9589fi; 9590 if test "$tcl_ok" = no; then 9591 DL_OBJS="" 9592fi 9593 9594 9595 if test "x$DL_OBJS" != x; then 9596 BUILD_DLTEST="\$(DLTEST_TARGETS)" 9597else 9598 9599 { echo "$as_me:$LINENO: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&5 9600echo "$as_me: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&2;} 9601 SHLIB_CFLAGS="" 9602 SHLIB_LD="" 9603 SHLIB_SUFFIX="" 9604 DL_OBJS="tclLoadNone.o" 9605 DL_LIBS="" 9606 LDFLAGS="$LDFLAGS_ORIG" 9607 CC_SEARCH_FLAGS="" 9608 LD_SEARCH_FLAGS="" 9609 BUILD_DLTEST="" 9610 9611fi 9612 9613 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9614 9615 # If we're running gcc, then change the C flags for compiling shared 9616 # libraries to the right flags for gcc, instead of those for the 9617 # standard manufacturer compiler. 9618 9619 if test "$DL_OBJS" != "tclLoadNone.o" -a "$GCC" = yes; then 9620 9621 case $system in 9622 AIX-*) ;; 9623 BSD/OS*) ;; 9624 IRIX*) ;; 9625 NetBSD-*|DragonFly|FreeBSD-*) ;; 9626 Darwin-*) ;; 9627 SCO_SV-3.2*) ;; 9628 *) SHLIB_CFLAGS="-fPIC" ;; 9629 esac 9630fi 9631 9632 9633 if test "$SHARED_LIB_SUFFIX" = ""; then 9634 9635 # TEA specific: use PACKAGE_VERSION instead of VERSION 9636 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9637fi 9638 9639 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9640 9641 # TEA specific: use PACKAGE_VERSION instead of VERSION 9642 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9643fi 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 # These must be called after we do the basic CFLAGS checks and 9661 # verify any possible 64-bit or similar switches are necessary 9662 9663 echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9664echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6 9665 tcl_flags="" 9666 9667 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9668 echo $ECHO_N "(cached) $ECHO_C" >&6 9669else 9670 cat >conftest.$ac_ext <<_ACEOF 9671/* confdefs.h. */ 9672_ACEOF 9673cat confdefs.h >>conftest.$ac_ext 9674cat >>conftest.$ac_ext <<_ACEOF 9675/* end confdefs.h. */ 9676#include <stdlib.h> 9677int 9678main () 9679{ 9680char *p = (char *)strtoll; char *q = (char *)strtoull; 9681 ; 9682 return 0; 9683} 9684_ACEOF 9685rm -f conftest.$ac_objext 9686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9687 (eval $ac_compile) 2>conftest.er1 9688 ac_status=$? 9689 grep -v '^ *+' conftest.er1 >conftest.err 9690 rm -f conftest.er1 9691 cat conftest.err >&5 9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9693 (exit $ac_status); } && 9694 { ac_try='test -z "$ac_c_werror_flag" 9695 || test ! -s conftest.err' 9696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9697 (eval $ac_try) 2>&5 9698 ac_status=$? 9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9700 (exit $ac_status); }; } && 9701 { ac_try='test -s conftest.$ac_objext' 9702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9703 (eval $ac_try) 2>&5 9704 ac_status=$? 9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9706 (exit $ac_status); }; }; then 9707 tcl_cv_flag__isoc99_source=no 9708else 9709 echo "$as_me: failed program was:" >&5 9710sed 's/^/| /' conftest.$ac_ext >&5 9711 9712cat >conftest.$ac_ext <<_ACEOF 9713/* confdefs.h. */ 9714_ACEOF 9715cat confdefs.h >>conftest.$ac_ext 9716cat >>conftest.$ac_ext <<_ACEOF 9717/* end confdefs.h. */ 9718#define _ISOC99_SOURCE 1 9719#include <stdlib.h> 9720int 9721main () 9722{ 9723char *p = (char *)strtoll; char *q = (char *)strtoull; 9724 ; 9725 return 0; 9726} 9727_ACEOF 9728rm -f conftest.$ac_objext 9729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9730 (eval $ac_compile) 2>conftest.er1 9731 ac_status=$? 9732 grep -v '^ *+' conftest.er1 >conftest.err 9733 rm -f conftest.er1 9734 cat conftest.err >&5 9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9736 (exit $ac_status); } && 9737 { ac_try='test -z "$ac_c_werror_flag" 9738 || test ! -s conftest.err' 9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9740 (eval $ac_try) 2>&5 9741 ac_status=$? 9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9743 (exit $ac_status); }; } && 9744 { ac_try='test -s conftest.$ac_objext' 9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9746 (eval $ac_try) 2>&5 9747 ac_status=$? 9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9749 (exit $ac_status); }; }; then 9750 tcl_cv_flag__isoc99_source=yes 9751else 9752 echo "$as_me: failed program was:" >&5 9753sed 's/^/| /' conftest.$ac_ext >&5 9754 9755tcl_cv_flag__isoc99_source=no 9756fi 9757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9758fi 9759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9760fi 9761 9762 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9763 9764cat >>confdefs.h <<\_ACEOF 9765#define _ISOC99_SOURCE 1 9766_ACEOF 9767 9768 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9769 fi 9770 9771 9772 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9773 echo $ECHO_N "(cached) $ECHO_C" >&6 9774else 9775 cat >conftest.$ac_ext <<_ACEOF 9776/* confdefs.h. */ 9777_ACEOF 9778cat confdefs.h >>conftest.$ac_ext 9779cat >>conftest.$ac_ext <<_ACEOF 9780/* end confdefs.h. */ 9781#include <sys/stat.h> 9782int 9783main () 9784{ 9785struct stat64 buf; int i = stat64("/", &buf); 9786 ; 9787 return 0; 9788} 9789_ACEOF 9790rm -f conftest.$ac_objext 9791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9792 (eval $ac_compile) 2>conftest.er1 9793 ac_status=$? 9794 grep -v '^ *+' conftest.er1 >conftest.err 9795 rm -f conftest.er1 9796 cat conftest.err >&5 9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9798 (exit $ac_status); } && 9799 { ac_try='test -z "$ac_c_werror_flag" 9800 || test ! -s conftest.err' 9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9802 (eval $ac_try) 2>&5 9803 ac_status=$? 9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9805 (exit $ac_status); }; } && 9806 { ac_try='test -s conftest.$ac_objext' 9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9808 (eval $ac_try) 2>&5 9809 ac_status=$? 9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9811 (exit $ac_status); }; }; then 9812 tcl_cv_flag__largefile64_source=no 9813else 9814 echo "$as_me: failed program was:" >&5 9815sed 's/^/| /' conftest.$ac_ext >&5 9816 9817cat >conftest.$ac_ext <<_ACEOF 9818/* confdefs.h. */ 9819_ACEOF 9820cat confdefs.h >>conftest.$ac_ext 9821cat >>conftest.$ac_ext <<_ACEOF 9822/* end confdefs.h. */ 9823#define _LARGEFILE64_SOURCE 1 9824#include <sys/stat.h> 9825int 9826main () 9827{ 9828struct stat64 buf; int i = stat64("/", &buf); 9829 ; 9830 return 0; 9831} 9832_ACEOF 9833rm -f conftest.$ac_objext 9834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9835 (eval $ac_compile) 2>conftest.er1 9836 ac_status=$? 9837 grep -v '^ *+' conftest.er1 >conftest.err 9838 rm -f conftest.er1 9839 cat conftest.err >&5 9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9841 (exit $ac_status); } && 9842 { ac_try='test -z "$ac_c_werror_flag" 9843 || test ! -s conftest.err' 9844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9845 (eval $ac_try) 2>&5 9846 ac_status=$? 9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9848 (exit $ac_status); }; } && 9849 { ac_try='test -s conftest.$ac_objext' 9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9851 (eval $ac_try) 2>&5 9852 ac_status=$? 9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9854 (exit $ac_status); }; }; then 9855 tcl_cv_flag__largefile64_source=yes 9856else 9857 echo "$as_me: failed program was:" >&5 9858sed 's/^/| /' conftest.$ac_ext >&5 9859 9860tcl_cv_flag__largefile64_source=no 9861fi 9862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9863fi 9864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9865fi 9866 9867 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9868 9869cat >>confdefs.h <<\_ACEOF 9870#define _LARGEFILE64_SOURCE 1 9871_ACEOF 9872 9873 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9874 fi 9875 9876 9877 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9878 echo $ECHO_N "(cached) $ECHO_C" >&6 9879else 9880 cat >conftest.$ac_ext <<_ACEOF 9881/* confdefs.h. */ 9882_ACEOF 9883cat confdefs.h >>conftest.$ac_ext 9884cat >>conftest.$ac_ext <<_ACEOF 9885/* end confdefs.h. */ 9886#include <sys/stat.h> 9887int 9888main () 9889{ 9890char *p = (char *)open64; 9891 ; 9892 return 0; 9893} 9894_ACEOF 9895rm -f conftest.$ac_objext 9896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9897 (eval $ac_compile) 2>conftest.er1 9898 ac_status=$? 9899 grep -v '^ *+' conftest.er1 >conftest.err 9900 rm -f conftest.er1 9901 cat conftest.err >&5 9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9903 (exit $ac_status); } && 9904 { ac_try='test -z "$ac_c_werror_flag" 9905 || test ! -s conftest.err' 9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9907 (eval $ac_try) 2>&5 9908 ac_status=$? 9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9910 (exit $ac_status); }; } && 9911 { ac_try='test -s conftest.$ac_objext' 9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9913 (eval $ac_try) 2>&5 9914 ac_status=$? 9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9916 (exit $ac_status); }; }; then 9917 tcl_cv_flag__largefile_source64=no 9918else 9919 echo "$as_me: failed program was:" >&5 9920sed 's/^/| /' conftest.$ac_ext >&5 9921 9922cat >conftest.$ac_ext <<_ACEOF 9923/* confdefs.h. */ 9924_ACEOF 9925cat confdefs.h >>conftest.$ac_ext 9926cat >>conftest.$ac_ext <<_ACEOF 9927/* end confdefs.h. */ 9928#define _LARGEFILE_SOURCE64 1 9929#include <sys/stat.h> 9930int 9931main () 9932{ 9933char *p = (char *)open64; 9934 ; 9935 return 0; 9936} 9937_ACEOF 9938rm -f conftest.$ac_objext 9939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9940 (eval $ac_compile) 2>conftest.er1 9941 ac_status=$? 9942 grep -v '^ *+' conftest.er1 >conftest.err 9943 rm -f conftest.er1 9944 cat conftest.err >&5 9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9946 (exit $ac_status); } && 9947 { ac_try='test -z "$ac_c_werror_flag" 9948 || test ! -s conftest.err' 9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9950 (eval $ac_try) 2>&5 9951 ac_status=$? 9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9953 (exit $ac_status); }; } && 9954 { ac_try='test -s conftest.$ac_objext' 9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9956 (eval $ac_try) 2>&5 9957 ac_status=$? 9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9959 (exit $ac_status); }; }; then 9960 tcl_cv_flag__largefile_source64=yes 9961else 9962 echo "$as_me: failed program was:" >&5 9963sed 's/^/| /' conftest.$ac_ext >&5 9964 9965tcl_cv_flag__largefile_source64=no 9966fi 9967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9968fi 9969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9970fi 9971 9972 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9973 9974cat >>confdefs.h <<\_ACEOF 9975#define _LARGEFILE_SOURCE64 1 9976_ACEOF 9977 9978 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9979 fi 9980 9981 if test "x${tcl_flags}" = "x" ; then 9982 echo "$as_me:$LINENO: result: none" >&5 9983echo "${ECHO_T}none" >&6 9984 else 9985 echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9986echo "${ECHO_T}${tcl_flags}" >&6 9987 fi 9988 9989 9990 echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9991echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6 9992 if test "${tcl_cv_type_64bit+set}" = set; then 9993 echo $ECHO_N "(cached) $ECHO_C" >&6 9994else 9995 9996 tcl_cv_type_64bit=none 9997 # See if the compiler knows natively about __int64 9998 cat >conftest.$ac_ext <<_ACEOF 9999/* confdefs.h. */ 10000_ACEOF 10001cat confdefs.h >>conftest.$ac_ext 10002cat >>conftest.$ac_ext <<_ACEOF 10003/* end confdefs.h. */ 10004 10005int 10006main () 10007{ 10008__int64 value = (__int64) 0; 10009 ; 10010 return 0; 10011} 10012_ACEOF 10013rm -f conftest.$ac_objext 10014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10015 (eval $ac_compile) 2>conftest.er1 10016 ac_status=$? 10017 grep -v '^ *+' conftest.er1 >conftest.err 10018 rm -f conftest.er1 10019 cat conftest.err >&5 10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10021 (exit $ac_status); } && 10022 { ac_try='test -z "$ac_c_werror_flag" 10023 || test ! -s conftest.err' 10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10025 (eval $ac_try) 2>&5 10026 ac_status=$? 10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10028 (exit $ac_status); }; } && 10029 { ac_try='test -s conftest.$ac_objext' 10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10031 (eval $ac_try) 2>&5 10032 ac_status=$? 10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10034 (exit $ac_status); }; }; then 10035 tcl_type_64bit=__int64 10036else 10037 echo "$as_me: failed program was:" >&5 10038sed 's/^/| /' conftest.$ac_ext >&5 10039 10040tcl_type_64bit="long long" 10041fi 10042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10043 # See if we should use long anyway Note that we substitute in the 10044 # type that is our current guess for a 64-bit type inside this check 10045 # program, so it should be modified only carefully... 10046 cat >conftest.$ac_ext <<_ACEOF 10047/* confdefs.h. */ 10048_ACEOF 10049cat confdefs.h >>conftest.$ac_ext 10050cat >>conftest.$ac_ext <<_ACEOF 10051/* end confdefs.h. */ 10052 10053int 10054main () 10055{ 10056switch (0) { 10057 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 10058 } 10059 ; 10060 return 0; 10061} 10062_ACEOF 10063rm -f conftest.$ac_objext 10064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10065 (eval $ac_compile) 2>conftest.er1 10066 ac_status=$? 10067 grep -v '^ *+' conftest.er1 >conftest.err 10068 rm -f conftest.er1 10069 cat conftest.err >&5 10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10071 (exit $ac_status); } && 10072 { ac_try='test -z "$ac_c_werror_flag" 10073 || test ! -s conftest.err' 10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10075 (eval $ac_try) 2>&5 10076 ac_status=$? 10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10078 (exit $ac_status); }; } && 10079 { ac_try='test -s conftest.$ac_objext' 10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10081 (eval $ac_try) 2>&5 10082 ac_status=$? 10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10084 (exit $ac_status); }; }; then 10085 tcl_cv_type_64bit=${tcl_type_64bit} 10086else 10087 echo "$as_me: failed program was:" >&5 10088sed 's/^/| /' conftest.$ac_ext >&5 10089 10090fi 10091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10092fi 10093 10094 if test "${tcl_cv_type_64bit}" = none ; then 10095 10096cat >>confdefs.h <<\_ACEOF 10097#define TCL_WIDE_INT_IS_LONG 1 10098_ACEOF 10099 10100 echo "$as_me:$LINENO: result: using long" >&5 10101echo "${ECHO_T}using long" >&6 10102 elif test "${tcl_cv_type_64bit}" = "__int64" \ 10103 -a "${TEA_PLATFORM}" = "windows" ; then 10104 # TEA specific: We actually want to use the default tcl.h checks in 10105 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 10106 echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 10107echo "${ECHO_T}using Tcl header defaults" >&6 10108 else 10109 10110cat >>confdefs.h <<_ACEOF 10111#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 10112_ACEOF 10113 10114 echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 10115echo "${ECHO_T}${tcl_cv_type_64bit}" >&6 10116 10117 # Now check for auxiliary declarations 10118 echo "$as_me:$LINENO: checking for struct dirent64" >&5 10119echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6 10120if test "${tcl_cv_struct_dirent64+set}" = set; then 10121 echo $ECHO_N "(cached) $ECHO_C" >&6 10122else 10123 10124 cat >conftest.$ac_ext <<_ACEOF 10125/* confdefs.h. */ 10126_ACEOF 10127cat confdefs.h >>conftest.$ac_ext 10128cat >>conftest.$ac_ext <<_ACEOF 10129/* end confdefs.h. */ 10130#include <sys/types.h> 10131#include <sys/dirent.h> 10132int 10133main () 10134{ 10135struct dirent64 p; 10136 ; 10137 return 0; 10138} 10139_ACEOF 10140rm -f conftest.$ac_objext 10141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10142 (eval $ac_compile) 2>conftest.er1 10143 ac_status=$? 10144 grep -v '^ *+' conftest.er1 >conftest.err 10145 rm -f conftest.er1 10146 cat conftest.err >&5 10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10148 (exit $ac_status); } && 10149 { ac_try='test -z "$ac_c_werror_flag" 10150 || test ! -s conftest.err' 10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10152 (eval $ac_try) 2>&5 10153 ac_status=$? 10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10155 (exit $ac_status); }; } && 10156 { ac_try='test -s conftest.$ac_objext' 10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10158 (eval $ac_try) 2>&5 10159 ac_status=$? 10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10161 (exit $ac_status); }; }; then 10162 tcl_cv_struct_dirent64=yes 10163else 10164 echo "$as_me: failed program was:" >&5 10165sed 's/^/| /' conftest.$ac_ext >&5 10166 10167tcl_cv_struct_dirent64=no 10168fi 10169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10170fi 10171echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10172echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6 10173 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10174 10175cat >>confdefs.h <<\_ACEOF 10176#define HAVE_STRUCT_DIRENT64 1 10177_ACEOF 10178 10179 fi 10180 10181 echo "$as_me:$LINENO: checking for struct stat64" >&5 10182echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6 10183if test "${tcl_cv_struct_stat64+set}" = set; then 10184 echo $ECHO_N "(cached) $ECHO_C" >&6 10185else 10186 10187 cat >conftest.$ac_ext <<_ACEOF 10188/* confdefs.h. */ 10189_ACEOF 10190cat confdefs.h >>conftest.$ac_ext 10191cat >>conftest.$ac_ext <<_ACEOF 10192/* end confdefs.h. */ 10193#include <sys/stat.h> 10194int 10195main () 10196{ 10197struct stat64 p; 10198 10199 ; 10200 return 0; 10201} 10202_ACEOF 10203rm -f conftest.$ac_objext 10204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10205 (eval $ac_compile) 2>conftest.er1 10206 ac_status=$? 10207 grep -v '^ *+' conftest.er1 >conftest.err 10208 rm -f conftest.er1 10209 cat conftest.err >&5 10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10211 (exit $ac_status); } && 10212 { ac_try='test -z "$ac_c_werror_flag" 10213 || test ! -s conftest.err' 10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10215 (eval $ac_try) 2>&5 10216 ac_status=$? 10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10218 (exit $ac_status); }; } && 10219 { ac_try='test -s conftest.$ac_objext' 10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10221 (eval $ac_try) 2>&5 10222 ac_status=$? 10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10224 (exit $ac_status); }; }; then 10225 tcl_cv_struct_stat64=yes 10226else 10227 echo "$as_me: failed program was:" >&5 10228sed 's/^/| /' conftest.$ac_ext >&5 10229 10230tcl_cv_struct_stat64=no 10231fi 10232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10233fi 10234echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10235echo "${ECHO_T}$tcl_cv_struct_stat64" >&6 10236 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10237 10238cat >>confdefs.h <<\_ACEOF 10239#define HAVE_STRUCT_STAT64 1 10240_ACEOF 10241 10242 fi 10243 10244 10245 10246for ac_func in open64 lseek64 10247do 10248as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10249echo "$as_me:$LINENO: checking for $ac_func" >&5 10250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10251if eval "test \"\${$as_ac_var+set}\" = set"; then 10252 echo $ECHO_N "(cached) $ECHO_C" >&6 10253else 10254 cat >conftest.$ac_ext <<_ACEOF 10255/* confdefs.h. */ 10256_ACEOF 10257cat confdefs.h >>conftest.$ac_ext 10258cat >>conftest.$ac_ext <<_ACEOF 10259/* end confdefs.h. */ 10260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10261 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10262#define $ac_func innocuous_$ac_func 10263 10264/* System header to define __stub macros and hopefully few prototypes, 10265 which can conflict with char $ac_func (); below. 10266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10267 <limits.h> exists even on freestanding compilers. */ 10268 10269#ifdef __STDC__ 10270# include <limits.h> 10271#else 10272# include <assert.h> 10273#endif 10274 10275#undef $ac_func 10276 10277/* Override any gcc2 internal prototype to avoid an error. */ 10278#ifdef __cplusplus 10279extern "C" 10280{ 10281#endif 10282/* We use char because int might match the return type of a gcc2 10283 builtin and then its argument prototype would still apply. */ 10284char $ac_func (); 10285/* The GNU C library defines this for functions which it implements 10286 to always fail with ENOSYS. Some functions are actually named 10287 something starting with __ and the normal name is an alias. */ 10288#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10289choke me 10290#else 10291char (*f) () = $ac_func; 10292#endif 10293#ifdef __cplusplus 10294} 10295#endif 10296 10297int 10298main () 10299{ 10300return f != $ac_func; 10301 ; 10302 return 0; 10303} 10304_ACEOF 10305rm -f conftest.$ac_objext conftest$ac_exeext 10306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10307 (eval $ac_link) 2>conftest.er1 10308 ac_status=$? 10309 grep -v '^ *+' conftest.er1 >conftest.err 10310 rm -f conftest.er1 10311 cat conftest.err >&5 10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10313 (exit $ac_status); } && 10314 { ac_try='test -z "$ac_c_werror_flag" 10315 || test ! -s conftest.err' 10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10317 (eval $ac_try) 2>&5 10318 ac_status=$? 10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10320 (exit $ac_status); }; } && 10321 { ac_try='test -s conftest$ac_exeext' 10322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10323 (eval $ac_try) 2>&5 10324 ac_status=$? 10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10326 (exit $ac_status); }; }; then 10327 eval "$as_ac_var=yes" 10328else 10329 echo "$as_me: failed program was:" >&5 10330sed 's/^/| /' conftest.$ac_ext >&5 10331 10332eval "$as_ac_var=no" 10333fi 10334rm -f conftest.err conftest.$ac_objext \ 10335 conftest$ac_exeext conftest.$ac_ext 10336fi 10337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10338echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10339if test `eval echo '${'$as_ac_var'}'` = yes; then 10340 cat >>confdefs.h <<_ACEOF 10341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10342_ACEOF 10343 10344fi 10345done 10346 10347 echo "$as_me:$LINENO: checking for off64_t" >&5 10348echo $ECHO_N "checking for off64_t... $ECHO_C" >&6 10349 if test "${tcl_cv_type_off64_t+set}" = set; then 10350 echo $ECHO_N "(cached) $ECHO_C" >&6 10351else 10352 10353 cat >conftest.$ac_ext <<_ACEOF 10354/* confdefs.h. */ 10355_ACEOF 10356cat confdefs.h >>conftest.$ac_ext 10357cat >>conftest.$ac_ext <<_ACEOF 10358/* end confdefs.h. */ 10359#include <sys/types.h> 10360int 10361main () 10362{ 10363off64_t offset; 10364 10365 ; 10366 return 0; 10367} 10368_ACEOF 10369rm -f conftest.$ac_objext 10370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10371 (eval $ac_compile) 2>conftest.er1 10372 ac_status=$? 10373 grep -v '^ *+' conftest.er1 >conftest.err 10374 rm -f conftest.er1 10375 cat conftest.err >&5 10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10377 (exit $ac_status); } && 10378 { ac_try='test -z "$ac_c_werror_flag" 10379 || test ! -s conftest.err' 10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10381 (eval $ac_try) 2>&5 10382 ac_status=$? 10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10384 (exit $ac_status); }; } && 10385 { ac_try='test -s conftest.$ac_objext' 10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10387 (eval $ac_try) 2>&5 10388 ac_status=$? 10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10390 (exit $ac_status); }; }; then 10391 tcl_cv_type_off64_t=yes 10392else 10393 echo "$as_me: failed program was:" >&5 10394sed 's/^/| /' conftest.$ac_ext >&5 10395 10396tcl_cv_type_off64_t=no 10397fi 10398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10399fi 10400 10401 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10402 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10403 test "x${ac_cv_func_open64}" = "xyes" ; then 10404 10405cat >>confdefs.h <<\_ACEOF 10406#define HAVE_TYPE_OFF64_T 1 10407_ACEOF 10408 10409 echo "$as_me:$LINENO: result: yes" >&5 10410echo "${ECHO_T}yes" >&6 10411 else 10412 echo "$as_me:$LINENO: result: no" >&5 10413echo "${ECHO_T}no" >&6 10414 fi 10415 fi 10416 10417 10418 10419#-------------------------------------------------------------------- 10420# Set the default compiler switches based on the --enable-symbols option. 10421#-------------------------------------------------------------------- 10422 10423 10424 10425 echo "$as_me:$LINENO: checking for build with symbols" >&5 10426echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6 10427 # Check whether --enable-symbols or --disable-symbols was given. 10428if test "${enable_symbols+set}" = set; then 10429 enableval="$enable_symbols" 10430 tcl_ok=$enableval 10431else 10432 tcl_ok=no 10433fi; 10434 DBGX="" 10435 if test "$tcl_ok" = "no"; then 10436 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10437 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10438 echo "$as_me:$LINENO: result: no" >&5 10439echo "${ECHO_T}no" >&6 10440 else 10441 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10442 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10443 if test "$tcl_ok" = "yes"; then 10444 echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10445echo "${ECHO_T}yes (standard debugging)" >&6 10446 fi 10447 fi 10448 # TEA specific: 10449 if test "${TEA_PLATFORM}" != "windows" ; then 10450 LDFLAGS_DEFAULT="${LDFLAGS}" 10451 fi 10452 10453 10454 10455 10456 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10457 10458cat >>confdefs.h <<\_ACEOF 10459#define TCL_MEM_DEBUG 1 10460_ACEOF 10461 10462 fi 10463 10464 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10465 if test "$tcl_ok" = "all"; then 10466 echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10467echo "${ECHO_T}enabled symbols mem debugging" >&6 10468 else 10469 echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10470echo "${ECHO_T}enabled $tcl_ok debugging" >&6 10471 fi 10472 fi 10473 10474 10475#-------------------------------------------------------------------- 10476# Everyone should be linking against the Tcl stub library. If you 10477# can't for some reason, remove this definition. If you aren't using 10478# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10479# link against the non-stubbed Tcl library. Add Tk too if necessary. 10480#-------------------------------------------------------------------- 10481 10482 10483cat >>confdefs.h <<\_ACEOF 10484#define USE_TCL_STUBS 1 10485_ACEOF 10486 10487 10488cat >>confdefs.h <<\_ACEOF 10489#define USE_TK_STUBS 1 10490_ACEOF 10491 10492 10493#-------------------------------------------------------------------- 10494# This macro generates a line to use when building a library. It 10495# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10496# and TEA_LOAD_TCLCONFIG macros above. 10497#-------------------------------------------------------------------- 10498 10499 10500 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10501 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10502 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10503 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 10504 else 10505 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 10506 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 10507 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 10508 fi 10509 10510 if test "${SHARED_BUILD}" = "1" ; then 10511 MAKE_LIB="${MAKE_SHARED_LIB} " 10512 else 10513 MAKE_LIB="${MAKE_STATIC_LIB} " 10514 fi 10515 10516 #-------------------------------------------------------------------- 10517 # Shared libraries and static libraries have different names. 10518 # Use the double eval to make sure any variables in the suffix is 10519 # substituted. (@@@ Might not be necessary anymore) 10520 #-------------------------------------------------------------------- 10521 10522 if test "${TEA_PLATFORM}" = "windows" ; then 10523 if test "${SHARED_BUILD}" = "1" ; then 10524 # We force the unresolved linking of symbols that are really in 10525 # the private libraries of Tcl and Tk. 10526 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 10527 if test x"${TK_BIN_DIR}" != x ; then 10528 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 10529 fi 10530 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10531 else 10532 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10533 fi 10534 # Some packages build their own stubs libraries 10535 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10536 if test "$GCC" = "yes"; then 10537 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 10538 fi 10539 # These aren't needed on Windows (either MSVC or gcc) 10540 RANLIB=: 10541 RANLIB_STUB=: 10542 else 10543 RANLIB_STUB="${RANLIB}" 10544 if test "${SHARED_BUILD}" = "1" ; then 10545 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 10546 if test x"${TK_BIN_DIR}" != x ; then 10547 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 10548 fi 10549 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10550 RANLIB=: 10551 else 10552 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10553 fi 10554 # Some packages build their own stubs libraries 10555 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10556 fi 10557 10558 # These are escaped so that only CFLAGS is picked up at configure time. 10559 # The other values will be substituted at make time. 10560 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 10561 if test "${SHARED_BUILD}" = "1" ; then 10562 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 10563 fi 10564 10565 10566 10567 10568 10569 10570 10571 10572#-------------------------------------------------------------------- 10573# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 10574# file during the install process. Don't run the TCLSH_PROG through 10575# ${CYGPATH} because it's being used directly by make. 10576# Require that we use a tclsh shell version 8.2 or later since earlier 10577# versions have bugs in the pkg_mkIndex routine. 10578# Add WISH as well if this is a Tk extension. 10579#-------------------------------------------------------------------- 10580 10581 10582 echo "$as_me:$LINENO: checking for tclsh" >&5 10583echo $ECHO_N "checking for tclsh... $ECHO_C" >&6 10584 if test -f "${TCL_BIN_DIR}/Makefile" ; then 10585 # tclConfig.sh is in Tcl build directory 10586 if test "${TEA_PLATFORM}" = "windows"; then 10587 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10588 else 10589 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 10590 fi 10591 else 10592 # tclConfig.sh is in install location 10593 if test "${TEA_PLATFORM}" = "windows"; then 10594 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10595 else 10596 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 10597 fi 10598 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 10599 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 10600 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 10601 for i in $list ; do 10602 if test -f "$i/${TCLSH_PROG}" ; then 10603 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 10604 break 10605 fi 10606 done 10607 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 10608 fi 10609 echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 10610echo "${ECHO_T}${TCLSH_PROG}" >&6 10611 10612 10613 10614 echo "$as_me:$LINENO: checking for wish" >&5 10615echo $ECHO_N "checking for wish... $ECHO_C" >&6 10616 if test -f "${TK_BIN_DIR}/Makefile" ; then 10617 # tkConfig.sh is in Tk build directory 10618 if test "${TEA_PLATFORM}" = "windows"; then 10619 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 10620 else 10621 WISH_PROG="${TK_BIN_DIR}/wish" 10622 fi 10623 else 10624 # tkConfig.sh is in install location 10625 if test "${TEA_PLATFORM}" = "windows"; then 10626 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 10627 else 10628 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}" 10629 fi 10630 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \ 10631 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \ 10632 `ls -d ${TK_PREFIX}/bin 2>/dev/null`" 10633 for i in $list ; do 10634 if test -f "$i/${WISH_PROG}" ; then 10635 REAL_TK_BIN_DIR="`cd "$i"; pwd`/" 10636 break 10637 fi 10638 done 10639 WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}" 10640 fi 10641 echo "$as_me:$LINENO: result: ${WISH_PROG}" >&5 10642echo "${ECHO_T}${WISH_PROG}" >&6 10643 10644 10645 10646#-------------------------------------------------------------------- 10647# Finally, substitute all of the various values into the Makefile. 10648# You may alternatively have a special pkgIndex.tcl.in or other files 10649# which require substituting th AC variables in. Include these here. 10650#-------------------------------------------------------------------- 10651 10652 ac_config_files="$ac_config_files Makefile pkgIndex.tcl" 10653cat >confcache <<\_ACEOF 10654# This file is a shell script that caches the results of configure 10655# tests run on this system so they can be shared between configure 10656# scripts and configure runs, see configure's option --config-cache. 10657# It is not useful on other systems. If it contains results you don't 10658# want to keep, you may remove or edit it. 10659# 10660# config.status only pays attention to the cache file if you give it 10661# the --recheck option to rerun configure. 10662# 10663# `ac_cv_env_foo' variables (set or unset) will be overridden when 10664# loading this file, other *unset* `ac_cv_foo' will be assigned the 10665# following values. 10666 10667_ACEOF 10668 10669# The following way of writing the cache mishandles newlines in values, 10670# but we know of no workaround that is simple, portable, and efficient. 10671# So, don't put newlines in cache variables' values. 10672# Ultrix sh set writes to stderr and can't be redirected directly, 10673# and sets the high bit in the cache file unless we assign to the vars. 10674{ 10675 (set) 2>&1 | 10676 case `(ac_space=' '; set | grep ac_space) 2>&1` in 10677 *ac_space=\ *) 10678 # `set' does not quote correctly, so add quotes (double-quote 10679 # substitution turns \\\\ into \\, and sed turns \\ into \). 10680 sed -n \ 10681 "s/'/'\\\\''/g; 10682 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10683 ;; 10684 *) 10685 # `set' quotes correctly as required by POSIX, so do not add quotes. 10686 sed -n \ 10687 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 10688 ;; 10689 esac; 10690} | 10691 sed ' 10692 t clear 10693 : clear 10694 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10695 t end 10696 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10697 : end' >>confcache 10698if diff $cache_file confcache >/dev/null 2>&1; then :; else 10699 if test -w $cache_file; then 10700 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 10701 cat confcache >$cache_file 10702 else 10703 echo "not updating unwritable cache $cache_file" 10704 fi 10705fi 10706rm -f confcache 10707 10708test "x$prefix" = xNONE && prefix=$ac_default_prefix 10709# Let make expand exec_prefix. 10710test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10711 10712# VPATH may cause trouble with some makes, so we remove $(srcdir), 10713# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 10714# trailing colons and then remove the whole line if VPATH becomes empty 10715# (actually we leave an empty line to preserve line numbers). 10716if test "x$srcdir" = x.; then 10717 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 10718s/:*\$(srcdir):*/:/; 10719s/:*\${srcdir}:*/:/; 10720s/:*@srcdir@:*/:/; 10721s/^\([^=]*=[ ]*\):*/\1/; 10722s/:*$//; 10723s/^[^=]*=[ ]*$//; 10724}' 10725fi 10726 10727# Transform confdefs.h into DEFS. 10728# Protect against shell expansion while executing Makefile rules. 10729# Protect against Makefile macro expansion. 10730# 10731# If the first sed substitution is executed (which looks for macros that 10732# take arguments), then we branch to the quote section. Otherwise, 10733# look for a macro that doesn't take arguments. 10734cat >confdef2opt.sed <<\_ACEOF 10735t clear 10736: clear 10737s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 10738t quote 10739s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 10740t quote 10741d 10742: quote 10743s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 10744s,\[,\\&,g 10745s,\],\\&,g 10746s,\$,$$,g 10747p 10748_ACEOF 10749# We use echo to avoid assuming a particular line-breaking character. 10750# The extra dot is to prevent the shell from consuming trailing 10751# line-breaks from the sub-command output. A line-break within 10752# single-quotes doesn't work because, if this script is created in a 10753# platform that uses two characters for line-breaks (e.g., DOS), tr 10754# would break. 10755ac_LF_and_DOT=`echo; echo .` 10756DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 10757rm -f confdef2opt.sed 10758 10759 10760ac_libobjs= 10761ac_ltlibobjs= 10762for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10763 # 1. Remove the extension, and $U if already installed. 10764 ac_i=`echo "$ac_i" | 10765 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 10766 # 2. Add them. 10767 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 10768 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 10769done 10770LIBOBJS=$ac_libobjs 10771 10772LTLIBOBJS=$ac_ltlibobjs 10773 10774 10775CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 10776 10777: ${CONFIG_STATUS=./config.status} 10778ac_clean_files_save=$ac_clean_files 10779ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10780{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10781echo "$as_me: creating $CONFIG_STATUS" >&6;} 10782cat >$CONFIG_STATUS <<_ACEOF 10783#! $SHELL 10784# Generated by $as_me. 10785# Run this file to recreate the current configuration. 10786# Compiler output produced by configure, useful for debugging 10787# configure, is in config.log if it exists. 10788 10789debug=false 10790ac_cs_recheck=false 10791ac_cs_silent=false 10792SHELL=\${CONFIG_SHELL-$SHELL} 10793_ACEOF 10794 10795cat >>$CONFIG_STATUS <<\_ACEOF 10796## --------------------- ## 10797## M4sh Initialization. ## 10798## --------------------- ## 10799 10800# Be Bourne compatible 10801if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10802 emulate sh 10803 NULLCMD=: 10804 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10805 # is contrary to our usage. Disable this feature. 10806 alias -g '${1+"$@"}'='"$@"' 10807elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 10808 set -o posix 10809fi 10810DUALCASE=1; export DUALCASE # for MKS sh 10811 10812# Support unset when possible. 10813if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10814 as_unset=unset 10815else 10816 as_unset=false 10817fi 10818 10819 10820# Work around bugs in pre-3.0 UWIN ksh. 10821$as_unset ENV MAIL MAILPATH 10822PS1='$ ' 10823PS2='> ' 10824PS4='+ ' 10825 10826# NLS nuisances. 10827for as_var in \ 10828 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 10829 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 10830 LC_TELEPHONE LC_TIME 10831do 10832 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 10833 eval $as_var=C; export $as_var 10834 else 10835 $as_unset $as_var 10836 fi 10837done 10838 10839# Required to use basename. 10840if expr a : '\(a\)' >/dev/null 2>&1; then 10841 as_expr=expr 10842else 10843 as_expr=false 10844fi 10845 10846if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 10847 as_basename=basename 10848else 10849 as_basename=false 10850fi 10851 10852 10853# Name of the executable. 10854as_me=`$as_basename "$0" || 10855$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10856 X"$0" : 'X\(//\)$' \| \ 10857 X"$0" : 'X\(/\)$' \| \ 10858 . : '\(.\)' 2>/dev/null || 10859echo X/"$0" | 10860 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 10861 /^X\/\(\/\/\)$/{ s//\1/; q; } 10862 /^X\/\(\/\).*/{ s//\1/; q; } 10863 s/.*/./; q'` 10864 10865 10866# PATH needs CR, and LINENO needs CR and PATH. 10867# Avoid depending upon Character Ranges. 10868as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10869as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10870as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10871as_cr_digits='0123456789' 10872as_cr_alnum=$as_cr_Letters$as_cr_digits 10873 10874# The user is always right. 10875if test "${PATH_SEPARATOR+set}" != set; then 10876 echo "#! /bin/sh" >conf$$.sh 10877 echo "exit 0" >>conf$$.sh 10878 chmod +x conf$$.sh 10879 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10880 PATH_SEPARATOR=';' 10881 else 10882 PATH_SEPARATOR=: 10883 fi 10884 rm -f conf$$.sh 10885fi 10886 10887 10888 as_lineno_1=$LINENO 10889 as_lineno_2=$LINENO 10890 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 10891 test "x$as_lineno_1" != "x$as_lineno_2" && 10892 test "x$as_lineno_3" = "x$as_lineno_2" || { 10893 # Find who we are. Look in the path if we contain no path at all 10894 # relative or not. 10895 case $0 in 10896 *[\\/]* ) as_myself=$0 ;; 10897 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10898for as_dir in $PATH 10899do 10900 IFS=$as_save_IFS 10901 test -z "$as_dir" && as_dir=. 10902 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10903done 10904 10905 ;; 10906 esac 10907 # We did not find ourselves, most probably we were run as `sh COMMAND' 10908 # in which case we are not to be found in the path. 10909 if test "x$as_myself" = x; then 10910 as_myself=$0 10911 fi 10912 if test ! -f "$as_myself"; then 10913 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 10914echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 10915 { (exit 1); exit 1; }; } 10916 fi 10917 case $CONFIG_SHELL in 10918 '') 10919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10920for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 10921do 10922 IFS=$as_save_IFS 10923 test -z "$as_dir" && as_dir=. 10924 for as_base in sh bash ksh sh5; do 10925 case $as_dir in 10926 /*) 10927 if ("$as_dir/$as_base" -c ' 10928 as_lineno_1=$LINENO 10929 as_lineno_2=$LINENO 10930 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 10931 test "x$as_lineno_1" != "x$as_lineno_2" && 10932 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 10933 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 10934 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 10935 CONFIG_SHELL=$as_dir/$as_base 10936 export CONFIG_SHELL 10937 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 10938 fi;; 10939 esac 10940 done 10941done 10942;; 10943 esac 10944 10945 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10946 # uniformly replaced by the line number. The first 'sed' inserts a 10947 # line-number line before each line; the second 'sed' does the real 10948 # work. The second script uses 'N' to pair each line-number line 10949 # with the numbered line, and appends trailing '-' during 10950 # substitution so that $LINENO is not a special case at line end. 10951 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10952 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 10953 sed '=' <$as_myself | 10954 sed ' 10955 N 10956 s,$,-, 10957 : loop 10958 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 10959 t loop 10960 s,-$,, 10961 s,^['$as_cr_digits']*\n,, 10962 ' >$as_me.lineno && 10963 chmod +x $as_me.lineno || 10964 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 10965echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 10966 { (exit 1); exit 1; }; } 10967 10968 # Don't try to exec as it changes $[0], causing all sort of problems 10969 # (the dirname of $[0] is not the place where we might find the 10970 # original and so on. Autoconf is especially sensible to this). 10971 . ./$as_me.lineno 10972 # Exit status is that of the last command. 10973 exit 10974} 10975 10976 10977case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 10978 *c*,-n*) ECHO_N= ECHO_C=' 10979' ECHO_T=' ' ;; 10980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 10981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 10982esac 10983 10984if expr a : '\(a\)' >/dev/null 2>&1; then 10985 as_expr=expr 10986else 10987 as_expr=false 10988fi 10989 10990rm -f conf$$ conf$$.exe conf$$.file 10991echo >conf$$.file 10992if ln -s conf$$.file conf$$ 2>/dev/null; then 10993 # We could just check for DJGPP; but this test a) works b) is more generic 10994 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 10995 if test -f conf$$.exe; then 10996 # Don't use ln at all; we don't have any links 10997 as_ln_s='cp -p' 10998 else 10999 as_ln_s='ln -s' 11000 fi 11001elif ln conf$$.file conf$$ 2>/dev/null; then 11002 as_ln_s=ln 11003else 11004 as_ln_s='cp -p' 11005fi 11006rm -f conf$$ conf$$.exe conf$$.file 11007 11008if mkdir -p . 2>/dev/null; then 11009 as_mkdir_p=: 11010else 11011 test -d ./-p && rmdir ./-p 11012 as_mkdir_p=false 11013fi 11014 11015as_executable_p="test -f" 11016 11017# Sed expression to map a string onto a valid CPP name. 11018as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11019 11020# Sed expression to map a string onto a valid variable name. 11021as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11022 11023 11024# IFS 11025# We need space, tab and new line, in precisely that order. 11026as_nl=' 11027' 11028IFS=" $as_nl" 11029 11030# CDPATH. 11031$as_unset CDPATH 11032 11033exec 6>&1 11034 11035# Open the log real soon, to keep \$[0] and so on meaningful, and to 11036# report actual input values of CONFIG_FILES etc. instead of their 11037# values after options handling. Logging --version etc. is OK. 11038exec 5>>config.log 11039{ 11040 echo 11041 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11042## Running $as_me. ## 11043_ASBOX 11044} >&5 11045cat >&5 <<_CSEOF 11046 11047This file was extended by tkpng $as_me 0.9, which was 11048generated by GNU Autoconf 2.58. Invocation command line was 11049 11050 CONFIG_FILES = $CONFIG_FILES 11051 CONFIG_HEADERS = $CONFIG_HEADERS 11052 CONFIG_LINKS = $CONFIG_LINKS 11053 CONFIG_COMMANDS = $CONFIG_COMMANDS 11054 $ $0 $@ 11055 11056_CSEOF 11057echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 11058echo >&5 11059_ACEOF 11060 11061# Files that config.status was made for. 11062if test -n "$ac_config_files"; then 11063 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 11064fi 11065 11066if test -n "$ac_config_headers"; then 11067 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 11068fi 11069 11070if test -n "$ac_config_links"; then 11071 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 11072fi 11073 11074if test -n "$ac_config_commands"; then 11075 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 11076fi 11077 11078cat >>$CONFIG_STATUS <<\_ACEOF 11079 11080ac_cs_usage="\ 11081\`$as_me' instantiates files from templates according to the 11082current configuration. 11083 11084Usage: $0 [OPTIONS] [FILE]... 11085 11086 -h, --help print this help, then exit 11087 -V, --version print version number, then exit 11088 -q, --quiet do not print progress messages 11089 -d, --debug don't remove temporary files 11090 --recheck update $as_me by reconfiguring in the same conditions 11091 --file=FILE[:TEMPLATE] 11092 instantiate the configuration file FILE 11093 11094Configuration files: 11095$config_files 11096 11097Report bugs to <bug-autoconf@gnu.org>." 11098_ACEOF 11099 11100cat >>$CONFIG_STATUS <<_ACEOF 11101ac_cs_version="\\ 11102tkpng config.status 0.9 11103configured by $0, generated by GNU Autoconf 2.58, 11104 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 11105 11106Copyright (C) 2003 Free Software Foundation, Inc. 11107This config.status script is free software; the Free Software Foundation 11108gives unlimited permission to copy, distribute and modify it." 11109srcdir=$srcdir 11110INSTALL="$INSTALL" 11111_ACEOF 11112 11113cat >>$CONFIG_STATUS <<\_ACEOF 11114# If no file are specified by the user, then we need to provide default 11115# value. By we need to know if files were specified by the user. 11116ac_need_defaults=: 11117while test $# != 0 11118do 11119 case $1 in 11120 --*=*) 11121 ac_option=`expr "x$1" : 'x\([^=]*\)='` 11122 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 11123 ac_shift=: 11124 ;; 11125 -*) 11126 ac_option=$1 11127 ac_optarg=$2 11128 ac_shift=shift 11129 ;; 11130 *) # This is not an option, so the user has probably given explicit 11131 # arguments. 11132 ac_option=$1 11133 ac_need_defaults=false;; 11134 esac 11135 11136 case $ac_option in 11137 # Handling of the options. 11138_ACEOF 11139cat >>$CONFIG_STATUS <<\_ACEOF 11140 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11141 ac_cs_recheck=: ;; 11142 --version | --vers* | -V ) 11143 echo "$ac_cs_version"; exit 0 ;; 11144 --he | --h) 11145 # Conflict between --help and --header 11146 { { echo "$as_me:$LINENO: error: ambiguous option: $1 11147Try \`$0 --help' for more information." >&5 11148echo "$as_me: error: ambiguous option: $1 11149Try \`$0 --help' for more information." >&2;} 11150 { (exit 1); exit 1; }; };; 11151 --help | --hel | -h ) 11152 echo "$ac_cs_usage"; exit 0 ;; 11153 --debug | --d* | -d ) 11154 debug=: ;; 11155 --file | --fil | --fi | --f ) 11156 $ac_shift 11157 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11158 ac_need_defaults=false;; 11159 --header | --heade | --head | --hea ) 11160 $ac_shift 11161 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 11162 ac_need_defaults=false;; 11163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11164 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11165 ac_cs_silent=: ;; 11166 11167 # This is an error. 11168 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 11169Try \`$0 --help' for more information." >&5 11170echo "$as_me: error: unrecognized option: $1 11171Try \`$0 --help' for more information." >&2;} 11172 { (exit 1); exit 1; }; } ;; 11173 11174 *) ac_config_targets="$ac_config_targets $1" ;; 11175 11176 esac 11177 shift 11178done 11179 11180ac_configure_extra_args= 11181 11182if $ac_cs_silent; then 11183 exec 6>/dev/null 11184 ac_configure_extra_args="$ac_configure_extra_args --silent" 11185fi 11186 11187_ACEOF 11188cat >>$CONFIG_STATUS <<_ACEOF 11189if \$ac_cs_recheck; then 11190 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11191 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11192fi 11193 11194_ACEOF 11195 11196 11197 11198 11199 11200cat >>$CONFIG_STATUS <<\_ACEOF 11201for ac_config_target in $ac_config_targets 11202do 11203 case "$ac_config_target" in 11204 # Handling of arguments. 11205 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11206 "pkgIndex.tcl" ) CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 11207 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11208echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11209 { (exit 1); exit 1; }; };; 11210 esac 11211done 11212 11213# If the user did not use the arguments to specify the items to instantiate, 11214# then the envvar interface is used. Set only those that are not. 11215# We use the long form for the default assignment because of an extremely 11216# bizarre bug on SunOS 4.1.3. 11217if $ac_need_defaults; then 11218 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11219fi 11220 11221# Have a temporary directory for convenience. Make it in the build tree 11222# simply because there is no reason to put it here, and in addition, 11223# creating and moving files from /tmp can sometimes cause problems. 11224# Create a temporary directory, and hook for its removal unless debugging. 11225$debug || 11226{ 11227 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 11228 trap '{ (exit 1); exit 1; }' 1 2 13 15 11229} 11230 11231# Create a (secure) tmp directory for tmp files. 11232 11233{ 11234 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 11235 test -n "$tmp" && test -d "$tmp" 11236} || 11237{ 11238 tmp=./confstat$$-$RANDOM 11239 (umask 077 && mkdir $tmp) 11240} || 11241{ 11242 echo "$me: cannot create a temporary directory in ." >&2 11243 { (exit 1); exit 1; } 11244} 11245 11246_ACEOF 11247 11248cat >>$CONFIG_STATUS <<_ACEOF 11249 11250# 11251# CONFIG_FILES section. 11252# 11253 11254# No need to generate the scripts if there are no CONFIG_FILES. 11255# This happens for instance when ./config.status config.h 11256if test -n "\$CONFIG_FILES"; then 11257 # Protect against being on the right side of a sed subst in config.status. 11258 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 11259 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 11260s,@SHELL@,$SHELL,;t t 11261s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 11262s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 11263s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 11264s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 11265s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 11266s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 11267s,@exec_prefix@,$exec_prefix,;t t 11268s,@prefix@,$prefix,;t t 11269s,@program_transform_name@,$program_transform_name,;t t 11270s,@bindir@,$bindir,;t t 11271s,@sbindir@,$sbindir,;t t 11272s,@libexecdir@,$libexecdir,;t t 11273s,@datadir@,$datadir,;t t 11274s,@sysconfdir@,$sysconfdir,;t t 11275s,@sharedstatedir@,$sharedstatedir,;t t 11276s,@localstatedir@,$localstatedir,;t t 11277s,@libdir@,$libdir,;t t 11278s,@includedir@,$includedir,;t t 11279s,@oldincludedir@,$oldincludedir,;t t 11280s,@infodir@,$infodir,;t t 11281s,@mandir@,$mandir,;t t 11282s,@build_alias@,$build_alias,;t t 11283s,@host_alias@,$host_alias,;t t 11284s,@target_alias@,$target_alias,;t t 11285s,@DEFS@,$DEFS,;t t 11286s,@ECHO_C@,$ECHO_C,;t t 11287s,@ECHO_N@,$ECHO_N,;t t 11288s,@ECHO_T@,$ECHO_T,;t t 11289s,@LIBS@,$LIBS,;t t 11290s,@CYGPATH@,$CYGPATH,;t t 11291s,@EXEEXT@,$EXEEXT,;t t 11292s,@PKG_LIB_FILE@,$PKG_LIB_FILE,;t t 11293s,@PKG_STUB_LIB_FILE@,$PKG_STUB_LIB_FILE,;t t 11294s,@PKG_STUB_SOURCES@,$PKG_STUB_SOURCES,;t t 11295s,@PKG_STUB_OBJECTS@,$PKG_STUB_OBJECTS,;t t 11296s,@PKG_TCL_SOURCES@,$PKG_TCL_SOURCES,;t t 11297s,@PKG_HEADERS@,$PKG_HEADERS,;t t 11298s,@PKG_INCLUDES@,$PKG_INCLUDES,;t t 11299s,@PKG_LIBS@,$PKG_LIBS,;t t 11300s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t 11301s,@TCL_VERSION@,$TCL_VERSION,;t t 11302s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t 11303s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t 11304s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t 11305s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t 11306s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t 11307s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t 11308s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t 11309s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t 11310s,@TCL_LIBS@,$TCL_LIBS,;t t 11311s,@TCL_DEFS@,$TCL_DEFS,;t t 11312s,@TCL_EXTRA_CFLAGS@,$TCL_EXTRA_CFLAGS,;t t 11313s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t 11314s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t 11315s,@TK_VERSION@,$TK_VERSION,;t t 11316s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t 11317s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t 11318s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t 11319s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t 11320s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t 11321s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t 11322s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t 11323s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t 11324s,@TK_LIBS@,$TK_LIBS,;t t 11325s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t 11326s,@CC@,$CC,;t t 11327s,@CFLAGS@,$CFLAGS,;t t 11328s,@LDFLAGS@,$LDFLAGS,;t t 11329s,@CPPFLAGS@,$CPPFLAGS,;t t 11330s,@ac_ct_CC@,$ac_ct_CC,;t t 11331s,@OBJEXT@,$OBJEXT,;t t 11332s,@CPP@,$CPP,;t t 11333s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 11334s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 11335s,@INSTALL_DATA@,$INSTALL_DATA,;t t 11336s,@SET_MAKE@,$SET_MAKE,;t t 11337s,@RANLIB@,$RANLIB,;t t 11338s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 11339s,@EGREP@,$EGREP,;t t 11340s,@MATH_LIBS@,$MATH_LIBS,;t t 11341s,@PKG_SOURCES@,$PKG_SOURCES,;t t 11342s,@PKG_OBJECTS@,$PKG_OBJECTS,;t t 11343s,@CLEANFILES@,$CLEANFILES,;t t 11344s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t 11345s,@TK_INCLUDES@,$TK_INCLUDES,;t t 11346s,@TCL_THREADS@,$TCL_THREADS,;t t 11347s,@SHARED_BUILD@,$SHARED_BUILD,;t t 11348s,@AR@,$AR,;t t 11349s,@CELIB_DIR@,$CELIB_DIR,;t t 11350s,@LIBOBJS@,$LIBOBJS,;t t 11351s,@DL_LIBS@,$DL_LIBS,;t t 11352s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t 11353s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t 11354s,@CFLAGS_WARNING@,$CFLAGS_WARNING,;t t 11355s,@STLIB_LD@,$STLIB_LD,;t t 11356s,@SHLIB_LD@,$SHLIB_LD,;t t 11357s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t 11358s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t 11359s,@LD_LIBRARY_PATH_VAR@,$LD_LIBRARY_PATH_VAR,;t t 11360s,@CFLAGS_DEFAULT@,$CFLAGS_DEFAULT,;t t 11361s,@LDFLAGS_DEFAULT@,$LDFLAGS_DEFAULT,;t t 11362s,@TCL_DBGX@,$TCL_DBGX,;t t 11363s,@MAKE_LIB@,$MAKE_LIB,;t t 11364s,@MAKE_SHARED_LIB@,$MAKE_SHARED_LIB,;t t 11365s,@MAKE_STATIC_LIB@,$MAKE_STATIC_LIB,;t t 11366s,@MAKE_STUB_LIB@,$MAKE_STUB_LIB,;t t 11367s,@RANLIB_STUB@,$RANLIB_STUB,;t t 11368s,@TCLSH_PROG@,$TCLSH_PROG,;t t 11369s,@WISH_PROG@,$WISH_PROG,;t t 11370s,@LTLIBOBJS@,$LTLIBOBJS,;t t 11371CEOF 11372 11373_ACEOF 11374 11375 cat >>$CONFIG_STATUS <<\_ACEOF 11376 # Split the substitutions into bite-sized pieces for seds with 11377 # small command number limits, like on Digital OSF/1 and HP-UX. 11378 ac_max_sed_lines=48 11379 ac_sed_frag=1 # Number of current file. 11380 ac_beg=1 # First line for current file. 11381 ac_end=$ac_max_sed_lines # Line after last line for current file. 11382 ac_more_lines=: 11383 ac_sed_cmds= 11384 while $ac_more_lines; do 11385 if test $ac_beg -gt 1; then 11386 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 11387 else 11388 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 11389 fi 11390 if test ! -s $tmp/subs.frag; then 11391 ac_more_lines=false 11392 else 11393 # The purpose of the label and of the branching condition is to 11394 # speed up the sed processing (if there are no `@' at all, there 11395 # is no need to browse any of the substitutions). 11396 # These are the two extra sed commands mentioned above. 11397 (echo ':t 11398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 11399 if test -z "$ac_sed_cmds"; then 11400 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 11401 else 11402 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 11403 fi 11404 ac_sed_frag=`expr $ac_sed_frag + 1` 11405 ac_beg=$ac_end 11406 ac_end=`expr $ac_end + $ac_max_sed_lines` 11407 fi 11408 done 11409 if test -z "$ac_sed_cmds"; then 11410 ac_sed_cmds=cat 11411 fi 11412fi # test -n "$CONFIG_FILES" 11413 11414_ACEOF 11415cat >>$CONFIG_STATUS <<\_ACEOF 11416for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 11417 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 11418 case $ac_file in 11419 - | *:- | *:-:* ) # input from stdin 11420 cat >$tmp/stdin 11421 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11422 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11423 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11424 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11425 * ) ac_file_in=$ac_file.in ;; 11426 esac 11427 11428 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 11429 ac_dir=`(dirname "$ac_file") 2>/dev/null || 11430$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11431 X"$ac_file" : 'X\(//\)[^/]' \| \ 11432 X"$ac_file" : 'X\(//\)$' \| \ 11433 X"$ac_file" : 'X\(/\)' \| \ 11434 . : '\(.\)' 2>/dev/null || 11435echo X"$ac_file" | 11436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11437 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11438 /^X\(\/\/\)$/{ s//\1/; q; } 11439 /^X\(\/\).*/{ s//\1/; q; } 11440 s/.*/./; q'` 11441 { if $as_mkdir_p; then 11442 mkdir -p "$ac_dir" 11443 else 11444 as_dir="$ac_dir" 11445 as_dirs= 11446 while test ! -d "$as_dir"; do 11447 as_dirs="$as_dir $as_dirs" 11448 as_dir=`(dirname "$as_dir") 2>/dev/null || 11449$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11450 X"$as_dir" : 'X\(//\)[^/]' \| \ 11451 X"$as_dir" : 'X\(//\)$' \| \ 11452 X"$as_dir" : 'X\(/\)' \| \ 11453 . : '\(.\)' 2>/dev/null || 11454echo X"$as_dir" | 11455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11456 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11457 /^X\(\/\/\)$/{ s//\1/; q; } 11458 /^X\(\/\).*/{ s//\1/; q; } 11459 s/.*/./; q'` 11460 done 11461 test ! -n "$as_dirs" || mkdir $as_dirs 11462 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 11463echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 11464 { (exit 1); exit 1; }; }; } 11465 11466 ac_builddir=. 11467 11468if test "$ac_dir" != .; then 11469 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11470 # A "../" for each directory in $ac_dir_suffix. 11471 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 11472else 11473 ac_dir_suffix= ac_top_builddir= 11474fi 11475 11476case $srcdir in 11477 .) # No --srcdir option. We are building in place. 11478 ac_srcdir=. 11479 if test -z "$ac_top_builddir"; then 11480 ac_top_srcdir=. 11481 else 11482 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 11483 fi ;; 11484 [\\/]* | ?:[\\/]* ) # Absolute path. 11485 ac_srcdir=$srcdir$ac_dir_suffix; 11486 ac_top_srcdir=$srcdir ;; 11487 *) # Relative path. 11488 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 11489 ac_top_srcdir=$ac_top_builddir$srcdir ;; 11490esac 11491case "$ac_dir" in 11492.) ac_abs_builddir=$ac_builddir;; 11493*) 11494 case $ac_builddir in 11495 .) ac_abs_builddir="$ac_dir";; 11496 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; 11497 *) ac_abs_builddir="$ac_dir"/$ac_builddir;; 11498 esac;; 11499esac 11500case "$ac_dir" in 11501.) ac_abs_top_builddir=${ac_top_builddir}.;; 11502*) 11503 case ${ac_top_builddir}. in 11504 .) ac_abs_top_builddir="$ac_dir";; 11505 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 11506 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; 11507 esac;; 11508esac 11509case "$ac_dir" in 11510.) ac_abs_srcdir=$ac_srcdir;; 11511*) 11512 case $ac_srcdir in 11513 .) ac_abs_srcdir="$ac_dir";; 11514 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 11515 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; 11516 esac;; 11517esac 11518case "$ac_dir" in 11519.) ac_abs_top_srcdir=$ac_top_srcdir;; 11520*) 11521 case $ac_top_srcdir in 11522 .) ac_abs_top_srcdir="$ac_dir";; 11523 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 11524 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; 11525 esac;; 11526esac 11527 11528 11529 case $INSTALL in 11530 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11531 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 11532 esac 11533 11534 if test x"$ac_file" != x-; then 11535 { echo "$as_me:$LINENO: creating $ac_file" >&5 11536echo "$as_me: creating $ac_file" >&6;} 11537 rm -f "$ac_file" 11538 fi 11539 # Let's still pretend it is `configure' which instantiates (i.e., don't 11540 # use $as_me), people would be surprised to read: 11541 # /* config.h. Generated by config.status. */ 11542 if test x"$ac_file" = x-; then 11543 configure_input= 11544 else 11545 configure_input="$ac_file. " 11546 fi 11547 configure_input=$configure_input"Generated from `echo $ac_file_in | 11548 sed 's,.*/,,'` by configure." 11549 11550 # First look for the input files in the build tree, otherwise in the 11551 # src tree. 11552 ac_file_inputs=`IFS=: 11553 for f in $ac_file_in; do 11554 case $f in 11555 -) echo $tmp/stdin ;; 11556 [\\/$]*) 11557 # Absolute (can't be DOS-style, as IFS=:) 11558 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11559echo "$as_me: error: cannot find input file: $f" >&2;} 11560 { (exit 1); exit 1; }; } 11561 echo "$f";; 11562 *) # Relative 11563 if test -f "$f"; then 11564 # Build tree 11565 echo "$f" 11566 elif test -f "$srcdir/$f"; then 11567 # Source tree 11568 echo "$srcdir/$f" 11569 else 11570 # /dev/null tree 11571 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11572echo "$as_me: error: cannot find input file: $f" >&2;} 11573 { (exit 1); exit 1; }; } 11574 fi;; 11575 esac 11576 done` || { (exit 1); exit 1; } 11577_ACEOF 11578cat >>$CONFIG_STATUS <<_ACEOF 11579 sed "$ac_vpsub 11580$extrasub 11581_ACEOF 11582cat >>$CONFIG_STATUS <<\_ACEOF 11583:t 11584/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11585s,@configure_input@,$configure_input,;t t 11586s,@srcdir@,$ac_srcdir,;t t 11587s,@abs_srcdir@,$ac_abs_srcdir,;t t 11588s,@top_srcdir@,$ac_top_srcdir,;t t 11589s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 11590s,@builddir@,$ac_builddir,;t t 11591s,@abs_builddir@,$ac_abs_builddir,;t t 11592s,@top_builddir@,$ac_top_builddir,;t t 11593s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 11594s,@INSTALL@,$ac_INSTALL,;t t 11595" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 11596 rm -f $tmp/stdin 11597 if test x"$ac_file" != x-; then 11598 mv $tmp/out $ac_file 11599 else 11600 cat $tmp/out 11601 rm -f $tmp/out 11602 fi 11603 11604done 11605_ACEOF 11606 11607cat >>$CONFIG_STATUS <<\_ACEOF 11608 11609{ (exit 0); exit 0; } 11610_ACEOF 11611chmod +x $CONFIG_STATUS 11612ac_clean_files=$ac_clean_files_save 11613 11614 11615# configure is writing to config.log, and then calls config.status. 11616# config.status does its own redirection, appending to config.log. 11617# Unfortunately, on DOS this fails, as config.log is still kept open 11618# by configure, so config.status won't be able to write to it; its 11619# output is simply discarded. So we exec the FD to /dev/null, 11620# effectively closing config.log, so it can be properly (re)opened and 11621# appended to by config.status. When coming back to configure, we 11622# need to make the FD available again. 11623if test "$no_create" != yes; then 11624 ac_cs_success=: 11625 ac_config_status_args= 11626 test "$silent" = yes && 11627 ac_config_status_args="$ac_config_status_args --quiet" 11628 exec 5>/dev/null 11629 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11630 exec 5>>config.log 11631 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11632 # would make configure fail if this is the last instruction. 11633 $ac_cs_success || { (exit 1); exit 1; } 11634fi 11635 11636