1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for Tclresource 1.1.2. 4# 5# Report bugs to <http://sourceforge.net/projects/tclresource>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554exec 7<&0 </dev/null 6>&1 555 556# Name of the host. 557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 558# so uname gets run too. 559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 560 561# 562# Initializations. 563# 564ac_default_prefix=/usr/local 565ac_clean_files= 566ac_config_libobj_dir=. 567LIBOBJS= 568cross_compiling=no 569subdirs= 570MFLAGS= 571MAKEFLAGS= 572SHELL=${CONFIG_SHELL-/bin/sh} 573 574# Identity of this package. 575PACKAGE_NAME='Tclresource' 576PACKAGE_TARNAME='tclresource' 577PACKAGE_VERSION='1.1.2' 578PACKAGE_STRING='Tclresource 1.1.2' 579PACKAGE_BUGREPORT='http://sourceforge.net/projects/tclresource' 580 581# Factoring default headers for most tests. 582ac_includes_default="\ 583#include <stdio.h> 584#ifdef HAVE_SYS_TYPES_H 585# include <sys/types.h> 586#endif 587#ifdef HAVE_SYS_STAT_H 588# include <sys/stat.h> 589#endif 590#ifdef STDC_HEADERS 591# include <stdlib.h> 592# include <stddef.h> 593#else 594# ifdef HAVE_STDLIB_H 595# include <stdlib.h> 596# endif 597#endif 598#ifdef HAVE_STRING_H 599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 600# include <memory.h> 601# endif 602# include <string.h> 603#endif 604#ifdef HAVE_STRINGS_H 605# include <strings.h> 606#endif 607#ifdef HAVE_INTTYPES_H 608# include <inttypes.h> 609#endif 610#ifdef HAVE_STDINT_H 611# include <stdint.h> 612#endif 613#ifdef HAVE_UNISTD_H 614# include <unistd.h> 615#endif" 616 617ac_subst_vars='SHELL 618PATH_SEPARATOR 619PACKAGE_NAME 620PACKAGE_TARNAME 621PACKAGE_VERSION 622PACKAGE_STRING 623PACKAGE_BUGREPORT 624exec_prefix 625prefix 626program_transform_name 627bindir 628sbindir 629libexecdir 630datarootdir 631datadir 632sysconfdir 633sharedstatedir 634localstatedir 635includedir 636oldincludedir 637docdir 638infodir 639htmldir 640dvidir 641pdfdir 642psdir 643libdir 644localedir 645mandir 646DEFS 647ECHO_C 648ECHO_N 649ECHO_T 650LIBS 651build_alias 652host_alias 653target_alias 654CYGPATH 655EXEEXT 656PKG_LIB_FILE 657PKG_STUB_LIB_FILE 658PKG_STUB_SOURCES 659PKG_STUB_OBJECTS 660PKG_TCL_SOURCES 661PKG_HEADERS 662PKG_INCLUDES 663PKG_LIBS 664PKG_CFLAGS 665TCL_VERSION 666TCL_PATCH_LEVEL 667TCL_BIN_DIR 668TCL_SRC_DIR 669TCL_LIB_FILE 670TCL_LIB_FLAG 671TCL_LIB_SPEC 672TCL_STUB_LIB_FILE 673TCL_STUB_LIB_FLAG 674TCL_STUB_LIB_SPEC 675CLEANFILES 676TCL_LIBS 677TCL_DEFS 678TCL_EXTRA_CFLAGS 679TCL_LD_FLAGS 680TCL_SHLIB_LD_LIBS 681CC 682CFLAGS 683LDFLAGS 684CPPFLAGS 685ac_ct_CC 686OBJEXT 687CPP 688INSTALL_PROGRAM 689INSTALL_SCRIPT 690INSTALL_DATA 691SET_MAKE 692RANLIB 693GREP 694EGREP 695MATH_LIBS 696PKG_SOURCES 697PKG_OBJECTS 698TCL_INCLUDES 699TCL_TOP_DIR_NATIVE 700TCL_THREADS 701SHARED_BUILD 702AR 703CELIB_DIR 704CFLAGS_DEBUG 705CFLAGS_OPTIMIZE 706CFLAGS_WARNING 707STLIB_LD 708SHLIB_LD 709SHLIB_LD_LIBS 710SHLIB_CFLAGS 711LD_LIBRARY_PATH_VAR 712CFLAGS_DEFAULT 713LDFLAGS_DEFAULT 714TCL_DBGX 715MAKE_LIB 716MAKE_SHARED_LIB 717MAKE_STATIC_LIB 718MAKE_STUB_LIB 719RANLIB_STUB 720VC_MANIFEST_EMBED_DLL 721VC_MANIFEST_EMBED_EXE 722TCLSH_PROG 723LIBOBJS 724LTLIBOBJS' 725ac_subst_files='' 726 ac_precious_vars='build_alias 727host_alias 728target_alias 729CC 730CFLAGS 731LDFLAGS 732LIBS 733CPPFLAGS 734CPP' 735 736 737# Initialize some variables set by options. 738ac_init_help= 739ac_init_version=false 740# The variables have the same names as the options, with 741# dashes changed to underlines. 742cache_file=/dev/null 743exec_prefix=NONE 744no_create= 745no_recursion= 746prefix=NONE 747program_prefix=NONE 748program_suffix=NONE 749program_transform_name=s,x,x, 750silent= 751site= 752srcdir= 753verbose= 754x_includes=NONE 755x_libraries=NONE 756 757# Installation directory options. 758# These are left unexpanded so users can "make install exec_prefix=/foo" 759# and all the variables that are supposed to be based on exec_prefix 760# by default will actually change. 761# Use braces instead of parens because sh, perl, etc. also accept them. 762# (The list follows the same order as the GNU Coding Standards.) 763bindir='${exec_prefix}/bin' 764sbindir='${exec_prefix}/sbin' 765libexecdir='${exec_prefix}/libexec' 766datarootdir='${prefix}/share' 767datadir='${datarootdir}' 768sysconfdir='${prefix}/etc' 769sharedstatedir='${prefix}/com' 770localstatedir='${prefix}/var' 771includedir='${prefix}/include' 772oldincludedir='/usr/include' 773docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 774infodir='${datarootdir}/info' 775htmldir='${docdir}' 776dvidir='${docdir}' 777pdfdir='${docdir}' 778psdir='${docdir}' 779libdir='${exec_prefix}/lib' 780localedir='${datarootdir}/locale' 781mandir='${datarootdir}/man' 782 783ac_prev= 784ac_dashdash= 785for ac_option 786do 787 # If the previous option needs an argument, assign it. 788 if test -n "$ac_prev"; then 789 eval $ac_prev=\$ac_option 790 ac_prev= 791 continue 792 fi 793 794 case $ac_option in 795 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 796 *) ac_optarg=yes ;; 797 esac 798 799 # Accept the important Cygnus configure options, so we can diagnose typos. 800 801 case $ac_dashdash$ac_option in 802 --) 803 ac_dashdash=yes ;; 804 805 -bindir | --bindir | --bindi | --bind | --bin | --bi) 806 ac_prev=bindir ;; 807 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 808 bindir=$ac_optarg ;; 809 810 -build | --build | --buil | --bui | --bu) 811 ac_prev=build_alias ;; 812 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 813 build_alias=$ac_optarg ;; 814 815 -cache-file | --cache-file | --cache-fil | --cache-fi \ 816 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 817 ac_prev=cache_file ;; 818 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 819 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 820 cache_file=$ac_optarg ;; 821 822 --config-cache | -C) 823 cache_file=config.cache ;; 824 825 -datadir | --datadir | --datadi | --datad) 826 ac_prev=datadir ;; 827 -datadir=* | --datadir=* | --datadi=* | --datad=*) 828 datadir=$ac_optarg ;; 829 830 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 831 | --dataroo | --dataro | --datar) 832 ac_prev=datarootdir ;; 833 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 834 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 835 datarootdir=$ac_optarg ;; 836 837 -disable-* | --disable-*) 838 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 839 # Reject names that are not valid shell variable names. 840 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 842 { (exit 1); exit 1; }; } 843 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 844 eval enable_$ac_feature=no ;; 845 846 -docdir | --docdir | --docdi | --doc | --do) 847 ac_prev=docdir ;; 848 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 849 docdir=$ac_optarg ;; 850 851 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 852 ac_prev=dvidir ;; 853 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 854 dvidir=$ac_optarg ;; 855 856 -enable-* | --enable-*) 857 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 858 # Reject names that are not valid shell variable names. 859 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 860 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 861 { (exit 1); exit 1; }; } 862 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 863 eval enable_$ac_feature=\$ac_optarg ;; 864 865 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 866 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 867 | --exec | --exe | --ex) 868 ac_prev=exec_prefix ;; 869 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 870 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 871 | --exec=* | --exe=* | --ex=*) 872 exec_prefix=$ac_optarg ;; 873 874 -gas | --gas | --ga | --g) 875 # Obsolete; use --with-gas. 876 with_gas=yes ;; 877 878 -help | --help | --hel | --he | -h) 879 ac_init_help=long ;; 880 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 881 ac_init_help=recursive ;; 882 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 883 ac_init_help=short ;; 884 885 -host | --host | --hos | --ho) 886 ac_prev=host_alias ;; 887 -host=* | --host=* | --hos=* | --ho=*) 888 host_alias=$ac_optarg ;; 889 890 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 891 ac_prev=htmldir ;; 892 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 893 | --ht=*) 894 htmldir=$ac_optarg ;; 895 896 -includedir | --includedir | --includedi | --included | --include \ 897 | --includ | --inclu | --incl | --inc) 898 ac_prev=includedir ;; 899 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 900 | --includ=* | --inclu=* | --incl=* | --inc=*) 901 includedir=$ac_optarg ;; 902 903 -infodir | --infodir | --infodi | --infod | --info | --inf) 904 ac_prev=infodir ;; 905 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 906 infodir=$ac_optarg ;; 907 908 -libdir | --libdir | --libdi | --libd) 909 ac_prev=libdir ;; 910 -libdir=* | --libdir=* | --libdi=* | --libd=*) 911 libdir=$ac_optarg ;; 912 913 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 914 | --libexe | --libex | --libe) 915 ac_prev=libexecdir ;; 916 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 917 | --libexe=* | --libex=* | --libe=*) 918 libexecdir=$ac_optarg ;; 919 920 -localedir | --localedir | --localedi | --localed | --locale) 921 ac_prev=localedir ;; 922 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 923 localedir=$ac_optarg ;; 924 925 -localstatedir | --localstatedir | --localstatedi | --localstated \ 926 | --localstate | --localstat | --localsta | --localst | --locals) 927 ac_prev=localstatedir ;; 928 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 929 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 930 localstatedir=$ac_optarg ;; 931 932 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 933 ac_prev=mandir ;; 934 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 935 mandir=$ac_optarg ;; 936 937 -nfp | --nfp | --nf) 938 # Obsolete; use --without-fp. 939 with_fp=no ;; 940 941 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 942 | --no-cr | --no-c | -n) 943 no_create=yes ;; 944 945 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 946 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 947 no_recursion=yes ;; 948 949 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 950 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 951 | --oldin | --oldi | --old | --ol | --o) 952 ac_prev=oldincludedir ;; 953 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 954 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 955 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 956 oldincludedir=$ac_optarg ;; 957 958 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 959 ac_prev=prefix ;; 960 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 961 prefix=$ac_optarg ;; 962 963 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 964 | --program-pre | --program-pr | --program-p) 965 ac_prev=program_prefix ;; 966 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 967 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 968 program_prefix=$ac_optarg ;; 969 970 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 971 | --program-suf | --program-su | --program-s) 972 ac_prev=program_suffix ;; 973 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 974 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 975 program_suffix=$ac_optarg ;; 976 977 -program-transform-name | --program-transform-name \ 978 | --program-transform-nam | --program-transform-na \ 979 | --program-transform-n | --program-transform- \ 980 | --program-transform | --program-transfor \ 981 | --program-transfo | --program-transf \ 982 | --program-trans | --program-tran \ 983 | --progr-tra | --program-tr | --program-t) 984 ac_prev=program_transform_name ;; 985 -program-transform-name=* | --program-transform-name=* \ 986 | --program-transform-nam=* | --program-transform-na=* \ 987 | --program-transform-n=* | --program-transform-=* \ 988 | --program-transform=* | --program-transfor=* \ 989 | --program-transfo=* | --program-transf=* \ 990 | --program-trans=* | --program-tran=* \ 991 | --progr-tra=* | --program-tr=* | --program-t=*) 992 program_transform_name=$ac_optarg ;; 993 994 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 995 ac_prev=pdfdir ;; 996 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 997 pdfdir=$ac_optarg ;; 998 999 -psdir | --psdir | --psdi | --psd | --ps) 1000 ac_prev=psdir ;; 1001 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1002 psdir=$ac_optarg ;; 1003 1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1005 | -silent | --silent | --silen | --sile | --sil) 1006 silent=yes ;; 1007 1008 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1009 ac_prev=sbindir ;; 1010 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1011 | --sbi=* | --sb=*) 1012 sbindir=$ac_optarg ;; 1013 1014 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1015 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1016 | --sharedst | --shareds | --shared | --share | --shar \ 1017 | --sha | --sh) 1018 ac_prev=sharedstatedir ;; 1019 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1020 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1021 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1022 | --sha=* | --sh=*) 1023 sharedstatedir=$ac_optarg ;; 1024 1025 -site | --site | --sit) 1026 ac_prev=site ;; 1027 -site=* | --site=* | --sit=*) 1028 site=$ac_optarg ;; 1029 1030 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1031 ac_prev=srcdir ;; 1032 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1033 srcdir=$ac_optarg ;; 1034 1035 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1036 | --syscon | --sysco | --sysc | --sys | --sy) 1037 ac_prev=sysconfdir ;; 1038 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1039 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1040 sysconfdir=$ac_optarg ;; 1041 1042 -target | --target | --targe | --targ | --tar | --ta | --t) 1043 ac_prev=target_alias ;; 1044 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1045 target_alias=$ac_optarg ;; 1046 1047 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1048 verbose=yes ;; 1049 1050 -version | --version | --versio | --versi | --vers | -V) 1051 ac_init_version=: ;; 1052 1053 -with-* | --with-*) 1054 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1055 # Reject names that are not valid shell variable names. 1056 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1057 { echo "$as_me: error: invalid package name: $ac_package" >&2 1058 { (exit 1); exit 1; }; } 1059 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1060 eval with_$ac_package=\$ac_optarg ;; 1061 1062 -without-* | --without-*) 1063 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1064 # Reject names that are not valid shell variable names. 1065 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1066 { echo "$as_me: error: invalid package name: $ac_package" >&2 1067 { (exit 1); exit 1; }; } 1068 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1069 eval with_$ac_package=no ;; 1070 1071 --x) 1072 # Obsolete; use --with-x. 1073 with_x=yes ;; 1074 1075 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1076 | --x-incl | --x-inc | --x-in | --x-i) 1077 ac_prev=x_includes ;; 1078 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1079 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1080 x_includes=$ac_optarg ;; 1081 1082 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1083 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1084 ac_prev=x_libraries ;; 1085 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1086 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1087 x_libraries=$ac_optarg ;; 1088 1089 -*) { echo "$as_me: error: unrecognized option: $ac_option 1090Try \`$0 --help' for more information." >&2 1091 { (exit 1); exit 1; }; } 1092 ;; 1093 1094 *=*) 1095 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1096 # Reject names that are not valid shell variable names. 1097 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1098 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1099 { (exit 1); exit 1; }; } 1100 eval $ac_envvar=\$ac_optarg 1101 export $ac_envvar ;; 1102 1103 *) 1104 # FIXME: should be removed in autoconf 3.0. 1105 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1106 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1107 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1108 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1109 ;; 1110 1111 esac 1112done 1113 1114if test -n "$ac_prev"; then 1115 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1116 { echo "$as_me: error: missing argument to $ac_option" >&2 1117 { (exit 1); exit 1; }; } 1118fi 1119 1120# Be sure to have absolute directory names. 1121for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1122 datadir sysconfdir sharedstatedir localstatedir includedir \ 1123 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1124 libdir localedir mandir 1125do 1126 eval ac_val=\$$ac_var 1127 case $ac_val in 1128 [\\/$]* | ?:[\\/]* ) continue;; 1129 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1130 esac 1131 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1132 { (exit 1); exit 1; }; } 1133done 1134 1135# There might be people who depend on the old broken behavior: `$host' 1136# used to hold the argument of --host etc. 1137# FIXME: To remove some day. 1138build=$build_alias 1139host=$host_alias 1140target=$target_alias 1141 1142# FIXME: To remove some day. 1143if test "x$host_alias" != x; then 1144 if test "x$build_alias" = x; then 1145 cross_compiling=maybe 1146 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1147 If a cross compiler is detected then cross compile mode will be used." >&2 1148 elif test "x$build_alias" != "x$host_alias"; then 1149 cross_compiling=yes 1150 fi 1151fi 1152 1153ac_tool_prefix= 1154test -n "$host_alias" && ac_tool_prefix=$host_alias- 1155 1156test "$silent" = yes && exec 6>/dev/null 1157 1158 1159ac_pwd=`pwd` && test -n "$ac_pwd" && 1160ac_ls_di=`ls -di .` && 1161ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1162 { echo "$as_me: error: Working directory cannot be determined" >&2 1163 { (exit 1); exit 1; }; } 1164test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1165 { echo "$as_me: error: pwd does not report name of working directory" >&2 1166 { (exit 1); exit 1; }; } 1167 1168 1169# Find the source files, if location was not specified. 1170if test -z "$srcdir"; then 1171 ac_srcdir_defaulted=yes 1172 # Try the directory containing this script, then the parent directory. 1173 ac_confdir=`$as_dirname -- "$0" || 1174$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1175 X"$0" : 'X\(//\)[^/]' \| \ 1176 X"$0" : 'X\(//\)$' \| \ 1177 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1178echo X"$0" | 1179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1180 s//\1/ 1181 q 1182 } 1183 /^X\(\/\/\)[^/].*/{ 1184 s//\1/ 1185 q 1186 } 1187 /^X\(\/\/\)$/{ 1188 s//\1/ 1189 q 1190 } 1191 /^X\(\/\).*/{ 1192 s//\1/ 1193 q 1194 } 1195 s/.*/./; q'` 1196 srcdir=$ac_confdir 1197 if test ! -r "$srcdir/$ac_unique_file"; then 1198 srcdir=.. 1199 fi 1200else 1201 ac_srcdir_defaulted=no 1202fi 1203if test ! -r "$srcdir/$ac_unique_file"; then 1204 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1205 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1206 { (exit 1); exit 1; }; } 1207fi 1208ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1209ac_abs_confdir=`( 1210 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1211 { (exit 1); exit 1; }; } 1212 pwd)` 1213# When building in place, set srcdir=. 1214if test "$ac_abs_confdir" = "$ac_pwd"; then 1215 srcdir=. 1216fi 1217# Remove unnecessary trailing slashes from srcdir. 1218# Double slashes in file names in object file debugging info 1219# mess up M-x gdb in Emacs. 1220case $srcdir in 1221*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1222esac 1223for ac_var in $ac_precious_vars; do 1224 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1225 eval ac_env_${ac_var}_value=\$${ac_var} 1226 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1227 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1228done 1229 1230# 1231# Report the --help message. 1232# 1233if test "$ac_init_help" = "long"; then 1234 # Omit some internal or obsolete options to make the list less imposing. 1235 # This message is too long to be a string in the A/UX 3.1 sh. 1236 cat <<_ACEOF 1237\`configure' configures Tclresource 1.1.2 to adapt to many kinds of systems. 1238 1239Usage: $0 [OPTION]... [VAR=VALUE]... 1240 1241To assign environment variables (e.g., CC, CFLAGS...), specify them as 1242VAR=VALUE. See below for descriptions of some of the useful variables. 1243 1244Defaults for the options are specified in brackets. 1245 1246Configuration: 1247 -h, --help display this help and exit 1248 --help=short display options specific to this package 1249 --help=recursive display the short help of all the included packages 1250 -V, --version display version information and exit 1251 -q, --quiet, --silent do not print \`checking...' messages 1252 --cache-file=FILE cache test results in FILE [disabled] 1253 -C, --config-cache alias for \`--cache-file=config.cache' 1254 -n, --no-create do not create output files 1255 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1256 1257Installation directories: 1258 --prefix=PREFIX install architecture-independent files in PREFIX 1259 [$ac_default_prefix] 1260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1261 [PREFIX] 1262 1263By default, \`make install' will install all the files in 1264\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1265an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1266for instance \`--prefix=\$HOME'. 1267 1268For better control, use the options below. 1269 1270Fine tuning of the installation directories: 1271 --bindir=DIR user executables [EPREFIX/bin] 1272 --sbindir=DIR system admin executables [EPREFIX/sbin] 1273 --libexecdir=DIR program executables [EPREFIX/libexec] 1274 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1275 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1276 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1277 --libdir=DIR object code libraries [EPREFIX/lib] 1278 --includedir=DIR C header files [PREFIX/include] 1279 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1282 --infodir=DIR info documentation [DATAROOTDIR/info] 1283 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1284 --mandir=DIR man documentation [DATAROOTDIR/man] 1285 --docdir=DIR documentation root [DATAROOTDIR/doc/tclresource] 1286 --htmldir=DIR html documentation [DOCDIR] 1287 --dvidir=DIR dvi documentation [DOCDIR] 1288 --pdfdir=DIR pdf documentation [DOCDIR] 1289 --psdir=DIR ps documentation [DOCDIR] 1290_ACEOF 1291 1292 cat <<\_ACEOF 1293_ACEOF 1294fi 1295 1296if test -n "$ac_init_help"; then 1297 case $ac_init_help in 1298 short | recursive ) echo "Configuration of Tclresource 1.1.2:";; 1299 esac 1300 cat <<\_ACEOF 1301 1302Optional Features: 1303 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1304 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1305 --enable-threads build with threads 1306 --enable-shared build and link with shared libraries (default: on) 1307 --enable-64bit enable 64bit support (default: off) 1308 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1309 --disable-rpath disable rpath support (default: on) 1310 --enable-wince enable Win/CE support (where applicable) 1311 --enable-symbols build with debugging symbols (default: off) 1312 1313Optional Packages: 1314 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1315 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1316 --with-tcl directory containing tcl configuration 1317 (tclConfig.sh) 1318 --with-tclinclude directory containing the public Tcl header files 1319 --with-celib=DIR use Windows/CE support library from DIR 1320 1321Some influential environment variables: 1322 CC C compiler command 1323 CFLAGS C compiler flags 1324 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1325 nonstandard directory <lib dir> 1326 LIBS libraries to pass to the linker, e.g. -l<library> 1327 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1328 you have headers in a nonstandard directory <include dir> 1329 CPP C preprocessor 1330 1331Use these variables to override the choices made by `configure' or to help 1332it to find libraries and programs with nonstandard names/locations. 1333 1334Report bugs to <http://sourceforge.net/projects/tclresource>. 1335_ACEOF 1336ac_status=$? 1337fi 1338 1339if test "$ac_init_help" = "recursive"; then 1340 # If there are subdirs, report their specific --help. 1341 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1342 test -d "$ac_dir" || continue 1343 ac_builddir=. 1344 1345case "$ac_dir" in 1346.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1347*) 1348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1349 # A ".." for each directory in $ac_dir_suffix. 1350 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1351 case $ac_top_builddir_sub in 1352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1354 esac ;; 1355esac 1356ac_abs_top_builddir=$ac_pwd 1357ac_abs_builddir=$ac_pwd$ac_dir_suffix 1358# for backward compatibility: 1359ac_top_builddir=$ac_top_build_prefix 1360 1361case $srcdir in 1362 .) # We are building in place. 1363 ac_srcdir=. 1364 ac_top_srcdir=$ac_top_builddir_sub 1365 ac_abs_top_srcdir=$ac_pwd ;; 1366 [\\/]* | ?:[\\/]* ) # Absolute name. 1367 ac_srcdir=$srcdir$ac_dir_suffix; 1368 ac_top_srcdir=$srcdir 1369 ac_abs_top_srcdir=$srcdir ;; 1370 *) # Relative name. 1371 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1372 ac_top_srcdir=$ac_top_build_prefix$srcdir 1373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1374esac 1375ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1376 1377 cd "$ac_dir" || { ac_status=$?; continue; } 1378 # Check for guested configure. 1379 if test -f "$ac_srcdir/configure.gnu"; then 1380 echo && 1381 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1382 elif test -f "$ac_srcdir/configure"; then 1383 echo && 1384 $SHELL "$ac_srcdir/configure" --help=recursive 1385 else 1386 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1387 fi || ac_status=$? 1388 cd "$ac_pwd" || { ac_status=$?; break; } 1389 done 1390fi 1391 1392test -n "$ac_init_help" && exit $ac_status 1393if $ac_init_version; then 1394 cat <<\_ACEOF 1395Tclresource configure 1.1.2 1396generated by GNU Autoconf 2.61 1397 1398Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13992002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1400This configure script is free software; the Free Software Foundation 1401gives unlimited permission to copy, distribute and modify it. 1402_ACEOF 1403 exit 1404fi 1405cat >config.log <<_ACEOF 1406This file contains any messages produced by compilers while 1407running configure, to aid debugging if configure makes a mistake. 1408 1409It was created by Tclresource $as_me 1.1.2, which was 1410generated by GNU Autoconf 2.61. Invocation command line was 1411 1412 $ $0 $@ 1413 1414_ACEOF 1415exec 5>>config.log 1416{ 1417cat <<_ASUNAME 1418## --------- ## 1419## Platform. ## 1420## --------- ## 1421 1422hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1423uname -m = `(uname -m) 2>/dev/null || echo unknown` 1424uname -r = `(uname -r) 2>/dev/null || echo unknown` 1425uname -s = `(uname -s) 2>/dev/null || echo unknown` 1426uname -v = `(uname -v) 2>/dev/null || echo unknown` 1427 1428/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1429/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1430 1431/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1432/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1433/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1434/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1435/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1436/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1437/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1438 1439_ASUNAME 1440 1441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1442for as_dir in $PATH 1443do 1444 IFS=$as_save_IFS 1445 test -z "$as_dir" && as_dir=. 1446 echo "PATH: $as_dir" 1447done 1448IFS=$as_save_IFS 1449 1450} >&5 1451 1452cat >&5 <<_ACEOF 1453 1454 1455## ----------- ## 1456## Core tests. ## 1457## ----------- ## 1458 1459_ACEOF 1460 1461 1462# Keep a trace of the command line. 1463# Strip out --no-create and --no-recursion so they do not pile up. 1464# Strip out --silent because we don't want to record it for future runs. 1465# Also quote any args containing shell meta-characters. 1466# Make two passes to allow for proper duplicate-argument suppression. 1467ac_configure_args= 1468ac_configure_args0= 1469ac_configure_args1= 1470ac_must_keep_next=false 1471for ac_pass in 1 2 1472do 1473 for ac_arg 1474 do 1475 case $ac_arg in 1476 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1477 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1478 | -silent | --silent | --silen | --sile | --sil) 1479 continue ;; 1480 *\'*) 1481 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1482 esac 1483 case $ac_pass in 1484 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1485 2) 1486 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1487 if test $ac_must_keep_next = true; then 1488 ac_must_keep_next=false # Got value, back to normal. 1489 else 1490 case $ac_arg in 1491 *=* | --config-cache | -C | -disable-* | --disable-* \ 1492 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1493 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1494 | -with-* | --with-* | -without-* | --without-* | --x) 1495 case "$ac_configure_args0 " in 1496 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1497 esac 1498 ;; 1499 -* ) ac_must_keep_next=true ;; 1500 esac 1501 fi 1502 ac_configure_args="$ac_configure_args '$ac_arg'" 1503 ;; 1504 esac 1505 done 1506done 1507$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1508$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1509 1510# When interrupted or exit'd, cleanup temporary files, and complete 1511# config.log. We remove comments because anyway the quotes in there 1512# would cause problems or look ugly. 1513# WARNING: Use '\'' to represent an apostrophe within the trap. 1514# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1515trap 'exit_status=$? 1516 # Save into config.log some information that might help in debugging. 1517 { 1518 echo 1519 1520 cat <<\_ASBOX 1521## ---------------- ## 1522## Cache variables. ## 1523## ---------------- ## 1524_ASBOX 1525 echo 1526 # The following way of writing the cache mishandles newlines in values, 1527( 1528 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1529 eval ac_val=\$$ac_var 1530 case $ac_val in #( 1531 *${as_nl}*) 1532 case $ac_var in #( 1533 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1534echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1535 esac 1536 case $ac_var in #( 1537 _ | IFS | as_nl) ;; #( 1538 *) $as_unset $ac_var ;; 1539 esac ;; 1540 esac 1541 done 1542 (set) 2>&1 | 1543 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1544 *${as_nl}ac_space=\ *) 1545 sed -n \ 1546 "s/'\''/'\''\\\\'\'''\''/g; 1547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1548 ;; #( 1549 *) 1550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1551 ;; 1552 esac | 1553 sort 1554) 1555 echo 1556 1557 cat <<\_ASBOX 1558## ----------------- ## 1559## Output variables. ## 1560## ----------------- ## 1561_ASBOX 1562 echo 1563 for ac_var in $ac_subst_vars 1564 do 1565 eval ac_val=\$$ac_var 1566 case $ac_val in 1567 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1568 esac 1569 echo "$ac_var='\''$ac_val'\''" 1570 done | sort 1571 echo 1572 1573 if test -n "$ac_subst_files"; then 1574 cat <<\_ASBOX 1575## ------------------- ## 1576## File substitutions. ## 1577## ------------------- ## 1578_ASBOX 1579 echo 1580 for ac_var in $ac_subst_files 1581 do 1582 eval ac_val=\$$ac_var 1583 case $ac_val in 1584 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1585 esac 1586 echo "$ac_var='\''$ac_val'\''" 1587 done | sort 1588 echo 1589 fi 1590 1591 if test -s confdefs.h; then 1592 cat <<\_ASBOX 1593## ----------- ## 1594## confdefs.h. ## 1595## ----------- ## 1596_ASBOX 1597 echo 1598 cat confdefs.h 1599 echo 1600 fi 1601 test "$ac_signal" != 0 && 1602 echo "$as_me: caught signal $ac_signal" 1603 echo "$as_me: exit $exit_status" 1604 } >&5 1605 rm -f core *.core core.conftest.* && 1606 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1607 exit $exit_status 1608' 0 1609for ac_signal in 1 2 13 15; do 1610 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1611done 1612ac_signal=0 1613 1614# confdefs.h avoids OS command line length limits that DEFS can exceed. 1615rm -f -r conftest* confdefs.h 1616 1617# Predefined preprocessor variables. 1618 1619cat >>confdefs.h <<_ACEOF 1620#define PACKAGE_NAME "$PACKAGE_NAME" 1621_ACEOF 1622 1623 1624cat >>confdefs.h <<_ACEOF 1625#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1626_ACEOF 1627 1628 1629cat >>confdefs.h <<_ACEOF 1630#define PACKAGE_VERSION "$PACKAGE_VERSION" 1631_ACEOF 1632 1633 1634cat >>confdefs.h <<_ACEOF 1635#define PACKAGE_STRING "$PACKAGE_STRING" 1636_ACEOF 1637 1638 1639cat >>confdefs.h <<_ACEOF 1640#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1641_ACEOF 1642 1643 1644# Let the site file select an alternate cache file if it wants to. 1645# Prefer explicitly selected file to automatically selected ones. 1646if test -n "$CONFIG_SITE"; then 1647 set x "$CONFIG_SITE" 1648elif test "x$prefix" != xNONE; then 1649 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1650else 1651 set x "$ac_default_prefix/share/config.site" \ 1652 "$ac_default_prefix/etc/config.site" 1653fi 1654shift 1655for ac_site_file 1656do 1657 if test -r "$ac_site_file"; then 1658 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1659echo "$as_me: loading site script $ac_site_file" >&6;} 1660 sed 's/^/| /' "$ac_site_file" >&5 1661 . "$ac_site_file" 1662 fi 1663done 1664 1665if test -r "$cache_file"; then 1666 # Some versions of bash will fail to source /dev/null (special 1667 # files actually), so we avoid doing that. 1668 if test -f "$cache_file"; then 1669 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1670echo "$as_me: loading cache $cache_file" >&6;} 1671 case $cache_file in 1672 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1673 *) . "./$cache_file";; 1674 esac 1675 fi 1676else 1677 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1678echo "$as_me: creating cache $cache_file" >&6;} 1679 >$cache_file 1680fi 1681 1682# Check that the precious variables saved in the cache have kept the same 1683# value. 1684ac_cache_corrupted=false 1685for ac_var in $ac_precious_vars; do 1686 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1687 eval ac_new_set=\$ac_env_${ac_var}_set 1688 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1689 eval ac_new_val=\$ac_env_${ac_var}_value 1690 case $ac_old_set,$ac_new_set in 1691 set,) 1692 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1693echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1694 ac_cache_corrupted=: ;; 1695 ,set) 1696 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1697echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1698 ac_cache_corrupted=: ;; 1699 ,);; 1700 *) 1701 if test "x$ac_old_val" != "x$ac_new_val"; then 1702 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1703echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1704 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1705echo "$as_me: former value: $ac_old_val" >&2;} 1706 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1707echo "$as_me: current value: $ac_new_val" >&2;} 1708 ac_cache_corrupted=: 1709 fi;; 1710 esac 1711 # Pass precious variables to config.status. 1712 if test "$ac_new_set" = set; then 1713 case $ac_new_val in 1714 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1715 *) ac_arg=$ac_var=$ac_new_val ;; 1716 esac 1717 case " $ac_configure_args " in 1718 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1719 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1720 esac 1721 fi 1722done 1723if $ac_cache_corrupted; then 1724 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1725echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1726 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1727echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1728 { (exit 1); exit 1; }; } 1729fi 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755ac_ext=c 1756ac_cpp='$CPP $CPPFLAGS' 1757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1759ac_compiler_gnu=$ac_cv_c_compiler_gnu 1760 1761 1762 1763if test ! -d /System/Library/Frameworks/Carbon.framework; then 1764 { { echo "$as_me:$LINENO: error: Mac OS X with Carbon required!" >&5 1765echo "$as_me: error: Mac OS X with Carbon required!" >&2;} 1766 { (exit 1); exit 1; }; } 1767fi 1768 1769#-------------------------------------------------------------------- 1770# Call TEA_INIT as the first TEA_ macro to set up initial vars. 1771# This will define a ${TEA_PLATFORM} variable == "unix" or "windows" 1772# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. 1773#-------------------------------------------------------------------- 1774 1775 1776 # TEA extensions pass this us the version of TEA they think they 1777 # are compatible with. 1778 TEA_VERSION="3.9" 1779 1780 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1781echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1782 if test x"${PACKAGE_NAME}" = x ; then 1783 { { echo "$as_me:$LINENO: error: 1784The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1785echo "$as_me: error: 1786The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1787 { (exit 1); exit 1; }; } 1788 fi 1789 if test x"3.9" = x ; then 1790 { { echo "$as_me:$LINENO: error: 1791TEA version not specified." >&5 1792echo "$as_me: error: 1793TEA version not specified." >&2;} 1794 { (exit 1); exit 1; }; } 1795 elif test "3.9" != "${TEA_VERSION}" ; then 1796 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1797echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1798 else 1799 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1800echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1801 fi 1802 case "`uname -s`" in 1803 *win32*|*WIN32*|*MINGW32_*) 1804 # Extract the first word of "cygpath", so it can be a program name with args. 1805set dummy cygpath; ac_word=$2 1806{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1808if test "${ac_cv_prog_CYGPATH+set}" = set; then 1809 echo $ECHO_N "(cached) $ECHO_C" >&6 1810else 1811 if test -n "$CYGPATH"; then 1812 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1813else 1814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1815for as_dir in $PATH 1816do 1817 IFS=$as_save_IFS 1818 test -z "$as_dir" && as_dir=. 1819 for ac_exec_ext in '' $ac_executable_extensions; do 1820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1821 ac_cv_prog_CYGPATH="cygpath -w" 1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1823 break 2 1824 fi 1825done 1826done 1827IFS=$as_save_IFS 1828 1829 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1830fi 1831fi 1832CYGPATH=$ac_cv_prog_CYGPATH 1833if test -n "$CYGPATH"; then 1834 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1835echo "${ECHO_T}$CYGPATH" >&6; } 1836else 1837 { echo "$as_me:$LINENO: result: no" >&5 1838echo "${ECHO_T}no" >&6; } 1839fi 1840 1841 1842 EXEEXT=".exe" 1843 TEA_PLATFORM="windows" 1844 ;; 1845 *CYGWIN_*) 1846 CYGPATH=echo 1847 EXEEXT=".exe" 1848 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1849 ;; 1850 *) 1851 CYGPATH=echo 1852 EXEEXT="" 1853 TEA_PLATFORM="unix" 1854 ;; 1855 esac 1856 1857 # Check if exec_prefix is set. If not use fall back to prefix. 1858 # Note when adjusted, so that TEA_PREFIX can correct for this. 1859 # This is needed for recursive configures, since autoconf propagates 1860 # $prefix, but not $exec_prefix (doh!). 1861 if test x$exec_prefix = xNONE ; then 1862 exec_prefix_default=yes 1863 exec_prefix=$prefix 1864 fi 1865 1866 1867 1868 1869 # This package name must be replaced statically for AC_SUBST to work 1870 1871 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1872 1873 1874 # We AC_SUBST these here to ensure they are subst'ed, 1875 # in case the user doesn't call TEA_ADD_... 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885ac_aux_dir= 1886for ac_dir in tclconfig "$srcdir"/tclconfig; do 1887 if test -f "$ac_dir/install-sh"; then 1888 ac_aux_dir=$ac_dir 1889 ac_install_sh="$ac_aux_dir/install-sh -c" 1890 break 1891 elif test -f "$ac_dir/install.sh"; then 1892 ac_aux_dir=$ac_dir 1893 ac_install_sh="$ac_aux_dir/install.sh -c" 1894 break 1895 elif test -f "$ac_dir/shtool"; then 1896 ac_aux_dir=$ac_dir 1897 ac_install_sh="$ac_aux_dir/shtool install -c" 1898 break 1899 fi 1900done 1901if test -z "$ac_aux_dir"; then 1902 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5 1903echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;} 1904 { (exit 1); exit 1; }; } 1905fi 1906 1907# These three variables are undocumented and unsupported, 1908# and are intended to be withdrawn in a future Autoconf release. 1909# They can cause serious problems if a builder's source tree is in a directory 1910# whose full name contains unusual characters. 1911ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1912ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1913ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1914 1915 1916 1917#-------------------------------------------------------------------- 1918# Load the tclConfig.sh file 1919#-------------------------------------------------------------------- 1920 1921 1922 1923 # 1924 # Ok, lets find the tcl configuration 1925 # First, look for one uninstalled. 1926 # the alternative search directory is invoked by --with-tcl 1927 # 1928 1929 if test x"${no_tcl}" = x ; then 1930 # we reset no_tcl in case something fails here 1931 no_tcl=true 1932 1933# Check whether --with-tcl was given. 1934if test "${with_tcl+set}" = set; then 1935 withval=$with_tcl; with_tclconfig="${withval}" 1936fi 1937 1938 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1939echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1940 if test "${ac_cv_c_tclconfig+set}" = set; then 1941 echo $ECHO_N "(cached) $ECHO_C" >&6 1942else 1943 1944 1945 # First check to see if --with-tcl was specified. 1946 if test x"${with_tclconfig}" != x ; then 1947 case "${with_tclconfig}" in 1948 */tclConfig.sh ) 1949 if test -f "${with_tclconfig}"; then 1950 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1951echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1952 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1953 fi ;; 1954 esac 1955 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1956 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1957 else 1958 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1959echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1960 { (exit 1); exit 1; }; } 1961 fi 1962 fi 1963 1964 # then check for a private Tcl installation 1965 if test x"${ac_cv_c_tclconfig}" = x ; then 1966 for i in \ 1967 ../tcl \ 1968 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1969 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1970 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1971 ../../tcl \ 1972 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1973 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1974 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1975 ../../../tcl \ 1976 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1977 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1978 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1979 if test "${TEA_PLATFORM}" = "windows" \ 1980 -a -f "$i/win/tclConfig.sh" ; then 1981 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 1982 break 1983 fi 1984 if test -f "$i/unix/tclConfig.sh" ; then 1985 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1986 break 1987 fi 1988 done 1989 fi 1990 1991 # on Darwin, check in Framework installation locations 1992 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1993 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1994 `ls -d /Library/Frameworks 2>/dev/null` \ 1995 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1996 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1997 ; do 1998 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 1999 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2000 break 2001 fi 2002 done 2003 fi 2004 2005 # TEA specific: on Windows, check in common installation locations 2006 if test "${TEA_PLATFORM}" = "windows" \ 2007 -a x"${ac_cv_c_tclconfig}" = x ; then 2008 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2009 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2010 ; do 2011 if test -f "$i/tclConfig.sh" ; then 2012 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2013 break 2014 fi 2015 done 2016 fi 2017 2018 # check in a few common install locations 2019 if test x"${ac_cv_c_tclconfig}" = x ; then 2020 for i in `ls -d ${libdir} 2>/dev/null` \ 2021 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2022 `ls -d ${prefix}/lib 2>/dev/null` \ 2023 `ls -d /usr/local/lib 2>/dev/null` \ 2024 `ls -d /usr/contrib/lib 2>/dev/null` \ 2025 `ls -d /usr/lib 2>/dev/null` \ 2026 `ls -d /usr/lib64 2>/dev/null` \ 2027 ; do 2028 if test -f "$i/tclConfig.sh" ; then 2029 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2030 break 2031 fi 2032 done 2033 fi 2034 2035 # check in a few other private locations 2036 if test x"${ac_cv_c_tclconfig}" = x ; then 2037 for i in \ 2038 ${srcdir}/../tcl \ 2039 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2040 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2041 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2042 if test "${TEA_PLATFORM}" = "windows" \ 2043 -a -f "$i/win/tclConfig.sh" ; then 2044 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2045 break 2046 fi 2047 if test -f "$i/unix/tclConfig.sh" ; then 2048 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2049 break 2050 fi 2051 done 2052 fi 2053 2054fi 2055 2056 2057 if test x"${ac_cv_c_tclconfig}" = x ; then 2058 TCL_BIN_DIR="# no Tcl configs found" 2059 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2060echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2061 { (exit 1); exit 1; }; } 2062 else 2063 no_tcl= 2064 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2065 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2066echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2067 fi 2068 fi 2069 2070 2071 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2072echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2073 2074 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2075 { echo "$as_me:$LINENO: result: loading" >&5 2076echo "${ECHO_T}loading" >&6; } 2077 . "${TCL_BIN_DIR}/tclConfig.sh" 2078 else 2079 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2080echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2081 fi 2082 2083 # eval is required to do the TCL_DBGX substitution 2084 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2085 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2086 2087 # If the TCL_BIN_DIR is the build directory (not the install directory), 2088 # then set the common variable name to the value of the build variables. 2089 # For example, the variable TCL_LIB_SPEC will be set to the value 2090 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2091 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2092 # installed and uninstalled version of Tcl. 2093 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2094 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2095 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2096 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2097 elif test "`uname -s`" = "Darwin"; then 2098 # If Tcl was built as a framework, attempt to use the libraries 2099 # from the framework at the given location so that linking works 2100 # against Tcl.framework installed in an arbitrary location. 2101 case ${TCL_DEFS} in 2102 *TCL_FRAMEWORK*) 2103 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2104 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2105 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2106 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2107 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2108 break 2109 fi 2110 done 2111 fi 2112 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2113 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2114 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2115 fi 2116 ;; 2117 esac 2118 fi 2119 2120 # eval is required to do the TCL_DBGX substitution 2121 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2122 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2123 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2124 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 case "`uname -s`" in 2140 *CYGWIN_*) 2141 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2142echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2143 case ${TCL_EXTRA_CFLAGS} in 2144 *-mwin32*|*-mno-cygwin*) 2145 TEA_PLATFORM="windows" 2146 CFLAGS="$CFLAGS -mwin32" 2147 { echo "$as_me:$LINENO: result: win32" >&5 2148echo "${ECHO_T}win32" >&6; } 2149 ;; 2150 *) 2151 TEA_PLATFORM="unix" 2152 { echo "$as_me:$LINENO: result: unix" >&5 2153echo "${ECHO_T}unix" >&6; } 2154 ;; 2155 esac 2156 EXEEXT=".exe" 2157 ;; 2158 *) 2159 ;; 2160 esac 2161 2162 # Do this here as we have fully defined TEA_PLATFORM now 2163 if test "${TEA_PLATFORM}" = "windows" ; then 2164 # The BUILD_$pkg is to define the correct extern storage class 2165 # handling when making this package 2166 2167cat >>confdefs.h <<_ACEOF 2168#define BUILD_${PACKAGE_NAME} 2169_ACEOF 2170 2171 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2172 fi 2173 2174 # TEA specific: 2175 2176 2177 2178 2179 2180 2181 2182 2183#----------------------------------------------------------------------- 2184# Handle the --prefix=... option by defaulting to what Tcl gave. 2185# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2186#----------------------------------------------------------------------- 2187 2188 2189 if test "${prefix}" = "NONE"; then 2190 prefix_default=yes 2191 if test x"${TCL_PREFIX}" != x; then 2192 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2193echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2194 prefix=${TCL_PREFIX} 2195 else 2196 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2197echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2198 prefix=/usr/local 2199 fi 2200 fi 2201 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2202 -o x"${exec_prefix_default}" = x"yes" ; then 2203 if test x"${TCL_EXEC_PREFIX}" != x; then 2204 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2205echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2206 exec_prefix=${TCL_EXEC_PREFIX} 2207 else 2208 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2209echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2210 exec_prefix=$prefix 2211 fi 2212 fi 2213 2214 2215#----------------------------------------------------------------------- 2216# Standard compiler checks. 2217# This sets up CC by using the CC env var, or looks for gcc otherwise. 2218# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2219# the basic setup necessary to compile executables. 2220#----------------------------------------------------------------------- 2221 2222 2223 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2224 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2225 2226 # If the user did not set CFLAGS, set it now to keep 2227 # the AC_PROG_CC macro from adding "-g -O2". 2228 if test "${CFLAGS+set}" != "set" ; then 2229 CFLAGS="" 2230 fi 2231 2232 ac_ext=c 2233ac_cpp='$CPP $CPPFLAGS' 2234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2236ac_compiler_gnu=$ac_cv_c_compiler_gnu 2237if test -n "$ac_tool_prefix"; then 2238 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2239set dummy ${ac_tool_prefix}gcc; ac_word=$2 2240{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2242if test "${ac_cv_prog_CC+set}" = set; then 2243 echo $ECHO_N "(cached) $ECHO_C" >&6 2244else 2245 if test -n "$CC"; then 2246 ac_cv_prog_CC="$CC" # Let the user override the test. 2247else 2248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2249for as_dir in $PATH 2250do 2251 IFS=$as_save_IFS 2252 test -z "$as_dir" && as_dir=. 2253 for ac_exec_ext in '' $ac_executable_extensions; do 2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2255 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2257 break 2 2258 fi 2259done 2260done 2261IFS=$as_save_IFS 2262 2263fi 2264fi 2265CC=$ac_cv_prog_CC 2266if test -n "$CC"; then 2267 { echo "$as_me:$LINENO: result: $CC" >&5 2268echo "${ECHO_T}$CC" >&6; } 2269else 2270 { echo "$as_me:$LINENO: result: no" >&5 2271echo "${ECHO_T}no" >&6; } 2272fi 2273 2274 2275fi 2276if test -z "$ac_cv_prog_CC"; then 2277 ac_ct_CC=$CC 2278 # Extract the first word of "gcc", so it can be a program name with args. 2279set dummy gcc; ac_word=$2 2280{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2282if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2283 echo $ECHO_N "(cached) $ECHO_C" >&6 2284else 2285 if test -n "$ac_ct_CC"; then 2286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2287else 2288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2289for as_dir in $PATH 2290do 2291 IFS=$as_save_IFS 2292 test -z "$as_dir" && as_dir=. 2293 for ac_exec_ext in '' $ac_executable_extensions; do 2294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2295 ac_cv_prog_ac_ct_CC="gcc" 2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2297 break 2 2298 fi 2299done 2300done 2301IFS=$as_save_IFS 2302 2303fi 2304fi 2305ac_ct_CC=$ac_cv_prog_ac_ct_CC 2306if test -n "$ac_ct_CC"; then 2307 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2308echo "${ECHO_T}$ac_ct_CC" >&6; } 2309else 2310 { echo "$as_me:$LINENO: result: no" >&5 2311echo "${ECHO_T}no" >&6; } 2312fi 2313 2314 if test "x$ac_ct_CC" = x; then 2315 CC="" 2316 else 2317 case $cross_compiling:$ac_tool_warned in 2318yes:) 2319{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2320whose name does not start with the host triplet. If you think this 2321configuration is useful to you, please write to autoconf@gnu.org." >&5 2322echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2323whose name does not start with the host triplet. If you think this 2324configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2325ac_tool_warned=yes ;; 2326esac 2327 CC=$ac_ct_CC 2328 fi 2329else 2330 CC="$ac_cv_prog_CC" 2331fi 2332 2333if test -z "$CC"; then 2334 if test -n "$ac_tool_prefix"; then 2335 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2336set dummy ${ac_tool_prefix}cc; ac_word=$2 2337{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2339if test "${ac_cv_prog_CC+set}" = set; then 2340 echo $ECHO_N "(cached) $ECHO_C" >&6 2341else 2342 if test -n "$CC"; then 2343 ac_cv_prog_CC="$CC" # Let the user override the test. 2344else 2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2346for as_dir in $PATH 2347do 2348 IFS=$as_save_IFS 2349 test -z "$as_dir" && as_dir=. 2350 for ac_exec_ext in '' $ac_executable_extensions; do 2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2352 ac_cv_prog_CC="${ac_tool_prefix}cc" 2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2354 break 2 2355 fi 2356done 2357done 2358IFS=$as_save_IFS 2359 2360fi 2361fi 2362CC=$ac_cv_prog_CC 2363if test -n "$CC"; then 2364 { echo "$as_me:$LINENO: result: $CC" >&5 2365echo "${ECHO_T}$CC" >&6; } 2366else 2367 { echo "$as_me:$LINENO: result: no" >&5 2368echo "${ECHO_T}no" >&6; } 2369fi 2370 2371 2372 fi 2373fi 2374if test -z "$CC"; then 2375 # Extract the first word of "cc", so it can be a program name with args. 2376set dummy cc; ac_word=$2 2377{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2379if test "${ac_cv_prog_CC+set}" = set; then 2380 echo $ECHO_N "(cached) $ECHO_C" >&6 2381else 2382 if test -n "$CC"; then 2383 ac_cv_prog_CC="$CC" # Let the user override the test. 2384else 2385 ac_prog_rejected=no 2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2387for as_dir in $PATH 2388do 2389 IFS=$as_save_IFS 2390 test -z "$as_dir" && as_dir=. 2391 for ac_exec_ext in '' $ac_executable_extensions; do 2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2393 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2394 ac_prog_rejected=yes 2395 continue 2396 fi 2397 ac_cv_prog_CC="cc" 2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2399 break 2 2400 fi 2401done 2402done 2403IFS=$as_save_IFS 2404 2405if test $ac_prog_rejected = yes; then 2406 # We found a bogon in the path, so make sure we never use it. 2407 set dummy $ac_cv_prog_CC 2408 shift 2409 if test $# != 0; then 2410 # We chose a different compiler from the bogus one. 2411 # However, it has the same basename, so the bogon will be chosen 2412 # first if we set CC to just the basename; use the full file name. 2413 shift 2414 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2415 fi 2416fi 2417fi 2418fi 2419CC=$ac_cv_prog_CC 2420if test -n "$CC"; then 2421 { echo "$as_me:$LINENO: result: $CC" >&5 2422echo "${ECHO_T}$CC" >&6; } 2423else 2424 { echo "$as_me:$LINENO: result: no" >&5 2425echo "${ECHO_T}no" >&6; } 2426fi 2427 2428 2429fi 2430if test -z "$CC"; then 2431 if test -n "$ac_tool_prefix"; then 2432 for ac_prog in cl.exe 2433 do 2434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2435set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2436{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2438if test "${ac_cv_prog_CC+set}" = set; then 2439 echo $ECHO_N "(cached) $ECHO_C" >&6 2440else 2441 if test -n "$CC"; then 2442 ac_cv_prog_CC="$CC" # Let the user override the test. 2443else 2444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2445for as_dir in $PATH 2446do 2447 IFS=$as_save_IFS 2448 test -z "$as_dir" && as_dir=. 2449 for ac_exec_ext in '' $ac_executable_extensions; do 2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2453 break 2 2454 fi 2455done 2456done 2457IFS=$as_save_IFS 2458 2459fi 2460fi 2461CC=$ac_cv_prog_CC 2462if test -n "$CC"; then 2463 { echo "$as_me:$LINENO: result: $CC" >&5 2464echo "${ECHO_T}$CC" >&6; } 2465else 2466 { echo "$as_me:$LINENO: result: no" >&5 2467echo "${ECHO_T}no" >&6; } 2468fi 2469 2470 2471 test -n "$CC" && break 2472 done 2473fi 2474if test -z "$CC"; then 2475 ac_ct_CC=$CC 2476 for ac_prog in cl.exe 2477do 2478 # Extract the first word of "$ac_prog", so it can be a program name with args. 2479set dummy $ac_prog; ac_word=$2 2480{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2482if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2483 echo $ECHO_N "(cached) $ECHO_C" >&6 2484else 2485 if test -n "$ac_ct_CC"; then 2486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2487else 2488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2489for as_dir in $PATH 2490do 2491 IFS=$as_save_IFS 2492 test -z "$as_dir" && as_dir=. 2493 for ac_exec_ext in '' $ac_executable_extensions; do 2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2495 ac_cv_prog_ac_ct_CC="$ac_prog" 2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2497 break 2 2498 fi 2499done 2500done 2501IFS=$as_save_IFS 2502 2503fi 2504fi 2505ac_ct_CC=$ac_cv_prog_ac_ct_CC 2506if test -n "$ac_ct_CC"; then 2507 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2508echo "${ECHO_T}$ac_ct_CC" >&6; } 2509else 2510 { echo "$as_me:$LINENO: result: no" >&5 2511echo "${ECHO_T}no" >&6; } 2512fi 2513 2514 2515 test -n "$ac_ct_CC" && break 2516done 2517 2518 if test "x$ac_ct_CC" = x; then 2519 CC="" 2520 else 2521 case $cross_compiling:$ac_tool_warned in 2522yes:) 2523{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2524whose name does not start with the host triplet. If you think this 2525configuration is useful to you, please write to autoconf@gnu.org." >&5 2526echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2527whose name does not start with the host triplet. If you think this 2528configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2529ac_tool_warned=yes ;; 2530esac 2531 CC=$ac_ct_CC 2532 fi 2533fi 2534 2535fi 2536 2537 2538test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2539See \`config.log' for more details." >&5 2540echo "$as_me: error: no acceptable C compiler found in \$PATH 2541See \`config.log' for more details." >&2;} 2542 { (exit 1); exit 1; }; } 2543 2544# Provide some information about the compiler. 2545echo "$as_me:$LINENO: checking for C compiler version" >&5 2546ac_compiler=`set X $ac_compile; echo $2` 2547{ (ac_try="$ac_compiler --version >&5" 2548case "(($ac_try" in 2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2550 *) ac_try_echo=$ac_try;; 2551esac 2552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2553 (eval "$ac_compiler --version >&5") 2>&5 2554 ac_status=$? 2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2556 (exit $ac_status); } 2557{ (ac_try="$ac_compiler -v >&5" 2558case "(($ac_try" in 2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2560 *) ac_try_echo=$ac_try;; 2561esac 2562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2563 (eval "$ac_compiler -v >&5") 2>&5 2564 ac_status=$? 2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2566 (exit $ac_status); } 2567{ (ac_try="$ac_compiler -V >&5" 2568case "(($ac_try" in 2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2570 *) ac_try_echo=$ac_try;; 2571esac 2572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2573 (eval "$ac_compiler -V >&5") 2>&5 2574 ac_status=$? 2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2576 (exit $ac_status); } 2577 2578cat >conftest.$ac_ext <<_ACEOF 2579/* confdefs.h. */ 2580_ACEOF 2581cat confdefs.h >>conftest.$ac_ext 2582cat >>conftest.$ac_ext <<_ACEOF 2583/* end confdefs.h. */ 2584 2585int 2586main () 2587{ 2588 2589 ; 2590 return 0; 2591} 2592_ACEOF 2593ac_clean_files_save=$ac_clean_files 2594ac_clean_files="$ac_clean_files a.out a.exe b.out" 2595# Try to create an executable without -o first, disregard a.out. 2596# It will help us diagnose broken compilers, and finding out an intuition 2597# of exeext. 2598{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2599echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2600ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2601# 2602# List of possible output files, starting from the most likely. 2603# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2604# only as a last resort. b.out is created by i960 compilers. 2605ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2606# 2607# The IRIX 6 linker writes into existing files which may not be 2608# executable, retaining their permissions. Remove them first so a 2609# subsequent execution test works. 2610ac_rmfiles= 2611for ac_file in $ac_files 2612do 2613 case $ac_file in 2614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2615 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2616 esac 2617done 2618rm -f $ac_rmfiles 2619 2620if { (ac_try="$ac_link_default" 2621case "(($ac_try" in 2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2623 *) ac_try_echo=$ac_try;; 2624esac 2625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2626 (eval "$ac_link_default") 2>&5 2627 ac_status=$? 2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2629 (exit $ac_status); }; then 2630 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2631# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2632# in a Makefile. We should not override ac_cv_exeext if it was cached, 2633# so that the user can short-circuit this test for compilers unknown to 2634# Autoconf. 2635for ac_file in $ac_files '' 2636do 2637 test -f "$ac_file" || continue 2638 case $ac_file in 2639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2640 ;; 2641 [ab].out ) 2642 # We found the default executable, but exeext='' is most 2643 # certainly right. 2644 break;; 2645 *.* ) 2646 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2647 then :; else 2648 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2649 fi 2650 # We set ac_cv_exeext here because the later test for it is not 2651 # safe: cross compilers may not add the suffix if given an `-o' 2652 # argument, so we may need to know it at that point already. 2653 # Even if this section looks crufty: it has the advantage of 2654 # actually working. 2655 break;; 2656 * ) 2657 break;; 2658 esac 2659done 2660test "$ac_cv_exeext" = no && ac_cv_exeext= 2661 2662else 2663 ac_file='' 2664fi 2665 2666{ echo "$as_me:$LINENO: result: $ac_file" >&5 2667echo "${ECHO_T}$ac_file" >&6; } 2668if test -z "$ac_file"; then 2669 echo "$as_me: failed program was:" >&5 2670sed 's/^/| /' conftest.$ac_ext >&5 2671 2672{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2673See \`config.log' for more details." >&5 2674echo "$as_me: error: C compiler cannot create executables 2675See \`config.log' for more details." >&2;} 2676 { (exit 77); exit 77; }; } 2677fi 2678 2679ac_exeext=$ac_cv_exeext 2680 2681# Check that the compiler produces executables we can run. If not, either 2682# the compiler is broken, or we cross compile. 2683{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2684echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2685# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2686# If not cross compiling, check that we can run a simple program. 2687if test "$cross_compiling" != yes; then 2688 if { ac_try='./$ac_file' 2689 { (case "(($ac_try" in 2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2691 *) ac_try_echo=$ac_try;; 2692esac 2693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2694 (eval "$ac_try") 2>&5 2695 ac_status=$? 2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2697 (exit $ac_status); }; }; then 2698 cross_compiling=no 2699 else 2700 if test "$cross_compiling" = maybe; then 2701 cross_compiling=yes 2702 else 2703 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2704If you meant to cross compile, use \`--host'. 2705See \`config.log' for more details." >&5 2706echo "$as_me: error: cannot run C compiled programs. 2707If you meant to cross compile, use \`--host'. 2708See \`config.log' for more details." >&2;} 2709 { (exit 1); exit 1; }; } 2710 fi 2711 fi 2712fi 2713{ echo "$as_me:$LINENO: result: yes" >&5 2714echo "${ECHO_T}yes" >&6; } 2715 2716rm -f a.out a.exe conftest$ac_cv_exeext b.out 2717ac_clean_files=$ac_clean_files_save 2718# Check that the compiler produces executables we can run. If not, either 2719# the compiler is broken, or we cross compile. 2720{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2721echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2722{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2723echo "${ECHO_T}$cross_compiling" >&6; } 2724 2725{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2726echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2727if { (ac_try="$ac_link" 2728case "(($ac_try" in 2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2730 *) ac_try_echo=$ac_try;; 2731esac 2732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2733 (eval "$ac_link") 2>&5 2734 ac_status=$? 2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2736 (exit $ac_status); }; then 2737 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2738# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2739# work properly (i.e., refer to `conftest.exe'), while it won't with 2740# `rm'. 2741for ac_file in conftest.exe conftest conftest.*; do 2742 test -f "$ac_file" || continue 2743 case $ac_file in 2744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2745 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2746 break;; 2747 * ) break;; 2748 esac 2749done 2750else 2751 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2752See \`config.log' for more details." >&5 2753echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2754See \`config.log' for more details." >&2;} 2755 { (exit 1); exit 1; }; } 2756fi 2757 2758rm -f conftest$ac_cv_exeext 2759{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2760echo "${ECHO_T}$ac_cv_exeext" >&6; } 2761 2762rm -f conftest.$ac_ext 2763EXEEXT=$ac_cv_exeext 2764ac_exeext=$EXEEXT 2765{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2766echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2767if test "${ac_cv_objext+set}" = set; then 2768 echo $ECHO_N "(cached) $ECHO_C" >&6 2769else 2770 cat >conftest.$ac_ext <<_ACEOF 2771/* confdefs.h. */ 2772_ACEOF 2773cat confdefs.h >>conftest.$ac_ext 2774cat >>conftest.$ac_ext <<_ACEOF 2775/* end confdefs.h. */ 2776 2777int 2778main () 2779{ 2780 2781 ; 2782 return 0; 2783} 2784_ACEOF 2785rm -f conftest.o conftest.obj 2786if { (ac_try="$ac_compile" 2787case "(($ac_try" in 2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2789 *) ac_try_echo=$ac_try;; 2790esac 2791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2792 (eval "$ac_compile") 2>&5 2793 ac_status=$? 2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2795 (exit $ac_status); }; then 2796 for ac_file in conftest.o conftest.obj conftest.*; do 2797 test -f "$ac_file" || continue; 2798 case $ac_file in 2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2800 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2801 break;; 2802 esac 2803done 2804else 2805 echo "$as_me: failed program was:" >&5 2806sed 's/^/| /' conftest.$ac_ext >&5 2807 2808{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2809See \`config.log' for more details." >&5 2810echo "$as_me: error: cannot compute suffix of object files: cannot compile 2811See \`config.log' for more details." >&2;} 2812 { (exit 1); exit 1; }; } 2813fi 2814 2815rm -f conftest.$ac_cv_objext conftest.$ac_ext 2816fi 2817{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2818echo "${ECHO_T}$ac_cv_objext" >&6; } 2819OBJEXT=$ac_cv_objext 2820ac_objext=$OBJEXT 2821{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2822echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2823if test "${ac_cv_c_compiler_gnu+set}" = set; then 2824 echo $ECHO_N "(cached) $ECHO_C" >&6 2825else 2826 cat >conftest.$ac_ext <<_ACEOF 2827/* confdefs.h. */ 2828_ACEOF 2829cat confdefs.h >>conftest.$ac_ext 2830cat >>conftest.$ac_ext <<_ACEOF 2831/* end confdefs.h. */ 2832 2833int 2834main () 2835{ 2836#ifndef __GNUC__ 2837 choke me 2838#endif 2839 2840 ; 2841 return 0; 2842} 2843_ACEOF 2844rm -f conftest.$ac_objext 2845if { (ac_try="$ac_compile" 2846case "(($ac_try" in 2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2848 *) ac_try_echo=$ac_try;; 2849esac 2850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2851 (eval "$ac_compile") 2>conftest.er1 2852 ac_status=$? 2853 grep -v '^ *+' conftest.er1 >conftest.err 2854 rm -f conftest.er1 2855 cat conftest.err >&5 2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2857 (exit $ac_status); } && { 2858 test -z "$ac_c_werror_flag" || 2859 test ! -s conftest.err 2860 } && test -s conftest.$ac_objext; then 2861 ac_compiler_gnu=yes 2862else 2863 echo "$as_me: failed program was:" >&5 2864sed 's/^/| /' conftest.$ac_ext >&5 2865 2866 ac_compiler_gnu=no 2867fi 2868 2869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2870ac_cv_c_compiler_gnu=$ac_compiler_gnu 2871 2872fi 2873{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2874echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2875GCC=`test $ac_compiler_gnu = yes && echo yes` 2876ac_test_CFLAGS=${CFLAGS+set} 2877ac_save_CFLAGS=$CFLAGS 2878{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2879echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2880if test "${ac_cv_prog_cc_g+set}" = set; then 2881 echo $ECHO_N "(cached) $ECHO_C" >&6 2882else 2883 ac_save_c_werror_flag=$ac_c_werror_flag 2884 ac_c_werror_flag=yes 2885 ac_cv_prog_cc_g=no 2886 CFLAGS="-g" 2887 cat >conftest.$ac_ext <<_ACEOF 2888/* confdefs.h. */ 2889_ACEOF 2890cat confdefs.h >>conftest.$ac_ext 2891cat >>conftest.$ac_ext <<_ACEOF 2892/* end confdefs.h. */ 2893 2894int 2895main () 2896{ 2897 2898 ; 2899 return 0; 2900} 2901_ACEOF 2902rm -f conftest.$ac_objext 2903if { (ac_try="$ac_compile" 2904case "(($ac_try" in 2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2906 *) ac_try_echo=$ac_try;; 2907esac 2908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2909 (eval "$ac_compile") 2>conftest.er1 2910 ac_status=$? 2911 grep -v '^ *+' conftest.er1 >conftest.err 2912 rm -f conftest.er1 2913 cat conftest.err >&5 2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2915 (exit $ac_status); } && { 2916 test -z "$ac_c_werror_flag" || 2917 test ! -s conftest.err 2918 } && test -s conftest.$ac_objext; then 2919 ac_cv_prog_cc_g=yes 2920else 2921 echo "$as_me: failed program was:" >&5 2922sed 's/^/| /' conftest.$ac_ext >&5 2923 2924 CFLAGS="" 2925 cat >conftest.$ac_ext <<_ACEOF 2926/* confdefs.h. */ 2927_ACEOF 2928cat confdefs.h >>conftest.$ac_ext 2929cat >>conftest.$ac_ext <<_ACEOF 2930/* end confdefs.h. */ 2931 2932int 2933main () 2934{ 2935 2936 ; 2937 return 0; 2938} 2939_ACEOF 2940rm -f conftest.$ac_objext 2941if { (ac_try="$ac_compile" 2942case "(($ac_try" in 2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2944 *) ac_try_echo=$ac_try;; 2945esac 2946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2947 (eval "$ac_compile") 2>conftest.er1 2948 ac_status=$? 2949 grep -v '^ *+' conftest.er1 >conftest.err 2950 rm -f conftest.er1 2951 cat conftest.err >&5 2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2953 (exit $ac_status); } && { 2954 test -z "$ac_c_werror_flag" || 2955 test ! -s conftest.err 2956 } && test -s conftest.$ac_objext; then 2957 : 2958else 2959 echo "$as_me: failed program was:" >&5 2960sed 's/^/| /' conftest.$ac_ext >&5 2961 2962 ac_c_werror_flag=$ac_save_c_werror_flag 2963 CFLAGS="-g" 2964 cat >conftest.$ac_ext <<_ACEOF 2965/* confdefs.h. */ 2966_ACEOF 2967cat confdefs.h >>conftest.$ac_ext 2968cat >>conftest.$ac_ext <<_ACEOF 2969/* end confdefs.h. */ 2970 2971int 2972main () 2973{ 2974 2975 ; 2976 return 0; 2977} 2978_ACEOF 2979rm -f conftest.$ac_objext 2980if { (ac_try="$ac_compile" 2981case "(($ac_try" in 2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2983 *) ac_try_echo=$ac_try;; 2984esac 2985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2986 (eval "$ac_compile") 2>conftest.er1 2987 ac_status=$? 2988 grep -v '^ *+' conftest.er1 >conftest.err 2989 rm -f conftest.er1 2990 cat conftest.err >&5 2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2992 (exit $ac_status); } && { 2993 test -z "$ac_c_werror_flag" || 2994 test ! -s conftest.err 2995 } && test -s conftest.$ac_objext; then 2996 ac_cv_prog_cc_g=yes 2997else 2998 echo "$as_me: failed program was:" >&5 2999sed 's/^/| /' conftest.$ac_ext >&5 3000 3001 3002fi 3003 3004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3005fi 3006 3007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3008fi 3009 3010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3011 ac_c_werror_flag=$ac_save_c_werror_flag 3012fi 3013{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3014echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3015if test "$ac_test_CFLAGS" = set; then 3016 CFLAGS=$ac_save_CFLAGS 3017elif test $ac_cv_prog_cc_g = yes; then 3018 if test "$GCC" = yes; then 3019 CFLAGS="-g -O2" 3020 else 3021 CFLAGS="-g" 3022 fi 3023else 3024 if test "$GCC" = yes; then 3025 CFLAGS="-O2" 3026 else 3027 CFLAGS= 3028 fi 3029fi 3030{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3031echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3032if test "${ac_cv_prog_cc_c89+set}" = set; then 3033 echo $ECHO_N "(cached) $ECHO_C" >&6 3034else 3035 ac_cv_prog_cc_c89=no 3036ac_save_CC=$CC 3037cat >conftest.$ac_ext <<_ACEOF 3038/* confdefs.h. */ 3039_ACEOF 3040cat confdefs.h >>conftest.$ac_ext 3041cat >>conftest.$ac_ext <<_ACEOF 3042/* end confdefs.h. */ 3043#include <stdarg.h> 3044#include <stdio.h> 3045#include <sys/types.h> 3046#include <sys/stat.h> 3047/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3048struct buf { int x; }; 3049FILE * (*rcsopen) (struct buf *, struct stat *, int); 3050static char *e (p, i) 3051 char **p; 3052 int i; 3053{ 3054 return p[i]; 3055} 3056static char *f (char * (*g) (char **, int), char **p, ...) 3057{ 3058 char *s; 3059 va_list v; 3060 va_start (v,p); 3061 s = g (p, va_arg (v,int)); 3062 va_end (v); 3063 return s; 3064} 3065 3066/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3067 function prototypes and stuff, but not '\xHH' hex character constants. 3068 These don't provoke an error unfortunately, instead are silently treated 3069 as 'x'. The following induces an error, until -std is added to get 3070 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3071 array size at least. It's necessary to write '\x00'==0 to get something 3072 that's true only with -std. */ 3073int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3074 3075/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3076 inside strings and character constants. */ 3077#define FOO(x) 'x' 3078int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3079 3080int test (int i, double x); 3081struct s1 {int (*f) (int a);}; 3082struct s2 {int (*f) (double a);}; 3083int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3084int argc; 3085char **argv; 3086int 3087main () 3088{ 3089return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3090 ; 3091 return 0; 3092} 3093_ACEOF 3094for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3095 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3096do 3097 CC="$ac_save_CC $ac_arg" 3098 rm -f conftest.$ac_objext 3099if { (ac_try="$ac_compile" 3100case "(($ac_try" in 3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3102 *) ac_try_echo=$ac_try;; 3103esac 3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3105 (eval "$ac_compile") 2>conftest.er1 3106 ac_status=$? 3107 grep -v '^ *+' conftest.er1 >conftest.err 3108 rm -f conftest.er1 3109 cat conftest.err >&5 3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3111 (exit $ac_status); } && { 3112 test -z "$ac_c_werror_flag" || 3113 test ! -s conftest.err 3114 } && test -s conftest.$ac_objext; then 3115 ac_cv_prog_cc_c89=$ac_arg 3116else 3117 echo "$as_me: failed program was:" >&5 3118sed 's/^/| /' conftest.$ac_ext >&5 3119 3120 3121fi 3122 3123rm -f core conftest.err conftest.$ac_objext 3124 test "x$ac_cv_prog_cc_c89" != "xno" && break 3125done 3126rm -f conftest.$ac_ext 3127CC=$ac_save_CC 3128 3129fi 3130# AC_CACHE_VAL 3131case "x$ac_cv_prog_cc_c89" in 3132 x) 3133 { echo "$as_me:$LINENO: result: none needed" >&5 3134echo "${ECHO_T}none needed" >&6; } ;; 3135 xno) 3136 { echo "$as_me:$LINENO: result: unsupported" >&5 3137echo "${ECHO_T}unsupported" >&6; } ;; 3138 *) 3139 CC="$CC $ac_cv_prog_cc_c89" 3140 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3141echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3142esac 3143 3144 3145ac_ext=c 3146ac_cpp='$CPP $CPPFLAGS' 3147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3149ac_compiler_gnu=$ac_cv_c_compiler_gnu 3150 3151 ac_ext=c 3152ac_cpp='$CPP $CPPFLAGS' 3153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3155ac_compiler_gnu=$ac_cv_c_compiler_gnu 3156{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3157echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3158# On Suns, sometimes $CPP names a directory. 3159if test -n "$CPP" && test -d "$CPP"; then 3160 CPP= 3161fi 3162if test -z "$CPP"; then 3163 if test "${ac_cv_prog_CPP+set}" = set; then 3164 echo $ECHO_N "(cached) $ECHO_C" >&6 3165else 3166 # Double quotes because CPP needs to be expanded 3167 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3168 do 3169 ac_preproc_ok=false 3170for ac_c_preproc_warn_flag in '' yes 3171do 3172 # Use a header file that comes with gcc, so configuring glibc 3173 # with a fresh cross-compiler works. 3174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3175 # <limits.h> exists even on freestanding compilers. 3176 # On the NeXT, cc -E runs the code through the compiler's parser, 3177 # not just through cpp. "Syntax error" is here to catch this case. 3178 cat >conftest.$ac_ext <<_ACEOF 3179/* confdefs.h. */ 3180_ACEOF 3181cat confdefs.h >>conftest.$ac_ext 3182cat >>conftest.$ac_ext <<_ACEOF 3183/* end confdefs.h. */ 3184#ifdef __STDC__ 3185# include <limits.h> 3186#else 3187# include <assert.h> 3188#endif 3189 Syntax error 3190_ACEOF 3191if { (ac_try="$ac_cpp conftest.$ac_ext" 3192case "(($ac_try" in 3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3194 *) ac_try_echo=$ac_try;; 3195esac 3196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3198 ac_status=$? 3199 grep -v '^ *+' conftest.er1 >conftest.err 3200 rm -f conftest.er1 3201 cat conftest.err >&5 3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3203 (exit $ac_status); } >/dev/null && { 3204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3205 test ! -s conftest.err 3206 }; then 3207 : 3208else 3209 echo "$as_me: failed program was:" >&5 3210sed 's/^/| /' conftest.$ac_ext >&5 3211 3212 # Broken: fails on valid input. 3213continue 3214fi 3215 3216rm -f conftest.err conftest.$ac_ext 3217 3218 # OK, works on sane cases. Now check whether nonexistent headers 3219 # can be detected and how. 3220 cat >conftest.$ac_ext <<_ACEOF 3221/* confdefs.h. */ 3222_ACEOF 3223cat confdefs.h >>conftest.$ac_ext 3224cat >>conftest.$ac_ext <<_ACEOF 3225/* end confdefs.h. */ 3226#include <ac_nonexistent.h> 3227_ACEOF 3228if { (ac_try="$ac_cpp conftest.$ac_ext" 3229case "(($ac_try" in 3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3231 *) ac_try_echo=$ac_try;; 3232esac 3233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3235 ac_status=$? 3236 grep -v '^ *+' conftest.er1 >conftest.err 3237 rm -f conftest.er1 3238 cat conftest.err >&5 3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3240 (exit $ac_status); } >/dev/null && { 3241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3242 test ! -s conftest.err 3243 }; then 3244 # Broken: success on invalid input. 3245continue 3246else 3247 echo "$as_me: failed program was:" >&5 3248sed 's/^/| /' conftest.$ac_ext >&5 3249 3250 # Passes both tests. 3251ac_preproc_ok=: 3252break 3253fi 3254 3255rm -f conftest.err conftest.$ac_ext 3256 3257done 3258# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3259rm -f conftest.err conftest.$ac_ext 3260if $ac_preproc_ok; then 3261 break 3262fi 3263 3264 done 3265 ac_cv_prog_CPP=$CPP 3266 3267fi 3268 CPP=$ac_cv_prog_CPP 3269else 3270 ac_cv_prog_CPP=$CPP 3271fi 3272{ echo "$as_me:$LINENO: result: $CPP" >&5 3273echo "${ECHO_T}$CPP" >&6; } 3274ac_preproc_ok=false 3275for ac_c_preproc_warn_flag in '' yes 3276do 3277 # Use a header file that comes with gcc, so configuring glibc 3278 # with a fresh cross-compiler works. 3279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3280 # <limits.h> exists even on freestanding compilers. 3281 # On the NeXT, cc -E runs the code through the compiler's parser, 3282 # not just through cpp. "Syntax error" is here to catch this case. 3283 cat >conftest.$ac_ext <<_ACEOF 3284/* confdefs.h. */ 3285_ACEOF 3286cat confdefs.h >>conftest.$ac_ext 3287cat >>conftest.$ac_ext <<_ACEOF 3288/* end confdefs.h. */ 3289#ifdef __STDC__ 3290# include <limits.h> 3291#else 3292# include <assert.h> 3293#endif 3294 Syntax error 3295_ACEOF 3296if { (ac_try="$ac_cpp conftest.$ac_ext" 3297case "(($ac_try" in 3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3299 *) ac_try_echo=$ac_try;; 3300esac 3301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3303 ac_status=$? 3304 grep -v '^ *+' conftest.er1 >conftest.err 3305 rm -f conftest.er1 3306 cat conftest.err >&5 3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3308 (exit $ac_status); } >/dev/null && { 3309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3310 test ! -s conftest.err 3311 }; then 3312 : 3313else 3314 echo "$as_me: failed program was:" >&5 3315sed 's/^/| /' conftest.$ac_ext >&5 3316 3317 # Broken: fails on valid input. 3318continue 3319fi 3320 3321rm -f conftest.err conftest.$ac_ext 3322 3323 # OK, works on sane cases. Now check whether nonexistent headers 3324 # can be detected and how. 3325 cat >conftest.$ac_ext <<_ACEOF 3326/* confdefs.h. */ 3327_ACEOF 3328cat confdefs.h >>conftest.$ac_ext 3329cat >>conftest.$ac_ext <<_ACEOF 3330/* end confdefs.h. */ 3331#include <ac_nonexistent.h> 3332_ACEOF 3333if { (ac_try="$ac_cpp conftest.$ac_ext" 3334case "(($ac_try" in 3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3336 *) ac_try_echo=$ac_try;; 3337esac 3338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3340 ac_status=$? 3341 grep -v '^ *+' conftest.er1 >conftest.err 3342 rm -f conftest.er1 3343 cat conftest.err >&5 3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3345 (exit $ac_status); } >/dev/null && { 3346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3347 test ! -s conftest.err 3348 }; then 3349 # Broken: success on invalid input. 3350continue 3351else 3352 echo "$as_me: failed program was:" >&5 3353sed 's/^/| /' conftest.$ac_ext >&5 3354 3355 # Passes both tests. 3356ac_preproc_ok=: 3357break 3358fi 3359 3360rm -f conftest.err conftest.$ac_ext 3361 3362done 3363# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3364rm -f conftest.err conftest.$ac_ext 3365if $ac_preproc_ok; then 3366 : 3367else 3368 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3369See \`config.log' for more details." >&5 3370echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3371See \`config.log' for more details." >&2;} 3372 { (exit 1); exit 1; }; } 3373fi 3374 3375ac_ext=c 3376ac_cpp='$CPP $CPPFLAGS' 3377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3379ac_compiler_gnu=$ac_cv_c_compiler_gnu 3380 3381 3382 # Find a good install program. We prefer a C program (faster), 3383# so one script is as good as another. But avoid the broken or 3384# incompatible versions: 3385# SysV /etc/install, /usr/sbin/install 3386# SunOS /usr/etc/install 3387# IRIX /sbin/install 3388# AIX /bin/install 3389# AmigaOS /C/install, which installs bootblocks on floppy discs 3390# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3391# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3392# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3393# OS/2's system install, which has a completely different semantic 3394# ./install, which can be erroneously created by make from ./install.sh. 3395{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3396echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3397if test -z "$INSTALL"; then 3398if test "${ac_cv_path_install+set}" = set; then 3399 echo $ECHO_N "(cached) $ECHO_C" >&6 3400else 3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3402for as_dir in $PATH 3403do 3404 IFS=$as_save_IFS 3405 test -z "$as_dir" && as_dir=. 3406 # Account for people who put trailing slashes in PATH elements. 3407case $as_dir/ in 3408 ./ | .// | /cC/* | \ 3409 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3410 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3411 /usr/ucb/* ) ;; 3412 *) 3413 # OSF1 and SCO ODT 3.0 have their own names for install. 3414 # Don't use installbsd from OSF since it installs stuff as root 3415 # by default. 3416 for ac_prog in ginstall scoinst install; do 3417 for ac_exec_ext in '' $ac_executable_extensions; do 3418 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3419 if test $ac_prog = install && 3420 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3421 # AIX install. It has an incompatible calling convention. 3422 : 3423 elif test $ac_prog = install && 3424 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3425 # program-specific install script used by HP pwplus--don't use. 3426 : 3427 else 3428 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3429 break 3 3430 fi 3431 fi 3432 done 3433 done 3434 ;; 3435esac 3436done 3437IFS=$as_save_IFS 3438 3439 3440fi 3441 if test "${ac_cv_path_install+set}" = set; then 3442 INSTALL=$ac_cv_path_install 3443 else 3444 # As a last resort, use the slow shell script. Don't cache a 3445 # value for INSTALL within a source directory, because that will 3446 # break other packages using the cache if that directory is 3447 # removed, or if the value is a relative name. 3448 INSTALL=$ac_install_sh 3449 fi 3450fi 3451{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3452echo "${ECHO_T}$INSTALL" >&6; } 3453 3454# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3455# It thinks the first close brace ends the variable substitution. 3456test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3457 3458test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3459 3460test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3461 3462 3463 #-------------------------------------------------------------------- 3464 # Checks to see if the make program sets the $MAKE variable. 3465 #-------------------------------------------------------------------- 3466 3467 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3468echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3469set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3470if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3471 echo $ECHO_N "(cached) $ECHO_C" >&6 3472else 3473 cat >conftest.make <<\_ACEOF 3474SHELL = /bin/sh 3475all: 3476 @echo '@@@%%%=$(MAKE)=@@@%%%' 3477_ACEOF 3478# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3479case `${MAKE-make} -f conftest.make 2>/dev/null` in 3480 *@@@%%%=?*=@@@%%%*) 3481 eval ac_cv_prog_make_${ac_make}_set=yes;; 3482 *) 3483 eval ac_cv_prog_make_${ac_make}_set=no;; 3484esac 3485rm -f conftest.make 3486fi 3487if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3488 { echo "$as_me:$LINENO: result: yes" >&5 3489echo "${ECHO_T}yes" >&6; } 3490 SET_MAKE= 3491else 3492 { echo "$as_me:$LINENO: result: no" >&5 3493echo "${ECHO_T}no" >&6; } 3494 SET_MAKE="MAKE=${MAKE-make}" 3495fi 3496 3497 3498 #-------------------------------------------------------------------- 3499 # Find ranlib 3500 #-------------------------------------------------------------------- 3501 3502 if test -n "$ac_tool_prefix"; then 3503 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3504set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3505{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3507if test "${ac_cv_prog_RANLIB+set}" = set; then 3508 echo $ECHO_N "(cached) $ECHO_C" >&6 3509else 3510 if test -n "$RANLIB"; then 3511 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3512else 3513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3514for as_dir in $PATH 3515do 3516 IFS=$as_save_IFS 3517 test -z "$as_dir" && as_dir=. 3518 for ac_exec_ext in '' $ac_executable_extensions; do 3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3520 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3522 break 2 3523 fi 3524done 3525done 3526IFS=$as_save_IFS 3527 3528fi 3529fi 3530RANLIB=$ac_cv_prog_RANLIB 3531if test -n "$RANLIB"; then 3532 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3533echo "${ECHO_T}$RANLIB" >&6; } 3534else 3535 { echo "$as_me:$LINENO: result: no" >&5 3536echo "${ECHO_T}no" >&6; } 3537fi 3538 3539 3540fi 3541if test -z "$ac_cv_prog_RANLIB"; then 3542 ac_ct_RANLIB=$RANLIB 3543 # Extract the first word of "ranlib", so it can be a program name with args. 3544set dummy ranlib; ac_word=$2 3545{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3547if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3548 echo $ECHO_N "(cached) $ECHO_C" >&6 3549else 3550 if test -n "$ac_ct_RANLIB"; then 3551 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3552else 3553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3554for as_dir in $PATH 3555do 3556 IFS=$as_save_IFS 3557 test -z "$as_dir" && as_dir=. 3558 for ac_exec_ext in '' $ac_executable_extensions; do 3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3560 ac_cv_prog_ac_ct_RANLIB="ranlib" 3561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3562 break 2 3563 fi 3564done 3565done 3566IFS=$as_save_IFS 3567 3568fi 3569fi 3570ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3571if test -n "$ac_ct_RANLIB"; then 3572 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3573echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3574else 3575 { echo "$as_me:$LINENO: result: no" >&5 3576echo "${ECHO_T}no" >&6; } 3577fi 3578 3579 if test "x$ac_ct_RANLIB" = x; then 3580 RANLIB=":" 3581 else 3582 case $cross_compiling:$ac_tool_warned in 3583yes:) 3584{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3585whose name does not start with the host triplet. If you think this 3586configuration is useful to you, please write to autoconf@gnu.org." >&5 3587echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3588whose name does not start with the host triplet. If you think this 3589configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3590ac_tool_warned=yes ;; 3591esac 3592 RANLIB=$ac_ct_RANLIB 3593 fi 3594else 3595 RANLIB="$ac_cv_prog_RANLIB" 3596fi 3597 3598 3599 #-------------------------------------------------------------------- 3600 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3601 #-------------------------------------------------------------------- 3602 3603 3604 3605 3606 3607 3608{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3609echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3610if test "${ac_cv_path_GREP+set}" = set; then 3611 echo $ECHO_N "(cached) $ECHO_C" >&6 3612else 3613 # Extract the first word of "grep ggrep" to use in msg output 3614if test -z "$GREP"; then 3615set dummy grep ggrep; ac_prog_name=$2 3616if test "${ac_cv_path_GREP+set}" = set; then 3617 echo $ECHO_N "(cached) $ECHO_C" >&6 3618else 3619 ac_path_GREP_found=false 3620# Loop through the user's path and test for each of PROGNAME-LIST 3621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3622for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3623do 3624 IFS=$as_save_IFS 3625 test -z "$as_dir" && as_dir=. 3626 for ac_prog in grep ggrep; do 3627 for ac_exec_ext in '' $ac_executable_extensions; do 3628 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3629 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3630 # Check for GNU ac_path_GREP and select it if it is found. 3631 # Check for GNU $ac_path_GREP 3632case `"$ac_path_GREP" --version 2>&1` in 3633*GNU*) 3634 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3635*) 3636 ac_count=0 3637 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3638 while : 3639 do 3640 cat "conftest.in" "conftest.in" >"conftest.tmp" 3641 mv "conftest.tmp" "conftest.in" 3642 cp "conftest.in" "conftest.nl" 3643 echo 'GREP' >> "conftest.nl" 3644 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3646 ac_count=`expr $ac_count + 1` 3647 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3648 # Best one so far, save it but keep looking for a better one 3649 ac_cv_path_GREP="$ac_path_GREP" 3650 ac_path_GREP_max=$ac_count 3651 fi 3652 # 10*(2^10) chars as input seems more than enough 3653 test $ac_count -gt 10 && break 3654 done 3655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3656esac 3657 3658 3659 $ac_path_GREP_found && break 3 3660 done 3661done 3662 3663done 3664IFS=$as_save_IFS 3665 3666 3667fi 3668 3669GREP="$ac_cv_path_GREP" 3670if test -z "$GREP"; then 3671 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3672echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3673 { (exit 1); exit 1; }; } 3674fi 3675 3676else 3677 ac_cv_path_GREP=$GREP 3678fi 3679 3680 3681fi 3682{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3683echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3684 GREP="$ac_cv_path_GREP" 3685 3686 3687{ echo "$as_me:$LINENO: checking for egrep" >&5 3688echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3689if test "${ac_cv_path_EGREP+set}" = set; then 3690 echo $ECHO_N "(cached) $ECHO_C" >&6 3691else 3692 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3693 then ac_cv_path_EGREP="$GREP -E" 3694 else 3695 # Extract the first word of "egrep" to use in msg output 3696if test -z "$EGREP"; then 3697set dummy egrep; ac_prog_name=$2 3698if test "${ac_cv_path_EGREP+set}" = set; then 3699 echo $ECHO_N "(cached) $ECHO_C" >&6 3700else 3701 ac_path_EGREP_found=false 3702# Loop through the user's path and test for each of PROGNAME-LIST 3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3704for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3705do 3706 IFS=$as_save_IFS 3707 test -z "$as_dir" && as_dir=. 3708 for ac_prog in egrep; do 3709 for ac_exec_ext in '' $ac_executable_extensions; do 3710 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3711 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3712 # Check for GNU ac_path_EGREP and select it if it is found. 3713 # Check for GNU $ac_path_EGREP 3714case `"$ac_path_EGREP" --version 2>&1` in 3715*GNU*) 3716 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3717*) 3718 ac_count=0 3719 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3720 while : 3721 do 3722 cat "conftest.in" "conftest.in" >"conftest.tmp" 3723 mv "conftest.tmp" "conftest.in" 3724 cp "conftest.in" "conftest.nl" 3725 echo 'EGREP' >> "conftest.nl" 3726 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3728 ac_count=`expr $ac_count + 1` 3729 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3730 # Best one so far, save it but keep looking for a better one 3731 ac_cv_path_EGREP="$ac_path_EGREP" 3732 ac_path_EGREP_max=$ac_count 3733 fi 3734 # 10*(2^10) chars as input seems more than enough 3735 test $ac_count -gt 10 && break 3736 done 3737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3738esac 3739 3740 3741 $ac_path_EGREP_found && break 3 3742 done 3743done 3744 3745done 3746IFS=$as_save_IFS 3747 3748 3749fi 3750 3751EGREP="$ac_cv_path_EGREP" 3752if test -z "$EGREP"; then 3753 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3754echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3755 { (exit 1); exit 1; }; } 3756fi 3757 3758else 3759 ac_cv_path_EGREP=$EGREP 3760fi 3761 3762 3763 fi 3764fi 3765{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3766echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3767 EGREP="$ac_cv_path_EGREP" 3768 3769 3770{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3771echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3772if test "${ac_cv_header_stdc+set}" = set; then 3773 echo $ECHO_N "(cached) $ECHO_C" >&6 3774else 3775 cat >conftest.$ac_ext <<_ACEOF 3776/* confdefs.h. */ 3777_ACEOF 3778cat confdefs.h >>conftest.$ac_ext 3779cat >>conftest.$ac_ext <<_ACEOF 3780/* end confdefs.h. */ 3781#include <stdlib.h> 3782#include <stdarg.h> 3783#include <string.h> 3784#include <float.h> 3785 3786int 3787main () 3788{ 3789 3790 ; 3791 return 0; 3792} 3793_ACEOF 3794rm -f conftest.$ac_objext 3795if { (ac_try="$ac_compile" 3796case "(($ac_try" in 3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3798 *) ac_try_echo=$ac_try;; 3799esac 3800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3801 (eval "$ac_compile") 2>conftest.er1 3802 ac_status=$? 3803 grep -v '^ *+' conftest.er1 >conftest.err 3804 rm -f conftest.er1 3805 cat conftest.err >&5 3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3807 (exit $ac_status); } && { 3808 test -z "$ac_c_werror_flag" || 3809 test ! -s conftest.err 3810 } && test -s conftest.$ac_objext; then 3811 ac_cv_header_stdc=yes 3812else 3813 echo "$as_me: failed program was:" >&5 3814sed 's/^/| /' conftest.$ac_ext >&5 3815 3816 ac_cv_header_stdc=no 3817fi 3818 3819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3820 3821if test $ac_cv_header_stdc = yes; then 3822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3823 cat >conftest.$ac_ext <<_ACEOF 3824/* confdefs.h. */ 3825_ACEOF 3826cat confdefs.h >>conftest.$ac_ext 3827cat >>conftest.$ac_ext <<_ACEOF 3828/* end confdefs.h. */ 3829#include <string.h> 3830 3831_ACEOF 3832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3833 $EGREP "memchr" >/dev/null 2>&1; then 3834 : 3835else 3836 ac_cv_header_stdc=no 3837fi 3838rm -f -r conftest* 3839 3840fi 3841 3842if test $ac_cv_header_stdc = yes; then 3843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3844 cat >conftest.$ac_ext <<_ACEOF 3845/* confdefs.h. */ 3846_ACEOF 3847cat confdefs.h >>conftest.$ac_ext 3848cat >>conftest.$ac_ext <<_ACEOF 3849/* end confdefs.h. */ 3850#include <stdlib.h> 3851 3852_ACEOF 3853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3854 $EGREP "free" >/dev/null 2>&1; then 3855 : 3856else 3857 ac_cv_header_stdc=no 3858fi 3859rm -f -r conftest* 3860 3861fi 3862 3863if test $ac_cv_header_stdc = yes; then 3864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3865 if test "$cross_compiling" = yes; then 3866 : 3867else 3868 cat >conftest.$ac_ext <<_ACEOF 3869/* confdefs.h. */ 3870_ACEOF 3871cat confdefs.h >>conftest.$ac_ext 3872cat >>conftest.$ac_ext <<_ACEOF 3873/* end confdefs.h. */ 3874#include <ctype.h> 3875#include <stdlib.h> 3876#if ((' ' & 0x0FF) == 0x020) 3877# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3878# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3879#else 3880# define ISLOWER(c) \ 3881 (('a' <= (c) && (c) <= 'i') \ 3882 || ('j' <= (c) && (c) <= 'r') \ 3883 || ('s' <= (c) && (c) <= 'z')) 3884# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3885#endif 3886 3887#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3888int 3889main () 3890{ 3891 int i; 3892 for (i = 0; i < 256; i++) 3893 if (XOR (islower (i), ISLOWER (i)) 3894 || toupper (i) != TOUPPER (i)) 3895 return 2; 3896 return 0; 3897} 3898_ACEOF 3899rm -f conftest$ac_exeext 3900if { (ac_try="$ac_link" 3901case "(($ac_try" in 3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3903 *) ac_try_echo=$ac_try;; 3904esac 3905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3906 (eval "$ac_link") 2>&5 3907 ac_status=$? 3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3910 { (case "(($ac_try" in 3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3912 *) ac_try_echo=$ac_try;; 3913esac 3914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3915 (eval "$ac_try") 2>&5 3916 ac_status=$? 3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3918 (exit $ac_status); }; }; then 3919 : 3920else 3921 echo "$as_me: program exited with status $ac_status" >&5 3922echo "$as_me: failed program was:" >&5 3923sed 's/^/| /' conftest.$ac_ext >&5 3924 3925( exit $ac_status ) 3926ac_cv_header_stdc=no 3927fi 3928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3929fi 3930 3931 3932fi 3933fi 3934{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3935echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3936if test $ac_cv_header_stdc = yes; then 3937 3938cat >>confdefs.h <<\_ACEOF 3939#define STDC_HEADERS 1 3940_ACEOF 3941 3942fi 3943 3944# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3955 inttypes.h stdint.h unistd.h 3956do 3957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3958{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3961 echo $ECHO_N "(cached) $ECHO_C" >&6 3962else 3963 cat >conftest.$ac_ext <<_ACEOF 3964/* confdefs.h. */ 3965_ACEOF 3966cat confdefs.h >>conftest.$ac_ext 3967cat >>conftest.$ac_ext <<_ACEOF 3968/* end confdefs.h. */ 3969$ac_includes_default 3970 3971#include <$ac_header> 3972_ACEOF 3973rm -f conftest.$ac_objext 3974if { (ac_try="$ac_compile" 3975case "(($ac_try" in 3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3977 *) ac_try_echo=$ac_try;; 3978esac 3979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3980 (eval "$ac_compile") 2>conftest.er1 3981 ac_status=$? 3982 grep -v '^ *+' conftest.er1 >conftest.err 3983 rm -f conftest.er1 3984 cat conftest.err >&5 3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3986 (exit $ac_status); } && { 3987 test -z "$ac_c_werror_flag" || 3988 test ! -s conftest.err 3989 } && test -s conftest.$ac_objext; then 3990 eval "$as_ac_Header=yes" 3991else 3992 echo "$as_me: failed program was:" >&5 3993sed 's/^/| /' conftest.$ac_ext >&5 3994 3995 eval "$as_ac_Header=no" 3996fi 3997 3998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3999fi 4000ac_res=`eval echo '${'$as_ac_Header'}'` 4001 { echo "$as_me:$LINENO: result: $ac_res" >&5 4002echo "${ECHO_T}$ac_res" >&6; } 4003if test `eval echo '${'$as_ac_Header'}'` = yes; then 4004 cat >>confdefs.h <<_ACEOF 4005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4006_ACEOF 4007 4008fi 4009 4010done 4011 4012 4013 4014 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4015 4016 4017 #------------------------------------------------------------------------ 4018 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4019 # It makes compiling go faster. (This is only a performance feature.) 4020 #------------------------------------------------------------------------ 4021 4022 if test -z "$no_pipe" -a -n "$GCC"; then 4023 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4024echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4025if test "${tcl_cv_cc_pipe+set}" = set; then 4026 echo $ECHO_N "(cached) $ECHO_C" >&6 4027else 4028 4029 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4030 cat >conftest.$ac_ext <<_ACEOF 4031/* confdefs.h. */ 4032_ACEOF 4033cat confdefs.h >>conftest.$ac_ext 4034cat >>conftest.$ac_ext <<_ACEOF 4035/* end confdefs.h. */ 4036 4037int 4038main () 4039{ 4040 4041 ; 4042 return 0; 4043} 4044_ACEOF 4045rm -f conftest.$ac_objext 4046if { (ac_try="$ac_compile" 4047case "(($ac_try" in 4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4049 *) ac_try_echo=$ac_try;; 4050esac 4051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4052 (eval "$ac_compile") 2>conftest.er1 4053 ac_status=$? 4054 grep -v '^ *+' conftest.er1 >conftest.err 4055 rm -f conftest.er1 4056 cat conftest.err >&5 4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4058 (exit $ac_status); } && { 4059 test -z "$ac_c_werror_flag" || 4060 test ! -s conftest.err 4061 } && test -s conftest.$ac_objext; then 4062 tcl_cv_cc_pipe=yes 4063else 4064 echo "$as_me: failed program was:" >&5 4065sed 's/^/| /' conftest.$ac_ext >&5 4066 4067 tcl_cv_cc_pipe=no 4068fi 4069 4070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4071 CFLAGS=$hold_cflags 4072fi 4073{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4074echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4075 if test $tcl_cv_cc_pipe = yes; then 4076 CFLAGS="$CFLAGS -pipe" 4077 fi 4078 fi 4079 4080 #-------------------------------------------------------------------- 4081 # Common compiler flag setup 4082 #-------------------------------------------------------------------- 4083 4084 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4085echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4086if test "${ac_cv_c_bigendian+set}" = set; then 4087 echo $ECHO_N "(cached) $ECHO_C" >&6 4088else 4089 # See if sys/param.h defines the BYTE_ORDER macro. 4090cat >conftest.$ac_ext <<_ACEOF 4091/* confdefs.h. */ 4092_ACEOF 4093cat confdefs.h >>conftest.$ac_ext 4094cat >>conftest.$ac_ext <<_ACEOF 4095/* end confdefs.h. */ 4096#include <sys/types.h> 4097#include <sys/param.h> 4098 4099int 4100main () 4101{ 4102#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4103 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4104 bogus endian macros 4105#endif 4106 4107 ; 4108 return 0; 4109} 4110_ACEOF 4111rm -f conftest.$ac_objext 4112if { (ac_try="$ac_compile" 4113case "(($ac_try" in 4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4115 *) ac_try_echo=$ac_try;; 4116esac 4117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4118 (eval "$ac_compile") 2>conftest.er1 4119 ac_status=$? 4120 grep -v '^ *+' conftest.er1 >conftest.err 4121 rm -f conftest.er1 4122 cat conftest.err >&5 4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4124 (exit $ac_status); } && { 4125 test -z "$ac_c_werror_flag" || 4126 test ! -s conftest.err 4127 } && test -s conftest.$ac_objext; then 4128 # It does; now see whether it defined to BIG_ENDIAN or not. 4129cat >conftest.$ac_ext <<_ACEOF 4130/* confdefs.h. */ 4131_ACEOF 4132cat confdefs.h >>conftest.$ac_ext 4133cat >>conftest.$ac_ext <<_ACEOF 4134/* end confdefs.h. */ 4135#include <sys/types.h> 4136#include <sys/param.h> 4137 4138int 4139main () 4140{ 4141#if BYTE_ORDER != BIG_ENDIAN 4142 not big endian 4143#endif 4144 4145 ; 4146 return 0; 4147} 4148_ACEOF 4149rm -f conftest.$ac_objext 4150if { (ac_try="$ac_compile" 4151case "(($ac_try" in 4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4153 *) ac_try_echo=$ac_try;; 4154esac 4155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4156 (eval "$ac_compile") 2>conftest.er1 4157 ac_status=$? 4158 grep -v '^ *+' conftest.er1 >conftest.err 4159 rm -f conftest.er1 4160 cat conftest.err >&5 4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4162 (exit $ac_status); } && { 4163 test -z "$ac_c_werror_flag" || 4164 test ! -s conftest.err 4165 } && test -s conftest.$ac_objext; then 4166 ac_cv_c_bigendian=yes 4167else 4168 echo "$as_me: failed program was:" >&5 4169sed 's/^/| /' conftest.$ac_ext >&5 4170 4171 ac_cv_c_bigendian=no 4172fi 4173 4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4175else 4176 echo "$as_me: failed program was:" >&5 4177sed 's/^/| /' conftest.$ac_ext >&5 4178 4179 # It does not; compile a test program. 4180if test "$cross_compiling" = yes; then 4181 # try to guess the endianness by grepping values into an object file 4182 ac_cv_c_bigendian=unknown 4183 cat >conftest.$ac_ext <<_ACEOF 4184/* confdefs.h. */ 4185_ACEOF 4186cat confdefs.h >>conftest.$ac_ext 4187cat >>conftest.$ac_ext <<_ACEOF 4188/* end confdefs.h. */ 4189short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4190short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4191void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4192short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4193short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4194void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4195int 4196main () 4197{ 4198 _ascii (); _ebcdic (); 4199 ; 4200 return 0; 4201} 4202_ACEOF 4203rm -f conftest.$ac_objext 4204if { (ac_try="$ac_compile" 4205case "(($ac_try" in 4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4207 *) ac_try_echo=$ac_try;; 4208esac 4209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4210 (eval "$ac_compile") 2>conftest.er1 4211 ac_status=$? 4212 grep -v '^ *+' conftest.er1 >conftest.err 4213 rm -f conftest.er1 4214 cat conftest.err >&5 4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4216 (exit $ac_status); } && { 4217 test -z "$ac_c_werror_flag" || 4218 test ! -s conftest.err 4219 } && test -s conftest.$ac_objext; then 4220 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4221 ac_cv_c_bigendian=yes 4222fi 4223if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4224 if test "$ac_cv_c_bigendian" = unknown; then 4225 ac_cv_c_bigendian=no 4226 else 4227 # finding both strings is unlikely to happen, but who knows? 4228 ac_cv_c_bigendian=unknown 4229 fi 4230fi 4231else 4232 echo "$as_me: failed program was:" >&5 4233sed 's/^/| /' conftest.$ac_ext >&5 4234 4235 4236fi 4237 4238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4239else 4240 cat >conftest.$ac_ext <<_ACEOF 4241/* confdefs.h. */ 4242_ACEOF 4243cat confdefs.h >>conftest.$ac_ext 4244cat >>conftest.$ac_ext <<_ACEOF 4245/* end confdefs.h. */ 4246$ac_includes_default 4247int 4248main () 4249{ 4250 4251 /* Are we little or big endian? From Harbison&Steele. */ 4252 union 4253 { 4254 long int l; 4255 char c[sizeof (long int)]; 4256 } u; 4257 u.l = 1; 4258 return u.c[sizeof (long int) - 1] == 1; 4259 4260 ; 4261 return 0; 4262} 4263_ACEOF 4264rm -f conftest$ac_exeext 4265if { (ac_try="$ac_link" 4266case "(($ac_try" in 4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4268 *) ac_try_echo=$ac_try;; 4269esac 4270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4271 (eval "$ac_link") 2>&5 4272 ac_status=$? 4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4275 { (case "(($ac_try" in 4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4277 *) ac_try_echo=$ac_try;; 4278esac 4279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4280 (eval "$ac_try") 2>&5 4281 ac_status=$? 4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4283 (exit $ac_status); }; }; then 4284 ac_cv_c_bigendian=no 4285else 4286 echo "$as_me: program exited with status $ac_status" >&5 4287echo "$as_me: failed program was:" >&5 4288sed 's/^/| /' conftest.$ac_ext >&5 4289 4290( exit $ac_status ) 4291ac_cv_c_bigendian=yes 4292fi 4293rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4294fi 4295 4296 4297fi 4298 4299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4300fi 4301{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4302echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4303case $ac_cv_c_bigendian in 4304 yes) 4305 4306cat >>confdefs.h <<\_ACEOF 4307#define WORDS_BIGENDIAN 1 4308_ACEOF 4309 ;; 4310 no) 4311 ;; 4312 *) 4313 { { echo "$as_me:$LINENO: error: unknown endianness 4314presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4315echo "$as_me: error: unknown endianness 4316presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4317 { (exit 1); exit 1; }; } ;; 4318esac 4319 4320 if test "${TEA_PLATFORM}" = "unix" ; then 4321 4322 #-------------------------------------------------------------------- 4323 # On a few very rare systems, all of the libm.a stuff is 4324 # already in libc.a. Set compiler flags accordingly. 4325 # Also, Linux requires the "ieee" library for math to work 4326 # right (and it must appear before "-lm"). 4327 #-------------------------------------------------------------------- 4328 4329 { echo "$as_me:$LINENO: checking for sin" >&5 4330echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4331if test "${ac_cv_func_sin+set}" = set; then 4332 echo $ECHO_N "(cached) $ECHO_C" >&6 4333else 4334 cat >conftest.$ac_ext <<_ACEOF 4335/* confdefs.h. */ 4336_ACEOF 4337cat confdefs.h >>conftest.$ac_ext 4338cat >>conftest.$ac_ext <<_ACEOF 4339/* end confdefs.h. */ 4340/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4341 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4342#define sin innocuous_sin 4343 4344/* System header to define __stub macros and hopefully few prototypes, 4345 which can conflict with char sin (); below. 4346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4347 <limits.h> exists even on freestanding compilers. */ 4348 4349#ifdef __STDC__ 4350# include <limits.h> 4351#else 4352# include <assert.h> 4353#endif 4354 4355#undef sin 4356 4357/* Override any GCC internal prototype to avoid an error. 4358 Use char because int might match the return type of a GCC 4359 builtin and then its argument prototype would still apply. */ 4360#ifdef __cplusplus 4361extern "C" 4362#endif 4363char sin (); 4364/* The GNU C library defines this for functions which it implements 4365 to always fail with ENOSYS. Some functions are actually named 4366 something starting with __ and the normal name is an alias. */ 4367#if defined __stub_sin || defined __stub___sin 4368choke me 4369#endif 4370 4371int 4372main () 4373{ 4374return sin (); 4375 ; 4376 return 0; 4377} 4378_ACEOF 4379rm -f conftest.$ac_objext conftest$ac_exeext 4380if { (ac_try="$ac_link" 4381case "(($ac_try" in 4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4383 *) ac_try_echo=$ac_try;; 4384esac 4385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4386 (eval "$ac_link") 2>conftest.er1 4387 ac_status=$? 4388 grep -v '^ *+' conftest.er1 >conftest.err 4389 rm -f conftest.er1 4390 cat conftest.err >&5 4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4392 (exit $ac_status); } && { 4393 test -z "$ac_c_werror_flag" || 4394 test ! -s conftest.err 4395 } && test -s conftest$ac_exeext && 4396 $as_test_x conftest$ac_exeext; then 4397 ac_cv_func_sin=yes 4398else 4399 echo "$as_me: failed program was:" >&5 4400sed 's/^/| /' conftest.$ac_ext >&5 4401 4402 ac_cv_func_sin=no 4403fi 4404 4405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4406 conftest$ac_exeext conftest.$ac_ext 4407fi 4408{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4409echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4410if test $ac_cv_func_sin = yes; then 4411 MATH_LIBS="" 4412else 4413 MATH_LIBS="-lm" 4414fi 4415 4416 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4417echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4418if test "${ac_cv_lib_ieee_main+set}" = set; then 4419 echo $ECHO_N "(cached) $ECHO_C" >&6 4420else 4421 ac_check_lib_save_LIBS=$LIBS 4422LIBS="-lieee $LIBS" 4423cat >conftest.$ac_ext <<_ACEOF 4424/* confdefs.h. */ 4425_ACEOF 4426cat confdefs.h >>conftest.$ac_ext 4427cat >>conftest.$ac_ext <<_ACEOF 4428/* end confdefs.h. */ 4429 4430 4431int 4432main () 4433{ 4434return main (); 4435 ; 4436 return 0; 4437} 4438_ACEOF 4439rm -f conftest.$ac_objext conftest$ac_exeext 4440if { (ac_try="$ac_link" 4441case "(($ac_try" in 4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4443 *) ac_try_echo=$ac_try;; 4444esac 4445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4446 (eval "$ac_link") 2>conftest.er1 4447 ac_status=$? 4448 grep -v '^ *+' conftest.er1 >conftest.err 4449 rm -f conftest.er1 4450 cat conftest.err >&5 4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4452 (exit $ac_status); } && { 4453 test -z "$ac_c_werror_flag" || 4454 test ! -s conftest.err 4455 } && test -s conftest$ac_exeext && 4456 $as_test_x conftest$ac_exeext; then 4457 ac_cv_lib_ieee_main=yes 4458else 4459 echo "$as_me: failed program was:" >&5 4460sed 's/^/| /' conftest.$ac_ext >&5 4461 4462 ac_cv_lib_ieee_main=no 4463fi 4464 4465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4466 conftest$ac_exeext conftest.$ac_ext 4467LIBS=$ac_check_lib_save_LIBS 4468fi 4469{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4470echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4471if test $ac_cv_lib_ieee_main = yes; then 4472 MATH_LIBS="-lieee $MATH_LIBS" 4473fi 4474 4475 4476 #-------------------------------------------------------------------- 4477 # Interactive UNIX requires -linet instead of -lsocket, plus it 4478 # needs net/errno.h to define the socket-related error codes. 4479 #-------------------------------------------------------------------- 4480 4481 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4482echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4483if test "${ac_cv_lib_inet_main+set}" = set; then 4484 echo $ECHO_N "(cached) $ECHO_C" >&6 4485else 4486 ac_check_lib_save_LIBS=$LIBS 4487LIBS="-linet $LIBS" 4488cat >conftest.$ac_ext <<_ACEOF 4489/* confdefs.h. */ 4490_ACEOF 4491cat confdefs.h >>conftest.$ac_ext 4492cat >>conftest.$ac_ext <<_ACEOF 4493/* end confdefs.h. */ 4494 4495 4496int 4497main () 4498{ 4499return main (); 4500 ; 4501 return 0; 4502} 4503_ACEOF 4504rm -f conftest.$ac_objext conftest$ac_exeext 4505if { (ac_try="$ac_link" 4506case "(($ac_try" in 4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4508 *) ac_try_echo=$ac_try;; 4509esac 4510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4511 (eval "$ac_link") 2>conftest.er1 4512 ac_status=$? 4513 grep -v '^ *+' conftest.er1 >conftest.err 4514 rm -f conftest.er1 4515 cat conftest.err >&5 4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4517 (exit $ac_status); } && { 4518 test -z "$ac_c_werror_flag" || 4519 test ! -s conftest.err 4520 } && test -s conftest$ac_exeext && 4521 $as_test_x conftest$ac_exeext; then 4522 ac_cv_lib_inet_main=yes 4523else 4524 echo "$as_me: failed program was:" >&5 4525sed 's/^/| /' conftest.$ac_ext >&5 4526 4527 ac_cv_lib_inet_main=no 4528fi 4529 4530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4531 conftest$ac_exeext conftest.$ac_ext 4532LIBS=$ac_check_lib_save_LIBS 4533fi 4534{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4535echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4536if test $ac_cv_lib_inet_main = yes; then 4537 LIBS="$LIBS -linet" 4538fi 4539 4540 if test "${ac_cv_header_net_errno_h+set}" = set; then 4541 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4542echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4543if test "${ac_cv_header_net_errno_h+set}" = set; then 4544 echo $ECHO_N "(cached) $ECHO_C" >&6 4545fi 4546{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4547echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4548else 4549 # Is the header compilable? 4550{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4551echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4552cat >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$ac_includes_default 4559#include <net/errno.h> 4560_ACEOF 4561rm -f conftest.$ac_objext 4562if { (ac_try="$ac_compile" 4563case "(($ac_try" in 4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4565 *) ac_try_echo=$ac_try;; 4566esac 4567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4568 (eval "$ac_compile") 2>conftest.er1 4569 ac_status=$? 4570 grep -v '^ *+' conftest.er1 >conftest.err 4571 rm -f conftest.er1 4572 cat conftest.err >&5 4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4574 (exit $ac_status); } && { 4575 test -z "$ac_c_werror_flag" || 4576 test ! -s conftest.err 4577 } && test -s conftest.$ac_objext; then 4578 ac_header_compiler=yes 4579else 4580 echo "$as_me: failed program was:" >&5 4581sed 's/^/| /' conftest.$ac_ext >&5 4582 4583 ac_header_compiler=no 4584fi 4585 4586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4587{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4588echo "${ECHO_T}$ac_header_compiler" >&6; } 4589 4590# Is the header present? 4591{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4592echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4593cat >conftest.$ac_ext <<_ACEOF 4594/* confdefs.h. */ 4595_ACEOF 4596cat confdefs.h >>conftest.$ac_ext 4597cat >>conftest.$ac_ext <<_ACEOF 4598/* end confdefs.h. */ 4599#include <net/errno.h> 4600_ACEOF 4601if { (ac_try="$ac_cpp conftest.$ac_ext" 4602case "(($ac_try" in 4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4604 *) ac_try_echo=$ac_try;; 4605esac 4606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4608 ac_status=$? 4609 grep -v '^ *+' conftest.er1 >conftest.err 4610 rm -f conftest.er1 4611 cat conftest.err >&5 4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4613 (exit $ac_status); } >/dev/null && { 4614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4615 test ! -s conftest.err 4616 }; then 4617 ac_header_preproc=yes 4618else 4619 echo "$as_me: failed program was:" >&5 4620sed 's/^/| /' conftest.$ac_ext >&5 4621 4622 ac_header_preproc=no 4623fi 4624 4625rm -f conftest.err conftest.$ac_ext 4626{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4627echo "${ECHO_T}$ac_header_preproc" >&6; } 4628 4629# So? What about this header? 4630case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4631 yes:no: ) 4632 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4633echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4634 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4635echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4636 ac_header_preproc=yes 4637 ;; 4638 no:yes:* ) 4639 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4640echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4641 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4642echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4643 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4644echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4645 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4646echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4647 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4648echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4649 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4650echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4651 ( cat <<\_ASBOX 4652## ---------------------------------------------------------- ## 4653## Report this to http://sourceforge.net/projects/tclresource ## 4654## ---------------------------------------------------------- ## 4655_ASBOX 4656 ) | sed "s/^/$as_me: WARNING: /" >&2 4657 ;; 4658esac 4659{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4660echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4661if test "${ac_cv_header_net_errno_h+set}" = set; then 4662 echo $ECHO_N "(cached) $ECHO_C" >&6 4663else 4664 ac_cv_header_net_errno_h=$ac_header_preproc 4665fi 4666{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4667echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4668 4669fi 4670if test $ac_cv_header_net_errno_h = yes; then 4671 4672 4673cat >>confdefs.h <<\_ACEOF 4674#define HAVE_NET_ERRNO_H 1 4675_ACEOF 4676 4677fi 4678 4679 4680 4681 #-------------------------------------------------------------------- 4682 # Check for the existence of the -lsocket and -lnsl libraries. 4683 # The order here is important, so that they end up in the right 4684 # order in the command line generated by make. Here are some 4685 # special considerations: 4686 # 1. Use "connect" and "accept" to check for -lsocket, and 4687 # "gethostbyname" to check for -lnsl. 4688 # 2. Use each function name only once: can't redo a check because 4689 # autoconf caches the results of the last check and won't redo it. 4690 # 3. Use -lnsl and -lsocket only if they supply procedures that 4691 # aren't already present in the normal libraries. This is because 4692 # IRIX 5.2 has libraries, but they aren't needed and they're 4693 # bogus: they goof up name resolution if used. 4694 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4695 # To get around this problem, check for both libraries together 4696 # if -lsocket doesn't work by itself. 4697 #-------------------------------------------------------------------- 4698 4699 tcl_checkBoth=0 4700 { echo "$as_me:$LINENO: checking for connect" >&5 4701echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4702if test "${ac_cv_func_connect+set}" = set; then 4703 echo $ECHO_N "(cached) $ECHO_C" >&6 4704else 4705 cat >conftest.$ac_ext <<_ACEOF 4706/* confdefs.h. */ 4707_ACEOF 4708cat confdefs.h >>conftest.$ac_ext 4709cat >>conftest.$ac_ext <<_ACEOF 4710/* end confdefs.h. */ 4711/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4712 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4713#define connect innocuous_connect 4714 4715/* System header to define __stub macros and hopefully few prototypes, 4716 which can conflict with char connect (); below. 4717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4718 <limits.h> exists even on freestanding compilers. */ 4719 4720#ifdef __STDC__ 4721# include <limits.h> 4722#else 4723# include <assert.h> 4724#endif 4725 4726#undef connect 4727 4728/* Override any GCC internal prototype to avoid an error. 4729 Use char because int might match the return type of a GCC 4730 builtin and then its argument prototype would still apply. */ 4731#ifdef __cplusplus 4732extern "C" 4733#endif 4734char connect (); 4735/* The GNU C library defines this for functions which it implements 4736 to always fail with ENOSYS. Some functions are actually named 4737 something starting with __ and the normal name is an alias. */ 4738#if defined __stub_connect || defined __stub___connect 4739choke me 4740#endif 4741 4742int 4743main () 4744{ 4745return connect (); 4746 ; 4747 return 0; 4748} 4749_ACEOF 4750rm -f conftest.$ac_objext conftest$ac_exeext 4751if { (ac_try="$ac_link" 4752case "(($ac_try" in 4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4754 *) ac_try_echo=$ac_try;; 4755esac 4756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4757 (eval "$ac_link") 2>conftest.er1 4758 ac_status=$? 4759 grep -v '^ *+' conftest.er1 >conftest.err 4760 rm -f conftest.er1 4761 cat conftest.err >&5 4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4763 (exit $ac_status); } && { 4764 test -z "$ac_c_werror_flag" || 4765 test ! -s conftest.err 4766 } && test -s conftest$ac_exeext && 4767 $as_test_x conftest$ac_exeext; then 4768 ac_cv_func_connect=yes 4769else 4770 echo "$as_me: failed program was:" >&5 4771sed 's/^/| /' conftest.$ac_ext >&5 4772 4773 ac_cv_func_connect=no 4774fi 4775 4776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4777 conftest$ac_exeext conftest.$ac_ext 4778fi 4779{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4780echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4781if test $ac_cv_func_connect = yes; then 4782 tcl_checkSocket=0 4783else 4784 tcl_checkSocket=1 4785fi 4786 4787 if test "$tcl_checkSocket" = 1; then 4788 { echo "$as_me:$LINENO: checking for setsockopt" >&5 4789echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 4790if test "${ac_cv_func_setsockopt+set}" = set; then 4791 echo $ECHO_N "(cached) $ECHO_C" >&6 4792else 4793 cat >conftest.$ac_ext <<_ACEOF 4794/* confdefs.h. */ 4795_ACEOF 4796cat confdefs.h >>conftest.$ac_ext 4797cat >>conftest.$ac_ext <<_ACEOF 4798/* end confdefs.h. */ 4799/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4800 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4801#define setsockopt innocuous_setsockopt 4802 4803/* System header to define __stub macros and hopefully few prototypes, 4804 which can conflict with char setsockopt (); below. 4805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4806 <limits.h> exists even on freestanding compilers. */ 4807 4808#ifdef __STDC__ 4809# include <limits.h> 4810#else 4811# include <assert.h> 4812#endif 4813 4814#undef setsockopt 4815 4816/* Override any GCC internal prototype to avoid an error. 4817 Use char because int might match the return type of a GCC 4818 builtin and then its argument prototype would still apply. */ 4819#ifdef __cplusplus 4820extern "C" 4821#endif 4822char setsockopt (); 4823/* The GNU C library defines this for functions which it implements 4824 to always fail with ENOSYS. Some functions are actually named 4825 something starting with __ and the normal name is an alias. */ 4826#if defined __stub_setsockopt || defined __stub___setsockopt 4827choke me 4828#endif 4829 4830int 4831main () 4832{ 4833return setsockopt (); 4834 ; 4835 return 0; 4836} 4837_ACEOF 4838rm -f conftest.$ac_objext conftest$ac_exeext 4839if { (ac_try="$ac_link" 4840case "(($ac_try" in 4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4842 *) ac_try_echo=$ac_try;; 4843esac 4844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4845 (eval "$ac_link") 2>conftest.er1 4846 ac_status=$? 4847 grep -v '^ *+' conftest.er1 >conftest.err 4848 rm -f conftest.er1 4849 cat conftest.err >&5 4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4851 (exit $ac_status); } && { 4852 test -z "$ac_c_werror_flag" || 4853 test ! -s conftest.err 4854 } && test -s conftest$ac_exeext && 4855 $as_test_x conftest$ac_exeext; then 4856 ac_cv_func_setsockopt=yes 4857else 4858 echo "$as_me: failed program was:" >&5 4859sed 's/^/| /' conftest.$ac_ext >&5 4860 4861 ac_cv_func_setsockopt=no 4862fi 4863 4864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4865 conftest$ac_exeext conftest.$ac_ext 4866fi 4867{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4868echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 4869if test $ac_cv_func_setsockopt = yes; then 4870 : 4871else 4872 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4873echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 4874if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4875 echo $ECHO_N "(cached) $ECHO_C" >&6 4876else 4877 ac_check_lib_save_LIBS=$LIBS 4878LIBS="-lsocket $LIBS" 4879cat >conftest.$ac_ext <<_ACEOF 4880/* confdefs.h. */ 4881_ACEOF 4882cat confdefs.h >>conftest.$ac_ext 4883cat >>conftest.$ac_ext <<_ACEOF 4884/* end confdefs.h. */ 4885 4886/* Override any GCC internal prototype to avoid an error. 4887 Use char because int might match the return type of a GCC 4888 builtin and then its argument prototype would still apply. */ 4889#ifdef __cplusplus 4890extern "C" 4891#endif 4892char setsockopt (); 4893int 4894main () 4895{ 4896return setsockopt (); 4897 ; 4898 return 0; 4899} 4900_ACEOF 4901rm -f conftest.$ac_objext conftest$ac_exeext 4902if { (ac_try="$ac_link" 4903case "(($ac_try" in 4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4905 *) ac_try_echo=$ac_try;; 4906esac 4907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4908 (eval "$ac_link") 2>conftest.er1 4909 ac_status=$? 4910 grep -v '^ *+' conftest.er1 >conftest.err 4911 rm -f conftest.er1 4912 cat conftest.err >&5 4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4914 (exit $ac_status); } && { 4915 test -z "$ac_c_werror_flag" || 4916 test ! -s conftest.err 4917 } && test -s conftest$ac_exeext && 4918 $as_test_x conftest$ac_exeext; then 4919 ac_cv_lib_socket_setsockopt=yes 4920else 4921 echo "$as_me: failed program was:" >&5 4922sed 's/^/| /' conftest.$ac_ext >&5 4923 4924 ac_cv_lib_socket_setsockopt=no 4925fi 4926 4927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4928 conftest$ac_exeext conftest.$ac_ext 4929LIBS=$ac_check_lib_save_LIBS 4930fi 4931{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4932echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 4933if test $ac_cv_lib_socket_setsockopt = yes; then 4934 LIBS="$LIBS -lsocket" 4935else 4936 tcl_checkBoth=1 4937fi 4938 4939fi 4940 4941 fi 4942 if test "$tcl_checkBoth" = 1; then 4943 tk_oldLibs=$LIBS 4944 LIBS="$LIBS -lsocket -lnsl" 4945 { echo "$as_me:$LINENO: checking for accept" >&5 4946echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 4947if test "${ac_cv_func_accept+set}" = set; then 4948 echo $ECHO_N "(cached) $ECHO_C" >&6 4949else 4950 cat >conftest.$ac_ext <<_ACEOF 4951/* confdefs.h. */ 4952_ACEOF 4953cat confdefs.h >>conftest.$ac_ext 4954cat >>conftest.$ac_ext <<_ACEOF 4955/* end confdefs.h. */ 4956/* Define accept to an innocuous variant, in case <limits.h> declares accept. 4957 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4958#define accept innocuous_accept 4959 4960/* System header to define __stub macros and hopefully few prototypes, 4961 which can conflict with char accept (); below. 4962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4963 <limits.h> exists even on freestanding compilers. */ 4964 4965#ifdef __STDC__ 4966# include <limits.h> 4967#else 4968# include <assert.h> 4969#endif 4970 4971#undef accept 4972 4973/* Override any GCC internal prototype to avoid an error. 4974 Use char because int might match the return type of a GCC 4975 builtin and then its argument prototype would still apply. */ 4976#ifdef __cplusplus 4977extern "C" 4978#endif 4979char accept (); 4980/* The GNU C library defines this for functions which it implements 4981 to always fail with ENOSYS. Some functions are actually named 4982 something starting with __ and the normal name is an alias. */ 4983#if defined __stub_accept || defined __stub___accept 4984choke me 4985#endif 4986 4987int 4988main () 4989{ 4990return accept (); 4991 ; 4992 return 0; 4993} 4994_ACEOF 4995rm -f conftest.$ac_objext conftest$ac_exeext 4996if { (ac_try="$ac_link" 4997case "(($ac_try" in 4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4999 *) ac_try_echo=$ac_try;; 5000esac 5001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5002 (eval "$ac_link") 2>conftest.er1 5003 ac_status=$? 5004 grep -v '^ *+' conftest.er1 >conftest.err 5005 rm -f conftest.er1 5006 cat conftest.err >&5 5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5008 (exit $ac_status); } && { 5009 test -z "$ac_c_werror_flag" || 5010 test ! -s conftest.err 5011 } && test -s conftest$ac_exeext && 5012 $as_test_x conftest$ac_exeext; then 5013 ac_cv_func_accept=yes 5014else 5015 echo "$as_me: failed program was:" >&5 5016sed 's/^/| /' conftest.$ac_ext >&5 5017 5018 ac_cv_func_accept=no 5019fi 5020 5021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5022 conftest$ac_exeext conftest.$ac_ext 5023fi 5024{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5025echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5026if test $ac_cv_func_accept = yes; then 5027 tcl_checkNsl=0 5028else 5029 LIBS=$tk_oldLibs 5030fi 5031 5032 fi 5033 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5034echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5035if test "${ac_cv_func_gethostbyname+set}" = set; then 5036 echo $ECHO_N "(cached) $ECHO_C" >&6 5037else 5038 cat >conftest.$ac_ext <<_ACEOF 5039/* confdefs.h. */ 5040_ACEOF 5041cat confdefs.h >>conftest.$ac_ext 5042cat >>conftest.$ac_ext <<_ACEOF 5043/* end confdefs.h. */ 5044/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5045 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5046#define gethostbyname innocuous_gethostbyname 5047 5048/* System header to define __stub macros and hopefully few prototypes, 5049 which can conflict with char gethostbyname (); below. 5050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5051 <limits.h> exists even on freestanding compilers. */ 5052 5053#ifdef __STDC__ 5054# include <limits.h> 5055#else 5056# include <assert.h> 5057#endif 5058 5059#undef gethostbyname 5060 5061/* Override any GCC internal prototype to avoid an error. 5062 Use char because int might match the return type of a GCC 5063 builtin and then its argument prototype would still apply. */ 5064#ifdef __cplusplus 5065extern "C" 5066#endif 5067char gethostbyname (); 5068/* The GNU C library defines this for functions which it implements 5069 to always fail with ENOSYS. Some functions are actually named 5070 something starting with __ and the normal name is an alias. */ 5071#if defined __stub_gethostbyname || defined __stub___gethostbyname 5072choke me 5073#endif 5074 5075int 5076main () 5077{ 5078return gethostbyname (); 5079 ; 5080 return 0; 5081} 5082_ACEOF 5083rm -f conftest.$ac_objext conftest$ac_exeext 5084if { (ac_try="$ac_link" 5085case "(($ac_try" in 5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5087 *) ac_try_echo=$ac_try;; 5088esac 5089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5090 (eval "$ac_link") 2>conftest.er1 5091 ac_status=$? 5092 grep -v '^ *+' conftest.er1 >conftest.err 5093 rm -f conftest.er1 5094 cat conftest.err >&5 5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5096 (exit $ac_status); } && { 5097 test -z "$ac_c_werror_flag" || 5098 test ! -s conftest.err 5099 } && test -s conftest$ac_exeext && 5100 $as_test_x conftest$ac_exeext; then 5101 ac_cv_func_gethostbyname=yes 5102else 5103 echo "$as_me: failed program was:" >&5 5104sed 's/^/| /' conftest.$ac_ext >&5 5105 5106 ac_cv_func_gethostbyname=no 5107fi 5108 5109rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5110 conftest$ac_exeext conftest.$ac_ext 5111fi 5112{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5113echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5114if test $ac_cv_func_gethostbyname = yes; then 5115 : 5116else 5117 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5118echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5119if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5120 echo $ECHO_N "(cached) $ECHO_C" >&6 5121else 5122 ac_check_lib_save_LIBS=$LIBS 5123LIBS="-lnsl $LIBS" 5124cat >conftest.$ac_ext <<_ACEOF 5125/* confdefs.h. */ 5126_ACEOF 5127cat confdefs.h >>conftest.$ac_ext 5128cat >>conftest.$ac_ext <<_ACEOF 5129/* end confdefs.h. */ 5130 5131/* Override any GCC internal prototype to avoid an error. 5132 Use char because int might match the return type of a GCC 5133 builtin and then its argument prototype would still apply. */ 5134#ifdef __cplusplus 5135extern "C" 5136#endif 5137char gethostbyname (); 5138int 5139main () 5140{ 5141return gethostbyname (); 5142 ; 5143 return 0; 5144} 5145_ACEOF 5146rm -f conftest.$ac_objext conftest$ac_exeext 5147if { (ac_try="$ac_link" 5148case "(($ac_try" in 5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5150 *) ac_try_echo=$ac_try;; 5151esac 5152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5153 (eval "$ac_link") 2>conftest.er1 5154 ac_status=$? 5155 grep -v '^ *+' conftest.er1 >conftest.err 5156 rm -f conftest.er1 5157 cat conftest.err >&5 5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5159 (exit $ac_status); } && { 5160 test -z "$ac_c_werror_flag" || 5161 test ! -s conftest.err 5162 } && test -s conftest$ac_exeext && 5163 $as_test_x conftest$ac_exeext; then 5164 ac_cv_lib_nsl_gethostbyname=yes 5165else 5166 echo "$as_me: failed program was:" >&5 5167sed 's/^/| /' conftest.$ac_ext >&5 5168 5169 ac_cv_lib_nsl_gethostbyname=no 5170fi 5171 5172rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5173 conftest$ac_exeext conftest.$ac_ext 5174LIBS=$ac_check_lib_save_LIBS 5175fi 5176{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5177echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5178if test $ac_cv_lib_nsl_gethostbyname = yes; then 5179 LIBS="$LIBS -lnsl" 5180fi 5181 5182fi 5183 5184 5185 # TEA specific: Don't perform the eval of the libraries here because 5186 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5187 5188 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5189 5190 5191 5192 5193 { echo "$as_me:$LINENO: checking dirent.h" >&5 5194echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5195if test "${tcl_cv_dirent_h+set}" = set; then 5196 echo $ECHO_N "(cached) $ECHO_C" >&6 5197else 5198 5199 cat >conftest.$ac_ext <<_ACEOF 5200/* confdefs.h. */ 5201_ACEOF 5202cat confdefs.h >>conftest.$ac_ext 5203cat >>conftest.$ac_ext <<_ACEOF 5204/* end confdefs.h. */ 5205#include <sys/types.h> 5206#include <dirent.h> 5207int 5208main () 5209{ 5210 5211#ifndef _POSIX_SOURCE 5212# ifdef __Lynx__ 5213 /* 5214 * Generate compilation error to make the test fail: Lynx headers 5215 * are only valid if really in the POSIX environment. 5216 */ 5217 5218 missing_procedure(); 5219# endif 5220#endif 5221DIR *d; 5222struct dirent *entryPtr; 5223char *p; 5224d = opendir("foobar"); 5225entryPtr = readdir(d); 5226p = entryPtr->d_name; 5227closedir(d); 5228 5229 ; 5230 return 0; 5231} 5232_ACEOF 5233rm -f conftest.$ac_objext conftest$ac_exeext 5234if { (ac_try="$ac_link" 5235case "(($ac_try" in 5236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5237 *) ac_try_echo=$ac_try;; 5238esac 5239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5240 (eval "$ac_link") 2>conftest.er1 5241 ac_status=$? 5242 grep -v '^ *+' conftest.er1 >conftest.err 5243 rm -f conftest.er1 5244 cat conftest.err >&5 5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5246 (exit $ac_status); } && { 5247 test -z "$ac_c_werror_flag" || 5248 test ! -s conftest.err 5249 } && test -s conftest$ac_exeext && 5250 $as_test_x conftest$ac_exeext; then 5251 tcl_cv_dirent_h=yes 5252else 5253 echo "$as_me: failed program was:" >&5 5254sed 's/^/| /' conftest.$ac_ext >&5 5255 5256 tcl_cv_dirent_h=no 5257fi 5258 5259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5260 conftest$ac_exeext conftest.$ac_ext 5261fi 5262{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5263echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5264 5265 if test $tcl_cv_dirent_h = no; then 5266 5267cat >>confdefs.h <<\_ACEOF 5268#define NO_DIRENT_H 1 5269_ACEOF 5270 5271 fi 5272 5273 # TEA specific: 5274 if test "${ac_cv_header_errno_h+set}" = set; then 5275 { echo "$as_me:$LINENO: checking for errno.h" >&5 5276echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5277if test "${ac_cv_header_errno_h+set}" = set; then 5278 echo $ECHO_N "(cached) $ECHO_C" >&6 5279fi 5280{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5281echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5282else 5283 # Is the header compilable? 5284{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5285echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5286cat >conftest.$ac_ext <<_ACEOF 5287/* confdefs.h. */ 5288_ACEOF 5289cat confdefs.h >>conftest.$ac_ext 5290cat >>conftest.$ac_ext <<_ACEOF 5291/* end confdefs.h. */ 5292$ac_includes_default 5293#include <errno.h> 5294_ACEOF 5295rm -f conftest.$ac_objext 5296if { (ac_try="$ac_compile" 5297case "(($ac_try" in 5298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5299 *) ac_try_echo=$ac_try;; 5300esac 5301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5302 (eval "$ac_compile") 2>conftest.er1 5303 ac_status=$? 5304 grep -v '^ *+' conftest.er1 >conftest.err 5305 rm -f conftest.er1 5306 cat conftest.err >&5 5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5308 (exit $ac_status); } && { 5309 test -z "$ac_c_werror_flag" || 5310 test ! -s conftest.err 5311 } && test -s conftest.$ac_objext; then 5312 ac_header_compiler=yes 5313else 5314 echo "$as_me: failed program was:" >&5 5315sed 's/^/| /' conftest.$ac_ext >&5 5316 5317 ac_header_compiler=no 5318fi 5319 5320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5321{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5322echo "${ECHO_T}$ac_header_compiler" >&6; } 5323 5324# Is the header present? 5325{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5326echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5327cat >conftest.$ac_ext <<_ACEOF 5328/* confdefs.h. */ 5329_ACEOF 5330cat confdefs.h >>conftest.$ac_ext 5331cat >>conftest.$ac_ext <<_ACEOF 5332/* end confdefs.h. */ 5333#include <errno.h> 5334_ACEOF 5335if { (ac_try="$ac_cpp conftest.$ac_ext" 5336case "(($ac_try" in 5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5338 *) ac_try_echo=$ac_try;; 5339esac 5340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5342 ac_status=$? 5343 grep -v '^ *+' conftest.er1 >conftest.err 5344 rm -f conftest.er1 5345 cat conftest.err >&5 5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5347 (exit $ac_status); } >/dev/null && { 5348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5349 test ! -s conftest.err 5350 }; then 5351 ac_header_preproc=yes 5352else 5353 echo "$as_me: failed program was:" >&5 5354sed 's/^/| /' conftest.$ac_ext >&5 5355 5356 ac_header_preproc=no 5357fi 5358 5359rm -f conftest.err conftest.$ac_ext 5360{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5361echo "${ECHO_T}$ac_header_preproc" >&6; } 5362 5363# So? What about this header? 5364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5365 yes:no: ) 5366 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5367echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5368 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5369echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5370 ac_header_preproc=yes 5371 ;; 5372 no:yes:* ) 5373 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5374echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5375 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5376echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5377 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5378echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5379 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5380echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5381 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5382echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5383 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5384echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5385 ( cat <<\_ASBOX 5386## ---------------------------------------------------------- ## 5387## Report this to http://sourceforge.net/projects/tclresource ## 5388## ---------------------------------------------------------- ## 5389_ASBOX 5390 ) | sed "s/^/$as_me: WARNING: /" >&2 5391 ;; 5392esac 5393{ echo "$as_me:$LINENO: checking for errno.h" >&5 5394echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5395if test "${ac_cv_header_errno_h+set}" = set; then 5396 echo $ECHO_N "(cached) $ECHO_C" >&6 5397else 5398 ac_cv_header_errno_h=$ac_header_preproc 5399fi 5400{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5401echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5402 5403fi 5404if test $ac_cv_header_errno_h = yes; then 5405 : 5406else 5407 5408cat >>confdefs.h <<\_ACEOF 5409#define NO_ERRNO_H 1 5410_ACEOF 5411 5412fi 5413 5414 5415 if test "${ac_cv_header_float_h+set}" = set; then 5416 { echo "$as_me:$LINENO: checking for float.h" >&5 5417echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5418if test "${ac_cv_header_float_h+set}" = set; then 5419 echo $ECHO_N "(cached) $ECHO_C" >&6 5420fi 5421{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5422echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5423else 5424 # Is the header compilable? 5425{ echo "$as_me:$LINENO: checking float.h usability" >&5 5426echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5427cat >conftest.$ac_ext <<_ACEOF 5428/* confdefs.h. */ 5429_ACEOF 5430cat confdefs.h >>conftest.$ac_ext 5431cat >>conftest.$ac_ext <<_ACEOF 5432/* end confdefs.h. */ 5433$ac_includes_default 5434#include <float.h> 5435_ACEOF 5436rm -f conftest.$ac_objext 5437if { (ac_try="$ac_compile" 5438case "(($ac_try" in 5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5440 *) ac_try_echo=$ac_try;; 5441esac 5442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5443 (eval "$ac_compile") 2>conftest.er1 5444 ac_status=$? 5445 grep -v '^ *+' conftest.er1 >conftest.err 5446 rm -f conftest.er1 5447 cat conftest.err >&5 5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5449 (exit $ac_status); } && { 5450 test -z "$ac_c_werror_flag" || 5451 test ! -s conftest.err 5452 } && test -s conftest.$ac_objext; then 5453 ac_header_compiler=yes 5454else 5455 echo "$as_me: failed program was:" >&5 5456sed 's/^/| /' conftest.$ac_ext >&5 5457 5458 ac_header_compiler=no 5459fi 5460 5461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5462{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5463echo "${ECHO_T}$ac_header_compiler" >&6; } 5464 5465# Is the header present? 5466{ echo "$as_me:$LINENO: checking float.h presence" >&5 5467echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5468cat >conftest.$ac_ext <<_ACEOF 5469/* confdefs.h. */ 5470_ACEOF 5471cat confdefs.h >>conftest.$ac_ext 5472cat >>conftest.$ac_ext <<_ACEOF 5473/* end confdefs.h. */ 5474#include <float.h> 5475_ACEOF 5476if { (ac_try="$ac_cpp conftest.$ac_ext" 5477case "(($ac_try" in 5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5479 *) ac_try_echo=$ac_try;; 5480esac 5481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5483 ac_status=$? 5484 grep -v '^ *+' conftest.er1 >conftest.err 5485 rm -f conftest.er1 5486 cat conftest.err >&5 5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5488 (exit $ac_status); } >/dev/null && { 5489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5490 test ! -s conftest.err 5491 }; then 5492 ac_header_preproc=yes 5493else 5494 echo "$as_me: failed program was:" >&5 5495sed 's/^/| /' conftest.$ac_ext >&5 5496 5497 ac_header_preproc=no 5498fi 5499 5500rm -f conftest.err conftest.$ac_ext 5501{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5502echo "${ECHO_T}$ac_header_preproc" >&6; } 5503 5504# So? What about this header? 5505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5506 yes:no: ) 5507 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5508echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5509 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5510echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5511 ac_header_preproc=yes 5512 ;; 5513 no:yes:* ) 5514 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5515echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5516 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5517echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5518 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5519echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5520 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5521echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5522 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5523echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5524 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5525echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5526 ( cat <<\_ASBOX 5527## ---------------------------------------------------------- ## 5528## Report this to http://sourceforge.net/projects/tclresource ## 5529## ---------------------------------------------------------- ## 5530_ASBOX 5531 ) | sed "s/^/$as_me: WARNING: /" >&2 5532 ;; 5533esac 5534{ echo "$as_me:$LINENO: checking for float.h" >&5 5535echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5536if test "${ac_cv_header_float_h+set}" = set; then 5537 echo $ECHO_N "(cached) $ECHO_C" >&6 5538else 5539 ac_cv_header_float_h=$ac_header_preproc 5540fi 5541{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5542echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5543 5544fi 5545if test $ac_cv_header_float_h = yes; then 5546 : 5547else 5548 5549cat >>confdefs.h <<\_ACEOF 5550#define NO_FLOAT_H 1 5551_ACEOF 5552 5553fi 5554 5555 5556 if test "${ac_cv_header_values_h+set}" = set; then 5557 { echo "$as_me:$LINENO: checking for values.h" >&5 5558echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5559if test "${ac_cv_header_values_h+set}" = set; then 5560 echo $ECHO_N "(cached) $ECHO_C" >&6 5561fi 5562{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5563echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5564else 5565 # Is the header compilable? 5566{ echo "$as_me:$LINENO: checking values.h usability" >&5 5567echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5568cat >conftest.$ac_ext <<_ACEOF 5569/* confdefs.h. */ 5570_ACEOF 5571cat confdefs.h >>conftest.$ac_ext 5572cat >>conftest.$ac_ext <<_ACEOF 5573/* end confdefs.h. */ 5574$ac_includes_default 5575#include <values.h> 5576_ACEOF 5577rm -f conftest.$ac_objext 5578if { (ac_try="$ac_compile" 5579case "(($ac_try" in 5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5581 *) ac_try_echo=$ac_try;; 5582esac 5583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5584 (eval "$ac_compile") 2>conftest.er1 5585 ac_status=$? 5586 grep -v '^ *+' conftest.er1 >conftest.err 5587 rm -f conftest.er1 5588 cat conftest.err >&5 5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5590 (exit $ac_status); } && { 5591 test -z "$ac_c_werror_flag" || 5592 test ! -s conftest.err 5593 } && test -s conftest.$ac_objext; then 5594 ac_header_compiler=yes 5595else 5596 echo "$as_me: failed program was:" >&5 5597sed 's/^/| /' conftest.$ac_ext >&5 5598 5599 ac_header_compiler=no 5600fi 5601 5602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5603{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5604echo "${ECHO_T}$ac_header_compiler" >&6; } 5605 5606# Is the header present? 5607{ echo "$as_me:$LINENO: checking values.h presence" >&5 5608echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5609cat >conftest.$ac_ext <<_ACEOF 5610/* confdefs.h. */ 5611_ACEOF 5612cat confdefs.h >>conftest.$ac_ext 5613cat >>conftest.$ac_ext <<_ACEOF 5614/* end confdefs.h. */ 5615#include <values.h> 5616_ACEOF 5617if { (ac_try="$ac_cpp conftest.$ac_ext" 5618case "(($ac_try" in 5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5620 *) ac_try_echo=$ac_try;; 5621esac 5622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5624 ac_status=$? 5625 grep -v '^ *+' conftest.er1 >conftest.err 5626 rm -f conftest.er1 5627 cat conftest.err >&5 5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5629 (exit $ac_status); } >/dev/null && { 5630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5631 test ! -s conftest.err 5632 }; then 5633 ac_header_preproc=yes 5634else 5635 echo "$as_me: failed program was:" >&5 5636sed 's/^/| /' conftest.$ac_ext >&5 5637 5638 ac_header_preproc=no 5639fi 5640 5641rm -f conftest.err conftest.$ac_ext 5642{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5643echo "${ECHO_T}$ac_header_preproc" >&6; } 5644 5645# So? What about this header? 5646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5647 yes:no: ) 5648 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5649echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5650 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5651echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5652 ac_header_preproc=yes 5653 ;; 5654 no:yes:* ) 5655 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5656echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5657 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5658echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5659 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5660echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5661 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5662echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5663 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5664echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5665 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5666echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5667 ( cat <<\_ASBOX 5668## ---------------------------------------------------------- ## 5669## Report this to http://sourceforge.net/projects/tclresource ## 5670## ---------------------------------------------------------- ## 5671_ASBOX 5672 ) | sed "s/^/$as_me: WARNING: /" >&2 5673 ;; 5674esac 5675{ echo "$as_me:$LINENO: checking for values.h" >&5 5676echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5677if test "${ac_cv_header_values_h+set}" = set; then 5678 echo $ECHO_N "(cached) $ECHO_C" >&6 5679else 5680 ac_cv_header_values_h=$ac_header_preproc 5681fi 5682{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5683echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5684 5685fi 5686if test $ac_cv_header_values_h = yes; then 5687 : 5688else 5689 5690cat >>confdefs.h <<\_ACEOF 5691#define NO_VALUES_H 1 5692_ACEOF 5693 5694fi 5695 5696 5697 if test "${ac_cv_header_limits_h+set}" = set; then 5698 { echo "$as_me:$LINENO: checking for limits.h" >&5 5699echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5700if test "${ac_cv_header_limits_h+set}" = set; then 5701 echo $ECHO_N "(cached) $ECHO_C" >&6 5702fi 5703{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5704echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5705else 5706 # Is the header compilable? 5707{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5708echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5709cat >conftest.$ac_ext <<_ACEOF 5710/* confdefs.h. */ 5711_ACEOF 5712cat confdefs.h >>conftest.$ac_ext 5713cat >>conftest.$ac_ext <<_ACEOF 5714/* end confdefs.h. */ 5715$ac_includes_default 5716#include <limits.h> 5717_ACEOF 5718rm -f conftest.$ac_objext 5719if { (ac_try="$ac_compile" 5720case "(($ac_try" in 5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5722 *) ac_try_echo=$ac_try;; 5723esac 5724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5725 (eval "$ac_compile") 2>conftest.er1 5726 ac_status=$? 5727 grep -v '^ *+' conftest.er1 >conftest.err 5728 rm -f conftest.er1 5729 cat conftest.err >&5 5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5731 (exit $ac_status); } && { 5732 test -z "$ac_c_werror_flag" || 5733 test ! -s conftest.err 5734 } && test -s conftest.$ac_objext; then 5735 ac_header_compiler=yes 5736else 5737 echo "$as_me: failed program was:" >&5 5738sed 's/^/| /' conftest.$ac_ext >&5 5739 5740 ac_header_compiler=no 5741fi 5742 5743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5744{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5745echo "${ECHO_T}$ac_header_compiler" >&6; } 5746 5747# Is the header present? 5748{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5749echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5750cat >conftest.$ac_ext <<_ACEOF 5751/* confdefs.h. */ 5752_ACEOF 5753cat confdefs.h >>conftest.$ac_ext 5754cat >>conftest.$ac_ext <<_ACEOF 5755/* end confdefs.h. */ 5756#include <limits.h> 5757_ACEOF 5758if { (ac_try="$ac_cpp conftest.$ac_ext" 5759case "(($ac_try" in 5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5761 *) ac_try_echo=$ac_try;; 5762esac 5763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && { 5771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5772 test ! -s conftest.err 5773 }; then 5774 ac_header_preproc=yes 5775else 5776 echo "$as_me: failed program was:" >&5 5777sed 's/^/| /' conftest.$ac_ext >&5 5778 5779 ac_header_preproc=no 5780fi 5781 5782rm -f conftest.err conftest.$ac_ext 5783{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5784echo "${ECHO_T}$ac_header_preproc" >&6; } 5785 5786# So? What about this header? 5787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5788 yes:no: ) 5789 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5790echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5791 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5792echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5793 ac_header_preproc=yes 5794 ;; 5795 no:yes:* ) 5796 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5797echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5798 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5799echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5800 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5801echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5802 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5803echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5804 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5805echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5806 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5807echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5808 ( cat <<\_ASBOX 5809## ---------------------------------------------------------- ## 5810## Report this to http://sourceforge.net/projects/tclresource ## 5811## ---------------------------------------------------------- ## 5812_ASBOX 5813 ) | sed "s/^/$as_me: WARNING: /" >&2 5814 ;; 5815esac 5816{ echo "$as_me:$LINENO: checking for limits.h" >&5 5817echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5818if test "${ac_cv_header_limits_h+set}" = set; then 5819 echo $ECHO_N "(cached) $ECHO_C" >&6 5820else 5821 ac_cv_header_limits_h=$ac_header_preproc 5822fi 5823{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5824echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5825 5826fi 5827if test $ac_cv_header_limits_h = yes; then 5828 5829cat >>confdefs.h <<\_ACEOF 5830#define HAVE_LIMITS_H 1 5831_ACEOF 5832 5833else 5834 5835cat >>confdefs.h <<\_ACEOF 5836#define NO_LIMITS_H 1 5837_ACEOF 5838 5839fi 5840 5841 5842 if test "${ac_cv_header_stdlib_h+set}" = set; then 5843 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 5844echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5845if test "${ac_cv_header_stdlib_h+set}" = set; then 5846 echo $ECHO_N "(cached) $ECHO_C" >&6 5847fi 5848{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5849echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5850else 5851 # Is the header compilable? 5852{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5853echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 5854cat >conftest.$ac_ext <<_ACEOF 5855/* confdefs.h. */ 5856_ACEOF 5857cat confdefs.h >>conftest.$ac_ext 5858cat >>conftest.$ac_ext <<_ACEOF 5859/* end confdefs.h. */ 5860$ac_includes_default 5861#include <stdlib.h> 5862_ACEOF 5863rm -f conftest.$ac_objext 5864if { (ac_try="$ac_compile" 5865case "(($ac_try" in 5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5867 *) ac_try_echo=$ac_try;; 5868esac 5869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5870 (eval "$ac_compile") 2>conftest.er1 5871 ac_status=$? 5872 grep -v '^ *+' conftest.er1 >conftest.err 5873 rm -f conftest.er1 5874 cat conftest.err >&5 5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5876 (exit $ac_status); } && { 5877 test -z "$ac_c_werror_flag" || 5878 test ! -s conftest.err 5879 } && test -s conftest.$ac_objext; then 5880 ac_header_compiler=yes 5881else 5882 echo "$as_me: failed program was:" >&5 5883sed 's/^/| /' conftest.$ac_ext >&5 5884 5885 ac_header_compiler=no 5886fi 5887 5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5889{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5890echo "${ECHO_T}$ac_header_compiler" >&6; } 5891 5892# Is the header present? 5893{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5894echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 5895cat >conftest.$ac_ext <<_ACEOF 5896/* confdefs.h. */ 5897_ACEOF 5898cat confdefs.h >>conftest.$ac_ext 5899cat >>conftest.$ac_ext <<_ACEOF 5900/* end confdefs.h. */ 5901#include <stdlib.h> 5902_ACEOF 5903if { (ac_try="$ac_cpp conftest.$ac_ext" 5904case "(($ac_try" in 5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5906 *) ac_try_echo=$ac_try;; 5907esac 5908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5910 ac_status=$? 5911 grep -v '^ *+' conftest.er1 >conftest.err 5912 rm -f conftest.er1 5913 cat conftest.err >&5 5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5915 (exit $ac_status); } >/dev/null && { 5916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5917 test ! -s conftest.err 5918 }; then 5919 ac_header_preproc=yes 5920else 5921 echo "$as_me: failed program was:" >&5 5922sed 's/^/| /' conftest.$ac_ext >&5 5923 5924 ac_header_preproc=no 5925fi 5926 5927rm -f conftest.err conftest.$ac_ext 5928{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5929echo "${ECHO_T}$ac_header_preproc" >&6; } 5930 5931# So? What about this header? 5932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5933 yes:no: ) 5934 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5935echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5936 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5937echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5938 ac_header_preproc=yes 5939 ;; 5940 no:yes:* ) 5941 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5942echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5943 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5944echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5945 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5946echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5947 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5948echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5949 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5950echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5951 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5952echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5953 ( cat <<\_ASBOX 5954## ---------------------------------------------------------- ## 5955## Report this to http://sourceforge.net/projects/tclresource ## 5956## ---------------------------------------------------------- ## 5957_ASBOX 5958 ) | sed "s/^/$as_me: WARNING: /" >&2 5959 ;; 5960esac 5961{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 5962echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5963if test "${ac_cv_header_stdlib_h+set}" = set; then 5964 echo $ECHO_N "(cached) $ECHO_C" >&6 5965else 5966 ac_cv_header_stdlib_h=$ac_header_preproc 5967fi 5968{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5969echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5970 5971fi 5972if test $ac_cv_header_stdlib_h = yes; then 5973 tcl_ok=1 5974else 5975 tcl_ok=0 5976fi 5977 5978 5979 cat >conftest.$ac_ext <<_ACEOF 5980/* confdefs.h. */ 5981_ACEOF 5982cat confdefs.h >>conftest.$ac_ext 5983cat >>conftest.$ac_ext <<_ACEOF 5984/* end confdefs.h. */ 5985#include <stdlib.h> 5986 5987_ACEOF 5988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5989 $EGREP "strtol" >/dev/null 2>&1; then 5990 : 5991else 5992 tcl_ok=0 5993fi 5994rm -f -r conftest* 5995 5996 cat >conftest.$ac_ext <<_ACEOF 5997/* confdefs.h. */ 5998_ACEOF 5999cat confdefs.h >>conftest.$ac_ext 6000cat >>conftest.$ac_ext <<_ACEOF 6001/* end confdefs.h. */ 6002#include <stdlib.h> 6003 6004_ACEOF 6005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6006 $EGREP "strtoul" >/dev/null 2>&1; then 6007 : 6008else 6009 tcl_ok=0 6010fi 6011rm -f -r conftest* 6012 6013 cat >conftest.$ac_ext <<_ACEOF 6014/* confdefs.h. */ 6015_ACEOF 6016cat confdefs.h >>conftest.$ac_ext 6017cat >>conftest.$ac_ext <<_ACEOF 6018/* end confdefs.h. */ 6019#include <stdlib.h> 6020 6021_ACEOF 6022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6023 $EGREP "strtod" >/dev/null 2>&1; then 6024 : 6025else 6026 tcl_ok=0 6027fi 6028rm -f -r conftest* 6029 6030 if test $tcl_ok = 0; then 6031 6032cat >>confdefs.h <<\_ACEOF 6033#define NO_STDLIB_H 1 6034_ACEOF 6035 6036 fi 6037 if test "${ac_cv_header_string_h+set}" = set; then 6038 { echo "$as_me:$LINENO: checking for string.h" >&5 6039echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6040if test "${ac_cv_header_string_h+set}" = set; then 6041 echo $ECHO_N "(cached) $ECHO_C" >&6 6042fi 6043{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6044echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6045else 6046 # Is the header compilable? 6047{ echo "$as_me:$LINENO: checking string.h usability" >&5 6048echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6049cat >conftest.$ac_ext <<_ACEOF 6050/* confdefs.h. */ 6051_ACEOF 6052cat confdefs.h >>conftest.$ac_ext 6053cat >>conftest.$ac_ext <<_ACEOF 6054/* end confdefs.h. */ 6055$ac_includes_default 6056#include <string.h> 6057_ACEOF 6058rm -f conftest.$ac_objext 6059if { (ac_try="$ac_compile" 6060case "(($ac_try" in 6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6062 *) ac_try_echo=$ac_try;; 6063esac 6064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6065 (eval "$ac_compile") 2>conftest.er1 6066 ac_status=$? 6067 grep -v '^ *+' conftest.er1 >conftest.err 6068 rm -f conftest.er1 6069 cat conftest.err >&5 6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6071 (exit $ac_status); } && { 6072 test -z "$ac_c_werror_flag" || 6073 test ! -s conftest.err 6074 } && test -s conftest.$ac_objext; then 6075 ac_header_compiler=yes 6076else 6077 echo "$as_me: failed program was:" >&5 6078sed 's/^/| /' conftest.$ac_ext >&5 6079 6080 ac_header_compiler=no 6081fi 6082 6083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6084{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6085echo "${ECHO_T}$ac_header_compiler" >&6; } 6086 6087# Is the header present? 6088{ echo "$as_me:$LINENO: checking string.h presence" >&5 6089echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6090cat >conftest.$ac_ext <<_ACEOF 6091/* confdefs.h. */ 6092_ACEOF 6093cat confdefs.h >>conftest.$ac_ext 6094cat >>conftest.$ac_ext <<_ACEOF 6095/* end confdefs.h. */ 6096#include <string.h> 6097_ACEOF 6098if { (ac_try="$ac_cpp conftest.$ac_ext" 6099case "(($ac_try" in 6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6101 *) ac_try_echo=$ac_try;; 6102esac 6103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6105 ac_status=$? 6106 grep -v '^ *+' conftest.er1 >conftest.err 6107 rm -f conftest.er1 6108 cat conftest.err >&5 6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6110 (exit $ac_status); } >/dev/null && { 6111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6112 test ! -s conftest.err 6113 }; then 6114 ac_header_preproc=yes 6115else 6116 echo "$as_me: failed program was:" >&5 6117sed 's/^/| /' conftest.$ac_ext >&5 6118 6119 ac_header_preproc=no 6120fi 6121 6122rm -f conftest.err conftest.$ac_ext 6123{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6124echo "${ECHO_T}$ac_header_preproc" >&6; } 6125 6126# So? What about this header? 6127case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6128 yes:no: ) 6129 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6130echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6131 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6132echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6133 ac_header_preproc=yes 6134 ;; 6135 no:yes:* ) 6136 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6137echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6138 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6139echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6140 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6141echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6142 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6143echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6144 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6145echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6146 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6147echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6148 ( cat <<\_ASBOX 6149## ---------------------------------------------------------- ## 6150## Report this to http://sourceforge.net/projects/tclresource ## 6151## ---------------------------------------------------------- ## 6152_ASBOX 6153 ) | sed "s/^/$as_me: WARNING: /" >&2 6154 ;; 6155esac 6156{ echo "$as_me:$LINENO: checking for string.h" >&5 6157echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6158if test "${ac_cv_header_string_h+set}" = set; then 6159 echo $ECHO_N "(cached) $ECHO_C" >&6 6160else 6161 ac_cv_header_string_h=$ac_header_preproc 6162fi 6163{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6164echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6165 6166fi 6167if test $ac_cv_header_string_h = yes; then 6168 tcl_ok=1 6169else 6170 tcl_ok=0 6171fi 6172 6173 6174 cat >conftest.$ac_ext <<_ACEOF 6175/* confdefs.h. */ 6176_ACEOF 6177cat confdefs.h >>conftest.$ac_ext 6178cat >>conftest.$ac_ext <<_ACEOF 6179/* end confdefs.h. */ 6180#include <string.h> 6181 6182_ACEOF 6183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6184 $EGREP "strstr" >/dev/null 2>&1; then 6185 : 6186else 6187 tcl_ok=0 6188fi 6189rm -f -r conftest* 6190 6191 cat >conftest.$ac_ext <<_ACEOF 6192/* confdefs.h. */ 6193_ACEOF 6194cat confdefs.h >>conftest.$ac_ext 6195cat >>conftest.$ac_ext <<_ACEOF 6196/* end confdefs.h. */ 6197#include <string.h> 6198 6199_ACEOF 6200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6201 $EGREP "strerror" >/dev/null 2>&1; then 6202 : 6203else 6204 tcl_ok=0 6205fi 6206rm -f -r conftest* 6207 6208 6209 # See also memmove check below for a place where NO_STRING_H can be 6210 # set and why. 6211 6212 if test $tcl_ok = 0; then 6213 6214cat >>confdefs.h <<\_ACEOF 6215#define NO_STRING_H 1 6216_ACEOF 6217 6218 fi 6219 6220 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6221 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6222echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6223if test "${ac_cv_header_sys_wait_h+set}" = set; then 6224 echo $ECHO_N "(cached) $ECHO_C" >&6 6225fi 6226{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6227echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6228else 6229 # Is the header compilable? 6230{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6231echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6232cat >conftest.$ac_ext <<_ACEOF 6233/* confdefs.h. */ 6234_ACEOF 6235cat confdefs.h >>conftest.$ac_ext 6236cat >>conftest.$ac_ext <<_ACEOF 6237/* end confdefs.h. */ 6238$ac_includes_default 6239#include <sys/wait.h> 6240_ACEOF 6241rm -f conftest.$ac_objext 6242if { (ac_try="$ac_compile" 6243case "(($ac_try" in 6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6245 *) ac_try_echo=$ac_try;; 6246esac 6247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6248 (eval "$ac_compile") 2>conftest.er1 6249 ac_status=$? 6250 grep -v '^ *+' conftest.er1 >conftest.err 6251 rm -f conftest.er1 6252 cat conftest.err >&5 6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6254 (exit $ac_status); } && { 6255 test -z "$ac_c_werror_flag" || 6256 test ! -s conftest.err 6257 } && test -s conftest.$ac_objext; then 6258 ac_header_compiler=yes 6259else 6260 echo "$as_me: failed program was:" >&5 6261sed 's/^/| /' conftest.$ac_ext >&5 6262 6263 ac_header_compiler=no 6264fi 6265 6266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6267{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6268echo "${ECHO_T}$ac_header_compiler" >&6; } 6269 6270# Is the header present? 6271{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6272echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6273cat >conftest.$ac_ext <<_ACEOF 6274/* confdefs.h. */ 6275_ACEOF 6276cat confdefs.h >>conftest.$ac_ext 6277cat >>conftest.$ac_ext <<_ACEOF 6278/* end confdefs.h. */ 6279#include <sys/wait.h> 6280_ACEOF 6281if { (ac_try="$ac_cpp conftest.$ac_ext" 6282case "(($ac_try" in 6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6284 *) ac_try_echo=$ac_try;; 6285esac 6286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6288 ac_status=$? 6289 grep -v '^ *+' conftest.er1 >conftest.err 6290 rm -f conftest.er1 6291 cat conftest.err >&5 6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6293 (exit $ac_status); } >/dev/null && { 6294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6295 test ! -s conftest.err 6296 }; then 6297 ac_header_preproc=yes 6298else 6299 echo "$as_me: failed program was:" >&5 6300sed 's/^/| /' conftest.$ac_ext >&5 6301 6302 ac_header_preproc=no 6303fi 6304 6305rm -f conftest.err conftest.$ac_ext 6306{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6307echo "${ECHO_T}$ac_header_preproc" >&6; } 6308 6309# So? What about this header? 6310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6311 yes:no: ) 6312 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6313echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6314 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6315echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6316 ac_header_preproc=yes 6317 ;; 6318 no:yes:* ) 6319 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6320echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6321 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6322echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6323 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6324echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6325 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6326echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6327 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6328echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6329 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6330echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6331 ( cat <<\_ASBOX 6332## ---------------------------------------------------------- ## 6333## Report this to http://sourceforge.net/projects/tclresource ## 6334## ---------------------------------------------------------- ## 6335_ASBOX 6336 ) | sed "s/^/$as_me: WARNING: /" >&2 6337 ;; 6338esac 6339{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6340echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6341if test "${ac_cv_header_sys_wait_h+set}" = set; then 6342 echo $ECHO_N "(cached) $ECHO_C" >&6 6343else 6344 ac_cv_header_sys_wait_h=$ac_header_preproc 6345fi 6346{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6347echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6348 6349fi 6350if test $ac_cv_header_sys_wait_h = yes; then 6351 : 6352else 6353 6354cat >>confdefs.h <<\_ACEOF 6355#define NO_SYS_WAIT_H 1 6356_ACEOF 6357 6358fi 6359 6360 6361 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6362 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6363echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6364if test "${ac_cv_header_dlfcn_h+set}" = set; then 6365 echo $ECHO_N "(cached) $ECHO_C" >&6 6366fi 6367{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6368echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6369else 6370 # Is the header compilable? 6371{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6372echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6373cat >conftest.$ac_ext <<_ACEOF 6374/* confdefs.h. */ 6375_ACEOF 6376cat confdefs.h >>conftest.$ac_ext 6377cat >>conftest.$ac_ext <<_ACEOF 6378/* end confdefs.h. */ 6379$ac_includes_default 6380#include <dlfcn.h> 6381_ACEOF 6382rm -f conftest.$ac_objext 6383if { (ac_try="$ac_compile" 6384case "(($ac_try" in 6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6386 *) ac_try_echo=$ac_try;; 6387esac 6388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6389 (eval "$ac_compile") 2>conftest.er1 6390 ac_status=$? 6391 grep -v '^ *+' conftest.er1 >conftest.err 6392 rm -f conftest.er1 6393 cat conftest.err >&5 6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6395 (exit $ac_status); } && { 6396 test -z "$ac_c_werror_flag" || 6397 test ! -s conftest.err 6398 } && test -s conftest.$ac_objext; then 6399 ac_header_compiler=yes 6400else 6401 echo "$as_me: failed program was:" >&5 6402sed 's/^/| /' conftest.$ac_ext >&5 6403 6404 ac_header_compiler=no 6405fi 6406 6407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6408{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6409echo "${ECHO_T}$ac_header_compiler" >&6; } 6410 6411# Is the header present? 6412{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6413echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6414cat >conftest.$ac_ext <<_ACEOF 6415/* confdefs.h. */ 6416_ACEOF 6417cat confdefs.h >>conftest.$ac_ext 6418cat >>conftest.$ac_ext <<_ACEOF 6419/* end confdefs.h. */ 6420#include <dlfcn.h> 6421_ACEOF 6422if { (ac_try="$ac_cpp conftest.$ac_ext" 6423case "(($ac_try" in 6424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6425 *) ac_try_echo=$ac_try;; 6426esac 6427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6429 ac_status=$? 6430 grep -v '^ *+' conftest.er1 >conftest.err 6431 rm -f conftest.er1 6432 cat conftest.err >&5 6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6434 (exit $ac_status); } >/dev/null && { 6435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6436 test ! -s conftest.err 6437 }; then 6438 ac_header_preproc=yes 6439else 6440 echo "$as_me: failed program was:" >&5 6441sed 's/^/| /' conftest.$ac_ext >&5 6442 6443 ac_header_preproc=no 6444fi 6445 6446rm -f conftest.err conftest.$ac_ext 6447{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6448echo "${ECHO_T}$ac_header_preproc" >&6; } 6449 6450# So? What about this header? 6451case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6452 yes:no: ) 6453 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6454echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6455 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6456echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6457 ac_header_preproc=yes 6458 ;; 6459 no:yes:* ) 6460 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6461echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6462 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6463echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6464 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6465echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6466 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6467echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6468 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6469echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6470 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6471echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6472 ( cat <<\_ASBOX 6473## ---------------------------------------------------------- ## 6474## Report this to http://sourceforge.net/projects/tclresource ## 6475## ---------------------------------------------------------- ## 6476_ASBOX 6477 ) | sed "s/^/$as_me: WARNING: /" >&2 6478 ;; 6479esac 6480{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6481echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6482if test "${ac_cv_header_dlfcn_h+set}" = set; then 6483 echo $ECHO_N "(cached) $ECHO_C" >&6 6484else 6485 ac_cv_header_dlfcn_h=$ac_header_preproc 6486fi 6487{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6488echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6489 6490fi 6491if test $ac_cv_header_dlfcn_h = yes; then 6492 : 6493else 6494 6495cat >>confdefs.h <<\_ACEOF 6496#define NO_DLFCN_H 1 6497_ACEOF 6498 6499fi 6500 6501 6502 6503 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6504 6505for ac_header in sys/param.h 6506do 6507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6509 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6512 echo $ECHO_N "(cached) $ECHO_C" >&6 6513fi 6514ac_res=`eval echo '${'$as_ac_Header'}'` 6515 { echo "$as_me:$LINENO: result: $ac_res" >&5 6516echo "${ECHO_T}$ac_res" >&6; } 6517else 6518 # Is the header compilable? 6519{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6521cat >conftest.$ac_ext <<_ACEOF 6522/* confdefs.h. */ 6523_ACEOF 6524cat confdefs.h >>conftest.$ac_ext 6525cat >>conftest.$ac_ext <<_ACEOF 6526/* end confdefs.h. */ 6527$ac_includes_default 6528#include <$ac_header> 6529_ACEOF 6530rm -f conftest.$ac_objext 6531if { (ac_try="$ac_compile" 6532case "(($ac_try" in 6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6534 *) ac_try_echo=$ac_try;; 6535esac 6536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6537 (eval "$ac_compile") 2>conftest.er1 6538 ac_status=$? 6539 grep -v '^ *+' conftest.er1 >conftest.err 6540 rm -f conftest.er1 6541 cat conftest.err >&5 6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6543 (exit $ac_status); } && { 6544 test -z "$ac_c_werror_flag" || 6545 test ! -s conftest.err 6546 } && test -s conftest.$ac_objext; then 6547 ac_header_compiler=yes 6548else 6549 echo "$as_me: failed program was:" >&5 6550sed 's/^/| /' conftest.$ac_ext >&5 6551 6552 ac_header_compiler=no 6553fi 6554 6555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6556{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6557echo "${ECHO_T}$ac_header_compiler" >&6; } 6558 6559# Is the header present? 6560{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6561echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6562cat >conftest.$ac_ext <<_ACEOF 6563/* confdefs.h. */ 6564_ACEOF 6565cat confdefs.h >>conftest.$ac_ext 6566cat >>conftest.$ac_ext <<_ACEOF 6567/* end confdefs.h. */ 6568#include <$ac_header> 6569_ACEOF 6570if { (ac_try="$ac_cpp conftest.$ac_ext" 6571case "(($ac_try" in 6572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6573 *) ac_try_echo=$ac_try;; 6574esac 6575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6577 ac_status=$? 6578 grep -v '^ *+' conftest.er1 >conftest.err 6579 rm -f conftest.er1 6580 cat conftest.err >&5 6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6582 (exit $ac_status); } >/dev/null && { 6583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6584 test ! -s conftest.err 6585 }; then 6586 ac_header_preproc=yes 6587else 6588 echo "$as_me: failed program was:" >&5 6589sed 's/^/| /' conftest.$ac_ext >&5 6590 6591 ac_header_preproc=no 6592fi 6593 6594rm -f conftest.err conftest.$ac_ext 6595{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6596echo "${ECHO_T}$ac_header_preproc" >&6; } 6597 6598# So? What about this header? 6599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6600 yes:no: ) 6601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6602echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6604echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6605 ac_header_preproc=yes 6606 ;; 6607 no:yes:* ) 6608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6609echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6611echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6613echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6615echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6617echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6619echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6620 ( cat <<\_ASBOX 6621## ---------------------------------------------------------- ## 6622## Report this to http://sourceforge.net/projects/tclresource ## 6623## ---------------------------------------------------------- ## 6624_ASBOX 6625 ) | sed "s/^/$as_me: WARNING: /" >&2 6626 ;; 6627esac 6628{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6631 echo $ECHO_N "(cached) $ECHO_C" >&6 6632else 6633 eval "$as_ac_Header=\$ac_header_preproc" 6634fi 6635ac_res=`eval echo '${'$as_ac_Header'}'` 6636 { echo "$as_me:$LINENO: result: $ac_res" >&5 6637echo "${ECHO_T}$ac_res" >&6; } 6638 6639fi 6640if test `eval echo '${'$as_ac_Header'}'` = yes; then 6641 cat >>confdefs.h <<_ACEOF 6642#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6643_ACEOF 6644 6645fi 6646 6647done 6648 6649 6650 # Let the user call this, because if it triggers, they will 6651 # need a compat/strtod.c that is correct. Users can also 6652 # use Tcl_GetDouble(FromObj) instead. 6653 #TEA_BUGGY_STRTOD 6654 fi 6655 6656 6657#----------------------------------------------------------------------- 6658# Specify the C source files to compile in TEA_ADD_SOURCES, 6659# public headers that need to be installed in TEA_ADD_HEADERS, 6660# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6661# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6662# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6663# and PKG_TCL_SOURCES. 6664#----------------------------------------------------------------------- 6665 6666 6667 vars="tclResource.c" 6668 for i in $vars; do 6669 case $i in 6670 \$*) 6671 # allow $-var names 6672 PKG_SOURCES="$PKG_SOURCES $i" 6673 PKG_OBJECTS="$PKG_OBJECTS $i" 6674 ;; 6675 *) 6676 # check for existence - allows for generic/win/unix VPATH 6677 # To add more dirs here (like 'src'), you have to update VPATH 6678 # in Makefile.in as well 6679 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6680 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6681 -a ! -f "${srcdir}/macosx/$i" \ 6682 ; then 6683 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6684echo "$as_me: error: could not find source file '$i'" >&2;} 6685 { (exit 1); exit 1; }; } 6686 fi 6687 PKG_SOURCES="$PKG_SOURCES $i" 6688 # this assumes it is in a VPATH dir 6689 i=`basename $i` 6690 # handle user calling this before or after TEA_SETUP_COMPILER 6691 if test x"${OBJEXT}" != x ; then 6692 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6693 else 6694 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6695 fi 6696 PKG_OBJECTS="$PKG_OBJECTS $j" 6697 ;; 6698 esac 6699 done 6700 6701 6702 6703 6704 vars="" 6705 for i in $vars; do 6706 # check for existence, be strict because it is installed 6707 if test ! -f "${srcdir}/$i" ; then 6708 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6709echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6710 { (exit 1); exit 1; }; } 6711 fi 6712 PKG_HEADERS="$PKG_HEADERS $i" 6713 done 6714 6715 6716 6717 vars="" 6718 for i in $vars; do 6719 PKG_INCLUDES="$PKG_INCLUDES $i" 6720 done 6721 6722 6723 6724 vars="-framework Carbon" 6725 for i in $vars; do 6726 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6727 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6728 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6729 fi 6730 PKG_LIBS="$PKG_LIBS $i" 6731 done 6732 6733 6734 6735 PKG_CFLAGS="$PKG_CFLAGS " 6736 6737 6738 6739 vars="" 6740 for i in $vars; do 6741 # check for existence - allows for generic/win/unix VPATH 6742 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6743 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6744 -a ! -f "${srcdir}/macosx/$i" \ 6745 ; then 6746 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6747echo "$as_me: error: could not find stub source file '$i'" >&2;} 6748 { (exit 1); exit 1; }; } 6749 fi 6750 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6751 # this assumes it is in a VPATH dir 6752 i=`basename $i` 6753 # handle user calling this before or after TEA_SETUP_COMPILER 6754 if test x"${OBJEXT}" != x ; then 6755 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6756 else 6757 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6758 fi 6759 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6760 done 6761 6762 6763 6764 6765 vars="" 6766 for i in $vars; do 6767 # check for existence, be strict because it is installed 6768 if test ! -f "${srcdir}/$i" ; then 6769 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6770echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6771 { (exit 1); exit 1; }; } 6772 fi 6773 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6774 done 6775 6776 6777 6778 6779 6780#-------------------------------------------------------------------- 6781# Choose which headers you need. Extension authors should try very 6782# hard to only rely on the Tcl public header files. Internal headers 6783# contain private data structures and are subject to change without 6784# notice. 6785# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 6786#-------------------------------------------------------------------- 6787 6788 6789 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6790echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6791 6792 6793# Check whether --with-tclinclude was given. 6794if test "${with_tclinclude+set}" = set; then 6795 withval=$with_tclinclude; with_tclinclude=${withval} 6796fi 6797 6798 6799 if test "${ac_cv_c_tclh+set}" = set; then 6800 echo $ECHO_N "(cached) $ECHO_C" >&6 6801else 6802 6803 # Use the value from --with-tclinclude, if it was given 6804 6805 if test x"${with_tclinclude}" != x ; then 6806 if test -f "${with_tclinclude}/tcl.h" ; then 6807 ac_cv_c_tclh=${with_tclinclude} 6808 else 6809 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6810echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6811 { (exit 1); exit 1; }; } 6812 fi 6813 else 6814 list="" 6815 if test "`uname -s`" = "Darwin"; then 6816 # If Tcl was built as a framework, attempt to use 6817 # the framework's Headers directory 6818 case ${TCL_DEFS} in 6819 *TCL_FRAMEWORK*) 6820 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 6821 ;; 6822 esac 6823 fi 6824 6825 # Look in the source dir only if Tcl is not installed, 6826 # and in that situation, look there before installed locations. 6827 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6828 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 6829 fi 6830 6831 # Check order: pkg --prefix location, Tcl's --prefix location, 6832 # relative to directory of tclConfig.sh. 6833 6834 eval "temp_includedir=${includedir}" 6835 list="$list \ 6836 `ls -d ${temp_includedir} 2>/dev/null` \ 6837 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 6838 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 6839 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 6840 list="$list /usr/local/include /usr/include" 6841 if test x"${TCL_INCLUDE_SPEC}" != x ; then 6842 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 6843 list="$list `ls -d ${d} 2>/dev/null`" 6844 fi 6845 fi 6846 for i in $list ; do 6847 if test -f "$i/tcl.h" ; then 6848 ac_cv_c_tclh=$i 6849 break 6850 fi 6851 done 6852 fi 6853 6854fi 6855 6856 6857 # Print a message based on how we determined the include path 6858 6859 if test x"${ac_cv_c_tclh}" = x ; then 6860 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 6861echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 6862 { (exit 1); exit 1; }; } 6863 else 6864 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 6865echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 6866 fi 6867 6868 # Convert to a native path and substitute into the output files. 6869 6870 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 6871 6872 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 6873 6874 6875 6876 6877 # Allow for --with-tclinclude to take effect and define ${ac_cv_c_tclh} 6878 6879 { echo "$as_me:$LINENO: checking for Tcl private include files" >&5 6880echo $ECHO_N "checking for Tcl private include files... $ECHO_C" >&6; } 6881 6882 TCL_SRC_DIR_NATIVE=`${CYGPATH} ${TCL_SRC_DIR}` 6883 TCL_TOP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}\" 6884 6885 # Check to see if tcl<Plat>Port.h isn't already with the public headers 6886 # Don't look for tclInt.h because that resides with tcl.h in the core 6887 # sources, but the <plat>Port headers are in a different directory 6888 if test "${TEA_PLATFORM}" = "windows" -a \ 6889 -f "${ac_cv_c_tclh}/tclWinPort.h"; then 6890 result="private headers found with public headers" 6891 elif test "${TEA_PLATFORM}" = "unix" -a \ 6892 -f "${ac_cv_c_tclh}/tclUnixPort.h"; then 6893 result="private headers found with public headers" 6894 else 6895 TCL_GENERIC_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/generic\" 6896 if test "${TEA_PLATFORM}" = "windows"; then 6897 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/win\" 6898 else 6899 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/unix\" 6900 fi 6901 # Overwrite the previous TCL_INCLUDES as this should capture both 6902 # public and private headers in the same set. 6903 # We want to ensure these are substituted so as not to require 6904 # any *_NATIVE vars be defined in the Makefile 6905 TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}" 6906 if test "`uname -s`" = "Darwin"; then 6907 # If Tcl was built as a framework, attempt to use 6908 # the framework's Headers and PrivateHeaders directories 6909 case ${TCL_DEFS} in 6910 *TCL_FRAMEWORK*) 6911 if test -d "${TCL_BIN_DIR}/Headers" -a \ 6912 -d "${TCL_BIN_DIR}/PrivateHeaders"; then 6913 TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}" 6914 else 6915 TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`" 6916 fi 6917 ;; 6918 esac 6919 result="Using ${TCL_INCLUDES}" 6920 else 6921 if test ! -f "${TCL_SRC_DIR}/generic/tclInt.h" ; then 6922 { { echo "$as_me:$LINENO: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&5 6923echo "$as_me: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&2;} 6924 { (exit 1); exit 1; }; } 6925 fi 6926 result="Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" 6927 fi 6928 fi 6929 6930 6931 6932 6933 { echo "$as_me:$LINENO: result: ${result}" >&5 6934echo "${ECHO_T}${result}" >&6; } 6935 6936 6937#-------------------------------------------------------------------- 6938# Check whether --enable-threads or --disable-threads was given. 6939# This auto-enables if Tcl was compiled threaded. 6940#-------------------------------------------------------------------- 6941 6942 6943 # Check whether --enable-threads was given. 6944if test "${enable_threads+set}" = set; then 6945 enableval=$enable_threads; tcl_ok=$enableval 6946else 6947 tcl_ok=yes 6948fi 6949 6950 6951 if test "${enable_threads+set}" = set; then 6952 enableval="$enable_threads" 6953 tcl_ok=$enableval 6954 else 6955 tcl_ok=yes 6956 fi 6957 6958 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 6959 TCL_THREADS=1 6960 6961 if test "${TEA_PLATFORM}" != "windows" ; then 6962 # We are always OK on Windows, so check what this platform wants: 6963 6964 # USE_THREAD_ALLOC tells us to try the special thread-based 6965 # allocator that significantly reduces lock contention 6966 6967cat >>confdefs.h <<\_ACEOF 6968#define USE_THREAD_ALLOC 1 6969_ACEOF 6970 6971 6972cat >>confdefs.h <<\_ACEOF 6973#define _REENTRANT 1 6974_ACEOF 6975 6976 if test "`uname -s`" = "SunOS" ; then 6977 6978cat >>confdefs.h <<\_ACEOF 6979#define _POSIX_PTHREAD_SEMANTICS 1 6980_ACEOF 6981 6982 fi 6983 6984cat >>confdefs.h <<\_ACEOF 6985#define _THREAD_SAFE 1 6986_ACEOF 6987 6988 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 6989echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 6990if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 6991 echo $ECHO_N "(cached) $ECHO_C" >&6 6992else 6993 ac_check_lib_save_LIBS=$LIBS 6994LIBS="-lpthread $LIBS" 6995cat >conftest.$ac_ext <<_ACEOF 6996/* confdefs.h. */ 6997_ACEOF 6998cat confdefs.h >>conftest.$ac_ext 6999cat >>conftest.$ac_ext <<_ACEOF 7000/* end confdefs.h. */ 7001 7002/* Override any GCC internal prototype to avoid an error. 7003 Use char because int might match the return type of a GCC 7004 builtin and then its argument prototype would still apply. */ 7005#ifdef __cplusplus 7006extern "C" 7007#endif 7008char pthread_mutex_init (); 7009int 7010main () 7011{ 7012return pthread_mutex_init (); 7013 ; 7014 return 0; 7015} 7016_ACEOF 7017rm -f conftest.$ac_objext conftest$ac_exeext 7018if { (ac_try="$ac_link" 7019case "(($ac_try" in 7020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7021 *) ac_try_echo=$ac_try;; 7022esac 7023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7024 (eval "$ac_link") 2>conftest.er1 7025 ac_status=$? 7026 grep -v '^ *+' conftest.er1 >conftest.err 7027 rm -f conftest.er1 7028 cat conftest.err >&5 7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7030 (exit $ac_status); } && { 7031 test -z "$ac_c_werror_flag" || 7032 test ! -s conftest.err 7033 } && test -s conftest$ac_exeext && 7034 $as_test_x conftest$ac_exeext; then 7035 ac_cv_lib_pthread_pthread_mutex_init=yes 7036else 7037 echo "$as_me: failed program was:" >&5 7038sed 's/^/| /' conftest.$ac_ext >&5 7039 7040 ac_cv_lib_pthread_pthread_mutex_init=no 7041fi 7042 7043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7044 conftest$ac_exeext conftest.$ac_ext 7045LIBS=$ac_check_lib_save_LIBS 7046fi 7047{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7048echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7049if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7050 tcl_ok=yes 7051else 7052 tcl_ok=no 7053fi 7054 7055 if test "$tcl_ok" = "no"; then 7056 # Check a little harder for __pthread_mutex_init in the same 7057 # library, as some systems hide it there until pthread.h is 7058 # defined. We could alternatively do an AC_TRY_COMPILE with 7059 # pthread.h, but that will work with libpthread really doesn't 7060 # exist, like AIX 4.2. [Bug: 4359] 7061 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7062echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7063if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7064 echo $ECHO_N "(cached) $ECHO_C" >&6 7065else 7066 ac_check_lib_save_LIBS=$LIBS 7067LIBS="-lpthread $LIBS" 7068cat >conftest.$ac_ext <<_ACEOF 7069/* confdefs.h. */ 7070_ACEOF 7071cat confdefs.h >>conftest.$ac_ext 7072cat >>conftest.$ac_ext <<_ACEOF 7073/* end confdefs.h. */ 7074 7075/* Override any GCC internal prototype to avoid an error. 7076 Use char because int might match the return type of a GCC 7077 builtin and then its argument prototype would still apply. */ 7078#ifdef __cplusplus 7079extern "C" 7080#endif 7081char __pthread_mutex_init (); 7082int 7083main () 7084{ 7085return __pthread_mutex_init (); 7086 ; 7087 return 0; 7088} 7089_ACEOF 7090rm -f conftest.$ac_objext conftest$ac_exeext 7091if { (ac_try="$ac_link" 7092case "(($ac_try" in 7093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7094 *) ac_try_echo=$ac_try;; 7095esac 7096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7097 (eval "$ac_link") 2>conftest.er1 7098 ac_status=$? 7099 grep -v '^ *+' conftest.er1 >conftest.err 7100 rm -f conftest.er1 7101 cat conftest.err >&5 7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7103 (exit $ac_status); } && { 7104 test -z "$ac_c_werror_flag" || 7105 test ! -s conftest.err 7106 } && test -s conftest$ac_exeext && 7107 $as_test_x conftest$ac_exeext; then 7108 ac_cv_lib_pthread___pthread_mutex_init=yes 7109else 7110 echo "$as_me: failed program was:" >&5 7111sed 's/^/| /' conftest.$ac_ext >&5 7112 7113 ac_cv_lib_pthread___pthread_mutex_init=no 7114fi 7115 7116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7117 conftest$ac_exeext conftest.$ac_ext 7118LIBS=$ac_check_lib_save_LIBS 7119fi 7120{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7121echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7122if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7123 tcl_ok=yes 7124else 7125 tcl_ok=no 7126fi 7127 7128 fi 7129 7130 if test "$tcl_ok" = "yes"; then 7131 # The space is needed 7132 THREADS_LIBS=" -lpthread" 7133 else 7134 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7135echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7136if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7137 echo $ECHO_N "(cached) $ECHO_C" >&6 7138else 7139 ac_check_lib_save_LIBS=$LIBS 7140LIBS="-lpthreads $LIBS" 7141cat >conftest.$ac_ext <<_ACEOF 7142/* confdefs.h. */ 7143_ACEOF 7144cat confdefs.h >>conftest.$ac_ext 7145cat >>conftest.$ac_ext <<_ACEOF 7146/* end confdefs.h. */ 7147 7148/* Override any GCC internal prototype to avoid an error. 7149 Use char because int might match the return type of a GCC 7150 builtin and then its argument prototype would still apply. */ 7151#ifdef __cplusplus 7152extern "C" 7153#endif 7154char pthread_mutex_init (); 7155int 7156main () 7157{ 7158return pthread_mutex_init (); 7159 ; 7160 return 0; 7161} 7162_ACEOF 7163rm -f conftest.$ac_objext conftest$ac_exeext 7164if { (ac_try="$ac_link" 7165case "(($ac_try" in 7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7167 *) ac_try_echo=$ac_try;; 7168esac 7169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7170 (eval "$ac_link") 2>conftest.er1 7171 ac_status=$? 7172 grep -v '^ *+' conftest.er1 >conftest.err 7173 rm -f conftest.er1 7174 cat conftest.err >&5 7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7176 (exit $ac_status); } && { 7177 test -z "$ac_c_werror_flag" || 7178 test ! -s conftest.err 7179 } && test -s conftest$ac_exeext && 7180 $as_test_x conftest$ac_exeext; then 7181 ac_cv_lib_pthreads_pthread_mutex_init=yes 7182else 7183 echo "$as_me: failed program was:" >&5 7184sed 's/^/| /' conftest.$ac_ext >&5 7185 7186 ac_cv_lib_pthreads_pthread_mutex_init=no 7187fi 7188 7189rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7190 conftest$ac_exeext conftest.$ac_ext 7191LIBS=$ac_check_lib_save_LIBS 7192fi 7193{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7194echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7195if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7196 tcl_ok=yes 7197else 7198 tcl_ok=no 7199fi 7200 7201 if test "$tcl_ok" = "yes"; then 7202 # The space is needed 7203 THREADS_LIBS=" -lpthreads" 7204 else 7205 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7206echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7207if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7208 echo $ECHO_N "(cached) $ECHO_C" >&6 7209else 7210 ac_check_lib_save_LIBS=$LIBS 7211LIBS="-lc $LIBS" 7212cat >conftest.$ac_ext <<_ACEOF 7213/* confdefs.h. */ 7214_ACEOF 7215cat confdefs.h >>conftest.$ac_ext 7216cat >>conftest.$ac_ext <<_ACEOF 7217/* end confdefs.h. */ 7218 7219/* Override any GCC internal prototype to avoid an error. 7220 Use char because int might match the return type of a GCC 7221 builtin and then its argument prototype would still apply. */ 7222#ifdef __cplusplus 7223extern "C" 7224#endif 7225char pthread_mutex_init (); 7226int 7227main () 7228{ 7229return pthread_mutex_init (); 7230 ; 7231 return 0; 7232} 7233_ACEOF 7234rm -f conftest.$ac_objext conftest$ac_exeext 7235if { (ac_try="$ac_link" 7236case "(($ac_try" in 7237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7238 *) ac_try_echo=$ac_try;; 7239esac 7240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7241 (eval "$ac_link") 2>conftest.er1 7242 ac_status=$? 7243 grep -v '^ *+' conftest.er1 >conftest.err 7244 rm -f conftest.er1 7245 cat conftest.err >&5 7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7247 (exit $ac_status); } && { 7248 test -z "$ac_c_werror_flag" || 7249 test ! -s conftest.err 7250 } && test -s conftest$ac_exeext && 7251 $as_test_x conftest$ac_exeext; then 7252 ac_cv_lib_c_pthread_mutex_init=yes 7253else 7254 echo "$as_me: failed program was:" >&5 7255sed 's/^/| /' conftest.$ac_ext >&5 7256 7257 ac_cv_lib_c_pthread_mutex_init=no 7258fi 7259 7260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7261 conftest$ac_exeext conftest.$ac_ext 7262LIBS=$ac_check_lib_save_LIBS 7263fi 7264{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7265echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7266if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7267 tcl_ok=yes 7268else 7269 tcl_ok=no 7270fi 7271 7272 if test "$tcl_ok" = "no"; then 7273 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7274echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7275if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7276 echo $ECHO_N "(cached) $ECHO_C" >&6 7277else 7278 ac_check_lib_save_LIBS=$LIBS 7279LIBS="-lc_r $LIBS" 7280cat >conftest.$ac_ext <<_ACEOF 7281/* confdefs.h. */ 7282_ACEOF 7283cat confdefs.h >>conftest.$ac_ext 7284cat >>conftest.$ac_ext <<_ACEOF 7285/* end confdefs.h. */ 7286 7287/* Override any GCC internal prototype to avoid an error. 7288 Use char because int might match the return type of a GCC 7289 builtin and then its argument prototype would still apply. */ 7290#ifdef __cplusplus 7291extern "C" 7292#endif 7293char pthread_mutex_init (); 7294int 7295main () 7296{ 7297return pthread_mutex_init (); 7298 ; 7299 return 0; 7300} 7301_ACEOF 7302rm -f conftest.$ac_objext conftest$ac_exeext 7303if { (ac_try="$ac_link" 7304case "(($ac_try" in 7305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7306 *) ac_try_echo=$ac_try;; 7307esac 7308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7309 (eval "$ac_link") 2>conftest.er1 7310 ac_status=$? 7311 grep -v '^ *+' conftest.er1 >conftest.err 7312 rm -f conftest.er1 7313 cat conftest.err >&5 7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7315 (exit $ac_status); } && { 7316 test -z "$ac_c_werror_flag" || 7317 test ! -s conftest.err 7318 } && test -s conftest$ac_exeext && 7319 $as_test_x conftest$ac_exeext; then 7320 ac_cv_lib_c_r_pthread_mutex_init=yes 7321else 7322 echo "$as_me: failed program was:" >&5 7323sed 's/^/| /' conftest.$ac_ext >&5 7324 7325 ac_cv_lib_c_r_pthread_mutex_init=no 7326fi 7327 7328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7329 conftest$ac_exeext conftest.$ac_ext 7330LIBS=$ac_check_lib_save_LIBS 7331fi 7332{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7333echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7334if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7335 tcl_ok=yes 7336else 7337 tcl_ok=no 7338fi 7339 7340 if test "$tcl_ok" = "yes"; then 7341 # The space is needed 7342 THREADS_LIBS=" -pthread" 7343 else 7344 TCL_THREADS=0 7345 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7346echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7347 fi 7348 fi 7349 fi 7350 fi 7351 fi 7352 else 7353 TCL_THREADS=0 7354 fi 7355 # Do checking message here to not mess up interleaved configure output 7356 { echo "$as_me:$LINENO: checking for building with threads" >&5 7357echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7358 if test "${TCL_THREADS}" = 1; then 7359 7360cat >>confdefs.h <<\_ACEOF 7361#define TCL_THREADS 1 7362_ACEOF 7363 7364 { echo "$as_me:$LINENO: result: yes (default)" >&5 7365echo "${ECHO_T}yes (default)" >&6; } 7366 else 7367 { echo "$as_me:$LINENO: result: no" >&5 7368echo "${ECHO_T}no" >&6; } 7369 fi 7370 # TCL_THREADS sanity checking. See if our request for building with 7371 # threads is the same as the way Tcl was built. If not, warn the user. 7372 case ${TCL_DEFS} in 7373 *THREADS=1*) 7374 if test "${TCL_THREADS}" = "0"; then 7375 { echo "$as_me:$LINENO: WARNING: 7376 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7377 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7378echo "$as_me: WARNING: 7379 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7380 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7381 fi 7382 ;; 7383 *) 7384 if test "${TCL_THREADS}" = "1"; then 7385 { echo "$as_me:$LINENO: WARNING: 7386 --enable-threads requested, but building against a Tcl that is NOT 7387 thread-enabled. This is an OK configuration that will also run in 7388 a thread-enabled core." >&5 7389echo "$as_me: WARNING: 7390 --enable-threads requested, but building against a Tcl that is NOT 7391 thread-enabled. This is an OK configuration that will also run in 7392 a thread-enabled core." >&2;} 7393 fi 7394 ;; 7395 esac 7396 7397 7398 7399#-------------------------------------------------------------------- 7400# The statement below defines a collection of symbols related to 7401# building as a shared library instead of a static library. 7402#-------------------------------------------------------------------- 7403 7404 7405 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7406echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7407 # Check whether --enable-shared was given. 7408if test "${enable_shared+set}" = set; then 7409 enableval=$enable_shared; tcl_ok=$enableval 7410else 7411 tcl_ok=yes 7412fi 7413 7414 7415 if test "${enable_shared+set}" = set; then 7416 enableval="$enable_shared" 7417 tcl_ok=$enableval 7418 else 7419 tcl_ok=yes 7420 fi 7421 7422 if test "$tcl_ok" = "yes" ; then 7423 { echo "$as_me:$LINENO: result: shared" >&5 7424echo "${ECHO_T}shared" >&6; } 7425 SHARED_BUILD=1 7426 else 7427 { echo "$as_me:$LINENO: result: static" >&5 7428echo "${ECHO_T}static" >&6; } 7429 SHARED_BUILD=0 7430 7431cat >>confdefs.h <<\_ACEOF 7432#define STATIC_BUILD 1 7433_ACEOF 7434 7435 fi 7436 7437 7438 7439#-------------------------------------------------------------------- 7440# This macro figures out what flags to use with the compiler/linker 7441# when building shared/static debug/optimized objects. This information 7442# can be taken from the tclConfig.sh file, but this figures it all out. 7443#-------------------------------------------------------------------- 7444 7445 7446 7447 7448 # Step 0.a: Enable 64 bit support? 7449 7450 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7451echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 7452 # Check whether --enable-64bit was given. 7453if test "${enable_64bit+set}" = set; then 7454 enableval=$enable_64bit; do64bit=$enableval 7455else 7456 do64bit=no 7457fi 7458 7459 { echo "$as_me:$LINENO: result: $do64bit" >&5 7460echo "${ECHO_T}$do64bit" >&6; } 7461 7462 # Step 0.b: Enable Solaris 64 bit VIS support? 7463 7464 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7465echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 7466 # Check whether --enable-64bit-vis was given. 7467if test "${enable_64bit_vis+set}" = set; then 7468 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7469else 7470 do64bitVIS=no 7471fi 7472 7473 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7474echo "${ECHO_T}$do64bitVIS" >&6; } 7475 # Force 64bit on with VIS 7476 if test "$do64bitVIS" = "yes"; then 7477 do64bit=yes 7478fi 7479 7480 7481 # Step 0.c: Check if visibility support is available. Do this here so 7482 # that platform specific alternatives can be used below if this fails. 7483 7484 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7485echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 7486if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7487 echo $ECHO_N "(cached) $ECHO_C" >&6 7488else 7489 7490 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7491 cat >conftest.$ac_ext <<_ACEOF 7492/* confdefs.h. */ 7493_ACEOF 7494cat confdefs.h >>conftest.$ac_ext 7495cat >>conftest.$ac_ext <<_ACEOF 7496/* end confdefs.h. */ 7497 7498 extern __attribute__((__visibility__("hidden"))) void f(void); 7499 void f(void) {} 7500int 7501main () 7502{ 7503f(); 7504 ; 7505 return 0; 7506} 7507_ACEOF 7508rm -f conftest.$ac_objext conftest$ac_exeext 7509if { (ac_try="$ac_link" 7510case "(($ac_try" in 7511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7512 *) ac_try_echo=$ac_try;; 7513esac 7514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7515 (eval "$ac_link") 2>conftest.er1 7516 ac_status=$? 7517 grep -v '^ *+' conftest.er1 >conftest.err 7518 rm -f conftest.er1 7519 cat conftest.err >&5 7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7521 (exit $ac_status); } && { 7522 test -z "$ac_c_werror_flag" || 7523 test ! -s conftest.err 7524 } && test -s conftest$ac_exeext && 7525 $as_test_x conftest$ac_exeext; then 7526 tcl_cv_cc_visibility_hidden=yes 7527else 7528 echo "$as_me: failed program was:" >&5 7529sed 's/^/| /' conftest.$ac_ext >&5 7530 7531 tcl_cv_cc_visibility_hidden=no 7532fi 7533 7534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7535 conftest$ac_exeext conftest.$ac_ext 7536 CFLAGS=$hold_cflags 7537fi 7538{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7539echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 7540 if test $tcl_cv_cc_visibility_hidden = yes; then 7541 7542 7543cat >>confdefs.h <<\_ACEOF 7544#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7545_ACEOF 7546 7547 7548fi 7549 7550 7551 # Step 0.d: Disable -rpath support? 7552 7553 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7554echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 7555 # Check whether --enable-rpath was given. 7556if test "${enable_rpath+set}" = set; then 7557 enableval=$enable_rpath; doRpath=$enableval 7558else 7559 doRpath=yes 7560fi 7561 7562 { echo "$as_me:$LINENO: result: $doRpath" >&5 7563echo "${ECHO_T}$doRpath" >&6; } 7564 7565 # TEA specific: Cross-compiling options for Windows/CE builds? 7566 7567 if test "${TEA_PLATFORM}" = windows; then 7568 7569 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7570echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 7571 # Check whether --enable-wince was given. 7572if test "${enable_wince+set}" = set; then 7573 enableval=$enable_wince; doWince=$enableval 7574else 7575 doWince=no 7576fi 7577 7578 { echo "$as_me:$LINENO: result: $doWince" >&5 7579echo "${ECHO_T}$doWince" >&6; } 7580 7581fi 7582 7583 7584 # Set the variable "system" to hold the name and version number 7585 # for the system. 7586 7587 7588 { echo "$as_me:$LINENO: checking system version" >&5 7589echo $ECHO_N "checking system version... $ECHO_C" >&6; } 7590if test "${tcl_cv_sys_version+set}" = set; then 7591 echo $ECHO_N "(cached) $ECHO_C" >&6 7592else 7593 7594 # TEA specific: 7595 if test "${TEA_PLATFORM}" = "windows" ; then 7596 tcl_cv_sys_version=windows 7597 else 7598 tcl_cv_sys_version=`uname -s`-`uname -r` 7599 if test "$?" -ne 0 ; then 7600 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7601echo "$as_me: WARNING: can't find uname command" >&2;} 7602 tcl_cv_sys_version=unknown 7603 else 7604 if test "`uname -s`" = "AIX" ; then 7605 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7606 fi 7607 fi 7608 fi 7609 7610fi 7611{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7612echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 7613 system=$tcl_cv_sys_version 7614 7615 7616 # Require ranlib early so we can override it in special cases below. 7617 7618 7619 7620 # Set configuration options based on system name and version. 7621 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7622 # "windows" case and removed some core-only vars. 7623 7624 do64bit_ok=no 7625 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7626 SHLIB_LD_LIBS='${LIBS}' 7627 # When ld needs options to work in 64-bit mode, put them in 7628 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7629 # is disabled by the user. [Bug 1016796] 7630 LDFLAGS_ARCH="" 7631 UNSHARED_LIB_SUFFIX="" 7632 # TEA specific: use PACKAGE_VERSION instead of VERSION 7633 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7634 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7635 TCL_LIB_VERSIONS_OK=ok 7636 CFLAGS_DEBUG=-g 7637 CFLAGS_OPTIMIZE=-O 7638 if test "$GCC" = yes; then 7639 7640 # TEA specific: 7641 CFLAGS_OPTIMIZE=-O2 7642 CFLAGS_WARNING="-Wall" 7643 7644else 7645 CFLAGS_WARNING="" 7646fi 7647 7648 # Extract the first word of "ar", so it can be a program name with args. 7649set dummy ar; ac_word=$2 7650{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7652if test "${ac_cv_prog_AR+set}" = set; then 7653 echo $ECHO_N "(cached) $ECHO_C" >&6 7654else 7655 if test -n "$AR"; then 7656 ac_cv_prog_AR="$AR" # Let the user override the test. 7657else 7658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7659for as_dir in $PATH 7660do 7661 IFS=$as_save_IFS 7662 test -z "$as_dir" && as_dir=. 7663 for ac_exec_ext in '' $ac_executable_extensions; do 7664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7665 ac_cv_prog_AR="ar" 7666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7667 break 2 7668 fi 7669done 7670done 7671IFS=$as_save_IFS 7672 7673fi 7674fi 7675AR=$ac_cv_prog_AR 7676if test -n "$AR"; then 7677 { echo "$as_me:$LINENO: result: $AR" >&5 7678echo "${ECHO_T}$AR" >&6; } 7679else 7680 { echo "$as_me:$LINENO: result: no" >&5 7681echo "${ECHO_T}no" >&6; } 7682fi 7683 7684 7685 STLIB_LD='${AR} cr' 7686 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7687 if test "x$SHLIB_VERSION" = x; then 7688 SHLIB_VERSION="1.0" 7689fi 7690 7691 case $system in 7692 # TEA specific: 7693 windows) 7694 # This is a 2-stage check to make sure we have the 64-bit SDK 7695 # We have to know where the SDK is installed. 7696 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7697 # MACHINE is IX86 for LINK, but this is used by the manifest, 7698 # which requires x86|amd64|ia64. 7699 MACHINE="X86" 7700 if test "$do64bit" != "no" ; then 7701 if test "x${MSSDK}x" = "xx" ; then 7702 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7703 fi 7704 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7705 PATH64="" 7706 case "$do64bit" in 7707 amd64|x64|yes) 7708 MACHINE="AMD64" ; # default to AMD64 64-bit build 7709 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7710 ;; 7711 ia64) 7712 MACHINE="IA64" 7713 PATH64="${MSSDK}/Bin/Win64" 7714 ;; 7715 esac 7716 if test ! -d "${PATH64}" ; then 7717 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7718echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7719 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7720echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7721 do64bit="no" 7722 else 7723 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7724echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 7725 do64bit_ok="yes" 7726 fi 7727 fi 7728 7729 if test "$doWince" != "no" ; then 7730 if test "$do64bit" != "no" ; then 7731 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7732echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7733 { (exit 1); exit 1; }; } 7734 fi 7735 if test "$GCC" = "yes" ; then 7736 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7737echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7738 { (exit 1); exit 1; }; } 7739 fi 7740 7741 # First, look for one uninstalled. 7742 # the alternative search directory is invoked by --with-celib 7743 7744 if test x"${no_celib}" = x ; then 7745 # we reset no_celib in case something fails here 7746 no_celib=true 7747 7748# Check whether --with-celib was given. 7749if test "${with_celib+set}" = set; then 7750 withval=$with_celib; with_celibconfig=${withval} 7751fi 7752 7753 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7754echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 7755 if test "${ac_cv_c_celibconfig+set}" = set; then 7756 echo $ECHO_N "(cached) $ECHO_C" >&6 7757else 7758 7759 # First check to see if --with-celibconfig was specified. 7760 if test x"${with_celibconfig}" != x ; then 7761 if test -d "${with_celibconfig}/inc" ; then 7762 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7763 else 7764 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7765echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7766 { (exit 1); exit 1; }; } 7767 fi 7768 fi 7769 7770 # then check for a celib library 7771 if test x"${ac_cv_c_celibconfig}" = x ; then 7772 for i in \ 7773 ../celib-palm-3.0 \ 7774 ../celib \ 7775 ../../celib-palm-3.0 \ 7776 ../../celib \ 7777 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7778 ${srcdir}/../celib-palm-3.0 \ 7779 ${srcdir}/../celib \ 7780 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7781 ; do 7782 if test -d "$i/inc" ; then 7783 ac_cv_c_celibconfig=`(cd $i; pwd)` 7784 break 7785 fi 7786 done 7787 fi 7788 7789fi 7790 7791 if test x"${ac_cv_c_celibconfig}" = x ; then 7792 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7793echo "$as_me: error: Cannot find celib support library directory" >&2;} 7794 { (exit 1); exit 1; }; } 7795 else 7796 no_celib= 7797 CELIB_DIR=${ac_cv_c_celibconfig} 7798 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7799 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7800echo "${ECHO_T}found $CELIB_DIR" >&6; } 7801 fi 7802 fi 7803 7804 # Set defaults for common evc4/PPC2003 setup 7805 # Currently Tcl requires 300+, possibly 420+ for sockets 7806 CEVERSION=420; # could be 211 300 301 400 420 ... 7807 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7808 ARCH=ARM; # could be ARM MIPS X86EM ... 7809 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7810 if test "$doWince" != "yes"; then 7811 # If !yes then the user specified something 7812 # Reset ARCH to allow user to skip specifying it 7813 ARCH= 7814 eval `echo $doWince | awk -F, '{ \ 7815 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7816 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7817 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7818 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7819 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7820 }'` 7821 if test "x${ARCH}" = "x" ; then 7822 ARCH=$TARGETCPU; 7823 fi 7824 fi 7825 OSVERSION=WCE$CEVERSION; 7826 if test "x${WCEROOT}" = "x" ; then 7827 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7828 if test ! -d "${WCEROOT}" ; then 7829 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7830 fi 7831 fi 7832 if test "x${SDKROOT}" = "x" ; then 7833 SDKROOT="C:/Program Files/Windows CE Tools" 7834 if test ! -d "${SDKROOT}" ; then 7835 SDKROOT="C:/Windows CE Tools" 7836 fi 7837 fi 7838 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7839 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7840 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7841 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7842 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7843echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7844 { (exit 1); exit 1; }; } 7845 doWince="no" 7846 else 7847 # We could PATH_NOSPACE these, but that's not important, 7848 # as long as we quote them when used. 7849 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7850 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7851 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7852 fi 7853 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7854 fi 7855 fi 7856 7857 if test "$GCC" != "yes" ; then 7858 if test "${SHARED_BUILD}" = "0" ; then 7859 runtime=-MT 7860 else 7861 runtime=-MD 7862 fi 7863 7864 if test "$do64bit" != "no" ; then 7865 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7866 CC="\"${PATH64}/cl.exe\"" 7867 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7868 RC="\"${MSSDK}/bin/rc.exe\"" 7869 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7870 LINKBIN="\"${PATH64}/link.exe\"" 7871 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7872 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7873 # Avoid 'unresolved external symbol __security_cookie' 7874 # errors, c.f. http://support.microsoft.com/?id=894573 7875 7876 vars="bufferoverflowU.lib" 7877 for i in $vars; do 7878 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7879 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7880 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7881 fi 7882 PKG_LIBS="$PKG_LIBS $i" 7883 done 7884 7885 7886 elif test "$doWince" != "no" ; then 7887 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7888 if test "${TARGETCPU}" = "X86"; then 7889 CC="\"${CEBINROOT}/cl.exe\"" 7890 else 7891 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 7892 fi 7893 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7894 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 7895 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 7896 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 7897 if test "${SHARED_BUILD}" = "1" ; then 7898 # Static CE builds require static celib as well 7899 defs="${defs} _DLL" 7900 fi 7901 for i in $defs ; do 7902 7903cat >>confdefs.h <<_ACEOF 7904#define $i 1 7905_ACEOF 7906 7907 done 7908 7909cat >>confdefs.h <<_ACEOF 7910#define _WIN32_WCE $CEVERSION 7911_ACEOF 7912 7913 7914cat >>confdefs.h <<_ACEOF 7915#define UNDER_CE $CEVERSION 7916_ACEOF 7917 7918 CFLAGS_DEBUG="-nologo -Zi -Od" 7919 CFLAGS_OPTIMIZE="-nologo -Ox" 7920 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 7921 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 7922 LINKBIN="\"${CEBINROOT}/link.exe\"" 7923 7924 else 7925 RC="rc" 7926 lflags="-nologo" 7927 LINKBIN="link" 7928 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 7929 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7930 fi 7931 fi 7932 7933 if test "$GCC" = "yes"; then 7934 # mingw gcc mode 7935 RC="windres" 7936 CFLAGS_DEBUG="-g" 7937 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 7938 SHLIB_LD="$CC -shared" 7939 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7940 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 7941 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 7942 else 7943 SHLIB_LD="${LINKBIN} -dll ${lflags}" 7944 # link -lib only works when -lib is the first arg 7945 STLIB_LD="${LINKBIN} -lib ${lflags}" 7946 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 7947 PATHTYPE=-w 7948 # For information on what debugtype is most useful, see: 7949 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 7950 # and also 7951 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 7952 # This essentially turns it all on. 7953 LDFLAGS_DEBUG="-debug -debugtype:cv" 7954 LDFLAGS_OPTIMIZE="-release" 7955 if test "$doWince" != "no" ; then 7956 LDFLAGS_CONSOLE="-link ${lflags}" 7957 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 7958 else 7959 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 7960 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 7961 fi 7962 fi 7963 7964 SHLIB_SUFFIX=".dll" 7965 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 7966 7967 TCL_LIB_VERSIONS_OK=nodots 7968 ;; 7969 AIX-*) 7970 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 7971 7972 # AIX requires the _r compiler when gcc isn't being used 7973 case "${CC}" in 7974 *_r|*_r\ *) 7975 # ok ... 7976 ;; 7977 *) 7978 # Make sure only first arg gets _r 7979 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 7980 ;; 7981 esac 7982 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 7983echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 7984 7985fi 7986 7987 LIBS="$LIBS -lc" 7988 SHLIB_CFLAGS="" 7989 SHLIB_SUFFIX=".so" 7990 7991 LD_LIBRARY_PATH_VAR="LIBPATH" 7992 7993 # Check to enable 64-bit flags for compiler/linker 7994 if test "$do64bit" = yes; then 7995 7996 if test "$GCC" = yes; then 7997 7998 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 7999echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8000 8001else 8002 8003 do64bit_ok=yes 8004 CFLAGS="$CFLAGS -q64" 8005 LDFLAGS_ARCH="-q64" 8006 RANLIB="${RANLIB} -X64" 8007 AR="${AR} -X64" 8008 SHLIB_LD_FLAGS="-b64" 8009 8010fi 8011 8012 8013fi 8014 8015 8016 if test "`uname -m`" = ia64; then 8017 8018 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8019 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8020 if test "$GCC" = yes; then 8021 8022 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8023 8024else 8025 8026 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8027 8028fi 8029 8030 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8031 8032else 8033 8034 if test "$GCC" = yes; then 8035 8036 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8037 8038else 8039 8040 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8041 LDFLAGS="$LDFLAGS -brtl" 8042 8043fi 8044 8045 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8046 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8047 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8048 8049fi 8050 8051 ;; 8052 BeOS*) 8053 SHLIB_CFLAGS="-fPIC" 8054 SHLIB_LD='${CC} -nostart' 8055 SHLIB_SUFFIX=".so" 8056 8057 #----------------------------------------------------------- 8058 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8059 # -lsocket, even if the network functions are in -lnet which 8060 # is always linked to, for compatibility. 8061 #----------------------------------------------------------- 8062 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8063echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8064if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8065 echo $ECHO_N "(cached) $ECHO_C" >&6 8066else 8067 ac_check_lib_save_LIBS=$LIBS 8068LIBS="-lbind $LIBS" 8069cat >conftest.$ac_ext <<_ACEOF 8070/* confdefs.h. */ 8071_ACEOF 8072cat confdefs.h >>conftest.$ac_ext 8073cat >>conftest.$ac_ext <<_ACEOF 8074/* end confdefs.h. */ 8075 8076/* Override any GCC internal prototype to avoid an error. 8077 Use char because int might match the return type of a GCC 8078 builtin and then its argument prototype would still apply. */ 8079#ifdef __cplusplus 8080extern "C" 8081#endif 8082char inet_ntoa (); 8083int 8084main () 8085{ 8086return inet_ntoa (); 8087 ; 8088 return 0; 8089} 8090_ACEOF 8091rm -f conftest.$ac_objext conftest$ac_exeext 8092if { (ac_try="$ac_link" 8093case "(($ac_try" in 8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8095 *) ac_try_echo=$ac_try;; 8096esac 8097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8098 (eval "$ac_link") 2>conftest.er1 8099 ac_status=$? 8100 grep -v '^ *+' conftest.er1 >conftest.err 8101 rm -f conftest.er1 8102 cat conftest.err >&5 8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8104 (exit $ac_status); } && { 8105 test -z "$ac_c_werror_flag" || 8106 test ! -s conftest.err 8107 } && test -s conftest$ac_exeext && 8108 $as_test_x conftest$ac_exeext; then 8109 ac_cv_lib_bind_inet_ntoa=yes 8110else 8111 echo "$as_me: failed program was:" >&5 8112sed 's/^/| /' conftest.$ac_ext >&5 8113 8114 ac_cv_lib_bind_inet_ntoa=no 8115fi 8116 8117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8118 conftest$ac_exeext conftest.$ac_ext 8119LIBS=$ac_check_lib_save_LIBS 8120fi 8121{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8122echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8123if test $ac_cv_lib_bind_inet_ntoa = yes; then 8124 LIBS="$LIBS -lbind -lsocket" 8125fi 8126 8127 ;; 8128 BSD/OS-4.*) 8129 SHLIB_CFLAGS="-export-dynamic -fPIC" 8130 SHLIB_LD='${CC} -shared' 8131 SHLIB_SUFFIX=".so" 8132 LDFLAGS="$LDFLAGS -export-dynamic" 8133 CC_SEARCH_FLAGS="" 8134 LD_SEARCH_FLAGS="" 8135 ;; 8136 CYGWIN_*) 8137 SHLIB_CFLAGS="" 8138 SHLIB_LD='${CC} -shared' 8139 SHLIB_SUFFIX=".dll" 8140 EXE_SUFFIX=".exe" 8141 CC_SEARCH_FLAGS="" 8142 LD_SEARCH_FLAGS="" 8143 ;; 8144 Haiku*) 8145 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8146 SHLIB_CFLAGS="-fPIC" 8147 SHLIB_SUFFIX=".so" 8148 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8149 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8150echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8151if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8152 echo $ECHO_N "(cached) $ECHO_C" >&6 8153else 8154 ac_check_lib_save_LIBS=$LIBS 8155LIBS="-lnetwork $LIBS" 8156cat >conftest.$ac_ext <<_ACEOF 8157/* confdefs.h. */ 8158_ACEOF 8159cat confdefs.h >>conftest.$ac_ext 8160cat >>conftest.$ac_ext <<_ACEOF 8161/* end confdefs.h. */ 8162 8163/* Override any GCC internal prototype to avoid an error. 8164 Use char because int might match the return type of a GCC 8165 builtin and then its argument prototype would still apply. */ 8166#ifdef __cplusplus 8167extern "C" 8168#endif 8169char inet_ntoa (); 8170int 8171main () 8172{ 8173return inet_ntoa (); 8174 ; 8175 return 0; 8176} 8177_ACEOF 8178rm -f conftest.$ac_objext conftest$ac_exeext 8179if { (ac_try="$ac_link" 8180case "(($ac_try" in 8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8182 *) ac_try_echo=$ac_try;; 8183esac 8184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8185 (eval "$ac_link") 2>conftest.er1 8186 ac_status=$? 8187 grep -v '^ *+' conftest.er1 >conftest.err 8188 rm -f conftest.er1 8189 cat conftest.err >&5 8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8191 (exit $ac_status); } && { 8192 test -z "$ac_c_werror_flag" || 8193 test ! -s conftest.err 8194 } && test -s conftest$ac_exeext && 8195 $as_test_x conftest$ac_exeext; then 8196 ac_cv_lib_network_inet_ntoa=yes 8197else 8198 echo "$as_me: failed program was:" >&5 8199sed 's/^/| /' conftest.$ac_ext >&5 8200 8201 ac_cv_lib_network_inet_ntoa=no 8202fi 8203 8204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8205 conftest$ac_exeext conftest.$ac_ext 8206LIBS=$ac_check_lib_save_LIBS 8207fi 8208{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8209echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8210if test $ac_cv_lib_network_inet_ntoa = yes; then 8211 LIBS="$LIBS -lnetwork" 8212fi 8213 8214 ;; 8215 HP-UX-*.11.*) 8216 # Use updated header definitions where possible 8217 8218cat >>confdefs.h <<\_ACEOF 8219#define _XOPEN_SOURCE_EXTENDED 1 8220_ACEOF 8221 8222 # TEA specific: Needed by Tcl, but not most extensions 8223 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8224 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8225 8226 if test "`uname -m`" = ia64; then 8227 8228 SHLIB_SUFFIX=".so" 8229 # Use newer C++ library for C++ extensions 8230 #if test "$GCC" != "yes" ; then 8231 # CPPFLAGS="-AA" 8232 #fi 8233 8234else 8235 8236 SHLIB_SUFFIX=".sl" 8237 8238fi 8239 8240 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8241echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8242if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8243 echo $ECHO_N "(cached) $ECHO_C" >&6 8244else 8245 ac_check_lib_save_LIBS=$LIBS 8246LIBS="-ldld $LIBS" 8247cat >conftest.$ac_ext <<_ACEOF 8248/* confdefs.h. */ 8249_ACEOF 8250cat confdefs.h >>conftest.$ac_ext 8251cat >>conftest.$ac_ext <<_ACEOF 8252/* end confdefs.h. */ 8253 8254/* Override any GCC internal prototype to avoid an error. 8255 Use char because int might match the return type of a GCC 8256 builtin and then its argument prototype would still apply. */ 8257#ifdef __cplusplus 8258extern "C" 8259#endif 8260char shl_load (); 8261int 8262main () 8263{ 8264return shl_load (); 8265 ; 8266 return 0; 8267} 8268_ACEOF 8269rm -f conftest.$ac_objext conftest$ac_exeext 8270if { (ac_try="$ac_link" 8271case "(($ac_try" in 8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8273 *) ac_try_echo=$ac_try;; 8274esac 8275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8276 (eval "$ac_link") 2>conftest.er1 8277 ac_status=$? 8278 grep -v '^ *+' conftest.er1 >conftest.err 8279 rm -f conftest.er1 8280 cat conftest.err >&5 8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8282 (exit $ac_status); } && { 8283 test -z "$ac_c_werror_flag" || 8284 test ! -s conftest.err 8285 } && test -s conftest$ac_exeext && 8286 $as_test_x conftest$ac_exeext; then 8287 ac_cv_lib_dld_shl_load=yes 8288else 8289 echo "$as_me: failed program was:" >&5 8290sed 's/^/| /' conftest.$ac_ext >&5 8291 8292 ac_cv_lib_dld_shl_load=no 8293fi 8294 8295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8296 conftest$ac_exeext conftest.$ac_ext 8297LIBS=$ac_check_lib_save_LIBS 8298fi 8299{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8300echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8301if test $ac_cv_lib_dld_shl_load = yes; then 8302 tcl_ok=yes 8303else 8304 tcl_ok=no 8305fi 8306 8307 if test "$tcl_ok" = yes; then 8308 8309 LDFLAGS="$LDFLAGS -E" 8310 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8311 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8312 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8313 8314fi 8315 8316 if test "$GCC" = yes; then 8317 8318 SHLIB_LD='${CC} -shared' 8319 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8320 8321else 8322 8323 CFLAGS="$CFLAGS -z" 8324 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8325 #CFLAGS="$CFLAGS +DAportable" 8326 SHLIB_CFLAGS="+z" 8327 SHLIB_LD="ld -b" 8328 8329fi 8330 8331 8332 # Check to enable 64-bit flags for compiler/linker 8333 if test "$do64bit" = "yes"; then 8334 8335 if test "$GCC" = yes; then 8336 8337 case `${CC} -dumpmachine` in 8338 hppa64*) 8339 # 64-bit gcc in use. Fix flags for GNU ld. 8340 do64bit_ok=yes 8341 SHLIB_LD='${CC} -shared' 8342 if test $doRpath = yes; then 8343 8344 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8345fi 8346 8347 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8348 ;; 8349 *) 8350 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8351echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8352 ;; 8353 esac 8354 8355else 8356 8357 do64bit_ok=yes 8358 CFLAGS="$CFLAGS +DD64" 8359 LDFLAGS_ARCH="+DD64" 8360 8361fi 8362 8363 8364fi 8365 ;; 8366 IRIX-6.*) 8367 SHLIB_CFLAGS="" 8368 SHLIB_LD="ld -n32 -shared -rdata_shared" 8369 SHLIB_SUFFIX=".so" 8370 if test $doRpath = yes; then 8371 8372 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8373 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8374fi 8375 8376 if test "$GCC" = yes; then 8377 8378 CFLAGS="$CFLAGS -mabi=n32" 8379 LDFLAGS="$LDFLAGS -mabi=n32" 8380 8381else 8382 8383 case $system in 8384 IRIX-6.3) 8385 # Use to build 6.2 compatible binaries on 6.3. 8386 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8387 ;; 8388 *) 8389 CFLAGS="$CFLAGS -n32" 8390 ;; 8391 esac 8392 LDFLAGS="$LDFLAGS -n32" 8393 8394fi 8395 8396 ;; 8397 IRIX64-6.*) 8398 SHLIB_CFLAGS="" 8399 SHLIB_LD="ld -n32 -shared -rdata_shared" 8400 SHLIB_SUFFIX=".so" 8401 if test $doRpath = yes; then 8402 8403 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8404 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8405fi 8406 8407 8408 # Check to enable 64-bit flags for compiler/linker 8409 8410 if test "$do64bit" = yes; then 8411 8412 if test "$GCC" = yes; then 8413 8414 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8415echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8416 8417else 8418 8419 do64bit_ok=yes 8420 SHLIB_LD="ld -64 -shared -rdata_shared" 8421 CFLAGS="$CFLAGS -64" 8422 LDFLAGS_ARCH="-64" 8423 8424fi 8425 8426 8427fi 8428 8429 ;; 8430 Linux*) 8431 SHLIB_CFLAGS="-fPIC" 8432 SHLIB_SUFFIX=".so" 8433 8434 # TEA specific: 8435 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8436 8437 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8438 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8439 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8440 if test $doRpath = yes; then 8441 8442 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8443fi 8444 8445 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8446 if test "`uname -m`" = "alpha"; then 8447 CFLAGS="$CFLAGS -mieee" 8448fi 8449 8450 if test $do64bit = yes; then 8451 8452 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8453echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 8454if test "${tcl_cv_cc_m64+set}" = set; then 8455 echo $ECHO_N "(cached) $ECHO_C" >&6 8456else 8457 8458 hold_cflags=$CFLAGS 8459 CFLAGS="$CFLAGS -m64" 8460 cat >conftest.$ac_ext <<_ACEOF 8461/* confdefs.h. */ 8462_ACEOF 8463cat confdefs.h >>conftest.$ac_ext 8464cat >>conftest.$ac_ext <<_ACEOF 8465/* end confdefs.h. */ 8466 8467int 8468main () 8469{ 8470 8471 ; 8472 return 0; 8473} 8474_ACEOF 8475rm -f conftest.$ac_objext conftest$ac_exeext 8476if { (ac_try="$ac_link" 8477case "(($ac_try" in 8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8479 *) ac_try_echo=$ac_try;; 8480esac 8481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8482 (eval "$ac_link") 2>conftest.er1 8483 ac_status=$? 8484 grep -v '^ *+' conftest.er1 >conftest.err 8485 rm -f conftest.er1 8486 cat conftest.err >&5 8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8488 (exit $ac_status); } && { 8489 test -z "$ac_c_werror_flag" || 8490 test ! -s conftest.err 8491 } && test -s conftest$ac_exeext && 8492 $as_test_x conftest$ac_exeext; then 8493 tcl_cv_cc_m64=yes 8494else 8495 echo "$as_me: failed program was:" >&5 8496sed 's/^/| /' conftest.$ac_ext >&5 8497 8498 tcl_cv_cc_m64=no 8499fi 8500 8501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8502 conftest$ac_exeext conftest.$ac_ext 8503 CFLAGS=$hold_cflags 8504fi 8505{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8506echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 8507 if test $tcl_cv_cc_m64 = yes; then 8508 8509 CFLAGS="$CFLAGS -m64" 8510 do64bit_ok=yes 8511 8512fi 8513 8514 8515fi 8516 8517 8518 # The combo of gcc + glibc has a bug related to inlining of 8519 # functions like strtod(). The -fno-builtin flag should address 8520 # this problem but it does not work. The -fno-inline flag is kind 8521 # of overkill but it works. Disable inlining only when one of the 8522 # files in compat/*.c is being linked in. 8523 8524 if test x"${USE_COMPAT}" != x; then 8525 CFLAGS="$CFLAGS -fno-inline" 8526fi 8527 8528 8529 ;; 8530 GNU*) 8531 SHLIB_CFLAGS="-fPIC" 8532 SHLIB_SUFFIX=".so" 8533 8534 SHLIB_LD='${CC} -shared' 8535 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8536 CC_SEARCH_FLAGS="" 8537 LD_SEARCH_FLAGS="" 8538 if test "`uname -m`" = "alpha"; then 8539 CFLAGS="$CFLAGS -mieee" 8540fi 8541 8542 ;; 8543 Lynx*) 8544 SHLIB_CFLAGS="-fPIC" 8545 SHLIB_SUFFIX=".so" 8546 CFLAGS_OPTIMIZE=-02 8547 SHLIB_LD='${CC} -shared' 8548 LD_FLAGS="-Wl,--export-dynamic" 8549 if test $doRpath = yes; then 8550 8551 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8552 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8553fi 8554 8555 ;; 8556 OpenBSD-*) 8557 SHLIB_CFLAGS="-fPIC" 8558 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8559 SHLIB_SUFFIX=".so" 8560 if test $doRpath = yes; then 8561 8562 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8563fi 8564 8565 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8566 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8567 { echo "$as_me:$LINENO: checking for ELF" >&5 8568echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 8569if test "${tcl_cv_ld_elf+set}" = set; then 8570 echo $ECHO_N "(cached) $ECHO_C" >&6 8571else 8572 8573 cat >conftest.$ac_ext <<_ACEOF 8574/* confdefs.h. */ 8575_ACEOF 8576cat confdefs.h >>conftest.$ac_ext 8577cat >>conftest.$ac_ext <<_ACEOF 8578/* end confdefs.h. */ 8579 8580#ifdef __ELF__ 8581 yes 8582#endif 8583 8584_ACEOF 8585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8586 $EGREP "yes" >/dev/null 2>&1; then 8587 tcl_cv_ld_elf=yes 8588else 8589 tcl_cv_ld_elf=no 8590fi 8591rm -f -r conftest* 8592 8593fi 8594{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8595echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 8596 if test $tcl_cv_ld_elf = yes; then 8597 8598 LDFLAGS=-Wl,-export-dynamic 8599 8600else 8601 LDFLAGS="" 8602fi 8603 8604 if test "${TCL_THREADS}" = "1"; then 8605 8606 # OpenBSD builds and links with -pthread, never -lpthread. 8607 LIBS=`echo $LIBS | sed s/-lpthread//` 8608 CFLAGS="$CFLAGS -pthread" 8609 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8610 8611fi 8612 8613 # OpenBSD doesn't do version numbers with dots. 8614 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8615 TCL_LIB_VERSIONS_OK=nodots 8616 ;; 8617 NetBSD-*|FreeBSD-[3-4].*) 8618 # FreeBSD 3.* and greater have ELF. 8619 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8620 SHLIB_CFLAGS="-fPIC" 8621 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8622 SHLIB_SUFFIX=".so" 8623 LDFLAGS="$LDFLAGS -export-dynamic" 8624 if test $doRpath = yes; then 8625 8626 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8627fi 8628 8629 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8630 if test "${TCL_THREADS}" = "1"; then 8631 8632 # The -pthread needs to go in the CFLAGS, not LIBS 8633 LIBS=`echo $LIBS | sed s/-pthread//` 8634 CFLAGS="$CFLAGS -pthread" 8635 LDFLAGS="$LDFLAGS -pthread" 8636 8637fi 8638 8639 case $system in 8640 FreeBSD-3.*) 8641 # FreeBSD-3 doesn't handle version numbers with dots. 8642 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8643 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8644 TCL_LIB_VERSIONS_OK=nodots 8645 ;; 8646 esac 8647 ;; 8648 FreeBSD-*) 8649 # This configuration from FreeBSD Ports. 8650 SHLIB_CFLAGS="-fPIC" 8651 SHLIB_LD="${CC} -shared" 8652 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8653 SHLIB_SUFFIX=".so" 8654 LDFLAGS="" 8655 if test $doRpath = yes; then 8656 8657 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8658 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8659fi 8660 8661 if test "${TCL_THREADS}" = "1"; then 8662 8663 # The -pthread needs to go in the LDFLAGS, not LIBS 8664 LIBS=`echo $LIBS | sed s/-pthread//` 8665 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8666 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8667fi 8668 8669 # Version numbers are dot-stripped by system policy. 8670 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8671 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8672 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8673 TCL_LIB_VERSIONS_OK=nodots 8674 ;; 8675 Darwin-*) 8676 CFLAGS_OPTIMIZE="-Os" 8677 SHLIB_CFLAGS="-fno-common" 8678 # To avoid discrepancies between what headers configure sees during 8679 # preprocessing tests and compiling tests, move any -isysroot and 8680 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8681 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8682 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8683 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8684 CFLAGS="`echo " ${CFLAGS}" | \ 8685 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8686 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8687 if test $do64bit = yes; then 8688 8689 case `arch` in 8690 ppc) 8691 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8692echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 8693if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8694 echo $ECHO_N "(cached) $ECHO_C" >&6 8695else 8696 8697 hold_cflags=$CFLAGS 8698 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8699 cat >conftest.$ac_ext <<_ACEOF 8700/* confdefs.h. */ 8701_ACEOF 8702cat confdefs.h >>conftest.$ac_ext 8703cat >>conftest.$ac_ext <<_ACEOF 8704/* end confdefs.h. */ 8705 8706int 8707main () 8708{ 8709 8710 ; 8711 return 0; 8712} 8713_ACEOF 8714rm -f conftest.$ac_objext conftest$ac_exeext 8715if { (ac_try="$ac_link" 8716case "(($ac_try" in 8717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8718 *) ac_try_echo=$ac_try;; 8719esac 8720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8721 (eval "$ac_link") 2>conftest.er1 8722 ac_status=$? 8723 grep -v '^ *+' conftest.er1 >conftest.err 8724 rm -f conftest.er1 8725 cat conftest.err >&5 8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8727 (exit $ac_status); } && { 8728 test -z "$ac_c_werror_flag" || 8729 test ! -s conftest.err 8730 } && test -s conftest$ac_exeext && 8731 $as_test_x conftest$ac_exeext; then 8732 tcl_cv_cc_arch_ppc64=yes 8733else 8734 echo "$as_me: failed program was:" >&5 8735sed 's/^/| /' conftest.$ac_ext >&5 8736 8737 tcl_cv_cc_arch_ppc64=no 8738fi 8739 8740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8741 conftest$ac_exeext conftest.$ac_ext 8742 CFLAGS=$hold_cflags 8743fi 8744{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8745echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 8746 if test $tcl_cv_cc_arch_ppc64 = yes; then 8747 8748 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8749 do64bit_ok=yes 8750 8751fi 8752;; 8753 i386) 8754 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8755echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 8756if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8757 echo $ECHO_N "(cached) $ECHO_C" >&6 8758else 8759 8760 hold_cflags=$CFLAGS 8761 CFLAGS="$CFLAGS -arch x86_64" 8762 cat >conftest.$ac_ext <<_ACEOF 8763/* confdefs.h. */ 8764_ACEOF 8765cat confdefs.h >>conftest.$ac_ext 8766cat >>conftest.$ac_ext <<_ACEOF 8767/* end confdefs.h. */ 8768 8769int 8770main () 8771{ 8772 8773 ; 8774 return 0; 8775} 8776_ACEOF 8777rm -f conftest.$ac_objext conftest$ac_exeext 8778if { (ac_try="$ac_link" 8779case "(($ac_try" in 8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8781 *) ac_try_echo=$ac_try;; 8782esac 8783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8784 (eval "$ac_link") 2>conftest.er1 8785 ac_status=$? 8786 grep -v '^ *+' conftest.er1 >conftest.err 8787 rm -f conftest.er1 8788 cat conftest.err >&5 8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8790 (exit $ac_status); } && { 8791 test -z "$ac_c_werror_flag" || 8792 test ! -s conftest.err 8793 } && test -s conftest$ac_exeext && 8794 $as_test_x conftest$ac_exeext; then 8795 tcl_cv_cc_arch_x86_64=yes 8796else 8797 echo "$as_me: failed program was:" >&5 8798sed 's/^/| /' conftest.$ac_ext >&5 8799 8800 tcl_cv_cc_arch_x86_64=no 8801fi 8802 8803rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8804 conftest$ac_exeext conftest.$ac_ext 8805 CFLAGS=$hold_cflags 8806fi 8807{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8808echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 8809 if test $tcl_cv_cc_arch_x86_64 = yes; then 8810 8811 CFLAGS="$CFLAGS -arch x86_64" 8812 do64bit_ok=yes 8813 8814fi 8815;; 8816 *) 8817 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8818echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8819 esac 8820 8821else 8822 8823 # Check for combined 32-bit and 64-bit fat build 8824 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8825 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 8826 8827 fat_32_64=yes 8828fi 8829 8830 8831fi 8832 8833 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8834 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8835 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8836echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 8837if test "${tcl_cv_ld_single_module+set}" = set; then 8838 echo $ECHO_N "(cached) $ECHO_C" >&6 8839else 8840 8841 hold_ldflags=$LDFLAGS 8842 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8843 cat >conftest.$ac_ext <<_ACEOF 8844/* confdefs.h. */ 8845_ACEOF 8846cat confdefs.h >>conftest.$ac_ext 8847cat >>conftest.$ac_ext <<_ACEOF 8848/* end confdefs.h. */ 8849 8850int 8851main () 8852{ 8853int i; 8854 ; 8855 return 0; 8856} 8857_ACEOF 8858rm -f conftest.$ac_objext conftest$ac_exeext 8859if { (ac_try="$ac_link" 8860case "(($ac_try" in 8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8862 *) ac_try_echo=$ac_try;; 8863esac 8864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8865 (eval "$ac_link") 2>conftest.er1 8866 ac_status=$? 8867 grep -v '^ *+' conftest.er1 >conftest.err 8868 rm -f conftest.er1 8869 cat conftest.err >&5 8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8871 (exit $ac_status); } && { 8872 test -z "$ac_c_werror_flag" || 8873 test ! -s conftest.err 8874 } && test -s conftest$ac_exeext && 8875 $as_test_x conftest$ac_exeext; then 8876 tcl_cv_ld_single_module=yes 8877else 8878 echo "$as_me: failed program was:" >&5 8879sed 's/^/| /' conftest.$ac_ext >&5 8880 8881 tcl_cv_ld_single_module=no 8882fi 8883 8884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8885 conftest$ac_exeext conftest.$ac_ext 8886 LDFLAGS=$hold_ldflags 8887fi 8888{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 8889echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 8890 if test $tcl_cv_ld_single_module = yes; then 8891 8892 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 8893 8894fi 8895 8896 # TEA specific: link shlib with current and compatiblity version flags 8897 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 8898 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 8899 SHLIB_SUFFIX=".dylib" 8900 # Don't use -prebind when building for Mac OS X 10.4 or later only: 8901 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 8902 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 8903 8904 LDFLAGS="$LDFLAGS -prebind" 8905fi 8906 8907 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 8908 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 8909echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 8910if test "${tcl_cv_ld_search_paths_first+set}" = set; then 8911 echo $ECHO_N "(cached) $ECHO_C" >&6 8912else 8913 8914 hold_ldflags=$LDFLAGS 8915 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8916 cat >conftest.$ac_ext <<_ACEOF 8917/* confdefs.h. */ 8918_ACEOF 8919cat confdefs.h >>conftest.$ac_ext 8920cat >>conftest.$ac_ext <<_ACEOF 8921/* end confdefs.h. */ 8922 8923int 8924main () 8925{ 8926int i; 8927 ; 8928 return 0; 8929} 8930_ACEOF 8931rm -f conftest.$ac_objext conftest$ac_exeext 8932if { (ac_try="$ac_link" 8933case "(($ac_try" in 8934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8935 *) ac_try_echo=$ac_try;; 8936esac 8937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8938 (eval "$ac_link") 2>conftest.er1 8939 ac_status=$? 8940 grep -v '^ *+' conftest.er1 >conftest.err 8941 rm -f conftest.er1 8942 cat conftest.err >&5 8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8944 (exit $ac_status); } && { 8945 test -z "$ac_c_werror_flag" || 8946 test ! -s conftest.err 8947 } && test -s conftest$ac_exeext && 8948 $as_test_x conftest$ac_exeext; then 8949 tcl_cv_ld_search_paths_first=yes 8950else 8951 echo "$as_me: failed program was:" >&5 8952sed 's/^/| /' conftest.$ac_ext >&5 8953 8954 tcl_cv_ld_search_paths_first=no 8955fi 8956 8957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8958 conftest$ac_exeext conftest.$ac_ext 8959 LDFLAGS=$hold_ldflags 8960fi 8961{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 8962echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 8963 if test $tcl_cv_ld_search_paths_first = yes; then 8964 8965 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8966 8967fi 8968 8969 if test "$tcl_cv_cc_visibility_hidden" != yes; then 8970 8971 8972cat >>confdefs.h <<\_ACEOF 8973#define MODULE_SCOPE __private_extern__ 8974_ACEOF 8975 8976 tcl_cv_cc_visibility_hidden=yes 8977 8978fi 8979 8980 CC_SEARCH_FLAGS="" 8981 LD_SEARCH_FLAGS="" 8982 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 8983 # TEA specific: for combined 32 & 64 bit fat builds of Tk 8984 # extensions, verify that 64-bit build is possible. 8985 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 8986 8987 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 8988 8989 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 8990echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 8991if test "${tcl_cv_lib_x11_64+set}" = set; then 8992 echo $ECHO_N "(cached) $ECHO_C" >&6 8993else 8994 8995 for v in CFLAGS CPPFLAGS LDFLAGS; do 8996 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 8997 done 8998 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 8999 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9000 cat >conftest.$ac_ext <<_ACEOF 9001/* confdefs.h. */ 9002_ACEOF 9003cat confdefs.h >>conftest.$ac_ext 9004cat >>conftest.$ac_ext <<_ACEOF 9005/* end confdefs.h. */ 9006#include <X11/Xlib.h> 9007int 9008main () 9009{ 9010XrmInitialize(); 9011 ; 9012 return 0; 9013} 9014_ACEOF 9015rm -f conftest.$ac_objext conftest$ac_exeext 9016if { (ac_try="$ac_link" 9017case "(($ac_try" in 9018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9019 *) ac_try_echo=$ac_try;; 9020esac 9021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9022 (eval "$ac_link") 2>conftest.er1 9023 ac_status=$? 9024 grep -v '^ *+' conftest.er1 >conftest.err 9025 rm -f conftest.er1 9026 cat conftest.err >&5 9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9028 (exit $ac_status); } && { 9029 test -z "$ac_c_werror_flag" || 9030 test ! -s conftest.err 9031 } && test -s conftest$ac_exeext && 9032 $as_test_x conftest$ac_exeext; then 9033 tcl_cv_lib_x11_64=yes 9034else 9035 echo "$as_me: failed program was:" >&5 9036sed 's/^/| /' conftest.$ac_ext >&5 9037 9038 tcl_cv_lib_x11_64=no 9039fi 9040 9041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9042 conftest$ac_exeext conftest.$ac_ext 9043 for v in CFLAGS CPPFLAGS LDFLAGS; do 9044 eval $v'="$hold_'$v'"' 9045 done 9046fi 9047{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9048echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9049 9050fi 9051 9052 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9053 9054 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9055echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9056if test "${tcl_cv_lib_tk_64+set}" = set; then 9057 echo $ECHO_N "(cached) $ECHO_C" >&6 9058else 9059 9060 for v in CFLAGS CPPFLAGS LDFLAGS; do 9061 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9062 done 9063 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9064 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9065 cat >conftest.$ac_ext <<_ACEOF 9066/* confdefs.h. */ 9067_ACEOF 9068cat confdefs.h >>conftest.$ac_ext 9069cat >>conftest.$ac_ext <<_ACEOF 9070/* end confdefs.h. */ 9071#include <tk.h> 9072int 9073main () 9074{ 9075Tk_InitStubs(NULL, "", 0); 9076 ; 9077 return 0; 9078} 9079_ACEOF 9080rm -f conftest.$ac_objext conftest$ac_exeext 9081if { (ac_try="$ac_link" 9082case "(($ac_try" in 9083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9084 *) ac_try_echo=$ac_try;; 9085esac 9086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9087 (eval "$ac_link") 2>conftest.er1 9088 ac_status=$? 9089 grep -v '^ *+' conftest.er1 >conftest.err 9090 rm -f conftest.er1 9091 cat conftest.err >&5 9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9093 (exit $ac_status); } && { 9094 test -z "$ac_c_werror_flag" || 9095 test ! -s conftest.err 9096 } && test -s conftest$ac_exeext && 9097 $as_test_x conftest$ac_exeext; then 9098 tcl_cv_lib_tk_64=yes 9099else 9100 echo "$as_me: failed program was:" >&5 9101sed 's/^/| /' conftest.$ac_ext >&5 9102 9103 tcl_cv_lib_tk_64=no 9104fi 9105 9106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9107 conftest$ac_exeext conftest.$ac_ext 9108 for v in CFLAGS CPPFLAGS LDFLAGS; do 9109 eval $v'="$hold_'$v'"' 9110 done 9111fi 9112{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9113echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9114 9115fi 9116 9117 # remove 64-bit arch flags from CFLAGS et al. if configuration 9118 # does not support 64-bit. 9119 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9120 9121 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9122echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9123 for v in CFLAGS CPPFLAGS LDFLAGS; do 9124 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9125 done 9126fi 9127 9128 9129fi 9130 9131 ;; 9132 OS/390-*) 9133 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9134 9135cat >>confdefs.h <<\_ACEOF 9136#define _OE_SOCKETS 1 9137_ACEOF 9138 9139 ;; 9140 OSF1-V*) 9141 # Digital OSF/1 9142 SHLIB_CFLAGS="" 9143 if test "$SHARED_BUILD" = 1; then 9144 9145 SHLIB_LD='ld -shared -expect_unresolved "*"' 9146 9147else 9148 9149 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9150 9151fi 9152 9153 SHLIB_SUFFIX=".so" 9154 if test $doRpath = yes; then 9155 9156 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9157 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9158fi 9159 9160 if test "$GCC" = yes; then 9161 CFLAGS="$CFLAGS -mieee" 9162else 9163 9164 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9165fi 9166 9167 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9168 if test "${TCL_THREADS}" = 1; then 9169 9170 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9171 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9172 LIBS=`echo $LIBS | sed s/-lpthreads//` 9173 if test "$GCC" = yes; then 9174 9175 LIBS="$LIBS -lpthread -lmach -lexc" 9176 9177else 9178 9179 CFLAGS="$CFLAGS -pthread" 9180 LDFLAGS="$LDFLAGS -pthread" 9181 9182fi 9183 9184 9185fi 9186 9187 ;; 9188 QNX-6*) 9189 # QNX RTP 9190 # This may work for all QNX, but it was only reported for v6. 9191 SHLIB_CFLAGS="-fPIC" 9192 SHLIB_LD="ld -Bshareable -x" 9193 SHLIB_LD_LIBS="" 9194 SHLIB_SUFFIX=".so" 9195 CC_SEARCH_FLAGS="" 9196 LD_SEARCH_FLAGS="" 9197 ;; 9198 SCO_SV-3.2*) 9199 if test "$GCC" = yes; then 9200 9201 SHLIB_CFLAGS="-fPIC -melf" 9202 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9203 9204else 9205 9206 SHLIB_CFLAGS="-Kpic -belf" 9207 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9208 9209fi 9210 9211 SHLIB_LD="ld -G" 9212 SHLIB_LD_LIBS="" 9213 SHLIB_SUFFIX=".so" 9214 CC_SEARCH_FLAGS="" 9215 LD_SEARCH_FLAGS="" 9216 ;; 9217 SunOS-5.[0-6]) 9218 # Careful to not let 5.10+ fall into this case 9219 9220 # Note: If _REENTRANT isn't defined, then Solaris 9221 # won't define thread-safe library routines. 9222 9223 9224cat >>confdefs.h <<\_ACEOF 9225#define _REENTRANT 1 9226_ACEOF 9227 9228 9229cat >>confdefs.h <<\_ACEOF 9230#define _POSIX_PTHREAD_SEMANTICS 1 9231_ACEOF 9232 9233 9234 SHLIB_CFLAGS="-KPIC" 9235 SHLIB_SUFFIX=".so" 9236 if test "$GCC" = yes; then 9237 9238 SHLIB_LD='${CC} -shared' 9239 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9240 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9241 9242else 9243 9244 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9245 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9246 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9247 9248fi 9249 9250 ;; 9251 SunOS-5*) 9252 # Note: If _REENTRANT isn't defined, then Solaris 9253 # won't define thread-safe library routines. 9254 9255 9256cat >>confdefs.h <<\_ACEOF 9257#define _REENTRANT 1 9258_ACEOF 9259 9260 9261cat >>confdefs.h <<\_ACEOF 9262#define _POSIX_PTHREAD_SEMANTICS 1 9263_ACEOF 9264 9265 9266 SHLIB_CFLAGS="-KPIC" 9267 9268 # Check to enable 64-bit flags for compiler/linker 9269 if test "$do64bit" = yes; then 9270 9271 arch=`isainfo` 9272 if test "$arch" = "sparcv9 sparc"; then 9273 9274 if test "$GCC" = yes; then 9275 9276 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9277 9278 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9279echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9280 9281else 9282 9283 do64bit_ok=yes 9284 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9285 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9286 SHLIB_CFLAGS="-fPIC" 9287 9288fi 9289 9290 9291else 9292 9293 do64bit_ok=yes 9294 if test "$do64bitVIS" = yes; then 9295 9296 CFLAGS="$CFLAGS -xarch=v9a" 9297 LDFLAGS_ARCH="-xarch=v9a" 9298 9299else 9300 9301 CFLAGS="$CFLAGS -xarch=v9" 9302 LDFLAGS_ARCH="-xarch=v9" 9303 9304fi 9305 9306 # Solaris 64 uses this as well 9307 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9308 9309fi 9310 9311 9312else 9313 if test "$arch" = "amd64 i386"; then 9314 9315 if test "$GCC" = yes; then 9316 9317 case $system in 9318 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9319 do64bit_ok=yes 9320 CFLAGS="$CFLAGS -m64" 9321 LDFLAGS="$LDFLAGS -m64";; 9322 *) 9323 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9324echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9325 esac 9326 9327else 9328 9329 do64bit_ok=yes 9330 case $system in 9331 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9332 CFLAGS="$CFLAGS -m64" 9333 LDFLAGS="$LDFLAGS -m64";; 9334 *) 9335 CFLAGS="$CFLAGS -xarch=amd64" 9336 LDFLAGS="$LDFLAGS -xarch=amd64";; 9337 esac 9338 9339fi 9340 9341 9342else 9343 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9344echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9345fi 9346 9347fi 9348 9349 9350fi 9351 9352 9353 SHLIB_SUFFIX=".so" 9354 if test "$GCC" = yes; then 9355 9356 SHLIB_LD='${CC} -shared' 9357 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9358 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9359 if test "$do64bit_ok" = yes; then 9360 9361 if test "$arch" = "sparcv9 sparc"; then 9362 9363 # We need to specify -static-libgcc or we need to 9364 # add the path to the sparv9 libgcc. 9365 # JH: static-libgcc is necessary for core Tcl, but may 9366 # not be necessary for extensions. 9367 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9368 # for finding sparcv9 libgcc, get the regular libgcc 9369 # path, remove so name and append 'sparcv9' 9370 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9371 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9372 9373else 9374 if test "$arch" = "amd64 i386"; then 9375 9376 # JH: static-libgcc is necessary for core Tcl, but may 9377 # not be necessary for extensions. 9378 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9379 9380fi 9381 9382fi 9383 9384 9385fi 9386 9387 9388else 9389 9390 case $system in 9391 SunOS-5.[1-9][0-9]*) 9392 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9393 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9394 *) 9395 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9396 esac 9397 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9398 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9399 9400fi 9401 9402 ;; 9403 esac 9404 9405 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9406 9407 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9408echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9409 9410fi 9411 9412 9413 9414 9415 # Add in the arch flags late to ensure it wasn't removed. 9416 # Not necessary in TEA, but this is aligned with core 9417 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9418 9419 # If we're running gcc, then change the C flags for compiling shared 9420 # libraries to the right flags for gcc, instead of those for the 9421 # standard manufacturer compiler. 9422 9423 if test "$GCC" = yes; then 9424 9425 case $system in 9426 AIX-*) ;; 9427 BSD/OS*) ;; 9428 CYGWIN_*) ;; 9429 IRIX*) ;; 9430 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 9431 Darwin-*) ;; 9432 SCO_SV-3.2*) ;; 9433 windows) ;; 9434 *) SHLIB_CFLAGS="-fPIC" ;; 9435 esac 9436fi 9437 9438 9439 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9440 9441 9442cat >>confdefs.h <<\_ACEOF 9443#define MODULE_SCOPE extern 9444_ACEOF 9445 9446 9447cat >>confdefs.h <<\_ACEOF 9448#define NO_VIZ 9449_ACEOF 9450 9451 9452fi 9453 9454 9455 if test "$SHARED_LIB_SUFFIX" = ""; then 9456 9457 # TEA specific: use PACKAGE_VERSION instead of VERSION 9458 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9459fi 9460 9461 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9462 9463 # TEA specific: use PACKAGE_VERSION instead of VERSION 9464 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9465fi 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 # These must be called after we do the basic CFLAGS checks and 9481 # verify any possible 64-bit or similar switches are necessary 9482 9483 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9484echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 9485 tcl_flags="" 9486 9487 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9488 echo $ECHO_N "(cached) $ECHO_C" >&6 9489else 9490 cat >conftest.$ac_ext <<_ACEOF 9491/* confdefs.h. */ 9492_ACEOF 9493cat confdefs.h >>conftest.$ac_ext 9494cat >>conftest.$ac_ext <<_ACEOF 9495/* end confdefs.h. */ 9496#include <stdlib.h> 9497int 9498main () 9499{ 9500char *p = (char *)strtoll; char *q = (char *)strtoull; 9501 ; 9502 return 0; 9503} 9504_ACEOF 9505rm -f conftest.$ac_objext 9506if { (ac_try="$ac_compile" 9507case "(($ac_try" in 9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9509 *) ac_try_echo=$ac_try;; 9510esac 9511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9512 (eval "$ac_compile") 2>conftest.er1 9513 ac_status=$? 9514 grep -v '^ *+' conftest.er1 >conftest.err 9515 rm -f conftest.er1 9516 cat conftest.err >&5 9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9518 (exit $ac_status); } && { 9519 test -z "$ac_c_werror_flag" || 9520 test ! -s conftest.err 9521 } && test -s conftest.$ac_objext; then 9522 tcl_cv_flag__isoc99_source=no 9523else 9524 echo "$as_me: failed program was:" >&5 9525sed 's/^/| /' conftest.$ac_ext >&5 9526 9527 cat >conftest.$ac_ext <<_ACEOF 9528/* confdefs.h. */ 9529_ACEOF 9530cat confdefs.h >>conftest.$ac_ext 9531cat >>conftest.$ac_ext <<_ACEOF 9532/* end confdefs.h. */ 9533#define _ISOC99_SOURCE 1 9534#include <stdlib.h> 9535int 9536main () 9537{ 9538char *p = (char *)strtoll; char *q = (char *)strtoull; 9539 ; 9540 return 0; 9541} 9542_ACEOF 9543rm -f conftest.$ac_objext 9544if { (ac_try="$ac_compile" 9545case "(($ac_try" in 9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9547 *) ac_try_echo=$ac_try;; 9548esac 9549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9550 (eval "$ac_compile") 2>conftest.er1 9551 ac_status=$? 9552 grep -v '^ *+' conftest.er1 >conftest.err 9553 rm -f conftest.er1 9554 cat conftest.err >&5 9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9556 (exit $ac_status); } && { 9557 test -z "$ac_c_werror_flag" || 9558 test ! -s conftest.err 9559 } && test -s conftest.$ac_objext; then 9560 tcl_cv_flag__isoc99_source=yes 9561else 9562 echo "$as_me: failed program was:" >&5 9563sed 's/^/| /' conftest.$ac_ext >&5 9564 9565 tcl_cv_flag__isoc99_source=no 9566fi 9567 9568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9569fi 9570 9571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9572fi 9573 9574 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9575 9576cat >>confdefs.h <<\_ACEOF 9577#define _ISOC99_SOURCE 1 9578_ACEOF 9579 9580 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9581 fi 9582 9583 9584 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9585 echo $ECHO_N "(cached) $ECHO_C" >&6 9586else 9587 cat >conftest.$ac_ext <<_ACEOF 9588/* confdefs.h. */ 9589_ACEOF 9590cat confdefs.h >>conftest.$ac_ext 9591cat >>conftest.$ac_ext <<_ACEOF 9592/* end confdefs.h. */ 9593#include <sys/stat.h> 9594int 9595main () 9596{ 9597struct stat64 buf; int i = stat64("/", &buf); 9598 ; 9599 return 0; 9600} 9601_ACEOF 9602rm -f conftest.$ac_objext 9603if { (ac_try="$ac_compile" 9604case "(($ac_try" in 9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9606 *) ac_try_echo=$ac_try;; 9607esac 9608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9609 (eval "$ac_compile") 2>conftest.er1 9610 ac_status=$? 9611 grep -v '^ *+' conftest.er1 >conftest.err 9612 rm -f conftest.er1 9613 cat conftest.err >&5 9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9615 (exit $ac_status); } && { 9616 test -z "$ac_c_werror_flag" || 9617 test ! -s conftest.err 9618 } && test -s conftest.$ac_objext; then 9619 tcl_cv_flag__largefile64_source=no 9620else 9621 echo "$as_me: failed program was:" >&5 9622sed 's/^/| /' conftest.$ac_ext >&5 9623 9624 cat >conftest.$ac_ext <<_ACEOF 9625/* confdefs.h. */ 9626_ACEOF 9627cat confdefs.h >>conftest.$ac_ext 9628cat >>conftest.$ac_ext <<_ACEOF 9629/* end confdefs.h. */ 9630#define _LARGEFILE64_SOURCE 1 9631#include <sys/stat.h> 9632int 9633main () 9634{ 9635struct stat64 buf; int i = stat64("/", &buf); 9636 ; 9637 return 0; 9638} 9639_ACEOF 9640rm -f conftest.$ac_objext 9641if { (ac_try="$ac_compile" 9642case "(($ac_try" in 9643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9644 *) ac_try_echo=$ac_try;; 9645esac 9646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9647 (eval "$ac_compile") 2>conftest.er1 9648 ac_status=$? 9649 grep -v '^ *+' conftest.er1 >conftest.err 9650 rm -f conftest.er1 9651 cat conftest.err >&5 9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9653 (exit $ac_status); } && { 9654 test -z "$ac_c_werror_flag" || 9655 test ! -s conftest.err 9656 } && test -s conftest.$ac_objext; then 9657 tcl_cv_flag__largefile64_source=yes 9658else 9659 echo "$as_me: failed program was:" >&5 9660sed 's/^/| /' conftest.$ac_ext >&5 9661 9662 tcl_cv_flag__largefile64_source=no 9663fi 9664 9665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9666fi 9667 9668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9669fi 9670 9671 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9672 9673cat >>confdefs.h <<\_ACEOF 9674#define _LARGEFILE64_SOURCE 1 9675_ACEOF 9676 9677 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9678 fi 9679 9680 9681 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9682 echo $ECHO_N "(cached) $ECHO_C" >&6 9683else 9684 cat >conftest.$ac_ext <<_ACEOF 9685/* confdefs.h. */ 9686_ACEOF 9687cat confdefs.h >>conftest.$ac_ext 9688cat >>conftest.$ac_ext <<_ACEOF 9689/* end confdefs.h. */ 9690#include <sys/stat.h> 9691int 9692main () 9693{ 9694char *p = (char *)open64; 9695 ; 9696 return 0; 9697} 9698_ACEOF 9699rm -f conftest.$ac_objext 9700if { (ac_try="$ac_compile" 9701case "(($ac_try" in 9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9703 *) ac_try_echo=$ac_try;; 9704esac 9705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9706 (eval "$ac_compile") 2>conftest.er1 9707 ac_status=$? 9708 grep -v '^ *+' conftest.er1 >conftest.err 9709 rm -f conftest.er1 9710 cat conftest.err >&5 9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9712 (exit $ac_status); } && { 9713 test -z "$ac_c_werror_flag" || 9714 test ! -s conftest.err 9715 } && test -s conftest.$ac_objext; then 9716 tcl_cv_flag__largefile_source64=no 9717else 9718 echo "$as_me: failed program was:" >&5 9719sed 's/^/| /' conftest.$ac_ext >&5 9720 9721 cat >conftest.$ac_ext <<_ACEOF 9722/* confdefs.h. */ 9723_ACEOF 9724cat confdefs.h >>conftest.$ac_ext 9725cat >>conftest.$ac_ext <<_ACEOF 9726/* end confdefs.h. */ 9727#define _LARGEFILE_SOURCE64 1 9728#include <sys/stat.h> 9729int 9730main () 9731{ 9732char *p = (char *)open64; 9733 ; 9734 return 0; 9735} 9736_ACEOF 9737rm -f conftest.$ac_objext 9738if { (ac_try="$ac_compile" 9739case "(($ac_try" in 9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9741 *) ac_try_echo=$ac_try;; 9742esac 9743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9744 (eval "$ac_compile") 2>conftest.er1 9745 ac_status=$? 9746 grep -v '^ *+' conftest.er1 >conftest.err 9747 rm -f conftest.er1 9748 cat conftest.err >&5 9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9750 (exit $ac_status); } && { 9751 test -z "$ac_c_werror_flag" || 9752 test ! -s conftest.err 9753 } && test -s conftest.$ac_objext; then 9754 tcl_cv_flag__largefile_source64=yes 9755else 9756 echo "$as_me: failed program was:" >&5 9757sed 's/^/| /' conftest.$ac_ext >&5 9758 9759 tcl_cv_flag__largefile_source64=no 9760fi 9761 9762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9763fi 9764 9765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9766fi 9767 9768 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9769 9770cat >>confdefs.h <<\_ACEOF 9771#define _LARGEFILE_SOURCE64 1 9772_ACEOF 9773 9774 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9775 fi 9776 9777 if test "x${tcl_flags}" = "x" ; then 9778 { echo "$as_me:$LINENO: result: none" >&5 9779echo "${ECHO_T}none" >&6; } 9780 else 9781 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9782echo "${ECHO_T}${tcl_flags}" >&6; } 9783 fi 9784 9785 9786 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9787echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 9788 if test "${tcl_cv_type_64bit+set}" = set; then 9789 echo $ECHO_N "(cached) $ECHO_C" >&6 9790else 9791 9792 tcl_cv_type_64bit=none 9793 # See if the compiler knows natively about __int64 9794 cat >conftest.$ac_ext <<_ACEOF 9795/* confdefs.h. */ 9796_ACEOF 9797cat confdefs.h >>conftest.$ac_ext 9798cat >>conftest.$ac_ext <<_ACEOF 9799/* end confdefs.h. */ 9800 9801int 9802main () 9803{ 9804__int64 value = (__int64) 0; 9805 ; 9806 return 0; 9807} 9808_ACEOF 9809rm -f conftest.$ac_objext 9810if { (ac_try="$ac_compile" 9811case "(($ac_try" in 9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9813 *) ac_try_echo=$ac_try;; 9814esac 9815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9816 (eval "$ac_compile") 2>conftest.er1 9817 ac_status=$? 9818 grep -v '^ *+' conftest.er1 >conftest.err 9819 rm -f conftest.er1 9820 cat conftest.err >&5 9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9822 (exit $ac_status); } && { 9823 test -z "$ac_c_werror_flag" || 9824 test ! -s conftest.err 9825 } && test -s conftest.$ac_objext; then 9826 tcl_type_64bit=__int64 9827else 9828 echo "$as_me: failed program was:" >&5 9829sed 's/^/| /' conftest.$ac_ext >&5 9830 9831 tcl_type_64bit="long long" 9832fi 9833 9834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9835 # See if we should use long anyway Note that we substitute in the 9836 # type that is our current guess for a 64-bit type inside this check 9837 # program, so it should be modified only carefully... 9838 cat >conftest.$ac_ext <<_ACEOF 9839/* confdefs.h. */ 9840_ACEOF 9841cat confdefs.h >>conftest.$ac_ext 9842cat >>conftest.$ac_ext <<_ACEOF 9843/* end confdefs.h. */ 9844 9845int 9846main () 9847{ 9848switch (0) { 9849 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9850 } 9851 ; 9852 return 0; 9853} 9854_ACEOF 9855rm -f conftest.$ac_objext 9856if { (ac_try="$ac_compile" 9857case "(($ac_try" in 9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9859 *) ac_try_echo=$ac_try;; 9860esac 9861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9862 (eval "$ac_compile") 2>conftest.er1 9863 ac_status=$? 9864 grep -v '^ *+' conftest.er1 >conftest.err 9865 rm -f conftest.er1 9866 cat conftest.err >&5 9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9868 (exit $ac_status); } && { 9869 test -z "$ac_c_werror_flag" || 9870 test ! -s conftest.err 9871 } && test -s conftest.$ac_objext; then 9872 tcl_cv_type_64bit=${tcl_type_64bit} 9873else 9874 echo "$as_me: failed program was:" >&5 9875sed 's/^/| /' conftest.$ac_ext >&5 9876 9877 9878fi 9879 9880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9881fi 9882 9883 if test "${tcl_cv_type_64bit}" = none ; then 9884 9885cat >>confdefs.h <<\_ACEOF 9886#define TCL_WIDE_INT_IS_LONG 1 9887_ACEOF 9888 9889 { echo "$as_me:$LINENO: result: using long" >&5 9890echo "${ECHO_T}using long" >&6; } 9891 elif test "${tcl_cv_type_64bit}" = "__int64" \ 9892 -a "${TEA_PLATFORM}" = "windows" ; then 9893 # TEA specific: We actually want to use the default tcl.h checks in 9894 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 9895 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 9896echo "${ECHO_T}using Tcl header defaults" >&6; } 9897 else 9898 9899cat >>confdefs.h <<_ACEOF 9900#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 9901_ACEOF 9902 9903 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 9904echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 9905 9906 # Now check for auxiliary declarations 9907 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 9908echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 9909if test "${tcl_cv_struct_dirent64+set}" = set; then 9910 echo $ECHO_N "(cached) $ECHO_C" >&6 9911else 9912 9913 cat >conftest.$ac_ext <<_ACEOF 9914/* confdefs.h. */ 9915_ACEOF 9916cat confdefs.h >>conftest.$ac_ext 9917cat >>conftest.$ac_ext <<_ACEOF 9918/* end confdefs.h. */ 9919#include <sys/types.h> 9920#include <sys/dirent.h> 9921int 9922main () 9923{ 9924struct dirent64 p; 9925 ; 9926 return 0; 9927} 9928_ACEOF 9929rm -f conftest.$ac_objext 9930if { (ac_try="$ac_compile" 9931case "(($ac_try" in 9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9933 *) ac_try_echo=$ac_try;; 9934esac 9935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9936 (eval "$ac_compile") 2>conftest.er1 9937 ac_status=$? 9938 grep -v '^ *+' conftest.er1 >conftest.err 9939 rm -f conftest.er1 9940 cat conftest.err >&5 9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9942 (exit $ac_status); } && { 9943 test -z "$ac_c_werror_flag" || 9944 test ! -s conftest.err 9945 } && test -s conftest.$ac_objext; then 9946 tcl_cv_struct_dirent64=yes 9947else 9948 echo "$as_me: failed program was:" >&5 9949sed 's/^/| /' conftest.$ac_ext >&5 9950 9951 tcl_cv_struct_dirent64=no 9952fi 9953 9954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9955fi 9956{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 9957echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 9958 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 9959 9960cat >>confdefs.h <<\_ACEOF 9961#define HAVE_STRUCT_DIRENT64 1 9962_ACEOF 9963 9964 fi 9965 9966 { echo "$as_me:$LINENO: checking for struct stat64" >&5 9967echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 9968if test "${tcl_cv_struct_stat64+set}" = set; then 9969 echo $ECHO_N "(cached) $ECHO_C" >&6 9970else 9971 9972 cat >conftest.$ac_ext <<_ACEOF 9973/* confdefs.h. */ 9974_ACEOF 9975cat confdefs.h >>conftest.$ac_ext 9976cat >>conftest.$ac_ext <<_ACEOF 9977/* end confdefs.h. */ 9978#include <sys/stat.h> 9979int 9980main () 9981{ 9982struct stat64 p; 9983 9984 ; 9985 return 0; 9986} 9987_ACEOF 9988rm -f conftest.$ac_objext 9989if { (ac_try="$ac_compile" 9990case "(($ac_try" in 9991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9992 *) ac_try_echo=$ac_try;; 9993esac 9994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9995 (eval "$ac_compile") 2>conftest.er1 9996 ac_status=$? 9997 grep -v '^ *+' conftest.er1 >conftest.err 9998 rm -f conftest.er1 9999 cat conftest.err >&5 10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10001 (exit $ac_status); } && { 10002 test -z "$ac_c_werror_flag" || 10003 test ! -s conftest.err 10004 } && test -s conftest.$ac_objext; then 10005 tcl_cv_struct_stat64=yes 10006else 10007 echo "$as_me: failed program was:" >&5 10008sed 's/^/| /' conftest.$ac_ext >&5 10009 10010 tcl_cv_struct_stat64=no 10011fi 10012 10013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10014fi 10015{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10016echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10017 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10018 10019cat >>confdefs.h <<\_ACEOF 10020#define HAVE_STRUCT_STAT64 1 10021_ACEOF 10022 10023 fi 10024 10025 10026 10027for ac_func in open64 lseek64 10028do 10029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10030{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10032if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10033 echo $ECHO_N "(cached) $ECHO_C" >&6 10034else 10035 cat >conftest.$ac_ext <<_ACEOF 10036/* confdefs.h. */ 10037_ACEOF 10038cat confdefs.h >>conftest.$ac_ext 10039cat >>conftest.$ac_ext <<_ACEOF 10040/* end confdefs.h. */ 10041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10042 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10043#define $ac_func innocuous_$ac_func 10044 10045/* System header to define __stub macros and hopefully few prototypes, 10046 which can conflict with char $ac_func (); below. 10047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10048 <limits.h> exists even on freestanding compilers. */ 10049 10050#ifdef __STDC__ 10051# include <limits.h> 10052#else 10053# include <assert.h> 10054#endif 10055 10056#undef $ac_func 10057 10058/* Override any GCC internal prototype to avoid an error. 10059 Use char because int might match the return type of a GCC 10060 builtin and then its argument prototype would still apply. */ 10061#ifdef __cplusplus 10062extern "C" 10063#endif 10064char $ac_func (); 10065/* The GNU C library defines this for functions which it implements 10066 to always fail with ENOSYS. Some functions are actually named 10067 something starting with __ and the normal name is an alias. */ 10068#if defined __stub_$ac_func || defined __stub___$ac_func 10069choke me 10070#endif 10071 10072int 10073main () 10074{ 10075return $ac_func (); 10076 ; 10077 return 0; 10078} 10079_ACEOF 10080rm -f conftest.$ac_objext conftest$ac_exeext 10081if { (ac_try="$ac_link" 10082case "(($ac_try" in 10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10084 *) ac_try_echo=$ac_try;; 10085esac 10086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10087 (eval "$ac_link") 2>conftest.er1 10088 ac_status=$? 10089 grep -v '^ *+' conftest.er1 >conftest.err 10090 rm -f conftest.er1 10091 cat conftest.err >&5 10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10093 (exit $ac_status); } && { 10094 test -z "$ac_c_werror_flag" || 10095 test ! -s conftest.err 10096 } && test -s conftest$ac_exeext && 10097 $as_test_x conftest$ac_exeext; then 10098 eval "$as_ac_var=yes" 10099else 10100 echo "$as_me: failed program was:" >&5 10101sed 's/^/| /' conftest.$ac_ext >&5 10102 10103 eval "$as_ac_var=no" 10104fi 10105 10106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10107 conftest$ac_exeext conftest.$ac_ext 10108fi 10109ac_res=`eval echo '${'$as_ac_var'}'` 10110 { echo "$as_me:$LINENO: result: $ac_res" >&5 10111echo "${ECHO_T}$ac_res" >&6; } 10112if test `eval echo '${'$as_ac_var'}'` = yes; then 10113 cat >>confdefs.h <<_ACEOF 10114#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10115_ACEOF 10116 10117fi 10118done 10119 10120 { echo "$as_me:$LINENO: checking for off64_t" >&5 10121echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10122 if test "${tcl_cv_type_off64_t+set}" = set; then 10123 echo $ECHO_N "(cached) $ECHO_C" >&6 10124else 10125 10126 cat >conftest.$ac_ext <<_ACEOF 10127/* confdefs.h. */ 10128_ACEOF 10129cat confdefs.h >>conftest.$ac_ext 10130cat >>conftest.$ac_ext <<_ACEOF 10131/* end confdefs.h. */ 10132#include <sys/types.h> 10133int 10134main () 10135{ 10136off64_t offset; 10137 10138 ; 10139 return 0; 10140} 10141_ACEOF 10142rm -f conftest.$ac_objext 10143if { (ac_try="$ac_compile" 10144case "(($ac_try" in 10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10146 *) ac_try_echo=$ac_try;; 10147esac 10148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10149 (eval "$ac_compile") 2>conftest.er1 10150 ac_status=$? 10151 grep -v '^ *+' conftest.er1 >conftest.err 10152 rm -f conftest.er1 10153 cat conftest.err >&5 10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10155 (exit $ac_status); } && { 10156 test -z "$ac_c_werror_flag" || 10157 test ! -s conftest.err 10158 } && test -s conftest.$ac_objext; then 10159 tcl_cv_type_off64_t=yes 10160else 10161 echo "$as_me: failed program was:" >&5 10162sed 's/^/| /' conftest.$ac_ext >&5 10163 10164 tcl_cv_type_off64_t=no 10165fi 10166 10167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10168fi 10169 10170 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10171 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10172 test "x${ac_cv_func_open64}" = "xyes" ; then 10173 10174cat >>confdefs.h <<\_ACEOF 10175#define HAVE_TYPE_OFF64_T 1 10176_ACEOF 10177 10178 { echo "$as_me:$LINENO: result: yes" >&5 10179echo "${ECHO_T}yes" >&6; } 10180 else 10181 { echo "$as_me:$LINENO: result: no" >&5 10182echo "${ECHO_T}no" >&6; } 10183 fi 10184 fi 10185 10186 10187 10188# Remove 64-bit arch flags from CFLAGS et al. for combined 32 & 64 bit 10189# fat builds as Tclresource cannot be built for 64-bit at present. 10190test "$fat_32_64" = yes && for v in CFLAGS CPPFLAGS LDFLAGS; do 10191 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 10192done 10193 10194#-------------------------------------------------------------------- 10195# Set the default compiler switches based on the --enable-symbols option. 10196#-------------------------------------------------------------------- 10197 10198 10199 10200 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10201echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10202 # Check whether --enable-symbols was given. 10203if test "${enable_symbols+set}" = set; then 10204 enableval=$enable_symbols; tcl_ok=$enableval 10205else 10206 tcl_ok=no 10207fi 10208 10209 DBGX="" 10210 if test "$tcl_ok" = "no"; then 10211 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10212 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10213 { echo "$as_me:$LINENO: result: no" >&5 10214echo "${ECHO_T}no" >&6; } 10215 else 10216 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10217 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10218 if test "$tcl_ok" = "yes"; then 10219 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10220echo "${ECHO_T}yes (standard debugging)" >&6; } 10221 fi 10222 fi 10223 # TEA specific: 10224 if test "${TEA_PLATFORM}" != "windows" ; then 10225 LDFLAGS_DEFAULT="${LDFLAGS}" 10226 fi 10227 10228 10229 10230 10231 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10232 10233cat >>confdefs.h <<\_ACEOF 10234#define TCL_MEM_DEBUG 1 10235_ACEOF 10236 10237 fi 10238 10239 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10240 if test "$tcl_ok" = "all"; then 10241 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10242echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10243 else 10244 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10245echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10246 fi 10247 fi 10248 10249 10250#-------------------------------------------------------------------- 10251# Everyone should be linking against the Tcl stub library. If you 10252# can't for some reason, remove this definition. If you aren't using 10253# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10254# link against the non-stubbed Tcl library. Add Tk too if necessary. 10255#-------------------------------------------------------------------- 10256 10257 10258cat >>confdefs.h <<\_ACEOF 10259#define USE_TCL_STUBS 1 10260_ACEOF 10261 10262 10263#-------------------------------------------------------------------- 10264# This macro generates a line to use when building a library. It 10265# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10266# and TEA_LOAD_TCLCONFIG macros above. 10267#-------------------------------------------------------------------- 10268 10269 10270 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10271 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10272 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10273 cat >conftest.$ac_ext <<_ACEOF 10274/* confdefs.h. */ 10275_ACEOF 10276cat confdefs.h >>conftest.$ac_ext 10277cat >>conftest.$ac_ext <<_ACEOF 10278/* end confdefs.h. */ 10279 10280#if defined(_MSC_VER) && _MSC_VER >= 1400 10281print("manifest needed") 10282#endif 10283 10284_ACEOF 10285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10286 $EGREP "manifest needed" >/dev/null 2>&1; then 10287 10288 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 10289 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 10290 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 10291 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 10292 10293 CLEANFILES="$CLEANFILES *.manifest" 10294 10295 10296fi 10297rm -f -r conftest* 10298 10299 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 10300 else 10301 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 10302 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 10303 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 10304 fi 10305 10306 if test "${SHARED_BUILD}" = "1" ; then 10307 MAKE_LIB="${MAKE_SHARED_LIB} " 10308 else 10309 MAKE_LIB="${MAKE_STATIC_LIB} " 10310 fi 10311 10312 #-------------------------------------------------------------------- 10313 # Shared libraries and static libraries have different names. 10314 # Use the double eval to make sure any variables in the suffix is 10315 # substituted. (@@@ Might not be necessary anymore) 10316 #-------------------------------------------------------------------- 10317 10318 if test "${TEA_PLATFORM}" = "windows" ; then 10319 if test "${SHARED_BUILD}" = "1" ; then 10320 # We force the unresolved linking of symbols that are really in 10321 # the private libraries of Tcl and Tk. 10322 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 10323 if test x"${TK_BIN_DIR}" != x ; then 10324 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 10325 fi 10326 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10327 else 10328 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10329 fi 10330 # Some packages build their own stubs libraries 10331 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10332 if test "$GCC" = "yes"; then 10333 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 10334 fi 10335 # These aren't needed on Windows (either MSVC or gcc) 10336 RANLIB=: 10337 RANLIB_STUB=: 10338 else 10339 RANLIB_STUB="${RANLIB}" 10340 if test "${SHARED_BUILD}" = "1" ; then 10341 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 10342 if test x"${TK_BIN_DIR}" != x ; then 10343 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 10344 fi 10345 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10346 RANLIB=: 10347 else 10348 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10349 fi 10350 # Some packages build their own stubs libraries 10351 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10352 fi 10353 10354 # These are escaped so that only CFLAGS is picked up at configure time. 10355 # The other values will be substituted at make time. 10356 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 10357 if test "${SHARED_BUILD}" = "1" ; then 10358 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 10359 fi 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370#-------------------------------------------------------------------- 10371# Determine the name of the tclsh and/or wish executables in the 10372# Tcl and Tk build directories or the location they were installed 10373# into. These paths are used to support running test cases only, 10374# the Makefile should not be making use of these paths to generate 10375# a pkgIndex.tcl file or anything else at extension build time. 10376#-------------------------------------------------------------------- 10377 10378 10379 { echo "$as_me:$LINENO: checking for tclsh" >&5 10380echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 10381 if test -f "${TCL_BIN_DIR}/Makefile" ; then 10382 # tclConfig.sh is in Tcl build directory 10383 if test "${TEA_PLATFORM}" = "windows"; then 10384 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10385 else 10386 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 10387 fi 10388 else 10389 # tclConfig.sh is in install location 10390 if test "${TEA_PLATFORM}" = "windows"; then 10391 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10392 else 10393 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 10394 fi 10395 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 10396 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 10397 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 10398 for i in $list ; do 10399 if test -f "$i/${TCLSH_PROG}" ; then 10400 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 10401 break 10402 fi 10403 done 10404 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 10405 fi 10406 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 10407echo "${ECHO_T}${TCLSH_PROG}" >&6; } 10408 10409 10410 10411#-------------------------------------------------------------------- 10412# Finally, substitute all of the various values into the Makefile. 10413# You may alternatively have a special pkgIndex.tcl.in or other files 10414# which require substituting th AC variables in. Include these here. 10415#-------------------------------------------------------------------- 10416 10417ac_config_files="$ac_config_files Makefile pkgIndex.tcl" 10418 10419cat >confcache <<\_ACEOF 10420# This file is a shell script that caches the results of configure 10421# tests run on this system so they can be shared between configure 10422# scripts and configure runs, see configure's option --config-cache. 10423# It is not useful on other systems. If it contains results you don't 10424# want to keep, you may remove or edit it. 10425# 10426# config.status only pays attention to the cache file if you give it 10427# the --recheck option to rerun configure. 10428# 10429# `ac_cv_env_foo' variables (set or unset) will be overridden when 10430# loading this file, other *unset* `ac_cv_foo' will be assigned the 10431# following values. 10432 10433_ACEOF 10434 10435# The following way of writing the cache mishandles newlines in values, 10436# but we know of no workaround that is simple, portable, and efficient. 10437# So, we kill variables containing newlines. 10438# Ultrix sh set writes to stderr and can't be redirected directly, 10439# and sets the high bit in the cache file unless we assign to the vars. 10440( 10441 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10442 eval ac_val=\$$ac_var 10443 case $ac_val in #( 10444 *${as_nl}*) 10445 case $ac_var in #( 10446 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 10447echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 10448 esac 10449 case $ac_var in #( 10450 _ | IFS | as_nl) ;; #( 10451 *) $as_unset $ac_var ;; 10452 esac ;; 10453 esac 10454 done 10455 10456 (set) 2>&1 | 10457 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10458 *${as_nl}ac_space=\ *) 10459 # `set' does not quote correctly, so add quotes (double-quote 10460 # substitution turns \\\\ into \\, and sed turns \\ into \). 10461 sed -n \ 10462 "s/'/'\\\\''/g; 10463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10464 ;; #( 10465 *) 10466 # `set' quotes correctly as required by POSIX, so do not add quotes. 10467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10468 ;; 10469 esac | 10470 sort 10471) | 10472 sed ' 10473 /^ac_cv_env_/b end 10474 t clear 10475 :clear 10476 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10477 t end 10478 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10479 :end' >>confcache 10480if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10481 if test -w "$cache_file"; then 10482 test "x$cache_file" != "x/dev/null" && 10483 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 10484echo "$as_me: updating cache $cache_file" >&6;} 10485 cat confcache >$cache_file 10486 else 10487 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 10488echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10489 fi 10490fi 10491rm -f confcache 10492 10493test "x$prefix" = xNONE && prefix=$ac_default_prefix 10494# Let make expand exec_prefix. 10495test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10496 10497# Transform confdefs.h into DEFS. 10498# Protect against shell expansion while executing Makefile rules. 10499# Protect against Makefile macro expansion. 10500# 10501# If the first sed substitution is executed (which looks for macros that 10502# take arguments), then branch to the quote section. Otherwise, 10503# look for a macro that doesn't take arguments. 10504ac_script=' 10505t clear 10506:clear 10507s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10508t quote 10509s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10510t quote 10511b any 10512:quote 10513s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10514s/\[/\\&/g 10515s/\]/\\&/g 10516s/\$/$$/g 10517H 10518:any 10519${ 10520 g 10521 s/^\n// 10522 s/\n/ /g 10523 p 10524} 10525' 10526DEFS=`sed -n "$ac_script" confdefs.h` 10527 10528 10529ac_libobjs= 10530ac_ltlibobjs= 10531for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10532 # 1. Remove the extension, and $U if already installed. 10533 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10534 ac_i=`echo "$ac_i" | sed "$ac_script"` 10535 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10536 # will be set to the directory where LIBOBJS objects are built. 10537 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10538 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 10539done 10540LIBOBJS=$ac_libobjs 10541 10542LTLIBOBJS=$ac_ltlibobjs 10543 10544 10545CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 10546 10547: ${CONFIG_STATUS=./config.status} 10548ac_clean_files_save=$ac_clean_files 10549ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10550{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10551echo "$as_me: creating $CONFIG_STATUS" >&6;} 10552cat >$CONFIG_STATUS <<_ACEOF 10553#! $SHELL 10554# Generated by $as_me. 10555# Run this file to recreate the current configuration. 10556# Compiler output produced by configure, useful for debugging 10557# configure, is in config.log if it exists. 10558 10559debug=false 10560ac_cs_recheck=false 10561ac_cs_silent=false 10562SHELL=\${CONFIG_SHELL-$SHELL} 10563_ACEOF 10564 10565cat >>$CONFIG_STATUS <<\_ACEOF 10566## --------------------- ## 10567## M4sh Initialization. ## 10568## --------------------- ## 10569 10570# Be more Bourne compatible 10571DUALCASE=1; export DUALCASE # for MKS sh 10572if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10573 emulate sh 10574 NULLCMD=: 10575 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10576 # is contrary to our usage. Disable this feature. 10577 alias -g '${1+"$@"}'='"$@"' 10578 setopt NO_GLOB_SUBST 10579else 10580 case `(set -o) 2>/dev/null` in 10581 *posix*) set -o posix ;; 10582esac 10583 10584fi 10585 10586 10587 10588 10589# PATH needs CR 10590# Avoid depending upon Character Ranges. 10591as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10592as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10593as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10594as_cr_digits='0123456789' 10595as_cr_alnum=$as_cr_Letters$as_cr_digits 10596 10597# The user is always right. 10598if test "${PATH_SEPARATOR+set}" != set; then 10599 echo "#! /bin/sh" >conf$$.sh 10600 echo "exit 0" >>conf$$.sh 10601 chmod +x conf$$.sh 10602 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10603 PATH_SEPARATOR=';' 10604 else 10605 PATH_SEPARATOR=: 10606 fi 10607 rm -f conf$$.sh 10608fi 10609 10610# Support unset when possible. 10611if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10612 as_unset=unset 10613else 10614 as_unset=false 10615fi 10616 10617 10618# IFS 10619# We need space, tab and new line, in precisely that order. Quoting is 10620# there to prevent editors from complaining about space-tab. 10621# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10622# splitting by setting IFS to empty value.) 10623as_nl=' 10624' 10625IFS=" "" $as_nl" 10626 10627# Find who we are. Look in the path if we contain no directory separator. 10628case $0 in 10629 *[\\/]* ) as_myself=$0 ;; 10630 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10631for as_dir in $PATH 10632do 10633 IFS=$as_save_IFS 10634 test -z "$as_dir" && as_dir=. 10635 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10636done 10637IFS=$as_save_IFS 10638 10639 ;; 10640esac 10641# We did not find ourselves, most probably we were run as `sh COMMAND' 10642# in which case we are not to be found in the path. 10643if test "x$as_myself" = x; then 10644 as_myself=$0 10645fi 10646if test ! -f "$as_myself"; then 10647 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10648 { (exit 1); exit 1; } 10649fi 10650 10651# Work around bugs in pre-3.0 UWIN ksh. 10652for as_var in ENV MAIL MAILPATH 10653do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10654done 10655PS1='$ ' 10656PS2='> ' 10657PS4='+ ' 10658 10659# NLS nuisances. 10660for as_var in \ 10661 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 10662 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 10663 LC_TELEPHONE LC_TIME 10664do 10665 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 10666 eval $as_var=C; export $as_var 10667 else 10668 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10669 fi 10670done 10671 10672# Required to use basename. 10673if expr a : '\(a\)' >/dev/null 2>&1 && 10674 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10675 as_expr=expr 10676else 10677 as_expr=false 10678fi 10679 10680if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10681 as_basename=basename 10682else 10683 as_basename=false 10684fi 10685 10686 10687# Name of the executable. 10688as_me=`$as_basename -- "$0" || 10689$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10690 X"$0" : 'X\(//\)$' \| \ 10691 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10692echo X/"$0" | 10693 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10694 s//\1/ 10695 q 10696 } 10697 /^X\/\(\/\/\)$/{ 10698 s//\1/ 10699 q 10700 } 10701 /^X\/\(\/\).*/{ 10702 s//\1/ 10703 q 10704 } 10705 s/.*/./; q'` 10706 10707# CDPATH. 10708$as_unset CDPATH 10709 10710 10711 10712 as_lineno_1=$LINENO 10713 as_lineno_2=$LINENO 10714 test "x$as_lineno_1" != "x$as_lineno_2" && 10715 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 10716 10717 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10718 # uniformly replaced by the line number. The first 'sed' inserts a 10719 # line-number line after each line using $LINENO; the second 'sed' 10720 # does the real work. The second script uses 'N' to pair each 10721 # line-number line with the line containing $LINENO, and appends 10722 # trailing '-' during substitution so that $LINENO is not a special 10723 # case at line end. 10724 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10725 # scripts with optimization help from Paolo Bonzini. Blame Lee 10726 # E. McMahon (1931-1989) for sed's syntax. :-) 10727 sed -n ' 10728 p 10729 /[$]LINENO/= 10730 ' <$as_myself | 10731 sed ' 10732 s/[$]LINENO.*/&-/ 10733 t lineno 10734 b 10735 :lineno 10736 N 10737 :loop 10738 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 10739 t loop 10740 s/-\n.*// 10741 ' >$as_me.lineno && 10742 chmod +x "$as_me.lineno" || 10743 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 10744 { (exit 1); exit 1; }; } 10745 10746 # Don't try to exec as it changes $[0], causing all sort of problems 10747 # (the dirname of $[0] is not the place where we might find the 10748 # original and so on. Autoconf is especially sensitive to this). 10749 . "./$as_me.lineno" 10750 # Exit status is that of the last command. 10751 exit 10752} 10753 10754 10755if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10756 as_dirname=dirname 10757else 10758 as_dirname=false 10759fi 10760 10761ECHO_C= ECHO_N= ECHO_T= 10762case `echo -n x` in 10763-n*) 10764 case `echo 'x\c'` in 10765 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10766 *) ECHO_C='\c';; 10767 esac;; 10768*) 10769 ECHO_N='-n';; 10770esac 10771 10772if expr a : '\(a\)' >/dev/null 2>&1 && 10773 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10774 as_expr=expr 10775else 10776 as_expr=false 10777fi 10778 10779rm -f conf$$ conf$$.exe conf$$.file 10780if test -d conf$$.dir; then 10781 rm -f conf$$.dir/conf$$.file 10782else 10783 rm -f conf$$.dir 10784 mkdir conf$$.dir 10785fi 10786echo >conf$$.file 10787if ln -s conf$$.file conf$$ 2>/dev/null; then 10788 as_ln_s='ln -s' 10789 # ... but there are two gotchas: 10790 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10791 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10792 # In both cases, we have to default to `cp -p'. 10793 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10794 as_ln_s='cp -p' 10795elif ln conf$$.file conf$$ 2>/dev/null; then 10796 as_ln_s=ln 10797else 10798 as_ln_s='cp -p' 10799fi 10800rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10801rmdir conf$$.dir 2>/dev/null 10802 10803if mkdir -p . 2>/dev/null; then 10804 as_mkdir_p=: 10805else 10806 test -d ./-p && rmdir ./-p 10807 as_mkdir_p=false 10808fi 10809 10810if test -x / >/dev/null 2>&1; then 10811 as_test_x='test -x' 10812else 10813 if ls -dL / >/dev/null 2>&1; then 10814 as_ls_L_option=L 10815 else 10816 as_ls_L_option= 10817 fi 10818 as_test_x=' 10819 eval sh -c '\'' 10820 if test -d "$1"; then 10821 test -d "$1/."; 10822 else 10823 case $1 in 10824 -*)set "./$1";; 10825 esac; 10826 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 10827 ???[sx]*):;;*)false;;esac;fi 10828 '\'' sh 10829 ' 10830fi 10831as_executable_p=$as_test_x 10832 10833# Sed expression to map a string onto a valid CPP name. 10834as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10835 10836# Sed expression to map a string onto a valid variable name. 10837as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10838 10839 10840exec 6>&1 10841 10842# Save the log message, to keep $[0] and so on meaningful, and to 10843# report actual input values of CONFIG_FILES etc. instead of their 10844# values after options handling. 10845ac_log=" 10846This file was extended by Tclresource $as_me 1.1.2, which was 10847generated by GNU Autoconf 2.61. Invocation command line was 10848 10849 CONFIG_FILES = $CONFIG_FILES 10850 CONFIG_HEADERS = $CONFIG_HEADERS 10851 CONFIG_LINKS = $CONFIG_LINKS 10852 CONFIG_COMMANDS = $CONFIG_COMMANDS 10853 $ $0 $@ 10854 10855on `(hostname || uname -n) 2>/dev/null | sed 1q` 10856" 10857 10858_ACEOF 10859 10860cat >>$CONFIG_STATUS <<_ACEOF 10861# Files that config.status was made for. 10862config_files="$ac_config_files" 10863 10864_ACEOF 10865 10866cat >>$CONFIG_STATUS <<\_ACEOF 10867ac_cs_usage="\ 10868\`$as_me' instantiates files from templates according to the 10869current configuration. 10870 10871Usage: $0 [OPTIONS] [FILE]... 10872 10873 -h, --help print this help, then exit 10874 -V, --version print version number and configuration settings, then exit 10875 -q, --quiet do not print progress messages 10876 -d, --debug don't remove temporary files 10877 --recheck update $as_me by reconfiguring in the same conditions 10878 --file=FILE[:TEMPLATE] 10879 instantiate the configuration file FILE 10880 10881Configuration files: 10882$config_files 10883 10884Report bugs to <bug-autoconf@gnu.org>." 10885 10886_ACEOF 10887cat >>$CONFIG_STATUS <<_ACEOF 10888ac_cs_version="\\ 10889Tclresource config.status 1.1.2 10890configured by $0, generated by GNU Autoconf 2.61, 10891 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 10892 10893Copyright (C) 2006 Free Software Foundation, Inc. 10894This config.status script is free software; the Free Software Foundation 10895gives unlimited permission to copy, distribute and modify it." 10896 10897ac_pwd='$ac_pwd' 10898srcdir='$srcdir' 10899INSTALL='$INSTALL' 10900_ACEOF 10901 10902cat >>$CONFIG_STATUS <<\_ACEOF 10903# If no file are specified by the user, then we need to provide default 10904# value. By we need to know if files were specified by the user. 10905ac_need_defaults=: 10906while test $# != 0 10907do 10908 case $1 in 10909 --*=*) 10910 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10911 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10912 ac_shift=: 10913 ;; 10914 *) 10915 ac_option=$1 10916 ac_optarg=$2 10917 ac_shift=shift 10918 ;; 10919 esac 10920 10921 case $ac_option in 10922 # Handling of the options. 10923 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10924 ac_cs_recheck=: ;; 10925 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10926 echo "$ac_cs_version"; exit ;; 10927 --debug | --debu | --deb | --de | --d | -d ) 10928 debug=: ;; 10929 --file | --fil | --fi | --f ) 10930 $ac_shift 10931 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 10932 ac_need_defaults=false;; 10933 --he | --h | --help | --hel | -h ) 10934 echo "$ac_cs_usage"; exit ;; 10935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10936 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10937 ac_cs_silent=: ;; 10938 10939 # This is an error. 10940 -*) { echo "$as_me: error: unrecognized option: $1 10941Try \`$0 --help' for more information." >&2 10942 { (exit 1); exit 1; }; } ;; 10943 10944 *) ac_config_targets="$ac_config_targets $1" 10945 ac_need_defaults=false ;; 10946 10947 esac 10948 shift 10949done 10950 10951ac_configure_extra_args= 10952 10953if $ac_cs_silent; then 10954 exec 6>/dev/null 10955 ac_configure_extra_args="$ac_configure_extra_args --silent" 10956fi 10957 10958_ACEOF 10959cat >>$CONFIG_STATUS <<_ACEOF 10960if \$ac_cs_recheck; then 10961 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 10962 CONFIG_SHELL=$SHELL 10963 export CONFIG_SHELL 10964 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10965fi 10966 10967_ACEOF 10968cat >>$CONFIG_STATUS <<\_ACEOF 10969exec 5>>config.log 10970{ 10971 echo 10972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10973## Running $as_me. ## 10974_ASBOX 10975 echo "$ac_log" 10976} >&5 10977 10978_ACEOF 10979cat >>$CONFIG_STATUS <<_ACEOF 10980_ACEOF 10981 10982cat >>$CONFIG_STATUS <<\_ACEOF 10983 10984# Handling of arguments. 10985for ac_config_target in $ac_config_targets 10986do 10987 case $ac_config_target in 10988 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10989 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 10990 10991 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 10992echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 10993 { (exit 1); exit 1; }; };; 10994 esac 10995done 10996 10997 10998# If the user did not use the arguments to specify the items to instantiate, 10999# then the envvar interface is used. Set only those that are not. 11000# We use the long form for the default assignment because of an extremely 11001# bizarre bug on SunOS 4.1.3. 11002if $ac_need_defaults; then 11003 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11004fi 11005 11006# Have a temporary directory for convenience. Make it in the build tree 11007# simply because there is no reason against having it here, and in addition, 11008# creating and moving files from /tmp can sometimes cause problems. 11009# Hook for its removal unless debugging. 11010# Note that there is a small window in which the directory will not be cleaned: 11011# after its creation but before its name has been assigned to `$tmp'. 11012$debug || 11013{ 11014 tmp= 11015 trap 'exit_status=$? 11016 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 11017' 0 11018 trap '{ (exit 1); exit 1; }' 1 2 13 15 11019} 11020# Create a (secure) tmp directory for tmp files. 11021 11022{ 11023 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11024 test -n "$tmp" && test -d "$tmp" 11025} || 11026{ 11027 tmp=./conf$$-$RANDOM 11028 (umask 077 && mkdir "$tmp") 11029} || 11030{ 11031 echo "$me: cannot create a temporary directory in ." >&2 11032 { (exit 1); exit 1; } 11033} 11034 11035# 11036# Set up the sed scripts for CONFIG_FILES section. 11037# 11038 11039# No need to generate the scripts if there are no CONFIG_FILES. 11040# This happens for instance when ./config.status config.h 11041if test -n "$CONFIG_FILES"; then 11042 11043_ACEOF 11044 11045 11046 11047ac_delim='%!_!# ' 11048for ac_last_try in false false false false false :; do 11049 cat >conf$$subs.sed <<_ACEOF 11050SHELL!$SHELL$ac_delim 11051PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 11052PACKAGE_NAME!$PACKAGE_NAME$ac_delim 11053PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 11054PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 11055PACKAGE_STRING!$PACKAGE_STRING$ac_delim 11056PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 11057exec_prefix!$exec_prefix$ac_delim 11058prefix!$prefix$ac_delim 11059program_transform_name!$program_transform_name$ac_delim 11060bindir!$bindir$ac_delim 11061sbindir!$sbindir$ac_delim 11062libexecdir!$libexecdir$ac_delim 11063datarootdir!$datarootdir$ac_delim 11064datadir!$datadir$ac_delim 11065sysconfdir!$sysconfdir$ac_delim 11066sharedstatedir!$sharedstatedir$ac_delim 11067localstatedir!$localstatedir$ac_delim 11068includedir!$includedir$ac_delim 11069oldincludedir!$oldincludedir$ac_delim 11070docdir!$docdir$ac_delim 11071infodir!$infodir$ac_delim 11072htmldir!$htmldir$ac_delim 11073dvidir!$dvidir$ac_delim 11074pdfdir!$pdfdir$ac_delim 11075psdir!$psdir$ac_delim 11076libdir!$libdir$ac_delim 11077localedir!$localedir$ac_delim 11078mandir!$mandir$ac_delim 11079DEFS!$DEFS$ac_delim 11080ECHO_C!$ECHO_C$ac_delim 11081ECHO_N!$ECHO_N$ac_delim 11082ECHO_T!$ECHO_T$ac_delim 11083LIBS!$LIBS$ac_delim 11084build_alias!$build_alias$ac_delim 11085host_alias!$host_alias$ac_delim 11086target_alias!$target_alias$ac_delim 11087CYGPATH!$CYGPATH$ac_delim 11088EXEEXT!$EXEEXT$ac_delim 11089PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 11090PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 11091PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 11092PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 11093PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 11094PKG_HEADERS!$PKG_HEADERS$ac_delim 11095PKG_INCLUDES!$PKG_INCLUDES$ac_delim 11096PKG_LIBS!$PKG_LIBS$ac_delim 11097PKG_CFLAGS!$PKG_CFLAGS$ac_delim 11098TCL_VERSION!$TCL_VERSION$ac_delim 11099TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 11100TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 11101TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 11102TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 11103TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 11104TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 11105TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 11106TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 11107TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 11108CLEANFILES!$CLEANFILES$ac_delim 11109TCL_LIBS!$TCL_LIBS$ac_delim 11110TCL_DEFS!$TCL_DEFS$ac_delim 11111TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 11112TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 11113TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 11114CC!$CC$ac_delim 11115CFLAGS!$CFLAGS$ac_delim 11116LDFLAGS!$LDFLAGS$ac_delim 11117CPPFLAGS!$CPPFLAGS$ac_delim 11118ac_ct_CC!$ac_ct_CC$ac_delim 11119OBJEXT!$OBJEXT$ac_delim 11120CPP!$CPP$ac_delim 11121INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 11122INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 11123INSTALL_DATA!$INSTALL_DATA$ac_delim 11124SET_MAKE!$SET_MAKE$ac_delim 11125RANLIB!$RANLIB$ac_delim 11126GREP!$GREP$ac_delim 11127EGREP!$EGREP$ac_delim 11128MATH_LIBS!$MATH_LIBS$ac_delim 11129PKG_SOURCES!$PKG_SOURCES$ac_delim 11130PKG_OBJECTS!$PKG_OBJECTS$ac_delim 11131TCL_INCLUDES!$TCL_INCLUDES$ac_delim 11132TCL_TOP_DIR_NATIVE!$TCL_TOP_DIR_NATIVE$ac_delim 11133TCL_THREADS!$TCL_THREADS$ac_delim 11134SHARED_BUILD!$SHARED_BUILD$ac_delim 11135AR!$AR$ac_delim 11136CELIB_DIR!$CELIB_DIR$ac_delim 11137CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 11138CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 11139CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 11140STLIB_LD!$STLIB_LD$ac_delim 11141SHLIB_LD!$SHLIB_LD$ac_delim 11142SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 11143SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 11144LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 11145CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 11146LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 11147_ACEOF 11148 11149 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 11150 break 11151 elif $ac_last_try; then 11152 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11153echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11154 { (exit 1); exit 1; }; } 11155 else 11156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11157 fi 11158done 11159 11160ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11161if test -n "$ac_eof"; then 11162 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11163 ac_eof=`expr $ac_eof + 1` 11164fi 11165 11166cat >>$CONFIG_STATUS <<_ACEOF 11167cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 11168/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11169_ACEOF 11170sed ' 11171s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11172s/^/s,@/; s/!/@,|#_!!_#|/ 11173:n 11174t n 11175s/'"$ac_delim"'$/,g/; t 11176s/$/\\/; p 11177N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11178' >>$CONFIG_STATUS <conf$$subs.sed 11179rm -f conf$$subs.sed 11180cat >>$CONFIG_STATUS <<_ACEOF 11181CEOF$ac_eof 11182_ACEOF 11183 11184 11185ac_delim='%!_!# ' 11186for ac_last_try in false false false false false :; do 11187 cat >conf$$subs.sed <<_ACEOF 11188TCL_DBGX!$TCL_DBGX$ac_delim 11189MAKE_LIB!$MAKE_LIB$ac_delim 11190MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 11191MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 11192MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 11193RANLIB_STUB!$RANLIB_STUB$ac_delim 11194VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 11195VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 11196TCLSH_PROG!$TCLSH_PROG$ac_delim 11197LIBOBJS!$LIBOBJS$ac_delim 11198LTLIBOBJS!$LTLIBOBJS$ac_delim 11199_ACEOF 11200 11201 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then 11202 break 11203 elif $ac_last_try; then 11204 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11205echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11206 { (exit 1); exit 1; }; } 11207 else 11208 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11209 fi 11210done 11211 11212ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11213if test -n "$ac_eof"; then 11214 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11215 ac_eof=`expr $ac_eof + 1` 11216fi 11217 11218cat >>$CONFIG_STATUS <<_ACEOF 11219cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 11220/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 11221_ACEOF 11222sed ' 11223s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11224s/^/s,@/; s/!/@,|#_!!_#|/ 11225:n 11226t n 11227s/'"$ac_delim"'$/,g/; t 11228s/$/\\/; p 11229N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11230' >>$CONFIG_STATUS <conf$$subs.sed 11231rm -f conf$$subs.sed 11232cat >>$CONFIG_STATUS <<_ACEOF 11233:end 11234s/|#_!!_#|//g 11235CEOF$ac_eof 11236_ACEOF 11237 11238 11239# VPATH may cause trouble with some makes, so we remove $(srcdir), 11240# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11241# trailing colons and then remove the whole line if VPATH becomes empty 11242# (actually we leave an empty line to preserve line numbers). 11243if test "x$srcdir" = x.; then 11244 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11245s/:*\$(srcdir):*/:/ 11246s/:*\${srcdir}:*/:/ 11247s/:*@srcdir@:*/:/ 11248s/^\([^=]*=[ ]*\):*/\1/ 11249s/:*$// 11250s/^[^=]*=[ ]*$// 11251}' 11252fi 11253 11254cat >>$CONFIG_STATUS <<\_ACEOF 11255fi # test -n "$CONFIG_FILES" 11256 11257 11258for ac_tag in :F $CONFIG_FILES 11259do 11260 case $ac_tag in 11261 :[FHLC]) ac_mode=$ac_tag; continue;; 11262 esac 11263 case $ac_mode$ac_tag in 11264 :[FHL]*:*);; 11265 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 11266echo "$as_me: error: Invalid tag $ac_tag." >&2;} 11267 { (exit 1); exit 1; }; };; 11268 :[FH]-) ac_tag=-:-;; 11269 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11270 esac 11271 ac_save_IFS=$IFS 11272 IFS=: 11273 set x $ac_tag 11274 IFS=$ac_save_IFS 11275 shift 11276 ac_file=$1 11277 shift 11278 11279 case $ac_mode in 11280 :L) ac_source=$1;; 11281 :[FH]) 11282 ac_file_inputs= 11283 for ac_f 11284 do 11285 case $ac_f in 11286 -) ac_f="$tmp/stdin";; 11287 *) # Look for the file first in the build tree, then in the source tree 11288 # (if the path is not absolute). The absolute path cannot be DOS-style, 11289 # because $ac_f cannot contain `:'. 11290 test -f "$ac_f" || 11291 case $ac_f in 11292 [\\/$]*) false;; 11293 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11294 esac || 11295 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 11296echo "$as_me: error: cannot find input file: $ac_f" >&2;} 11297 { (exit 1); exit 1; }; };; 11298 esac 11299 ac_file_inputs="$ac_file_inputs $ac_f" 11300 done 11301 11302 # Let's still pretend it is `configure' which instantiates (i.e., don't 11303 # use $as_me), people would be surprised to read: 11304 # /* config.h. Generated by config.status. */ 11305 configure_input="Generated from "`IFS=: 11306 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 11307 if test x"$ac_file" != x-; then 11308 configure_input="$ac_file. $configure_input" 11309 { echo "$as_me:$LINENO: creating $ac_file" >&5 11310echo "$as_me: creating $ac_file" >&6;} 11311 fi 11312 11313 case $ac_tag in 11314 *:-:* | *:-) cat >"$tmp/stdin";; 11315 esac 11316 ;; 11317 esac 11318 11319 ac_dir=`$as_dirname -- "$ac_file" || 11320$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11321 X"$ac_file" : 'X\(//\)[^/]' \| \ 11322 X"$ac_file" : 'X\(//\)$' \| \ 11323 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11324echo X"$ac_file" | 11325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11326 s//\1/ 11327 q 11328 } 11329 /^X\(\/\/\)[^/].*/{ 11330 s//\1/ 11331 q 11332 } 11333 /^X\(\/\/\)$/{ 11334 s//\1/ 11335 q 11336 } 11337 /^X\(\/\).*/{ 11338 s//\1/ 11339 q 11340 } 11341 s/.*/./; q'` 11342 { as_dir="$ac_dir" 11343 case $as_dir in #( 11344 -*) as_dir=./$as_dir;; 11345 esac 11346 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11347 as_dirs= 11348 while :; do 11349 case $as_dir in #( 11350 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 11351 *) as_qdir=$as_dir;; 11352 esac 11353 as_dirs="'$as_qdir' $as_dirs" 11354 as_dir=`$as_dirname -- "$as_dir" || 11355$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11356 X"$as_dir" : 'X\(//\)[^/]' \| \ 11357 X"$as_dir" : 'X\(//\)$' \| \ 11358 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11359echo X"$as_dir" | 11360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11361 s//\1/ 11362 q 11363 } 11364 /^X\(\/\/\)[^/].*/{ 11365 s//\1/ 11366 q 11367 } 11368 /^X\(\/\/\)$/{ 11369 s//\1/ 11370 q 11371 } 11372 /^X\(\/\).*/{ 11373 s//\1/ 11374 q 11375 } 11376 s/.*/./; q'` 11377 test -d "$as_dir" && break 11378 done 11379 test -z "$as_dirs" || eval "mkdir $as_dirs" 11380 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 11381echo "$as_me: error: cannot create directory $as_dir" >&2;} 11382 { (exit 1); exit 1; }; }; } 11383 ac_builddir=. 11384 11385case "$ac_dir" in 11386.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11387*) 11388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11389 # A ".." for each directory in $ac_dir_suffix. 11390 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 11391 case $ac_top_builddir_sub in 11392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11394 esac ;; 11395esac 11396ac_abs_top_builddir=$ac_pwd 11397ac_abs_builddir=$ac_pwd$ac_dir_suffix 11398# for backward compatibility: 11399ac_top_builddir=$ac_top_build_prefix 11400 11401case $srcdir in 11402 .) # We are building in place. 11403 ac_srcdir=. 11404 ac_top_srcdir=$ac_top_builddir_sub 11405 ac_abs_top_srcdir=$ac_pwd ;; 11406 [\\/]* | ?:[\\/]* ) # Absolute name. 11407 ac_srcdir=$srcdir$ac_dir_suffix; 11408 ac_top_srcdir=$srcdir 11409 ac_abs_top_srcdir=$srcdir ;; 11410 *) # Relative name. 11411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11412 ac_top_srcdir=$ac_top_build_prefix$srcdir 11413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11414esac 11415ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11416 11417 11418 case $ac_mode in 11419 :F) 11420 # 11421 # CONFIG_FILE 11422 # 11423 11424 case $INSTALL in 11425 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11426 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11427 esac 11428_ACEOF 11429 11430cat >>$CONFIG_STATUS <<\_ACEOF 11431# If the template does not know about datarootdir, expand it. 11432# FIXME: This hack should be removed a few years after 2.60. 11433ac_datarootdir_hack=; ac_datarootdir_seen= 11434 11435case `sed -n '/datarootdir/ { 11436 p 11437 q 11438} 11439/@datadir@/p 11440/@docdir@/p 11441/@infodir@/p 11442/@localedir@/p 11443/@mandir@/p 11444' $ac_file_inputs` in 11445*datarootdir*) ac_datarootdir_seen=yes;; 11446*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11447 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11448echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11449_ACEOF 11450cat >>$CONFIG_STATUS <<_ACEOF 11451 ac_datarootdir_hack=' 11452 s&@datadir@&$datadir&g 11453 s&@docdir@&$docdir&g 11454 s&@infodir@&$infodir&g 11455 s&@localedir@&$localedir&g 11456 s&@mandir@&$mandir&g 11457 s&\\\${datarootdir}&$datarootdir&g' ;; 11458esac 11459_ACEOF 11460 11461# Neutralize VPATH when `$srcdir' = `.'. 11462# Shell code in configure.ac might set extrasub. 11463# FIXME: do we really want to maintain this feature? 11464cat >>$CONFIG_STATUS <<_ACEOF 11465 sed "$ac_vpsub 11466$extrasub 11467_ACEOF 11468cat >>$CONFIG_STATUS <<\_ACEOF 11469:t 11470/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11471s&@configure_input@&$configure_input&;t t 11472s&@top_builddir@&$ac_top_builddir_sub&;t t 11473s&@srcdir@&$ac_srcdir&;t t 11474s&@abs_srcdir@&$ac_abs_srcdir&;t t 11475s&@top_srcdir@&$ac_top_srcdir&;t t 11476s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11477s&@builddir@&$ac_builddir&;t t 11478s&@abs_builddir@&$ac_abs_builddir&;t t 11479s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11480s&@INSTALL@&$ac_INSTALL&;t t 11481$ac_datarootdir_hack 11482" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 11483 11484test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11485 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 11486 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 11487 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11488which seems to be undefined. Please make sure it is defined." >&5 11489echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11490which seems to be undefined. Please make sure it is defined." >&2;} 11491 11492 rm -f "$tmp/stdin" 11493 case $ac_file in 11494 -) cat "$tmp/out"; rm -f "$tmp/out";; 11495 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 11496 esac 11497 ;; 11498 11499 11500 11501 esac 11502 11503done # for ac_tag 11504 11505 11506{ (exit 0); exit 0; } 11507_ACEOF 11508chmod +x $CONFIG_STATUS 11509ac_clean_files=$ac_clean_files_save 11510 11511 11512# configure is writing to config.log, and then calls config.status. 11513# config.status does its own redirection, appending to config.log. 11514# Unfortunately, on DOS this fails, as config.log is still kept open 11515# by configure, so config.status won't be able to write to it; its 11516# output is simply discarded. So we exec the FD to /dev/null, 11517# effectively closing config.log, so it can be properly (re)opened and 11518# appended to by config.status. When coming back to configure, we 11519# need to make the FD available again. 11520if test "$no_create" != yes; then 11521 ac_cs_success=: 11522 ac_config_status_args= 11523 test "$silent" = yes && 11524 ac_config_status_args="$ac_config_status_args --quiet" 11525 exec 5>/dev/null 11526 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11527 exec 5>>config.log 11528 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11529 # would make configure fail if this is the last instruction. 11530 $ac_cs_success || { (exit 1); exit 1; } 11531fi 11532 11533