1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for Tclapplescript 1.0. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552exec 7<&0 </dev/null 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570SHELL=${CONFIG_SHELL-/bin/sh} 571 572# Identity of this package. 573PACKAGE_NAME='Tclapplescript' 574PACKAGE_TARNAME='tclapplescript' 575PACKAGE_VERSION='1.0' 576PACKAGE_STRING='Tclapplescript 1.0' 577PACKAGE_BUGREPORT='' 578 579# Factoring default headers for most tests. 580ac_includes_default="\ 581#include <stdio.h> 582#ifdef HAVE_SYS_TYPES_H 583# include <sys/types.h> 584#endif 585#ifdef HAVE_SYS_STAT_H 586# include <sys/stat.h> 587#endif 588#ifdef STDC_HEADERS 589# include <stdlib.h> 590# include <stddef.h> 591#else 592# ifdef HAVE_STDLIB_H 593# include <stdlib.h> 594# endif 595#endif 596#ifdef HAVE_STRING_H 597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 598# include <memory.h> 599# endif 600# include <string.h> 601#endif 602#ifdef HAVE_STRINGS_H 603# include <strings.h> 604#endif 605#ifdef HAVE_INTTYPES_H 606# include <inttypes.h> 607#endif 608#ifdef HAVE_STDINT_H 609# include <stdint.h> 610#endif 611#ifdef HAVE_UNISTD_H 612# include <unistd.h> 613#endif" 614 615ac_subst_vars='SHELL 616PATH_SEPARATOR 617PACKAGE_NAME 618PACKAGE_TARNAME 619PACKAGE_VERSION 620PACKAGE_STRING 621PACKAGE_BUGREPORT 622exec_prefix 623prefix 624program_transform_name 625bindir 626sbindir 627libexecdir 628datarootdir 629datadir 630sysconfdir 631sharedstatedir 632localstatedir 633includedir 634oldincludedir 635docdir 636infodir 637htmldir 638dvidir 639pdfdir 640psdir 641libdir 642localedir 643mandir 644DEFS 645ECHO_C 646ECHO_N 647ECHO_T 648LIBS 649build_alias 650host_alias 651target_alias 652CYGPATH 653EXEEXT 654PKG_LIB_FILE 655PKG_STUB_LIB_FILE 656PKG_STUB_SOURCES 657PKG_STUB_OBJECTS 658PKG_TCL_SOURCES 659PKG_HEADERS 660PKG_INCLUDES 661PKG_LIBS 662PKG_CFLAGS 663TCL_VERSION 664TCL_PATCH_LEVEL 665TCL_BIN_DIR 666TCL_SRC_DIR 667TCL_LIB_FILE 668TCL_LIB_FLAG 669TCL_LIB_SPEC 670TCL_STUB_LIB_FILE 671TCL_STUB_LIB_FLAG 672TCL_STUB_LIB_SPEC 673CLEANFILES 674TCL_LIBS 675TCL_DEFS 676TCL_EXTRA_CFLAGS 677TCL_LD_FLAGS 678TCL_SHLIB_LD_LIBS 679CC 680CFLAGS 681LDFLAGS 682CPPFLAGS 683ac_ct_CC 684OBJEXT 685CPP 686INSTALL_PROGRAM 687INSTALL_SCRIPT 688INSTALL_DATA 689SET_MAKE 690RANLIB 691GREP 692EGREP 693MATH_LIBS 694PKG_SOURCES 695PKG_OBJECTS 696TCL_INCLUDES 697TCL_THREADS 698SHARED_BUILD 699AR 700CELIB_DIR 701CFLAGS_DEBUG 702CFLAGS_OPTIMIZE 703CFLAGS_WARNING 704STLIB_LD 705SHLIB_LD 706SHLIB_LD_LIBS 707SHLIB_CFLAGS 708LD_LIBRARY_PATH_VAR 709CFLAGS_DEFAULT 710LDFLAGS_DEFAULT 711TCL_DBGX 712MAKE_LIB 713MAKE_SHARED_LIB 714MAKE_STATIC_LIB 715MAKE_STUB_LIB 716RANLIB_STUB 717VC_MANIFEST_EMBED_DLL 718VC_MANIFEST_EMBED_EXE 719TCLSH_PROG 720LIBOBJS 721LTLIBOBJS' 722ac_subst_files='' 723 ac_precious_vars='build_alias 724host_alias 725target_alias 726CC 727CFLAGS 728LDFLAGS 729LIBS 730CPPFLAGS 731CPP' 732 733 734# Initialize some variables set by options. 735ac_init_help= 736ac_init_version=false 737# The variables have the same names as the options, with 738# dashes changed to underlines. 739cache_file=/dev/null 740exec_prefix=NONE 741no_create= 742no_recursion= 743prefix=NONE 744program_prefix=NONE 745program_suffix=NONE 746program_transform_name=s,x,x, 747silent= 748site= 749srcdir= 750verbose= 751x_includes=NONE 752x_libraries=NONE 753 754# Installation directory options. 755# These are left unexpanded so users can "make install exec_prefix=/foo" 756# and all the variables that are supposed to be based on exec_prefix 757# by default will actually change. 758# Use braces instead of parens because sh, perl, etc. also accept them. 759# (The list follows the same order as the GNU Coding Standards.) 760bindir='${exec_prefix}/bin' 761sbindir='${exec_prefix}/sbin' 762libexecdir='${exec_prefix}/libexec' 763datarootdir='${prefix}/share' 764datadir='${datarootdir}' 765sysconfdir='${prefix}/etc' 766sharedstatedir='${prefix}/com' 767localstatedir='${prefix}/var' 768includedir='${prefix}/include' 769oldincludedir='/usr/include' 770docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 771infodir='${datarootdir}/info' 772htmldir='${docdir}' 773dvidir='${docdir}' 774pdfdir='${docdir}' 775psdir='${docdir}' 776libdir='${exec_prefix}/lib' 777localedir='${datarootdir}/locale' 778mandir='${datarootdir}/man' 779 780ac_prev= 781ac_dashdash= 782for ac_option 783do 784 # If the previous option needs an argument, assign it. 785 if test -n "$ac_prev"; then 786 eval $ac_prev=\$ac_option 787 ac_prev= 788 continue 789 fi 790 791 case $ac_option in 792 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 793 *) ac_optarg=yes ;; 794 esac 795 796 # Accept the important Cygnus configure options, so we can diagnose typos. 797 798 case $ac_dashdash$ac_option in 799 --) 800 ac_dashdash=yes ;; 801 802 -bindir | --bindir | --bindi | --bind | --bin | --bi) 803 ac_prev=bindir ;; 804 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 805 bindir=$ac_optarg ;; 806 807 -build | --build | --buil | --bui | --bu) 808 ac_prev=build_alias ;; 809 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 810 build_alias=$ac_optarg ;; 811 812 -cache-file | --cache-file | --cache-fil | --cache-fi \ 813 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 814 ac_prev=cache_file ;; 815 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 816 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 817 cache_file=$ac_optarg ;; 818 819 --config-cache | -C) 820 cache_file=config.cache ;; 821 822 -datadir | --datadir | --datadi | --datad) 823 ac_prev=datadir ;; 824 -datadir=* | --datadir=* | --datadi=* | --datad=*) 825 datadir=$ac_optarg ;; 826 827 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 828 | --dataroo | --dataro | --datar) 829 ac_prev=datarootdir ;; 830 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 831 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 832 datarootdir=$ac_optarg ;; 833 834 -disable-* | --disable-*) 835 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 836 # Reject names that are not valid shell variable names. 837 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 838 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 839 { (exit 1); exit 1; }; } 840 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 841 eval enable_$ac_feature=no ;; 842 843 -docdir | --docdir | --docdi | --doc | --do) 844 ac_prev=docdir ;; 845 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 846 docdir=$ac_optarg ;; 847 848 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 849 ac_prev=dvidir ;; 850 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 851 dvidir=$ac_optarg ;; 852 853 -enable-* | --enable-*) 854 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 855 # Reject names that are not valid shell variable names. 856 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 857 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 858 { (exit 1); exit 1; }; } 859 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 860 eval enable_$ac_feature=\$ac_optarg ;; 861 862 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 863 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 864 | --exec | --exe | --ex) 865 ac_prev=exec_prefix ;; 866 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 867 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 868 | --exec=* | --exe=* | --ex=*) 869 exec_prefix=$ac_optarg ;; 870 871 -gas | --gas | --ga | --g) 872 # Obsolete; use --with-gas. 873 with_gas=yes ;; 874 875 -help | --help | --hel | --he | -h) 876 ac_init_help=long ;; 877 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 878 ac_init_help=recursive ;; 879 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 880 ac_init_help=short ;; 881 882 -host | --host | --hos | --ho) 883 ac_prev=host_alias ;; 884 -host=* | --host=* | --hos=* | --ho=*) 885 host_alias=$ac_optarg ;; 886 887 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 888 ac_prev=htmldir ;; 889 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 890 | --ht=*) 891 htmldir=$ac_optarg ;; 892 893 -includedir | --includedir | --includedi | --included | --include \ 894 | --includ | --inclu | --incl | --inc) 895 ac_prev=includedir ;; 896 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 897 | --includ=* | --inclu=* | --incl=* | --inc=*) 898 includedir=$ac_optarg ;; 899 900 -infodir | --infodir | --infodi | --infod | --info | --inf) 901 ac_prev=infodir ;; 902 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 903 infodir=$ac_optarg ;; 904 905 -libdir | --libdir | --libdi | --libd) 906 ac_prev=libdir ;; 907 -libdir=* | --libdir=* | --libdi=* | --libd=*) 908 libdir=$ac_optarg ;; 909 910 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 911 | --libexe | --libex | --libe) 912 ac_prev=libexecdir ;; 913 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 914 | --libexe=* | --libex=* | --libe=*) 915 libexecdir=$ac_optarg ;; 916 917 -localedir | --localedir | --localedi | --localed | --locale) 918 ac_prev=localedir ;; 919 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 920 localedir=$ac_optarg ;; 921 922 -localstatedir | --localstatedir | --localstatedi | --localstated \ 923 | --localstate | --localstat | --localsta | --localst | --locals) 924 ac_prev=localstatedir ;; 925 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 926 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 927 localstatedir=$ac_optarg ;; 928 929 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 930 ac_prev=mandir ;; 931 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 932 mandir=$ac_optarg ;; 933 934 -nfp | --nfp | --nf) 935 # Obsolete; use --without-fp. 936 with_fp=no ;; 937 938 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 939 | --no-cr | --no-c | -n) 940 no_create=yes ;; 941 942 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 943 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 944 no_recursion=yes ;; 945 946 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 947 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 948 | --oldin | --oldi | --old | --ol | --o) 949 ac_prev=oldincludedir ;; 950 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 951 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 952 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 953 oldincludedir=$ac_optarg ;; 954 955 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 956 ac_prev=prefix ;; 957 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 958 prefix=$ac_optarg ;; 959 960 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 961 | --program-pre | --program-pr | --program-p) 962 ac_prev=program_prefix ;; 963 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 964 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 965 program_prefix=$ac_optarg ;; 966 967 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 968 | --program-suf | --program-su | --program-s) 969 ac_prev=program_suffix ;; 970 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 971 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 972 program_suffix=$ac_optarg ;; 973 974 -program-transform-name | --program-transform-name \ 975 | --program-transform-nam | --program-transform-na \ 976 | --program-transform-n | --program-transform- \ 977 | --program-transform | --program-transfor \ 978 | --program-transfo | --program-transf \ 979 | --program-trans | --program-tran \ 980 | --progr-tra | --program-tr | --program-t) 981 ac_prev=program_transform_name ;; 982 -program-transform-name=* | --program-transform-name=* \ 983 | --program-transform-nam=* | --program-transform-na=* \ 984 | --program-transform-n=* | --program-transform-=* \ 985 | --program-transform=* | --program-transfor=* \ 986 | --program-transfo=* | --program-transf=* \ 987 | --program-trans=* | --program-tran=* \ 988 | --progr-tra=* | --program-tr=* | --program-t=*) 989 program_transform_name=$ac_optarg ;; 990 991 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 992 ac_prev=pdfdir ;; 993 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 994 pdfdir=$ac_optarg ;; 995 996 -psdir | --psdir | --psdi | --psd | --ps) 997 ac_prev=psdir ;; 998 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 999 psdir=$ac_optarg ;; 1000 1001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1002 | -silent | --silent | --silen | --sile | --sil) 1003 silent=yes ;; 1004 1005 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1006 ac_prev=sbindir ;; 1007 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1008 | --sbi=* | --sb=*) 1009 sbindir=$ac_optarg ;; 1010 1011 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1012 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1013 | --sharedst | --shareds | --shared | --share | --shar \ 1014 | --sha | --sh) 1015 ac_prev=sharedstatedir ;; 1016 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1017 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1018 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1019 | --sha=* | --sh=*) 1020 sharedstatedir=$ac_optarg ;; 1021 1022 -site | --site | --sit) 1023 ac_prev=site ;; 1024 -site=* | --site=* | --sit=*) 1025 site=$ac_optarg ;; 1026 1027 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1028 ac_prev=srcdir ;; 1029 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1030 srcdir=$ac_optarg ;; 1031 1032 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1033 | --syscon | --sysco | --sysc | --sys | --sy) 1034 ac_prev=sysconfdir ;; 1035 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1036 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1037 sysconfdir=$ac_optarg ;; 1038 1039 -target | --target | --targe | --targ | --tar | --ta | --t) 1040 ac_prev=target_alias ;; 1041 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1042 target_alias=$ac_optarg ;; 1043 1044 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1045 verbose=yes ;; 1046 1047 -version | --version | --versio | --versi | --vers | -V) 1048 ac_init_version=: ;; 1049 1050 -with-* | --with-*) 1051 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1052 # Reject names that are not valid shell variable names. 1053 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1054 { echo "$as_me: error: invalid package name: $ac_package" >&2 1055 { (exit 1); exit 1; }; } 1056 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1057 eval with_$ac_package=\$ac_optarg ;; 1058 1059 -without-* | --without-*) 1060 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1061 # Reject names that are not valid shell variable names. 1062 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1063 { echo "$as_me: error: invalid package name: $ac_package" >&2 1064 { (exit 1); exit 1; }; } 1065 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1066 eval with_$ac_package=no ;; 1067 1068 --x) 1069 # Obsolete; use --with-x. 1070 with_x=yes ;; 1071 1072 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1073 | --x-incl | --x-inc | --x-in | --x-i) 1074 ac_prev=x_includes ;; 1075 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1076 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1077 x_includes=$ac_optarg ;; 1078 1079 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1080 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1081 ac_prev=x_libraries ;; 1082 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1083 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1084 x_libraries=$ac_optarg ;; 1085 1086 -*) { echo "$as_me: error: unrecognized option: $ac_option 1087Try \`$0 --help' for more information." >&2 1088 { (exit 1); exit 1; }; } 1089 ;; 1090 1091 *=*) 1092 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1093 # Reject names that are not valid shell variable names. 1094 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1095 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1096 { (exit 1); exit 1; }; } 1097 eval $ac_envvar=\$ac_optarg 1098 export $ac_envvar ;; 1099 1100 *) 1101 # FIXME: should be removed in autoconf 3.0. 1102 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1103 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1104 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1105 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1106 ;; 1107 1108 esac 1109done 1110 1111if test -n "$ac_prev"; then 1112 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1113 { echo "$as_me: error: missing argument to $ac_option" >&2 1114 { (exit 1); exit 1; }; } 1115fi 1116 1117# Be sure to have absolute directory names. 1118for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1119 datadir sysconfdir sharedstatedir localstatedir includedir \ 1120 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1121 libdir localedir mandir 1122do 1123 eval ac_val=\$$ac_var 1124 case $ac_val in 1125 [\\/$]* | ?:[\\/]* ) continue;; 1126 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1127 esac 1128 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1129 { (exit 1); exit 1; }; } 1130done 1131 1132# There might be people who depend on the old broken behavior: `$host' 1133# used to hold the argument of --host etc. 1134# FIXME: To remove some day. 1135build=$build_alias 1136host=$host_alias 1137target=$target_alias 1138 1139# FIXME: To remove some day. 1140if test "x$host_alias" != x; then 1141 if test "x$build_alias" = x; then 1142 cross_compiling=maybe 1143 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1144 If a cross compiler is detected then cross compile mode will be used." >&2 1145 elif test "x$build_alias" != "x$host_alias"; then 1146 cross_compiling=yes 1147 fi 1148fi 1149 1150ac_tool_prefix= 1151test -n "$host_alias" && ac_tool_prefix=$host_alias- 1152 1153test "$silent" = yes && exec 6>/dev/null 1154 1155 1156ac_pwd=`pwd` && test -n "$ac_pwd" && 1157ac_ls_di=`ls -di .` && 1158ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1159 { echo "$as_me: error: Working directory cannot be determined" >&2 1160 { (exit 1); exit 1; }; } 1161test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1162 { echo "$as_me: error: pwd does not report name of working directory" >&2 1163 { (exit 1); exit 1; }; } 1164 1165 1166# Find the source files, if location was not specified. 1167if test -z "$srcdir"; then 1168 ac_srcdir_defaulted=yes 1169 # Try the directory containing this script, then the parent directory. 1170 ac_confdir=`$as_dirname -- "$0" || 1171$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1172 X"$0" : 'X\(//\)[^/]' \| \ 1173 X"$0" : 'X\(//\)$' \| \ 1174 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1175echo X"$0" | 1176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1177 s//\1/ 1178 q 1179 } 1180 /^X\(\/\/\)[^/].*/{ 1181 s//\1/ 1182 q 1183 } 1184 /^X\(\/\/\)$/{ 1185 s//\1/ 1186 q 1187 } 1188 /^X\(\/\).*/{ 1189 s//\1/ 1190 q 1191 } 1192 s/.*/./; q'` 1193 srcdir=$ac_confdir 1194 if test ! -r "$srcdir/$ac_unique_file"; then 1195 srcdir=.. 1196 fi 1197else 1198 ac_srcdir_defaulted=no 1199fi 1200if test ! -r "$srcdir/$ac_unique_file"; then 1201 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1202 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1203 { (exit 1); exit 1; }; } 1204fi 1205ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1206ac_abs_confdir=`( 1207 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1208 { (exit 1); exit 1; }; } 1209 pwd)` 1210# When building in place, set srcdir=. 1211if test "$ac_abs_confdir" = "$ac_pwd"; then 1212 srcdir=. 1213fi 1214# Remove unnecessary trailing slashes from srcdir. 1215# Double slashes in file names in object file debugging info 1216# mess up M-x gdb in Emacs. 1217case $srcdir in 1218*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1219esac 1220for ac_var in $ac_precious_vars; do 1221 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1222 eval ac_env_${ac_var}_value=\$${ac_var} 1223 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1224 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1225done 1226 1227# 1228# Report the --help message. 1229# 1230if test "$ac_init_help" = "long"; then 1231 # Omit some internal or obsolete options to make the list less imposing. 1232 # This message is too long to be a string in the A/UX 3.1 sh. 1233 cat <<_ACEOF 1234\`configure' configures Tclapplescript 1.0 to adapt to many kinds of systems. 1235 1236Usage: $0 [OPTION]... [VAR=VALUE]... 1237 1238To assign environment variables (e.g., CC, CFLAGS...), specify them as 1239VAR=VALUE. See below for descriptions of some of the useful variables. 1240 1241Defaults for the options are specified in brackets. 1242 1243Configuration: 1244 -h, --help display this help and exit 1245 --help=short display options specific to this package 1246 --help=recursive display the short help of all the included packages 1247 -V, --version display version information and exit 1248 -q, --quiet, --silent do not print \`checking...' messages 1249 --cache-file=FILE cache test results in FILE [disabled] 1250 -C, --config-cache alias for \`--cache-file=config.cache' 1251 -n, --no-create do not create output files 1252 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1253 1254Installation directories: 1255 --prefix=PREFIX install architecture-independent files in PREFIX 1256 [$ac_default_prefix] 1257 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1258 [PREFIX] 1259 1260By default, \`make install' will install all the files in 1261\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1262an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1263for instance \`--prefix=\$HOME'. 1264 1265For better control, use the options below. 1266 1267Fine tuning of the installation directories: 1268 --bindir=DIR user executables [EPREFIX/bin] 1269 --sbindir=DIR system admin executables [EPREFIX/sbin] 1270 --libexecdir=DIR program executables [EPREFIX/libexec] 1271 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1272 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1273 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1274 --libdir=DIR object code libraries [EPREFIX/lib] 1275 --includedir=DIR C header files [PREFIX/include] 1276 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1277 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1278 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1279 --infodir=DIR info documentation [DATAROOTDIR/info] 1280 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1281 --mandir=DIR man documentation [DATAROOTDIR/man] 1282 --docdir=DIR documentation root [DATAROOTDIR/doc/tclapplescript] 1283 --htmldir=DIR html documentation [DOCDIR] 1284 --dvidir=DIR dvi documentation [DOCDIR] 1285 --pdfdir=DIR pdf documentation [DOCDIR] 1286 --psdir=DIR ps documentation [DOCDIR] 1287_ACEOF 1288 1289 cat <<\_ACEOF 1290_ACEOF 1291fi 1292 1293if test -n "$ac_init_help"; then 1294 case $ac_init_help in 1295 short | recursive ) echo "Configuration of Tclapplescript 1.0:";; 1296 esac 1297 cat <<\_ACEOF 1298 1299Optional Features: 1300 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1301 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1302 --enable-threads build with threads 1303 --enable-shared build and link with shared libraries (default: on) 1304 --enable-64bit enable 64bit support (default: off) 1305 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1306 --disable-rpath disable rpath support (default: on) 1307 --enable-wince enable Win/CE support (where applicable) 1308 --enable-symbols build with debugging symbols (default: off) 1309 1310Optional Packages: 1311 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1312 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1313 --with-tcl directory containing tcl configuration 1314 (tclConfig.sh) 1315 --with-tclinclude directory containing the public Tcl header files 1316 --with-celib=DIR use Windows/CE support library from DIR 1317 1318Some influential environment variables: 1319 CC C compiler command 1320 CFLAGS C compiler flags 1321 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1322 nonstandard directory <lib dir> 1323 LIBS libraries to pass to the linker, e.g. -l<library> 1324 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1325 you have headers in a nonstandard directory <include dir> 1326 CPP C preprocessor 1327 1328Use these variables to override the choices made by `configure' or to help 1329it to find libraries and programs with nonstandard names/locations. 1330 1331_ACEOF 1332ac_status=$? 1333fi 1334 1335if test "$ac_init_help" = "recursive"; then 1336 # If there are subdirs, report their specific --help. 1337 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1338 test -d "$ac_dir" || continue 1339 ac_builddir=. 1340 1341case "$ac_dir" in 1342.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1343*) 1344 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1345 # A ".." for each directory in $ac_dir_suffix. 1346 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1347 case $ac_top_builddir_sub in 1348 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1349 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1350 esac ;; 1351esac 1352ac_abs_top_builddir=$ac_pwd 1353ac_abs_builddir=$ac_pwd$ac_dir_suffix 1354# for backward compatibility: 1355ac_top_builddir=$ac_top_build_prefix 1356 1357case $srcdir in 1358 .) # We are building in place. 1359 ac_srcdir=. 1360 ac_top_srcdir=$ac_top_builddir_sub 1361 ac_abs_top_srcdir=$ac_pwd ;; 1362 [\\/]* | ?:[\\/]* ) # Absolute name. 1363 ac_srcdir=$srcdir$ac_dir_suffix; 1364 ac_top_srcdir=$srcdir 1365 ac_abs_top_srcdir=$srcdir ;; 1366 *) # Relative name. 1367 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1368 ac_top_srcdir=$ac_top_build_prefix$srcdir 1369 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1370esac 1371ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1372 1373 cd "$ac_dir" || { ac_status=$?; continue; } 1374 # Check for guested configure. 1375 if test -f "$ac_srcdir/configure.gnu"; then 1376 echo && 1377 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1378 elif test -f "$ac_srcdir/configure"; then 1379 echo && 1380 $SHELL "$ac_srcdir/configure" --help=recursive 1381 else 1382 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1383 fi || ac_status=$? 1384 cd "$ac_pwd" || { ac_status=$?; break; } 1385 done 1386fi 1387 1388test -n "$ac_init_help" && exit $ac_status 1389if $ac_init_version; then 1390 cat <<\_ACEOF 1391Tclapplescript configure 1.0 1392generated by GNU Autoconf 2.61 1393 1394Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13952002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1396This configure script is free software; the Free Software Foundation 1397gives unlimited permission to copy, distribute and modify it. 1398_ACEOF 1399 exit 1400fi 1401cat >config.log <<_ACEOF 1402This file contains any messages produced by compilers while 1403running configure, to aid debugging if configure makes a mistake. 1404 1405It was created by Tclapplescript $as_me 1.0, which was 1406generated by GNU Autoconf 2.61. Invocation command line was 1407 1408 $ $0 $@ 1409 1410_ACEOF 1411exec 5>>config.log 1412{ 1413cat <<_ASUNAME 1414## --------- ## 1415## Platform. ## 1416## --------- ## 1417 1418hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1419uname -m = `(uname -m) 2>/dev/null || echo unknown` 1420uname -r = `(uname -r) 2>/dev/null || echo unknown` 1421uname -s = `(uname -s) 2>/dev/null || echo unknown` 1422uname -v = `(uname -v) 2>/dev/null || echo unknown` 1423 1424/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1425/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1426 1427/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1428/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1429/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1430/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1431/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1432/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1433/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1434 1435_ASUNAME 1436 1437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1438for as_dir in $PATH 1439do 1440 IFS=$as_save_IFS 1441 test -z "$as_dir" && as_dir=. 1442 echo "PATH: $as_dir" 1443done 1444IFS=$as_save_IFS 1445 1446} >&5 1447 1448cat >&5 <<_ACEOF 1449 1450 1451## ----------- ## 1452## Core tests. ## 1453## ----------- ## 1454 1455_ACEOF 1456 1457 1458# Keep a trace of the command line. 1459# Strip out --no-create and --no-recursion so they do not pile up. 1460# Strip out --silent because we don't want to record it for future runs. 1461# Also quote any args containing shell meta-characters. 1462# Make two passes to allow for proper duplicate-argument suppression. 1463ac_configure_args= 1464ac_configure_args0= 1465ac_configure_args1= 1466ac_must_keep_next=false 1467for ac_pass in 1 2 1468do 1469 for ac_arg 1470 do 1471 case $ac_arg in 1472 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1473 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1474 | -silent | --silent | --silen | --sile | --sil) 1475 continue ;; 1476 *\'*) 1477 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1478 esac 1479 case $ac_pass in 1480 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1481 2) 1482 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1483 if test $ac_must_keep_next = true; then 1484 ac_must_keep_next=false # Got value, back to normal. 1485 else 1486 case $ac_arg in 1487 *=* | --config-cache | -C | -disable-* | --disable-* \ 1488 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1489 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1490 | -with-* | --with-* | -without-* | --without-* | --x) 1491 case "$ac_configure_args0 " in 1492 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1493 esac 1494 ;; 1495 -* ) ac_must_keep_next=true ;; 1496 esac 1497 fi 1498 ac_configure_args="$ac_configure_args '$ac_arg'" 1499 ;; 1500 esac 1501 done 1502done 1503$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1504$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1505 1506# When interrupted or exit'd, cleanup temporary files, and complete 1507# config.log. We remove comments because anyway the quotes in there 1508# would cause problems or look ugly. 1509# WARNING: Use '\'' to represent an apostrophe within the trap. 1510# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1511trap 'exit_status=$? 1512 # Save into config.log some information that might help in debugging. 1513 { 1514 echo 1515 1516 cat <<\_ASBOX 1517## ---------------- ## 1518## Cache variables. ## 1519## ---------------- ## 1520_ASBOX 1521 echo 1522 # The following way of writing the cache mishandles newlines in values, 1523( 1524 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1525 eval ac_val=\$$ac_var 1526 case $ac_val in #( 1527 *${as_nl}*) 1528 case $ac_var in #( 1529 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1530echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1531 esac 1532 case $ac_var in #( 1533 _ | IFS | as_nl) ;; #( 1534 *) $as_unset $ac_var ;; 1535 esac ;; 1536 esac 1537 done 1538 (set) 2>&1 | 1539 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1540 *${as_nl}ac_space=\ *) 1541 sed -n \ 1542 "s/'\''/'\''\\\\'\'''\''/g; 1543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1544 ;; #( 1545 *) 1546 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1547 ;; 1548 esac | 1549 sort 1550) 1551 echo 1552 1553 cat <<\_ASBOX 1554## ----------------- ## 1555## Output variables. ## 1556## ----------------- ## 1557_ASBOX 1558 echo 1559 for ac_var in $ac_subst_vars 1560 do 1561 eval ac_val=\$$ac_var 1562 case $ac_val in 1563 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1564 esac 1565 echo "$ac_var='\''$ac_val'\''" 1566 done | sort 1567 echo 1568 1569 if test -n "$ac_subst_files"; then 1570 cat <<\_ASBOX 1571## ------------------- ## 1572## File substitutions. ## 1573## ------------------- ## 1574_ASBOX 1575 echo 1576 for ac_var in $ac_subst_files 1577 do 1578 eval ac_val=\$$ac_var 1579 case $ac_val in 1580 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1581 esac 1582 echo "$ac_var='\''$ac_val'\''" 1583 done | sort 1584 echo 1585 fi 1586 1587 if test -s confdefs.h; then 1588 cat <<\_ASBOX 1589## ----------- ## 1590## confdefs.h. ## 1591## ----------- ## 1592_ASBOX 1593 echo 1594 cat confdefs.h 1595 echo 1596 fi 1597 test "$ac_signal" != 0 && 1598 echo "$as_me: caught signal $ac_signal" 1599 echo "$as_me: exit $exit_status" 1600 } >&5 1601 rm -f core *.core core.conftest.* && 1602 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1603 exit $exit_status 1604' 0 1605for ac_signal in 1 2 13 15; do 1606 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1607done 1608ac_signal=0 1609 1610# confdefs.h avoids OS command line length limits that DEFS can exceed. 1611rm -f -r conftest* confdefs.h 1612 1613# Predefined preprocessor variables. 1614 1615cat >>confdefs.h <<_ACEOF 1616#define PACKAGE_NAME "$PACKAGE_NAME" 1617_ACEOF 1618 1619 1620cat >>confdefs.h <<_ACEOF 1621#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1622_ACEOF 1623 1624 1625cat >>confdefs.h <<_ACEOF 1626#define PACKAGE_VERSION "$PACKAGE_VERSION" 1627_ACEOF 1628 1629 1630cat >>confdefs.h <<_ACEOF 1631#define PACKAGE_STRING "$PACKAGE_STRING" 1632_ACEOF 1633 1634 1635cat >>confdefs.h <<_ACEOF 1636#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1637_ACEOF 1638 1639 1640# Let the site file select an alternate cache file if it wants to. 1641# Prefer explicitly selected file to automatically selected ones. 1642if test -n "$CONFIG_SITE"; then 1643 set x "$CONFIG_SITE" 1644elif test "x$prefix" != xNONE; then 1645 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1646else 1647 set x "$ac_default_prefix/share/config.site" \ 1648 "$ac_default_prefix/etc/config.site" 1649fi 1650shift 1651for ac_site_file 1652do 1653 if test -r "$ac_site_file"; then 1654 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1655echo "$as_me: loading site script $ac_site_file" >&6;} 1656 sed 's/^/| /' "$ac_site_file" >&5 1657 . "$ac_site_file" 1658 fi 1659done 1660 1661if test -r "$cache_file"; then 1662 # Some versions of bash will fail to source /dev/null (special 1663 # files actually), so we avoid doing that. 1664 if test -f "$cache_file"; then 1665 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1666echo "$as_me: loading cache $cache_file" >&6;} 1667 case $cache_file in 1668 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1669 *) . "./$cache_file";; 1670 esac 1671 fi 1672else 1673 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1674echo "$as_me: creating cache $cache_file" >&6;} 1675 >$cache_file 1676fi 1677 1678# Check that the precious variables saved in the cache have kept the same 1679# value. 1680ac_cache_corrupted=false 1681for ac_var in $ac_precious_vars; do 1682 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1683 eval ac_new_set=\$ac_env_${ac_var}_set 1684 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1685 eval ac_new_val=\$ac_env_${ac_var}_value 1686 case $ac_old_set,$ac_new_set in 1687 set,) 1688 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1689echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1690 ac_cache_corrupted=: ;; 1691 ,set) 1692 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1693echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1694 ac_cache_corrupted=: ;; 1695 ,);; 1696 *) 1697 if test "x$ac_old_val" != "x$ac_new_val"; then 1698 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1699echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1700 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1701echo "$as_me: former value: $ac_old_val" >&2;} 1702 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1703echo "$as_me: current value: $ac_new_val" >&2;} 1704 ac_cache_corrupted=: 1705 fi;; 1706 esac 1707 # Pass precious variables to config.status. 1708 if test "$ac_new_set" = set; then 1709 case $ac_new_val in 1710 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1711 *) ac_arg=$ac_var=$ac_new_val ;; 1712 esac 1713 case " $ac_configure_args " in 1714 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1715 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1716 esac 1717 fi 1718done 1719if $ac_cache_corrupted; then 1720 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1721echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1722 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1723echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1724 { (exit 1); exit 1; }; } 1725fi 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751ac_ext=c 1752ac_cpp='$CPP $CPPFLAGS' 1753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1755ac_compiler_gnu=$ac_cv_c_compiler_gnu 1756 1757 1758 1759if test ! -d /System/Library/Frameworks/Carbon.framework; then 1760 { { echo "$as_me:$LINENO: error: Mac OS X with Carbon required!" >&5 1761echo "$as_me: error: Mac OS X with Carbon required!" >&2;} 1762 { (exit 1); exit 1; }; } 1763fi 1764 1765#-------------------------------------------------------------------- 1766# Call TEA_INIT as the first TEA_ macro to set up initial vars. 1767# This will define a ${TEA_PLATFORM} variable == "unix" or "windows" 1768# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. 1769#-------------------------------------------------------------------- 1770 1771 1772 # TEA extensions pass this us the version of TEA they think they 1773 # are compatible with. 1774 TEA_VERSION="3.9" 1775 1776 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1777echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1778 if test x"${PACKAGE_NAME}" = x ; then 1779 { { echo "$as_me:$LINENO: error: 1780The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1781echo "$as_me: error: 1782The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1783 { (exit 1); exit 1; }; } 1784 fi 1785 if test x"3.9" = x ; then 1786 { { echo "$as_me:$LINENO: error: 1787TEA version not specified." >&5 1788echo "$as_me: error: 1789TEA version not specified." >&2;} 1790 { (exit 1); exit 1; }; } 1791 elif test "3.9" != "${TEA_VERSION}" ; then 1792 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1793echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1794 else 1795 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1796echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1797 fi 1798 case "`uname -s`" in 1799 *win32*|*WIN32*|*MINGW32_*) 1800 # Extract the first word of "cygpath", so it can be a program name with args. 1801set dummy cygpath; ac_word=$2 1802{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1804if test "${ac_cv_prog_CYGPATH+set}" = set; then 1805 echo $ECHO_N "(cached) $ECHO_C" >&6 1806else 1807 if test -n "$CYGPATH"; then 1808 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1809else 1810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1811for as_dir in $PATH 1812do 1813 IFS=$as_save_IFS 1814 test -z "$as_dir" && as_dir=. 1815 for ac_exec_ext in '' $ac_executable_extensions; do 1816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1817 ac_cv_prog_CYGPATH="cygpath -w" 1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1819 break 2 1820 fi 1821done 1822done 1823IFS=$as_save_IFS 1824 1825 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1826fi 1827fi 1828CYGPATH=$ac_cv_prog_CYGPATH 1829if test -n "$CYGPATH"; then 1830 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1831echo "${ECHO_T}$CYGPATH" >&6; } 1832else 1833 { echo "$as_me:$LINENO: result: no" >&5 1834echo "${ECHO_T}no" >&6; } 1835fi 1836 1837 1838 EXEEXT=".exe" 1839 TEA_PLATFORM="windows" 1840 ;; 1841 *CYGWIN_*) 1842 CYGPATH=echo 1843 EXEEXT=".exe" 1844 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1845 ;; 1846 *) 1847 CYGPATH=echo 1848 EXEEXT="" 1849 TEA_PLATFORM="unix" 1850 ;; 1851 esac 1852 1853 # Check if exec_prefix is set. If not use fall back to prefix. 1854 # Note when adjusted, so that TEA_PREFIX can correct for this. 1855 # This is needed for recursive configures, since autoconf propagates 1856 # $prefix, but not $exec_prefix (doh!). 1857 if test x$exec_prefix = xNONE ; then 1858 exec_prefix_default=yes 1859 exec_prefix=$prefix 1860 fi 1861 1862 1863 1864 1865 # This package name must be replaced statically for AC_SUBST to work 1866 1867 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1868 1869 1870 # We AC_SUBST these here to ensure they are subst'ed, 1871 # in case the user doesn't call TEA_ADD_... 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881ac_aux_dir= 1882for ac_dir in tclconfig "$srcdir"/tclconfig; do 1883 if test -f "$ac_dir/install-sh"; then 1884 ac_aux_dir=$ac_dir 1885 ac_install_sh="$ac_aux_dir/install-sh -c" 1886 break 1887 elif 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/shtool"; then 1892 ac_aux_dir=$ac_dir 1893 ac_install_sh="$ac_aux_dir/shtool install -c" 1894 break 1895 fi 1896done 1897if test -z "$ac_aux_dir"; then 1898 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5 1899echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;} 1900 { (exit 1); exit 1; }; } 1901fi 1902 1903# These three variables are undocumented and unsupported, 1904# and are intended to be withdrawn in a future Autoconf release. 1905# They can cause serious problems if a builder's source tree is in a directory 1906# whose full name contains unusual characters. 1907ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1908ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1909ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1910 1911 1912 1913#-------------------------------------------------------------------- 1914# Load the tclConfig.sh file 1915#-------------------------------------------------------------------- 1916 1917 1918 1919 # 1920 # Ok, lets find the tcl configuration 1921 # First, look for one uninstalled. 1922 # the alternative search directory is invoked by --with-tcl 1923 # 1924 1925 if test x"${no_tcl}" = x ; then 1926 # we reset no_tcl in case something fails here 1927 no_tcl=true 1928 1929# Check whether --with-tcl was given. 1930if test "${with_tcl+set}" = set; then 1931 withval=$with_tcl; with_tclconfig="${withval}" 1932fi 1933 1934 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1935echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1936 if test "${ac_cv_c_tclconfig+set}" = set; then 1937 echo $ECHO_N "(cached) $ECHO_C" >&6 1938else 1939 1940 1941 # First check to see if --with-tcl was specified. 1942 if test x"${with_tclconfig}" != x ; then 1943 case "${with_tclconfig}" in 1944 */tclConfig.sh ) 1945 if test -f "${with_tclconfig}"; then 1946 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1947echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1948 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1949 fi ;; 1950 esac 1951 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1952 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1953 else 1954 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1955echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1956 { (exit 1); exit 1; }; } 1957 fi 1958 fi 1959 1960 # then check for a private Tcl installation 1961 if test x"${ac_cv_c_tclconfig}" = x ; then 1962 for i in \ 1963 ../tcl \ 1964 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1965 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1966 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 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` ; do 1975 if test "${TEA_PLATFORM}" = "windows" \ 1976 -a -f "$i/win/tclConfig.sh" ; then 1977 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 1978 break 1979 fi 1980 if test -f "$i/unix/tclConfig.sh" ; then 1981 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1982 break 1983 fi 1984 done 1985 fi 1986 1987 # on Darwin, check in Framework installation locations 1988 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1989 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1990 `ls -d /Library/Frameworks 2>/dev/null` \ 1991 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1992 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1993 ; do 1994 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 1995 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 1996 break 1997 fi 1998 done 1999 fi 2000 2001 # TEA specific: on Windows, check in common installation locations 2002 if test "${TEA_PLATFORM}" = "windows" \ 2003 -a x"${ac_cv_c_tclconfig}" = x ; then 2004 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2005 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2006 ; do 2007 if test -f "$i/tclConfig.sh" ; then 2008 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2009 break 2010 fi 2011 done 2012 fi 2013 2014 # check in a few common install locations 2015 if test x"${ac_cv_c_tclconfig}" = x ; then 2016 for i in `ls -d ${libdir} 2>/dev/null` \ 2017 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2018 `ls -d ${prefix}/lib 2>/dev/null` \ 2019 `ls -d /usr/local/lib 2>/dev/null` \ 2020 `ls -d /usr/contrib/lib 2>/dev/null` \ 2021 `ls -d /usr/lib 2>/dev/null` \ 2022 `ls -d /usr/lib64 2>/dev/null` \ 2023 ; do 2024 if test -f "$i/tclConfig.sh" ; then 2025 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2026 break 2027 fi 2028 done 2029 fi 2030 2031 # check in a few other private locations 2032 if test x"${ac_cv_c_tclconfig}" = x ; then 2033 for i in \ 2034 ${srcdir}/../tcl \ 2035 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2036 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2037 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2038 if test "${TEA_PLATFORM}" = "windows" \ 2039 -a -f "$i/win/tclConfig.sh" ; then 2040 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2041 break 2042 fi 2043 if test -f "$i/unix/tclConfig.sh" ; then 2044 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2045 break 2046 fi 2047 done 2048 fi 2049 2050fi 2051 2052 2053 if test x"${ac_cv_c_tclconfig}" = x ; then 2054 TCL_BIN_DIR="# no Tcl configs found" 2055 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2056echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2057 { (exit 1); exit 1; }; } 2058 else 2059 no_tcl= 2060 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2061 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2062echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2063 fi 2064 fi 2065 2066 2067 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2068echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2069 2070 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2071 { echo "$as_me:$LINENO: result: loading" >&5 2072echo "${ECHO_T}loading" >&6; } 2073 . "${TCL_BIN_DIR}/tclConfig.sh" 2074 else 2075 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2076echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2077 fi 2078 2079 # eval is required to do the TCL_DBGX substitution 2080 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2081 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2082 2083 # If the TCL_BIN_DIR is the build directory (not the install directory), 2084 # then set the common variable name to the value of the build variables. 2085 # For example, the variable TCL_LIB_SPEC will be set to the value 2086 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2087 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2088 # installed and uninstalled version of Tcl. 2089 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2090 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2091 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2092 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2093 elif test "`uname -s`" = "Darwin"; then 2094 # If Tcl was built as a framework, attempt to use the libraries 2095 # from the framework at the given location so that linking works 2096 # against Tcl.framework installed in an arbitrary location. 2097 case ${TCL_DEFS} in 2098 *TCL_FRAMEWORK*) 2099 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2100 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2101 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2102 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2103 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2104 break 2105 fi 2106 done 2107 fi 2108 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2109 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2110 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2111 fi 2112 ;; 2113 esac 2114 fi 2115 2116 # eval is required to do the TCL_DBGX substitution 2117 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2118 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2119 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2120 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 case "`uname -s`" in 2136 *CYGWIN_*) 2137 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2138echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2139 case ${TCL_EXTRA_CFLAGS} in 2140 *-mwin32*|*-mno-cygwin*) 2141 TEA_PLATFORM="windows" 2142 CFLAGS="$CFLAGS -mwin32" 2143 { echo "$as_me:$LINENO: result: win32" >&5 2144echo "${ECHO_T}win32" >&6; } 2145 ;; 2146 *) 2147 TEA_PLATFORM="unix" 2148 { echo "$as_me:$LINENO: result: unix" >&5 2149echo "${ECHO_T}unix" >&6; } 2150 ;; 2151 esac 2152 EXEEXT=".exe" 2153 ;; 2154 *) 2155 ;; 2156 esac 2157 2158 # Do this here as we have fully defined TEA_PLATFORM now 2159 if test "${TEA_PLATFORM}" = "windows" ; then 2160 # The BUILD_$pkg is to define the correct extern storage class 2161 # handling when making this package 2162 2163cat >>confdefs.h <<_ACEOF 2164#define BUILD_${PACKAGE_NAME} 2165_ACEOF 2166 2167 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2168 fi 2169 2170 # TEA specific: 2171 2172 2173 2174 2175 2176 2177 2178 2179#----------------------------------------------------------------------- 2180# Handle the --prefix=... option by defaulting to what Tcl gave. 2181# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2182#----------------------------------------------------------------------- 2183 2184 2185 if test "${prefix}" = "NONE"; then 2186 prefix_default=yes 2187 if test x"${TCL_PREFIX}" != x; then 2188 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2189echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2190 prefix=${TCL_PREFIX} 2191 else 2192 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2193echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2194 prefix=/usr/local 2195 fi 2196 fi 2197 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2198 -o x"${exec_prefix_default}" = x"yes" ; then 2199 if test x"${TCL_EXEC_PREFIX}" != x; then 2200 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2201echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2202 exec_prefix=${TCL_EXEC_PREFIX} 2203 else 2204 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2205echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2206 exec_prefix=$prefix 2207 fi 2208 fi 2209 2210 2211#----------------------------------------------------------------------- 2212# Standard compiler checks. 2213# This sets up CC by using the CC env var, or looks for gcc otherwise. 2214# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2215# the basic setup necessary to compile executables. 2216#----------------------------------------------------------------------- 2217 2218 2219 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2220 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2221 2222 # If the user did not set CFLAGS, set it now to keep 2223 # the AC_PROG_CC macro from adding "-g -O2". 2224 if test "${CFLAGS+set}" != "set" ; then 2225 CFLAGS="" 2226 fi 2227 2228 ac_ext=c 2229ac_cpp='$CPP $CPPFLAGS' 2230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2232ac_compiler_gnu=$ac_cv_c_compiler_gnu 2233if test -n "$ac_tool_prefix"; then 2234 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2235set dummy ${ac_tool_prefix}gcc; ac_word=$2 2236{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2238if test "${ac_cv_prog_CC+set}" = set; then 2239 echo $ECHO_N "(cached) $ECHO_C" >&6 2240else 2241 if test -n "$CC"; then 2242 ac_cv_prog_CC="$CC" # Let the user override the test. 2243else 2244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2245for as_dir in $PATH 2246do 2247 IFS=$as_save_IFS 2248 test -z "$as_dir" && as_dir=. 2249 for ac_exec_ext in '' $ac_executable_extensions; do 2250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2251 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2253 break 2 2254 fi 2255done 2256done 2257IFS=$as_save_IFS 2258 2259fi 2260fi 2261CC=$ac_cv_prog_CC 2262if test -n "$CC"; then 2263 { echo "$as_me:$LINENO: result: $CC" >&5 2264echo "${ECHO_T}$CC" >&6; } 2265else 2266 { echo "$as_me:$LINENO: result: no" >&5 2267echo "${ECHO_T}no" >&6; } 2268fi 2269 2270 2271fi 2272if test -z "$ac_cv_prog_CC"; then 2273 ac_ct_CC=$CC 2274 # Extract the first word of "gcc", so it can be a program name with args. 2275set dummy gcc; ac_word=$2 2276{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2278if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2279 echo $ECHO_N "(cached) $ECHO_C" >&6 2280else 2281 if test -n "$ac_ct_CC"; then 2282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2283else 2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2285for as_dir in $PATH 2286do 2287 IFS=$as_save_IFS 2288 test -z "$as_dir" && as_dir=. 2289 for ac_exec_ext in '' $ac_executable_extensions; do 2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2291 ac_cv_prog_ac_ct_CC="gcc" 2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2293 break 2 2294 fi 2295done 2296done 2297IFS=$as_save_IFS 2298 2299fi 2300fi 2301ac_ct_CC=$ac_cv_prog_ac_ct_CC 2302if test -n "$ac_ct_CC"; then 2303 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2304echo "${ECHO_T}$ac_ct_CC" >&6; } 2305else 2306 { echo "$as_me:$LINENO: result: no" >&5 2307echo "${ECHO_T}no" >&6; } 2308fi 2309 2310 if test "x$ac_ct_CC" = x; then 2311 CC="" 2312 else 2313 case $cross_compiling:$ac_tool_warned in 2314yes:) 2315{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2316whose name does not start with the host triplet. If you think this 2317configuration is useful to you, please write to autoconf@gnu.org." >&5 2318echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2319whose name does not start with the host triplet. If you think this 2320configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2321ac_tool_warned=yes ;; 2322esac 2323 CC=$ac_ct_CC 2324 fi 2325else 2326 CC="$ac_cv_prog_CC" 2327fi 2328 2329if test -z "$CC"; then 2330 if test -n "$ac_tool_prefix"; then 2331 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2332set dummy ${ac_tool_prefix}cc; ac_word=$2 2333{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2335if test "${ac_cv_prog_CC+set}" = set; then 2336 echo $ECHO_N "(cached) $ECHO_C" >&6 2337else 2338 if test -n "$CC"; then 2339 ac_cv_prog_CC="$CC" # Let the user override the test. 2340else 2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2342for as_dir in $PATH 2343do 2344 IFS=$as_save_IFS 2345 test -z "$as_dir" && as_dir=. 2346 for ac_exec_ext in '' $ac_executable_extensions; do 2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2348 ac_cv_prog_CC="${ac_tool_prefix}cc" 2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2350 break 2 2351 fi 2352done 2353done 2354IFS=$as_save_IFS 2355 2356fi 2357fi 2358CC=$ac_cv_prog_CC 2359if test -n "$CC"; then 2360 { echo "$as_me:$LINENO: result: $CC" >&5 2361echo "${ECHO_T}$CC" >&6; } 2362else 2363 { echo "$as_me:$LINENO: result: no" >&5 2364echo "${ECHO_T}no" >&6; } 2365fi 2366 2367 2368 fi 2369fi 2370if test -z "$CC"; then 2371 # Extract the first word of "cc", so it can be a program name with args. 2372set dummy cc; ac_word=$2 2373{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2375if test "${ac_cv_prog_CC+set}" = set; then 2376 echo $ECHO_N "(cached) $ECHO_C" >&6 2377else 2378 if test -n "$CC"; then 2379 ac_cv_prog_CC="$CC" # Let the user override the test. 2380else 2381 ac_prog_rejected=no 2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2383for as_dir in $PATH 2384do 2385 IFS=$as_save_IFS 2386 test -z "$as_dir" && as_dir=. 2387 for ac_exec_ext in '' $ac_executable_extensions; do 2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2389 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2390 ac_prog_rejected=yes 2391 continue 2392 fi 2393 ac_cv_prog_CC="cc" 2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2395 break 2 2396 fi 2397done 2398done 2399IFS=$as_save_IFS 2400 2401if test $ac_prog_rejected = yes; then 2402 # We found a bogon in the path, so make sure we never use it. 2403 set dummy $ac_cv_prog_CC 2404 shift 2405 if test $# != 0; then 2406 # We chose a different compiler from the bogus one. 2407 # However, it has the same basename, so the bogon will be chosen 2408 # first if we set CC to just the basename; use the full file name. 2409 shift 2410 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2411 fi 2412fi 2413fi 2414fi 2415CC=$ac_cv_prog_CC 2416if test -n "$CC"; then 2417 { echo "$as_me:$LINENO: result: $CC" >&5 2418echo "${ECHO_T}$CC" >&6; } 2419else 2420 { echo "$as_me:$LINENO: result: no" >&5 2421echo "${ECHO_T}no" >&6; } 2422fi 2423 2424 2425fi 2426if test -z "$CC"; then 2427 if test -n "$ac_tool_prefix"; then 2428 for ac_prog in cl.exe 2429 do 2430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2431set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2432{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2434if test "${ac_cv_prog_CC+set}" = set; then 2435 echo $ECHO_N "(cached) $ECHO_C" >&6 2436else 2437 if test -n "$CC"; then 2438 ac_cv_prog_CC="$CC" # Let the user override the test. 2439else 2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2441for as_dir in $PATH 2442do 2443 IFS=$as_save_IFS 2444 test -z "$as_dir" && as_dir=. 2445 for ac_exec_ext in '' $ac_executable_extensions; do 2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2447 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2449 break 2 2450 fi 2451done 2452done 2453IFS=$as_save_IFS 2454 2455fi 2456fi 2457CC=$ac_cv_prog_CC 2458if test -n "$CC"; then 2459 { echo "$as_me:$LINENO: result: $CC" >&5 2460echo "${ECHO_T}$CC" >&6; } 2461else 2462 { echo "$as_me:$LINENO: result: no" >&5 2463echo "${ECHO_T}no" >&6; } 2464fi 2465 2466 2467 test -n "$CC" && break 2468 done 2469fi 2470if test -z "$CC"; then 2471 ac_ct_CC=$CC 2472 for ac_prog in cl.exe 2473do 2474 # Extract the first word of "$ac_prog", so it can be a program name with args. 2475set dummy $ac_prog; ac_word=$2 2476{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2478if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2479 echo $ECHO_N "(cached) $ECHO_C" >&6 2480else 2481 if test -n "$ac_ct_CC"; then 2482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2483else 2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2485for as_dir in $PATH 2486do 2487 IFS=$as_save_IFS 2488 test -z "$as_dir" && as_dir=. 2489 for ac_exec_ext in '' $ac_executable_extensions; do 2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2491 ac_cv_prog_ac_ct_CC="$ac_prog" 2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2493 break 2 2494 fi 2495done 2496done 2497IFS=$as_save_IFS 2498 2499fi 2500fi 2501ac_ct_CC=$ac_cv_prog_ac_ct_CC 2502if test -n "$ac_ct_CC"; then 2503 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2504echo "${ECHO_T}$ac_ct_CC" >&6; } 2505else 2506 { echo "$as_me:$LINENO: result: no" >&5 2507echo "${ECHO_T}no" >&6; } 2508fi 2509 2510 2511 test -n "$ac_ct_CC" && break 2512done 2513 2514 if test "x$ac_ct_CC" = x; then 2515 CC="" 2516 else 2517 case $cross_compiling:$ac_tool_warned in 2518yes:) 2519{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2520whose name does not start with the host triplet. If you think this 2521configuration is useful to you, please write to autoconf@gnu.org." >&5 2522echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2523whose name does not start with the host triplet. If you think this 2524configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2525ac_tool_warned=yes ;; 2526esac 2527 CC=$ac_ct_CC 2528 fi 2529fi 2530 2531fi 2532 2533 2534test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2535See \`config.log' for more details." >&5 2536echo "$as_me: error: no acceptable C compiler found in \$PATH 2537See \`config.log' for more details." >&2;} 2538 { (exit 1); exit 1; }; } 2539 2540# Provide some information about the compiler. 2541echo "$as_me:$LINENO: checking for C compiler version" >&5 2542ac_compiler=`set X $ac_compile; echo $2` 2543{ (ac_try="$ac_compiler --version >&5" 2544case "(($ac_try" in 2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2546 *) ac_try_echo=$ac_try;; 2547esac 2548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2549 (eval "$ac_compiler --version >&5") 2>&5 2550 ac_status=$? 2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2552 (exit $ac_status); } 2553{ (ac_try="$ac_compiler -v >&5" 2554case "(($ac_try" in 2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2556 *) ac_try_echo=$ac_try;; 2557esac 2558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2559 (eval "$ac_compiler -v >&5") 2>&5 2560 ac_status=$? 2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2562 (exit $ac_status); } 2563{ (ac_try="$ac_compiler -V >&5" 2564case "(($ac_try" in 2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2566 *) ac_try_echo=$ac_try;; 2567esac 2568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2569 (eval "$ac_compiler -V >&5") 2>&5 2570 ac_status=$? 2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2572 (exit $ac_status); } 2573 2574cat >conftest.$ac_ext <<_ACEOF 2575/* confdefs.h. */ 2576_ACEOF 2577cat confdefs.h >>conftest.$ac_ext 2578cat >>conftest.$ac_ext <<_ACEOF 2579/* end confdefs.h. */ 2580 2581int 2582main () 2583{ 2584 2585 ; 2586 return 0; 2587} 2588_ACEOF 2589ac_clean_files_save=$ac_clean_files 2590ac_clean_files="$ac_clean_files a.out a.exe b.out" 2591# Try to create an executable without -o first, disregard a.out. 2592# It will help us diagnose broken compilers, and finding out an intuition 2593# of exeext. 2594{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2595echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2596ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2597# 2598# List of possible output files, starting from the most likely. 2599# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2600# only as a last resort. b.out is created by i960 compilers. 2601ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2602# 2603# The IRIX 6 linker writes into existing files which may not be 2604# executable, retaining their permissions. Remove them first so a 2605# subsequent execution test works. 2606ac_rmfiles= 2607for ac_file in $ac_files 2608do 2609 case $ac_file in 2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2611 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2612 esac 2613done 2614rm -f $ac_rmfiles 2615 2616if { (ac_try="$ac_link_default" 2617case "(($ac_try" in 2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2619 *) ac_try_echo=$ac_try;; 2620esac 2621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2622 (eval "$ac_link_default") 2>&5 2623 ac_status=$? 2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2625 (exit $ac_status); }; then 2626 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2627# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2628# in a Makefile. We should not override ac_cv_exeext if it was cached, 2629# so that the user can short-circuit this test for compilers unknown to 2630# Autoconf. 2631for ac_file in $ac_files '' 2632do 2633 test -f "$ac_file" || continue 2634 case $ac_file in 2635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2636 ;; 2637 [ab].out ) 2638 # We found the default executable, but exeext='' is most 2639 # certainly right. 2640 break;; 2641 *.* ) 2642 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2643 then :; else 2644 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2645 fi 2646 # We set ac_cv_exeext here because the later test for it is not 2647 # safe: cross compilers may not add the suffix if given an `-o' 2648 # argument, so we may need to know it at that point already. 2649 # Even if this section looks crufty: it has the advantage of 2650 # actually working. 2651 break;; 2652 * ) 2653 break;; 2654 esac 2655done 2656test "$ac_cv_exeext" = no && ac_cv_exeext= 2657 2658else 2659 ac_file='' 2660fi 2661 2662{ echo "$as_me:$LINENO: result: $ac_file" >&5 2663echo "${ECHO_T}$ac_file" >&6; } 2664if test -z "$ac_file"; then 2665 echo "$as_me: failed program was:" >&5 2666sed 's/^/| /' conftest.$ac_ext >&5 2667 2668{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2669See \`config.log' for more details." >&5 2670echo "$as_me: error: C compiler cannot create executables 2671See \`config.log' for more details." >&2;} 2672 { (exit 77); exit 77; }; } 2673fi 2674 2675ac_exeext=$ac_cv_exeext 2676 2677# Check that the compiler produces executables we can run. If not, either 2678# the compiler is broken, or we cross compile. 2679{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2680echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2681# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2682# If not cross compiling, check that we can run a simple program. 2683if test "$cross_compiling" != yes; then 2684 if { ac_try='./$ac_file' 2685 { (case "(($ac_try" in 2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2687 *) ac_try_echo=$ac_try;; 2688esac 2689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2690 (eval "$ac_try") 2>&5 2691 ac_status=$? 2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2693 (exit $ac_status); }; }; then 2694 cross_compiling=no 2695 else 2696 if test "$cross_compiling" = maybe; then 2697 cross_compiling=yes 2698 else 2699 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2700If you meant to cross compile, use \`--host'. 2701See \`config.log' for more details." >&5 2702echo "$as_me: error: cannot run C compiled programs. 2703If you meant to cross compile, use \`--host'. 2704See \`config.log' for more details." >&2;} 2705 { (exit 1); exit 1; }; } 2706 fi 2707 fi 2708fi 2709{ echo "$as_me:$LINENO: result: yes" >&5 2710echo "${ECHO_T}yes" >&6; } 2711 2712rm -f a.out a.exe conftest$ac_cv_exeext b.out 2713ac_clean_files=$ac_clean_files_save 2714# Check that the compiler produces executables we can run. If not, either 2715# the compiler is broken, or we cross compile. 2716{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2717echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2718{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2719echo "${ECHO_T}$cross_compiling" >&6; } 2720 2721{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2722echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2723if { (ac_try="$ac_link" 2724case "(($ac_try" in 2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2726 *) ac_try_echo=$ac_try;; 2727esac 2728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2729 (eval "$ac_link") 2>&5 2730 ac_status=$? 2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2732 (exit $ac_status); }; then 2733 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2734# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2735# work properly (i.e., refer to `conftest.exe'), while it won't with 2736# `rm'. 2737for ac_file in conftest.exe conftest conftest.*; do 2738 test -f "$ac_file" || continue 2739 case $ac_file in 2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2741 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2742 break;; 2743 * ) break;; 2744 esac 2745done 2746else 2747 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2748See \`config.log' for more details." >&5 2749echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2750See \`config.log' for more details." >&2;} 2751 { (exit 1); exit 1; }; } 2752fi 2753 2754rm -f conftest$ac_cv_exeext 2755{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2756echo "${ECHO_T}$ac_cv_exeext" >&6; } 2757 2758rm -f conftest.$ac_ext 2759EXEEXT=$ac_cv_exeext 2760ac_exeext=$EXEEXT 2761{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2762echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2763if test "${ac_cv_objext+set}" = set; then 2764 echo $ECHO_N "(cached) $ECHO_C" >&6 2765else 2766 cat >conftest.$ac_ext <<_ACEOF 2767/* confdefs.h. */ 2768_ACEOF 2769cat confdefs.h >>conftest.$ac_ext 2770cat >>conftest.$ac_ext <<_ACEOF 2771/* end confdefs.h. */ 2772 2773int 2774main () 2775{ 2776 2777 ; 2778 return 0; 2779} 2780_ACEOF 2781rm -f conftest.o conftest.obj 2782if { (ac_try="$ac_compile" 2783case "(($ac_try" in 2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2785 *) ac_try_echo=$ac_try;; 2786esac 2787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2788 (eval "$ac_compile") 2>&5 2789 ac_status=$? 2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2791 (exit $ac_status); }; then 2792 for ac_file in conftest.o conftest.obj conftest.*; do 2793 test -f "$ac_file" || continue; 2794 case $ac_file in 2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2796 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2797 break;; 2798 esac 2799done 2800else 2801 echo "$as_me: failed program was:" >&5 2802sed 's/^/| /' conftest.$ac_ext >&5 2803 2804{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2805See \`config.log' for more details." >&5 2806echo "$as_me: error: cannot compute suffix of object files: cannot compile 2807See \`config.log' for more details." >&2;} 2808 { (exit 1); exit 1; }; } 2809fi 2810 2811rm -f conftest.$ac_cv_objext conftest.$ac_ext 2812fi 2813{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2814echo "${ECHO_T}$ac_cv_objext" >&6; } 2815OBJEXT=$ac_cv_objext 2816ac_objext=$OBJEXT 2817{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2818echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2819if test "${ac_cv_c_compiler_gnu+set}" = set; then 2820 echo $ECHO_N "(cached) $ECHO_C" >&6 2821else 2822 cat >conftest.$ac_ext <<_ACEOF 2823/* confdefs.h. */ 2824_ACEOF 2825cat confdefs.h >>conftest.$ac_ext 2826cat >>conftest.$ac_ext <<_ACEOF 2827/* end confdefs.h. */ 2828 2829int 2830main () 2831{ 2832#ifndef __GNUC__ 2833 choke me 2834#endif 2835 2836 ; 2837 return 0; 2838} 2839_ACEOF 2840rm -f conftest.$ac_objext 2841if { (ac_try="$ac_compile" 2842case "(($ac_try" in 2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2844 *) ac_try_echo=$ac_try;; 2845esac 2846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2847 (eval "$ac_compile") 2>conftest.er1 2848 ac_status=$? 2849 grep -v '^ *+' conftest.er1 >conftest.err 2850 rm -f conftest.er1 2851 cat conftest.err >&5 2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2853 (exit $ac_status); } && { 2854 test -z "$ac_c_werror_flag" || 2855 test ! -s conftest.err 2856 } && test -s conftest.$ac_objext; then 2857 ac_compiler_gnu=yes 2858else 2859 echo "$as_me: failed program was:" >&5 2860sed 's/^/| /' conftest.$ac_ext >&5 2861 2862 ac_compiler_gnu=no 2863fi 2864 2865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2866ac_cv_c_compiler_gnu=$ac_compiler_gnu 2867 2868fi 2869{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2870echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2871GCC=`test $ac_compiler_gnu = yes && echo yes` 2872ac_test_CFLAGS=${CFLAGS+set} 2873ac_save_CFLAGS=$CFLAGS 2874{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2875echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2876if test "${ac_cv_prog_cc_g+set}" = set; then 2877 echo $ECHO_N "(cached) $ECHO_C" >&6 2878else 2879 ac_save_c_werror_flag=$ac_c_werror_flag 2880 ac_c_werror_flag=yes 2881 ac_cv_prog_cc_g=no 2882 CFLAGS="-g" 2883 cat >conftest.$ac_ext <<_ACEOF 2884/* confdefs.h. */ 2885_ACEOF 2886cat confdefs.h >>conftest.$ac_ext 2887cat >>conftest.$ac_ext <<_ACEOF 2888/* end confdefs.h. */ 2889 2890int 2891main () 2892{ 2893 2894 ; 2895 return 0; 2896} 2897_ACEOF 2898rm -f conftest.$ac_objext 2899if { (ac_try="$ac_compile" 2900case "(($ac_try" in 2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2902 *) ac_try_echo=$ac_try;; 2903esac 2904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2905 (eval "$ac_compile") 2>conftest.er1 2906 ac_status=$? 2907 grep -v '^ *+' conftest.er1 >conftest.err 2908 rm -f conftest.er1 2909 cat conftest.err >&5 2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2911 (exit $ac_status); } && { 2912 test -z "$ac_c_werror_flag" || 2913 test ! -s conftest.err 2914 } && test -s conftest.$ac_objext; then 2915 ac_cv_prog_cc_g=yes 2916else 2917 echo "$as_me: failed program was:" >&5 2918sed 's/^/| /' conftest.$ac_ext >&5 2919 2920 CFLAGS="" 2921 cat >conftest.$ac_ext <<_ACEOF 2922/* confdefs.h. */ 2923_ACEOF 2924cat confdefs.h >>conftest.$ac_ext 2925cat >>conftest.$ac_ext <<_ACEOF 2926/* end confdefs.h. */ 2927 2928int 2929main () 2930{ 2931 2932 ; 2933 return 0; 2934} 2935_ACEOF 2936rm -f conftest.$ac_objext 2937if { (ac_try="$ac_compile" 2938case "(($ac_try" in 2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2940 *) ac_try_echo=$ac_try;; 2941esac 2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2943 (eval "$ac_compile") 2>conftest.er1 2944 ac_status=$? 2945 grep -v '^ *+' conftest.er1 >conftest.err 2946 rm -f conftest.er1 2947 cat conftest.err >&5 2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2949 (exit $ac_status); } && { 2950 test -z "$ac_c_werror_flag" || 2951 test ! -s conftest.err 2952 } && test -s conftest.$ac_objext; then 2953 : 2954else 2955 echo "$as_me: failed program was:" >&5 2956sed 's/^/| /' conftest.$ac_ext >&5 2957 2958 ac_c_werror_flag=$ac_save_c_werror_flag 2959 CFLAGS="-g" 2960 cat >conftest.$ac_ext <<_ACEOF 2961/* confdefs.h. */ 2962_ACEOF 2963cat confdefs.h >>conftest.$ac_ext 2964cat >>conftest.$ac_ext <<_ACEOF 2965/* end confdefs.h. */ 2966 2967int 2968main () 2969{ 2970 2971 ; 2972 return 0; 2973} 2974_ACEOF 2975rm -f conftest.$ac_objext 2976if { (ac_try="$ac_compile" 2977case "(($ac_try" in 2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2979 *) ac_try_echo=$ac_try;; 2980esac 2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2982 (eval "$ac_compile") 2>conftest.er1 2983 ac_status=$? 2984 grep -v '^ *+' conftest.er1 >conftest.err 2985 rm -f conftest.er1 2986 cat conftest.err >&5 2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2988 (exit $ac_status); } && { 2989 test -z "$ac_c_werror_flag" || 2990 test ! -s conftest.err 2991 } && test -s conftest.$ac_objext; then 2992 ac_cv_prog_cc_g=yes 2993else 2994 echo "$as_me: failed program was:" >&5 2995sed 's/^/| /' conftest.$ac_ext >&5 2996 2997 2998fi 2999 3000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3001fi 3002 3003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3004fi 3005 3006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3007 ac_c_werror_flag=$ac_save_c_werror_flag 3008fi 3009{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3010echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3011if test "$ac_test_CFLAGS" = set; then 3012 CFLAGS=$ac_save_CFLAGS 3013elif test $ac_cv_prog_cc_g = yes; then 3014 if test "$GCC" = yes; then 3015 CFLAGS="-g -O2" 3016 else 3017 CFLAGS="-g" 3018 fi 3019else 3020 if test "$GCC" = yes; then 3021 CFLAGS="-O2" 3022 else 3023 CFLAGS= 3024 fi 3025fi 3026{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3027echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3028if test "${ac_cv_prog_cc_c89+set}" = set; then 3029 echo $ECHO_N "(cached) $ECHO_C" >&6 3030else 3031 ac_cv_prog_cc_c89=no 3032ac_save_CC=$CC 3033cat >conftest.$ac_ext <<_ACEOF 3034/* confdefs.h. */ 3035_ACEOF 3036cat confdefs.h >>conftest.$ac_ext 3037cat >>conftest.$ac_ext <<_ACEOF 3038/* end confdefs.h. */ 3039#include <stdarg.h> 3040#include <stdio.h> 3041#include <sys/types.h> 3042#include <sys/stat.h> 3043/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3044struct buf { int x; }; 3045FILE * (*rcsopen) (struct buf *, struct stat *, int); 3046static char *e (p, i) 3047 char **p; 3048 int i; 3049{ 3050 return p[i]; 3051} 3052static char *f (char * (*g) (char **, int), char **p, ...) 3053{ 3054 char *s; 3055 va_list v; 3056 va_start (v,p); 3057 s = g (p, va_arg (v,int)); 3058 va_end (v); 3059 return s; 3060} 3061 3062/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3063 function prototypes and stuff, but not '\xHH' hex character constants. 3064 These don't provoke an error unfortunately, instead are silently treated 3065 as 'x'. The following induces an error, until -std is added to get 3066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3067 array size at least. It's necessary to write '\x00'==0 to get something 3068 that's true only with -std. */ 3069int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3070 3071/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3072 inside strings and character constants. */ 3073#define FOO(x) 'x' 3074int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3075 3076int test (int i, double x); 3077struct s1 {int (*f) (int a);}; 3078struct s2 {int (*f) (double a);}; 3079int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3080int argc; 3081char **argv; 3082int 3083main () 3084{ 3085return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3086 ; 3087 return 0; 3088} 3089_ACEOF 3090for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3091 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3092do 3093 CC="$ac_save_CC $ac_arg" 3094 rm -f conftest.$ac_objext 3095if { (ac_try="$ac_compile" 3096case "(($ac_try" in 3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3098 *) ac_try_echo=$ac_try;; 3099esac 3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3101 (eval "$ac_compile") 2>conftest.er1 3102 ac_status=$? 3103 grep -v '^ *+' conftest.er1 >conftest.err 3104 rm -f conftest.er1 3105 cat conftest.err >&5 3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3107 (exit $ac_status); } && { 3108 test -z "$ac_c_werror_flag" || 3109 test ! -s conftest.err 3110 } && test -s conftest.$ac_objext; then 3111 ac_cv_prog_cc_c89=$ac_arg 3112else 3113 echo "$as_me: failed program was:" >&5 3114sed 's/^/| /' conftest.$ac_ext >&5 3115 3116 3117fi 3118 3119rm -f core conftest.err conftest.$ac_objext 3120 test "x$ac_cv_prog_cc_c89" != "xno" && break 3121done 3122rm -f conftest.$ac_ext 3123CC=$ac_save_CC 3124 3125fi 3126# AC_CACHE_VAL 3127case "x$ac_cv_prog_cc_c89" in 3128 x) 3129 { echo "$as_me:$LINENO: result: none needed" >&5 3130echo "${ECHO_T}none needed" >&6; } ;; 3131 xno) 3132 { echo "$as_me:$LINENO: result: unsupported" >&5 3133echo "${ECHO_T}unsupported" >&6; } ;; 3134 *) 3135 CC="$CC $ac_cv_prog_cc_c89" 3136 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3137echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3138esac 3139 3140 3141ac_ext=c 3142ac_cpp='$CPP $CPPFLAGS' 3143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3145ac_compiler_gnu=$ac_cv_c_compiler_gnu 3146 3147 ac_ext=c 3148ac_cpp='$CPP $CPPFLAGS' 3149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3151ac_compiler_gnu=$ac_cv_c_compiler_gnu 3152{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3153echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3154# On Suns, sometimes $CPP names a directory. 3155if test -n "$CPP" && test -d "$CPP"; then 3156 CPP= 3157fi 3158if test -z "$CPP"; then 3159 if test "${ac_cv_prog_CPP+set}" = set; then 3160 echo $ECHO_N "(cached) $ECHO_C" >&6 3161else 3162 # Double quotes because CPP needs to be expanded 3163 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3164 do 3165 ac_preproc_ok=false 3166for ac_c_preproc_warn_flag in '' yes 3167do 3168 # Use a header file that comes with gcc, so configuring glibc 3169 # with a fresh cross-compiler works. 3170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3171 # <limits.h> exists even on freestanding compilers. 3172 # On the NeXT, cc -E runs the code through the compiler's parser, 3173 # not just through cpp. "Syntax error" is here to catch this case. 3174 cat >conftest.$ac_ext <<_ACEOF 3175/* confdefs.h. */ 3176_ACEOF 3177cat confdefs.h >>conftest.$ac_ext 3178cat >>conftest.$ac_ext <<_ACEOF 3179/* end confdefs.h. */ 3180#ifdef __STDC__ 3181# include <limits.h> 3182#else 3183# include <assert.h> 3184#endif 3185 Syntax error 3186_ACEOF 3187if { (ac_try="$ac_cpp conftest.$ac_ext" 3188case "(($ac_try" in 3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3190 *) ac_try_echo=$ac_try;; 3191esac 3192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3194 ac_status=$? 3195 grep -v '^ *+' conftest.er1 >conftest.err 3196 rm -f conftest.er1 3197 cat conftest.err >&5 3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3199 (exit $ac_status); } >/dev/null && { 3200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3201 test ! -s conftest.err 3202 }; then 3203 : 3204else 3205 echo "$as_me: failed program was:" >&5 3206sed 's/^/| /' conftest.$ac_ext >&5 3207 3208 # Broken: fails on valid input. 3209continue 3210fi 3211 3212rm -f conftest.err conftest.$ac_ext 3213 3214 # OK, works on sane cases. Now check whether nonexistent headers 3215 # can be detected and how. 3216 cat >conftest.$ac_ext <<_ACEOF 3217/* confdefs.h. */ 3218_ACEOF 3219cat confdefs.h >>conftest.$ac_ext 3220cat >>conftest.$ac_ext <<_ACEOF 3221/* end confdefs.h. */ 3222#include <ac_nonexistent.h> 3223_ACEOF 3224if { (ac_try="$ac_cpp conftest.$ac_ext" 3225case "(($ac_try" in 3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3227 *) ac_try_echo=$ac_try;; 3228esac 3229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3231 ac_status=$? 3232 grep -v '^ *+' conftest.er1 >conftest.err 3233 rm -f conftest.er1 3234 cat conftest.err >&5 3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3236 (exit $ac_status); } >/dev/null && { 3237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3238 test ! -s conftest.err 3239 }; then 3240 # Broken: success on invalid input. 3241continue 3242else 3243 echo "$as_me: failed program was:" >&5 3244sed 's/^/| /' conftest.$ac_ext >&5 3245 3246 # Passes both tests. 3247ac_preproc_ok=: 3248break 3249fi 3250 3251rm -f conftest.err conftest.$ac_ext 3252 3253done 3254# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3255rm -f conftest.err conftest.$ac_ext 3256if $ac_preproc_ok; then 3257 break 3258fi 3259 3260 done 3261 ac_cv_prog_CPP=$CPP 3262 3263fi 3264 CPP=$ac_cv_prog_CPP 3265else 3266 ac_cv_prog_CPP=$CPP 3267fi 3268{ echo "$as_me:$LINENO: result: $CPP" >&5 3269echo "${ECHO_T}$CPP" >&6; } 3270ac_preproc_ok=false 3271for ac_c_preproc_warn_flag in '' yes 3272do 3273 # Use a header file that comes with gcc, so configuring glibc 3274 # with a fresh cross-compiler works. 3275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3276 # <limits.h> exists even on freestanding compilers. 3277 # On the NeXT, cc -E runs the code through the compiler's parser, 3278 # not just through cpp. "Syntax error" is here to catch this case. 3279 cat >conftest.$ac_ext <<_ACEOF 3280/* confdefs.h. */ 3281_ACEOF 3282cat confdefs.h >>conftest.$ac_ext 3283cat >>conftest.$ac_ext <<_ACEOF 3284/* end confdefs.h. */ 3285#ifdef __STDC__ 3286# include <limits.h> 3287#else 3288# include <assert.h> 3289#endif 3290 Syntax error 3291_ACEOF 3292if { (ac_try="$ac_cpp conftest.$ac_ext" 3293case "(($ac_try" in 3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3295 *) ac_try_echo=$ac_try;; 3296esac 3297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3299 ac_status=$? 3300 grep -v '^ *+' conftest.er1 >conftest.err 3301 rm -f conftest.er1 3302 cat conftest.err >&5 3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3304 (exit $ac_status); } >/dev/null && { 3305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3306 test ! -s conftest.err 3307 }; then 3308 : 3309else 3310 echo "$as_me: failed program was:" >&5 3311sed 's/^/| /' conftest.$ac_ext >&5 3312 3313 # Broken: fails on valid input. 3314continue 3315fi 3316 3317rm -f conftest.err conftest.$ac_ext 3318 3319 # OK, works on sane cases. Now check whether nonexistent headers 3320 # can be detected and how. 3321 cat >conftest.$ac_ext <<_ACEOF 3322/* confdefs.h. */ 3323_ACEOF 3324cat confdefs.h >>conftest.$ac_ext 3325cat >>conftest.$ac_ext <<_ACEOF 3326/* end confdefs.h. */ 3327#include <ac_nonexistent.h> 3328_ACEOF 3329if { (ac_try="$ac_cpp conftest.$ac_ext" 3330case "(($ac_try" in 3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3332 *) ac_try_echo=$ac_try;; 3333esac 3334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3336 ac_status=$? 3337 grep -v '^ *+' conftest.er1 >conftest.err 3338 rm -f conftest.er1 3339 cat conftest.err >&5 3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3341 (exit $ac_status); } >/dev/null && { 3342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3343 test ! -s conftest.err 3344 }; then 3345 # Broken: success on invalid input. 3346continue 3347else 3348 echo "$as_me: failed program was:" >&5 3349sed 's/^/| /' conftest.$ac_ext >&5 3350 3351 # Passes both tests. 3352ac_preproc_ok=: 3353break 3354fi 3355 3356rm -f conftest.err conftest.$ac_ext 3357 3358done 3359# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3360rm -f conftest.err conftest.$ac_ext 3361if $ac_preproc_ok; then 3362 : 3363else 3364 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3365See \`config.log' for more details." >&5 3366echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3367See \`config.log' for more details." >&2;} 3368 { (exit 1); exit 1; }; } 3369fi 3370 3371ac_ext=c 3372ac_cpp='$CPP $CPPFLAGS' 3373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3375ac_compiler_gnu=$ac_cv_c_compiler_gnu 3376 3377 3378 # Find a good install program. We prefer a C program (faster), 3379# so one script is as good as another. But avoid the broken or 3380# incompatible versions: 3381# SysV /etc/install, /usr/sbin/install 3382# SunOS /usr/etc/install 3383# IRIX /sbin/install 3384# AIX /bin/install 3385# AmigaOS /C/install, which installs bootblocks on floppy discs 3386# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3387# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3388# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3389# OS/2's system install, which has a completely different semantic 3390# ./install, which can be erroneously created by make from ./install.sh. 3391{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3392echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3393if test -z "$INSTALL"; then 3394if test "${ac_cv_path_install+set}" = set; then 3395 echo $ECHO_N "(cached) $ECHO_C" >&6 3396else 3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3398for as_dir in $PATH 3399do 3400 IFS=$as_save_IFS 3401 test -z "$as_dir" && as_dir=. 3402 # Account for people who put trailing slashes in PATH elements. 3403case $as_dir/ in 3404 ./ | .// | /cC/* | \ 3405 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3406 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3407 /usr/ucb/* ) ;; 3408 *) 3409 # OSF1 and SCO ODT 3.0 have their own names for install. 3410 # Don't use installbsd from OSF since it installs stuff as root 3411 # by default. 3412 for ac_prog in ginstall scoinst install; do 3413 for ac_exec_ext in '' $ac_executable_extensions; do 3414 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3415 if test $ac_prog = install && 3416 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3417 # AIX install. It has an incompatible calling convention. 3418 : 3419 elif test $ac_prog = install && 3420 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3421 # program-specific install script used by HP pwplus--don't use. 3422 : 3423 else 3424 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3425 break 3 3426 fi 3427 fi 3428 done 3429 done 3430 ;; 3431esac 3432done 3433IFS=$as_save_IFS 3434 3435 3436fi 3437 if test "${ac_cv_path_install+set}" = set; then 3438 INSTALL=$ac_cv_path_install 3439 else 3440 # As a last resort, use the slow shell script. Don't cache a 3441 # value for INSTALL within a source directory, because that will 3442 # break other packages using the cache if that directory is 3443 # removed, or if the value is a relative name. 3444 INSTALL=$ac_install_sh 3445 fi 3446fi 3447{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3448echo "${ECHO_T}$INSTALL" >&6; } 3449 3450# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3451# It thinks the first close brace ends the variable substitution. 3452test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3453 3454test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3455 3456test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3457 3458 3459 #-------------------------------------------------------------------- 3460 # Checks to see if the make program sets the $MAKE variable. 3461 #-------------------------------------------------------------------- 3462 3463 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3464echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3465set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3466if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3467 echo $ECHO_N "(cached) $ECHO_C" >&6 3468else 3469 cat >conftest.make <<\_ACEOF 3470SHELL = /bin/sh 3471all: 3472 @echo '@@@%%%=$(MAKE)=@@@%%%' 3473_ACEOF 3474# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3475case `${MAKE-make} -f conftest.make 2>/dev/null` in 3476 *@@@%%%=?*=@@@%%%*) 3477 eval ac_cv_prog_make_${ac_make}_set=yes;; 3478 *) 3479 eval ac_cv_prog_make_${ac_make}_set=no;; 3480esac 3481rm -f conftest.make 3482fi 3483if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3484 { echo "$as_me:$LINENO: result: yes" >&5 3485echo "${ECHO_T}yes" >&6; } 3486 SET_MAKE= 3487else 3488 { echo "$as_me:$LINENO: result: no" >&5 3489echo "${ECHO_T}no" >&6; } 3490 SET_MAKE="MAKE=${MAKE-make}" 3491fi 3492 3493 3494 #-------------------------------------------------------------------- 3495 # Find ranlib 3496 #-------------------------------------------------------------------- 3497 3498 if test -n "$ac_tool_prefix"; then 3499 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3500set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3501{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3503if test "${ac_cv_prog_RANLIB+set}" = set; then 3504 echo $ECHO_N "(cached) $ECHO_C" >&6 3505else 3506 if test -n "$RANLIB"; then 3507 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3508else 3509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3510for as_dir in $PATH 3511do 3512 IFS=$as_save_IFS 3513 test -z "$as_dir" && as_dir=. 3514 for ac_exec_ext in '' $ac_executable_extensions; do 3515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3516 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3518 break 2 3519 fi 3520done 3521done 3522IFS=$as_save_IFS 3523 3524fi 3525fi 3526RANLIB=$ac_cv_prog_RANLIB 3527if test -n "$RANLIB"; then 3528 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3529echo "${ECHO_T}$RANLIB" >&6; } 3530else 3531 { echo "$as_me:$LINENO: result: no" >&5 3532echo "${ECHO_T}no" >&6; } 3533fi 3534 3535 3536fi 3537if test -z "$ac_cv_prog_RANLIB"; then 3538 ac_ct_RANLIB=$RANLIB 3539 # Extract the first word of "ranlib", so it can be a program name with args. 3540set dummy ranlib; ac_word=$2 3541{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3543if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3544 echo $ECHO_N "(cached) $ECHO_C" >&6 3545else 3546 if test -n "$ac_ct_RANLIB"; then 3547 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3548else 3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3550for as_dir in $PATH 3551do 3552 IFS=$as_save_IFS 3553 test -z "$as_dir" && as_dir=. 3554 for ac_exec_ext in '' $ac_executable_extensions; do 3555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3556 ac_cv_prog_ac_ct_RANLIB="ranlib" 3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3558 break 2 3559 fi 3560done 3561done 3562IFS=$as_save_IFS 3563 3564fi 3565fi 3566ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3567if test -n "$ac_ct_RANLIB"; then 3568 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3569echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3570else 3571 { echo "$as_me:$LINENO: result: no" >&5 3572echo "${ECHO_T}no" >&6; } 3573fi 3574 3575 if test "x$ac_ct_RANLIB" = x; then 3576 RANLIB=":" 3577 else 3578 case $cross_compiling:$ac_tool_warned in 3579yes:) 3580{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3581whose name does not start with the host triplet. If you think this 3582configuration is useful to you, please write to autoconf@gnu.org." >&5 3583echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3584whose name does not start with the host triplet. If you think this 3585configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3586ac_tool_warned=yes ;; 3587esac 3588 RANLIB=$ac_ct_RANLIB 3589 fi 3590else 3591 RANLIB="$ac_cv_prog_RANLIB" 3592fi 3593 3594 3595 #-------------------------------------------------------------------- 3596 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3597 #-------------------------------------------------------------------- 3598 3599 3600 3601 3602 3603 3604{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3605echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3606if test "${ac_cv_path_GREP+set}" = set; then 3607 echo $ECHO_N "(cached) $ECHO_C" >&6 3608else 3609 # Extract the first word of "grep ggrep" to use in msg output 3610if test -z "$GREP"; then 3611set dummy grep ggrep; ac_prog_name=$2 3612if test "${ac_cv_path_GREP+set}" = set; then 3613 echo $ECHO_N "(cached) $ECHO_C" >&6 3614else 3615 ac_path_GREP_found=false 3616# Loop through the user's path and test for each of PROGNAME-LIST 3617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3618for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3619do 3620 IFS=$as_save_IFS 3621 test -z "$as_dir" && as_dir=. 3622 for ac_prog in grep ggrep; do 3623 for ac_exec_ext in '' $ac_executable_extensions; do 3624 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3625 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3626 # Check for GNU ac_path_GREP and select it if it is found. 3627 # Check for GNU $ac_path_GREP 3628case `"$ac_path_GREP" --version 2>&1` in 3629*GNU*) 3630 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3631*) 3632 ac_count=0 3633 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3634 while : 3635 do 3636 cat "conftest.in" "conftest.in" >"conftest.tmp" 3637 mv "conftest.tmp" "conftest.in" 3638 cp "conftest.in" "conftest.nl" 3639 echo 'GREP' >> "conftest.nl" 3640 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3642 ac_count=`expr $ac_count + 1` 3643 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3644 # Best one so far, save it but keep looking for a better one 3645 ac_cv_path_GREP="$ac_path_GREP" 3646 ac_path_GREP_max=$ac_count 3647 fi 3648 # 10*(2^10) chars as input seems more than enough 3649 test $ac_count -gt 10 && break 3650 done 3651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3652esac 3653 3654 3655 $ac_path_GREP_found && break 3 3656 done 3657done 3658 3659done 3660IFS=$as_save_IFS 3661 3662 3663fi 3664 3665GREP="$ac_cv_path_GREP" 3666if test -z "$GREP"; then 3667 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3668echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3669 { (exit 1); exit 1; }; } 3670fi 3671 3672else 3673 ac_cv_path_GREP=$GREP 3674fi 3675 3676 3677fi 3678{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3679echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3680 GREP="$ac_cv_path_GREP" 3681 3682 3683{ echo "$as_me:$LINENO: checking for egrep" >&5 3684echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3685if test "${ac_cv_path_EGREP+set}" = set; then 3686 echo $ECHO_N "(cached) $ECHO_C" >&6 3687else 3688 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3689 then ac_cv_path_EGREP="$GREP -E" 3690 else 3691 # Extract the first word of "egrep" to use in msg output 3692if test -z "$EGREP"; then 3693set dummy egrep; ac_prog_name=$2 3694if test "${ac_cv_path_EGREP+set}" = set; then 3695 echo $ECHO_N "(cached) $ECHO_C" >&6 3696else 3697 ac_path_EGREP_found=false 3698# Loop through the user's path and test for each of PROGNAME-LIST 3699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3700for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3701do 3702 IFS=$as_save_IFS 3703 test -z "$as_dir" && as_dir=. 3704 for ac_prog in egrep; do 3705 for ac_exec_ext in '' $ac_executable_extensions; do 3706 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3707 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3708 # Check for GNU ac_path_EGREP and select it if it is found. 3709 # Check for GNU $ac_path_EGREP 3710case `"$ac_path_EGREP" --version 2>&1` in 3711*GNU*) 3712 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3713*) 3714 ac_count=0 3715 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3716 while : 3717 do 3718 cat "conftest.in" "conftest.in" >"conftest.tmp" 3719 mv "conftest.tmp" "conftest.in" 3720 cp "conftest.in" "conftest.nl" 3721 echo 'EGREP' >> "conftest.nl" 3722 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3724 ac_count=`expr $ac_count + 1` 3725 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3726 # Best one so far, save it but keep looking for a better one 3727 ac_cv_path_EGREP="$ac_path_EGREP" 3728 ac_path_EGREP_max=$ac_count 3729 fi 3730 # 10*(2^10) chars as input seems more than enough 3731 test $ac_count -gt 10 && break 3732 done 3733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3734esac 3735 3736 3737 $ac_path_EGREP_found && break 3 3738 done 3739done 3740 3741done 3742IFS=$as_save_IFS 3743 3744 3745fi 3746 3747EGREP="$ac_cv_path_EGREP" 3748if test -z "$EGREP"; then 3749 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3750echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3751 { (exit 1); exit 1; }; } 3752fi 3753 3754else 3755 ac_cv_path_EGREP=$EGREP 3756fi 3757 3758 3759 fi 3760fi 3761{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3762echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3763 EGREP="$ac_cv_path_EGREP" 3764 3765 3766{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3767echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3768if test "${ac_cv_header_stdc+set}" = set; then 3769 echo $ECHO_N "(cached) $ECHO_C" >&6 3770else 3771 cat >conftest.$ac_ext <<_ACEOF 3772/* confdefs.h. */ 3773_ACEOF 3774cat confdefs.h >>conftest.$ac_ext 3775cat >>conftest.$ac_ext <<_ACEOF 3776/* end confdefs.h. */ 3777#include <stdlib.h> 3778#include <stdarg.h> 3779#include <string.h> 3780#include <float.h> 3781 3782int 3783main () 3784{ 3785 3786 ; 3787 return 0; 3788} 3789_ACEOF 3790rm -f conftest.$ac_objext 3791if { (ac_try="$ac_compile" 3792case "(($ac_try" in 3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3794 *) ac_try_echo=$ac_try;; 3795esac 3796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3797 (eval "$ac_compile") 2>conftest.er1 3798 ac_status=$? 3799 grep -v '^ *+' conftest.er1 >conftest.err 3800 rm -f conftest.er1 3801 cat conftest.err >&5 3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3803 (exit $ac_status); } && { 3804 test -z "$ac_c_werror_flag" || 3805 test ! -s conftest.err 3806 } && test -s conftest.$ac_objext; then 3807 ac_cv_header_stdc=yes 3808else 3809 echo "$as_me: failed program was:" >&5 3810sed 's/^/| /' conftest.$ac_ext >&5 3811 3812 ac_cv_header_stdc=no 3813fi 3814 3815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3816 3817if test $ac_cv_header_stdc = yes; then 3818 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3819 cat >conftest.$ac_ext <<_ACEOF 3820/* confdefs.h. */ 3821_ACEOF 3822cat confdefs.h >>conftest.$ac_ext 3823cat >>conftest.$ac_ext <<_ACEOF 3824/* end confdefs.h. */ 3825#include <string.h> 3826 3827_ACEOF 3828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3829 $EGREP "memchr" >/dev/null 2>&1; then 3830 : 3831else 3832 ac_cv_header_stdc=no 3833fi 3834rm -f -r conftest* 3835 3836fi 3837 3838if test $ac_cv_header_stdc = yes; then 3839 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3840 cat >conftest.$ac_ext <<_ACEOF 3841/* confdefs.h. */ 3842_ACEOF 3843cat confdefs.h >>conftest.$ac_ext 3844cat >>conftest.$ac_ext <<_ACEOF 3845/* end confdefs.h. */ 3846#include <stdlib.h> 3847 3848_ACEOF 3849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3850 $EGREP "free" >/dev/null 2>&1; then 3851 : 3852else 3853 ac_cv_header_stdc=no 3854fi 3855rm -f -r conftest* 3856 3857fi 3858 3859if test $ac_cv_header_stdc = yes; then 3860 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3861 if test "$cross_compiling" = yes; then 3862 : 3863else 3864 cat >conftest.$ac_ext <<_ACEOF 3865/* confdefs.h. */ 3866_ACEOF 3867cat confdefs.h >>conftest.$ac_ext 3868cat >>conftest.$ac_ext <<_ACEOF 3869/* end confdefs.h. */ 3870#include <ctype.h> 3871#include <stdlib.h> 3872#if ((' ' & 0x0FF) == 0x020) 3873# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3874# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3875#else 3876# define ISLOWER(c) \ 3877 (('a' <= (c) && (c) <= 'i') \ 3878 || ('j' <= (c) && (c) <= 'r') \ 3879 || ('s' <= (c) && (c) <= 'z')) 3880# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3881#endif 3882 3883#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3884int 3885main () 3886{ 3887 int i; 3888 for (i = 0; i < 256; i++) 3889 if (XOR (islower (i), ISLOWER (i)) 3890 || toupper (i) != TOUPPER (i)) 3891 return 2; 3892 return 0; 3893} 3894_ACEOF 3895rm -f conftest$ac_exeext 3896if { (ac_try="$ac_link" 3897case "(($ac_try" in 3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3899 *) ac_try_echo=$ac_try;; 3900esac 3901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3902 (eval "$ac_link") 2>&5 3903 ac_status=$? 3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3906 { (case "(($ac_try" in 3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3908 *) ac_try_echo=$ac_try;; 3909esac 3910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3911 (eval "$ac_try") 2>&5 3912 ac_status=$? 3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3914 (exit $ac_status); }; }; then 3915 : 3916else 3917 echo "$as_me: program exited with status $ac_status" >&5 3918echo "$as_me: failed program was:" >&5 3919sed 's/^/| /' conftest.$ac_ext >&5 3920 3921( exit $ac_status ) 3922ac_cv_header_stdc=no 3923fi 3924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3925fi 3926 3927 3928fi 3929fi 3930{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3931echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3932if test $ac_cv_header_stdc = yes; then 3933 3934cat >>confdefs.h <<\_ACEOF 3935#define STDC_HEADERS 1 3936_ACEOF 3937 3938fi 3939 3940# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3951 inttypes.h stdint.h unistd.h 3952do 3953as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3954{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3957 echo $ECHO_N "(cached) $ECHO_C" >&6 3958else 3959 cat >conftest.$ac_ext <<_ACEOF 3960/* confdefs.h. */ 3961_ACEOF 3962cat confdefs.h >>conftest.$ac_ext 3963cat >>conftest.$ac_ext <<_ACEOF 3964/* end confdefs.h. */ 3965$ac_includes_default 3966 3967#include <$ac_header> 3968_ACEOF 3969rm -f conftest.$ac_objext 3970if { (ac_try="$ac_compile" 3971case "(($ac_try" in 3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3973 *) ac_try_echo=$ac_try;; 3974esac 3975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3976 (eval "$ac_compile") 2>conftest.er1 3977 ac_status=$? 3978 grep -v '^ *+' conftest.er1 >conftest.err 3979 rm -f conftest.er1 3980 cat conftest.err >&5 3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3982 (exit $ac_status); } && { 3983 test -z "$ac_c_werror_flag" || 3984 test ! -s conftest.err 3985 } && test -s conftest.$ac_objext; then 3986 eval "$as_ac_Header=yes" 3987else 3988 echo "$as_me: failed program was:" >&5 3989sed 's/^/| /' conftest.$ac_ext >&5 3990 3991 eval "$as_ac_Header=no" 3992fi 3993 3994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3995fi 3996ac_res=`eval echo '${'$as_ac_Header'}'` 3997 { echo "$as_me:$LINENO: result: $ac_res" >&5 3998echo "${ECHO_T}$ac_res" >&6; } 3999if test `eval echo '${'$as_ac_Header'}'` = yes; then 4000 cat >>confdefs.h <<_ACEOF 4001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4002_ACEOF 4003 4004fi 4005 4006done 4007 4008 4009 4010 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4011 4012 4013 #------------------------------------------------------------------------ 4014 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4015 # It makes compiling go faster. (This is only a performance feature.) 4016 #------------------------------------------------------------------------ 4017 4018 if test -z "$no_pipe" -a -n "$GCC"; then 4019 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4020echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4021if test "${tcl_cv_cc_pipe+set}" = set; then 4022 echo $ECHO_N "(cached) $ECHO_C" >&6 4023else 4024 4025 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4026 cat >conftest.$ac_ext <<_ACEOF 4027/* confdefs.h. */ 4028_ACEOF 4029cat confdefs.h >>conftest.$ac_ext 4030cat >>conftest.$ac_ext <<_ACEOF 4031/* end confdefs.h. */ 4032 4033int 4034main () 4035{ 4036 4037 ; 4038 return 0; 4039} 4040_ACEOF 4041rm -f conftest.$ac_objext 4042if { (ac_try="$ac_compile" 4043case "(($ac_try" in 4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4045 *) ac_try_echo=$ac_try;; 4046esac 4047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4048 (eval "$ac_compile") 2>conftest.er1 4049 ac_status=$? 4050 grep -v '^ *+' conftest.er1 >conftest.err 4051 rm -f conftest.er1 4052 cat conftest.err >&5 4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4054 (exit $ac_status); } && { 4055 test -z "$ac_c_werror_flag" || 4056 test ! -s conftest.err 4057 } && test -s conftest.$ac_objext; then 4058 tcl_cv_cc_pipe=yes 4059else 4060 echo "$as_me: failed program was:" >&5 4061sed 's/^/| /' conftest.$ac_ext >&5 4062 4063 tcl_cv_cc_pipe=no 4064fi 4065 4066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4067 CFLAGS=$hold_cflags 4068fi 4069{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4070echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4071 if test $tcl_cv_cc_pipe = yes; then 4072 CFLAGS="$CFLAGS -pipe" 4073 fi 4074 fi 4075 4076 #-------------------------------------------------------------------- 4077 # Common compiler flag setup 4078 #-------------------------------------------------------------------- 4079 4080 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4081echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4082if test "${ac_cv_c_bigendian+set}" = set; then 4083 echo $ECHO_N "(cached) $ECHO_C" >&6 4084else 4085 # See if sys/param.h defines the BYTE_ORDER macro. 4086cat >conftest.$ac_ext <<_ACEOF 4087/* confdefs.h. */ 4088_ACEOF 4089cat confdefs.h >>conftest.$ac_ext 4090cat >>conftest.$ac_ext <<_ACEOF 4091/* end confdefs.h. */ 4092#include <sys/types.h> 4093#include <sys/param.h> 4094 4095int 4096main () 4097{ 4098#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4099 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4100 bogus endian macros 4101#endif 4102 4103 ; 4104 return 0; 4105} 4106_ACEOF 4107rm -f conftest.$ac_objext 4108if { (ac_try="$ac_compile" 4109case "(($ac_try" in 4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4111 *) ac_try_echo=$ac_try;; 4112esac 4113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4114 (eval "$ac_compile") 2>conftest.er1 4115 ac_status=$? 4116 grep -v '^ *+' conftest.er1 >conftest.err 4117 rm -f conftest.er1 4118 cat conftest.err >&5 4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4120 (exit $ac_status); } && { 4121 test -z "$ac_c_werror_flag" || 4122 test ! -s conftest.err 4123 } && test -s conftest.$ac_objext; then 4124 # It does; now see whether it defined to BIG_ENDIAN or not. 4125cat >conftest.$ac_ext <<_ACEOF 4126/* confdefs.h. */ 4127_ACEOF 4128cat confdefs.h >>conftest.$ac_ext 4129cat >>conftest.$ac_ext <<_ACEOF 4130/* end confdefs.h. */ 4131#include <sys/types.h> 4132#include <sys/param.h> 4133 4134int 4135main () 4136{ 4137#if BYTE_ORDER != BIG_ENDIAN 4138 not big endian 4139#endif 4140 4141 ; 4142 return 0; 4143} 4144_ACEOF 4145rm -f conftest.$ac_objext 4146if { (ac_try="$ac_compile" 4147case "(($ac_try" in 4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4149 *) ac_try_echo=$ac_try;; 4150esac 4151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4152 (eval "$ac_compile") 2>conftest.er1 4153 ac_status=$? 4154 grep -v '^ *+' conftest.er1 >conftest.err 4155 rm -f conftest.er1 4156 cat conftest.err >&5 4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4158 (exit $ac_status); } && { 4159 test -z "$ac_c_werror_flag" || 4160 test ! -s conftest.err 4161 } && test -s conftest.$ac_objext; then 4162 ac_cv_c_bigendian=yes 4163else 4164 echo "$as_me: failed program was:" >&5 4165sed 's/^/| /' conftest.$ac_ext >&5 4166 4167 ac_cv_c_bigendian=no 4168fi 4169 4170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4171else 4172 echo "$as_me: failed program was:" >&5 4173sed 's/^/| /' conftest.$ac_ext >&5 4174 4175 # It does not; compile a test program. 4176if test "$cross_compiling" = yes; then 4177 # try to guess the endianness by grepping values into an object file 4178 ac_cv_c_bigendian=unknown 4179 cat >conftest.$ac_ext <<_ACEOF 4180/* confdefs.h. */ 4181_ACEOF 4182cat confdefs.h >>conftest.$ac_ext 4183cat >>conftest.$ac_ext <<_ACEOF 4184/* end confdefs.h. */ 4185short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4186short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4187void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4188short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4189short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4190void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4191int 4192main () 4193{ 4194 _ascii (); _ebcdic (); 4195 ; 4196 return 0; 4197} 4198_ACEOF 4199rm -f conftest.$ac_objext 4200if { (ac_try="$ac_compile" 4201case "(($ac_try" in 4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4203 *) ac_try_echo=$ac_try;; 4204esac 4205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4206 (eval "$ac_compile") 2>conftest.er1 4207 ac_status=$? 4208 grep -v '^ *+' conftest.er1 >conftest.err 4209 rm -f conftest.er1 4210 cat conftest.err >&5 4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4212 (exit $ac_status); } && { 4213 test -z "$ac_c_werror_flag" || 4214 test ! -s conftest.err 4215 } && test -s conftest.$ac_objext; then 4216 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4217 ac_cv_c_bigendian=yes 4218fi 4219if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4220 if test "$ac_cv_c_bigendian" = unknown; then 4221 ac_cv_c_bigendian=no 4222 else 4223 # finding both strings is unlikely to happen, but who knows? 4224 ac_cv_c_bigendian=unknown 4225 fi 4226fi 4227else 4228 echo "$as_me: failed program was:" >&5 4229sed 's/^/| /' conftest.$ac_ext >&5 4230 4231 4232fi 4233 4234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4235else 4236 cat >conftest.$ac_ext <<_ACEOF 4237/* confdefs.h. */ 4238_ACEOF 4239cat confdefs.h >>conftest.$ac_ext 4240cat >>conftest.$ac_ext <<_ACEOF 4241/* end confdefs.h. */ 4242$ac_includes_default 4243int 4244main () 4245{ 4246 4247 /* Are we little or big endian? From Harbison&Steele. */ 4248 union 4249 { 4250 long int l; 4251 char c[sizeof (long int)]; 4252 } u; 4253 u.l = 1; 4254 return u.c[sizeof (long int) - 1] == 1; 4255 4256 ; 4257 return 0; 4258} 4259_ACEOF 4260rm -f conftest$ac_exeext 4261if { (ac_try="$ac_link" 4262case "(($ac_try" in 4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4264 *) ac_try_echo=$ac_try;; 4265esac 4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4267 (eval "$ac_link") 2>&5 4268 ac_status=$? 4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4271 { (case "(($ac_try" in 4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4273 *) ac_try_echo=$ac_try;; 4274esac 4275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4276 (eval "$ac_try") 2>&5 4277 ac_status=$? 4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4279 (exit $ac_status); }; }; then 4280 ac_cv_c_bigendian=no 4281else 4282 echo "$as_me: program exited with status $ac_status" >&5 4283echo "$as_me: failed program was:" >&5 4284sed 's/^/| /' conftest.$ac_ext >&5 4285 4286( exit $ac_status ) 4287ac_cv_c_bigendian=yes 4288fi 4289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4290fi 4291 4292 4293fi 4294 4295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4296fi 4297{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4298echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4299case $ac_cv_c_bigendian in 4300 yes) 4301 4302cat >>confdefs.h <<\_ACEOF 4303#define WORDS_BIGENDIAN 1 4304_ACEOF 4305 ;; 4306 no) 4307 ;; 4308 *) 4309 { { echo "$as_me:$LINENO: error: unknown endianness 4310presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4311echo "$as_me: error: unknown endianness 4312presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4313 { (exit 1); exit 1; }; } ;; 4314esac 4315 4316 if test "${TEA_PLATFORM}" = "unix" ; then 4317 4318 #-------------------------------------------------------------------- 4319 # On a few very rare systems, all of the libm.a stuff is 4320 # already in libc.a. Set compiler flags accordingly. 4321 # Also, Linux requires the "ieee" library for math to work 4322 # right (and it must appear before "-lm"). 4323 #-------------------------------------------------------------------- 4324 4325 { echo "$as_me:$LINENO: checking for sin" >&5 4326echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4327if test "${ac_cv_func_sin+set}" = set; then 4328 echo $ECHO_N "(cached) $ECHO_C" >&6 4329else 4330 cat >conftest.$ac_ext <<_ACEOF 4331/* confdefs.h. */ 4332_ACEOF 4333cat confdefs.h >>conftest.$ac_ext 4334cat >>conftest.$ac_ext <<_ACEOF 4335/* end confdefs.h. */ 4336/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4337 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4338#define sin innocuous_sin 4339 4340/* System header to define __stub macros and hopefully few prototypes, 4341 which can conflict with char sin (); below. 4342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4343 <limits.h> exists even on freestanding compilers. */ 4344 4345#ifdef __STDC__ 4346# include <limits.h> 4347#else 4348# include <assert.h> 4349#endif 4350 4351#undef sin 4352 4353/* Override any GCC internal prototype to avoid an error. 4354 Use char because int might match the return type of a GCC 4355 builtin and then its argument prototype would still apply. */ 4356#ifdef __cplusplus 4357extern "C" 4358#endif 4359char sin (); 4360/* The GNU C library defines this for functions which it implements 4361 to always fail with ENOSYS. Some functions are actually named 4362 something starting with __ and the normal name is an alias. */ 4363#if defined __stub_sin || defined __stub___sin 4364choke me 4365#endif 4366 4367int 4368main () 4369{ 4370return sin (); 4371 ; 4372 return 0; 4373} 4374_ACEOF 4375rm -f conftest.$ac_objext conftest$ac_exeext 4376if { (ac_try="$ac_link" 4377case "(($ac_try" in 4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4379 *) ac_try_echo=$ac_try;; 4380esac 4381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4382 (eval "$ac_link") 2>conftest.er1 4383 ac_status=$? 4384 grep -v '^ *+' conftest.er1 >conftest.err 4385 rm -f conftest.er1 4386 cat conftest.err >&5 4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4388 (exit $ac_status); } && { 4389 test -z "$ac_c_werror_flag" || 4390 test ! -s conftest.err 4391 } && test -s conftest$ac_exeext && 4392 $as_test_x conftest$ac_exeext; then 4393 ac_cv_func_sin=yes 4394else 4395 echo "$as_me: failed program was:" >&5 4396sed 's/^/| /' conftest.$ac_ext >&5 4397 4398 ac_cv_func_sin=no 4399fi 4400 4401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4402 conftest$ac_exeext conftest.$ac_ext 4403fi 4404{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4405echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4406if test $ac_cv_func_sin = yes; then 4407 MATH_LIBS="" 4408else 4409 MATH_LIBS="-lm" 4410fi 4411 4412 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4413echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4414if test "${ac_cv_lib_ieee_main+set}" = set; then 4415 echo $ECHO_N "(cached) $ECHO_C" >&6 4416else 4417 ac_check_lib_save_LIBS=$LIBS 4418LIBS="-lieee $LIBS" 4419cat >conftest.$ac_ext <<_ACEOF 4420/* confdefs.h. */ 4421_ACEOF 4422cat confdefs.h >>conftest.$ac_ext 4423cat >>conftest.$ac_ext <<_ACEOF 4424/* end confdefs.h. */ 4425 4426 4427int 4428main () 4429{ 4430return main (); 4431 ; 4432 return 0; 4433} 4434_ACEOF 4435rm -f conftest.$ac_objext conftest$ac_exeext 4436if { (ac_try="$ac_link" 4437case "(($ac_try" in 4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4439 *) ac_try_echo=$ac_try;; 4440esac 4441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4442 (eval "$ac_link") 2>conftest.er1 4443 ac_status=$? 4444 grep -v '^ *+' conftest.er1 >conftest.err 4445 rm -f conftest.er1 4446 cat conftest.err >&5 4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4448 (exit $ac_status); } && { 4449 test -z "$ac_c_werror_flag" || 4450 test ! -s conftest.err 4451 } && test -s conftest$ac_exeext && 4452 $as_test_x conftest$ac_exeext; then 4453 ac_cv_lib_ieee_main=yes 4454else 4455 echo "$as_me: failed program was:" >&5 4456sed 's/^/| /' conftest.$ac_ext >&5 4457 4458 ac_cv_lib_ieee_main=no 4459fi 4460 4461rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4462 conftest$ac_exeext conftest.$ac_ext 4463LIBS=$ac_check_lib_save_LIBS 4464fi 4465{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4466echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4467if test $ac_cv_lib_ieee_main = yes; then 4468 MATH_LIBS="-lieee $MATH_LIBS" 4469fi 4470 4471 4472 #-------------------------------------------------------------------- 4473 # Interactive UNIX requires -linet instead of -lsocket, plus it 4474 # needs net/errno.h to define the socket-related error codes. 4475 #-------------------------------------------------------------------- 4476 4477 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4478echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4479if test "${ac_cv_lib_inet_main+set}" = set; then 4480 echo $ECHO_N "(cached) $ECHO_C" >&6 4481else 4482 ac_check_lib_save_LIBS=$LIBS 4483LIBS="-linet $LIBS" 4484cat >conftest.$ac_ext <<_ACEOF 4485/* confdefs.h. */ 4486_ACEOF 4487cat confdefs.h >>conftest.$ac_ext 4488cat >>conftest.$ac_ext <<_ACEOF 4489/* end confdefs.h. */ 4490 4491 4492int 4493main () 4494{ 4495return main (); 4496 ; 4497 return 0; 4498} 4499_ACEOF 4500rm -f conftest.$ac_objext conftest$ac_exeext 4501if { (ac_try="$ac_link" 4502case "(($ac_try" in 4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4504 *) ac_try_echo=$ac_try;; 4505esac 4506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4507 (eval "$ac_link") 2>conftest.er1 4508 ac_status=$? 4509 grep -v '^ *+' conftest.er1 >conftest.err 4510 rm -f conftest.er1 4511 cat conftest.err >&5 4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4513 (exit $ac_status); } && { 4514 test -z "$ac_c_werror_flag" || 4515 test ! -s conftest.err 4516 } && test -s conftest$ac_exeext && 4517 $as_test_x conftest$ac_exeext; then 4518 ac_cv_lib_inet_main=yes 4519else 4520 echo "$as_me: failed program was:" >&5 4521sed 's/^/| /' conftest.$ac_ext >&5 4522 4523 ac_cv_lib_inet_main=no 4524fi 4525 4526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4527 conftest$ac_exeext conftest.$ac_ext 4528LIBS=$ac_check_lib_save_LIBS 4529fi 4530{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4531echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4532if test $ac_cv_lib_inet_main = yes; then 4533 LIBS="$LIBS -linet" 4534fi 4535 4536 if test "${ac_cv_header_net_errno_h+set}" = set; then 4537 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4538echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4539if test "${ac_cv_header_net_errno_h+set}" = set; then 4540 echo $ECHO_N "(cached) $ECHO_C" >&6 4541fi 4542{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4543echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4544else 4545 # Is the header compilable? 4546{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4547echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4548cat >conftest.$ac_ext <<_ACEOF 4549/* confdefs.h. */ 4550_ACEOF 4551cat confdefs.h >>conftest.$ac_ext 4552cat >>conftest.$ac_ext <<_ACEOF 4553/* end confdefs.h. */ 4554$ac_includes_default 4555#include <net/errno.h> 4556_ACEOF 4557rm -f conftest.$ac_objext 4558if { (ac_try="$ac_compile" 4559case "(($ac_try" in 4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4561 *) ac_try_echo=$ac_try;; 4562esac 4563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4564 (eval "$ac_compile") 2>conftest.er1 4565 ac_status=$? 4566 grep -v '^ *+' conftest.er1 >conftest.err 4567 rm -f conftest.er1 4568 cat conftest.err >&5 4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4570 (exit $ac_status); } && { 4571 test -z "$ac_c_werror_flag" || 4572 test ! -s conftest.err 4573 } && test -s conftest.$ac_objext; then 4574 ac_header_compiler=yes 4575else 4576 echo "$as_me: failed program was:" >&5 4577sed 's/^/| /' conftest.$ac_ext >&5 4578 4579 ac_header_compiler=no 4580fi 4581 4582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4583{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4584echo "${ECHO_T}$ac_header_compiler" >&6; } 4585 4586# Is the header present? 4587{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4588echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4589cat >conftest.$ac_ext <<_ACEOF 4590/* confdefs.h. */ 4591_ACEOF 4592cat confdefs.h >>conftest.$ac_ext 4593cat >>conftest.$ac_ext <<_ACEOF 4594/* end confdefs.h. */ 4595#include <net/errno.h> 4596_ACEOF 4597if { (ac_try="$ac_cpp conftest.$ac_ext" 4598case "(($ac_try" in 4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4600 *) ac_try_echo=$ac_try;; 4601esac 4602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4604 ac_status=$? 4605 grep -v '^ *+' conftest.er1 >conftest.err 4606 rm -f conftest.er1 4607 cat conftest.err >&5 4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4609 (exit $ac_status); } >/dev/null && { 4610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4611 test ! -s conftest.err 4612 }; then 4613 ac_header_preproc=yes 4614else 4615 echo "$as_me: failed program was:" >&5 4616sed 's/^/| /' conftest.$ac_ext >&5 4617 4618 ac_header_preproc=no 4619fi 4620 4621rm -f conftest.err conftest.$ac_ext 4622{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4623echo "${ECHO_T}$ac_header_preproc" >&6; } 4624 4625# So? What about this header? 4626case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4627 yes:no: ) 4628 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4629echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4630 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4631echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4632 ac_header_preproc=yes 4633 ;; 4634 no:yes:* ) 4635 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4636echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4637 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4638echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4639 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4640echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4641 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4642echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4643 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4644echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4645 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4646echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4647 4648 ;; 4649esac 4650{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4651echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4652if test "${ac_cv_header_net_errno_h+set}" = set; then 4653 echo $ECHO_N "(cached) $ECHO_C" >&6 4654else 4655 ac_cv_header_net_errno_h=$ac_header_preproc 4656fi 4657{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4658echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4659 4660fi 4661if test $ac_cv_header_net_errno_h = yes; then 4662 4663 4664cat >>confdefs.h <<\_ACEOF 4665#define HAVE_NET_ERRNO_H 1 4666_ACEOF 4667 4668fi 4669 4670 4671 4672 #-------------------------------------------------------------------- 4673 # Check for the existence of the -lsocket and -lnsl libraries. 4674 # The order here is important, so that they end up in the right 4675 # order in the command line generated by make. Here are some 4676 # special considerations: 4677 # 1. Use "connect" and "accept" to check for -lsocket, and 4678 # "gethostbyname" to check for -lnsl. 4679 # 2. Use each function name only once: can't redo a check because 4680 # autoconf caches the results of the last check and won't redo it. 4681 # 3. Use -lnsl and -lsocket only if they supply procedures that 4682 # aren't already present in the normal libraries. This is because 4683 # IRIX 5.2 has libraries, but they aren't needed and they're 4684 # bogus: they goof up name resolution if used. 4685 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4686 # To get around this problem, check for both libraries together 4687 # if -lsocket doesn't work by itself. 4688 #-------------------------------------------------------------------- 4689 4690 tcl_checkBoth=0 4691 { echo "$as_me:$LINENO: checking for connect" >&5 4692echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4693if test "${ac_cv_func_connect+set}" = set; then 4694 echo $ECHO_N "(cached) $ECHO_C" >&6 4695else 4696 cat >conftest.$ac_ext <<_ACEOF 4697/* confdefs.h. */ 4698_ACEOF 4699cat confdefs.h >>conftest.$ac_ext 4700cat >>conftest.$ac_ext <<_ACEOF 4701/* end confdefs.h. */ 4702/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4703 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4704#define connect innocuous_connect 4705 4706/* System header to define __stub macros and hopefully few prototypes, 4707 which can conflict with char connect (); below. 4708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4709 <limits.h> exists even on freestanding compilers. */ 4710 4711#ifdef __STDC__ 4712# include <limits.h> 4713#else 4714# include <assert.h> 4715#endif 4716 4717#undef connect 4718 4719/* Override any GCC internal prototype to avoid an error. 4720 Use char because int might match the return type of a GCC 4721 builtin and then its argument prototype would still apply. */ 4722#ifdef __cplusplus 4723extern "C" 4724#endif 4725char connect (); 4726/* The GNU C library defines this for functions which it implements 4727 to always fail with ENOSYS. Some functions are actually named 4728 something starting with __ and the normal name is an alias. */ 4729#if defined __stub_connect || defined __stub___connect 4730choke me 4731#endif 4732 4733int 4734main () 4735{ 4736return connect (); 4737 ; 4738 return 0; 4739} 4740_ACEOF 4741rm -f conftest.$ac_objext conftest$ac_exeext 4742if { (ac_try="$ac_link" 4743case "(($ac_try" in 4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4745 *) ac_try_echo=$ac_try;; 4746esac 4747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4748 (eval "$ac_link") 2>conftest.er1 4749 ac_status=$? 4750 grep -v '^ *+' conftest.er1 >conftest.err 4751 rm -f conftest.er1 4752 cat conftest.err >&5 4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4754 (exit $ac_status); } && { 4755 test -z "$ac_c_werror_flag" || 4756 test ! -s conftest.err 4757 } && test -s conftest$ac_exeext && 4758 $as_test_x conftest$ac_exeext; then 4759 ac_cv_func_connect=yes 4760else 4761 echo "$as_me: failed program was:" >&5 4762sed 's/^/| /' conftest.$ac_ext >&5 4763 4764 ac_cv_func_connect=no 4765fi 4766 4767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4768 conftest$ac_exeext conftest.$ac_ext 4769fi 4770{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4771echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4772if test $ac_cv_func_connect = yes; then 4773 tcl_checkSocket=0 4774else 4775 tcl_checkSocket=1 4776fi 4777 4778 if test "$tcl_checkSocket" = 1; then 4779 { echo "$as_me:$LINENO: checking for setsockopt" >&5 4780echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 4781if test "${ac_cv_func_setsockopt+set}" = set; then 4782 echo $ECHO_N "(cached) $ECHO_C" >&6 4783else 4784 cat >conftest.$ac_ext <<_ACEOF 4785/* confdefs.h. */ 4786_ACEOF 4787cat confdefs.h >>conftest.$ac_ext 4788cat >>conftest.$ac_ext <<_ACEOF 4789/* end confdefs.h. */ 4790/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4791 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4792#define setsockopt innocuous_setsockopt 4793 4794/* System header to define __stub macros and hopefully few prototypes, 4795 which can conflict with char setsockopt (); below. 4796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4797 <limits.h> exists even on freestanding compilers. */ 4798 4799#ifdef __STDC__ 4800# include <limits.h> 4801#else 4802# include <assert.h> 4803#endif 4804 4805#undef setsockopt 4806 4807/* Override any GCC internal prototype to avoid an error. 4808 Use char because int might match the return type of a GCC 4809 builtin and then its argument prototype would still apply. */ 4810#ifdef __cplusplus 4811extern "C" 4812#endif 4813char setsockopt (); 4814/* The GNU C library defines this for functions which it implements 4815 to always fail with ENOSYS. Some functions are actually named 4816 something starting with __ and the normal name is an alias. */ 4817#if defined __stub_setsockopt || defined __stub___setsockopt 4818choke me 4819#endif 4820 4821int 4822main () 4823{ 4824return setsockopt (); 4825 ; 4826 return 0; 4827} 4828_ACEOF 4829rm -f conftest.$ac_objext conftest$ac_exeext 4830if { (ac_try="$ac_link" 4831case "(($ac_try" in 4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4833 *) ac_try_echo=$ac_try;; 4834esac 4835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4836 (eval "$ac_link") 2>conftest.er1 4837 ac_status=$? 4838 grep -v '^ *+' conftest.er1 >conftest.err 4839 rm -f conftest.er1 4840 cat conftest.err >&5 4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4842 (exit $ac_status); } && { 4843 test -z "$ac_c_werror_flag" || 4844 test ! -s conftest.err 4845 } && test -s conftest$ac_exeext && 4846 $as_test_x conftest$ac_exeext; then 4847 ac_cv_func_setsockopt=yes 4848else 4849 echo "$as_me: failed program was:" >&5 4850sed 's/^/| /' conftest.$ac_ext >&5 4851 4852 ac_cv_func_setsockopt=no 4853fi 4854 4855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4856 conftest$ac_exeext conftest.$ac_ext 4857fi 4858{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4859echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 4860if test $ac_cv_func_setsockopt = yes; then 4861 : 4862else 4863 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4864echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 4865if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4866 echo $ECHO_N "(cached) $ECHO_C" >&6 4867else 4868 ac_check_lib_save_LIBS=$LIBS 4869LIBS="-lsocket $LIBS" 4870cat >conftest.$ac_ext <<_ACEOF 4871/* confdefs.h. */ 4872_ACEOF 4873cat confdefs.h >>conftest.$ac_ext 4874cat >>conftest.$ac_ext <<_ACEOF 4875/* end confdefs.h. */ 4876 4877/* Override any GCC internal prototype to avoid an error. 4878 Use char because int might match the return type of a GCC 4879 builtin and then its argument prototype would still apply. */ 4880#ifdef __cplusplus 4881extern "C" 4882#endif 4883char setsockopt (); 4884int 4885main () 4886{ 4887return setsockopt (); 4888 ; 4889 return 0; 4890} 4891_ACEOF 4892rm -f conftest.$ac_objext conftest$ac_exeext 4893if { (ac_try="$ac_link" 4894case "(($ac_try" in 4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4896 *) ac_try_echo=$ac_try;; 4897esac 4898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4899 (eval "$ac_link") 2>conftest.er1 4900 ac_status=$? 4901 grep -v '^ *+' conftest.er1 >conftest.err 4902 rm -f conftest.er1 4903 cat conftest.err >&5 4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4905 (exit $ac_status); } && { 4906 test -z "$ac_c_werror_flag" || 4907 test ! -s conftest.err 4908 } && test -s conftest$ac_exeext && 4909 $as_test_x conftest$ac_exeext; then 4910 ac_cv_lib_socket_setsockopt=yes 4911else 4912 echo "$as_me: failed program was:" >&5 4913sed 's/^/| /' conftest.$ac_ext >&5 4914 4915 ac_cv_lib_socket_setsockopt=no 4916fi 4917 4918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4919 conftest$ac_exeext conftest.$ac_ext 4920LIBS=$ac_check_lib_save_LIBS 4921fi 4922{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4923echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 4924if test $ac_cv_lib_socket_setsockopt = yes; then 4925 LIBS="$LIBS -lsocket" 4926else 4927 tcl_checkBoth=1 4928fi 4929 4930fi 4931 4932 fi 4933 if test "$tcl_checkBoth" = 1; then 4934 tk_oldLibs=$LIBS 4935 LIBS="$LIBS -lsocket -lnsl" 4936 { echo "$as_me:$LINENO: checking for accept" >&5 4937echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 4938if test "${ac_cv_func_accept+set}" = set; then 4939 echo $ECHO_N "(cached) $ECHO_C" >&6 4940else 4941 cat >conftest.$ac_ext <<_ACEOF 4942/* confdefs.h. */ 4943_ACEOF 4944cat confdefs.h >>conftest.$ac_ext 4945cat >>conftest.$ac_ext <<_ACEOF 4946/* end confdefs.h. */ 4947/* Define accept to an innocuous variant, in case <limits.h> declares accept. 4948 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4949#define accept innocuous_accept 4950 4951/* System header to define __stub macros and hopefully few prototypes, 4952 which can conflict with char accept (); below. 4953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4954 <limits.h> exists even on freestanding compilers. */ 4955 4956#ifdef __STDC__ 4957# include <limits.h> 4958#else 4959# include <assert.h> 4960#endif 4961 4962#undef accept 4963 4964/* Override any GCC internal prototype to avoid an error. 4965 Use char because int might match the return type of a GCC 4966 builtin and then its argument prototype would still apply. */ 4967#ifdef __cplusplus 4968extern "C" 4969#endif 4970char accept (); 4971/* The GNU C library defines this for functions which it implements 4972 to always fail with ENOSYS. Some functions are actually named 4973 something starting with __ and the normal name is an alias. */ 4974#if defined __stub_accept || defined __stub___accept 4975choke me 4976#endif 4977 4978int 4979main () 4980{ 4981return accept (); 4982 ; 4983 return 0; 4984} 4985_ACEOF 4986rm -f conftest.$ac_objext conftest$ac_exeext 4987if { (ac_try="$ac_link" 4988case "(($ac_try" in 4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4990 *) ac_try_echo=$ac_try;; 4991esac 4992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4993 (eval "$ac_link") 2>conftest.er1 4994 ac_status=$? 4995 grep -v '^ *+' conftest.er1 >conftest.err 4996 rm -f conftest.er1 4997 cat conftest.err >&5 4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4999 (exit $ac_status); } && { 5000 test -z "$ac_c_werror_flag" || 5001 test ! -s conftest.err 5002 } && test -s conftest$ac_exeext && 5003 $as_test_x conftest$ac_exeext; then 5004 ac_cv_func_accept=yes 5005else 5006 echo "$as_me: failed program was:" >&5 5007sed 's/^/| /' conftest.$ac_ext >&5 5008 5009 ac_cv_func_accept=no 5010fi 5011 5012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5013 conftest$ac_exeext conftest.$ac_ext 5014fi 5015{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5016echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5017if test $ac_cv_func_accept = yes; then 5018 tcl_checkNsl=0 5019else 5020 LIBS=$tk_oldLibs 5021fi 5022 5023 fi 5024 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5025echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5026if test "${ac_cv_func_gethostbyname+set}" = set; then 5027 echo $ECHO_N "(cached) $ECHO_C" >&6 5028else 5029 cat >conftest.$ac_ext <<_ACEOF 5030/* confdefs.h. */ 5031_ACEOF 5032cat confdefs.h >>conftest.$ac_ext 5033cat >>conftest.$ac_ext <<_ACEOF 5034/* end confdefs.h. */ 5035/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5036 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5037#define gethostbyname innocuous_gethostbyname 5038 5039/* System header to define __stub macros and hopefully few prototypes, 5040 which can conflict with char gethostbyname (); below. 5041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5042 <limits.h> exists even on freestanding compilers. */ 5043 5044#ifdef __STDC__ 5045# include <limits.h> 5046#else 5047# include <assert.h> 5048#endif 5049 5050#undef gethostbyname 5051 5052/* Override any GCC internal prototype to avoid an error. 5053 Use char because int might match the return type of a GCC 5054 builtin and then its argument prototype would still apply. */ 5055#ifdef __cplusplus 5056extern "C" 5057#endif 5058char gethostbyname (); 5059/* The GNU C library defines this for functions which it implements 5060 to always fail with ENOSYS. Some functions are actually named 5061 something starting with __ and the normal name is an alias. */ 5062#if defined __stub_gethostbyname || defined __stub___gethostbyname 5063choke me 5064#endif 5065 5066int 5067main () 5068{ 5069return gethostbyname (); 5070 ; 5071 return 0; 5072} 5073_ACEOF 5074rm -f conftest.$ac_objext conftest$ac_exeext 5075if { (ac_try="$ac_link" 5076case "(($ac_try" in 5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5078 *) ac_try_echo=$ac_try;; 5079esac 5080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5081 (eval "$ac_link") 2>conftest.er1 5082 ac_status=$? 5083 grep -v '^ *+' conftest.er1 >conftest.err 5084 rm -f conftest.er1 5085 cat conftest.err >&5 5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5087 (exit $ac_status); } && { 5088 test -z "$ac_c_werror_flag" || 5089 test ! -s conftest.err 5090 } && test -s conftest$ac_exeext && 5091 $as_test_x conftest$ac_exeext; then 5092 ac_cv_func_gethostbyname=yes 5093else 5094 echo "$as_me: failed program was:" >&5 5095sed 's/^/| /' conftest.$ac_ext >&5 5096 5097 ac_cv_func_gethostbyname=no 5098fi 5099 5100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5101 conftest$ac_exeext conftest.$ac_ext 5102fi 5103{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5104echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5105if test $ac_cv_func_gethostbyname = yes; then 5106 : 5107else 5108 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5109echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5110if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5111 echo $ECHO_N "(cached) $ECHO_C" >&6 5112else 5113 ac_check_lib_save_LIBS=$LIBS 5114LIBS="-lnsl $LIBS" 5115cat >conftest.$ac_ext <<_ACEOF 5116/* confdefs.h. */ 5117_ACEOF 5118cat confdefs.h >>conftest.$ac_ext 5119cat >>conftest.$ac_ext <<_ACEOF 5120/* end confdefs.h. */ 5121 5122/* Override any GCC internal prototype to avoid an error. 5123 Use char because int might match the return type of a GCC 5124 builtin and then its argument prototype would still apply. */ 5125#ifdef __cplusplus 5126extern "C" 5127#endif 5128char gethostbyname (); 5129int 5130main () 5131{ 5132return gethostbyname (); 5133 ; 5134 return 0; 5135} 5136_ACEOF 5137rm -f conftest.$ac_objext conftest$ac_exeext 5138if { (ac_try="$ac_link" 5139case "(($ac_try" in 5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5141 *) ac_try_echo=$ac_try;; 5142esac 5143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5144 (eval "$ac_link") 2>conftest.er1 5145 ac_status=$? 5146 grep -v '^ *+' conftest.er1 >conftest.err 5147 rm -f conftest.er1 5148 cat conftest.err >&5 5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5150 (exit $ac_status); } && { 5151 test -z "$ac_c_werror_flag" || 5152 test ! -s conftest.err 5153 } && test -s conftest$ac_exeext && 5154 $as_test_x conftest$ac_exeext; then 5155 ac_cv_lib_nsl_gethostbyname=yes 5156else 5157 echo "$as_me: failed program was:" >&5 5158sed 's/^/| /' conftest.$ac_ext >&5 5159 5160 ac_cv_lib_nsl_gethostbyname=no 5161fi 5162 5163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5164 conftest$ac_exeext conftest.$ac_ext 5165LIBS=$ac_check_lib_save_LIBS 5166fi 5167{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5168echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5169if test $ac_cv_lib_nsl_gethostbyname = yes; then 5170 LIBS="$LIBS -lnsl" 5171fi 5172 5173fi 5174 5175 5176 # TEA specific: Don't perform the eval of the libraries here because 5177 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5178 5179 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5180 5181 5182 5183 5184 { echo "$as_me:$LINENO: checking dirent.h" >&5 5185echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5186if test "${tcl_cv_dirent_h+set}" = set; then 5187 echo $ECHO_N "(cached) $ECHO_C" >&6 5188else 5189 5190 cat >conftest.$ac_ext <<_ACEOF 5191/* confdefs.h. */ 5192_ACEOF 5193cat confdefs.h >>conftest.$ac_ext 5194cat >>conftest.$ac_ext <<_ACEOF 5195/* end confdefs.h. */ 5196#include <sys/types.h> 5197#include <dirent.h> 5198int 5199main () 5200{ 5201 5202#ifndef _POSIX_SOURCE 5203# ifdef __Lynx__ 5204 /* 5205 * Generate compilation error to make the test fail: Lynx headers 5206 * are only valid if really in the POSIX environment. 5207 */ 5208 5209 missing_procedure(); 5210# endif 5211#endif 5212DIR *d; 5213struct dirent *entryPtr; 5214char *p; 5215d = opendir("foobar"); 5216entryPtr = readdir(d); 5217p = entryPtr->d_name; 5218closedir(d); 5219 5220 ; 5221 return 0; 5222} 5223_ACEOF 5224rm -f conftest.$ac_objext conftest$ac_exeext 5225if { (ac_try="$ac_link" 5226case "(($ac_try" in 5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5228 *) ac_try_echo=$ac_try;; 5229esac 5230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5231 (eval "$ac_link") 2>conftest.er1 5232 ac_status=$? 5233 grep -v '^ *+' conftest.er1 >conftest.err 5234 rm -f conftest.er1 5235 cat conftest.err >&5 5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5237 (exit $ac_status); } && { 5238 test -z "$ac_c_werror_flag" || 5239 test ! -s conftest.err 5240 } && test -s conftest$ac_exeext && 5241 $as_test_x conftest$ac_exeext; then 5242 tcl_cv_dirent_h=yes 5243else 5244 echo "$as_me: failed program was:" >&5 5245sed 's/^/| /' conftest.$ac_ext >&5 5246 5247 tcl_cv_dirent_h=no 5248fi 5249 5250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5251 conftest$ac_exeext conftest.$ac_ext 5252fi 5253{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5254echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5255 5256 if test $tcl_cv_dirent_h = no; then 5257 5258cat >>confdefs.h <<\_ACEOF 5259#define NO_DIRENT_H 1 5260_ACEOF 5261 5262 fi 5263 5264 # TEA specific: 5265 if test "${ac_cv_header_errno_h+set}" = set; then 5266 { echo "$as_me:$LINENO: checking for errno.h" >&5 5267echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5268if test "${ac_cv_header_errno_h+set}" = set; then 5269 echo $ECHO_N "(cached) $ECHO_C" >&6 5270fi 5271{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5272echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5273else 5274 # Is the header compilable? 5275{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5276echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5277cat >conftest.$ac_ext <<_ACEOF 5278/* confdefs.h. */ 5279_ACEOF 5280cat confdefs.h >>conftest.$ac_ext 5281cat >>conftest.$ac_ext <<_ACEOF 5282/* end confdefs.h. */ 5283$ac_includes_default 5284#include <errno.h> 5285_ACEOF 5286rm -f conftest.$ac_objext 5287if { (ac_try="$ac_compile" 5288case "(($ac_try" in 5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5290 *) ac_try_echo=$ac_try;; 5291esac 5292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5293 (eval "$ac_compile") 2>conftest.er1 5294 ac_status=$? 5295 grep -v '^ *+' conftest.er1 >conftest.err 5296 rm -f conftest.er1 5297 cat conftest.err >&5 5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5299 (exit $ac_status); } && { 5300 test -z "$ac_c_werror_flag" || 5301 test ! -s conftest.err 5302 } && test -s conftest.$ac_objext; then 5303 ac_header_compiler=yes 5304else 5305 echo "$as_me: failed program was:" >&5 5306sed 's/^/| /' conftest.$ac_ext >&5 5307 5308 ac_header_compiler=no 5309fi 5310 5311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5312{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5313echo "${ECHO_T}$ac_header_compiler" >&6; } 5314 5315# Is the header present? 5316{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5317echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5318cat >conftest.$ac_ext <<_ACEOF 5319/* confdefs.h. */ 5320_ACEOF 5321cat confdefs.h >>conftest.$ac_ext 5322cat >>conftest.$ac_ext <<_ACEOF 5323/* end confdefs.h. */ 5324#include <errno.h> 5325_ACEOF 5326if { (ac_try="$ac_cpp conftest.$ac_ext" 5327case "(($ac_try" in 5328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5329 *) ac_try_echo=$ac_try;; 5330esac 5331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5333 ac_status=$? 5334 grep -v '^ *+' conftest.er1 >conftest.err 5335 rm -f conftest.er1 5336 cat conftest.err >&5 5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5338 (exit $ac_status); } >/dev/null && { 5339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5340 test ! -s conftest.err 5341 }; then 5342 ac_header_preproc=yes 5343else 5344 echo "$as_me: failed program was:" >&5 5345sed 's/^/| /' conftest.$ac_ext >&5 5346 5347 ac_header_preproc=no 5348fi 5349 5350rm -f conftest.err conftest.$ac_ext 5351{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5352echo "${ECHO_T}$ac_header_preproc" >&6; } 5353 5354# So? What about this header? 5355case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5356 yes:no: ) 5357 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5358echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5359 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5360echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5361 ac_header_preproc=yes 5362 ;; 5363 no:yes:* ) 5364 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5365echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5366 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5367echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5368 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5369echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5370 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5371echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5372 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5373echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5374 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5375echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5376 5377 ;; 5378esac 5379{ echo "$as_me:$LINENO: checking for errno.h" >&5 5380echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5381if test "${ac_cv_header_errno_h+set}" = set; then 5382 echo $ECHO_N "(cached) $ECHO_C" >&6 5383else 5384 ac_cv_header_errno_h=$ac_header_preproc 5385fi 5386{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5387echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5388 5389fi 5390if test $ac_cv_header_errno_h = yes; then 5391 : 5392else 5393 5394cat >>confdefs.h <<\_ACEOF 5395#define NO_ERRNO_H 1 5396_ACEOF 5397 5398fi 5399 5400 5401 if test "${ac_cv_header_float_h+set}" = set; then 5402 { echo "$as_me:$LINENO: checking for float.h" >&5 5403echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5404if test "${ac_cv_header_float_h+set}" = set; then 5405 echo $ECHO_N "(cached) $ECHO_C" >&6 5406fi 5407{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5408echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5409else 5410 # Is the header compilable? 5411{ echo "$as_me:$LINENO: checking float.h usability" >&5 5412echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5413cat >conftest.$ac_ext <<_ACEOF 5414/* confdefs.h. */ 5415_ACEOF 5416cat confdefs.h >>conftest.$ac_ext 5417cat >>conftest.$ac_ext <<_ACEOF 5418/* end confdefs.h. */ 5419$ac_includes_default 5420#include <float.h> 5421_ACEOF 5422rm -f conftest.$ac_objext 5423if { (ac_try="$ac_compile" 5424case "(($ac_try" in 5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5426 *) ac_try_echo=$ac_try;; 5427esac 5428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5429 (eval "$ac_compile") 2>conftest.er1 5430 ac_status=$? 5431 grep -v '^ *+' conftest.er1 >conftest.err 5432 rm -f conftest.er1 5433 cat conftest.err >&5 5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5435 (exit $ac_status); } && { 5436 test -z "$ac_c_werror_flag" || 5437 test ! -s conftest.err 5438 } && test -s conftest.$ac_objext; then 5439 ac_header_compiler=yes 5440else 5441 echo "$as_me: failed program was:" >&5 5442sed 's/^/| /' conftest.$ac_ext >&5 5443 5444 ac_header_compiler=no 5445fi 5446 5447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5448{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5449echo "${ECHO_T}$ac_header_compiler" >&6; } 5450 5451# Is the header present? 5452{ echo "$as_me:$LINENO: checking float.h presence" >&5 5453echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5454cat >conftest.$ac_ext <<_ACEOF 5455/* confdefs.h. */ 5456_ACEOF 5457cat confdefs.h >>conftest.$ac_ext 5458cat >>conftest.$ac_ext <<_ACEOF 5459/* end confdefs.h. */ 5460#include <float.h> 5461_ACEOF 5462if { (ac_try="$ac_cpp conftest.$ac_ext" 5463case "(($ac_try" in 5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5465 *) ac_try_echo=$ac_try;; 5466esac 5467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5469 ac_status=$? 5470 grep -v '^ *+' conftest.er1 >conftest.err 5471 rm -f conftest.er1 5472 cat conftest.err >&5 5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5474 (exit $ac_status); } >/dev/null && { 5475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5476 test ! -s conftest.err 5477 }; then 5478 ac_header_preproc=yes 5479else 5480 echo "$as_me: failed program was:" >&5 5481sed 's/^/| /' conftest.$ac_ext >&5 5482 5483 ac_header_preproc=no 5484fi 5485 5486rm -f conftest.err conftest.$ac_ext 5487{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5488echo "${ECHO_T}$ac_header_preproc" >&6; } 5489 5490# So? What about this header? 5491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5492 yes:no: ) 5493 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5494echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5495 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5496echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5497 ac_header_preproc=yes 5498 ;; 5499 no:yes:* ) 5500 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5501echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5502 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5503echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5504 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5505echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5506 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5507echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5508 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5509echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5510 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5511echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5512 5513 ;; 5514esac 5515{ echo "$as_me:$LINENO: checking for float.h" >&5 5516echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5517if test "${ac_cv_header_float_h+set}" = set; then 5518 echo $ECHO_N "(cached) $ECHO_C" >&6 5519else 5520 ac_cv_header_float_h=$ac_header_preproc 5521fi 5522{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5523echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5524 5525fi 5526if test $ac_cv_header_float_h = yes; then 5527 : 5528else 5529 5530cat >>confdefs.h <<\_ACEOF 5531#define NO_FLOAT_H 1 5532_ACEOF 5533 5534fi 5535 5536 5537 if test "${ac_cv_header_values_h+set}" = set; then 5538 { echo "$as_me:$LINENO: checking for values.h" >&5 5539echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5540if test "${ac_cv_header_values_h+set}" = set; then 5541 echo $ECHO_N "(cached) $ECHO_C" >&6 5542fi 5543{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5544echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5545else 5546 # Is the header compilable? 5547{ echo "$as_me:$LINENO: checking values.h usability" >&5 5548echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5549cat >conftest.$ac_ext <<_ACEOF 5550/* confdefs.h. */ 5551_ACEOF 5552cat confdefs.h >>conftest.$ac_ext 5553cat >>conftest.$ac_ext <<_ACEOF 5554/* end confdefs.h. */ 5555$ac_includes_default 5556#include <values.h> 5557_ACEOF 5558rm -f conftest.$ac_objext 5559if { (ac_try="$ac_compile" 5560case "(($ac_try" in 5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5562 *) ac_try_echo=$ac_try;; 5563esac 5564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5565 (eval "$ac_compile") 2>conftest.er1 5566 ac_status=$? 5567 grep -v '^ *+' conftest.er1 >conftest.err 5568 rm -f conftest.er1 5569 cat conftest.err >&5 5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5571 (exit $ac_status); } && { 5572 test -z "$ac_c_werror_flag" || 5573 test ! -s conftest.err 5574 } && test -s conftest.$ac_objext; then 5575 ac_header_compiler=yes 5576else 5577 echo "$as_me: failed program was:" >&5 5578sed 's/^/| /' conftest.$ac_ext >&5 5579 5580 ac_header_compiler=no 5581fi 5582 5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5584{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5585echo "${ECHO_T}$ac_header_compiler" >&6; } 5586 5587# Is the header present? 5588{ echo "$as_me:$LINENO: checking values.h presence" >&5 5589echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5590cat >conftest.$ac_ext <<_ACEOF 5591/* confdefs.h. */ 5592_ACEOF 5593cat confdefs.h >>conftest.$ac_ext 5594cat >>conftest.$ac_ext <<_ACEOF 5595/* end confdefs.h. */ 5596#include <values.h> 5597_ACEOF 5598if { (ac_try="$ac_cpp conftest.$ac_ext" 5599case "(($ac_try" in 5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5601 *) ac_try_echo=$ac_try;; 5602esac 5603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5605 ac_status=$? 5606 grep -v '^ *+' conftest.er1 >conftest.err 5607 rm -f conftest.er1 5608 cat conftest.err >&5 5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5610 (exit $ac_status); } >/dev/null && { 5611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5612 test ! -s conftest.err 5613 }; then 5614 ac_header_preproc=yes 5615else 5616 echo "$as_me: failed program was:" >&5 5617sed 's/^/| /' conftest.$ac_ext >&5 5618 5619 ac_header_preproc=no 5620fi 5621 5622rm -f conftest.err conftest.$ac_ext 5623{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5624echo "${ECHO_T}$ac_header_preproc" >&6; } 5625 5626# So? What about this header? 5627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5628 yes:no: ) 5629 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5630echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5631 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5632echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5633 ac_header_preproc=yes 5634 ;; 5635 no:yes:* ) 5636 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5637echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5638 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5639echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5640 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5641echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5642 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5643echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5644 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5645echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5646 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5647echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5648 5649 ;; 5650esac 5651{ echo "$as_me:$LINENO: checking for values.h" >&5 5652echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5653if test "${ac_cv_header_values_h+set}" = set; then 5654 echo $ECHO_N "(cached) $ECHO_C" >&6 5655else 5656 ac_cv_header_values_h=$ac_header_preproc 5657fi 5658{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5659echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5660 5661fi 5662if test $ac_cv_header_values_h = yes; then 5663 : 5664else 5665 5666cat >>confdefs.h <<\_ACEOF 5667#define NO_VALUES_H 1 5668_ACEOF 5669 5670fi 5671 5672 5673 if test "${ac_cv_header_limits_h+set}" = set; then 5674 { echo "$as_me:$LINENO: checking for limits.h" >&5 5675echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5676if test "${ac_cv_header_limits_h+set}" = set; then 5677 echo $ECHO_N "(cached) $ECHO_C" >&6 5678fi 5679{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5680echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5681else 5682 # Is the header compilable? 5683{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5684echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5685cat >conftest.$ac_ext <<_ACEOF 5686/* confdefs.h. */ 5687_ACEOF 5688cat confdefs.h >>conftest.$ac_ext 5689cat >>conftest.$ac_ext <<_ACEOF 5690/* end confdefs.h. */ 5691$ac_includes_default 5692#include <limits.h> 5693_ACEOF 5694rm -f conftest.$ac_objext 5695if { (ac_try="$ac_compile" 5696case "(($ac_try" in 5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5698 *) ac_try_echo=$ac_try;; 5699esac 5700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5701 (eval "$ac_compile") 2>conftest.er1 5702 ac_status=$? 5703 grep -v '^ *+' conftest.er1 >conftest.err 5704 rm -f conftest.er1 5705 cat conftest.err >&5 5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5707 (exit $ac_status); } && { 5708 test -z "$ac_c_werror_flag" || 5709 test ! -s conftest.err 5710 } && test -s conftest.$ac_objext; then 5711 ac_header_compiler=yes 5712else 5713 echo "$as_me: failed program was:" >&5 5714sed 's/^/| /' conftest.$ac_ext >&5 5715 5716 ac_header_compiler=no 5717fi 5718 5719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5720{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5721echo "${ECHO_T}$ac_header_compiler" >&6; } 5722 5723# Is the header present? 5724{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5725echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5726cat >conftest.$ac_ext <<_ACEOF 5727/* confdefs.h. */ 5728_ACEOF 5729cat confdefs.h >>conftest.$ac_ext 5730cat >>conftest.$ac_ext <<_ACEOF 5731/* end confdefs.h. */ 5732#include <limits.h> 5733_ACEOF 5734if { (ac_try="$ac_cpp conftest.$ac_ext" 5735case "(($ac_try" in 5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5737 *) ac_try_echo=$ac_try;; 5738esac 5739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5741 ac_status=$? 5742 grep -v '^ *+' conftest.er1 >conftest.err 5743 rm -f conftest.er1 5744 cat conftest.err >&5 5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5746 (exit $ac_status); } >/dev/null && { 5747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5748 test ! -s conftest.err 5749 }; then 5750 ac_header_preproc=yes 5751else 5752 echo "$as_me: failed program was:" >&5 5753sed 's/^/| /' conftest.$ac_ext >&5 5754 5755 ac_header_preproc=no 5756fi 5757 5758rm -f conftest.err conftest.$ac_ext 5759{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5760echo "${ECHO_T}$ac_header_preproc" >&6; } 5761 5762# So? What about this header? 5763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5764 yes:no: ) 5765 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5766echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5767 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5768echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5769 ac_header_preproc=yes 5770 ;; 5771 no:yes:* ) 5772 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5773echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5774 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5775echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5776 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5777echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5778 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5779echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5780 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5781echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5782 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5783echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5784 5785 ;; 5786esac 5787{ echo "$as_me:$LINENO: checking for limits.h" >&5 5788echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5789if test "${ac_cv_header_limits_h+set}" = set; then 5790 echo $ECHO_N "(cached) $ECHO_C" >&6 5791else 5792 ac_cv_header_limits_h=$ac_header_preproc 5793fi 5794{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5795echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5796 5797fi 5798if test $ac_cv_header_limits_h = yes; then 5799 5800cat >>confdefs.h <<\_ACEOF 5801#define HAVE_LIMITS_H 1 5802_ACEOF 5803 5804else 5805 5806cat >>confdefs.h <<\_ACEOF 5807#define NO_LIMITS_H 1 5808_ACEOF 5809 5810fi 5811 5812 5813 if test "${ac_cv_header_stdlib_h+set}" = set; then 5814 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 5815echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5816if test "${ac_cv_header_stdlib_h+set}" = set; then 5817 echo $ECHO_N "(cached) $ECHO_C" >&6 5818fi 5819{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5820echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5821else 5822 # Is the header compilable? 5823{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5824echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 5825cat >conftest.$ac_ext <<_ACEOF 5826/* confdefs.h. */ 5827_ACEOF 5828cat confdefs.h >>conftest.$ac_ext 5829cat >>conftest.$ac_ext <<_ACEOF 5830/* end confdefs.h. */ 5831$ac_includes_default 5832#include <stdlib.h> 5833_ACEOF 5834rm -f conftest.$ac_objext 5835if { (ac_try="$ac_compile" 5836case "(($ac_try" in 5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5838 *) ac_try_echo=$ac_try;; 5839esac 5840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5841 (eval "$ac_compile") 2>conftest.er1 5842 ac_status=$? 5843 grep -v '^ *+' conftest.er1 >conftest.err 5844 rm -f conftest.er1 5845 cat conftest.err >&5 5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5847 (exit $ac_status); } && { 5848 test -z "$ac_c_werror_flag" || 5849 test ! -s conftest.err 5850 } && test -s conftest.$ac_objext; then 5851 ac_header_compiler=yes 5852else 5853 echo "$as_me: failed program was:" >&5 5854sed 's/^/| /' conftest.$ac_ext >&5 5855 5856 ac_header_compiler=no 5857fi 5858 5859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5860{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5861echo "${ECHO_T}$ac_header_compiler" >&6; } 5862 5863# Is the header present? 5864{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5865echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 5866cat >conftest.$ac_ext <<_ACEOF 5867/* confdefs.h. */ 5868_ACEOF 5869cat confdefs.h >>conftest.$ac_ext 5870cat >>conftest.$ac_ext <<_ACEOF 5871/* end confdefs.h. */ 5872#include <stdlib.h> 5873_ACEOF 5874if { (ac_try="$ac_cpp conftest.$ac_ext" 5875case "(($ac_try" in 5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5877 *) ac_try_echo=$ac_try;; 5878esac 5879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5881 ac_status=$? 5882 grep -v '^ *+' conftest.er1 >conftest.err 5883 rm -f conftest.er1 5884 cat conftest.err >&5 5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5886 (exit $ac_status); } >/dev/null && { 5887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5888 test ! -s conftest.err 5889 }; then 5890 ac_header_preproc=yes 5891else 5892 echo "$as_me: failed program was:" >&5 5893sed 's/^/| /' conftest.$ac_ext >&5 5894 5895 ac_header_preproc=no 5896fi 5897 5898rm -f conftest.err conftest.$ac_ext 5899{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5900echo "${ECHO_T}$ac_header_preproc" >&6; } 5901 5902# So? What about this header? 5903case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5904 yes:no: ) 5905 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5906echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5907 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5908echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5909 ac_header_preproc=yes 5910 ;; 5911 no:yes:* ) 5912 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5913echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5914 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5915echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5916 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5917echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5918 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5919echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5920 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5921echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5922 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5923echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5924 5925 ;; 5926esac 5927{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 5928echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5929if test "${ac_cv_header_stdlib_h+set}" = set; then 5930 echo $ECHO_N "(cached) $ECHO_C" >&6 5931else 5932 ac_cv_header_stdlib_h=$ac_header_preproc 5933fi 5934{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5935echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5936 5937fi 5938if test $ac_cv_header_stdlib_h = yes; then 5939 tcl_ok=1 5940else 5941 tcl_ok=0 5942fi 5943 5944 5945 cat >conftest.$ac_ext <<_ACEOF 5946/* confdefs.h. */ 5947_ACEOF 5948cat confdefs.h >>conftest.$ac_ext 5949cat >>conftest.$ac_ext <<_ACEOF 5950/* end confdefs.h. */ 5951#include <stdlib.h> 5952 5953_ACEOF 5954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5955 $EGREP "strtol" >/dev/null 2>&1; then 5956 : 5957else 5958 tcl_ok=0 5959fi 5960rm -f -r conftest* 5961 5962 cat >conftest.$ac_ext <<_ACEOF 5963/* confdefs.h. */ 5964_ACEOF 5965cat confdefs.h >>conftest.$ac_ext 5966cat >>conftest.$ac_ext <<_ACEOF 5967/* end confdefs.h. */ 5968#include <stdlib.h> 5969 5970_ACEOF 5971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5972 $EGREP "strtoul" >/dev/null 2>&1; then 5973 : 5974else 5975 tcl_ok=0 5976fi 5977rm -f -r conftest* 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 "strtod" >/dev/null 2>&1; then 5990 : 5991else 5992 tcl_ok=0 5993fi 5994rm -f -r conftest* 5995 5996 if test $tcl_ok = 0; then 5997 5998cat >>confdefs.h <<\_ACEOF 5999#define NO_STDLIB_H 1 6000_ACEOF 6001 6002 fi 6003 if test "${ac_cv_header_string_h+set}" = set; then 6004 { echo "$as_me:$LINENO: checking for string.h" >&5 6005echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6006if test "${ac_cv_header_string_h+set}" = set; then 6007 echo $ECHO_N "(cached) $ECHO_C" >&6 6008fi 6009{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6010echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6011else 6012 # Is the header compilable? 6013{ echo "$as_me:$LINENO: checking string.h usability" >&5 6014echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6015cat >conftest.$ac_ext <<_ACEOF 6016/* confdefs.h. */ 6017_ACEOF 6018cat confdefs.h >>conftest.$ac_ext 6019cat >>conftest.$ac_ext <<_ACEOF 6020/* end confdefs.h. */ 6021$ac_includes_default 6022#include <string.h> 6023_ACEOF 6024rm -f conftest.$ac_objext 6025if { (ac_try="$ac_compile" 6026case "(($ac_try" in 6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6028 *) ac_try_echo=$ac_try;; 6029esac 6030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6031 (eval "$ac_compile") 2>conftest.er1 6032 ac_status=$? 6033 grep -v '^ *+' conftest.er1 >conftest.err 6034 rm -f conftest.er1 6035 cat conftest.err >&5 6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6037 (exit $ac_status); } && { 6038 test -z "$ac_c_werror_flag" || 6039 test ! -s conftest.err 6040 } && test -s conftest.$ac_objext; then 6041 ac_header_compiler=yes 6042else 6043 echo "$as_me: failed program was:" >&5 6044sed 's/^/| /' conftest.$ac_ext >&5 6045 6046 ac_header_compiler=no 6047fi 6048 6049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6050{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6051echo "${ECHO_T}$ac_header_compiler" >&6; } 6052 6053# Is the header present? 6054{ echo "$as_me:$LINENO: checking string.h presence" >&5 6055echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6056cat >conftest.$ac_ext <<_ACEOF 6057/* confdefs.h. */ 6058_ACEOF 6059cat confdefs.h >>conftest.$ac_ext 6060cat >>conftest.$ac_ext <<_ACEOF 6061/* end confdefs.h. */ 6062#include <string.h> 6063_ACEOF 6064if { (ac_try="$ac_cpp conftest.$ac_ext" 6065case "(($ac_try" in 6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6067 *) ac_try_echo=$ac_try;; 6068esac 6069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6071 ac_status=$? 6072 grep -v '^ *+' conftest.er1 >conftest.err 6073 rm -f conftest.er1 6074 cat conftest.err >&5 6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6076 (exit $ac_status); } >/dev/null && { 6077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6078 test ! -s conftest.err 6079 }; then 6080 ac_header_preproc=yes 6081else 6082 echo "$as_me: failed program was:" >&5 6083sed 's/^/| /' conftest.$ac_ext >&5 6084 6085 ac_header_preproc=no 6086fi 6087 6088rm -f conftest.err conftest.$ac_ext 6089{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6090echo "${ECHO_T}$ac_header_preproc" >&6; } 6091 6092# So? What about this header? 6093case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6094 yes:no: ) 6095 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6096echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6097 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6098echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6099 ac_header_preproc=yes 6100 ;; 6101 no:yes:* ) 6102 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6103echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6104 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6105echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6106 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6107echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6108 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6109echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6110 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6111echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6112 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6113echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6114 6115 ;; 6116esac 6117{ echo "$as_me:$LINENO: checking for string.h" >&5 6118echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6119if test "${ac_cv_header_string_h+set}" = set; then 6120 echo $ECHO_N "(cached) $ECHO_C" >&6 6121else 6122 ac_cv_header_string_h=$ac_header_preproc 6123fi 6124{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6125echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6126 6127fi 6128if test $ac_cv_header_string_h = yes; then 6129 tcl_ok=1 6130else 6131 tcl_ok=0 6132fi 6133 6134 6135 cat >conftest.$ac_ext <<_ACEOF 6136/* confdefs.h. */ 6137_ACEOF 6138cat confdefs.h >>conftest.$ac_ext 6139cat >>conftest.$ac_ext <<_ACEOF 6140/* end confdefs.h. */ 6141#include <string.h> 6142 6143_ACEOF 6144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6145 $EGREP "strstr" >/dev/null 2>&1; then 6146 : 6147else 6148 tcl_ok=0 6149fi 6150rm -f -r conftest* 6151 6152 cat >conftest.$ac_ext <<_ACEOF 6153/* confdefs.h. */ 6154_ACEOF 6155cat confdefs.h >>conftest.$ac_ext 6156cat >>conftest.$ac_ext <<_ACEOF 6157/* end confdefs.h. */ 6158#include <string.h> 6159 6160_ACEOF 6161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6162 $EGREP "strerror" >/dev/null 2>&1; then 6163 : 6164else 6165 tcl_ok=0 6166fi 6167rm -f -r conftest* 6168 6169 6170 # See also memmove check below for a place where NO_STRING_H can be 6171 # set and why. 6172 6173 if test $tcl_ok = 0; then 6174 6175cat >>confdefs.h <<\_ACEOF 6176#define NO_STRING_H 1 6177_ACEOF 6178 6179 fi 6180 6181 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6182 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6183echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6184if test "${ac_cv_header_sys_wait_h+set}" = set; then 6185 echo $ECHO_N "(cached) $ECHO_C" >&6 6186fi 6187{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6188echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6189else 6190 # Is the header compilable? 6191{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6192echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6193cat >conftest.$ac_ext <<_ACEOF 6194/* confdefs.h. */ 6195_ACEOF 6196cat confdefs.h >>conftest.$ac_ext 6197cat >>conftest.$ac_ext <<_ACEOF 6198/* end confdefs.h. */ 6199$ac_includes_default 6200#include <sys/wait.h> 6201_ACEOF 6202rm -f conftest.$ac_objext 6203if { (ac_try="$ac_compile" 6204case "(($ac_try" in 6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6206 *) ac_try_echo=$ac_try;; 6207esac 6208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6209 (eval "$ac_compile") 2>conftest.er1 6210 ac_status=$? 6211 grep -v '^ *+' conftest.er1 >conftest.err 6212 rm -f conftest.er1 6213 cat conftest.err >&5 6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6215 (exit $ac_status); } && { 6216 test -z "$ac_c_werror_flag" || 6217 test ! -s conftest.err 6218 } && test -s conftest.$ac_objext; then 6219 ac_header_compiler=yes 6220else 6221 echo "$as_me: failed program was:" >&5 6222sed 's/^/| /' conftest.$ac_ext >&5 6223 6224 ac_header_compiler=no 6225fi 6226 6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6228{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6229echo "${ECHO_T}$ac_header_compiler" >&6; } 6230 6231# Is the header present? 6232{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6233echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6234cat >conftest.$ac_ext <<_ACEOF 6235/* confdefs.h. */ 6236_ACEOF 6237cat confdefs.h >>conftest.$ac_ext 6238cat >>conftest.$ac_ext <<_ACEOF 6239/* end confdefs.h. */ 6240#include <sys/wait.h> 6241_ACEOF 6242if { (ac_try="$ac_cpp conftest.$ac_ext" 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_cpp conftest.$ac_ext") 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); } >/dev/null && { 6255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6256 test ! -s conftest.err 6257 }; then 6258 ac_header_preproc=yes 6259else 6260 echo "$as_me: failed program was:" >&5 6261sed 's/^/| /' conftest.$ac_ext >&5 6262 6263 ac_header_preproc=no 6264fi 6265 6266rm -f conftest.err conftest.$ac_ext 6267{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6268echo "${ECHO_T}$ac_header_preproc" >&6; } 6269 6270# So? What about this header? 6271case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6272 yes:no: ) 6273 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6274echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6275 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6276echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6277 ac_header_preproc=yes 6278 ;; 6279 no:yes:* ) 6280 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6281echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6282 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6283echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6284 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6285echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6286 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6287echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6288 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6289echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6290 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6291echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6292 6293 ;; 6294esac 6295{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6296echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6297if test "${ac_cv_header_sys_wait_h+set}" = set; then 6298 echo $ECHO_N "(cached) $ECHO_C" >&6 6299else 6300 ac_cv_header_sys_wait_h=$ac_header_preproc 6301fi 6302{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6303echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6304 6305fi 6306if test $ac_cv_header_sys_wait_h = yes; then 6307 : 6308else 6309 6310cat >>confdefs.h <<\_ACEOF 6311#define NO_SYS_WAIT_H 1 6312_ACEOF 6313 6314fi 6315 6316 6317 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6318 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6319echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6320if test "${ac_cv_header_dlfcn_h+set}" = set; then 6321 echo $ECHO_N "(cached) $ECHO_C" >&6 6322fi 6323{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6324echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6325else 6326 # Is the header compilable? 6327{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6328echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6329cat >conftest.$ac_ext <<_ACEOF 6330/* confdefs.h. */ 6331_ACEOF 6332cat confdefs.h >>conftest.$ac_ext 6333cat >>conftest.$ac_ext <<_ACEOF 6334/* end confdefs.h. */ 6335$ac_includes_default 6336#include <dlfcn.h> 6337_ACEOF 6338rm -f conftest.$ac_objext 6339if { (ac_try="$ac_compile" 6340case "(($ac_try" in 6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6342 *) ac_try_echo=$ac_try;; 6343esac 6344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6345 (eval "$ac_compile") 2>conftest.er1 6346 ac_status=$? 6347 grep -v '^ *+' conftest.er1 >conftest.err 6348 rm -f conftest.er1 6349 cat conftest.err >&5 6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6351 (exit $ac_status); } && { 6352 test -z "$ac_c_werror_flag" || 6353 test ! -s conftest.err 6354 } && test -s conftest.$ac_objext; then 6355 ac_header_compiler=yes 6356else 6357 echo "$as_me: failed program was:" >&5 6358sed 's/^/| /' conftest.$ac_ext >&5 6359 6360 ac_header_compiler=no 6361fi 6362 6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6364{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6365echo "${ECHO_T}$ac_header_compiler" >&6; } 6366 6367# Is the header present? 6368{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6369echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6370cat >conftest.$ac_ext <<_ACEOF 6371/* confdefs.h. */ 6372_ACEOF 6373cat confdefs.h >>conftest.$ac_ext 6374cat >>conftest.$ac_ext <<_ACEOF 6375/* end confdefs.h. */ 6376#include <dlfcn.h> 6377_ACEOF 6378if { (ac_try="$ac_cpp conftest.$ac_ext" 6379case "(($ac_try" in 6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6381 *) ac_try_echo=$ac_try;; 6382esac 6383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6385 ac_status=$? 6386 grep -v '^ *+' conftest.er1 >conftest.err 6387 rm -f conftest.er1 6388 cat conftest.err >&5 6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6390 (exit $ac_status); } >/dev/null && { 6391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6392 test ! -s conftest.err 6393 }; then 6394 ac_header_preproc=yes 6395else 6396 echo "$as_me: failed program was:" >&5 6397sed 's/^/| /' conftest.$ac_ext >&5 6398 6399 ac_header_preproc=no 6400fi 6401 6402rm -f conftest.err conftest.$ac_ext 6403{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6404echo "${ECHO_T}$ac_header_preproc" >&6; } 6405 6406# So? What about this header? 6407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6408 yes:no: ) 6409 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6410echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6411 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6412echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6413 ac_header_preproc=yes 6414 ;; 6415 no:yes:* ) 6416 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6417echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6418 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6419echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6420 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6421echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6422 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6423echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6424 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6425echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6426 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6427echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6428 6429 ;; 6430esac 6431{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6432echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6433if test "${ac_cv_header_dlfcn_h+set}" = set; then 6434 echo $ECHO_N "(cached) $ECHO_C" >&6 6435else 6436 ac_cv_header_dlfcn_h=$ac_header_preproc 6437fi 6438{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6439echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6440 6441fi 6442if test $ac_cv_header_dlfcn_h = yes; then 6443 : 6444else 6445 6446cat >>confdefs.h <<\_ACEOF 6447#define NO_DLFCN_H 1 6448_ACEOF 6449 6450fi 6451 6452 6453 6454 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6455 6456for ac_header in sys/param.h 6457do 6458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6460 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6463 echo $ECHO_N "(cached) $ECHO_C" >&6 6464fi 6465ac_res=`eval echo '${'$as_ac_Header'}'` 6466 { echo "$as_me:$LINENO: result: $ac_res" >&5 6467echo "${ECHO_T}$ac_res" >&6; } 6468else 6469 # Is the header compilable? 6470{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6471echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6472cat >conftest.$ac_ext <<_ACEOF 6473/* confdefs.h. */ 6474_ACEOF 6475cat confdefs.h >>conftest.$ac_ext 6476cat >>conftest.$ac_ext <<_ACEOF 6477/* end confdefs.h. */ 6478$ac_includes_default 6479#include <$ac_header> 6480_ACEOF 6481rm -f conftest.$ac_objext 6482if { (ac_try="$ac_compile" 6483case "(($ac_try" in 6484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6485 *) ac_try_echo=$ac_try;; 6486esac 6487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6488 (eval "$ac_compile") 2>conftest.er1 6489 ac_status=$? 6490 grep -v '^ *+' conftest.er1 >conftest.err 6491 rm -f conftest.er1 6492 cat conftest.err >&5 6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6494 (exit $ac_status); } && { 6495 test -z "$ac_c_werror_flag" || 6496 test ! -s conftest.err 6497 } && test -s conftest.$ac_objext; then 6498 ac_header_compiler=yes 6499else 6500 echo "$as_me: failed program was:" >&5 6501sed 's/^/| /' conftest.$ac_ext >&5 6502 6503 ac_header_compiler=no 6504fi 6505 6506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6507{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6508echo "${ECHO_T}$ac_header_compiler" >&6; } 6509 6510# Is the header present? 6511{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6512echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6513cat >conftest.$ac_ext <<_ACEOF 6514/* confdefs.h. */ 6515_ACEOF 6516cat confdefs.h >>conftest.$ac_ext 6517cat >>conftest.$ac_ext <<_ACEOF 6518/* end confdefs.h. */ 6519#include <$ac_header> 6520_ACEOF 6521if { (ac_try="$ac_cpp conftest.$ac_ext" 6522case "(($ac_try" in 6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6524 *) ac_try_echo=$ac_try;; 6525esac 6526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6528 ac_status=$? 6529 grep -v '^ *+' conftest.er1 >conftest.err 6530 rm -f conftest.er1 6531 cat conftest.err >&5 6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6533 (exit $ac_status); } >/dev/null && { 6534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6535 test ! -s conftest.err 6536 }; then 6537 ac_header_preproc=yes 6538else 6539 echo "$as_me: failed program was:" >&5 6540sed 's/^/| /' conftest.$ac_ext >&5 6541 6542 ac_header_preproc=no 6543fi 6544 6545rm -f conftest.err conftest.$ac_ext 6546{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6547echo "${ECHO_T}$ac_header_preproc" >&6; } 6548 6549# So? What about this header? 6550case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6551 yes:no: ) 6552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6553echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6555echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6556 ac_header_preproc=yes 6557 ;; 6558 no:yes:* ) 6559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6560echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6562echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6564echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6566echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6568echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6570echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6571 6572 ;; 6573esac 6574{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6577 echo $ECHO_N "(cached) $ECHO_C" >&6 6578else 6579 eval "$as_ac_Header=\$ac_header_preproc" 6580fi 6581ac_res=`eval echo '${'$as_ac_Header'}'` 6582 { echo "$as_me:$LINENO: result: $ac_res" >&5 6583echo "${ECHO_T}$ac_res" >&6; } 6584 6585fi 6586if test `eval echo '${'$as_ac_Header'}'` = yes; then 6587 cat >>confdefs.h <<_ACEOF 6588#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6589_ACEOF 6590 6591fi 6592 6593done 6594 6595 6596 # Let the user call this, because if it triggers, they will 6597 # need a compat/strtod.c that is correct. Users can also 6598 # use Tcl_GetDouble(FromObj) instead. 6599 #TEA_BUGGY_STRTOD 6600 fi 6601 6602 6603#----------------------------------------------------------------------- 6604# Specify the C source files to compile in TEA_ADD_SOURCES, 6605# public headers that need to be installed in TEA_ADD_HEADERS, 6606# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6607# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6608# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6609# and PKG_TCL_SOURCES. 6610#----------------------------------------------------------------------- 6611 6612 6613 vars="tclMacOSA_OSX.c osxMacTcl.c" 6614 for i in $vars; do 6615 case $i in 6616 \$*) 6617 # allow $-var names 6618 PKG_SOURCES="$PKG_SOURCES $i" 6619 PKG_OBJECTS="$PKG_OBJECTS $i" 6620 ;; 6621 *) 6622 # check for existence - allows for generic/win/unix VPATH 6623 # To add more dirs here (like 'src'), you have to update VPATH 6624 # in Makefile.in as well 6625 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6626 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6627 -a ! -f "${srcdir}/macosx/$i" \ 6628 ; then 6629 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6630echo "$as_me: error: could not find source file '$i'" >&2;} 6631 { (exit 1); exit 1; }; } 6632 fi 6633 PKG_SOURCES="$PKG_SOURCES $i" 6634 # this assumes it is in a VPATH dir 6635 i=`basename $i` 6636 # handle user calling this before or after TEA_SETUP_COMPILER 6637 if test x"${OBJEXT}" != x ; then 6638 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6639 else 6640 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6641 fi 6642 PKG_OBJECTS="$PKG_OBJECTS $j" 6643 ;; 6644 esac 6645 done 6646 6647 6648 6649 6650 vars="" 6651 for i in $vars; do 6652 # check for existence, be strict because it is installed 6653 if test ! -f "${srcdir}/$i" ; then 6654 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6655echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6656 { (exit 1); exit 1; }; } 6657 fi 6658 PKG_HEADERS="$PKG_HEADERS $i" 6659 done 6660 6661 6662 6663 vars="-I\${srcdir}" 6664 for i in $vars; do 6665 PKG_INCLUDES="$PKG_INCLUDES $i" 6666 done 6667 6668 6669 6670 vars="-include \${srcdir}/TclAS_CarbonMachO.pch" 6671 for i in $vars; do 6672 PKG_INCLUDES="$PKG_INCLUDES $i" 6673 done 6674 6675 6676 6677 vars="-framework Carbon" 6678 for i in $vars; do 6679 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6680 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6681 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6682 fi 6683 PKG_LIBS="$PKG_LIBS $i" 6684 done 6685 6686 6687 6688 PKG_CFLAGS="$PKG_CFLAGS " 6689 6690 6691 6692 vars="" 6693 for i in $vars; do 6694 # check for existence - allows for generic/win/unix VPATH 6695 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6696 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6697 -a ! -f "${srcdir}/macosx/$i" \ 6698 ; then 6699 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6700echo "$as_me: error: could not find stub source file '$i'" >&2;} 6701 { (exit 1); exit 1; }; } 6702 fi 6703 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6704 # this assumes it is in a VPATH dir 6705 i=`basename $i` 6706 # handle user calling this before or after TEA_SETUP_COMPILER 6707 if test x"${OBJEXT}" != x ; then 6708 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6709 else 6710 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6711 fi 6712 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6713 done 6714 6715 6716 6717 6718 vars="" 6719 for i in $vars; do 6720 # check for existence, be strict because it is installed 6721 if test ! -f "${srcdir}/$i" ; then 6722 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6723echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6724 { (exit 1); exit 1; }; } 6725 fi 6726 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6727 done 6728 6729 6730 6731 6732 6733#-------------------------------------------------------------------- 6734# Choose which headers you need. Extension authors should try very 6735# hard to only rely on the Tcl public header files. Internal headers 6736# contain private data structures and are subject to change without 6737# notice. 6738# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 6739#-------------------------------------------------------------------- 6740 6741 6742 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6743echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6744 6745 6746# Check whether --with-tclinclude was given. 6747if test "${with_tclinclude+set}" = set; then 6748 withval=$with_tclinclude; with_tclinclude=${withval} 6749fi 6750 6751 6752 if test "${ac_cv_c_tclh+set}" = set; then 6753 echo $ECHO_N "(cached) $ECHO_C" >&6 6754else 6755 6756 # Use the value from --with-tclinclude, if it was given 6757 6758 if test x"${with_tclinclude}" != x ; then 6759 if test -f "${with_tclinclude}/tcl.h" ; then 6760 ac_cv_c_tclh=${with_tclinclude} 6761 else 6762 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6763echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6764 { (exit 1); exit 1; }; } 6765 fi 6766 else 6767 list="" 6768 if test "`uname -s`" = "Darwin"; then 6769 # If Tcl was built as a framework, attempt to use 6770 # the framework's Headers directory 6771 case ${TCL_DEFS} in 6772 *TCL_FRAMEWORK*) 6773 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 6774 ;; 6775 esac 6776 fi 6777 6778 # Look in the source dir only if Tcl is not installed, 6779 # and in that situation, look there before installed locations. 6780 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6781 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 6782 fi 6783 6784 # Check order: pkg --prefix location, Tcl's --prefix location, 6785 # relative to directory of tclConfig.sh. 6786 6787 eval "temp_includedir=${includedir}" 6788 list="$list \ 6789 `ls -d ${temp_includedir} 2>/dev/null` \ 6790 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 6791 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 6792 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 6793 list="$list /usr/local/include /usr/include" 6794 if test x"${TCL_INCLUDE_SPEC}" != x ; then 6795 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 6796 list="$list `ls -d ${d} 2>/dev/null`" 6797 fi 6798 fi 6799 for i in $list ; do 6800 if test -f "$i/tcl.h" ; then 6801 ac_cv_c_tclh=$i 6802 break 6803 fi 6804 done 6805 fi 6806 6807fi 6808 6809 6810 # Print a message based on how we determined the include path 6811 6812 if test x"${ac_cv_c_tclh}" = x ; then 6813 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 6814echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 6815 { (exit 1); exit 1; }; } 6816 else 6817 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 6818echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 6819 fi 6820 6821 # Convert to a native path and substitute into the output files. 6822 6823 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 6824 6825 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 6826 6827 6828 6829#TEA_PRIVATE_TCL_HEADERS 6830 6831#-------------------------------------------------------------------- 6832# Check whether --enable-threads or --disable-threads was given. 6833# This auto-enables if Tcl was compiled threaded. 6834#-------------------------------------------------------------------- 6835 6836 6837 # Check whether --enable-threads was given. 6838if test "${enable_threads+set}" = set; then 6839 enableval=$enable_threads; tcl_ok=$enableval 6840else 6841 tcl_ok=yes 6842fi 6843 6844 6845 if test "${enable_threads+set}" = set; then 6846 enableval="$enable_threads" 6847 tcl_ok=$enableval 6848 else 6849 tcl_ok=yes 6850 fi 6851 6852 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 6853 TCL_THREADS=1 6854 6855 if test "${TEA_PLATFORM}" != "windows" ; then 6856 # We are always OK on Windows, so check what this platform wants: 6857 6858 # USE_THREAD_ALLOC tells us to try the special thread-based 6859 # allocator that significantly reduces lock contention 6860 6861cat >>confdefs.h <<\_ACEOF 6862#define USE_THREAD_ALLOC 1 6863_ACEOF 6864 6865 6866cat >>confdefs.h <<\_ACEOF 6867#define _REENTRANT 1 6868_ACEOF 6869 6870 if test "`uname -s`" = "SunOS" ; then 6871 6872cat >>confdefs.h <<\_ACEOF 6873#define _POSIX_PTHREAD_SEMANTICS 1 6874_ACEOF 6875 6876 fi 6877 6878cat >>confdefs.h <<\_ACEOF 6879#define _THREAD_SAFE 1 6880_ACEOF 6881 6882 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 6883echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 6884if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 6885 echo $ECHO_N "(cached) $ECHO_C" >&6 6886else 6887 ac_check_lib_save_LIBS=$LIBS 6888LIBS="-lpthread $LIBS" 6889cat >conftest.$ac_ext <<_ACEOF 6890/* confdefs.h. */ 6891_ACEOF 6892cat confdefs.h >>conftest.$ac_ext 6893cat >>conftest.$ac_ext <<_ACEOF 6894/* end confdefs.h. */ 6895 6896/* Override any GCC internal prototype to avoid an error. 6897 Use char because int might match the return type of a GCC 6898 builtin and then its argument prototype would still apply. */ 6899#ifdef __cplusplus 6900extern "C" 6901#endif 6902char pthread_mutex_init (); 6903int 6904main () 6905{ 6906return pthread_mutex_init (); 6907 ; 6908 return 0; 6909} 6910_ACEOF 6911rm -f conftest.$ac_objext conftest$ac_exeext 6912if { (ac_try="$ac_link" 6913case "(($ac_try" in 6914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6915 *) ac_try_echo=$ac_try;; 6916esac 6917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6918 (eval "$ac_link") 2>conftest.er1 6919 ac_status=$? 6920 grep -v '^ *+' conftest.er1 >conftest.err 6921 rm -f conftest.er1 6922 cat conftest.err >&5 6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6924 (exit $ac_status); } && { 6925 test -z "$ac_c_werror_flag" || 6926 test ! -s conftest.err 6927 } && test -s conftest$ac_exeext && 6928 $as_test_x conftest$ac_exeext; then 6929 ac_cv_lib_pthread_pthread_mutex_init=yes 6930else 6931 echo "$as_me: failed program was:" >&5 6932sed 's/^/| /' conftest.$ac_ext >&5 6933 6934 ac_cv_lib_pthread_pthread_mutex_init=no 6935fi 6936 6937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6938 conftest$ac_exeext conftest.$ac_ext 6939LIBS=$ac_check_lib_save_LIBS 6940fi 6941{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 6942echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 6943if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 6944 tcl_ok=yes 6945else 6946 tcl_ok=no 6947fi 6948 6949 if test "$tcl_ok" = "no"; then 6950 # Check a little harder for __pthread_mutex_init in the same 6951 # library, as some systems hide it there until pthread.h is 6952 # defined. We could alternatively do an AC_TRY_COMPILE with 6953 # pthread.h, but that will work with libpthread really doesn't 6954 # exist, like AIX 4.2. [Bug: 4359] 6955 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 6956echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 6957if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 6958 echo $ECHO_N "(cached) $ECHO_C" >&6 6959else 6960 ac_check_lib_save_LIBS=$LIBS 6961LIBS="-lpthread $LIBS" 6962cat >conftest.$ac_ext <<_ACEOF 6963/* confdefs.h. */ 6964_ACEOF 6965cat confdefs.h >>conftest.$ac_ext 6966cat >>conftest.$ac_ext <<_ACEOF 6967/* end confdefs.h. */ 6968 6969/* Override any GCC internal prototype to avoid an error. 6970 Use char because int might match the return type of a GCC 6971 builtin and then its argument prototype would still apply. */ 6972#ifdef __cplusplus 6973extern "C" 6974#endif 6975char __pthread_mutex_init (); 6976int 6977main () 6978{ 6979return __pthread_mutex_init (); 6980 ; 6981 return 0; 6982} 6983_ACEOF 6984rm -f conftest.$ac_objext conftest$ac_exeext 6985if { (ac_try="$ac_link" 6986case "(($ac_try" in 6987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6988 *) ac_try_echo=$ac_try;; 6989esac 6990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6991 (eval "$ac_link") 2>conftest.er1 6992 ac_status=$? 6993 grep -v '^ *+' conftest.er1 >conftest.err 6994 rm -f conftest.er1 6995 cat conftest.err >&5 6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6997 (exit $ac_status); } && { 6998 test -z "$ac_c_werror_flag" || 6999 test ! -s conftest.err 7000 } && test -s conftest$ac_exeext && 7001 $as_test_x conftest$ac_exeext; then 7002 ac_cv_lib_pthread___pthread_mutex_init=yes 7003else 7004 echo "$as_me: failed program was:" >&5 7005sed 's/^/| /' conftest.$ac_ext >&5 7006 7007 ac_cv_lib_pthread___pthread_mutex_init=no 7008fi 7009 7010rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7011 conftest$ac_exeext conftest.$ac_ext 7012LIBS=$ac_check_lib_save_LIBS 7013fi 7014{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7015echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7016if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7017 tcl_ok=yes 7018else 7019 tcl_ok=no 7020fi 7021 7022 fi 7023 7024 if test "$tcl_ok" = "yes"; then 7025 # The space is needed 7026 THREADS_LIBS=" -lpthread" 7027 else 7028 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7029echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7030if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7031 echo $ECHO_N "(cached) $ECHO_C" >&6 7032else 7033 ac_check_lib_save_LIBS=$LIBS 7034LIBS="-lpthreads $LIBS" 7035cat >conftest.$ac_ext <<_ACEOF 7036/* confdefs.h. */ 7037_ACEOF 7038cat confdefs.h >>conftest.$ac_ext 7039cat >>conftest.$ac_ext <<_ACEOF 7040/* end confdefs.h. */ 7041 7042/* Override any GCC internal prototype to avoid an error. 7043 Use char because int might match the return type of a GCC 7044 builtin and then its argument prototype would still apply. */ 7045#ifdef __cplusplus 7046extern "C" 7047#endif 7048char pthread_mutex_init (); 7049int 7050main () 7051{ 7052return pthread_mutex_init (); 7053 ; 7054 return 0; 7055} 7056_ACEOF 7057rm -f conftest.$ac_objext conftest$ac_exeext 7058if { (ac_try="$ac_link" 7059case "(($ac_try" in 7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7061 *) ac_try_echo=$ac_try;; 7062esac 7063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7064 (eval "$ac_link") 2>conftest.er1 7065 ac_status=$? 7066 grep -v '^ *+' conftest.er1 >conftest.err 7067 rm -f conftest.er1 7068 cat conftest.err >&5 7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7070 (exit $ac_status); } && { 7071 test -z "$ac_c_werror_flag" || 7072 test ! -s conftest.err 7073 } && test -s conftest$ac_exeext && 7074 $as_test_x conftest$ac_exeext; then 7075 ac_cv_lib_pthreads_pthread_mutex_init=yes 7076else 7077 echo "$as_me: failed program was:" >&5 7078sed 's/^/| /' conftest.$ac_ext >&5 7079 7080 ac_cv_lib_pthreads_pthread_mutex_init=no 7081fi 7082 7083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7084 conftest$ac_exeext conftest.$ac_ext 7085LIBS=$ac_check_lib_save_LIBS 7086fi 7087{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7088echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7089if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7090 tcl_ok=yes 7091else 7092 tcl_ok=no 7093fi 7094 7095 if test "$tcl_ok" = "yes"; then 7096 # The space is needed 7097 THREADS_LIBS=" -lpthreads" 7098 else 7099 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7100echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7101if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7102 echo $ECHO_N "(cached) $ECHO_C" >&6 7103else 7104 ac_check_lib_save_LIBS=$LIBS 7105LIBS="-lc $LIBS" 7106cat >conftest.$ac_ext <<_ACEOF 7107/* confdefs.h. */ 7108_ACEOF 7109cat confdefs.h >>conftest.$ac_ext 7110cat >>conftest.$ac_ext <<_ACEOF 7111/* end confdefs.h. */ 7112 7113/* Override any GCC internal prototype to avoid an error. 7114 Use char because int might match the return type of a GCC 7115 builtin and then its argument prototype would still apply. */ 7116#ifdef __cplusplus 7117extern "C" 7118#endif 7119char pthread_mutex_init (); 7120int 7121main () 7122{ 7123return pthread_mutex_init (); 7124 ; 7125 return 0; 7126} 7127_ACEOF 7128rm -f conftest.$ac_objext conftest$ac_exeext 7129if { (ac_try="$ac_link" 7130case "(($ac_try" in 7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7132 *) ac_try_echo=$ac_try;; 7133esac 7134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7135 (eval "$ac_link") 2>conftest.er1 7136 ac_status=$? 7137 grep -v '^ *+' conftest.er1 >conftest.err 7138 rm -f conftest.er1 7139 cat conftest.err >&5 7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7141 (exit $ac_status); } && { 7142 test -z "$ac_c_werror_flag" || 7143 test ! -s conftest.err 7144 } && test -s conftest$ac_exeext && 7145 $as_test_x conftest$ac_exeext; then 7146 ac_cv_lib_c_pthread_mutex_init=yes 7147else 7148 echo "$as_me: failed program was:" >&5 7149sed 's/^/| /' conftest.$ac_ext >&5 7150 7151 ac_cv_lib_c_pthread_mutex_init=no 7152fi 7153 7154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7155 conftest$ac_exeext conftest.$ac_ext 7156LIBS=$ac_check_lib_save_LIBS 7157fi 7158{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7159echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7160if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7161 tcl_ok=yes 7162else 7163 tcl_ok=no 7164fi 7165 7166 if test "$tcl_ok" = "no"; then 7167 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7168echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7169if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7170 echo $ECHO_N "(cached) $ECHO_C" >&6 7171else 7172 ac_check_lib_save_LIBS=$LIBS 7173LIBS="-lc_r $LIBS" 7174cat >conftest.$ac_ext <<_ACEOF 7175/* confdefs.h. */ 7176_ACEOF 7177cat confdefs.h >>conftest.$ac_ext 7178cat >>conftest.$ac_ext <<_ACEOF 7179/* end confdefs.h. */ 7180 7181/* Override any GCC internal prototype to avoid an error. 7182 Use char because int might match the return type of a GCC 7183 builtin and then its argument prototype would still apply. */ 7184#ifdef __cplusplus 7185extern "C" 7186#endif 7187char pthread_mutex_init (); 7188int 7189main () 7190{ 7191return pthread_mutex_init (); 7192 ; 7193 return 0; 7194} 7195_ACEOF 7196rm -f conftest.$ac_objext conftest$ac_exeext 7197if { (ac_try="$ac_link" 7198case "(($ac_try" in 7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7200 *) ac_try_echo=$ac_try;; 7201esac 7202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7203 (eval "$ac_link") 2>conftest.er1 7204 ac_status=$? 7205 grep -v '^ *+' conftest.er1 >conftest.err 7206 rm -f conftest.er1 7207 cat conftest.err >&5 7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7209 (exit $ac_status); } && { 7210 test -z "$ac_c_werror_flag" || 7211 test ! -s conftest.err 7212 } && test -s conftest$ac_exeext && 7213 $as_test_x conftest$ac_exeext; then 7214 ac_cv_lib_c_r_pthread_mutex_init=yes 7215else 7216 echo "$as_me: failed program was:" >&5 7217sed 's/^/| /' conftest.$ac_ext >&5 7218 7219 ac_cv_lib_c_r_pthread_mutex_init=no 7220fi 7221 7222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7223 conftest$ac_exeext conftest.$ac_ext 7224LIBS=$ac_check_lib_save_LIBS 7225fi 7226{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7227echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7228if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7229 tcl_ok=yes 7230else 7231 tcl_ok=no 7232fi 7233 7234 if test "$tcl_ok" = "yes"; then 7235 # The space is needed 7236 THREADS_LIBS=" -pthread" 7237 else 7238 TCL_THREADS=0 7239 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7240echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7241 fi 7242 fi 7243 fi 7244 fi 7245 fi 7246 else 7247 TCL_THREADS=0 7248 fi 7249 # Do checking message here to not mess up interleaved configure output 7250 { echo "$as_me:$LINENO: checking for building with threads" >&5 7251echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7252 if test "${TCL_THREADS}" = 1; then 7253 7254cat >>confdefs.h <<\_ACEOF 7255#define TCL_THREADS 1 7256_ACEOF 7257 7258 { echo "$as_me:$LINENO: result: yes (default)" >&5 7259echo "${ECHO_T}yes (default)" >&6; } 7260 else 7261 { echo "$as_me:$LINENO: result: no" >&5 7262echo "${ECHO_T}no" >&6; } 7263 fi 7264 # TCL_THREADS sanity checking. See if our request for building with 7265 # threads is the same as the way Tcl was built. If not, warn the user. 7266 case ${TCL_DEFS} in 7267 *THREADS=1*) 7268 if test "${TCL_THREADS}" = "0"; then 7269 { echo "$as_me:$LINENO: WARNING: 7270 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7271 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7272echo "$as_me: WARNING: 7273 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7274 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7275 fi 7276 ;; 7277 *) 7278 if test "${TCL_THREADS}" = "1"; then 7279 { echo "$as_me:$LINENO: WARNING: 7280 --enable-threads requested, but building against a Tcl that is NOT 7281 thread-enabled. This is an OK configuration that will also run in 7282 a thread-enabled core." >&5 7283echo "$as_me: WARNING: 7284 --enable-threads requested, but building against a Tcl that is NOT 7285 thread-enabled. This is an OK configuration that will also run in 7286 a thread-enabled core." >&2;} 7287 fi 7288 ;; 7289 esac 7290 7291 7292 7293#-------------------------------------------------------------------- 7294# The statement below defines a collection of symbols related to 7295# building as a shared library instead of a static library. 7296#-------------------------------------------------------------------- 7297 7298 7299 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7300echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7301 # Check whether --enable-shared was given. 7302if test "${enable_shared+set}" = set; then 7303 enableval=$enable_shared; tcl_ok=$enableval 7304else 7305 tcl_ok=yes 7306fi 7307 7308 7309 if test "${enable_shared+set}" = set; then 7310 enableval="$enable_shared" 7311 tcl_ok=$enableval 7312 else 7313 tcl_ok=yes 7314 fi 7315 7316 if test "$tcl_ok" = "yes" ; then 7317 { echo "$as_me:$LINENO: result: shared" >&5 7318echo "${ECHO_T}shared" >&6; } 7319 SHARED_BUILD=1 7320 else 7321 { echo "$as_me:$LINENO: result: static" >&5 7322echo "${ECHO_T}static" >&6; } 7323 SHARED_BUILD=0 7324 7325cat >>confdefs.h <<\_ACEOF 7326#define STATIC_BUILD 1 7327_ACEOF 7328 7329 fi 7330 7331 7332 7333#-------------------------------------------------------------------- 7334# This macro figures out what flags to use with the compiler/linker 7335# when building shared/static debug/optimized objects. This information 7336# can be taken from the tclConfig.sh file, but this figures it all out. 7337#-------------------------------------------------------------------- 7338 7339 7340 7341 7342 # Step 0.a: Enable 64 bit support? 7343 7344 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7345echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 7346 # Check whether --enable-64bit was given. 7347if test "${enable_64bit+set}" = set; then 7348 enableval=$enable_64bit; do64bit=$enableval 7349else 7350 do64bit=no 7351fi 7352 7353 { echo "$as_me:$LINENO: result: $do64bit" >&5 7354echo "${ECHO_T}$do64bit" >&6; } 7355 7356 # Step 0.b: Enable Solaris 64 bit VIS support? 7357 7358 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7359echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 7360 # Check whether --enable-64bit-vis was given. 7361if test "${enable_64bit_vis+set}" = set; then 7362 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7363else 7364 do64bitVIS=no 7365fi 7366 7367 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7368echo "${ECHO_T}$do64bitVIS" >&6; } 7369 # Force 64bit on with VIS 7370 if test "$do64bitVIS" = "yes"; then 7371 do64bit=yes 7372fi 7373 7374 7375 # Step 0.c: Check if visibility support is available. Do this here so 7376 # that platform specific alternatives can be used below if this fails. 7377 7378 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7379echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 7380if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7381 echo $ECHO_N "(cached) $ECHO_C" >&6 7382else 7383 7384 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7385 cat >conftest.$ac_ext <<_ACEOF 7386/* confdefs.h. */ 7387_ACEOF 7388cat confdefs.h >>conftest.$ac_ext 7389cat >>conftest.$ac_ext <<_ACEOF 7390/* end confdefs.h. */ 7391 7392 extern __attribute__((__visibility__("hidden"))) void f(void); 7393 void f(void) {} 7394int 7395main () 7396{ 7397f(); 7398 ; 7399 return 0; 7400} 7401_ACEOF 7402rm -f conftest.$ac_objext conftest$ac_exeext 7403if { (ac_try="$ac_link" 7404case "(($ac_try" in 7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7406 *) ac_try_echo=$ac_try;; 7407esac 7408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7409 (eval "$ac_link") 2>conftest.er1 7410 ac_status=$? 7411 grep -v '^ *+' conftest.er1 >conftest.err 7412 rm -f conftest.er1 7413 cat conftest.err >&5 7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7415 (exit $ac_status); } && { 7416 test -z "$ac_c_werror_flag" || 7417 test ! -s conftest.err 7418 } && test -s conftest$ac_exeext && 7419 $as_test_x conftest$ac_exeext; then 7420 tcl_cv_cc_visibility_hidden=yes 7421else 7422 echo "$as_me: failed program was:" >&5 7423sed 's/^/| /' conftest.$ac_ext >&5 7424 7425 tcl_cv_cc_visibility_hidden=no 7426fi 7427 7428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7429 conftest$ac_exeext conftest.$ac_ext 7430 CFLAGS=$hold_cflags 7431fi 7432{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7433echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 7434 if test $tcl_cv_cc_visibility_hidden = yes; then 7435 7436 7437cat >>confdefs.h <<\_ACEOF 7438#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7439_ACEOF 7440 7441 7442fi 7443 7444 7445 # Step 0.d: Disable -rpath support? 7446 7447 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7448echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 7449 # Check whether --enable-rpath was given. 7450if test "${enable_rpath+set}" = set; then 7451 enableval=$enable_rpath; doRpath=$enableval 7452else 7453 doRpath=yes 7454fi 7455 7456 { echo "$as_me:$LINENO: result: $doRpath" >&5 7457echo "${ECHO_T}$doRpath" >&6; } 7458 7459 # TEA specific: Cross-compiling options for Windows/CE builds? 7460 7461 if test "${TEA_PLATFORM}" = windows; then 7462 7463 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7464echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 7465 # Check whether --enable-wince was given. 7466if test "${enable_wince+set}" = set; then 7467 enableval=$enable_wince; doWince=$enableval 7468else 7469 doWince=no 7470fi 7471 7472 { echo "$as_me:$LINENO: result: $doWince" >&5 7473echo "${ECHO_T}$doWince" >&6; } 7474 7475fi 7476 7477 7478 # Set the variable "system" to hold the name and version number 7479 # for the system. 7480 7481 7482 { echo "$as_me:$LINENO: checking system version" >&5 7483echo $ECHO_N "checking system version... $ECHO_C" >&6; } 7484if test "${tcl_cv_sys_version+set}" = set; then 7485 echo $ECHO_N "(cached) $ECHO_C" >&6 7486else 7487 7488 # TEA specific: 7489 if test "${TEA_PLATFORM}" = "windows" ; then 7490 tcl_cv_sys_version=windows 7491 else 7492 tcl_cv_sys_version=`uname -s`-`uname -r` 7493 if test "$?" -ne 0 ; then 7494 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7495echo "$as_me: WARNING: can't find uname command" >&2;} 7496 tcl_cv_sys_version=unknown 7497 else 7498 if test "`uname -s`" = "AIX" ; then 7499 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7500 fi 7501 fi 7502 fi 7503 7504fi 7505{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7506echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 7507 system=$tcl_cv_sys_version 7508 7509 7510 # Require ranlib early so we can override it in special cases below. 7511 7512 7513 7514 # Set configuration options based on system name and version. 7515 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7516 # "windows" case and removed some core-only vars. 7517 7518 do64bit_ok=no 7519 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7520 SHLIB_LD_LIBS='${LIBS}' 7521 # When ld needs options to work in 64-bit mode, put them in 7522 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7523 # is disabled by the user. [Bug 1016796] 7524 LDFLAGS_ARCH="" 7525 UNSHARED_LIB_SUFFIX="" 7526 # TEA specific: use PACKAGE_VERSION instead of VERSION 7527 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7528 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7529 TCL_LIB_VERSIONS_OK=ok 7530 CFLAGS_DEBUG=-g 7531 CFLAGS_OPTIMIZE=-O 7532 if test "$GCC" = yes; then 7533 7534 # TEA specific: 7535 CFLAGS_OPTIMIZE=-O2 7536 CFLAGS_WARNING="-Wall" 7537 7538else 7539 CFLAGS_WARNING="" 7540fi 7541 7542 # Extract the first word of "ar", so it can be a program name with args. 7543set dummy ar; ac_word=$2 7544{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7546if test "${ac_cv_prog_AR+set}" = set; then 7547 echo $ECHO_N "(cached) $ECHO_C" >&6 7548else 7549 if test -n "$AR"; then 7550 ac_cv_prog_AR="$AR" # Let the user override the test. 7551else 7552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7553for as_dir in $PATH 7554do 7555 IFS=$as_save_IFS 7556 test -z "$as_dir" && as_dir=. 7557 for ac_exec_ext in '' $ac_executable_extensions; do 7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7559 ac_cv_prog_AR="ar" 7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7561 break 2 7562 fi 7563done 7564done 7565IFS=$as_save_IFS 7566 7567fi 7568fi 7569AR=$ac_cv_prog_AR 7570if test -n "$AR"; then 7571 { echo "$as_me:$LINENO: result: $AR" >&5 7572echo "${ECHO_T}$AR" >&6; } 7573else 7574 { echo "$as_me:$LINENO: result: no" >&5 7575echo "${ECHO_T}no" >&6; } 7576fi 7577 7578 7579 STLIB_LD='${AR} cr' 7580 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7581 if test "x$SHLIB_VERSION" = x; then 7582 SHLIB_VERSION="1.0" 7583fi 7584 7585 case $system in 7586 # TEA specific: 7587 windows) 7588 # This is a 2-stage check to make sure we have the 64-bit SDK 7589 # We have to know where the SDK is installed. 7590 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7591 # MACHINE is IX86 for LINK, but this is used by the manifest, 7592 # which requires x86|amd64|ia64. 7593 MACHINE="X86" 7594 if test "$do64bit" != "no" ; then 7595 if test "x${MSSDK}x" = "xx" ; then 7596 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7597 fi 7598 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7599 PATH64="" 7600 case "$do64bit" in 7601 amd64|x64|yes) 7602 MACHINE="AMD64" ; # default to AMD64 64-bit build 7603 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7604 ;; 7605 ia64) 7606 MACHINE="IA64" 7607 PATH64="${MSSDK}/Bin/Win64" 7608 ;; 7609 esac 7610 if test ! -d "${PATH64}" ; then 7611 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7612echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7613 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7614echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7615 do64bit="no" 7616 else 7617 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7618echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 7619 do64bit_ok="yes" 7620 fi 7621 fi 7622 7623 if test "$doWince" != "no" ; then 7624 if test "$do64bit" != "no" ; then 7625 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7626echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7627 { (exit 1); exit 1; }; } 7628 fi 7629 if test "$GCC" = "yes" ; then 7630 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7631echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7632 { (exit 1); exit 1; }; } 7633 fi 7634 7635 # First, look for one uninstalled. 7636 # the alternative search directory is invoked by --with-celib 7637 7638 if test x"${no_celib}" = x ; then 7639 # we reset no_celib in case something fails here 7640 no_celib=true 7641 7642# Check whether --with-celib was given. 7643if test "${with_celib+set}" = set; then 7644 withval=$with_celib; with_celibconfig=${withval} 7645fi 7646 7647 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7648echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 7649 if test "${ac_cv_c_celibconfig+set}" = set; then 7650 echo $ECHO_N "(cached) $ECHO_C" >&6 7651else 7652 7653 # First check to see if --with-celibconfig was specified. 7654 if test x"${with_celibconfig}" != x ; then 7655 if test -d "${with_celibconfig}/inc" ; then 7656 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7657 else 7658 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7659echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7660 { (exit 1); exit 1; }; } 7661 fi 7662 fi 7663 7664 # then check for a celib library 7665 if test x"${ac_cv_c_celibconfig}" = x ; then 7666 for i in \ 7667 ../celib-palm-3.0 \ 7668 ../celib \ 7669 ../../celib-palm-3.0 \ 7670 ../../celib \ 7671 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7672 ${srcdir}/../celib-palm-3.0 \ 7673 ${srcdir}/../celib \ 7674 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7675 ; do 7676 if test -d "$i/inc" ; then 7677 ac_cv_c_celibconfig=`(cd $i; pwd)` 7678 break 7679 fi 7680 done 7681 fi 7682 7683fi 7684 7685 if test x"${ac_cv_c_celibconfig}" = x ; then 7686 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7687echo "$as_me: error: Cannot find celib support library directory" >&2;} 7688 { (exit 1); exit 1; }; } 7689 else 7690 no_celib= 7691 CELIB_DIR=${ac_cv_c_celibconfig} 7692 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7693 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7694echo "${ECHO_T}found $CELIB_DIR" >&6; } 7695 fi 7696 fi 7697 7698 # Set defaults for common evc4/PPC2003 setup 7699 # Currently Tcl requires 300+, possibly 420+ for sockets 7700 CEVERSION=420; # could be 211 300 301 400 420 ... 7701 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7702 ARCH=ARM; # could be ARM MIPS X86EM ... 7703 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7704 if test "$doWince" != "yes"; then 7705 # If !yes then the user specified something 7706 # Reset ARCH to allow user to skip specifying it 7707 ARCH= 7708 eval `echo $doWince | awk -F, '{ \ 7709 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7710 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7711 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7712 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7713 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7714 }'` 7715 if test "x${ARCH}" = "x" ; then 7716 ARCH=$TARGETCPU; 7717 fi 7718 fi 7719 OSVERSION=WCE$CEVERSION; 7720 if test "x${WCEROOT}" = "x" ; then 7721 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7722 if test ! -d "${WCEROOT}" ; then 7723 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7724 fi 7725 fi 7726 if test "x${SDKROOT}" = "x" ; then 7727 SDKROOT="C:/Program Files/Windows CE Tools" 7728 if test ! -d "${SDKROOT}" ; then 7729 SDKROOT="C:/Windows CE Tools" 7730 fi 7731 fi 7732 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7733 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7734 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7735 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7736 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7737echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7738 { (exit 1); exit 1; }; } 7739 doWince="no" 7740 else 7741 # We could PATH_NOSPACE these, but that's not important, 7742 # as long as we quote them when used. 7743 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7744 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7745 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7746 fi 7747 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7748 fi 7749 fi 7750 7751 if test "$GCC" != "yes" ; then 7752 if test "${SHARED_BUILD}" = "0" ; then 7753 runtime=-MT 7754 else 7755 runtime=-MD 7756 fi 7757 7758 if test "$do64bit" != "no" ; then 7759 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7760 CC="\"${PATH64}/cl.exe\"" 7761 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7762 RC="\"${MSSDK}/bin/rc.exe\"" 7763 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7764 LINKBIN="\"${PATH64}/link.exe\"" 7765 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7766 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7767 # Avoid 'unresolved external symbol __security_cookie' 7768 # errors, c.f. http://support.microsoft.com/?id=894573 7769 7770 vars="bufferoverflowU.lib" 7771 for i in $vars; do 7772 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7773 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7774 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7775 fi 7776 PKG_LIBS="$PKG_LIBS $i" 7777 done 7778 7779 7780 elif test "$doWince" != "no" ; then 7781 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7782 if test "${TARGETCPU}" = "X86"; then 7783 CC="\"${CEBINROOT}/cl.exe\"" 7784 else 7785 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 7786 fi 7787 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7788 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 7789 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 7790 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 7791 if test "${SHARED_BUILD}" = "1" ; then 7792 # Static CE builds require static celib as well 7793 defs="${defs} _DLL" 7794 fi 7795 for i in $defs ; do 7796 7797cat >>confdefs.h <<_ACEOF 7798#define $i 1 7799_ACEOF 7800 7801 done 7802 7803cat >>confdefs.h <<_ACEOF 7804#define _WIN32_WCE $CEVERSION 7805_ACEOF 7806 7807 7808cat >>confdefs.h <<_ACEOF 7809#define UNDER_CE $CEVERSION 7810_ACEOF 7811 7812 CFLAGS_DEBUG="-nologo -Zi -Od" 7813 CFLAGS_OPTIMIZE="-nologo -Ox" 7814 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 7815 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 7816 LINKBIN="\"${CEBINROOT}/link.exe\"" 7817 7818 else 7819 RC="rc" 7820 lflags="-nologo" 7821 LINKBIN="link" 7822 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 7823 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7824 fi 7825 fi 7826 7827 if test "$GCC" = "yes"; then 7828 # mingw gcc mode 7829 RC="windres" 7830 CFLAGS_DEBUG="-g" 7831 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 7832 SHLIB_LD="$CC -shared" 7833 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7834 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 7835 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 7836 else 7837 SHLIB_LD="${LINKBIN} -dll ${lflags}" 7838 # link -lib only works when -lib is the first arg 7839 STLIB_LD="${LINKBIN} -lib ${lflags}" 7840 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 7841 PATHTYPE=-w 7842 # For information on what debugtype is most useful, see: 7843 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 7844 # and also 7845 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 7846 # This essentially turns it all on. 7847 LDFLAGS_DEBUG="-debug -debugtype:cv" 7848 LDFLAGS_OPTIMIZE="-release" 7849 if test "$doWince" != "no" ; then 7850 LDFLAGS_CONSOLE="-link ${lflags}" 7851 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 7852 else 7853 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 7854 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 7855 fi 7856 fi 7857 7858 SHLIB_SUFFIX=".dll" 7859 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 7860 7861 TCL_LIB_VERSIONS_OK=nodots 7862 ;; 7863 AIX-*) 7864 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 7865 7866 # AIX requires the _r compiler when gcc isn't being used 7867 case "${CC}" in 7868 *_r|*_r\ *) 7869 # ok ... 7870 ;; 7871 *) 7872 # Make sure only first arg gets _r 7873 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 7874 ;; 7875 esac 7876 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 7877echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 7878 7879fi 7880 7881 LIBS="$LIBS -lc" 7882 SHLIB_CFLAGS="" 7883 SHLIB_SUFFIX=".so" 7884 7885 LD_LIBRARY_PATH_VAR="LIBPATH" 7886 7887 # Check to enable 64-bit flags for compiler/linker 7888 if test "$do64bit" = yes; then 7889 7890 if test "$GCC" = yes; then 7891 7892 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 7893echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 7894 7895else 7896 7897 do64bit_ok=yes 7898 CFLAGS="$CFLAGS -q64" 7899 LDFLAGS_ARCH="-q64" 7900 RANLIB="${RANLIB} -X64" 7901 AR="${AR} -X64" 7902 SHLIB_LD_FLAGS="-b64" 7903 7904fi 7905 7906 7907fi 7908 7909 7910 if test "`uname -m`" = ia64; then 7911 7912 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 7913 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 7914 if test "$GCC" = yes; then 7915 7916 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7917 7918else 7919 7920 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 7921 7922fi 7923 7924 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 7925 7926else 7927 7928 if test "$GCC" = yes; then 7929 7930 SHLIB_LD='${CC} -shared -Wl,-bexpall' 7931 7932else 7933 7934 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 7935 LDFLAGS="$LDFLAGS -brtl" 7936 7937fi 7938 7939 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 7940 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 7941 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7942 7943fi 7944 7945 ;; 7946 BeOS*) 7947 SHLIB_CFLAGS="-fPIC" 7948 SHLIB_LD='${CC} -nostart' 7949 SHLIB_SUFFIX=".so" 7950 7951 #----------------------------------------------------------- 7952 # Check for inet_ntoa in -lbind, for BeOS (which also needs 7953 # -lsocket, even if the network functions are in -lnet which 7954 # is always linked to, for compatibility. 7955 #----------------------------------------------------------- 7956 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 7957echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 7958if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 7959 echo $ECHO_N "(cached) $ECHO_C" >&6 7960else 7961 ac_check_lib_save_LIBS=$LIBS 7962LIBS="-lbind $LIBS" 7963cat >conftest.$ac_ext <<_ACEOF 7964/* confdefs.h. */ 7965_ACEOF 7966cat confdefs.h >>conftest.$ac_ext 7967cat >>conftest.$ac_ext <<_ACEOF 7968/* end confdefs.h. */ 7969 7970/* Override any GCC internal prototype to avoid an error. 7971 Use char because int might match the return type of a GCC 7972 builtin and then its argument prototype would still apply. */ 7973#ifdef __cplusplus 7974extern "C" 7975#endif 7976char inet_ntoa (); 7977int 7978main () 7979{ 7980return inet_ntoa (); 7981 ; 7982 return 0; 7983} 7984_ACEOF 7985rm -f conftest.$ac_objext conftest$ac_exeext 7986if { (ac_try="$ac_link" 7987case "(($ac_try" in 7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7989 *) ac_try_echo=$ac_try;; 7990esac 7991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7992 (eval "$ac_link") 2>conftest.er1 7993 ac_status=$? 7994 grep -v '^ *+' conftest.er1 >conftest.err 7995 rm -f conftest.er1 7996 cat conftest.err >&5 7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7998 (exit $ac_status); } && { 7999 test -z "$ac_c_werror_flag" || 8000 test ! -s conftest.err 8001 } && test -s conftest$ac_exeext && 8002 $as_test_x conftest$ac_exeext; then 8003 ac_cv_lib_bind_inet_ntoa=yes 8004else 8005 echo "$as_me: failed program was:" >&5 8006sed 's/^/| /' conftest.$ac_ext >&5 8007 8008 ac_cv_lib_bind_inet_ntoa=no 8009fi 8010 8011rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8012 conftest$ac_exeext conftest.$ac_ext 8013LIBS=$ac_check_lib_save_LIBS 8014fi 8015{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8016echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8017if test $ac_cv_lib_bind_inet_ntoa = yes; then 8018 LIBS="$LIBS -lbind -lsocket" 8019fi 8020 8021 ;; 8022 BSD/OS-4.*) 8023 SHLIB_CFLAGS="-export-dynamic -fPIC" 8024 SHLIB_LD='${CC} -shared' 8025 SHLIB_SUFFIX=".so" 8026 LDFLAGS="$LDFLAGS -export-dynamic" 8027 CC_SEARCH_FLAGS="" 8028 LD_SEARCH_FLAGS="" 8029 ;; 8030 CYGWIN_*) 8031 SHLIB_CFLAGS="" 8032 SHLIB_LD='${CC} -shared' 8033 SHLIB_SUFFIX=".dll" 8034 EXE_SUFFIX=".exe" 8035 CC_SEARCH_FLAGS="" 8036 LD_SEARCH_FLAGS="" 8037 ;; 8038 Haiku*) 8039 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8040 SHLIB_CFLAGS="-fPIC" 8041 SHLIB_SUFFIX=".so" 8042 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8043 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8044echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8045if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8046 echo $ECHO_N "(cached) $ECHO_C" >&6 8047else 8048 ac_check_lib_save_LIBS=$LIBS 8049LIBS="-lnetwork $LIBS" 8050cat >conftest.$ac_ext <<_ACEOF 8051/* confdefs.h. */ 8052_ACEOF 8053cat confdefs.h >>conftest.$ac_ext 8054cat >>conftest.$ac_ext <<_ACEOF 8055/* end confdefs.h. */ 8056 8057/* Override any GCC internal prototype to avoid an error. 8058 Use char because int might match the return type of a GCC 8059 builtin and then its argument prototype would still apply. */ 8060#ifdef __cplusplus 8061extern "C" 8062#endif 8063char inet_ntoa (); 8064int 8065main () 8066{ 8067return inet_ntoa (); 8068 ; 8069 return 0; 8070} 8071_ACEOF 8072rm -f conftest.$ac_objext conftest$ac_exeext 8073if { (ac_try="$ac_link" 8074case "(($ac_try" in 8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8076 *) ac_try_echo=$ac_try;; 8077esac 8078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8079 (eval "$ac_link") 2>conftest.er1 8080 ac_status=$? 8081 grep -v '^ *+' conftest.er1 >conftest.err 8082 rm -f conftest.er1 8083 cat conftest.err >&5 8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8085 (exit $ac_status); } && { 8086 test -z "$ac_c_werror_flag" || 8087 test ! -s conftest.err 8088 } && test -s conftest$ac_exeext && 8089 $as_test_x conftest$ac_exeext; then 8090 ac_cv_lib_network_inet_ntoa=yes 8091else 8092 echo "$as_me: failed program was:" >&5 8093sed 's/^/| /' conftest.$ac_ext >&5 8094 8095 ac_cv_lib_network_inet_ntoa=no 8096fi 8097 8098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8099 conftest$ac_exeext conftest.$ac_ext 8100LIBS=$ac_check_lib_save_LIBS 8101fi 8102{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8103echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8104if test $ac_cv_lib_network_inet_ntoa = yes; then 8105 LIBS="$LIBS -lnetwork" 8106fi 8107 8108 ;; 8109 HP-UX-*.11.*) 8110 # Use updated header definitions where possible 8111 8112cat >>confdefs.h <<\_ACEOF 8113#define _XOPEN_SOURCE_EXTENDED 1 8114_ACEOF 8115 8116 # TEA specific: Needed by Tcl, but not most extensions 8117 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8118 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8119 8120 if test "`uname -m`" = ia64; then 8121 8122 SHLIB_SUFFIX=".so" 8123 # Use newer C++ library for C++ extensions 8124 #if test "$GCC" != "yes" ; then 8125 # CPPFLAGS="-AA" 8126 #fi 8127 8128else 8129 8130 SHLIB_SUFFIX=".sl" 8131 8132fi 8133 8134 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8135echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8136if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8137 echo $ECHO_N "(cached) $ECHO_C" >&6 8138else 8139 ac_check_lib_save_LIBS=$LIBS 8140LIBS="-ldld $LIBS" 8141cat >conftest.$ac_ext <<_ACEOF 8142/* confdefs.h. */ 8143_ACEOF 8144cat confdefs.h >>conftest.$ac_ext 8145cat >>conftest.$ac_ext <<_ACEOF 8146/* end confdefs.h. */ 8147 8148/* Override any GCC internal prototype to avoid an error. 8149 Use char because int might match the return type of a GCC 8150 builtin and then its argument prototype would still apply. */ 8151#ifdef __cplusplus 8152extern "C" 8153#endif 8154char shl_load (); 8155int 8156main () 8157{ 8158return shl_load (); 8159 ; 8160 return 0; 8161} 8162_ACEOF 8163rm -f conftest.$ac_objext conftest$ac_exeext 8164if { (ac_try="$ac_link" 8165case "(($ac_try" in 8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8167 *) ac_try_echo=$ac_try;; 8168esac 8169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8170 (eval "$ac_link") 2>conftest.er1 8171 ac_status=$? 8172 grep -v '^ *+' conftest.er1 >conftest.err 8173 rm -f conftest.er1 8174 cat conftest.err >&5 8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8176 (exit $ac_status); } && { 8177 test -z "$ac_c_werror_flag" || 8178 test ! -s conftest.err 8179 } && test -s conftest$ac_exeext && 8180 $as_test_x conftest$ac_exeext; then 8181 ac_cv_lib_dld_shl_load=yes 8182else 8183 echo "$as_me: failed program was:" >&5 8184sed 's/^/| /' conftest.$ac_ext >&5 8185 8186 ac_cv_lib_dld_shl_load=no 8187fi 8188 8189rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8190 conftest$ac_exeext conftest.$ac_ext 8191LIBS=$ac_check_lib_save_LIBS 8192fi 8193{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8194echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8195if test $ac_cv_lib_dld_shl_load = yes; then 8196 tcl_ok=yes 8197else 8198 tcl_ok=no 8199fi 8200 8201 if test "$tcl_ok" = yes; then 8202 8203 LDFLAGS="$LDFLAGS -E" 8204 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8205 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8206 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8207 8208fi 8209 8210 if test "$GCC" = yes; then 8211 8212 SHLIB_LD='${CC} -shared' 8213 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8214 8215else 8216 8217 CFLAGS="$CFLAGS -z" 8218 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8219 #CFLAGS="$CFLAGS +DAportable" 8220 SHLIB_CFLAGS="+z" 8221 SHLIB_LD="ld -b" 8222 8223fi 8224 8225 8226 # Check to enable 64-bit flags for compiler/linker 8227 if test "$do64bit" = "yes"; then 8228 8229 if test "$GCC" = yes; then 8230 8231 case `${CC} -dumpmachine` in 8232 hppa64*) 8233 # 64-bit gcc in use. Fix flags for GNU ld. 8234 do64bit_ok=yes 8235 SHLIB_LD='${CC} -shared' 8236 if test $doRpath = yes; then 8237 8238 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8239fi 8240 8241 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8242 ;; 8243 *) 8244 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8245echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8246 ;; 8247 esac 8248 8249else 8250 8251 do64bit_ok=yes 8252 CFLAGS="$CFLAGS +DD64" 8253 LDFLAGS_ARCH="+DD64" 8254 8255fi 8256 8257 8258fi 8259 ;; 8260 IRIX-6.*) 8261 SHLIB_CFLAGS="" 8262 SHLIB_LD="ld -n32 -shared -rdata_shared" 8263 SHLIB_SUFFIX=".so" 8264 if test $doRpath = yes; then 8265 8266 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8267 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8268fi 8269 8270 if test "$GCC" = yes; then 8271 8272 CFLAGS="$CFLAGS -mabi=n32" 8273 LDFLAGS="$LDFLAGS -mabi=n32" 8274 8275else 8276 8277 case $system in 8278 IRIX-6.3) 8279 # Use to build 6.2 compatible binaries on 6.3. 8280 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8281 ;; 8282 *) 8283 CFLAGS="$CFLAGS -n32" 8284 ;; 8285 esac 8286 LDFLAGS="$LDFLAGS -n32" 8287 8288fi 8289 8290 ;; 8291 IRIX64-6.*) 8292 SHLIB_CFLAGS="" 8293 SHLIB_LD="ld -n32 -shared -rdata_shared" 8294 SHLIB_SUFFIX=".so" 8295 if test $doRpath = yes; then 8296 8297 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8298 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8299fi 8300 8301 8302 # Check to enable 64-bit flags for compiler/linker 8303 8304 if test "$do64bit" = yes; then 8305 8306 if test "$GCC" = yes; then 8307 8308 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8309echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8310 8311else 8312 8313 do64bit_ok=yes 8314 SHLIB_LD="ld -64 -shared -rdata_shared" 8315 CFLAGS="$CFLAGS -64" 8316 LDFLAGS_ARCH="-64" 8317 8318fi 8319 8320 8321fi 8322 8323 ;; 8324 Linux*) 8325 SHLIB_CFLAGS="-fPIC" 8326 SHLIB_SUFFIX=".so" 8327 8328 # TEA specific: 8329 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8330 8331 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8332 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8333 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8334 if test $doRpath = yes; then 8335 8336 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8337fi 8338 8339 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8340 if test "`uname -m`" = "alpha"; then 8341 CFLAGS="$CFLAGS -mieee" 8342fi 8343 8344 if test $do64bit = yes; then 8345 8346 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8347echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 8348if test "${tcl_cv_cc_m64+set}" = set; then 8349 echo $ECHO_N "(cached) $ECHO_C" >&6 8350else 8351 8352 hold_cflags=$CFLAGS 8353 CFLAGS="$CFLAGS -m64" 8354 cat >conftest.$ac_ext <<_ACEOF 8355/* confdefs.h. */ 8356_ACEOF 8357cat confdefs.h >>conftest.$ac_ext 8358cat >>conftest.$ac_ext <<_ACEOF 8359/* end confdefs.h. */ 8360 8361int 8362main () 8363{ 8364 8365 ; 8366 return 0; 8367} 8368_ACEOF 8369rm -f conftest.$ac_objext conftest$ac_exeext 8370if { (ac_try="$ac_link" 8371case "(($ac_try" in 8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8373 *) ac_try_echo=$ac_try;; 8374esac 8375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8376 (eval "$ac_link") 2>conftest.er1 8377 ac_status=$? 8378 grep -v '^ *+' conftest.er1 >conftest.err 8379 rm -f conftest.er1 8380 cat conftest.err >&5 8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8382 (exit $ac_status); } && { 8383 test -z "$ac_c_werror_flag" || 8384 test ! -s conftest.err 8385 } && test -s conftest$ac_exeext && 8386 $as_test_x conftest$ac_exeext; then 8387 tcl_cv_cc_m64=yes 8388else 8389 echo "$as_me: failed program was:" >&5 8390sed 's/^/| /' conftest.$ac_ext >&5 8391 8392 tcl_cv_cc_m64=no 8393fi 8394 8395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8396 conftest$ac_exeext conftest.$ac_ext 8397 CFLAGS=$hold_cflags 8398fi 8399{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8400echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 8401 if test $tcl_cv_cc_m64 = yes; then 8402 8403 CFLAGS="$CFLAGS -m64" 8404 do64bit_ok=yes 8405 8406fi 8407 8408 8409fi 8410 8411 8412 # The combo of gcc + glibc has a bug related to inlining of 8413 # functions like strtod(). The -fno-builtin flag should address 8414 # this problem but it does not work. The -fno-inline flag is kind 8415 # of overkill but it works. Disable inlining only when one of the 8416 # files in compat/*.c is being linked in. 8417 8418 if test x"${USE_COMPAT}" != x; then 8419 CFLAGS="$CFLAGS -fno-inline" 8420fi 8421 8422 8423 ;; 8424 GNU*) 8425 SHLIB_CFLAGS="-fPIC" 8426 SHLIB_SUFFIX=".so" 8427 8428 SHLIB_LD='${CC} -shared' 8429 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8430 CC_SEARCH_FLAGS="" 8431 LD_SEARCH_FLAGS="" 8432 if test "`uname -m`" = "alpha"; then 8433 CFLAGS="$CFLAGS -mieee" 8434fi 8435 8436 ;; 8437 Lynx*) 8438 SHLIB_CFLAGS="-fPIC" 8439 SHLIB_SUFFIX=".so" 8440 CFLAGS_OPTIMIZE=-02 8441 SHLIB_LD='${CC} -shared' 8442 LD_FLAGS="-Wl,--export-dynamic" 8443 if test $doRpath = yes; then 8444 8445 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8446 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8447fi 8448 8449 ;; 8450 OpenBSD-*) 8451 SHLIB_CFLAGS="-fPIC" 8452 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8453 SHLIB_SUFFIX=".so" 8454 if test $doRpath = yes; then 8455 8456 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8457fi 8458 8459 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8460 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8461 { echo "$as_me:$LINENO: checking for ELF" >&5 8462echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 8463if test "${tcl_cv_ld_elf+set}" = set; then 8464 echo $ECHO_N "(cached) $ECHO_C" >&6 8465else 8466 8467 cat >conftest.$ac_ext <<_ACEOF 8468/* confdefs.h. */ 8469_ACEOF 8470cat confdefs.h >>conftest.$ac_ext 8471cat >>conftest.$ac_ext <<_ACEOF 8472/* end confdefs.h. */ 8473 8474#ifdef __ELF__ 8475 yes 8476#endif 8477 8478_ACEOF 8479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8480 $EGREP "yes" >/dev/null 2>&1; then 8481 tcl_cv_ld_elf=yes 8482else 8483 tcl_cv_ld_elf=no 8484fi 8485rm -f -r conftest* 8486 8487fi 8488{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8489echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 8490 if test $tcl_cv_ld_elf = yes; then 8491 8492 LDFLAGS=-Wl,-export-dynamic 8493 8494else 8495 LDFLAGS="" 8496fi 8497 8498 if test "${TCL_THREADS}" = "1"; then 8499 8500 # OpenBSD builds and links with -pthread, never -lpthread. 8501 LIBS=`echo $LIBS | sed s/-lpthread//` 8502 CFLAGS="$CFLAGS -pthread" 8503 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8504 8505fi 8506 8507 # OpenBSD doesn't do version numbers with dots. 8508 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8509 TCL_LIB_VERSIONS_OK=nodots 8510 ;; 8511 NetBSD-*|FreeBSD-[3-4].*) 8512 # FreeBSD 3.* and greater have ELF. 8513 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8514 SHLIB_CFLAGS="-fPIC" 8515 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8516 SHLIB_SUFFIX=".so" 8517 LDFLAGS="$LDFLAGS -export-dynamic" 8518 if test $doRpath = yes; then 8519 8520 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8521fi 8522 8523 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8524 if test "${TCL_THREADS}" = "1"; then 8525 8526 # The -pthread needs to go in the CFLAGS, not LIBS 8527 LIBS=`echo $LIBS | sed s/-pthread//` 8528 CFLAGS="$CFLAGS -pthread" 8529 LDFLAGS="$LDFLAGS -pthread" 8530 8531fi 8532 8533 case $system in 8534 FreeBSD-3.*) 8535 # FreeBSD-3 doesn't handle version numbers with dots. 8536 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8537 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8538 TCL_LIB_VERSIONS_OK=nodots 8539 ;; 8540 esac 8541 ;; 8542 FreeBSD-*) 8543 # This configuration from FreeBSD Ports. 8544 SHLIB_CFLAGS="-fPIC" 8545 SHLIB_LD="${CC} -shared" 8546 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8547 SHLIB_SUFFIX=".so" 8548 LDFLAGS="" 8549 if test $doRpath = yes; then 8550 8551 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8552 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8553fi 8554 8555 if test "${TCL_THREADS}" = "1"; then 8556 8557 # The -pthread needs to go in the LDFLAGS, not LIBS 8558 LIBS=`echo $LIBS | sed s/-pthread//` 8559 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8560 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8561fi 8562 8563 # Version numbers are dot-stripped by system policy. 8564 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8565 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8566 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8567 TCL_LIB_VERSIONS_OK=nodots 8568 ;; 8569 Darwin-*) 8570 CFLAGS_OPTIMIZE="-Os" 8571 SHLIB_CFLAGS="-fno-common" 8572 # To avoid discrepancies between what headers configure sees during 8573 # preprocessing tests and compiling tests, move any -isysroot and 8574 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8575 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8576 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8577 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8578 CFLAGS="`echo " ${CFLAGS}" | \ 8579 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8580 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8581 if test $do64bit = yes; then 8582 8583 case `arch` in 8584 ppc) 8585 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8586echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 8587if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8588 echo $ECHO_N "(cached) $ECHO_C" >&6 8589else 8590 8591 hold_cflags=$CFLAGS 8592 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8593 cat >conftest.$ac_ext <<_ACEOF 8594/* confdefs.h. */ 8595_ACEOF 8596cat confdefs.h >>conftest.$ac_ext 8597cat >>conftest.$ac_ext <<_ACEOF 8598/* end confdefs.h. */ 8599 8600int 8601main () 8602{ 8603 8604 ; 8605 return 0; 8606} 8607_ACEOF 8608rm -f conftest.$ac_objext conftest$ac_exeext 8609if { (ac_try="$ac_link" 8610case "(($ac_try" in 8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8612 *) ac_try_echo=$ac_try;; 8613esac 8614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8615 (eval "$ac_link") 2>conftest.er1 8616 ac_status=$? 8617 grep -v '^ *+' conftest.er1 >conftest.err 8618 rm -f conftest.er1 8619 cat conftest.err >&5 8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8621 (exit $ac_status); } && { 8622 test -z "$ac_c_werror_flag" || 8623 test ! -s conftest.err 8624 } && test -s conftest$ac_exeext && 8625 $as_test_x conftest$ac_exeext; then 8626 tcl_cv_cc_arch_ppc64=yes 8627else 8628 echo "$as_me: failed program was:" >&5 8629sed 's/^/| /' conftest.$ac_ext >&5 8630 8631 tcl_cv_cc_arch_ppc64=no 8632fi 8633 8634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8635 conftest$ac_exeext conftest.$ac_ext 8636 CFLAGS=$hold_cflags 8637fi 8638{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8639echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 8640 if test $tcl_cv_cc_arch_ppc64 = yes; then 8641 8642 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8643 do64bit_ok=yes 8644 8645fi 8646;; 8647 i386) 8648 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8649echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 8650if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8651 echo $ECHO_N "(cached) $ECHO_C" >&6 8652else 8653 8654 hold_cflags=$CFLAGS 8655 CFLAGS="$CFLAGS -arch x86_64" 8656 cat >conftest.$ac_ext <<_ACEOF 8657/* confdefs.h. */ 8658_ACEOF 8659cat confdefs.h >>conftest.$ac_ext 8660cat >>conftest.$ac_ext <<_ACEOF 8661/* end confdefs.h. */ 8662 8663int 8664main () 8665{ 8666 8667 ; 8668 return 0; 8669} 8670_ACEOF 8671rm -f conftest.$ac_objext conftest$ac_exeext 8672if { (ac_try="$ac_link" 8673case "(($ac_try" in 8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8675 *) ac_try_echo=$ac_try;; 8676esac 8677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8678 (eval "$ac_link") 2>conftest.er1 8679 ac_status=$? 8680 grep -v '^ *+' conftest.er1 >conftest.err 8681 rm -f conftest.er1 8682 cat conftest.err >&5 8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8684 (exit $ac_status); } && { 8685 test -z "$ac_c_werror_flag" || 8686 test ! -s conftest.err 8687 } && test -s conftest$ac_exeext && 8688 $as_test_x conftest$ac_exeext; then 8689 tcl_cv_cc_arch_x86_64=yes 8690else 8691 echo "$as_me: failed program was:" >&5 8692sed 's/^/| /' conftest.$ac_ext >&5 8693 8694 tcl_cv_cc_arch_x86_64=no 8695fi 8696 8697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8698 conftest$ac_exeext conftest.$ac_ext 8699 CFLAGS=$hold_cflags 8700fi 8701{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8702echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 8703 if test $tcl_cv_cc_arch_x86_64 = yes; then 8704 8705 CFLAGS="$CFLAGS -arch x86_64" 8706 do64bit_ok=yes 8707 8708fi 8709;; 8710 *) 8711 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8712echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8713 esac 8714 8715else 8716 8717 # Check for combined 32-bit and 64-bit fat build 8718 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8719 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 8720 8721 fat_32_64=yes 8722fi 8723 8724 8725fi 8726 8727 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8728 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8729 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8730echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 8731if test "${tcl_cv_ld_single_module+set}" = set; then 8732 echo $ECHO_N "(cached) $ECHO_C" >&6 8733else 8734 8735 hold_ldflags=$LDFLAGS 8736 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8737 cat >conftest.$ac_ext <<_ACEOF 8738/* confdefs.h. */ 8739_ACEOF 8740cat confdefs.h >>conftest.$ac_ext 8741cat >>conftest.$ac_ext <<_ACEOF 8742/* end confdefs.h. */ 8743 8744int 8745main () 8746{ 8747int i; 8748 ; 8749 return 0; 8750} 8751_ACEOF 8752rm -f conftest.$ac_objext conftest$ac_exeext 8753if { (ac_try="$ac_link" 8754case "(($ac_try" in 8755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8756 *) ac_try_echo=$ac_try;; 8757esac 8758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8759 (eval "$ac_link") 2>conftest.er1 8760 ac_status=$? 8761 grep -v '^ *+' conftest.er1 >conftest.err 8762 rm -f conftest.er1 8763 cat conftest.err >&5 8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8765 (exit $ac_status); } && { 8766 test -z "$ac_c_werror_flag" || 8767 test ! -s conftest.err 8768 } && test -s conftest$ac_exeext && 8769 $as_test_x conftest$ac_exeext; then 8770 tcl_cv_ld_single_module=yes 8771else 8772 echo "$as_me: failed program was:" >&5 8773sed 's/^/| /' conftest.$ac_ext >&5 8774 8775 tcl_cv_ld_single_module=no 8776fi 8777 8778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8779 conftest$ac_exeext conftest.$ac_ext 8780 LDFLAGS=$hold_ldflags 8781fi 8782{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 8783echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 8784 if test $tcl_cv_ld_single_module = yes; then 8785 8786 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 8787 8788fi 8789 8790 # TEA specific: link shlib with current and compatiblity version flags 8791 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 8792 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 8793 SHLIB_SUFFIX=".dylib" 8794 # Don't use -prebind when building for Mac OS X 10.4 or later only: 8795 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 8796 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 8797 8798 LDFLAGS="$LDFLAGS -prebind" 8799fi 8800 8801 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 8802 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 8803echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 8804if test "${tcl_cv_ld_search_paths_first+set}" = set; then 8805 echo $ECHO_N "(cached) $ECHO_C" >&6 8806else 8807 8808 hold_ldflags=$LDFLAGS 8809 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8810 cat >conftest.$ac_ext <<_ACEOF 8811/* confdefs.h. */ 8812_ACEOF 8813cat confdefs.h >>conftest.$ac_ext 8814cat >>conftest.$ac_ext <<_ACEOF 8815/* end confdefs.h. */ 8816 8817int 8818main () 8819{ 8820int i; 8821 ; 8822 return 0; 8823} 8824_ACEOF 8825rm -f conftest.$ac_objext conftest$ac_exeext 8826if { (ac_try="$ac_link" 8827case "(($ac_try" in 8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8829 *) ac_try_echo=$ac_try;; 8830esac 8831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8832 (eval "$ac_link") 2>conftest.er1 8833 ac_status=$? 8834 grep -v '^ *+' conftest.er1 >conftest.err 8835 rm -f conftest.er1 8836 cat conftest.err >&5 8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8838 (exit $ac_status); } && { 8839 test -z "$ac_c_werror_flag" || 8840 test ! -s conftest.err 8841 } && test -s conftest$ac_exeext && 8842 $as_test_x conftest$ac_exeext; then 8843 tcl_cv_ld_search_paths_first=yes 8844else 8845 echo "$as_me: failed program was:" >&5 8846sed 's/^/| /' conftest.$ac_ext >&5 8847 8848 tcl_cv_ld_search_paths_first=no 8849fi 8850 8851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8852 conftest$ac_exeext conftest.$ac_ext 8853 LDFLAGS=$hold_ldflags 8854fi 8855{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 8856echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 8857 if test $tcl_cv_ld_search_paths_first = yes; then 8858 8859 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8860 8861fi 8862 8863 if test "$tcl_cv_cc_visibility_hidden" != yes; then 8864 8865 8866cat >>confdefs.h <<\_ACEOF 8867#define MODULE_SCOPE __private_extern__ 8868_ACEOF 8869 8870 tcl_cv_cc_visibility_hidden=yes 8871 8872fi 8873 8874 CC_SEARCH_FLAGS="" 8875 LD_SEARCH_FLAGS="" 8876 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 8877 # TEA specific: for combined 32 & 64 bit fat builds of Tk 8878 # extensions, verify that 64-bit build is possible. 8879 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 8880 8881 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 8882 8883 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 8884echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 8885if test "${tcl_cv_lib_x11_64+set}" = set; then 8886 echo $ECHO_N "(cached) $ECHO_C" >&6 8887else 8888 8889 for v in CFLAGS CPPFLAGS LDFLAGS; do 8890 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 8891 done 8892 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 8893 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 8894 cat >conftest.$ac_ext <<_ACEOF 8895/* confdefs.h. */ 8896_ACEOF 8897cat confdefs.h >>conftest.$ac_ext 8898cat >>conftest.$ac_ext <<_ACEOF 8899/* end confdefs.h. */ 8900#include <X11/Xlib.h> 8901int 8902main () 8903{ 8904XrmInitialize(); 8905 ; 8906 return 0; 8907} 8908_ACEOF 8909rm -f conftest.$ac_objext conftest$ac_exeext 8910if { (ac_try="$ac_link" 8911case "(($ac_try" in 8912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8913 *) ac_try_echo=$ac_try;; 8914esac 8915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8916 (eval "$ac_link") 2>conftest.er1 8917 ac_status=$? 8918 grep -v '^ *+' conftest.er1 >conftest.err 8919 rm -f conftest.er1 8920 cat conftest.err >&5 8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8922 (exit $ac_status); } && { 8923 test -z "$ac_c_werror_flag" || 8924 test ! -s conftest.err 8925 } && test -s conftest$ac_exeext && 8926 $as_test_x conftest$ac_exeext; then 8927 tcl_cv_lib_x11_64=yes 8928else 8929 echo "$as_me: failed program was:" >&5 8930sed 's/^/| /' conftest.$ac_ext >&5 8931 8932 tcl_cv_lib_x11_64=no 8933fi 8934 8935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8936 conftest$ac_exeext conftest.$ac_ext 8937 for v in CFLAGS CPPFLAGS LDFLAGS; do 8938 eval $v'="$hold_'$v'"' 8939 done 8940fi 8941{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 8942echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 8943 8944fi 8945 8946 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 8947 8948 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 8949echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 8950if test "${tcl_cv_lib_tk_64+set}" = set; then 8951 echo $ECHO_N "(cached) $ECHO_C" >&6 8952else 8953 8954 for v in CFLAGS CPPFLAGS LDFLAGS; do 8955 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 8956 done 8957 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 8958 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 8959 cat >conftest.$ac_ext <<_ACEOF 8960/* confdefs.h. */ 8961_ACEOF 8962cat confdefs.h >>conftest.$ac_ext 8963cat >>conftest.$ac_ext <<_ACEOF 8964/* end confdefs.h. */ 8965#include <tk.h> 8966int 8967main () 8968{ 8969Tk_InitStubs(NULL, "", 0); 8970 ; 8971 return 0; 8972} 8973_ACEOF 8974rm -f conftest.$ac_objext conftest$ac_exeext 8975if { (ac_try="$ac_link" 8976case "(($ac_try" in 8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8978 *) ac_try_echo=$ac_try;; 8979esac 8980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8981 (eval "$ac_link") 2>conftest.er1 8982 ac_status=$? 8983 grep -v '^ *+' conftest.er1 >conftest.err 8984 rm -f conftest.er1 8985 cat conftest.err >&5 8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8987 (exit $ac_status); } && { 8988 test -z "$ac_c_werror_flag" || 8989 test ! -s conftest.err 8990 } && test -s conftest$ac_exeext && 8991 $as_test_x conftest$ac_exeext; then 8992 tcl_cv_lib_tk_64=yes 8993else 8994 echo "$as_me: failed program was:" >&5 8995sed 's/^/| /' conftest.$ac_ext >&5 8996 8997 tcl_cv_lib_tk_64=no 8998fi 8999 9000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9001 conftest$ac_exeext conftest.$ac_ext 9002 for v in CFLAGS CPPFLAGS LDFLAGS; do 9003 eval $v'="$hold_'$v'"' 9004 done 9005fi 9006{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9007echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9008 9009fi 9010 9011 # remove 64-bit arch flags from CFLAGS et al. if configuration 9012 # does not support 64-bit. 9013 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9014 9015 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9016echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9017 for v in CFLAGS CPPFLAGS LDFLAGS; do 9018 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9019 done 9020fi 9021 9022 9023fi 9024 9025 ;; 9026 OS/390-*) 9027 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9028 9029cat >>confdefs.h <<\_ACEOF 9030#define _OE_SOCKETS 1 9031_ACEOF 9032 9033 ;; 9034 OSF1-V*) 9035 # Digital OSF/1 9036 SHLIB_CFLAGS="" 9037 if test "$SHARED_BUILD" = 1; then 9038 9039 SHLIB_LD='ld -shared -expect_unresolved "*"' 9040 9041else 9042 9043 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9044 9045fi 9046 9047 SHLIB_SUFFIX=".so" 9048 if test $doRpath = yes; then 9049 9050 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9051 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9052fi 9053 9054 if test "$GCC" = yes; then 9055 CFLAGS="$CFLAGS -mieee" 9056else 9057 9058 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9059fi 9060 9061 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9062 if test "${TCL_THREADS}" = 1; then 9063 9064 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9065 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9066 LIBS=`echo $LIBS | sed s/-lpthreads//` 9067 if test "$GCC" = yes; then 9068 9069 LIBS="$LIBS -lpthread -lmach -lexc" 9070 9071else 9072 9073 CFLAGS="$CFLAGS -pthread" 9074 LDFLAGS="$LDFLAGS -pthread" 9075 9076fi 9077 9078 9079fi 9080 9081 ;; 9082 QNX-6*) 9083 # QNX RTP 9084 # This may work for all QNX, but it was only reported for v6. 9085 SHLIB_CFLAGS="-fPIC" 9086 SHLIB_LD="ld -Bshareable -x" 9087 SHLIB_LD_LIBS="" 9088 SHLIB_SUFFIX=".so" 9089 CC_SEARCH_FLAGS="" 9090 LD_SEARCH_FLAGS="" 9091 ;; 9092 SCO_SV-3.2*) 9093 if test "$GCC" = yes; then 9094 9095 SHLIB_CFLAGS="-fPIC -melf" 9096 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9097 9098else 9099 9100 SHLIB_CFLAGS="-Kpic -belf" 9101 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9102 9103fi 9104 9105 SHLIB_LD="ld -G" 9106 SHLIB_LD_LIBS="" 9107 SHLIB_SUFFIX=".so" 9108 CC_SEARCH_FLAGS="" 9109 LD_SEARCH_FLAGS="" 9110 ;; 9111 SunOS-5.[0-6]) 9112 # Careful to not let 5.10+ fall into this case 9113 9114 # Note: If _REENTRANT isn't defined, then Solaris 9115 # won't define thread-safe library routines. 9116 9117 9118cat >>confdefs.h <<\_ACEOF 9119#define _REENTRANT 1 9120_ACEOF 9121 9122 9123cat >>confdefs.h <<\_ACEOF 9124#define _POSIX_PTHREAD_SEMANTICS 1 9125_ACEOF 9126 9127 9128 SHLIB_CFLAGS="-KPIC" 9129 SHLIB_SUFFIX=".so" 9130 if test "$GCC" = yes; then 9131 9132 SHLIB_LD='${CC} -shared' 9133 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9134 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9135 9136else 9137 9138 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9139 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9140 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9141 9142fi 9143 9144 ;; 9145 SunOS-5*) 9146 # Note: If _REENTRANT isn't defined, then Solaris 9147 # won't define thread-safe library routines. 9148 9149 9150cat >>confdefs.h <<\_ACEOF 9151#define _REENTRANT 1 9152_ACEOF 9153 9154 9155cat >>confdefs.h <<\_ACEOF 9156#define _POSIX_PTHREAD_SEMANTICS 1 9157_ACEOF 9158 9159 9160 SHLIB_CFLAGS="-KPIC" 9161 9162 # Check to enable 64-bit flags for compiler/linker 9163 if test "$do64bit" = yes; then 9164 9165 arch=`isainfo` 9166 if test "$arch" = "sparcv9 sparc"; then 9167 9168 if test "$GCC" = yes; then 9169 9170 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9171 9172 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9173echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9174 9175else 9176 9177 do64bit_ok=yes 9178 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9179 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9180 SHLIB_CFLAGS="-fPIC" 9181 9182fi 9183 9184 9185else 9186 9187 do64bit_ok=yes 9188 if test "$do64bitVIS" = yes; then 9189 9190 CFLAGS="$CFLAGS -xarch=v9a" 9191 LDFLAGS_ARCH="-xarch=v9a" 9192 9193else 9194 9195 CFLAGS="$CFLAGS -xarch=v9" 9196 LDFLAGS_ARCH="-xarch=v9" 9197 9198fi 9199 9200 # Solaris 64 uses this as well 9201 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9202 9203fi 9204 9205 9206else 9207 if test "$arch" = "amd64 i386"; then 9208 9209 if test "$GCC" = yes; then 9210 9211 case $system in 9212 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9213 do64bit_ok=yes 9214 CFLAGS="$CFLAGS -m64" 9215 LDFLAGS="$LDFLAGS -m64";; 9216 *) 9217 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9218echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9219 esac 9220 9221else 9222 9223 do64bit_ok=yes 9224 case $system in 9225 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9226 CFLAGS="$CFLAGS -m64" 9227 LDFLAGS="$LDFLAGS -m64";; 9228 *) 9229 CFLAGS="$CFLAGS -xarch=amd64" 9230 LDFLAGS="$LDFLAGS -xarch=amd64";; 9231 esac 9232 9233fi 9234 9235 9236else 9237 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9238echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9239fi 9240 9241fi 9242 9243 9244fi 9245 9246 9247 SHLIB_SUFFIX=".so" 9248 if test "$GCC" = yes; then 9249 9250 SHLIB_LD='${CC} -shared' 9251 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9252 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9253 if test "$do64bit_ok" = yes; then 9254 9255 if test "$arch" = "sparcv9 sparc"; then 9256 9257 # We need to specify -static-libgcc or we need to 9258 # add the path to the sparv9 libgcc. 9259 # JH: static-libgcc is necessary for core Tcl, but may 9260 # not be necessary for extensions. 9261 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9262 # for finding sparcv9 libgcc, get the regular libgcc 9263 # path, remove so name and append 'sparcv9' 9264 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9265 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9266 9267else 9268 if test "$arch" = "amd64 i386"; then 9269 9270 # JH: static-libgcc is necessary for core Tcl, but may 9271 # not be necessary for extensions. 9272 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9273 9274fi 9275 9276fi 9277 9278 9279fi 9280 9281 9282else 9283 9284 case $system in 9285 SunOS-5.[1-9][0-9]*) 9286 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9287 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9288 *) 9289 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9290 esac 9291 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9292 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9293 9294fi 9295 9296 ;; 9297 esac 9298 9299 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9300 9301 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9302echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9303 9304fi 9305 9306 9307 9308 9309 # Add in the arch flags late to ensure it wasn't removed. 9310 # Not necessary in TEA, but this is aligned with core 9311 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9312 9313 # If we're running gcc, then change the C flags for compiling shared 9314 # libraries to the right flags for gcc, instead of those for the 9315 # standard manufacturer compiler. 9316 9317 if test "$GCC" = yes; then 9318 9319 case $system in 9320 AIX-*) ;; 9321 BSD/OS*) ;; 9322 CYGWIN_*) ;; 9323 IRIX*) ;; 9324 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 9325 Darwin-*) ;; 9326 SCO_SV-3.2*) ;; 9327 windows) ;; 9328 *) SHLIB_CFLAGS="-fPIC" ;; 9329 esac 9330fi 9331 9332 9333 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9334 9335 9336cat >>confdefs.h <<\_ACEOF 9337#define MODULE_SCOPE extern 9338_ACEOF 9339 9340 9341cat >>confdefs.h <<\_ACEOF 9342#define NO_VIZ 9343_ACEOF 9344 9345 9346fi 9347 9348 9349 if test "$SHARED_LIB_SUFFIX" = ""; then 9350 9351 # TEA specific: use PACKAGE_VERSION instead of VERSION 9352 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9353fi 9354 9355 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9356 9357 # TEA specific: use PACKAGE_VERSION instead of VERSION 9358 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9359fi 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 # These must be called after we do the basic CFLAGS checks and 9375 # verify any possible 64-bit or similar switches are necessary 9376 9377 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9378echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 9379 tcl_flags="" 9380 9381 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9382 echo $ECHO_N "(cached) $ECHO_C" >&6 9383else 9384 cat >conftest.$ac_ext <<_ACEOF 9385/* confdefs.h. */ 9386_ACEOF 9387cat confdefs.h >>conftest.$ac_ext 9388cat >>conftest.$ac_ext <<_ACEOF 9389/* end confdefs.h. */ 9390#include <stdlib.h> 9391int 9392main () 9393{ 9394char *p = (char *)strtoll; char *q = (char *)strtoull; 9395 ; 9396 return 0; 9397} 9398_ACEOF 9399rm -f conftest.$ac_objext 9400if { (ac_try="$ac_compile" 9401case "(($ac_try" in 9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9403 *) ac_try_echo=$ac_try;; 9404esac 9405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9406 (eval "$ac_compile") 2>conftest.er1 9407 ac_status=$? 9408 grep -v '^ *+' conftest.er1 >conftest.err 9409 rm -f conftest.er1 9410 cat conftest.err >&5 9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9412 (exit $ac_status); } && { 9413 test -z "$ac_c_werror_flag" || 9414 test ! -s conftest.err 9415 } && test -s conftest.$ac_objext; then 9416 tcl_cv_flag__isoc99_source=no 9417else 9418 echo "$as_me: failed program was:" >&5 9419sed 's/^/| /' conftest.$ac_ext >&5 9420 9421 cat >conftest.$ac_ext <<_ACEOF 9422/* confdefs.h. */ 9423_ACEOF 9424cat confdefs.h >>conftest.$ac_ext 9425cat >>conftest.$ac_ext <<_ACEOF 9426/* end confdefs.h. */ 9427#define _ISOC99_SOURCE 1 9428#include <stdlib.h> 9429int 9430main () 9431{ 9432char *p = (char *)strtoll; char *q = (char *)strtoull; 9433 ; 9434 return 0; 9435} 9436_ACEOF 9437rm -f conftest.$ac_objext 9438if { (ac_try="$ac_compile" 9439case "(($ac_try" in 9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9441 *) ac_try_echo=$ac_try;; 9442esac 9443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9444 (eval "$ac_compile") 2>conftest.er1 9445 ac_status=$? 9446 grep -v '^ *+' conftest.er1 >conftest.err 9447 rm -f conftest.er1 9448 cat conftest.err >&5 9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9450 (exit $ac_status); } && { 9451 test -z "$ac_c_werror_flag" || 9452 test ! -s conftest.err 9453 } && test -s conftest.$ac_objext; then 9454 tcl_cv_flag__isoc99_source=yes 9455else 9456 echo "$as_me: failed program was:" >&5 9457sed 's/^/| /' conftest.$ac_ext >&5 9458 9459 tcl_cv_flag__isoc99_source=no 9460fi 9461 9462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9463fi 9464 9465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9466fi 9467 9468 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9469 9470cat >>confdefs.h <<\_ACEOF 9471#define _ISOC99_SOURCE 1 9472_ACEOF 9473 9474 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9475 fi 9476 9477 9478 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9479 echo $ECHO_N "(cached) $ECHO_C" >&6 9480else 9481 cat >conftest.$ac_ext <<_ACEOF 9482/* confdefs.h. */ 9483_ACEOF 9484cat confdefs.h >>conftest.$ac_ext 9485cat >>conftest.$ac_ext <<_ACEOF 9486/* end confdefs.h. */ 9487#include <sys/stat.h> 9488int 9489main () 9490{ 9491struct stat64 buf; int i = stat64("/", &buf); 9492 ; 9493 return 0; 9494} 9495_ACEOF 9496rm -f conftest.$ac_objext 9497if { (ac_try="$ac_compile" 9498case "(($ac_try" in 9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9500 *) ac_try_echo=$ac_try;; 9501esac 9502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9503 (eval "$ac_compile") 2>conftest.er1 9504 ac_status=$? 9505 grep -v '^ *+' conftest.er1 >conftest.err 9506 rm -f conftest.er1 9507 cat conftest.err >&5 9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9509 (exit $ac_status); } && { 9510 test -z "$ac_c_werror_flag" || 9511 test ! -s conftest.err 9512 } && test -s conftest.$ac_objext; then 9513 tcl_cv_flag__largefile64_source=no 9514else 9515 echo "$as_me: failed program was:" >&5 9516sed 's/^/| /' conftest.$ac_ext >&5 9517 9518 cat >conftest.$ac_ext <<_ACEOF 9519/* confdefs.h. */ 9520_ACEOF 9521cat confdefs.h >>conftest.$ac_ext 9522cat >>conftest.$ac_ext <<_ACEOF 9523/* end confdefs.h. */ 9524#define _LARGEFILE64_SOURCE 1 9525#include <sys/stat.h> 9526int 9527main () 9528{ 9529struct stat64 buf; int i = stat64("/", &buf); 9530 ; 9531 return 0; 9532} 9533_ACEOF 9534rm -f conftest.$ac_objext 9535if { (ac_try="$ac_compile" 9536case "(($ac_try" in 9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9538 *) ac_try_echo=$ac_try;; 9539esac 9540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9541 (eval "$ac_compile") 2>conftest.er1 9542 ac_status=$? 9543 grep -v '^ *+' conftest.er1 >conftest.err 9544 rm -f conftest.er1 9545 cat conftest.err >&5 9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9547 (exit $ac_status); } && { 9548 test -z "$ac_c_werror_flag" || 9549 test ! -s conftest.err 9550 } && test -s conftest.$ac_objext; then 9551 tcl_cv_flag__largefile64_source=yes 9552else 9553 echo "$as_me: failed program was:" >&5 9554sed 's/^/| /' conftest.$ac_ext >&5 9555 9556 tcl_cv_flag__largefile64_source=no 9557fi 9558 9559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9560fi 9561 9562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9563fi 9564 9565 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9566 9567cat >>confdefs.h <<\_ACEOF 9568#define _LARGEFILE64_SOURCE 1 9569_ACEOF 9570 9571 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9572 fi 9573 9574 9575 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9576 echo $ECHO_N "(cached) $ECHO_C" >&6 9577else 9578 cat >conftest.$ac_ext <<_ACEOF 9579/* confdefs.h. */ 9580_ACEOF 9581cat confdefs.h >>conftest.$ac_ext 9582cat >>conftest.$ac_ext <<_ACEOF 9583/* end confdefs.h. */ 9584#include <sys/stat.h> 9585int 9586main () 9587{ 9588char *p = (char *)open64; 9589 ; 9590 return 0; 9591} 9592_ACEOF 9593rm -f conftest.$ac_objext 9594if { (ac_try="$ac_compile" 9595case "(($ac_try" in 9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9597 *) ac_try_echo=$ac_try;; 9598esac 9599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9600 (eval "$ac_compile") 2>conftest.er1 9601 ac_status=$? 9602 grep -v '^ *+' conftest.er1 >conftest.err 9603 rm -f conftest.er1 9604 cat conftest.err >&5 9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9606 (exit $ac_status); } && { 9607 test -z "$ac_c_werror_flag" || 9608 test ! -s conftest.err 9609 } && test -s conftest.$ac_objext; then 9610 tcl_cv_flag__largefile_source64=no 9611else 9612 echo "$as_me: failed program was:" >&5 9613sed 's/^/| /' conftest.$ac_ext >&5 9614 9615 cat >conftest.$ac_ext <<_ACEOF 9616/* confdefs.h. */ 9617_ACEOF 9618cat confdefs.h >>conftest.$ac_ext 9619cat >>conftest.$ac_ext <<_ACEOF 9620/* end confdefs.h. */ 9621#define _LARGEFILE_SOURCE64 1 9622#include <sys/stat.h> 9623int 9624main () 9625{ 9626char *p = (char *)open64; 9627 ; 9628 return 0; 9629} 9630_ACEOF 9631rm -f conftest.$ac_objext 9632if { (ac_try="$ac_compile" 9633case "(($ac_try" in 9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9635 *) ac_try_echo=$ac_try;; 9636esac 9637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9638 (eval "$ac_compile") 2>conftest.er1 9639 ac_status=$? 9640 grep -v '^ *+' conftest.er1 >conftest.err 9641 rm -f conftest.er1 9642 cat conftest.err >&5 9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9644 (exit $ac_status); } && { 9645 test -z "$ac_c_werror_flag" || 9646 test ! -s conftest.err 9647 } && test -s conftest.$ac_objext; then 9648 tcl_cv_flag__largefile_source64=yes 9649else 9650 echo "$as_me: failed program was:" >&5 9651sed 's/^/| /' conftest.$ac_ext >&5 9652 9653 tcl_cv_flag__largefile_source64=no 9654fi 9655 9656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9657fi 9658 9659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9660fi 9661 9662 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9663 9664cat >>confdefs.h <<\_ACEOF 9665#define _LARGEFILE_SOURCE64 1 9666_ACEOF 9667 9668 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9669 fi 9670 9671 if test "x${tcl_flags}" = "x" ; then 9672 { echo "$as_me:$LINENO: result: none" >&5 9673echo "${ECHO_T}none" >&6; } 9674 else 9675 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9676echo "${ECHO_T}${tcl_flags}" >&6; } 9677 fi 9678 9679 9680 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9681echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 9682 if test "${tcl_cv_type_64bit+set}" = set; then 9683 echo $ECHO_N "(cached) $ECHO_C" >&6 9684else 9685 9686 tcl_cv_type_64bit=none 9687 # See if the compiler knows natively about __int64 9688 cat >conftest.$ac_ext <<_ACEOF 9689/* confdefs.h. */ 9690_ACEOF 9691cat confdefs.h >>conftest.$ac_ext 9692cat >>conftest.$ac_ext <<_ACEOF 9693/* end confdefs.h. */ 9694 9695int 9696main () 9697{ 9698__int64 value = (__int64) 0; 9699 ; 9700 return 0; 9701} 9702_ACEOF 9703rm -f conftest.$ac_objext 9704if { (ac_try="$ac_compile" 9705case "(($ac_try" in 9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9707 *) ac_try_echo=$ac_try;; 9708esac 9709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9710 (eval "$ac_compile") 2>conftest.er1 9711 ac_status=$? 9712 grep -v '^ *+' conftest.er1 >conftest.err 9713 rm -f conftest.er1 9714 cat conftest.err >&5 9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9716 (exit $ac_status); } && { 9717 test -z "$ac_c_werror_flag" || 9718 test ! -s conftest.err 9719 } && test -s conftest.$ac_objext; then 9720 tcl_type_64bit=__int64 9721else 9722 echo "$as_me: failed program was:" >&5 9723sed 's/^/| /' conftest.$ac_ext >&5 9724 9725 tcl_type_64bit="long long" 9726fi 9727 9728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9729 # See if we should use long anyway Note that we substitute in the 9730 # type that is our current guess for a 64-bit type inside this check 9731 # program, so it should be modified only carefully... 9732 cat >conftest.$ac_ext <<_ACEOF 9733/* confdefs.h. */ 9734_ACEOF 9735cat confdefs.h >>conftest.$ac_ext 9736cat >>conftest.$ac_ext <<_ACEOF 9737/* end confdefs.h. */ 9738 9739int 9740main () 9741{ 9742switch (0) { 9743 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9744 } 9745 ; 9746 return 0; 9747} 9748_ACEOF 9749rm -f conftest.$ac_objext 9750if { (ac_try="$ac_compile" 9751case "(($ac_try" in 9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9753 *) ac_try_echo=$ac_try;; 9754esac 9755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9756 (eval "$ac_compile") 2>conftest.er1 9757 ac_status=$? 9758 grep -v '^ *+' conftest.er1 >conftest.err 9759 rm -f conftest.er1 9760 cat conftest.err >&5 9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9762 (exit $ac_status); } && { 9763 test -z "$ac_c_werror_flag" || 9764 test ! -s conftest.err 9765 } && test -s conftest.$ac_objext; then 9766 tcl_cv_type_64bit=${tcl_type_64bit} 9767else 9768 echo "$as_me: failed program was:" >&5 9769sed 's/^/| /' conftest.$ac_ext >&5 9770 9771 9772fi 9773 9774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9775fi 9776 9777 if test "${tcl_cv_type_64bit}" = none ; then 9778 9779cat >>confdefs.h <<\_ACEOF 9780#define TCL_WIDE_INT_IS_LONG 1 9781_ACEOF 9782 9783 { echo "$as_me:$LINENO: result: using long" >&5 9784echo "${ECHO_T}using long" >&6; } 9785 elif test "${tcl_cv_type_64bit}" = "__int64" \ 9786 -a "${TEA_PLATFORM}" = "windows" ; then 9787 # TEA specific: We actually want to use the default tcl.h checks in 9788 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 9789 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 9790echo "${ECHO_T}using Tcl header defaults" >&6; } 9791 else 9792 9793cat >>confdefs.h <<_ACEOF 9794#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 9795_ACEOF 9796 9797 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 9798echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 9799 9800 # Now check for auxiliary declarations 9801 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 9802echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 9803if test "${tcl_cv_struct_dirent64+set}" = set; then 9804 echo $ECHO_N "(cached) $ECHO_C" >&6 9805else 9806 9807 cat >conftest.$ac_ext <<_ACEOF 9808/* confdefs.h. */ 9809_ACEOF 9810cat confdefs.h >>conftest.$ac_ext 9811cat >>conftest.$ac_ext <<_ACEOF 9812/* end confdefs.h. */ 9813#include <sys/types.h> 9814#include <sys/dirent.h> 9815int 9816main () 9817{ 9818struct dirent64 p; 9819 ; 9820 return 0; 9821} 9822_ACEOF 9823rm -f conftest.$ac_objext 9824if { (ac_try="$ac_compile" 9825case "(($ac_try" in 9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9827 *) ac_try_echo=$ac_try;; 9828esac 9829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9830 (eval "$ac_compile") 2>conftest.er1 9831 ac_status=$? 9832 grep -v '^ *+' conftest.er1 >conftest.err 9833 rm -f conftest.er1 9834 cat conftest.err >&5 9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9836 (exit $ac_status); } && { 9837 test -z "$ac_c_werror_flag" || 9838 test ! -s conftest.err 9839 } && test -s conftest.$ac_objext; then 9840 tcl_cv_struct_dirent64=yes 9841else 9842 echo "$as_me: failed program was:" >&5 9843sed 's/^/| /' conftest.$ac_ext >&5 9844 9845 tcl_cv_struct_dirent64=no 9846fi 9847 9848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9849fi 9850{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 9851echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 9852 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 9853 9854cat >>confdefs.h <<\_ACEOF 9855#define HAVE_STRUCT_DIRENT64 1 9856_ACEOF 9857 9858 fi 9859 9860 { echo "$as_me:$LINENO: checking for struct stat64" >&5 9861echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 9862if test "${tcl_cv_struct_stat64+set}" = set; then 9863 echo $ECHO_N "(cached) $ECHO_C" >&6 9864else 9865 9866 cat >conftest.$ac_ext <<_ACEOF 9867/* confdefs.h. */ 9868_ACEOF 9869cat confdefs.h >>conftest.$ac_ext 9870cat >>conftest.$ac_ext <<_ACEOF 9871/* end confdefs.h. */ 9872#include <sys/stat.h> 9873int 9874main () 9875{ 9876struct stat64 p; 9877 9878 ; 9879 return 0; 9880} 9881_ACEOF 9882rm -f conftest.$ac_objext 9883if { (ac_try="$ac_compile" 9884case "(($ac_try" in 9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9886 *) ac_try_echo=$ac_try;; 9887esac 9888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9889 (eval "$ac_compile") 2>conftest.er1 9890 ac_status=$? 9891 grep -v '^ *+' conftest.er1 >conftest.err 9892 rm -f conftest.er1 9893 cat conftest.err >&5 9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9895 (exit $ac_status); } && { 9896 test -z "$ac_c_werror_flag" || 9897 test ! -s conftest.err 9898 } && test -s conftest.$ac_objext; then 9899 tcl_cv_struct_stat64=yes 9900else 9901 echo "$as_me: failed program was:" >&5 9902sed 's/^/| /' conftest.$ac_ext >&5 9903 9904 tcl_cv_struct_stat64=no 9905fi 9906 9907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9908fi 9909{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 9910echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 9911 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 9912 9913cat >>confdefs.h <<\_ACEOF 9914#define HAVE_STRUCT_STAT64 1 9915_ACEOF 9916 9917 fi 9918 9919 9920 9921for ac_func in open64 lseek64 9922do 9923as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9924{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9925echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9926if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9927 echo $ECHO_N "(cached) $ECHO_C" >&6 9928else 9929 cat >conftest.$ac_ext <<_ACEOF 9930/* confdefs.h. */ 9931_ACEOF 9932cat confdefs.h >>conftest.$ac_ext 9933cat >>conftest.$ac_ext <<_ACEOF 9934/* end confdefs.h. */ 9935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9936 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9937#define $ac_func innocuous_$ac_func 9938 9939/* System header to define __stub macros and hopefully few prototypes, 9940 which can conflict with char $ac_func (); below. 9941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9942 <limits.h> exists even on freestanding compilers. */ 9943 9944#ifdef __STDC__ 9945# include <limits.h> 9946#else 9947# include <assert.h> 9948#endif 9949 9950#undef $ac_func 9951 9952/* Override any GCC internal prototype to avoid an error. 9953 Use char because int might match the return type of a GCC 9954 builtin and then its argument prototype would still apply. */ 9955#ifdef __cplusplus 9956extern "C" 9957#endif 9958char $ac_func (); 9959/* The GNU C library defines this for functions which it implements 9960 to always fail with ENOSYS. Some functions are actually named 9961 something starting with __ and the normal name is an alias. */ 9962#if defined __stub_$ac_func || defined __stub___$ac_func 9963choke me 9964#endif 9965 9966int 9967main () 9968{ 9969return $ac_func (); 9970 ; 9971 return 0; 9972} 9973_ACEOF 9974rm -f conftest.$ac_objext conftest$ac_exeext 9975if { (ac_try="$ac_link" 9976case "(($ac_try" in 9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9978 *) ac_try_echo=$ac_try;; 9979esac 9980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9981 (eval "$ac_link") 2>conftest.er1 9982 ac_status=$? 9983 grep -v '^ *+' conftest.er1 >conftest.err 9984 rm -f conftest.er1 9985 cat conftest.err >&5 9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9987 (exit $ac_status); } && { 9988 test -z "$ac_c_werror_flag" || 9989 test ! -s conftest.err 9990 } && test -s conftest$ac_exeext && 9991 $as_test_x conftest$ac_exeext; then 9992 eval "$as_ac_var=yes" 9993else 9994 echo "$as_me: failed program was:" >&5 9995sed 's/^/| /' conftest.$ac_ext >&5 9996 9997 eval "$as_ac_var=no" 9998fi 9999 10000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10001 conftest$ac_exeext conftest.$ac_ext 10002fi 10003ac_res=`eval echo '${'$as_ac_var'}'` 10004 { echo "$as_me:$LINENO: result: $ac_res" >&5 10005echo "${ECHO_T}$ac_res" >&6; } 10006if test `eval echo '${'$as_ac_var'}'` = yes; then 10007 cat >>confdefs.h <<_ACEOF 10008#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10009_ACEOF 10010 10011fi 10012done 10013 10014 { echo "$as_me:$LINENO: checking for off64_t" >&5 10015echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10016 if test "${tcl_cv_type_off64_t+set}" = set; then 10017 echo $ECHO_N "(cached) $ECHO_C" >&6 10018else 10019 10020 cat >conftest.$ac_ext <<_ACEOF 10021/* confdefs.h. */ 10022_ACEOF 10023cat confdefs.h >>conftest.$ac_ext 10024cat >>conftest.$ac_ext <<_ACEOF 10025/* end confdefs.h. */ 10026#include <sys/types.h> 10027int 10028main () 10029{ 10030off64_t offset; 10031 10032 ; 10033 return 0; 10034} 10035_ACEOF 10036rm -f conftest.$ac_objext 10037if { (ac_try="$ac_compile" 10038case "(($ac_try" in 10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10040 *) ac_try_echo=$ac_try;; 10041esac 10042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10043 (eval "$ac_compile") 2>conftest.er1 10044 ac_status=$? 10045 grep -v '^ *+' conftest.er1 >conftest.err 10046 rm -f conftest.er1 10047 cat conftest.err >&5 10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10049 (exit $ac_status); } && { 10050 test -z "$ac_c_werror_flag" || 10051 test ! -s conftest.err 10052 } && test -s conftest.$ac_objext; then 10053 tcl_cv_type_off64_t=yes 10054else 10055 echo "$as_me: failed program was:" >&5 10056sed 's/^/| /' conftest.$ac_ext >&5 10057 10058 tcl_cv_type_off64_t=no 10059fi 10060 10061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10062fi 10063 10064 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10065 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10066 test "x${ac_cv_func_open64}" = "xyes" ; then 10067 10068cat >>confdefs.h <<\_ACEOF 10069#define HAVE_TYPE_OFF64_T 1 10070_ACEOF 10071 10072 { echo "$as_me:$LINENO: result: yes" >&5 10073echo "${ECHO_T}yes" >&6; } 10074 else 10075 { echo "$as_me:$LINENO: result: no" >&5 10076echo "${ECHO_T}no" >&6; } 10077 fi 10078 fi 10079 10080 10081 10082# Remove 64-bit arch flags from CFLAGS et al. for combined 32 & 64 bit 10083# fat builds as Tclapplescript cannot be built for 64-bit at present. 10084test "$fat_32_64" = yes && for v in CFLAGS CPPFLAGS LDFLAGS; do 10085 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 10086done 10087 10088#-------------------------------------------------------------------- 10089# Set the default compiler switches based on the --enable-symbols option. 10090#-------------------------------------------------------------------- 10091 10092 10093 10094 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10095echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10096 # Check whether --enable-symbols was given. 10097if test "${enable_symbols+set}" = set; then 10098 enableval=$enable_symbols; tcl_ok=$enableval 10099else 10100 tcl_ok=no 10101fi 10102 10103 DBGX="" 10104 if test "$tcl_ok" = "no"; then 10105 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10106 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10107 { echo "$as_me:$LINENO: result: no" >&5 10108echo "${ECHO_T}no" >&6; } 10109 else 10110 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10111 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10112 if test "$tcl_ok" = "yes"; then 10113 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10114echo "${ECHO_T}yes (standard debugging)" >&6; } 10115 fi 10116 fi 10117 # TEA specific: 10118 if test "${TEA_PLATFORM}" != "windows" ; then 10119 LDFLAGS_DEFAULT="${LDFLAGS}" 10120 fi 10121 10122 10123 10124 10125 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10126 10127cat >>confdefs.h <<\_ACEOF 10128#define TCL_MEM_DEBUG 1 10129_ACEOF 10130 10131 fi 10132 10133 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10134 if test "$tcl_ok" = "all"; then 10135 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10136echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10137 else 10138 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10139echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10140 fi 10141 fi 10142 10143 10144#-------------------------------------------------------------------- 10145# Everyone should be linking against the Tcl stub library. If you 10146# can't for some reason, remove this definition. If you aren't using 10147# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10148# link against the non-stubbed Tcl library. Add Tk too if necessary. 10149#-------------------------------------------------------------------- 10150 10151 10152cat >>confdefs.h <<\_ACEOF 10153#define USE_TCL_STUBS 1 10154_ACEOF 10155 10156 10157#-------------------------------------------------------------------- 10158# This macro generates a line to use when building a library. It 10159# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10160# and TEA_LOAD_TCLCONFIG macros above. 10161#-------------------------------------------------------------------- 10162 10163 10164 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10165 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10166 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10167 cat >conftest.$ac_ext <<_ACEOF 10168/* confdefs.h. */ 10169_ACEOF 10170cat confdefs.h >>conftest.$ac_ext 10171cat >>conftest.$ac_ext <<_ACEOF 10172/* end confdefs.h. */ 10173 10174#if defined(_MSC_VER) && _MSC_VER >= 1400 10175print("manifest needed") 10176#endif 10177 10178_ACEOF 10179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10180 $EGREP "manifest needed" >/dev/null 2>&1; then 10181 10182 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 10183 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 10184 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 10185 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 10186 10187 CLEANFILES="$CLEANFILES *.manifest" 10188 10189 10190fi 10191rm -f -r conftest* 10192 10193 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 10194 else 10195 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 10196 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 10197 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 10198 fi 10199 10200 if test "${SHARED_BUILD}" = "1" ; then 10201 MAKE_LIB="${MAKE_SHARED_LIB} " 10202 else 10203 MAKE_LIB="${MAKE_STATIC_LIB} " 10204 fi 10205 10206 #-------------------------------------------------------------------- 10207 # Shared libraries and static libraries have different names. 10208 # Use the double eval to make sure any variables in the suffix is 10209 # substituted. (@@@ Might not be necessary anymore) 10210 #-------------------------------------------------------------------- 10211 10212 if test "${TEA_PLATFORM}" = "windows" ; then 10213 if test "${SHARED_BUILD}" = "1" ; then 10214 # We force the unresolved linking of symbols that are really in 10215 # the private libraries of Tcl and Tk. 10216 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 10217 if test x"${TK_BIN_DIR}" != x ; then 10218 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 10219 fi 10220 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10221 else 10222 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10223 fi 10224 # Some packages build their own stubs libraries 10225 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10226 if test "$GCC" = "yes"; then 10227 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 10228 fi 10229 # These aren't needed on Windows (either MSVC or gcc) 10230 RANLIB=: 10231 RANLIB_STUB=: 10232 else 10233 RANLIB_STUB="${RANLIB}" 10234 if test "${SHARED_BUILD}" = "1" ; then 10235 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 10236 if test x"${TK_BIN_DIR}" != x ; then 10237 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 10238 fi 10239 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10240 RANLIB=: 10241 else 10242 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10243 fi 10244 # Some packages build their own stubs libraries 10245 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10246 fi 10247 10248 # These are escaped so that only CFLAGS is picked up at configure time. 10249 # The other values will be substituted at make time. 10250 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 10251 if test "${SHARED_BUILD}" = "1" ; then 10252 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 10253 fi 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264#-------------------------------------------------------------------- 10265# Determine the name of the tclsh and/or wish executables in the 10266# Tcl and Tk build directories or the location they were installed 10267# into. These paths are used to support running test cases only, 10268# the Makefile should not be making use of these paths to generate 10269# a pkgIndex.tcl file or anything else at extension build time. 10270#-------------------------------------------------------------------- 10271 10272 10273 { echo "$as_me:$LINENO: checking for tclsh" >&5 10274echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 10275 if test -f "${TCL_BIN_DIR}/Makefile" ; then 10276 # tclConfig.sh is in Tcl build directory 10277 if test "${TEA_PLATFORM}" = "windows"; then 10278 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10279 else 10280 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 10281 fi 10282 else 10283 # tclConfig.sh is in install location 10284 if test "${TEA_PLATFORM}" = "windows"; then 10285 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10286 else 10287 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 10288 fi 10289 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 10290 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 10291 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 10292 for i in $list ; do 10293 if test -f "$i/${TCLSH_PROG}" ; then 10294 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 10295 break 10296 fi 10297 done 10298 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 10299 fi 10300 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 10301echo "${ECHO_T}${TCLSH_PROG}" >&6; } 10302 10303 10304 10305#-------------------------------------------------------------------- 10306# Finally, substitute all of the various values into the Makefile. 10307# You may alternatively have a special pkgIndex.tcl.in or other files 10308# which require substituting th AC variables in. Include these here. 10309#-------------------------------------------------------------------- 10310 10311ac_config_files="$ac_config_files Makefile pkgIndex.tcl" 10312 10313cat >confcache <<\_ACEOF 10314# This file is a shell script that caches the results of configure 10315# tests run on this system so they can be shared between configure 10316# scripts and configure runs, see configure's option --config-cache. 10317# It is not useful on other systems. If it contains results you don't 10318# want to keep, you may remove or edit it. 10319# 10320# config.status only pays attention to the cache file if you give it 10321# the --recheck option to rerun configure. 10322# 10323# `ac_cv_env_foo' variables (set or unset) will be overridden when 10324# loading this file, other *unset* `ac_cv_foo' will be assigned the 10325# following values. 10326 10327_ACEOF 10328 10329# The following way of writing the cache mishandles newlines in values, 10330# but we know of no workaround that is simple, portable, and efficient. 10331# So, we kill variables containing newlines. 10332# Ultrix sh set writes to stderr and can't be redirected directly, 10333# and sets the high bit in the cache file unless we assign to the vars. 10334( 10335 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10336 eval ac_val=\$$ac_var 10337 case $ac_val in #( 10338 *${as_nl}*) 10339 case $ac_var in #( 10340 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 10341echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 10342 esac 10343 case $ac_var in #( 10344 _ | IFS | as_nl) ;; #( 10345 *) $as_unset $ac_var ;; 10346 esac ;; 10347 esac 10348 done 10349 10350 (set) 2>&1 | 10351 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10352 *${as_nl}ac_space=\ *) 10353 # `set' does not quote correctly, so add quotes (double-quote 10354 # substitution turns \\\\ into \\, and sed turns \\ into \). 10355 sed -n \ 10356 "s/'/'\\\\''/g; 10357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10358 ;; #( 10359 *) 10360 # `set' quotes correctly as required by POSIX, so do not add quotes. 10361 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10362 ;; 10363 esac | 10364 sort 10365) | 10366 sed ' 10367 /^ac_cv_env_/b end 10368 t clear 10369 :clear 10370 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10371 t end 10372 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10373 :end' >>confcache 10374if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10375 if test -w "$cache_file"; then 10376 test "x$cache_file" != "x/dev/null" && 10377 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 10378echo "$as_me: updating cache $cache_file" >&6;} 10379 cat confcache >$cache_file 10380 else 10381 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 10382echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10383 fi 10384fi 10385rm -f confcache 10386 10387test "x$prefix" = xNONE && prefix=$ac_default_prefix 10388# Let make expand exec_prefix. 10389test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10390 10391# Transform confdefs.h into DEFS. 10392# Protect against shell expansion while executing Makefile rules. 10393# Protect against Makefile macro expansion. 10394# 10395# If the first sed substitution is executed (which looks for macros that 10396# take arguments), then branch to the quote section. Otherwise, 10397# look for a macro that doesn't take arguments. 10398ac_script=' 10399t clear 10400:clear 10401s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10402t quote 10403s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10404t quote 10405b any 10406:quote 10407s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10408s/\[/\\&/g 10409s/\]/\\&/g 10410s/\$/$$/g 10411H 10412:any 10413${ 10414 g 10415 s/^\n// 10416 s/\n/ /g 10417 p 10418} 10419' 10420DEFS=`sed -n "$ac_script" confdefs.h` 10421 10422 10423ac_libobjs= 10424ac_ltlibobjs= 10425for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10426 # 1. Remove the extension, and $U if already installed. 10427 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10428 ac_i=`echo "$ac_i" | sed "$ac_script"` 10429 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10430 # will be set to the directory where LIBOBJS objects are built. 10431 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10432 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 10433done 10434LIBOBJS=$ac_libobjs 10435 10436LTLIBOBJS=$ac_ltlibobjs 10437 10438 10439CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 10440 10441: ${CONFIG_STATUS=./config.status} 10442ac_clean_files_save=$ac_clean_files 10443ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10444{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10445echo "$as_me: creating $CONFIG_STATUS" >&6;} 10446cat >$CONFIG_STATUS <<_ACEOF 10447#! $SHELL 10448# Generated by $as_me. 10449# Run this file to recreate the current configuration. 10450# Compiler output produced by configure, useful for debugging 10451# configure, is in config.log if it exists. 10452 10453debug=false 10454ac_cs_recheck=false 10455ac_cs_silent=false 10456SHELL=\${CONFIG_SHELL-$SHELL} 10457_ACEOF 10458 10459cat >>$CONFIG_STATUS <<\_ACEOF 10460## --------------------- ## 10461## M4sh Initialization. ## 10462## --------------------- ## 10463 10464# Be more Bourne compatible 10465DUALCASE=1; export DUALCASE # for MKS sh 10466if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10467 emulate sh 10468 NULLCMD=: 10469 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10470 # is contrary to our usage. Disable this feature. 10471 alias -g '${1+"$@"}'='"$@"' 10472 setopt NO_GLOB_SUBST 10473else 10474 case `(set -o) 2>/dev/null` in 10475 *posix*) set -o posix ;; 10476esac 10477 10478fi 10479 10480 10481 10482 10483# PATH needs CR 10484# Avoid depending upon Character Ranges. 10485as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10486as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10487as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10488as_cr_digits='0123456789' 10489as_cr_alnum=$as_cr_Letters$as_cr_digits 10490 10491# The user is always right. 10492if test "${PATH_SEPARATOR+set}" != set; then 10493 echo "#! /bin/sh" >conf$$.sh 10494 echo "exit 0" >>conf$$.sh 10495 chmod +x conf$$.sh 10496 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10497 PATH_SEPARATOR=';' 10498 else 10499 PATH_SEPARATOR=: 10500 fi 10501 rm -f conf$$.sh 10502fi 10503 10504# Support unset when possible. 10505if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10506 as_unset=unset 10507else 10508 as_unset=false 10509fi 10510 10511 10512# IFS 10513# We need space, tab and new line, in precisely that order. Quoting is 10514# there to prevent editors from complaining about space-tab. 10515# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10516# splitting by setting IFS to empty value.) 10517as_nl=' 10518' 10519IFS=" "" $as_nl" 10520 10521# Find who we are. Look in the path if we contain no directory separator. 10522case $0 in 10523 *[\\/]* ) as_myself=$0 ;; 10524 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10525for as_dir in $PATH 10526do 10527 IFS=$as_save_IFS 10528 test -z "$as_dir" && as_dir=. 10529 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10530done 10531IFS=$as_save_IFS 10532 10533 ;; 10534esac 10535# We did not find ourselves, most probably we were run as `sh COMMAND' 10536# in which case we are not to be found in the path. 10537if test "x$as_myself" = x; then 10538 as_myself=$0 10539fi 10540if test ! -f "$as_myself"; then 10541 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10542 { (exit 1); exit 1; } 10543fi 10544 10545# Work around bugs in pre-3.0 UWIN ksh. 10546for as_var in ENV MAIL MAILPATH 10547do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10548done 10549PS1='$ ' 10550PS2='> ' 10551PS4='+ ' 10552 10553# NLS nuisances. 10554for as_var in \ 10555 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 10556 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 10557 LC_TELEPHONE LC_TIME 10558do 10559 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 10560 eval $as_var=C; export $as_var 10561 else 10562 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10563 fi 10564done 10565 10566# Required to use basename. 10567if expr a : '\(a\)' >/dev/null 2>&1 && 10568 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10569 as_expr=expr 10570else 10571 as_expr=false 10572fi 10573 10574if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10575 as_basename=basename 10576else 10577 as_basename=false 10578fi 10579 10580 10581# Name of the executable. 10582as_me=`$as_basename -- "$0" || 10583$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10584 X"$0" : 'X\(//\)$' \| \ 10585 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10586echo X/"$0" | 10587 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10588 s//\1/ 10589 q 10590 } 10591 /^X\/\(\/\/\)$/{ 10592 s//\1/ 10593 q 10594 } 10595 /^X\/\(\/\).*/{ 10596 s//\1/ 10597 q 10598 } 10599 s/.*/./; q'` 10600 10601# CDPATH. 10602$as_unset CDPATH 10603 10604 10605 10606 as_lineno_1=$LINENO 10607 as_lineno_2=$LINENO 10608 test "x$as_lineno_1" != "x$as_lineno_2" && 10609 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 10610 10611 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10612 # uniformly replaced by the line number. The first 'sed' inserts a 10613 # line-number line after each line using $LINENO; the second 'sed' 10614 # does the real work. The second script uses 'N' to pair each 10615 # line-number line with the line containing $LINENO, and appends 10616 # trailing '-' during substitution so that $LINENO is not a special 10617 # case at line end. 10618 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10619 # scripts with optimization help from Paolo Bonzini. Blame Lee 10620 # E. McMahon (1931-1989) for sed's syntax. :-) 10621 sed -n ' 10622 p 10623 /[$]LINENO/= 10624 ' <$as_myself | 10625 sed ' 10626 s/[$]LINENO.*/&-/ 10627 t lineno 10628 b 10629 :lineno 10630 N 10631 :loop 10632 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 10633 t loop 10634 s/-\n.*// 10635 ' >$as_me.lineno && 10636 chmod +x "$as_me.lineno" || 10637 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 10638 { (exit 1); exit 1; }; } 10639 10640 # Don't try to exec as it changes $[0], causing all sort of problems 10641 # (the dirname of $[0] is not the place where we might find the 10642 # original and so on. Autoconf is especially sensitive to this). 10643 . "./$as_me.lineno" 10644 # Exit status is that of the last command. 10645 exit 10646} 10647 10648 10649if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10650 as_dirname=dirname 10651else 10652 as_dirname=false 10653fi 10654 10655ECHO_C= ECHO_N= ECHO_T= 10656case `echo -n x` in 10657-n*) 10658 case `echo 'x\c'` in 10659 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10660 *) ECHO_C='\c';; 10661 esac;; 10662*) 10663 ECHO_N='-n';; 10664esac 10665 10666if expr a : '\(a\)' >/dev/null 2>&1 && 10667 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10668 as_expr=expr 10669else 10670 as_expr=false 10671fi 10672 10673rm -f conf$$ conf$$.exe conf$$.file 10674if test -d conf$$.dir; then 10675 rm -f conf$$.dir/conf$$.file 10676else 10677 rm -f conf$$.dir 10678 mkdir conf$$.dir 10679fi 10680echo >conf$$.file 10681if ln -s conf$$.file conf$$ 2>/dev/null; then 10682 as_ln_s='ln -s' 10683 # ... but there are two gotchas: 10684 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10685 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10686 # In both cases, we have to default to `cp -p'. 10687 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10688 as_ln_s='cp -p' 10689elif ln conf$$.file conf$$ 2>/dev/null; then 10690 as_ln_s=ln 10691else 10692 as_ln_s='cp -p' 10693fi 10694rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10695rmdir conf$$.dir 2>/dev/null 10696 10697if mkdir -p . 2>/dev/null; then 10698 as_mkdir_p=: 10699else 10700 test -d ./-p && rmdir ./-p 10701 as_mkdir_p=false 10702fi 10703 10704if test -x / >/dev/null 2>&1; then 10705 as_test_x='test -x' 10706else 10707 if ls -dL / >/dev/null 2>&1; then 10708 as_ls_L_option=L 10709 else 10710 as_ls_L_option= 10711 fi 10712 as_test_x=' 10713 eval sh -c '\'' 10714 if test -d "$1"; then 10715 test -d "$1/."; 10716 else 10717 case $1 in 10718 -*)set "./$1";; 10719 esac; 10720 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 10721 ???[sx]*):;;*)false;;esac;fi 10722 '\'' sh 10723 ' 10724fi 10725as_executable_p=$as_test_x 10726 10727# Sed expression to map a string onto a valid CPP name. 10728as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10729 10730# Sed expression to map a string onto a valid variable name. 10731as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10732 10733 10734exec 6>&1 10735 10736# Save the log message, to keep $[0] and so on meaningful, and to 10737# report actual input values of CONFIG_FILES etc. instead of their 10738# values after options handling. 10739ac_log=" 10740This file was extended by Tclapplescript $as_me 1.0, which was 10741generated by GNU Autoconf 2.61. Invocation command line was 10742 10743 CONFIG_FILES = $CONFIG_FILES 10744 CONFIG_HEADERS = $CONFIG_HEADERS 10745 CONFIG_LINKS = $CONFIG_LINKS 10746 CONFIG_COMMANDS = $CONFIG_COMMANDS 10747 $ $0 $@ 10748 10749on `(hostname || uname -n) 2>/dev/null | sed 1q` 10750" 10751 10752_ACEOF 10753 10754cat >>$CONFIG_STATUS <<_ACEOF 10755# Files that config.status was made for. 10756config_files="$ac_config_files" 10757 10758_ACEOF 10759 10760cat >>$CONFIG_STATUS <<\_ACEOF 10761ac_cs_usage="\ 10762\`$as_me' instantiates files from templates according to the 10763current configuration. 10764 10765Usage: $0 [OPTIONS] [FILE]... 10766 10767 -h, --help print this help, then exit 10768 -V, --version print version number and configuration settings, then exit 10769 -q, --quiet do not print progress messages 10770 -d, --debug don't remove temporary files 10771 --recheck update $as_me by reconfiguring in the same conditions 10772 --file=FILE[:TEMPLATE] 10773 instantiate the configuration file FILE 10774 10775Configuration files: 10776$config_files 10777 10778Report bugs to <bug-autoconf@gnu.org>." 10779 10780_ACEOF 10781cat >>$CONFIG_STATUS <<_ACEOF 10782ac_cs_version="\\ 10783Tclapplescript config.status 1.0 10784configured by $0, generated by GNU Autoconf 2.61, 10785 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 10786 10787Copyright (C) 2006 Free Software Foundation, Inc. 10788This config.status script is free software; the Free Software Foundation 10789gives unlimited permission to copy, distribute and modify it." 10790 10791ac_pwd='$ac_pwd' 10792srcdir='$srcdir' 10793INSTALL='$INSTALL' 10794_ACEOF 10795 10796cat >>$CONFIG_STATUS <<\_ACEOF 10797# If no file are specified by the user, then we need to provide default 10798# value. By we need to know if files were specified by the user. 10799ac_need_defaults=: 10800while test $# != 0 10801do 10802 case $1 in 10803 --*=*) 10804 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10805 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10806 ac_shift=: 10807 ;; 10808 *) 10809 ac_option=$1 10810 ac_optarg=$2 10811 ac_shift=shift 10812 ;; 10813 esac 10814 10815 case $ac_option in 10816 # Handling of the options. 10817 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10818 ac_cs_recheck=: ;; 10819 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10820 echo "$ac_cs_version"; exit ;; 10821 --debug | --debu | --deb | --de | --d | -d ) 10822 debug=: ;; 10823 --file | --fil | --fi | --f ) 10824 $ac_shift 10825 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 10826 ac_need_defaults=false;; 10827 --he | --h | --help | --hel | -h ) 10828 echo "$ac_cs_usage"; exit ;; 10829 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10830 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10831 ac_cs_silent=: ;; 10832 10833 # This is an error. 10834 -*) { echo "$as_me: error: unrecognized option: $1 10835Try \`$0 --help' for more information." >&2 10836 { (exit 1); exit 1; }; } ;; 10837 10838 *) ac_config_targets="$ac_config_targets $1" 10839 ac_need_defaults=false ;; 10840 10841 esac 10842 shift 10843done 10844 10845ac_configure_extra_args= 10846 10847if $ac_cs_silent; then 10848 exec 6>/dev/null 10849 ac_configure_extra_args="$ac_configure_extra_args --silent" 10850fi 10851 10852_ACEOF 10853cat >>$CONFIG_STATUS <<_ACEOF 10854if \$ac_cs_recheck; then 10855 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 10856 CONFIG_SHELL=$SHELL 10857 export CONFIG_SHELL 10858 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10859fi 10860 10861_ACEOF 10862cat >>$CONFIG_STATUS <<\_ACEOF 10863exec 5>>config.log 10864{ 10865 echo 10866 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10867## Running $as_me. ## 10868_ASBOX 10869 echo "$ac_log" 10870} >&5 10871 10872_ACEOF 10873cat >>$CONFIG_STATUS <<_ACEOF 10874_ACEOF 10875 10876cat >>$CONFIG_STATUS <<\_ACEOF 10877 10878# Handling of arguments. 10879for ac_config_target in $ac_config_targets 10880do 10881 case $ac_config_target in 10882 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10883 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 10884 10885 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 10886echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 10887 { (exit 1); exit 1; }; };; 10888 esac 10889done 10890 10891 10892# If the user did not use the arguments to specify the items to instantiate, 10893# then the envvar interface is used. Set only those that are not. 10894# We use the long form for the default assignment because of an extremely 10895# bizarre bug on SunOS 4.1.3. 10896if $ac_need_defaults; then 10897 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10898fi 10899 10900# Have a temporary directory for convenience. Make it in the build tree 10901# simply because there is no reason against having it here, and in addition, 10902# creating and moving files from /tmp can sometimes cause problems. 10903# Hook for its removal unless debugging. 10904# Note that there is a small window in which the directory will not be cleaned: 10905# after its creation but before its name has been assigned to `$tmp'. 10906$debug || 10907{ 10908 tmp= 10909 trap 'exit_status=$? 10910 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 10911' 0 10912 trap '{ (exit 1); exit 1; }' 1 2 13 15 10913} 10914# Create a (secure) tmp directory for tmp files. 10915 10916{ 10917 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10918 test -n "$tmp" && test -d "$tmp" 10919} || 10920{ 10921 tmp=./conf$$-$RANDOM 10922 (umask 077 && mkdir "$tmp") 10923} || 10924{ 10925 echo "$me: cannot create a temporary directory in ." >&2 10926 { (exit 1); exit 1; } 10927} 10928 10929# 10930# Set up the sed scripts for CONFIG_FILES section. 10931# 10932 10933# No need to generate the scripts if there are no CONFIG_FILES. 10934# This happens for instance when ./config.status config.h 10935if test -n "$CONFIG_FILES"; then 10936 10937_ACEOF 10938 10939 10940 10941ac_delim='%!_!# ' 10942for ac_last_try in false false false false false :; do 10943 cat >conf$$subs.sed <<_ACEOF 10944SHELL!$SHELL$ac_delim 10945PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 10946PACKAGE_NAME!$PACKAGE_NAME$ac_delim 10947PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 10948PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 10949PACKAGE_STRING!$PACKAGE_STRING$ac_delim 10950PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 10951exec_prefix!$exec_prefix$ac_delim 10952prefix!$prefix$ac_delim 10953program_transform_name!$program_transform_name$ac_delim 10954bindir!$bindir$ac_delim 10955sbindir!$sbindir$ac_delim 10956libexecdir!$libexecdir$ac_delim 10957datarootdir!$datarootdir$ac_delim 10958datadir!$datadir$ac_delim 10959sysconfdir!$sysconfdir$ac_delim 10960sharedstatedir!$sharedstatedir$ac_delim 10961localstatedir!$localstatedir$ac_delim 10962includedir!$includedir$ac_delim 10963oldincludedir!$oldincludedir$ac_delim 10964docdir!$docdir$ac_delim 10965infodir!$infodir$ac_delim 10966htmldir!$htmldir$ac_delim 10967dvidir!$dvidir$ac_delim 10968pdfdir!$pdfdir$ac_delim 10969psdir!$psdir$ac_delim 10970libdir!$libdir$ac_delim 10971localedir!$localedir$ac_delim 10972mandir!$mandir$ac_delim 10973DEFS!$DEFS$ac_delim 10974ECHO_C!$ECHO_C$ac_delim 10975ECHO_N!$ECHO_N$ac_delim 10976ECHO_T!$ECHO_T$ac_delim 10977LIBS!$LIBS$ac_delim 10978build_alias!$build_alias$ac_delim 10979host_alias!$host_alias$ac_delim 10980target_alias!$target_alias$ac_delim 10981CYGPATH!$CYGPATH$ac_delim 10982EXEEXT!$EXEEXT$ac_delim 10983PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 10984PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 10985PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 10986PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 10987PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 10988PKG_HEADERS!$PKG_HEADERS$ac_delim 10989PKG_INCLUDES!$PKG_INCLUDES$ac_delim 10990PKG_LIBS!$PKG_LIBS$ac_delim 10991PKG_CFLAGS!$PKG_CFLAGS$ac_delim 10992TCL_VERSION!$TCL_VERSION$ac_delim 10993TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 10994TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 10995TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 10996TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 10997TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 10998TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 10999TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 11000TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 11001TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 11002CLEANFILES!$CLEANFILES$ac_delim 11003TCL_LIBS!$TCL_LIBS$ac_delim 11004TCL_DEFS!$TCL_DEFS$ac_delim 11005TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 11006TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 11007TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 11008CC!$CC$ac_delim 11009CFLAGS!$CFLAGS$ac_delim 11010LDFLAGS!$LDFLAGS$ac_delim 11011CPPFLAGS!$CPPFLAGS$ac_delim 11012ac_ct_CC!$ac_ct_CC$ac_delim 11013OBJEXT!$OBJEXT$ac_delim 11014CPP!$CPP$ac_delim 11015INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 11016INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 11017INSTALL_DATA!$INSTALL_DATA$ac_delim 11018SET_MAKE!$SET_MAKE$ac_delim 11019RANLIB!$RANLIB$ac_delim 11020GREP!$GREP$ac_delim 11021EGREP!$EGREP$ac_delim 11022MATH_LIBS!$MATH_LIBS$ac_delim 11023PKG_SOURCES!$PKG_SOURCES$ac_delim 11024PKG_OBJECTS!$PKG_OBJECTS$ac_delim 11025TCL_INCLUDES!$TCL_INCLUDES$ac_delim 11026TCL_THREADS!$TCL_THREADS$ac_delim 11027SHARED_BUILD!$SHARED_BUILD$ac_delim 11028AR!$AR$ac_delim 11029CELIB_DIR!$CELIB_DIR$ac_delim 11030CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 11031CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 11032CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 11033STLIB_LD!$STLIB_LD$ac_delim 11034SHLIB_LD!$SHLIB_LD$ac_delim 11035SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 11036SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 11037LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 11038CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 11039LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 11040TCL_DBGX!$TCL_DBGX$ac_delim 11041_ACEOF 11042 11043 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 11044 break 11045 elif $ac_last_try; then 11046 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11047echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11048 { (exit 1); exit 1; }; } 11049 else 11050 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11051 fi 11052done 11053 11054ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11055if test -n "$ac_eof"; then 11056 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11057 ac_eof=`expr $ac_eof + 1` 11058fi 11059 11060cat >>$CONFIG_STATUS <<_ACEOF 11061cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 11062/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11063_ACEOF 11064sed ' 11065s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11066s/^/s,@/; s/!/@,|#_!!_#|/ 11067:n 11068t n 11069s/'"$ac_delim"'$/,g/; t 11070s/$/\\/; p 11071N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11072' >>$CONFIG_STATUS <conf$$subs.sed 11073rm -f conf$$subs.sed 11074cat >>$CONFIG_STATUS <<_ACEOF 11075CEOF$ac_eof 11076_ACEOF 11077 11078 11079ac_delim='%!_!# ' 11080for ac_last_try in false false false false false :; do 11081 cat >conf$$subs.sed <<_ACEOF 11082MAKE_LIB!$MAKE_LIB$ac_delim 11083MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 11084MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 11085MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 11086RANLIB_STUB!$RANLIB_STUB$ac_delim 11087VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 11088VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 11089TCLSH_PROG!$TCLSH_PROG$ac_delim 11090LIBOBJS!$LIBOBJS$ac_delim 11091LTLIBOBJS!$LTLIBOBJS$ac_delim 11092_ACEOF 11093 11094 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then 11095 break 11096 elif $ac_last_try; then 11097 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11098echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11099 { (exit 1); exit 1; }; } 11100 else 11101 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11102 fi 11103done 11104 11105ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11106if test -n "$ac_eof"; then 11107 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11108 ac_eof=`expr $ac_eof + 1` 11109fi 11110 11111cat >>$CONFIG_STATUS <<_ACEOF 11112cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 11113/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 11114_ACEOF 11115sed ' 11116s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11117s/^/s,@/; s/!/@,|#_!!_#|/ 11118:n 11119t n 11120s/'"$ac_delim"'$/,g/; t 11121s/$/\\/; p 11122N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11123' >>$CONFIG_STATUS <conf$$subs.sed 11124rm -f conf$$subs.sed 11125cat >>$CONFIG_STATUS <<_ACEOF 11126:end 11127s/|#_!!_#|//g 11128CEOF$ac_eof 11129_ACEOF 11130 11131 11132# VPATH may cause trouble with some makes, so we remove $(srcdir), 11133# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11134# trailing colons and then remove the whole line if VPATH becomes empty 11135# (actually we leave an empty line to preserve line numbers). 11136if test "x$srcdir" = x.; then 11137 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11138s/:*\$(srcdir):*/:/ 11139s/:*\${srcdir}:*/:/ 11140s/:*@srcdir@:*/:/ 11141s/^\([^=]*=[ ]*\):*/\1/ 11142s/:*$// 11143s/^[^=]*=[ ]*$// 11144}' 11145fi 11146 11147cat >>$CONFIG_STATUS <<\_ACEOF 11148fi # test -n "$CONFIG_FILES" 11149 11150 11151for ac_tag in :F $CONFIG_FILES 11152do 11153 case $ac_tag in 11154 :[FHLC]) ac_mode=$ac_tag; continue;; 11155 esac 11156 case $ac_mode$ac_tag in 11157 :[FHL]*:*);; 11158 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 11159echo "$as_me: error: Invalid tag $ac_tag." >&2;} 11160 { (exit 1); exit 1; }; };; 11161 :[FH]-) ac_tag=-:-;; 11162 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11163 esac 11164 ac_save_IFS=$IFS 11165 IFS=: 11166 set x $ac_tag 11167 IFS=$ac_save_IFS 11168 shift 11169 ac_file=$1 11170 shift 11171 11172 case $ac_mode in 11173 :L) ac_source=$1;; 11174 :[FH]) 11175 ac_file_inputs= 11176 for ac_f 11177 do 11178 case $ac_f in 11179 -) ac_f="$tmp/stdin";; 11180 *) # Look for the file first in the build tree, then in the source tree 11181 # (if the path is not absolute). The absolute path cannot be DOS-style, 11182 # because $ac_f cannot contain `:'. 11183 test -f "$ac_f" || 11184 case $ac_f in 11185 [\\/$]*) false;; 11186 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11187 esac || 11188 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 11189echo "$as_me: error: cannot find input file: $ac_f" >&2;} 11190 { (exit 1); exit 1; }; };; 11191 esac 11192 ac_file_inputs="$ac_file_inputs $ac_f" 11193 done 11194 11195 # Let's still pretend it is `configure' which instantiates (i.e., don't 11196 # use $as_me), people would be surprised to read: 11197 # /* config.h. Generated by config.status. */ 11198 configure_input="Generated from "`IFS=: 11199 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 11200 if test x"$ac_file" != x-; then 11201 configure_input="$ac_file. $configure_input" 11202 { echo "$as_me:$LINENO: creating $ac_file" >&5 11203echo "$as_me: creating $ac_file" >&6;} 11204 fi 11205 11206 case $ac_tag in 11207 *:-:* | *:-) cat >"$tmp/stdin";; 11208 esac 11209 ;; 11210 esac 11211 11212 ac_dir=`$as_dirname -- "$ac_file" || 11213$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11214 X"$ac_file" : 'X\(//\)[^/]' \| \ 11215 X"$ac_file" : 'X\(//\)$' \| \ 11216 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11217echo X"$ac_file" | 11218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11219 s//\1/ 11220 q 11221 } 11222 /^X\(\/\/\)[^/].*/{ 11223 s//\1/ 11224 q 11225 } 11226 /^X\(\/\/\)$/{ 11227 s//\1/ 11228 q 11229 } 11230 /^X\(\/\).*/{ 11231 s//\1/ 11232 q 11233 } 11234 s/.*/./; q'` 11235 { as_dir="$ac_dir" 11236 case $as_dir in #( 11237 -*) as_dir=./$as_dir;; 11238 esac 11239 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11240 as_dirs= 11241 while :; do 11242 case $as_dir in #( 11243 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 11244 *) as_qdir=$as_dir;; 11245 esac 11246 as_dirs="'$as_qdir' $as_dirs" 11247 as_dir=`$as_dirname -- "$as_dir" || 11248$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11249 X"$as_dir" : 'X\(//\)[^/]' \| \ 11250 X"$as_dir" : 'X\(//\)$' \| \ 11251 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11252echo X"$as_dir" | 11253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11254 s//\1/ 11255 q 11256 } 11257 /^X\(\/\/\)[^/].*/{ 11258 s//\1/ 11259 q 11260 } 11261 /^X\(\/\/\)$/{ 11262 s//\1/ 11263 q 11264 } 11265 /^X\(\/\).*/{ 11266 s//\1/ 11267 q 11268 } 11269 s/.*/./; q'` 11270 test -d "$as_dir" && break 11271 done 11272 test -z "$as_dirs" || eval "mkdir $as_dirs" 11273 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 11274echo "$as_me: error: cannot create directory $as_dir" >&2;} 11275 { (exit 1); exit 1; }; }; } 11276 ac_builddir=. 11277 11278case "$ac_dir" in 11279.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11280*) 11281 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11282 # A ".." for each directory in $ac_dir_suffix. 11283 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 11284 case $ac_top_builddir_sub in 11285 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11286 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11287 esac ;; 11288esac 11289ac_abs_top_builddir=$ac_pwd 11290ac_abs_builddir=$ac_pwd$ac_dir_suffix 11291# for backward compatibility: 11292ac_top_builddir=$ac_top_build_prefix 11293 11294case $srcdir in 11295 .) # We are building in place. 11296 ac_srcdir=. 11297 ac_top_srcdir=$ac_top_builddir_sub 11298 ac_abs_top_srcdir=$ac_pwd ;; 11299 [\\/]* | ?:[\\/]* ) # Absolute name. 11300 ac_srcdir=$srcdir$ac_dir_suffix; 11301 ac_top_srcdir=$srcdir 11302 ac_abs_top_srcdir=$srcdir ;; 11303 *) # Relative name. 11304 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11305 ac_top_srcdir=$ac_top_build_prefix$srcdir 11306 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11307esac 11308ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11309 11310 11311 case $ac_mode in 11312 :F) 11313 # 11314 # CONFIG_FILE 11315 # 11316 11317 case $INSTALL in 11318 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11319 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11320 esac 11321_ACEOF 11322 11323cat >>$CONFIG_STATUS <<\_ACEOF 11324# If the template does not know about datarootdir, expand it. 11325# FIXME: This hack should be removed a few years after 2.60. 11326ac_datarootdir_hack=; ac_datarootdir_seen= 11327 11328case `sed -n '/datarootdir/ { 11329 p 11330 q 11331} 11332/@datadir@/p 11333/@docdir@/p 11334/@infodir@/p 11335/@localedir@/p 11336/@mandir@/p 11337' $ac_file_inputs` in 11338*datarootdir*) ac_datarootdir_seen=yes;; 11339*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11340 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11341echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11342_ACEOF 11343cat >>$CONFIG_STATUS <<_ACEOF 11344 ac_datarootdir_hack=' 11345 s&@datadir@&$datadir&g 11346 s&@docdir@&$docdir&g 11347 s&@infodir@&$infodir&g 11348 s&@localedir@&$localedir&g 11349 s&@mandir@&$mandir&g 11350 s&\\\${datarootdir}&$datarootdir&g' ;; 11351esac 11352_ACEOF 11353 11354# Neutralize VPATH when `$srcdir' = `.'. 11355# Shell code in configure.ac might set extrasub. 11356# FIXME: do we really want to maintain this feature? 11357cat >>$CONFIG_STATUS <<_ACEOF 11358 sed "$ac_vpsub 11359$extrasub 11360_ACEOF 11361cat >>$CONFIG_STATUS <<\_ACEOF 11362:t 11363/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11364s&@configure_input@&$configure_input&;t t 11365s&@top_builddir@&$ac_top_builddir_sub&;t t 11366s&@srcdir@&$ac_srcdir&;t t 11367s&@abs_srcdir@&$ac_abs_srcdir&;t t 11368s&@top_srcdir@&$ac_top_srcdir&;t t 11369s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11370s&@builddir@&$ac_builddir&;t t 11371s&@abs_builddir@&$ac_abs_builddir&;t t 11372s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11373s&@INSTALL@&$ac_INSTALL&;t t 11374$ac_datarootdir_hack 11375" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 11376 11377test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11378 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 11379 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 11380 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11381which seems to be undefined. Please make sure it is defined." >&5 11382echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11383which seems to be undefined. Please make sure it is defined." >&2;} 11384 11385 rm -f "$tmp/stdin" 11386 case $ac_file in 11387 -) cat "$tmp/out"; rm -f "$tmp/out";; 11388 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 11389 esac 11390 ;; 11391 11392 11393 11394 esac 11395 11396done # for ac_tag 11397 11398 11399{ (exit 0); exit 0; } 11400_ACEOF 11401chmod +x $CONFIG_STATUS 11402ac_clean_files=$ac_clean_files_save 11403 11404 11405# configure is writing to config.log, and then calls config.status. 11406# config.status does its own redirection, appending to config.log. 11407# Unfortunately, on DOS this fails, as config.log is still kept open 11408# by configure, so config.status won't be able to write to it; its 11409# output is simply discarded. So we exec the FD to /dev/null, 11410# effectively closing config.log, so it can be properly (re)opened and 11411# appended to by config.status. When coming back to configure, we 11412# need to make the FD available again. 11413if test "$no_create" != yes; then 11414 ac_cs_success=: 11415 ac_config_status_args= 11416 test "$silent" = yes && 11417 ac_config_status_args="$ac_config_status_args --quiet" 11418 exec 5>/dev/null 11419 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11420 exec 5>>config.log 11421 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11422 # would make configure fail if this is the last instruction. 11423 $ac_cs_success || { (exit 1); exit 1; } 11424fi 11425 11426