1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for tclAE 2.0.5. 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='tclAE' 574PACKAGE_TARNAME='tclae' 575PACKAGE_VERSION='2.0.5' 576PACKAGE_STRING='tclAE 2.0.5' 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 tclAE 2.0.5 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/tclae] 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 tclAE 2.0.5:";; 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 1391tclAE configure 2.0.5 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 tclAE $as_me 2.0.5, 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="tclAEAddress.c tclAEBuild.c tclAEDesc.c tclAEDescObj.c 6614 tclAEHandler.c tclAEInit.c tclAEObjects.c tclMacOSError.c 6615 osxMacTcl.c AEPrintCarbon.c" 6616 for i in $vars; do 6617 case $i in 6618 \$*) 6619 # allow $-var names 6620 PKG_SOURCES="$PKG_SOURCES $i" 6621 PKG_OBJECTS="$PKG_OBJECTS $i" 6622 ;; 6623 *) 6624 # check for existence - allows for generic/win/unix VPATH 6625 # To add more dirs here (like 'src'), you have to update VPATH 6626 # in Makefile.in as well 6627 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6628 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6629 -a ! -f "${srcdir}/macosx/$i" \ 6630 ; then 6631 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6632echo "$as_me: error: could not find source file '$i'" >&2;} 6633 { (exit 1); exit 1; }; } 6634 fi 6635 PKG_SOURCES="$PKG_SOURCES $i" 6636 # this assumes it is in a VPATH dir 6637 i=`basename $i` 6638 # handle user calling this before or after TEA_SETUP_COMPILER 6639 if test x"${OBJEXT}" != x ; then 6640 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6641 else 6642 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6643 fi 6644 PKG_OBJECTS="$PKG_OBJECTS $j" 6645 ;; 6646 esac 6647 done 6648 6649 6650 6651 6652 vars="" 6653 for i in $vars; do 6654 # check for existence, be strict because it is installed 6655 if test ! -f "${srcdir}/$i" ; then 6656 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6657echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6658 { (exit 1); exit 1; }; } 6659 fi 6660 PKG_HEADERS="$PKG_HEADERS $i" 6661 done 6662 6663 6664 6665 vars="-include \${srcdir}/generic/tclAECarbon.h" 6666 for i in $vars; do 6667 PKG_INCLUDES="$PKG_INCLUDES $i" 6668 done 6669 6670 6671 6672 vars="-framework Carbon" 6673 for i in $vars; do 6674 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6675 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6676 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6677 fi 6678 PKG_LIBS="$PKG_LIBS $i" 6679 done 6680 6681 6682 6683 PKG_CFLAGS="$PKG_CFLAGS -DTCLAE_USE_FRAMEWORK_INCLUDES" 6684 6685 6686 6687 vars="" 6688 for i in $vars; do 6689 # check for existence - allows for generic/win/unix VPATH 6690 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6691 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6692 -a ! -f "${srcdir}/macosx/$i" \ 6693 ; then 6694 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6695echo "$as_me: error: could not find stub source file '$i'" >&2;} 6696 { (exit 1); exit 1; }; } 6697 fi 6698 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6699 # this assumes it is in a VPATH dir 6700 i=`basename $i` 6701 # handle user calling this before or after TEA_SETUP_COMPILER 6702 if test x"${OBJEXT}" != x ; then 6703 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6704 else 6705 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6706 fi 6707 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6708 done 6709 6710 6711 6712 6713 vars="library/aebuild.tcl library/aelegacy.tcl 6714 library/aete.tcl library/oserrors.tcl" 6715 for i in $vars; do 6716 # check for existence, be strict because it is installed 6717 if test ! -f "${srcdir}/$i" ; then 6718 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6719echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6720 { (exit 1); exit 1; }; } 6721 fi 6722 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6723 done 6724 6725 6726 6727 6728 6729#-------------------------------------------------------------------- 6730# Choose which headers you need. Extension authors should try very 6731# hard to only rely on the Tcl public header files. Internal headers 6732# contain private data structures and are subject to change without 6733# notice. 6734# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 6735#-------------------------------------------------------------------- 6736 6737 6738 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6739echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6740 6741 6742# Check whether --with-tclinclude was given. 6743if test "${with_tclinclude+set}" = set; then 6744 withval=$with_tclinclude; with_tclinclude=${withval} 6745fi 6746 6747 6748 if test "${ac_cv_c_tclh+set}" = set; then 6749 echo $ECHO_N "(cached) $ECHO_C" >&6 6750else 6751 6752 # Use the value from --with-tclinclude, if it was given 6753 6754 if test x"${with_tclinclude}" != x ; then 6755 if test -f "${with_tclinclude}/tcl.h" ; then 6756 ac_cv_c_tclh=${with_tclinclude} 6757 else 6758 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6759echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6760 { (exit 1); exit 1; }; } 6761 fi 6762 else 6763 list="" 6764 if test "`uname -s`" = "Darwin"; then 6765 # If Tcl was built as a framework, attempt to use 6766 # the framework's Headers directory 6767 case ${TCL_DEFS} in 6768 *TCL_FRAMEWORK*) 6769 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 6770 ;; 6771 esac 6772 fi 6773 6774 # Look in the source dir only if Tcl is not installed, 6775 # and in that situation, look there before installed locations. 6776 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6777 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 6778 fi 6779 6780 # Check order: pkg --prefix location, Tcl's --prefix location, 6781 # relative to directory of tclConfig.sh. 6782 6783 eval "temp_includedir=${includedir}" 6784 list="$list \ 6785 `ls -d ${temp_includedir} 2>/dev/null` \ 6786 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 6787 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 6788 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 6789 list="$list /usr/local/include /usr/include" 6790 if test x"${TCL_INCLUDE_SPEC}" != x ; then 6791 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 6792 list="$list `ls -d ${d} 2>/dev/null`" 6793 fi 6794 fi 6795 for i in $list ; do 6796 if test -f "$i/tcl.h" ; then 6797 ac_cv_c_tclh=$i 6798 break 6799 fi 6800 done 6801 fi 6802 6803fi 6804 6805 6806 # Print a message based on how we determined the include path 6807 6808 if test x"${ac_cv_c_tclh}" = x ; then 6809 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 6810echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 6811 { (exit 1); exit 1; }; } 6812 else 6813 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 6814echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 6815 fi 6816 6817 # Convert to a native path and substitute into the output files. 6818 6819 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 6820 6821 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 6822 6823 6824 6825#TEA_PRIVATE_TCL_HEADERS 6826 6827#-------------------------------------------------------------------- 6828# Check whether --enable-threads or --disable-threads was given. 6829# This auto-enables if Tcl was compiled threaded. 6830#-------------------------------------------------------------------- 6831 6832 6833 # Check whether --enable-threads was given. 6834if test "${enable_threads+set}" = set; then 6835 enableval=$enable_threads; tcl_ok=$enableval 6836else 6837 tcl_ok=yes 6838fi 6839 6840 6841 if test "${enable_threads+set}" = set; then 6842 enableval="$enable_threads" 6843 tcl_ok=$enableval 6844 else 6845 tcl_ok=yes 6846 fi 6847 6848 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 6849 TCL_THREADS=1 6850 6851 if test "${TEA_PLATFORM}" != "windows" ; then 6852 # We are always OK on Windows, so check what this platform wants: 6853 6854 # USE_THREAD_ALLOC tells us to try the special thread-based 6855 # allocator that significantly reduces lock contention 6856 6857cat >>confdefs.h <<\_ACEOF 6858#define USE_THREAD_ALLOC 1 6859_ACEOF 6860 6861 6862cat >>confdefs.h <<\_ACEOF 6863#define _REENTRANT 1 6864_ACEOF 6865 6866 if test "`uname -s`" = "SunOS" ; then 6867 6868cat >>confdefs.h <<\_ACEOF 6869#define _POSIX_PTHREAD_SEMANTICS 1 6870_ACEOF 6871 6872 fi 6873 6874cat >>confdefs.h <<\_ACEOF 6875#define _THREAD_SAFE 1 6876_ACEOF 6877 6878 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 6879echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 6880if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 6881 echo $ECHO_N "(cached) $ECHO_C" >&6 6882else 6883 ac_check_lib_save_LIBS=$LIBS 6884LIBS="-lpthread $LIBS" 6885cat >conftest.$ac_ext <<_ACEOF 6886/* confdefs.h. */ 6887_ACEOF 6888cat confdefs.h >>conftest.$ac_ext 6889cat >>conftest.$ac_ext <<_ACEOF 6890/* end confdefs.h. */ 6891 6892/* Override any GCC internal prototype to avoid an error. 6893 Use char because int might match the return type of a GCC 6894 builtin and then its argument prototype would still apply. */ 6895#ifdef __cplusplus 6896extern "C" 6897#endif 6898char pthread_mutex_init (); 6899int 6900main () 6901{ 6902return pthread_mutex_init (); 6903 ; 6904 return 0; 6905} 6906_ACEOF 6907rm -f conftest.$ac_objext conftest$ac_exeext 6908if { (ac_try="$ac_link" 6909case "(($ac_try" in 6910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6911 *) ac_try_echo=$ac_try;; 6912esac 6913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6914 (eval "$ac_link") 2>conftest.er1 6915 ac_status=$? 6916 grep -v '^ *+' conftest.er1 >conftest.err 6917 rm -f conftest.er1 6918 cat conftest.err >&5 6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6920 (exit $ac_status); } && { 6921 test -z "$ac_c_werror_flag" || 6922 test ! -s conftest.err 6923 } && test -s conftest$ac_exeext && 6924 $as_test_x conftest$ac_exeext; then 6925 ac_cv_lib_pthread_pthread_mutex_init=yes 6926else 6927 echo "$as_me: failed program was:" >&5 6928sed 's/^/| /' conftest.$ac_ext >&5 6929 6930 ac_cv_lib_pthread_pthread_mutex_init=no 6931fi 6932 6933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6934 conftest$ac_exeext conftest.$ac_ext 6935LIBS=$ac_check_lib_save_LIBS 6936fi 6937{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 6938echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 6939if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 6940 tcl_ok=yes 6941else 6942 tcl_ok=no 6943fi 6944 6945 if test "$tcl_ok" = "no"; then 6946 # Check a little harder for __pthread_mutex_init in the same 6947 # library, as some systems hide it there until pthread.h is 6948 # defined. We could alternatively do an AC_TRY_COMPILE with 6949 # pthread.h, but that will work with libpthread really doesn't 6950 # exist, like AIX 4.2. [Bug: 4359] 6951 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 6952echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 6953if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 6954 echo $ECHO_N "(cached) $ECHO_C" >&6 6955else 6956 ac_check_lib_save_LIBS=$LIBS 6957LIBS="-lpthread $LIBS" 6958cat >conftest.$ac_ext <<_ACEOF 6959/* confdefs.h. */ 6960_ACEOF 6961cat confdefs.h >>conftest.$ac_ext 6962cat >>conftest.$ac_ext <<_ACEOF 6963/* end confdefs.h. */ 6964 6965/* Override any GCC internal prototype to avoid an error. 6966 Use char because int might match the return type of a GCC 6967 builtin and then its argument prototype would still apply. */ 6968#ifdef __cplusplus 6969extern "C" 6970#endif 6971char __pthread_mutex_init (); 6972int 6973main () 6974{ 6975return __pthread_mutex_init (); 6976 ; 6977 return 0; 6978} 6979_ACEOF 6980rm -f conftest.$ac_objext conftest$ac_exeext 6981if { (ac_try="$ac_link" 6982case "(($ac_try" in 6983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6984 *) ac_try_echo=$ac_try;; 6985esac 6986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6987 (eval "$ac_link") 2>conftest.er1 6988 ac_status=$? 6989 grep -v '^ *+' conftest.er1 >conftest.err 6990 rm -f conftest.er1 6991 cat conftest.err >&5 6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6993 (exit $ac_status); } && { 6994 test -z "$ac_c_werror_flag" || 6995 test ! -s conftest.err 6996 } && test -s conftest$ac_exeext && 6997 $as_test_x conftest$ac_exeext; then 6998 ac_cv_lib_pthread___pthread_mutex_init=yes 6999else 7000 echo "$as_me: failed program was:" >&5 7001sed 's/^/| /' conftest.$ac_ext >&5 7002 7003 ac_cv_lib_pthread___pthread_mutex_init=no 7004fi 7005 7006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7007 conftest$ac_exeext conftest.$ac_ext 7008LIBS=$ac_check_lib_save_LIBS 7009fi 7010{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7011echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7012if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7013 tcl_ok=yes 7014else 7015 tcl_ok=no 7016fi 7017 7018 fi 7019 7020 if test "$tcl_ok" = "yes"; then 7021 # The space is needed 7022 THREADS_LIBS=" -lpthread" 7023 else 7024 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7025echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7026if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7027 echo $ECHO_N "(cached) $ECHO_C" >&6 7028else 7029 ac_check_lib_save_LIBS=$LIBS 7030LIBS="-lpthreads $LIBS" 7031cat >conftest.$ac_ext <<_ACEOF 7032/* confdefs.h. */ 7033_ACEOF 7034cat confdefs.h >>conftest.$ac_ext 7035cat >>conftest.$ac_ext <<_ACEOF 7036/* end confdefs.h. */ 7037 7038/* Override any GCC internal prototype to avoid an error. 7039 Use char because int might match the return type of a GCC 7040 builtin and then its argument prototype would still apply. */ 7041#ifdef __cplusplus 7042extern "C" 7043#endif 7044char pthread_mutex_init (); 7045int 7046main () 7047{ 7048return pthread_mutex_init (); 7049 ; 7050 return 0; 7051} 7052_ACEOF 7053rm -f conftest.$ac_objext conftest$ac_exeext 7054if { (ac_try="$ac_link" 7055case "(($ac_try" in 7056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7057 *) ac_try_echo=$ac_try;; 7058esac 7059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7060 (eval "$ac_link") 2>conftest.er1 7061 ac_status=$? 7062 grep -v '^ *+' conftest.er1 >conftest.err 7063 rm -f conftest.er1 7064 cat conftest.err >&5 7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7066 (exit $ac_status); } && { 7067 test -z "$ac_c_werror_flag" || 7068 test ! -s conftest.err 7069 } && test -s conftest$ac_exeext && 7070 $as_test_x conftest$ac_exeext; then 7071 ac_cv_lib_pthreads_pthread_mutex_init=yes 7072else 7073 echo "$as_me: failed program was:" >&5 7074sed 's/^/| /' conftest.$ac_ext >&5 7075 7076 ac_cv_lib_pthreads_pthread_mutex_init=no 7077fi 7078 7079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7080 conftest$ac_exeext conftest.$ac_ext 7081LIBS=$ac_check_lib_save_LIBS 7082fi 7083{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7084echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7085if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7086 tcl_ok=yes 7087else 7088 tcl_ok=no 7089fi 7090 7091 if test "$tcl_ok" = "yes"; then 7092 # The space is needed 7093 THREADS_LIBS=" -lpthreads" 7094 else 7095 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7096echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7097if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7098 echo $ECHO_N "(cached) $ECHO_C" >&6 7099else 7100 ac_check_lib_save_LIBS=$LIBS 7101LIBS="-lc $LIBS" 7102cat >conftest.$ac_ext <<_ACEOF 7103/* confdefs.h. */ 7104_ACEOF 7105cat confdefs.h >>conftest.$ac_ext 7106cat >>conftest.$ac_ext <<_ACEOF 7107/* end confdefs.h. */ 7108 7109/* Override any GCC internal prototype to avoid an error. 7110 Use char because int might match the return type of a GCC 7111 builtin and then its argument prototype would still apply. */ 7112#ifdef __cplusplus 7113extern "C" 7114#endif 7115char pthread_mutex_init (); 7116int 7117main () 7118{ 7119return pthread_mutex_init (); 7120 ; 7121 return 0; 7122} 7123_ACEOF 7124rm -f conftest.$ac_objext conftest$ac_exeext 7125if { (ac_try="$ac_link" 7126case "(($ac_try" in 7127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7128 *) ac_try_echo=$ac_try;; 7129esac 7130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7131 (eval "$ac_link") 2>conftest.er1 7132 ac_status=$? 7133 grep -v '^ *+' conftest.er1 >conftest.err 7134 rm -f conftest.er1 7135 cat conftest.err >&5 7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7137 (exit $ac_status); } && { 7138 test -z "$ac_c_werror_flag" || 7139 test ! -s conftest.err 7140 } && test -s conftest$ac_exeext && 7141 $as_test_x conftest$ac_exeext; then 7142 ac_cv_lib_c_pthread_mutex_init=yes 7143else 7144 echo "$as_me: failed program was:" >&5 7145sed 's/^/| /' conftest.$ac_ext >&5 7146 7147 ac_cv_lib_c_pthread_mutex_init=no 7148fi 7149 7150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7151 conftest$ac_exeext conftest.$ac_ext 7152LIBS=$ac_check_lib_save_LIBS 7153fi 7154{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7155echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7156if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7157 tcl_ok=yes 7158else 7159 tcl_ok=no 7160fi 7161 7162 if test "$tcl_ok" = "no"; then 7163 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7164echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7165if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7166 echo $ECHO_N "(cached) $ECHO_C" >&6 7167else 7168 ac_check_lib_save_LIBS=$LIBS 7169LIBS="-lc_r $LIBS" 7170cat >conftest.$ac_ext <<_ACEOF 7171/* confdefs.h. */ 7172_ACEOF 7173cat confdefs.h >>conftest.$ac_ext 7174cat >>conftest.$ac_ext <<_ACEOF 7175/* end confdefs.h. */ 7176 7177/* Override any GCC internal prototype to avoid an error. 7178 Use char because int might match the return type of a GCC 7179 builtin and then its argument prototype would still apply. */ 7180#ifdef __cplusplus 7181extern "C" 7182#endif 7183char pthread_mutex_init (); 7184int 7185main () 7186{ 7187return pthread_mutex_init (); 7188 ; 7189 return 0; 7190} 7191_ACEOF 7192rm -f conftest.$ac_objext conftest$ac_exeext 7193if { (ac_try="$ac_link" 7194case "(($ac_try" in 7195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7196 *) ac_try_echo=$ac_try;; 7197esac 7198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7199 (eval "$ac_link") 2>conftest.er1 7200 ac_status=$? 7201 grep -v '^ *+' conftest.er1 >conftest.err 7202 rm -f conftest.er1 7203 cat conftest.err >&5 7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7205 (exit $ac_status); } && { 7206 test -z "$ac_c_werror_flag" || 7207 test ! -s conftest.err 7208 } && test -s conftest$ac_exeext && 7209 $as_test_x conftest$ac_exeext; then 7210 ac_cv_lib_c_r_pthread_mutex_init=yes 7211else 7212 echo "$as_me: failed program was:" >&5 7213sed 's/^/| /' conftest.$ac_ext >&5 7214 7215 ac_cv_lib_c_r_pthread_mutex_init=no 7216fi 7217 7218rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7219 conftest$ac_exeext conftest.$ac_ext 7220LIBS=$ac_check_lib_save_LIBS 7221fi 7222{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7223echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7224if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7225 tcl_ok=yes 7226else 7227 tcl_ok=no 7228fi 7229 7230 if test "$tcl_ok" = "yes"; then 7231 # The space is needed 7232 THREADS_LIBS=" -pthread" 7233 else 7234 TCL_THREADS=0 7235 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7236echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7237 fi 7238 fi 7239 fi 7240 fi 7241 fi 7242 else 7243 TCL_THREADS=0 7244 fi 7245 # Do checking message here to not mess up interleaved configure output 7246 { echo "$as_me:$LINENO: checking for building with threads" >&5 7247echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7248 if test "${TCL_THREADS}" = 1; then 7249 7250cat >>confdefs.h <<\_ACEOF 7251#define TCL_THREADS 1 7252_ACEOF 7253 7254 { echo "$as_me:$LINENO: result: yes (default)" >&5 7255echo "${ECHO_T}yes (default)" >&6; } 7256 else 7257 { echo "$as_me:$LINENO: result: no" >&5 7258echo "${ECHO_T}no" >&6; } 7259 fi 7260 # TCL_THREADS sanity checking. See if our request for building with 7261 # threads is the same as the way Tcl was built. If not, warn the user. 7262 case ${TCL_DEFS} in 7263 *THREADS=1*) 7264 if test "${TCL_THREADS}" = "0"; then 7265 { echo "$as_me:$LINENO: WARNING: 7266 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7267 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7268echo "$as_me: WARNING: 7269 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7270 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7271 fi 7272 ;; 7273 *) 7274 if test "${TCL_THREADS}" = "1"; then 7275 { echo "$as_me:$LINENO: WARNING: 7276 --enable-threads requested, but building against a Tcl that is NOT 7277 thread-enabled. This is an OK configuration that will also run in 7278 a thread-enabled core." >&5 7279echo "$as_me: 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." >&2;} 7283 fi 7284 ;; 7285 esac 7286 7287 7288 7289#-------------------------------------------------------------------- 7290# The statement below defines a collection of symbols related to 7291# building as a shared library instead of a static library. 7292#-------------------------------------------------------------------- 7293 7294 7295 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7296echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7297 # Check whether --enable-shared was given. 7298if test "${enable_shared+set}" = set; then 7299 enableval=$enable_shared; tcl_ok=$enableval 7300else 7301 tcl_ok=yes 7302fi 7303 7304 7305 if test "${enable_shared+set}" = set; then 7306 enableval="$enable_shared" 7307 tcl_ok=$enableval 7308 else 7309 tcl_ok=yes 7310 fi 7311 7312 if test "$tcl_ok" = "yes" ; then 7313 { echo "$as_me:$LINENO: result: shared" >&5 7314echo "${ECHO_T}shared" >&6; } 7315 SHARED_BUILD=1 7316 else 7317 { echo "$as_me:$LINENO: result: static" >&5 7318echo "${ECHO_T}static" >&6; } 7319 SHARED_BUILD=0 7320 7321cat >>confdefs.h <<\_ACEOF 7322#define STATIC_BUILD 1 7323_ACEOF 7324 7325 fi 7326 7327 7328 7329#-------------------------------------------------------------------- 7330# This macro figures out what flags to use with the compiler/linker 7331# when building shared/static debug/optimized objects. This information 7332# can be taken from the tclConfig.sh file, but this figures it all out. 7333#-------------------------------------------------------------------- 7334 7335 7336 7337 7338 # Step 0.a: Enable 64 bit support? 7339 7340 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7341echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 7342 # Check whether --enable-64bit was given. 7343if test "${enable_64bit+set}" = set; then 7344 enableval=$enable_64bit; do64bit=$enableval 7345else 7346 do64bit=no 7347fi 7348 7349 { echo "$as_me:$LINENO: result: $do64bit" >&5 7350echo "${ECHO_T}$do64bit" >&6; } 7351 7352 # Step 0.b: Enable Solaris 64 bit VIS support? 7353 7354 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7355echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 7356 # Check whether --enable-64bit-vis was given. 7357if test "${enable_64bit_vis+set}" = set; then 7358 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7359else 7360 do64bitVIS=no 7361fi 7362 7363 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7364echo "${ECHO_T}$do64bitVIS" >&6; } 7365 # Force 64bit on with VIS 7366 if test "$do64bitVIS" = "yes"; then 7367 do64bit=yes 7368fi 7369 7370 7371 # Step 0.c: Check if visibility support is available. Do this here so 7372 # that platform specific alternatives can be used below if this fails. 7373 7374 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7375echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 7376if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7377 echo $ECHO_N "(cached) $ECHO_C" >&6 7378else 7379 7380 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7381 cat >conftest.$ac_ext <<_ACEOF 7382/* confdefs.h. */ 7383_ACEOF 7384cat confdefs.h >>conftest.$ac_ext 7385cat >>conftest.$ac_ext <<_ACEOF 7386/* end confdefs.h. */ 7387 7388 extern __attribute__((__visibility__("hidden"))) void f(void); 7389 void f(void) {} 7390int 7391main () 7392{ 7393f(); 7394 ; 7395 return 0; 7396} 7397_ACEOF 7398rm -f conftest.$ac_objext conftest$ac_exeext 7399if { (ac_try="$ac_link" 7400case "(($ac_try" in 7401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7402 *) ac_try_echo=$ac_try;; 7403esac 7404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7405 (eval "$ac_link") 2>conftest.er1 7406 ac_status=$? 7407 grep -v '^ *+' conftest.er1 >conftest.err 7408 rm -f conftest.er1 7409 cat conftest.err >&5 7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7411 (exit $ac_status); } && { 7412 test -z "$ac_c_werror_flag" || 7413 test ! -s conftest.err 7414 } && test -s conftest$ac_exeext && 7415 $as_test_x conftest$ac_exeext; then 7416 tcl_cv_cc_visibility_hidden=yes 7417else 7418 echo "$as_me: failed program was:" >&5 7419sed 's/^/| /' conftest.$ac_ext >&5 7420 7421 tcl_cv_cc_visibility_hidden=no 7422fi 7423 7424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7425 conftest$ac_exeext conftest.$ac_ext 7426 CFLAGS=$hold_cflags 7427fi 7428{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7429echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 7430 if test $tcl_cv_cc_visibility_hidden = yes; then 7431 7432 7433cat >>confdefs.h <<\_ACEOF 7434#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7435_ACEOF 7436 7437 7438fi 7439 7440 7441 # Step 0.d: Disable -rpath support? 7442 7443 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7444echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 7445 # Check whether --enable-rpath was given. 7446if test "${enable_rpath+set}" = set; then 7447 enableval=$enable_rpath; doRpath=$enableval 7448else 7449 doRpath=yes 7450fi 7451 7452 { echo "$as_me:$LINENO: result: $doRpath" >&5 7453echo "${ECHO_T}$doRpath" >&6; } 7454 7455 # TEA specific: Cross-compiling options for Windows/CE builds? 7456 7457 if test "${TEA_PLATFORM}" = windows; then 7458 7459 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7460echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 7461 # Check whether --enable-wince was given. 7462if test "${enable_wince+set}" = set; then 7463 enableval=$enable_wince; doWince=$enableval 7464else 7465 doWince=no 7466fi 7467 7468 { echo "$as_me:$LINENO: result: $doWince" >&5 7469echo "${ECHO_T}$doWince" >&6; } 7470 7471fi 7472 7473 7474 # Set the variable "system" to hold the name and version number 7475 # for the system. 7476 7477 7478 { echo "$as_me:$LINENO: checking system version" >&5 7479echo $ECHO_N "checking system version... $ECHO_C" >&6; } 7480if test "${tcl_cv_sys_version+set}" = set; then 7481 echo $ECHO_N "(cached) $ECHO_C" >&6 7482else 7483 7484 # TEA specific: 7485 if test "${TEA_PLATFORM}" = "windows" ; then 7486 tcl_cv_sys_version=windows 7487 else 7488 tcl_cv_sys_version=`uname -s`-`uname -r` 7489 if test "$?" -ne 0 ; then 7490 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7491echo "$as_me: WARNING: can't find uname command" >&2;} 7492 tcl_cv_sys_version=unknown 7493 else 7494 if test "`uname -s`" = "AIX" ; then 7495 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7496 fi 7497 fi 7498 fi 7499 7500fi 7501{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7502echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 7503 system=$tcl_cv_sys_version 7504 7505 7506 # Require ranlib early so we can override it in special cases below. 7507 7508 7509 7510 # Set configuration options based on system name and version. 7511 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7512 # "windows" case and removed some core-only vars. 7513 7514 do64bit_ok=no 7515 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7516 SHLIB_LD_LIBS='${LIBS}' 7517 # When ld needs options to work in 64-bit mode, put them in 7518 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7519 # is disabled by the user. [Bug 1016796] 7520 LDFLAGS_ARCH="" 7521 UNSHARED_LIB_SUFFIX="" 7522 # TEA specific: use PACKAGE_VERSION instead of VERSION 7523 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7524 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7525 TCL_LIB_VERSIONS_OK=ok 7526 CFLAGS_DEBUG=-g 7527 CFLAGS_OPTIMIZE=-O 7528 if test "$GCC" = yes; then 7529 7530 # TEA specific: 7531 CFLAGS_OPTIMIZE=-O2 7532 CFLAGS_WARNING="-Wall" 7533 7534else 7535 CFLAGS_WARNING="" 7536fi 7537 7538 # Extract the first word of "ar", so it can be a program name with args. 7539set dummy ar; ac_word=$2 7540{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7542if test "${ac_cv_prog_AR+set}" = set; then 7543 echo $ECHO_N "(cached) $ECHO_C" >&6 7544else 7545 if test -n "$AR"; then 7546 ac_cv_prog_AR="$AR" # Let the user override the test. 7547else 7548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7549for as_dir in $PATH 7550do 7551 IFS=$as_save_IFS 7552 test -z "$as_dir" && as_dir=. 7553 for ac_exec_ext in '' $ac_executable_extensions; do 7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7555 ac_cv_prog_AR="ar" 7556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7557 break 2 7558 fi 7559done 7560done 7561IFS=$as_save_IFS 7562 7563fi 7564fi 7565AR=$ac_cv_prog_AR 7566if test -n "$AR"; then 7567 { echo "$as_me:$LINENO: result: $AR" >&5 7568echo "${ECHO_T}$AR" >&6; } 7569else 7570 { echo "$as_me:$LINENO: result: no" >&5 7571echo "${ECHO_T}no" >&6; } 7572fi 7573 7574 7575 STLIB_LD='${AR} cr' 7576 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7577 if test "x$SHLIB_VERSION" = x; then 7578 SHLIB_VERSION="1.0" 7579fi 7580 7581 case $system in 7582 # TEA specific: 7583 windows) 7584 # This is a 2-stage check to make sure we have the 64-bit SDK 7585 # We have to know where the SDK is installed. 7586 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7587 # MACHINE is IX86 for LINK, but this is used by the manifest, 7588 # which requires x86|amd64|ia64. 7589 MACHINE="X86" 7590 if test "$do64bit" != "no" ; then 7591 if test "x${MSSDK}x" = "xx" ; then 7592 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7593 fi 7594 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7595 PATH64="" 7596 case "$do64bit" in 7597 amd64|x64|yes) 7598 MACHINE="AMD64" ; # default to AMD64 64-bit build 7599 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7600 ;; 7601 ia64) 7602 MACHINE="IA64" 7603 PATH64="${MSSDK}/Bin/Win64" 7604 ;; 7605 esac 7606 if test ! -d "${PATH64}" ; then 7607 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7608echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7609 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7610echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7611 do64bit="no" 7612 else 7613 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7614echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 7615 do64bit_ok="yes" 7616 fi 7617 fi 7618 7619 if test "$doWince" != "no" ; then 7620 if test "$do64bit" != "no" ; then 7621 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7622echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7623 { (exit 1); exit 1; }; } 7624 fi 7625 if test "$GCC" = "yes" ; then 7626 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7627echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7628 { (exit 1); exit 1; }; } 7629 fi 7630 7631 # First, look for one uninstalled. 7632 # the alternative search directory is invoked by --with-celib 7633 7634 if test x"${no_celib}" = x ; then 7635 # we reset no_celib in case something fails here 7636 no_celib=true 7637 7638# Check whether --with-celib was given. 7639if test "${with_celib+set}" = set; then 7640 withval=$with_celib; with_celibconfig=${withval} 7641fi 7642 7643 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7644echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 7645 if test "${ac_cv_c_celibconfig+set}" = set; then 7646 echo $ECHO_N "(cached) $ECHO_C" >&6 7647else 7648 7649 # First check to see if --with-celibconfig was specified. 7650 if test x"${with_celibconfig}" != x ; then 7651 if test -d "${with_celibconfig}/inc" ; then 7652 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7653 else 7654 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7655echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7656 { (exit 1); exit 1; }; } 7657 fi 7658 fi 7659 7660 # then check for a celib library 7661 if test x"${ac_cv_c_celibconfig}" = x ; then 7662 for i in \ 7663 ../celib-palm-3.0 \ 7664 ../celib \ 7665 ../../celib-palm-3.0 \ 7666 ../../celib \ 7667 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7668 ${srcdir}/../celib-palm-3.0 \ 7669 ${srcdir}/../celib \ 7670 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7671 ; do 7672 if test -d "$i/inc" ; then 7673 ac_cv_c_celibconfig=`(cd $i; pwd)` 7674 break 7675 fi 7676 done 7677 fi 7678 7679fi 7680 7681 if test x"${ac_cv_c_celibconfig}" = x ; then 7682 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7683echo "$as_me: error: Cannot find celib support library directory" >&2;} 7684 { (exit 1); exit 1; }; } 7685 else 7686 no_celib= 7687 CELIB_DIR=${ac_cv_c_celibconfig} 7688 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7689 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7690echo "${ECHO_T}found $CELIB_DIR" >&6; } 7691 fi 7692 fi 7693 7694 # Set defaults for common evc4/PPC2003 setup 7695 # Currently Tcl requires 300+, possibly 420+ for sockets 7696 CEVERSION=420; # could be 211 300 301 400 420 ... 7697 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7698 ARCH=ARM; # could be ARM MIPS X86EM ... 7699 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7700 if test "$doWince" != "yes"; then 7701 # If !yes then the user specified something 7702 # Reset ARCH to allow user to skip specifying it 7703 ARCH= 7704 eval `echo $doWince | awk -F, '{ \ 7705 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7706 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7707 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7708 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7709 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7710 }'` 7711 if test "x${ARCH}" = "x" ; then 7712 ARCH=$TARGETCPU; 7713 fi 7714 fi 7715 OSVERSION=WCE$CEVERSION; 7716 if test "x${WCEROOT}" = "x" ; then 7717 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7718 if test ! -d "${WCEROOT}" ; then 7719 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7720 fi 7721 fi 7722 if test "x${SDKROOT}" = "x" ; then 7723 SDKROOT="C:/Program Files/Windows CE Tools" 7724 if test ! -d "${SDKROOT}" ; then 7725 SDKROOT="C:/Windows CE Tools" 7726 fi 7727 fi 7728 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7729 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7730 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7731 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7732 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7733echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7734 { (exit 1); exit 1; }; } 7735 doWince="no" 7736 else 7737 # We could PATH_NOSPACE these, but that's not important, 7738 # as long as we quote them when used. 7739 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7740 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7741 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7742 fi 7743 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7744 fi 7745 fi 7746 7747 if test "$GCC" != "yes" ; then 7748 if test "${SHARED_BUILD}" = "0" ; then 7749 runtime=-MT 7750 else 7751 runtime=-MD 7752 fi 7753 7754 if test "$do64bit" != "no" ; then 7755 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7756 CC="\"${PATH64}/cl.exe\"" 7757 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7758 RC="\"${MSSDK}/bin/rc.exe\"" 7759 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7760 LINKBIN="\"${PATH64}/link.exe\"" 7761 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7762 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7763 # Avoid 'unresolved external symbol __security_cookie' 7764 # errors, c.f. http://support.microsoft.com/?id=894573 7765 7766 vars="bufferoverflowU.lib" 7767 for i in $vars; do 7768 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7769 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7770 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7771 fi 7772 PKG_LIBS="$PKG_LIBS $i" 7773 done 7774 7775 7776 elif test "$doWince" != "no" ; then 7777 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7778 if test "${TARGETCPU}" = "X86"; then 7779 CC="\"${CEBINROOT}/cl.exe\"" 7780 else 7781 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 7782 fi 7783 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7784 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 7785 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 7786 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 7787 if test "${SHARED_BUILD}" = "1" ; then 7788 # Static CE builds require static celib as well 7789 defs="${defs} _DLL" 7790 fi 7791 for i in $defs ; do 7792 7793cat >>confdefs.h <<_ACEOF 7794#define $i 1 7795_ACEOF 7796 7797 done 7798 7799cat >>confdefs.h <<_ACEOF 7800#define _WIN32_WCE $CEVERSION 7801_ACEOF 7802 7803 7804cat >>confdefs.h <<_ACEOF 7805#define UNDER_CE $CEVERSION 7806_ACEOF 7807 7808 CFLAGS_DEBUG="-nologo -Zi -Od" 7809 CFLAGS_OPTIMIZE="-nologo -Ox" 7810 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 7811 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 7812 LINKBIN="\"${CEBINROOT}/link.exe\"" 7813 7814 else 7815 RC="rc" 7816 lflags="-nologo" 7817 LINKBIN="link" 7818 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 7819 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7820 fi 7821 fi 7822 7823 if test "$GCC" = "yes"; then 7824 # mingw gcc mode 7825 RC="windres" 7826 CFLAGS_DEBUG="-g" 7827 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 7828 SHLIB_LD="$CC -shared" 7829 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7830 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 7831 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 7832 else 7833 SHLIB_LD="${LINKBIN} -dll ${lflags}" 7834 # link -lib only works when -lib is the first arg 7835 STLIB_LD="${LINKBIN} -lib ${lflags}" 7836 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 7837 PATHTYPE=-w 7838 # For information on what debugtype is most useful, see: 7839 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 7840 # and also 7841 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 7842 # This essentially turns it all on. 7843 LDFLAGS_DEBUG="-debug -debugtype:cv" 7844 LDFLAGS_OPTIMIZE="-release" 7845 if test "$doWince" != "no" ; then 7846 LDFLAGS_CONSOLE="-link ${lflags}" 7847 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 7848 else 7849 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 7850 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 7851 fi 7852 fi 7853 7854 SHLIB_SUFFIX=".dll" 7855 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 7856 7857 TCL_LIB_VERSIONS_OK=nodots 7858 ;; 7859 AIX-*) 7860 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 7861 7862 # AIX requires the _r compiler when gcc isn't being used 7863 case "${CC}" in 7864 *_r|*_r\ *) 7865 # ok ... 7866 ;; 7867 *) 7868 # Make sure only first arg gets _r 7869 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 7870 ;; 7871 esac 7872 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 7873echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 7874 7875fi 7876 7877 LIBS="$LIBS -lc" 7878 SHLIB_CFLAGS="" 7879 SHLIB_SUFFIX=".so" 7880 7881 LD_LIBRARY_PATH_VAR="LIBPATH" 7882 7883 # Check to enable 64-bit flags for compiler/linker 7884 if test "$do64bit" = yes; then 7885 7886 if test "$GCC" = yes; then 7887 7888 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 7889echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 7890 7891else 7892 7893 do64bit_ok=yes 7894 CFLAGS="$CFLAGS -q64" 7895 LDFLAGS_ARCH="-q64" 7896 RANLIB="${RANLIB} -X64" 7897 AR="${AR} -X64" 7898 SHLIB_LD_FLAGS="-b64" 7899 7900fi 7901 7902 7903fi 7904 7905 7906 if test "`uname -m`" = ia64; then 7907 7908 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 7909 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 7910 if test "$GCC" = yes; then 7911 7912 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7913 7914else 7915 7916 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 7917 7918fi 7919 7920 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 7921 7922else 7923 7924 if test "$GCC" = yes; then 7925 7926 SHLIB_LD='${CC} -shared -Wl,-bexpall' 7927 7928else 7929 7930 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 7931 LDFLAGS="$LDFLAGS -brtl" 7932 7933fi 7934 7935 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 7936 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 7937 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7938 7939fi 7940 7941 ;; 7942 BeOS*) 7943 SHLIB_CFLAGS="-fPIC" 7944 SHLIB_LD='${CC} -nostart' 7945 SHLIB_SUFFIX=".so" 7946 7947 #----------------------------------------------------------- 7948 # Check for inet_ntoa in -lbind, for BeOS (which also needs 7949 # -lsocket, even if the network functions are in -lnet which 7950 # is always linked to, for compatibility. 7951 #----------------------------------------------------------- 7952 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 7953echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 7954if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 7955 echo $ECHO_N "(cached) $ECHO_C" >&6 7956else 7957 ac_check_lib_save_LIBS=$LIBS 7958LIBS="-lbind $LIBS" 7959cat >conftest.$ac_ext <<_ACEOF 7960/* confdefs.h. */ 7961_ACEOF 7962cat confdefs.h >>conftest.$ac_ext 7963cat >>conftest.$ac_ext <<_ACEOF 7964/* end confdefs.h. */ 7965 7966/* Override any GCC internal prototype to avoid an error. 7967 Use char because int might match the return type of a GCC 7968 builtin and then its argument prototype would still apply. */ 7969#ifdef __cplusplus 7970extern "C" 7971#endif 7972char inet_ntoa (); 7973int 7974main () 7975{ 7976return inet_ntoa (); 7977 ; 7978 return 0; 7979} 7980_ACEOF 7981rm -f conftest.$ac_objext conftest$ac_exeext 7982if { (ac_try="$ac_link" 7983case "(($ac_try" in 7984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7985 *) ac_try_echo=$ac_try;; 7986esac 7987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7988 (eval "$ac_link") 2>conftest.er1 7989 ac_status=$? 7990 grep -v '^ *+' conftest.er1 >conftest.err 7991 rm -f conftest.er1 7992 cat conftest.err >&5 7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7994 (exit $ac_status); } && { 7995 test -z "$ac_c_werror_flag" || 7996 test ! -s conftest.err 7997 } && test -s conftest$ac_exeext && 7998 $as_test_x conftest$ac_exeext; then 7999 ac_cv_lib_bind_inet_ntoa=yes 8000else 8001 echo "$as_me: failed program was:" >&5 8002sed 's/^/| /' conftest.$ac_ext >&5 8003 8004 ac_cv_lib_bind_inet_ntoa=no 8005fi 8006 8007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8008 conftest$ac_exeext conftest.$ac_ext 8009LIBS=$ac_check_lib_save_LIBS 8010fi 8011{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8012echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8013if test $ac_cv_lib_bind_inet_ntoa = yes; then 8014 LIBS="$LIBS -lbind -lsocket" 8015fi 8016 8017 ;; 8018 BSD/OS-4.*) 8019 SHLIB_CFLAGS="-export-dynamic -fPIC" 8020 SHLIB_LD='${CC} -shared' 8021 SHLIB_SUFFIX=".so" 8022 LDFLAGS="$LDFLAGS -export-dynamic" 8023 CC_SEARCH_FLAGS="" 8024 LD_SEARCH_FLAGS="" 8025 ;; 8026 CYGWIN_*) 8027 SHLIB_CFLAGS="" 8028 SHLIB_LD='${CC} -shared' 8029 SHLIB_SUFFIX=".dll" 8030 EXE_SUFFIX=".exe" 8031 CC_SEARCH_FLAGS="" 8032 LD_SEARCH_FLAGS="" 8033 ;; 8034 Haiku*) 8035 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8036 SHLIB_CFLAGS="-fPIC" 8037 SHLIB_SUFFIX=".so" 8038 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8039 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8040echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8041if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8042 echo $ECHO_N "(cached) $ECHO_C" >&6 8043else 8044 ac_check_lib_save_LIBS=$LIBS 8045LIBS="-lnetwork $LIBS" 8046cat >conftest.$ac_ext <<_ACEOF 8047/* confdefs.h. */ 8048_ACEOF 8049cat confdefs.h >>conftest.$ac_ext 8050cat >>conftest.$ac_ext <<_ACEOF 8051/* end confdefs.h. */ 8052 8053/* Override any GCC internal prototype to avoid an error. 8054 Use char because int might match the return type of a GCC 8055 builtin and then its argument prototype would still apply. */ 8056#ifdef __cplusplus 8057extern "C" 8058#endif 8059char inet_ntoa (); 8060int 8061main () 8062{ 8063return inet_ntoa (); 8064 ; 8065 return 0; 8066} 8067_ACEOF 8068rm -f conftest.$ac_objext conftest$ac_exeext 8069if { (ac_try="$ac_link" 8070case "(($ac_try" in 8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8072 *) ac_try_echo=$ac_try;; 8073esac 8074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8075 (eval "$ac_link") 2>conftest.er1 8076 ac_status=$? 8077 grep -v '^ *+' conftest.er1 >conftest.err 8078 rm -f conftest.er1 8079 cat conftest.err >&5 8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8081 (exit $ac_status); } && { 8082 test -z "$ac_c_werror_flag" || 8083 test ! -s conftest.err 8084 } && test -s conftest$ac_exeext && 8085 $as_test_x conftest$ac_exeext; then 8086 ac_cv_lib_network_inet_ntoa=yes 8087else 8088 echo "$as_me: failed program was:" >&5 8089sed 's/^/| /' conftest.$ac_ext >&5 8090 8091 ac_cv_lib_network_inet_ntoa=no 8092fi 8093 8094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8095 conftest$ac_exeext conftest.$ac_ext 8096LIBS=$ac_check_lib_save_LIBS 8097fi 8098{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8099echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8100if test $ac_cv_lib_network_inet_ntoa = yes; then 8101 LIBS="$LIBS -lnetwork" 8102fi 8103 8104 ;; 8105 HP-UX-*.11.*) 8106 # Use updated header definitions where possible 8107 8108cat >>confdefs.h <<\_ACEOF 8109#define _XOPEN_SOURCE_EXTENDED 1 8110_ACEOF 8111 8112 # TEA specific: Needed by Tcl, but not most extensions 8113 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8114 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8115 8116 if test "`uname -m`" = ia64; then 8117 8118 SHLIB_SUFFIX=".so" 8119 # Use newer C++ library for C++ extensions 8120 #if test "$GCC" != "yes" ; then 8121 # CPPFLAGS="-AA" 8122 #fi 8123 8124else 8125 8126 SHLIB_SUFFIX=".sl" 8127 8128fi 8129 8130 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8131echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8132if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8133 echo $ECHO_N "(cached) $ECHO_C" >&6 8134else 8135 ac_check_lib_save_LIBS=$LIBS 8136LIBS="-ldld $LIBS" 8137cat >conftest.$ac_ext <<_ACEOF 8138/* confdefs.h. */ 8139_ACEOF 8140cat confdefs.h >>conftest.$ac_ext 8141cat >>conftest.$ac_ext <<_ACEOF 8142/* end confdefs.h. */ 8143 8144/* Override any GCC internal prototype to avoid an error. 8145 Use char because int might match the return type of a GCC 8146 builtin and then its argument prototype would still apply. */ 8147#ifdef __cplusplus 8148extern "C" 8149#endif 8150char shl_load (); 8151int 8152main () 8153{ 8154return shl_load (); 8155 ; 8156 return 0; 8157} 8158_ACEOF 8159rm -f conftest.$ac_objext conftest$ac_exeext 8160if { (ac_try="$ac_link" 8161case "(($ac_try" in 8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8163 *) ac_try_echo=$ac_try;; 8164esac 8165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8166 (eval "$ac_link") 2>conftest.er1 8167 ac_status=$? 8168 grep -v '^ *+' conftest.er1 >conftest.err 8169 rm -f conftest.er1 8170 cat conftest.err >&5 8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8172 (exit $ac_status); } && { 8173 test -z "$ac_c_werror_flag" || 8174 test ! -s conftest.err 8175 } && test -s conftest$ac_exeext && 8176 $as_test_x conftest$ac_exeext; then 8177 ac_cv_lib_dld_shl_load=yes 8178else 8179 echo "$as_me: failed program was:" >&5 8180sed 's/^/| /' conftest.$ac_ext >&5 8181 8182 ac_cv_lib_dld_shl_load=no 8183fi 8184 8185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8186 conftest$ac_exeext conftest.$ac_ext 8187LIBS=$ac_check_lib_save_LIBS 8188fi 8189{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8190echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8191if test $ac_cv_lib_dld_shl_load = yes; then 8192 tcl_ok=yes 8193else 8194 tcl_ok=no 8195fi 8196 8197 if test "$tcl_ok" = yes; then 8198 8199 LDFLAGS="$LDFLAGS -E" 8200 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8201 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8202 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8203 8204fi 8205 8206 if test "$GCC" = yes; then 8207 8208 SHLIB_LD='${CC} -shared' 8209 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8210 8211else 8212 8213 CFLAGS="$CFLAGS -z" 8214 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8215 #CFLAGS="$CFLAGS +DAportable" 8216 SHLIB_CFLAGS="+z" 8217 SHLIB_LD="ld -b" 8218 8219fi 8220 8221 8222 # Check to enable 64-bit flags for compiler/linker 8223 if test "$do64bit" = "yes"; then 8224 8225 if test "$GCC" = yes; then 8226 8227 case `${CC} -dumpmachine` in 8228 hppa64*) 8229 # 64-bit gcc in use. Fix flags for GNU ld. 8230 do64bit_ok=yes 8231 SHLIB_LD='${CC} -shared' 8232 if test $doRpath = yes; then 8233 8234 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8235fi 8236 8237 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8238 ;; 8239 *) 8240 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8241echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8242 ;; 8243 esac 8244 8245else 8246 8247 do64bit_ok=yes 8248 CFLAGS="$CFLAGS +DD64" 8249 LDFLAGS_ARCH="+DD64" 8250 8251fi 8252 8253 8254fi 8255 ;; 8256 IRIX-6.*) 8257 SHLIB_CFLAGS="" 8258 SHLIB_LD="ld -n32 -shared -rdata_shared" 8259 SHLIB_SUFFIX=".so" 8260 if test $doRpath = yes; then 8261 8262 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8263 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8264fi 8265 8266 if test "$GCC" = yes; then 8267 8268 CFLAGS="$CFLAGS -mabi=n32" 8269 LDFLAGS="$LDFLAGS -mabi=n32" 8270 8271else 8272 8273 case $system in 8274 IRIX-6.3) 8275 # Use to build 6.2 compatible binaries on 6.3. 8276 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8277 ;; 8278 *) 8279 CFLAGS="$CFLAGS -n32" 8280 ;; 8281 esac 8282 LDFLAGS="$LDFLAGS -n32" 8283 8284fi 8285 8286 ;; 8287 IRIX64-6.*) 8288 SHLIB_CFLAGS="" 8289 SHLIB_LD="ld -n32 -shared -rdata_shared" 8290 SHLIB_SUFFIX=".so" 8291 if test $doRpath = yes; then 8292 8293 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8294 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8295fi 8296 8297 8298 # Check to enable 64-bit flags for compiler/linker 8299 8300 if test "$do64bit" = yes; then 8301 8302 if test "$GCC" = yes; then 8303 8304 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8305echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8306 8307else 8308 8309 do64bit_ok=yes 8310 SHLIB_LD="ld -64 -shared -rdata_shared" 8311 CFLAGS="$CFLAGS -64" 8312 LDFLAGS_ARCH="-64" 8313 8314fi 8315 8316 8317fi 8318 8319 ;; 8320 Linux*) 8321 SHLIB_CFLAGS="-fPIC" 8322 SHLIB_SUFFIX=".so" 8323 8324 # TEA specific: 8325 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8326 8327 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8328 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8329 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8330 if test $doRpath = yes; then 8331 8332 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8333fi 8334 8335 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8336 if test "`uname -m`" = "alpha"; then 8337 CFLAGS="$CFLAGS -mieee" 8338fi 8339 8340 if test $do64bit = yes; then 8341 8342 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8343echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 8344if test "${tcl_cv_cc_m64+set}" = set; then 8345 echo $ECHO_N "(cached) $ECHO_C" >&6 8346else 8347 8348 hold_cflags=$CFLAGS 8349 CFLAGS="$CFLAGS -m64" 8350 cat >conftest.$ac_ext <<_ACEOF 8351/* confdefs.h. */ 8352_ACEOF 8353cat confdefs.h >>conftest.$ac_ext 8354cat >>conftest.$ac_ext <<_ACEOF 8355/* end confdefs.h. */ 8356 8357int 8358main () 8359{ 8360 8361 ; 8362 return 0; 8363} 8364_ACEOF 8365rm -f conftest.$ac_objext conftest$ac_exeext 8366if { (ac_try="$ac_link" 8367case "(($ac_try" in 8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8369 *) ac_try_echo=$ac_try;; 8370esac 8371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8372 (eval "$ac_link") 2>conftest.er1 8373 ac_status=$? 8374 grep -v '^ *+' conftest.er1 >conftest.err 8375 rm -f conftest.er1 8376 cat conftest.err >&5 8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8378 (exit $ac_status); } && { 8379 test -z "$ac_c_werror_flag" || 8380 test ! -s conftest.err 8381 } && test -s conftest$ac_exeext && 8382 $as_test_x conftest$ac_exeext; then 8383 tcl_cv_cc_m64=yes 8384else 8385 echo "$as_me: failed program was:" >&5 8386sed 's/^/| /' conftest.$ac_ext >&5 8387 8388 tcl_cv_cc_m64=no 8389fi 8390 8391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8392 conftest$ac_exeext conftest.$ac_ext 8393 CFLAGS=$hold_cflags 8394fi 8395{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8396echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 8397 if test $tcl_cv_cc_m64 = yes; then 8398 8399 CFLAGS="$CFLAGS -m64" 8400 do64bit_ok=yes 8401 8402fi 8403 8404 8405fi 8406 8407 8408 # The combo of gcc + glibc has a bug related to inlining of 8409 # functions like strtod(). The -fno-builtin flag should address 8410 # this problem but it does not work. The -fno-inline flag is kind 8411 # of overkill but it works. Disable inlining only when one of the 8412 # files in compat/*.c is being linked in. 8413 8414 if test x"${USE_COMPAT}" != x; then 8415 CFLAGS="$CFLAGS -fno-inline" 8416fi 8417 8418 8419 ;; 8420 GNU*) 8421 SHLIB_CFLAGS="-fPIC" 8422 SHLIB_SUFFIX=".so" 8423 8424 SHLIB_LD='${CC} -shared' 8425 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8426 CC_SEARCH_FLAGS="" 8427 LD_SEARCH_FLAGS="" 8428 if test "`uname -m`" = "alpha"; then 8429 CFLAGS="$CFLAGS -mieee" 8430fi 8431 8432 ;; 8433 Lynx*) 8434 SHLIB_CFLAGS="-fPIC" 8435 SHLIB_SUFFIX=".so" 8436 CFLAGS_OPTIMIZE=-02 8437 SHLIB_LD='${CC} -shared' 8438 LD_FLAGS="-Wl,--export-dynamic" 8439 if test $doRpath = yes; then 8440 8441 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8442 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8443fi 8444 8445 ;; 8446 OpenBSD-*) 8447 SHLIB_CFLAGS="-fPIC" 8448 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8449 SHLIB_SUFFIX=".so" 8450 if test $doRpath = yes; then 8451 8452 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8453fi 8454 8455 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8456 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8457 { echo "$as_me:$LINENO: checking for ELF" >&5 8458echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 8459if test "${tcl_cv_ld_elf+set}" = set; then 8460 echo $ECHO_N "(cached) $ECHO_C" >&6 8461else 8462 8463 cat >conftest.$ac_ext <<_ACEOF 8464/* confdefs.h. */ 8465_ACEOF 8466cat confdefs.h >>conftest.$ac_ext 8467cat >>conftest.$ac_ext <<_ACEOF 8468/* end confdefs.h. */ 8469 8470#ifdef __ELF__ 8471 yes 8472#endif 8473 8474_ACEOF 8475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8476 $EGREP "yes" >/dev/null 2>&1; then 8477 tcl_cv_ld_elf=yes 8478else 8479 tcl_cv_ld_elf=no 8480fi 8481rm -f -r conftest* 8482 8483fi 8484{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8485echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 8486 if test $tcl_cv_ld_elf = yes; then 8487 8488 LDFLAGS=-Wl,-export-dynamic 8489 8490else 8491 LDFLAGS="" 8492fi 8493 8494 if test "${TCL_THREADS}" = "1"; then 8495 8496 # OpenBSD builds and links with -pthread, never -lpthread. 8497 LIBS=`echo $LIBS | sed s/-lpthread//` 8498 CFLAGS="$CFLAGS -pthread" 8499 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8500 8501fi 8502 8503 # OpenBSD doesn't do version numbers with dots. 8504 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8505 TCL_LIB_VERSIONS_OK=nodots 8506 ;; 8507 NetBSD-*|FreeBSD-[3-4].*) 8508 # FreeBSD 3.* and greater have ELF. 8509 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8510 SHLIB_CFLAGS="-fPIC" 8511 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8512 SHLIB_SUFFIX=".so" 8513 LDFLAGS="$LDFLAGS -export-dynamic" 8514 if test $doRpath = yes; then 8515 8516 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8517fi 8518 8519 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8520 if test "${TCL_THREADS}" = "1"; then 8521 8522 # The -pthread needs to go in the CFLAGS, not LIBS 8523 LIBS=`echo $LIBS | sed s/-pthread//` 8524 CFLAGS="$CFLAGS -pthread" 8525 LDFLAGS="$LDFLAGS -pthread" 8526 8527fi 8528 8529 case $system in 8530 FreeBSD-3.*) 8531 # FreeBSD-3 doesn't handle version numbers with dots. 8532 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8533 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8534 TCL_LIB_VERSIONS_OK=nodots 8535 ;; 8536 esac 8537 ;; 8538 FreeBSD-*) 8539 # This configuration from FreeBSD Ports. 8540 SHLIB_CFLAGS="-fPIC" 8541 SHLIB_LD="${CC} -shared" 8542 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8543 SHLIB_SUFFIX=".so" 8544 LDFLAGS="" 8545 if test $doRpath = yes; then 8546 8547 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8548 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8549fi 8550 8551 if test "${TCL_THREADS}" = "1"; then 8552 8553 # The -pthread needs to go in the LDFLAGS, not LIBS 8554 LIBS=`echo $LIBS | sed s/-pthread//` 8555 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8556 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8557fi 8558 8559 # Version numbers are dot-stripped by system policy. 8560 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8561 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8562 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8563 TCL_LIB_VERSIONS_OK=nodots 8564 ;; 8565 Darwin-*) 8566 CFLAGS_OPTIMIZE="-Os" 8567 SHLIB_CFLAGS="-fno-common" 8568 # To avoid discrepancies between what headers configure sees during 8569 # preprocessing tests and compiling tests, move any -isysroot and 8570 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8571 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8572 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8573 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8574 CFLAGS="`echo " ${CFLAGS}" | \ 8575 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8576 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8577 if test $do64bit = yes; then 8578 8579 case `arch` in 8580 ppc) 8581 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8582echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 8583if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8584 echo $ECHO_N "(cached) $ECHO_C" >&6 8585else 8586 8587 hold_cflags=$CFLAGS 8588 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8589 cat >conftest.$ac_ext <<_ACEOF 8590/* confdefs.h. */ 8591_ACEOF 8592cat confdefs.h >>conftest.$ac_ext 8593cat >>conftest.$ac_ext <<_ACEOF 8594/* end confdefs.h. */ 8595 8596int 8597main () 8598{ 8599 8600 ; 8601 return 0; 8602} 8603_ACEOF 8604rm -f conftest.$ac_objext conftest$ac_exeext 8605if { (ac_try="$ac_link" 8606case "(($ac_try" in 8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8608 *) ac_try_echo=$ac_try;; 8609esac 8610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8611 (eval "$ac_link") 2>conftest.er1 8612 ac_status=$? 8613 grep -v '^ *+' conftest.er1 >conftest.err 8614 rm -f conftest.er1 8615 cat conftest.err >&5 8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8617 (exit $ac_status); } && { 8618 test -z "$ac_c_werror_flag" || 8619 test ! -s conftest.err 8620 } && test -s conftest$ac_exeext && 8621 $as_test_x conftest$ac_exeext; then 8622 tcl_cv_cc_arch_ppc64=yes 8623else 8624 echo "$as_me: failed program was:" >&5 8625sed 's/^/| /' conftest.$ac_ext >&5 8626 8627 tcl_cv_cc_arch_ppc64=no 8628fi 8629 8630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8631 conftest$ac_exeext conftest.$ac_ext 8632 CFLAGS=$hold_cflags 8633fi 8634{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8635echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 8636 if test $tcl_cv_cc_arch_ppc64 = yes; then 8637 8638 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8639 do64bit_ok=yes 8640 8641fi 8642;; 8643 i386) 8644 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8645echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 8646if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8647 echo $ECHO_N "(cached) $ECHO_C" >&6 8648else 8649 8650 hold_cflags=$CFLAGS 8651 CFLAGS="$CFLAGS -arch x86_64" 8652 cat >conftest.$ac_ext <<_ACEOF 8653/* confdefs.h. */ 8654_ACEOF 8655cat confdefs.h >>conftest.$ac_ext 8656cat >>conftest.$ac_ext <<_ACEOF 8657/* end confdefs.h. */ 8658 8659int 8660main () 8661{ 8662 8663 ; 8664 return 0; 8665} 8666_ACEOF 8667rm -f conftest.$ac_objext conftest$ac_exeext 8668if { (ac_try="$ac_link" 8669case "(($ac_try" in 8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8671 *) ac_try_echo=$ac_try;; 8672esac 8673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8674 (eval "$ac_link") 2>conftest.er1 8675 ac_status=$? 8676 grep -v '^ *+' conftest.er1 >conftest.err 8677 rm -f conftest.er1 8678 cat conftest.err >&5 8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8680 (exit $ac_status); } && { 8681 test -z "$ac_c_werror_flag" || 8682 test ! -s conftest.err 8683 } && test -s conftest$ac_exeext && 8684 $as_test_x conftest$ac_exeext; then 8685 tcl_cv_cc_arch_x86_64=yes 8686else 8687 echo "$as_me: failed program was:" >&5 8688sed 's/^/| /' conftest.$ac_ext >&5 8689 8690 tcl_cv_cc_arch_x86_64=no 8691fi 8692 8693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8694 conftest$ac_exeext conftest.$ac_ext 8695 CFLAGS=$hold_cflags 8696fi 8697{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8698echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 8699 if test $tcl_cv_cc_arch_x86_64 = yes; then 8700 8701 CFLAGS="$CFLAGS -arch x86_64" 8702 do64bit_ok=yes 8703 8704fi 8705;; 8706 *) 8707 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8708echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8709 esac 8710 8711else 8712 8713 # Check for combined 32-bit and 64-bit fat build 8714 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8715 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 8716 8717 fat_32_64=yes 8718fi 8719 8720 8721fi 8722 8723 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8724 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8725 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8726echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 8727if test "${tcl_cv_ld_single_module+set}" = set; then 8728 echo $ECHO_N "(cached) $ECHO_C" >&6 8729else 8730 8731 hold_ldflags=$LDFLAGS 8732 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8733 cat >conftest.$ac_ext <<_ACEOF 8734/* confdefs.h. */ 8735_ACEOF 8736cat confdefs.h >>conftest.$ac_ext 8737cat >>conftest.$ac_ext <<_ACEOF 8738/* end confdefs.h. */ 8739 8740int 8741main () 8742{ 8743int i; 8744 ; 8745 return 0; 8746} 8747_ACEOF 8748rm -f conftest.$ac_objext conftest$ac_exeext 8749if { (ac_try="$ac_link" 8750case "(($ac_try" in 8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8752 *) ac_try_echo=$ac_try;; 8753esac 8754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8755 (eval "$ac_link") 2>conftest.er1 8756 ac_status=$? 8757 grep -v '^ *+' conftest.er1 >conftest.err 8758 rm -f conftest.er1 8759 cat conftest.err >&5 8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8761 (exit $ac_status); } && { 8762 test -z "$ac_c_werror_flag" || 8763 test ! -s conftest.err 8764 } && test -s conftest$ac_exeext && 8765 $as_test_x conftest$ac_exeext; then 8766 tcl_cv_ld_single_module=yes 8767else 8768 echo "$as_me: failed program was:" >&5 8769sed 's/^/| /' conftest.$ac_ext >&5 8770 8771 tcl_cv_ld_single_module=no 8772fi 8773 8774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8775 conftest$ac_exeext conftest.$ac_ext 8776 LDFLAGS=$hold_ldflags 8777fi 8778{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 8779echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 8780 if test $tcl_cv_ld_single_module = yes; then 8781 8782 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 8783 8784fi 8785 8786 # TEA specific: link shlib with current and compatiblity version flags 8787 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 8788 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 8789 SHLIB_SUFFIX=".dylib" 8790 # Don't use -prebind when building for Mac OS X 10.4 or later only: 8791 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 8792 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 8793 8794 LDFLAGS="$LDFLAGS -prebind" 8795fi 8796 8797 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 8798 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 8799echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 8800if test "${tcl_cv_ld_search_paths_first+set}" = set; then 8801 echo $ECHO_N "(cached) $ECHO_C" >&6 8802else 8803 8804 hold_ldflags=$LDFLAGS 8805 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8806 cat >conftest.$ac_ext <<_ACEOF 8807/* confdefs.h. */ 8808_ACEOF 8809cat confdefs.h >>conftest.$ac_ext 8810cat >>conftest.$ac_ext <<_ACEOF 8811/* end confdefs.h. */ 8812 8813int 8814main () 8815{ 8816int i; 8817 ; 8818 return 0; 8819} 8820_ACEOF 8821rm -f conftest.$ac_objext conftest$ac_exeext 8822if { (ac_try="$ac_link" 8823case "(($ac_try" in 8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8825 *) ac_try_echo=$ac_try;; 8826esac 8827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8828 (eval "$ac_link") 2>conftest.er1 8829 ac_status=$? 8830 grep -v '^ *+' conftest.er1 >conftest.err 8831 rm -f conftest.er1 8832 cat conftest.err >&5 8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8834 (exit $ac_status); } && { 8835 test -z "$ac_c_werror_flag" || 8836 test ! -s conftest.err 8837 } && test -s conftest$ac_exeext && 8838 $as_test_x conftest$ac_exeext; then 8839 tcl_cv_ld_search_paths_first=yes 8840else 8841 echo "$as_me: failed program was:" >&5 8842sed 's/^/| /' conftest.$ac_ext >&5 8843 8844 tcl_cv_ld_search_paths_first=no 8845fi 8846 8847rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8848 conftest$ac_exeext conftest.$ac_ext 8849 LDFLAGS=$hold_ldflags 8850fi 8851{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 8852echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 8853 if test $tcl_cv_ld_search_paths_first = yes; then 8854 8855 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8856 8857fi 8858 8859 if test "$tcl_cv_cc_visibility_hidden" != yes; then 8860 8861 8862cat >>confdefs.h <<\_ACEOF 8863#define MODULE_SCOPE __private_extern__ 8864_ACEOF 8865 8866 tcl_cv_cc_visibility_hidden=yes 8867 8868fi 8869 8870 CC_SEARCH_FLAGS="" 8871 LD_SEARCH_FLAGS="" 8872 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 8873 # TEA specific: for combined 32 & 64 bit fat builds of Tk 8874 # extensions, verify that 64-bit build is possible. 8875 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 8876 8877 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 8878 8879 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 8880echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 8881if test "${tcl_cv_lib_x11_64+set}" = set; then 8882 echo $ECHO_N "(cached) $ECHO_C" >&6 8883else 8884 8885 for v in CFLAGS CPPFLAGS LDFLAGS; do 8886 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 8887 done 8888 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 8889 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 8890 cat >conftest.$ac_ext <<_ACEOF 8891/* confdefs.h. */ 8892_ACEOF 8893cat confdefs.h >>conftest.$ac_ext 8894cat >>conftest.$ac_ext <<_ACEOF 8895/* end confdefs.h. */ 8896#include <X11/Xlib.h> 8897int 8898main () 8899{ 8900XrmInitialize(); 8901 ; 8902 return 0; 8903} 8904_ACEOF 8905rm -f conftest.$ac_objext conftest$ac_exeext 8906if { (ac_try="$ac_link" 8907case "(($ac_try" in 8908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8909 *) ac_try_echo=$ac_try;; 8910esac 8911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8912 (eval "$ac_link") 2>conftest.er1 8913 ac_status=$? 8914 grep -v '^ *+' conftest.er1 >conftest.err 8915 rm -f conftest.er1 8916 cat conftest.err >&5 8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8918 (exit $ac_status); } && { 8919 test -z "$ac_c_werror_flag" || 8920 test ! -s conftest.err 8921 } && test -s conftest$ac_exeext && 8922 $as_test_x conftest$ac_exeext; then 8923 tcl_cv_lib_x11_64=yes 8924else 8925 echo "$as_me: failed program was:" >&5 8926sed 's/^/| /' conftest.$ac_ext >&5 8927 8928 tcl_cv_lib_x11_64=no 8929fi 8930 8931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8932 conftest$ac_exeext conftest.$ac_ext 8933 for v in CFLAGS CPPFLAGS LDFLAGS; do 8934 eval $v'="$hold_'$v'"' 8935 done 8936fi 8937{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 8938echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 8939 8940fi 8941 8942 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 8943 8944 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 8945echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 8946if test "${tcl_cv_lib_tk_64+set}" = set; then 8947 echo $ECHO_N "(cached) $ECHO_C" >&6 8948else 8949 8950 for v in CFLAGS CPPFLAGS LDFLAGS; do 8951 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 8952 done 8953 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 8954 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 8955 cat >conftest.$ac_ext <<_ACEOF 8956/* confdefs.h. */ 8957_ACEOF 8958cat confdefs.h >>conftest.$ac_ext 8959cat >>conftest.$ac_ext <<_ACEOF 8960/* end confdefs.h. */ 8961#include <tk.h> 8962int 8963main () 8964{ 8965Tk_InitStubs(NULL, "", 0); 8966 ; 8967 return 0; 8968} 8969_ACEOF 8970rm -f conftest.$ac_objext conftest$ac_exeext 8971if { (ac_try="$ac_link" 8972case "(($ac_try" in 8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8974 *) ac_try_echo=$ac_try;; 8975esac 8976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8977 (eval "$ac_link") 2>conftest.er1 8978 ac_status=$? 8979 grep -v '^ *+' conftest.er1 >conftest.err 8980 rm -f conftest.er1 8981 cat conftest.err >&5 8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8983 (exit $ac_status); } && { 8984 test -z "$ac_c_werror_flag" || 8985 test ! -s conftest.err 8986 } && test -s conftest$ac_exeext && 8987 $as_test_x conftest$ac_exeext; then 8988 tcl_cv_lib_tk_64=yes 8989else 8990 echo "$as_me: failed program was:" >&5 8991sed 's/^/| /' conftest.$ac_ext >&5 8992 8993 tcl_cv_lib_tk_64=no 8994fi 8995 8996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8997 conftest$ac_exeext conftest.$ac_ext 8998 for v in CFLAGS CPPFLAGS LDFLAGS; do 8999 eval $v'="$hold_'$v'"' 9000 done 9001fi 9002{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9003echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9004 9005fi 9006 9007 # remove 64-bit arch flags from CFLAGS et al. if configuration 9008 # does not support 64-bit. 9009 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9010 9011 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9012echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9013 for v in CFLAGS CPPFLAGS LDFLAGS; do 9014 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9015 done 9016fi 9017 9018 9019fi 9020 9021 ;; 9022 OS/390-*) 9023 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9024 9025cat >>confdefs.h <<\_ACEOF 9026#define _OE_SOCKETS 1 9027_ACEOF 9028 9029 ;; 9030 OSF1-V*) 9031 # Digital OSF/1 9032 SHLIB_CFLAGS="" 9033 if test "$SHARED_BUILD" = 1; then 9034 9035 SHLIB_LD='ld -shared -expect_unresolved "*"' 9036 9037else 9038 9039 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9040 9041fi 9042 9043 SHLIB_SUFFIX=".so" 9044 if test $doRpath = yes; then 9045 9046 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9047 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9048fi 9049 9050 if test "$GCC" = yes; then 9051 CFLAGS="$CFLAGS -mieee" 9052else 9053 9054 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9055fi 9056 9057 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9058 if test "${TCL_THREADS}" = 1; then 9059 9060 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9061 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9062 LIBS=`echo $LIBS | sed s/-lpthreads//` 9063 if test "$GCC" = yes; then 9064 9065 LIBS="$LIBS -lpthread -lmach -lexc" 9066 9067else 9068 9069 CFLAGS="$CFLAGS -pthread" 9070 LDFLAGS="$LDFLAGS -pthread" 9071 9072fi 9073 9074 9075fi 9076 9077 ;; 9078 QNX-6*) 9079 # QNX RTP 9080 # This may work for all QNX, but it was only reported for v6. 9081 SHLIB_CFLAGS="-fPIC" 9082 SHLIB_LD="ld -Bshareable -x" 9083 SHLIB_LD_LIBS="" 9084 SHLIB_SUFFIX=".so" 9085 CC_SEARCH_FLAGS="" 9086 LD_SEARCH_FLAGS="" 9087 ;; 9088 SCO_SV-3.2*) 9089 if test "$GCC" = yes; then 9090 9091 SHLIB_CFLAGS="-fPIC -melf" 9092 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9093 9094else 9095 9096 SHLIB_CFLAGS="-Kpic -belf" 9097 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9098 9099fi 9100 9101 SHLIB_LD="ld -G" 9102 SHLIB_LD_LIBS="" 9103 SHLIB_SUFFIX=".so" 9104 CC_SEARCH_FLAGS="" 9105 LD_SEARCH_FLAGS="" 9106 ;; 9107 SunOS-5.[0-6]) 9108 # Careful to not let 5.10+ fall into this case 9109 9110 # Note: If _REENTRANT isn't defined, then Solaris 9111 # won't define thread-safe library routines. 9112 9113 9114cat >>confdefs.h <<\_ACEOF 9115#define _REENTRANT 1 9116_ACEOF 9117 9118 9119cat >>confdefs.h <<\_ACEOF 9120#define _POSIX_PTHREAD_SEMANTICS 1 9121_ACEOF 9122 9123 9124 SHLIB_CFLAGS="-KPIC" 9125 SHLIB_SUFFIX=".so" 9126 if test "$GCC" = yes; then 9127 9128 SHLIB_LD='${CC} -shared' 9129 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9130 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9131 9132else 9133 9134 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9135 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9136 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9137 9138fi 9139 9140 ;; 9141 SunOS-5*) 9142 # Note: If _REENTRANT isn't defined, then Solaris 9143 # won't define thread-safe library routines. 9144 9145 9146cat >>confdefs.h <<\_ACEOF 9147#define _REENTRANT 1 9148_ACEOF 9149 9150 9151cat >>confdefs.h <<\_ACEOF 9152#define _POSIX_PTHREAD_SEMANTICS 1 9153_ACEOF 9154 9155 9156 SHLIB_CFLAGS="-KPIC" 9157 9158 # Check to enable 64-bit flags for compiler/linker 9159 if test "$do64bit" = yes; then 9160 9161 arch=`isainfo` 9162 if test "$arch" = "sparcv9 sparc"; then 9163 9164 if test "$GCC" = yes; then 9165 9166 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9167 9168 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9169echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9170 9171else 9172 9173 do64bit_ok=yes 9174 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9175 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9176 SHLIB_CFLAGS="-fPIC" 9177 9178fi 9179 9180 9181else 9182 9183 do64bit_ok=yes 9184 if test "$do64bitVIS" = yes; then 9185 9186 CFLAGS="$CFLAGS -xarch=v9a" 9187 LDFLAGS_ARCH="-xarch=v9a" 9188 9189else 9190 9191 CFLAGS="$CFLAGS -xarch=v9" 9192 LDFLAGS_ARCH="-xarch=v9" 9193 9194fi 9195 9196 # Solaris 64 uses this as well 9197 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9198 9199fi 9200 9201 9202else 9203 if test "$arch" = "amd64 i386"; then 9204 9205 if test "$GCC" = yes; then 9206 9207 case $system in 9208 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9209 do64bit_ok=yes 9210 CFLAGS="$CFLAGS -m64" 9211 LDFLAGS="$LDFLAGS -m64";; 9212 *) 9213 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9214echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9215 esac 9216 9217else 9218 9219 do64bit_ok=yes 9220 case $system in 9221 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9222 CFLAGS="$CFLAGS -m64" 9223 LDFLAGS="$LDFLAGS -m64";; 9224 *) 9225 CFLAGS="$CFLAGS -xarch=amd64" 9226 LDFLAGS="$LDFLAGS -xarch=amd64";; 9227 esac 9228 9229fi 9230 9231 9232else 9233 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9234echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9235fi 9236 9237fi 9238 9239 9240fi 9241 9242 9243 SHLIB_SUFFIX=".so" 9244 if test "$GCC" = yes; then 9245 9246 SHLIB_LD='${CC} -shared' 9247 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9248 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9249 if test "$do64bit_ok" = yes; then 9250 9251 if test "$arch" = "sparcv9 sparc"; then 9252 9253 # We need to specify -static-libgcc or we need to 9254 # add the path to the sparv9 libgcc. 9255 # JH: static-libgcc is necessary for core Tcl, but may 9256 # not be necessary for extensions. 9257 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9258 # for finding sparcv9 libgcc, get the regular libgcc 9259 # path, remove so name and append 'sparcv9' 9260 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9261 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9262 9263else 9264 if test "$arch" = "amd64 i386"; then 9265 9266 # JH: static-libgcc is necessary for core Tcl, but may 9267 # not be necessary for extensions. 9268 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9269 9270fi 9271 9272fi 9273 9274 9275fi 9276 9277 9278else 9279 9280 case $system in 9281 SunOS-5.[1-9][0-9]*) 9282 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9283 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9284 *) 9285 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9286 esac 9287 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9288 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9289 9290fi 9291 9292 ;; 9293 esac 9294 9295 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9296 9297 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9298echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9299 9300fi 9301 9302 9303 9304 9305 # Add in the arch flags late to ensure it wasn't removed. 9306 # Not necessary in TEA, but this is aligned with core 9307 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9308 9309 # If we're running gcc, then change the C flags for compiling shared 9310 # libraries to the right flags for gcc, instead of those for the 9311 # standard manufacturer compiler. 9312 9313 if test "$GCC" = yes; then 9314 9315 case $system in 9316 AIX-*) ;; 9317 BSD/OS*) ;; 9318 CYGWIN_*) ;; 9319 IRIX*) ;; 9320 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 9321 Darwin-*) ;; 9322 SCO_SV-3.2*) ;; 9323 windows) ;; 9324 *) SHLIB_CFLAGS="-fPIC" ;; 9325 esac 9326fi 9327 9328 9329 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9330 9331 9332cat >>confdefs.h <<\_ACEOF 9333#define MODULE_SCOPE extern 9334_ACEOF 9335 9336 9337cat >>confdefs.h <<\_ACEOF 9338#define NO_VIZ 9339_ACEOF 9340 9341 9342fi 9343 9344 9345 if test "$SHARED_LIB_SUFFIX" = ""; then 9346 9347 # TEA specific: use PACKAGE_VERSION instead of VERSION 9348 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9349fi 9350 9351 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9352 9353 # TEA specific: use PACKAGE_VERSION instead of VERSION 9354 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9355fi 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 # These must be called after we do the basic CFLAGS checks and 9371 # verify any possible 64-bit or similar switches are necessary 9372 9373 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9374echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 9375 tcl_flags="" 9376 9377 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9378 echo $ECHO_N "(cached) $ECHO_C" >&6 9379else 9380 cat >conftest.$ac_ext <<_ACEOF 9381/* confdefs.h. */ 9382_ACEOF 9383cat confdefs.h >>conftest.$ac_ext 9384cat >>conftest.$ac_ext <<_ACEOF 9385/* end confdefs.h. */ 9386#include <stdlib.h> 9387int 9388main () 9389{ 9390char *p = (char *)strtoll; char *q = (char *)strtoull; 9391 ; 9392 return 0; 9393} 9394_ACEOF 9395rm -f conftest.$ac_objext 9396if { (ac_try="$ac_compile" 9397case "(($ac_try" in 9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9399 *) ac_try_echo=$ac_try;; 9400esac 9401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9402 (eval "$ac_compile") 2>conftest.er1 9403 ac_status=$? 9404 grep -v '^ *+' conftest.er1 >conftest.err 9405 rm -f conftest.er1 9406 cat conftest.err >&5 9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9408 (exit $ac_status); } && { 9409 test -z "$ac_c_werror_flag" || 9410 test ! -s conftest.err 9411 } && test -s conftest.$ac_objext; then 9412 tcl_cv_flag__isoc99_source=no 9413else 9414 echo "$as_me: failed program was:" >&5 9415sed 's/^/| /' conftest.$ac_ext >&5 9416 9417 cat >conftest.$ac_ext <<_ACEOF 9418/* confdefs.h. */ 9419_ACEOF 9420cat confdefs.h >>conftest.$ac_ext 9421cat >>conftest.$ac_ext <<_ACEOF 9422/* end confdefs.h. */ 9423#define _ISOC99_SOURCE 1 9424#include <stdlib.h> 9425int 9426main () 9427{ 9428char *p = (char *)strtoll; char *q = (char *)strtoull; 9429 ; 9430 return 0; 9431} 9432_ACEOF 9433rm -f conftest.$ac_objext 9434if { (ac_try="$ac_compile" 9435case "(($ac_try" in 9436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9437 *) ac_try_echo=$ac_try;; 9438esac 9439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9440 (eval "$ac_compile") 2>conftest.er1 9441 ac_status=$? 9442 grep -v '^ *+' conftest.er1 >conftest.err 9443 rm -f conftest.er1 9444 cat conftest.err >&5 9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9446 (exit $ac_status); } && { 9447 test -z "$ac_c_werror_flag" || 9448 test ! -s conftest.err 9449 } && test -s conftest.$ac_objext; then 9450 tcl_cv_flag__isoc99_source=yes 9451else 9452 echo "$as_me: failed program was:" >&5 9453sed 's/^/| /' conftest.$ac_ext >&5 9454 9455 tcl_cv_flag__isoc99_source=no 9456fi 9457 9458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9459fi 9460 9461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9462fi 9463 9464 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9465 9466cat >>confdefs.h <<\_ACEOF 9467#define _ISOC99_SOURCE 1 9468_ACEOF 9469 9470 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9471 fi 9472 9473 9474 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9475 echo $ECHO_N "(cached) $ECHO_C" >&6 9476else 9477 cat >conftest.$ac_ext <<_ACEOF 9478/* confdefs.h. */ 9479_ACEOF 9480cat confdefs.h >>conftest.$ac_ext 9481cat >>conftest.$ac_ext <<_ACEOF 9482/* end confdefs.h. */ 9483#include <sys/stat.h> 9484int 9485main () 9486{ 9487struct stat64 buf; int i = stat64("/", &buf); 9488 ; 9489 return 0; 9490} 9491_ACEOF 9492rm -f conftest.$ac_objext 9493if { (ac_try="$ac_compile" 9494case "(($ac_try" in 9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9496 *) ac_try_echo=$ac_try;; 9497esac 9498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9499 (eval "$ac_compile") 2>conftest.er1 9500 ac_status=$? 9501 grep -v '^ *+' conftest.er1 >conftest.err 9502 rm -f conftest.er1 9503 cat conftest.err >&5 9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9505 (exit $ac_status); } && { 9506 test -z "$ac_c_werror_flag" || 9507 test ! -s conftest.err 9508 } && test -s conftest.$ac_objext; then 9509 tcl_cv_flag__largefile64_source=no 9510else 9511 echo "$as_me: failed program was:" >&5 9512sed 's/^/| /' conftest.$ac_ext >&5 9513 9514 cat >conftest.$ac_ext <<_ACEOF 9515/* confdefs.h. */ 9516_ACEOF 9517cat confdefs.h >>conftest.$ac_ext 9518cat >>conftest.$ac_ext <<_ACEOF 9519/* end confdefs.h. */ 9520#define _LARGEFILE64_SOURCE 1 9521#include <sys/stat.h> 9522int 9523main () 9524{ 9525struct stat64 buf; int i = stat64("/", &buf); 9526 ; 9527 return 0; 9528} 9529_ACEOF 9530rm -f conftest.$ac_objext 9531if { (ac_try="$ac_compile" 9532case "(($ac_try" in 9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9534 *) ac_try_echo=$ac_try;; 9535esac 9536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9537 (eval "$ac_compile") 2>conftest.er1 9538 ac_status=$? 9539 grep -v '^ *+' conftest.er1 >conftest.err 9540 rm -f conftest.er1 9541 cat conftest.err >&5 9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9543 (exit $ac_status); } && { 9544 test -z "$ac_c_werror_flag" || 9545 test ! -s conftest.err 9546 } && test -s conftest.$ac_objext; then 9547 tcl_cv_flag__largefile64_source=yes 9548else 9549 echo "$as_me: failed program was:" >&5 9550sed 's/^/| /' conftest.$ac_ext >&5 9551 9552 tcl_cv_flag__largefile64_source=no 9553fi 9554 9555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9556fi 9557 9558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9559fi 9560 9561 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9562 9563cat >>confdefs.h <<\_ACEOF 9564#define _LARGEFILE64_SOURCE 1 9565_ACEOF 9566 9567 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9568 fi 9569 9570 9571 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9572 echo $ECHO_N "(cached) $ECHO_C" >&6 9573else 9574 cat >conftest.$ac_ext <<_ACEOF 9575/* confdefs.h. */ 9576_ACEOF 9577cat confdefs.h >>conftest.$ac_ext 9578cat >>conftest.$ac_ext <<_ACEOF 9579/* end confdefs.h. */ 9580#include <sys/stat.h> 9581int 9582main () 9583{ 9584char *p = (char *)open64; 9585 ; 9586 return 0; 9587} 9588_ACEOF 9589rm -f conftest.$ac_objext 9590if { (ac_try="$ac_compile" 9591case "(($ac_try" in 9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9593 *) ac_try_echo=$ac_try;; 9594esac 9595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9596 (eval "$ac_compile") 2>conftest.er1 9597 ac_status=$? 9598 grep -v '^ *+' conftest.er1 >conftest.err 9599 rm -f conftest.er1 9600 cat conftest.err >&5 9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9602 (exit $ac_status); } && { 9603 test -z "$ac_c_werror_flag" || 9604 test ! -s conftest.err 9605 } && test -s conftest.$ac_objext; then 9606 tcl_cv_flag__largefile_source64=no 9607else 9608 echo "$as_me: failed program was:" >&5 9609sed 's/^/| /' conftest.$ac_ext >&5 9610 9611 cat >conftest.$ac_ext <<_ACEOF 9612/* confdefs.h. */ 9613_ACEOF 9614cat confdefs.h >>conftest.$ac_ext 9615cat >>conftest.$ac_ext <<_ACEOF 9616/* end confdefs.h. */ 9617#define _LARGEFILE_SOURCE64 1 9618#include <sys/stat.h> 9619int 9620main () 9621{ 9622char *p = (char *)open64; 9623 ; 9624 return 0; 9625} 9626_ACEOF 9627rm -f conftest.$ac_objext 9628if { (ac_try="$ac_compile" 9629case "(($ac_try" in 9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9631 *) ac_try_echo=$ac_try;; 9632esac 9633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9634 (eval "$ac_compile") 2>conftest.er1 9635 ac_status=$? 9636 grep -v '^ *+' conftest.er1 >conftest.err 9637 rm -f conftest.er1 9638 cat conftest.err >&5 9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9640 (exit $ac_status); } && { 9641 test -z "$ac_c_werror_flag" || 9642 test ! -s conftest.err 9643 } && test -s conftest.$ac_objext; then 9644 tcl_cv_flag__largefile_source64=yes 9645else 9646 echo "$as_me: failed program was:" >&5 9647sed 's/^/| /' conftest.$ac_ext >&5 9648 9649 tcl_cv_flag__largefile_source64=no 9650fi 9651 9652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9653fi 9654 9655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9656fi 9657 9658 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9659 9660cat >>confdefs.h <<\_ACEOF 9661#define _LARGEFILE_SOURCE64 1 9662_ACEOF 9663 9664 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9665 fi 9666 9667 if test "x${tcl_flags}" = "x" ; then 9668 { echo "$as_me:$LINENO: result: none" >&5 9669echo "${ECHO_T}none" >&6; } 9670 else 9671 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9672echo "${ECHO_T}${tcl_flags}" >&6; } 9673 fi 9674 9675 9676 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9677echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 9678 if test "${tcl_cv_type_64bit+set}" = set; then 9679 echo $ECHO_N "(cached) $ECHO_C" >&6 9680else 9681 9682 tcl_cv_type_64bit=none 9683 # See if the compiler knows natively about __int64 9684 cat >conftest.$ac_ext <<_ACEOF 9685/* confdefs.h. */ 9686_ACEOF 9687cat confdefs.h >>conftest.$ac_ext 9688cat >>conftest.$ac_ext <<_ACEOF 9689/* end confdefs.h. */ 9690 9691int 9692main () 9693{ 9694__int64 value = (__int64) 0; 9695 ; 9696 return 0; 9697} 9698_ACEOF 9699rm -f conftest.$ac_objext 9700if { (ac_try="$ac_compile" 9701case "(($ac_try" in 9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9703 *) ac_try_echo=$ac_try;; 9704esac 9705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9706 (eval "$ac_compile") 2>conftest.er1 9707 ac_status=$? 9708 grep -v '^ *+' conftest.er1 >conftest.err 9709 rm -f conftest.er1 9710 cat conftest.err >&5 9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9712 (exit $ac_status); } && { 9713 test -z "$ac_c_werror_flag" || 9714 test ! -s conftest.err 9715 } && test -s conftest.$ac_objext; then 9716 tcl_type_64bit=__int64 9717else 9718 echo "$as_me: failed program was:" >&5 9719sed 's/^/| /' conftest.$ac_ext >&5 9720 9721 tcl_type_64bit="long long" 9722fi 9723 9724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9725 # See if we should use long anyway Note that we substitute in the 9726 # type that is our current guess for a 64-bit type inside this check 9727 # program, so it should be modified only carefully... 9728 cat >conftest.$ac_ext <<_ACEOF 9729/* confdefs.h. */ 9730_ACEOF 9731cat confdefs.h >>conftest.$ac_ext 9732cat >>conftest.$ac_ext <<_ACEOF 9733/* end confdefs.h. */ 9734 9735int 9736main () 9737{ 9738switch (0) { 9739 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9740 } 9741 ; 9742 return 0; 9743} 9744_ACEOF 9745rm -f conftest.$ac_objext 9746if { (ac_try="$ac_compile" 9747case "(($ac_try" in 9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9749 *) ac_try_echo=$ac_try;; 9750esac 9751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9752 (eval "$ac_compile") 2>conftest.er1 9753 ac_status=$? 9754 grep -v '^ *+' conftest.er1 >conftest.err 9755 rm -f conftest.er1 9756 cat conftest.err >&5 9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9758 (exit $ac_status); } && { 9759 test -z "$ac_c_werror_flag" || 9760 test ! -s conftest.err 9761 } && test -s conftest.$ac_objext; then 9762 tcl_cv_type_64bit=${tcl_type_64bit} 9763else 9764 echo "$as_me: failed program was:" >&5 9765sed 's/^/| /' conftest.$ac_ext >&5 9766 9767 9768fi 9769 9770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9771fi 9772 9773 if test "${tcl_cv_type_64bit}" = none ; then 9774 9775cat >>confdefs.h <<\_ACEOF 9776#define TCL_WIDE_INT_IS_LONG 1 9777_ACEOF 9778 9779 { echo "$as_me:$LINENO: result: using long" >&5 9780echo "${ECHO_T}using long" >&6; } 9781 elif test "${tcl_cv_type_64bit}" = "__int64" \ 9782 -a "${TEA_PLATFORM}" = "windows" ; then 9783 # TEA specific: We actually want to use the default tcl.h checks in 9784 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 9785 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 9786echo "${ECHO_T}using Tcl header defaults" >&6; } 9787 else 9788 9789cat >>confdefs.h <<_ACEOF 9790#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 9791_ACEOF 9792 9793 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 9794echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 9795 9796 # Now check for auxiliary declarations 9797 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 9798echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 9799if test "${tcl_cv_struct_dirent64+set}" = set; then 9800 echo $ECHO_N "(cached) $ECHO_C" >&6 9801else 9802 9803 cat >conftest.$ac_ext <<_ACEOF 9804/* confdefs.h. */ 9805_ACEOF 9806cat confdefs.h >>conftest.$ac_ext 9807cat >>conftest.$ac_ext <<_ACEOF 9808/* end confdefs.h. */ 9809#include <sys/types.h> 9810#include <sys/dirent.h> 9811int 9812main () 9813{ 9814struct dirent64 p; 9815 ; 9816 return 0; 9817} 9818_ACEOF 9819rm -f conftest.$ac_objext 9820if { (ac_try="$ac_compile" 9821case "(($ac_try" in 9822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9823 *) ac_try_echo=$ac_try;; 9824esac 9825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9826 (eval "$ac_compile") 2>conftest.er1 9827 ac_status=$? 9828 grep -v '^ *+' conftest.er1 >conftest.err 9829 rm -f conftest.er1 9830 cat conftest.err >&5 9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9832 (exit $ac_status); } && { 9833 test -z "$ac_c_werror_flag" || 9834 test ! -s conftest.err 9835 } && test -s conftest.$ac_objext; then 9836 tcl_cv_struct_dirent64=yes 9837else 9838 echo "$as_me: failed program was:" >&5 9839sed 's/^/| /' conftest.$ac_ext >&5 9840 9841 tcl_cv_struct_dirent64=no 9842fi 9843 9844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9845fi 9846{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 9847echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 9848 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 9849 9850cat >>confdefs.h <<\_ACEOF 9851#define HAVE_STRUCT_DIRENT64 1 9852_ACEOF 9853 9854 fi 9855 9856 { echo "$as_me:$LINENO: checking for struct stat64" >&5 9857echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 9858if test "${tcl_cv_struct_stat64+set}" = set; then 9859 echo $ECHO_N "(cached) $ECHO_C" >&6 9860else 9861 9862 cat >conftest.$ac_ext <<_ACEOF 9863/* confdefs.h. */ 9864_ACEOF 9865cat confdefs.h >>conftest.$ac_ext 9866cat >>conftest.$ac_ext <<_ACEOF 9867/* end confdefs.h. */ 9868#include <sys/stat.h> 9869int 9870main () 9871{ 9872struct stat64 p; 9873 9874 ; 9875 return 0; 9876} 9877_ACEOF 9878rm -f conftest.$ac_objext 9879if { (ac_try="$ac_compile" 9880case "(($ac_try" in 9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9882 *) ac_try_echo=$ac_try;; 9883esac 9884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9885 (eval "$ac_compile") 2>conftest.er1 9886 ac_status=$? 9887 grep -v '^ *+' conftest.er1 >conftest.err 9888 rm -f conftest.er1 9889 cat conftest.err >&5 9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9891 (exit $ac_status); } && { 9892 test -z "$ac_c_werror_flag" || 9893 test ! -s conftest.err 9894 } && test -s conftest.$ac_objext; then 9895 tcl_cv_struct_stat64=yes 9896else 9897 echo "$as_me: failed program was:" >&5 9898sed 's/^/| /' conftest.$ac_ext >&5 9899 9900 tcl_cv_struct_stat64=no 9901fi 9902 9903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9904fi 9905{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 9906echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 9907 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 9908 9909cat >>confdefs.h <<\_ACEOF 9910#define HAVE_STRUCT_STAT64 1 9911_ACEOF 9912 9913 fi 9914 9915 9916 9917for ac_func in open64 lseek64 9918do 9919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9920{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9922if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9923 echo $ECHO_N "(cached) $ECHO_C" >&6 9924else 9925 cat >conftest.$ac_ext <<_ACEOF 9926/* confdefs.h. */ 9927_ACEOF 9928cat confdefs.h >>conftest.$ac_ext 9929cat >>conftest.$ac_ext <<_ACEOF 9930/* end confdefs.h. */ 9931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9932 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9933#define $ac_func innocuous_$ac_func 9934 9935/* System header to define __stub macros and hopefully few prototypes, 9936 which can conflict with char $ac_func (); below. 9937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9938 <limits.h> exists even on freestanding compilers. */ 9939 9940#ifdef __STDC__ 9941# include <limits.h> 9942#else 9943# include <assert.h> 9944#endif 9945 9946#undef $ac_func 9947 9948/* Override any GCC internal prototype to avoid an error. 9949 Use char because int might match the return type of a GCC 9950 builtin and then its argument prototype would still apply. */ 9951#ifdef __cplusplus 9952extern "C" 9953#endif 9954char $ac_func (); 9955/* The GNU C library defines this for functions which it implements 9956 to always fail with ENOSYS. Some functions are actually named 9957 something starting with __ and the normal name is an alias. */ 9958#if defined __stub_$ac_func || defined __stub___$ac_func 9959choke me 9960#endif 9961 9962int 9963main () 9964{ 9965return $ac_func (); 9966 ; 9967 return 0; 9968} 9969_ACEOF 9970rm -f conftest.$ac_objext conftest$ac_exeext 9971if { (ac_try="$ac_link" 9972case "(($ac_try" in 9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9974 *) ac_try_echo=$ac_try;; 9975esac 9976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9977 (eval "$ac_link") 2>conftest.er1 9978 ac_status=$? 9979 grep -v '^ *+' conftest.er1 >conftest.err 9980 rm -f conftest.er1 9981 cat conftest.err >&5 9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9983 (exit $ac_status); } && { 9984 test -z "$ac_c_werror_flag" || 9985 test ! -s conftest.err 9986 } && test -s conftest$ac_exeext && 9987 $as_test_x conftest$ac_exeext; then 9988 eval "$as_ac_var=yes" 9989else 9990 echo "$as_me: failed program was:" >&5 9991sed 's/^/| /' conftest.$ac_ext >&5 9992 9993 eval "$as_ac_var=no" 9994fi 9995 9996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9997 conftest$ac_exeext conftest.$ac_ext 9998fi 9999ac_res=`eval echo '${'$as_ac_var'}'` 10000 { echo "$as_me:$LINENO: result: $ac_res" >&5 10001echo "${ECHO_T}$ac_res" >&6; } 10002if test `eval echo '${'$as_ac_var'}'` = yes; then 10003 cat >>confdefs.h <<_ACEOF 10004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10005_ACEOF 10006 10007fi 10008done 10009 10010 { echo "$as_me:$LINENO: checking for off64_t" >&5 10011echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10012 if test "${tcl_cv_type_off64_t+set}" = set; then 10013 echo $ECHO_N "(cached) $ECHO_C" >&6 10014else 10015 10016 cat >conftest.$ac_ext <<_ACEOF 10017/* confdefs.h. */ 10018_ACEOF 10019cat confdefs.h >>conftest.$ac_ext 10020cat >>conftest.$ac_ext <<_ACEOF 10021/* end confdefs.h. */ 10022#include <sys/types.h> 10023int 10024main () 10025{ 10026off64_t offset; 10027 10028 ; 10029 return 0; 10030} 10031_ACEOF 10032rm -f conftest.$ac_objext 10033if { (ac_try="$ac_compile" 10034case "(($ac_try" in 10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10036 *) ac_try_echo=$ac_try;; 10037esac 10038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10039 (eval "$ac_compile") 2>conftest.er1 10040 ac_status=$? 10041 grep -v '^ *+' conftest.er1 >conftest.err 10042 rm -f conftest.er1 10043 cat conftest.err >&5 10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10045 (exit $ac_status); } && { 10046 test -z "$ac_c_werror_flag" || 10047 test ! -s conftest.err 10048 } && test -s conftest.$ac_objext; then 10049 tcl_cv_type_off64_t=yes 10050else 10051 echo "$as_me: failed program was:" >&5 10052sed 's/^/| /' conftest.$ac_ext >&5 10053 10054 tcl_cv_type_off64_t=no 10055fi 10056 10057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10058fi 10059 10060 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10061 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10062 test "x${ac_cv_func_open64}" = "xyes" ; then 10063 10064cat >>confdefs.h <<\_ACEOF 10065#define HAVE_TYPE_OFF64_T 1 10066_ACEOF 10067 10068 { echo "$as_me:$LINENO: result: yes" >&5 10069echo "${ECHO_T}yes" >&6; } 10070 else 10071 { echo "$as_me:$LINENO: result: no" >&5 10072echo "${ECHO_T}no" >&6; } 10073 fi 10074 fi 10075 10076 10077 10078#-------------------------------------------------------------------- 10079# Set the default compiler switches based on the --enable-symbols option. 10080#-------------------------------------------------------------------- 10081 10082 10083 10084 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10085echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10086 # Check whether --enable-symbols was given. 10087if test "${enable_symbols+set}" = set; then 10088 enableval=$enable_symbols; tcl_ok=$enableval 10089else 10090 tcl_ok=no 10091fi 10092 10093 DBGX="" 10094 if test "$tcl_ok" = "no"; then 10095 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10096 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10097 { echo "$as_me:$LINENO: result: no" >&5 10098echo "${ECHO_T}no" >&6; } 10099 else 10100 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10101 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10102 if test "$tcl_ok" = "yes"; then 10103 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10104echo "${ECHO_T}yes (standard debugging)" >&6; } 10105 fi 10106 fi 10107 # TEA specific: 10108 if test "${TEA_PLATFORM}" != "windows" ; then 10109 LDFLAGS_DEFAULT="${LDFLAGS}" 10110 fi 10111 10112 10113 10114 10115 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10116 10117cat >>confdefs.h <<\_ACEOF 10118#define TCL_MEM_DEBUG 1 10119_ACEOF 10120 10121 fi 10122 10123 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10124 if test "$tcl_ok" = "all"; then 10125 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10126echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10127 else 10128 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10129echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10130 fi 10131 fi 10132 10133 10134#-------------------------------------------------------------------- 10135# Everyone should be linking against the Tcl stub library. If you 10136# can't for some reason, remove this definition. If you aren't using 10137# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10138# link against the non-stubbed Tcl library. Add Tk too if necessary. 10139#-------------------------------------------------------------------- 10140 10141 10142cat >>confdefs.h <<\_ACEOF 10143#define USE_TCL_STUBS 1 10144_ACEOF 10145 10146 10147#-------------------------------------------------------------------- 10148# This macro generates a line to use when building a library. It 10149# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10150# and TEA_LOAD_TCLCONFIG macros above. 10151#-------------------------------------------------------------------- 10152 10153 10154 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10155 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10156 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10157 cat >conftest.$ac_ext <<_ACEOF 10158/* confdefs.h. */ 10159_ACEOF 10160cat confdefs.h >>conftest.$ac_ext 10161cat >>conftest.$ac_ext <<_ACEOF 10162/* end confdefs.h. */ 10163 10164#if defined(_MSC_VER) && _MSC_VER >= 1400 10165print("manifest needed") 10166#endif 10167 10168_ACEOF 10169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10170 $EGREP "manifest needed" >/dev/null 2>&1; then 10171 10172 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 10173 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 10174 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 10175 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 10176 10177 CLEANFILES="$CLEANFILES *.manifest" 10178 10179 10180fi 10181rm -f -r conftest* 10182 10183 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 10184 else 10185 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 10186 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 10187 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 10188 fi 10189 10190 if test "${SHARED_BUILD}" = "1" ; then 10191 MAKE_LIB="${MAKE_SHARED_LIB} " 10192 else 10193 MAKE_LIB="${MAKE_STATIC_LIB} " 10194 fi 10195 10196 #-------------------------------------------------------------------- 10197 # Shared libraries and static libraries have different names. 10198 # Use the double eval to make sure any variables in the suffix is 10199 # substituted. (@@@ Might not be necessary anymore) 10200 #-------------------------------------------------------------------- 10201 10202 if test "${TEA_PLATFORM}" = "windows" ; then 10203 if test "${SHARED_BUILD}" = "1" ; then 10204 # We force the unresolved linking of symbols that are really in 10205 # the private libraries of Tcl and Tk. 10206 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 10207 if test x"${TK_BIN_DIR}" != x ; then 10208 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 10209 fi 10210 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10211 else 10212 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10213 fi 10214 # Some packages build their own stubs libraries 10215 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10216 if test "$GCC" = "yes"; then 10217 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 10218 fi 10219 # These aren't needed on Windows (either MSVC or gcc) 10220 RANLIB=: 10221 RANLIB_STUB=: 10222 else 10223 RANLIB_STUB="${RANLIB}" 10224 if test "${SHARED_BUILD}" = "1" ; then 10225 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 10226 if test x"${TK_BIN_DIR}" != x ; then 10227 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 10228 fi 10229 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10230 RANLIB=: 10231 else 10232 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10233 fi 10234 # Some packages build their own stubs libraries 10235 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10236 fi 10237 10238 # These are escaped so that only CFLAGS is picked up at configure time. 10239 # The other values will be substituted at make time. 10240 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 10241 if test "${SHARED_BUILD}" = "1" ; then 10242 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 10243 fi 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254#-------------------------------------------------------------------- 10255# Determine the name of the tclsh and/or wish executables in the 10256# Tcl and Tk build directories or the location they were installed 10257# into. These paths are used to support running test cases only, 10258# the Makefile should not be making use of these paths to generate 10259# a pkgIndex.tcl file or anything else at extension build time. 10260#-------------------------------------------------------------------- 10261 10262 10263 { echo "$as_me:$LINENO: checking for tclsh" >&5 10264echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 10265 if test -f "${TCL_BIN_DIR}/Makefile" ; then 10266 # tclConfig.sh is in Tcl build directory 10267 if test "${TEA_PLATFORM}" = "windows"; then 10268 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10269 else 10270 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 10271 fi 10272 else 10273 # tclConfig.sh is in install location 10274 if test "${TEA_PLATFORM}" = "windows"; then 10275 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10276 else 10277 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 10278 fi 10279 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 10280 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 10281 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 10282 for i in $list ; do 10283 if test -f "$i/${TCLSH_PROG}" ; then 10284 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 10285 break 10286 fi 10287 done 10288 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 10289 fi 10290 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 10291echo "${ECHO_T}${TCLSH_PROG}" >&6; } 10292 10293 10294 10295#-------------------------------------------------------------------- 10296# Finally, substitute all of the various values into the Makefile. 10297# You may alternatively have a special pkgIndex.tcl.in or other files 10298# which require substituting th AC variables in. Include these here. 10299#-------------------------------------------------------------------- 10300 10301ac_config_files="$ac_config_files Makefile pkgIndex.tcl" 10302 10303cat >confcache <<\_ACEOF 10304# This file is a shell script that caches the results of configure 10305# tests run on this system so they can be shared between configure 10306# scripts and configure runs, see configure's option --config-cache. 10307# It is not useful on other systems. If it contains results you don't 10308# want to keep, you may remove or edit it. 10309# 10310# config.status only pays attention to the cache file if you give it 10311# the --recheck option to rerun configure. 10312# 10313# `ac_cv_env_foo' variables (set or unset) will be overridden when 10314# loading this file, other *unset* `ac_cv_foo' will be assigned the 10315# following values. 10316 10317_ACEOF 10318 10319# The following way of writing the cache mishandles newlines in values, 10320# but we know of no workaround that is simple, portable, and efficient. 10321# So, we kill variables containing newlines. 10322# Ultrix sh set writes to stderr and can't be redirected directly, 10323# and sets the high bit in the cache file unless we assign to the vars. 10324( 10325 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10326 eval ac_val=\$$ac_var 10327 case $ac_val in #( 10328 *${as_nl}*) 10329 case $ac_var in #( 10330 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 10331echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 10332 esac 10333 case $ac_var in #( 10334 _ | IFS | as_nl) ;; #( 10335 *) $as_unset $ac_var ;; 10336 esac ;; 10337 esac 10338 done 10339 10340 (set) 2>&1 | 10341 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10342 *${as_nl}ac_space=\ *) 10343 # `set' does not quote correctly, so add quotes (double-quote 10344 # substitution turns \\\\ into \\, and sed turns \\ into \). 10345 sed -n \ 10346 "s/'/'\\\\''/g; 10347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10348 ;; #( 10349 *) 10350 # `set' quotes correctly as required by POSIX, so do not add quotes. 10351 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10352 ;; 10353 esac | 10354 sort 10355) | 10356 sed ' 10357 /^ac_cv_env_/b end 10358 t clear 10359 :clear 10360 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10361 t end 10362 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10363 :end' >>confcache 10364if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10365 if test -w "$cache_file"; then 10366 test "x$cache_file" != "x/dev/null" && 10367 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 10368echo "$as_me: updating cache $cache_file" >&6;} 10369 cat confcache >$cache_file 10370 else 10371 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 10372echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10373 fi 10374fi 10375rm -f confcache 10376 10377test "x$prefix" = xNONE && prefix=$ac_default_prefix 10378# Let make expand exec_prefix. 10379test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10380 10381# Transform confdefs.h into DEFS. 10382# Protect against shell expansion while executing Makefile rules. 10383# Protect against Makefile macro expansion. 10384# 10385# If the first sed substitution is executed (which looks for macros that 10386# take arguments), then branch to the quote section. Otherwise, 10387# look for a macro that doesn't take arguments. 10388ac_script=' 10389t clear 10390:clear 10391s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10392t quote 10393s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10394t quote 10395b any 10396:quote 10397s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10398s/\[/\\&/g 10399s/\]/\\&/g 10400s/\$/$$/g 10401H 10402:any 10403${ 10404 g 10405 s/^\n// 10406 s/\n/ /g 10407 p 10408} 10409' 10410DEFS=`sed -n "$ac_script" confdefs.h` 10411 10412 10413ac_libobjs= 10414ac_ltlibobjs= 10415for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10416 # 1. Remove the extension, and $U if already installed. 10417 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10418 ac_i=`echo "$ac_i" | sed "$ac_script"` 10419 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10420 # will be set to the directory where LIBOBJS objects are built. 10421 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10422 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 10423done 10424LIBOBJS=$ac_libobjs 10425 10426LTLIBOBJS=$ac_ltlibobjs 10427 10428 10429CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 10430 10431: ${CONFIG_STATUS=./config.status} 10432ac_clean_files_save=$ac_clean_files 10433ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10434{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10435echo "$as_me: creating $CONFIG_STATUS" >&6;} 10436cat >$CONFIG_STATUS <<_ACEOF 10437#! $SHELL 10438# Generated by $as_me. 10439# Run this file to recreate the current configuration. 10440# Compiler output produced by configure, useful for debugging 10441# configure, is in config.log if it exists. 10442 10443debug=false 10444ac_cs_recheck=false 10445ac_cs_silent=false 10446SHELL=\${CONFIG_SHELL-$SHELL} 10447_ACEOF 10448 10449cat >>$CONFIG_STATUS <<\_ACEOF 10450## --------------------- ## 10451## M4sh Initialization. ## 10452## --------------------- ## 10453 10454# Be more Bourne compatible 10455DUALCASE=1; export DUALCASE # for MKS sh 10456if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10457 emulate sh 10458 NULLCMD=: 10459 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10460 # is contrary to our usage. Disable this feature. 10461 alias -g '${1+"$@"}'='"$@"' 10462 setopt NO_GLOB_SUBST 10463else 10464 case `(set -o) 2>/dev/null` in 10465 *posix*) set -o posix ;; 10466esac 10467 10468fi 10469 10470 10471 10472 10473# PATH needs CR 10474# Avoid depending upon Character Ranges. 10475as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10476as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10477as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10478as_cr_digits='0123456789' 10479as_cr_alnum=$as_cr_Letters$as_cr_digits 10480 10481# The user is always right. 10482if test "${PATH_SEPARATOR+set}" != set; then 10483 echo "#! /bin/sh" >conf$$.sh 10484 echo "exit 0" >>conf$$.sh 10485 chmod +x conf$$.sh 10486 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10487 PATH_SEPARATOR=';' 10488 else 10489 PATH_SEPARATOR=: 10490 fi 10491 rm -f conf$$.sh 10492fi 10493 10494# Support unset when possible. 10495if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10496 as_unset=unset 10497else 10498 as_unset=false 10499fi 10500 10501 10502# IFS 10503# We need space, tab and new line, in precisely that order. Quoting is 10504# there to prevent editors from complaining about space-tab. 10505# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10506# splitting by setting IFS to empty value.) 10507as_nl=' 10508' 10509IFS=" "" $as_nl" 10510 10511# Find who we are. Look in the path if we contain no directory separator. 10512case $0 in 10513 *[\\/]* ) as_myself=$0 ;; 10514 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10515for as_dir in $PATH 10516do 10517 IFS=$as_save_IFS 10518 test -z "$as_dir" && as_dir=. 10519 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10520done 10521IFS=$as_save_IFS 10522 10523 ;; 10524esac 10525# We did not find ourselves, most probably we were run as `sh COMMAND' 10526# in which case we are not to be found in the path. 10527if test "x$as_myself" = x; then 10528 as_myself=$0 10529fi 10530if test ! -f "$as_myself"; then 10531 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10532 { (exit 1); exit 1; } 10533fi 10534 10535# Work around bugs in pre-3.0 UWIN ksh. 10536for as_var in ENV MAIL MAILPATH 10537do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10538done 10539PS1='$ ' 10540PS2='> ' 10541PS4='+ ' 10542 10543# NLS nuisances. 10544for as_var in \ 10545 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 10546 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 10547 LC_TELEPHONE LC_TIME 10548do 10549 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 10550 eval $as_var=C; export $as_var 10551 else 10552 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10553 fi 10554done 10555 10556# Required to use basename. 10557if expr a : '\(a\)' >/dev/null 2>&1 && 10558 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10559 as_expr=expr 10560else 10561 as_expr=false 10562fi 10563 10564if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10565 as_basename=basename 10566else 10567 as_basename=false 10568fi 10569 10570 10571# Name of the executable. 10572as_me=`$as_basename -- "$0" || 10573$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10574 X"$0" : 'X\(//\)$' \| \ 10575 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10576echo X/"$0" | 10577 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10578 s//\1/ 10579 q 10580 } 10581 /^X\/\(\/\/\)$/{ 10582 s//\1/ 10583 q 10584 } 10585 /^X\/\(\/\).*/{ 10586 s//\1/ 10587 q 10588 } 10589 s/.*/./; q'` 10590 10591# CDPATH. 10592$as_unset CDPATH 10593 10594 10595 10596 as_lineno_1=$LINENO 10597 as_lineno_2=$LINENO 10598 test "x$as_lineno_1" != "x$as_lineno_2" && 10599 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 10600 10601 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10602 # uniformly replaced by the line number. The first 'sed' inserts a 10603 # line-number line after each line using $LINENO; the second 'sed' 10604 # does the real work. The second script uses 'N' to pair each 10605 # line-number line with the line containing $LINENO, and appends 10606 # trailing '-' during substitution so that $LINENO is not a special 10607 # case at line end. 10608 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10609 # scripts with optimization help from Paolo Bonzini. Blame Lee 10610 # E. McMahon (1931-1989) for sed's syntax. :-) 10611 sed -n ' 10612 p 10613 /[$]LINENO/= 10614 ' <$as_myself | 10615 sed ' 10616 s/[$]LINENO.*/&-/ 10617 t lineno 10618 b 10619 :lineno 10620 N 10621 :loop 10622 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 10623 t loop 10624 s/-\n.*// 10625 ' >$as_me.lineno && 10626 chmod +x "$as_me.lineno" || 10627 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 10628 { (exit 1); exit 1; }; } 10629 10630 # Don't try to exec as it changes $[0], causing all sort of problems 10631 # (the dirname of $[0] is not the place where we might find the 10632 # original and so on. Autoconf is especially sensitive to this). 10633 . "./$as_me.lineno" 10634 # Exit status is that of the last command. 10635 exit 10636} 10637 10638 10639if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10640 as_dirname=dirname 10641else 10642 as_dirname=false 10643fi 10644 10645ECHO_C= ECHO_N= ECHO_T= 10646case `echo -n x` in 10647-n*) 10648 case `echo 'x\c'` in 10649 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10650 *) ECHO_C='\c';; 10651 esac;; 10652*) 10653 ECHO_N='-n';; 10654esac 10655 10656if expr a : '\(a\)' >/dev/null 2>&1 && 10657 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10658 as_expr=expr 10659else 10660 as_expr=false 10661fi 10662 10663rm -f conf$$ conf$$.exe conf$$.file 10664if test -d conf$$.dir; then 10665 rm -f conf$$.dir/conf$$.file 10666else 10667 rm -f conf$$.dir 10668 mkdir conf$$.dir 10669fi 10670echo >conf$$.file 10671if ln -s conf$$.file conf$$ 2>/dev/null; then 10672 as_ln_s='ln -s' 10673 # ... but there are two gotchas: 10674 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10675 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10676 # In both cases, we have to default to `cp -p'. 10677 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10678 as_ln_s='cp -p' 10679elif ln conf$$.file conf$$ 2>/dev/null; then 10680 as_ln_s=ln 10681else 10682 as_ln_s='cp -p' 10683fi 10684rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10685rmdir conf$$.dir 2>/dev/null 10686 10687if mkdir -p . 2>/dev/null; then 10688 as_mkdir_p=: 10689else 10690 test -d ./-p && rmdir ./-p 10691 as_mkdir_p=false 10692fi 10693 10694if test -x / >/dev/null 2>&1; then 10695 as_test_x='test -x' 10696else 10697 if ls -dL / >/dev/null 2>&1; then 10698 as_ls_L_option=L 10699 else 10700 as_ls_L_option= 10701 fi 10702 as_test_x=' 10703 eval sh -c '\'' 10704 if test -d "$1"; then 10705 test -d "$1/."; 10706 else 10707 case $1 in 10708 -*)set "./$1";; 10709 esac; 10710 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 10711 ???[sx]*):;;*)false;;esac;fi 10712 '\'' sh 10713 ' 10714fi 10715as_executable_p=$as_test_x 10716 10717# Sed expression to map a string onto a valid CPP name. 10718as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10719 10720# Sed expression to map a string onto a valid variable name. 10721as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10722 10723 10724exec 6>&1 10725 10726# Save the log message, to keep $[0] and so on meaningful, and to 10727# report actual input values of CONFIG_FILES etc. instead of their 10728# values after options handling. 10729ac_log=" 10730This file was extended by tclAE $as_me 2.0.5, which was 10731generated by GNU Autoconf 2.61. Invocation command line was 10732 10733 CONFIG_FILES = $CONFIG_FILES 10734 CONFIG_HEADERS = $CONFIG_HEADERS 10735 CONFIG_LINKS = $CONFIG_LINKS 10736 CONFIG_COMMANDS = $CONFIG_COMMANDS 10737 $ $0 $@ 10738 10739on `(hostname || uname -n) 2>/dev/null | sed 1q` 10740" 10741 10742_ACEOF 10743 10744cat >>$CONFIG_STATUS <<_ACEOF 10745# Files that config.status was made for. 10746config_files="$ac_config_files" 10747 10748_ACEOF 10749 10750cat >>$CONFIG_STATUS <<\_ACEOF 10751ac_cs_usage="\ 10752\`$as_me' instantiates files from templates according to the 10753current configuration. 10754 10755Usage: $0 [OPTIONS] [FILE]... 10756 10757 -h, --help print this help, then exit 10758 -V, --version print version number and configuration settings, then exit 10759 -q, --quiet do not print progress messages 10760 -d, --debug don't remove temporary files 10761 --recheck update $as_me by reconfiguring in the same conditions 10762 --file=FILE[:TEMPLATE] 10763 instantiate the configuration file FILE 10764 10765Configuration files: 10766$config_files 10767 10768Report bugs to <bug-autoconf@gnu.org>." 10769 10770_ACEOF 10771cat >>$CONFIG_STATUS <<_ACEOF 10772ac_cs_version="\\ 10773tclAE config.status 2.0.5 10774configured by $0, generated by GNU Autoconf 2.61, 10775 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 10776 10777Copyright (C) 2006 Free Software Foundation, Inc. 10778This config.status script is free software; the Free Software Foundation 10779gives unlimited permission to copy, distribute and modify it." 10780 10781ac_pwd='$ac_pwd' 10782srcdir='$srcdir' 10783INSTALL='$INSTALL' 10784_ACEOF 10785 10786cat >>$CONFIG_STATUS <<\_ACEOF 10787# If no file are specified by the user, then we need to provide default 10788# value. By we need to know if files were specified by the user. 10789ac_need_defaults=: 10790while test $# != 0 10791do 10792 case $1 in 10793 --*=*) 10794 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10795 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10796 ac_shift=: 10797 ;; 10798 *) 10799 ac_option=$1 10800 ac_optarg=$2 10801 ac_shift=shift 10802 ;; 10803 esac 10804 10805 case $ac_option in 10806 # Handling of the options. 10807 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10808 ac_cs_recheck=: ;; 10809 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10810 echo "$ac_cs_version"; exit ;; 10811 --debug | --debu | --deb | --de | --d | -d ) 10812 debug=: ;; 10813 --file | --fil | --fi | --f ) 10814 $ac_shift 10815 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 10816 ac_need_defaults=false;; 10817 --he | --h | --help | --hel | -h ) 10818 echo "$ac_cs_usage"; exit ;; 10819 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10820 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10821 ac_cs_silent=: ;; 10822 10823 # This is an error. 10824 -*) { echo "$as_me: error: unrecognized option: $1 10825Try \`$0 --help' for more information." >&2 10826 { (exit 1); exit 1; }; } ;; 10827 10828 *) ac_config_targets="$ac_config_targets $1" 10829 ac_need_defaults=false ;; 10830 10831 esac 10832 shift 10833done 10834 10835ac_configure_extra_args= 10836 10837if $ac_cs_silent; then 10838 exec 6>/dev/null 10839 ac_configure_extra_args="$ac_configure_extra_args --silent" 10840fi 10841 10842_ACEOF 10843cat >>$CONFIG_STATUS <<_ACEOF 10844if \$ac_cs_recheck; then 10845 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 10846 CONFIG_SHELL=$SHELL 10847 export CONFIG_SHELL 10848 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10849fi 10850 10851_ACEOF 10852cat >>$CONFIG_STATUS <<\_ACEOF 10853exec 5>>config.log 10854{ 10855 echo 10856 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10857## Running $as_me. ## 10858_ASBOX 10859 echo "$ac_log" 10860} >&5 10861 10862_ACEOF 10863cat >>$CONFIG_STATUS <<_ACEOF 10864_ACEOF 10865 10866cat >>$CONFIG_STATUS <<\_ACEOF 10867 10868# Handling of arguments. 10869for ac_config_target in $ac_config_targets 10870do 10871 case $ac_config_target in 10872 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10873 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 10874 10875 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 10876echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 10877 { (exit 1); exit 1; }; };; 10878 esac 10879done 10880 10881 10882# If the user did not use the arguments to specify the items to instantiate, 10883# then the envvar interface is used. Set only those that are not. 10884# We use the long form for the default assignment because of an extremely 10885# bizarre bug on SunOS 4.1.3. 10886if $ac_need_defaults; then 10887 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10888fi 10889 10890# Have a temporary directory for convenience. Make it in the build tree 10891# simply because there is no reason against having it here, and in addition, 10892# creating and moving files from /tmp can sometimes cause problems. 10893# Hook for its removal unless debugging. 10894# Note that there is a small window in which the directory will not be cleaned: 10895# after its creation but before its name has been assigned to `$tmp'. 10896$debug || 10897{ 10898 tmp= 10899 trap 'exit_status=$? 10900 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 10901' 0 10902 trap '{ (exit 1); exit 1; }' 1 2 13 15 10903} 10904# Create a (secure) tmp directory for tmp files. 10905 10906{ 10907 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10908 test -n "$tmp" && test -d "$tmp" 10909} || 10910{ 10911 tmp=./conf$$-$RANDOM 10912 (umask 077 && mkdir "$tmp") 10913} || 10914{ 10915 echo "$me: cannot create a temporary directory in ." >&2 10916 { (exit 1); exit 1; } 10917} 10918 10919# 10920# Set up the sed scripts for CONFIG_FILES section. 10921# 10922 10923# No need to generate the scripts if there are no CONFIG_FILES. 10924# This happens for instance when ./config.status config.h 10925if test -n "$CONFIG_FILES"; then 10926 10927_ACEOF 10928 10929 10930 10931ac_delim='%!_!# ' 10932for ac_last_try in false false false false false :; do 10933 cat >conf$$subs.sed <<_ACEOF 10934SHELL!$SHELL$ac_delim 10935PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 10936PACKAGE_NAME!$PACKAGE_NAME$ac_delim 10937PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 10938PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 10939PACKAGE_STRING!$PACKAGE_STRING$ac_delim 10940PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 10941exec_prefix!$exec_prefix$ac_delim 10942prefix!$prefix$ac_delim 10943program_transform_name!$program_transform_name$ac_delim 10944bindir!$bindir$ac_delim 10945sbindir!$sbindir$ac_delim 10946libexecdir!$libexecdir$ac_delim 10947datarootdir!$datarootdir$ac_delim 10948datadir!$datadir$ac_delim 10949sysconfdir!$sysconfdir$ac_delim 10950sharedstatedir!$sharedstatedir$ac_delim 10951localstatedir!$localstatedir$ac_delim 10952includedir!$includedir$ac_delim 10953oldincludedir!$oldincludedir$ac_delim 10954docdir!$docdir$ac_delim 10955infodir!$infodir$ac_delim 10956htmldir!$htmldir$ac_delim 10957dvidir!$dvidir$ac_delim 10958pdfdir!$pdfdir$ac_delim 10959psdir!$psdir$ac_delim 10960libdir!$libdir$ac_delim 10961localedir!$localedir$ac_delim 10962mandir!$mandir$ac_delim 10963DEFS!$DEFS$ac_delim 10964ECHO_C!$ECHO_C$ac_delim 10965ECHO_N!$ECHO_N$ac_delim 10966ECHO_T!$ECHO_T$ac_delim 10967LIBS!$LIBS$ac_delim 10968build_alias!$build_alias$ac_delim 10969host_alias!$host_alias$ac_delim 10970target_alias!$target_alias$ac_delim 10971CYGPATH!$CYGPATH$ac_delim 10972EXEEXT!$EXEEXT$ac_delim 10973PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 10974PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 10975PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 10976PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 10977PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 10978PKG_HEADERS!$PKG_HEADERS$ac_delim 10979PKG_INCLUDES!$PKG_INCLUDES$ac_delim 10980PKG_LIBS!$PKG_LIBS$ac_delim 10981PKG_CFLAGS!$PKG_CFLAGS$ac_delim 10982TCL_VERSION!$TCL_VERSION$ac_delim 10983TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 10984TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 10985TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 10986TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 10987TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 10988TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 10989TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 10990TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 10991TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 10992CLEANFILES!$CLEANFILES$ac_delim 10993TCL_LIBS!$TCL_LIBS$ac_delim 10994TCL_DEFS!$TCL_DEFS$ac_delim 10995TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 10996TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 10997TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 10998CC!$CC$ac_delim 10999CFLAGS!$CFLAGS$ac_delim 11000LDFLAGS!$LDFLAGS$ac_delim 11001CPPFLAGS!$CPPFLAGS$ac_delim 11002ac_ct_CC!$ac_ct_CC$ac_delim 11003OBJEXT!$OBJEXT$ac_delim 11004CPP!$CPP$ac_delim 11005INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 11006INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 11007INSTALL_DATA!$INSTALL_DATA$ac_delim 11008SET_MAKE!$SET_MAKE$ac_delim 11009RANLIB!$RANLIB$ac_delim 11010GREP!$GREP$ac_delim 11011EGREP!$EGREP$ac_delim 11012MATH_LIBS!$MATH_LIBS$ac_delim 11013PKG_SOURCES!$PKG_SOURCES$ac_delim 11014PKG_OBJECTS!$PKG_OBJECTS$ac_delim 11015TCL_INCLUDES!$TCL_INCLUDES$ac_delim 11016TCL_THREADS!$TCL_THREADS$ac_delim 11017SHARED_BUILD!$SHARED_BUILD$ac_delim 11018AR!$AR$ac_delim 11019CELIB_DIR!$CELIB_DIR$ac_delim 11020CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 11021CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 11022CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 11023STLIB_LD!$STLIB_LD$ac_delim 11024SHLIB_LD!$SHLIB_LD$ac_delim 11025SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 11026SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 11027LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 11028CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 11029LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 11030TCL_DBGX!$TCL_DBGX$ac_delim 11031_ACEOF 11032 11033 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 11034 break 11035 elif $ac_last_try; then 11036 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11037echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11038 { (exit 1); exit 1; }; } 11039 else 11040 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11041 fi 11042done 11043 11044ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11045if test -n "$ac_eof"; then 11046 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11047 ac_eof=`expr $ac_eof + 1` 11048fi 11049 11050cat >>$CONFIG_STATUS <<_ACEOF 11051cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 11052/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11053_ACEOF 11054sed ' 11055s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11056s/^/s,@/; s/!/@,|#_!!_#|/ 11057:n 11058t n 11059s/'"$ac_delim"'$/,g/; t 11060s/$/\\/; p 11061N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11062' >>$CONFIG_STATUS <conf$$subs.sed 11063rm -f conf$$subs.sed 11064cat >>$CONFIG_STATUS <<_ACEOF 11065CEOF$ac_eof 11066_ACEOF 11067 11068 11069ac_delim='%!_!# ' 11070for ac_last_try in false false false false false :; do 11071 cat >conf$$subs.sed <<_ACEOF 11072MAKE_LIB!$MAKE_LIB$ac_delim 11073MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 11074MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 11075MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 11076RANLIB_STUB!$RANLIB_STUB$ac_delim 11077VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 11078VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 11079TCLSH_PROG!$TCLSH_PROG$ac_delim 11080LIBOBJS!$LIBOBJS$ac_delim 11081LTLIBOBJS!$LTLIBOBJS$ac_delim 11082_ACEOF 11083 11084 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then 11085 break 11086 elif $ac_last_try; then 11087 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11088echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11089 { (exit 1); exit 1; }; } 11090 else 11091 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11092 fi 11093done 11094 11095ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11096if test -n "$ac_eof"; then 11097 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11098 ac_eof=`expr $ac_eof + 1` 11099fi 11100 11101cat >>$CONFIG_STATUS <<_ACEOF 11102cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 11103/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 11104_ACEOF 11105sed ' 11106s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11107s/^/s,@/; s/!/@,|#_!!_#|/ 11108:n 11109t n 11110s/'"$ac_delim"'$/,g/; t 11111s/$/\\/; p 11112N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11113' >>$CONFIG_STATUS <conf$$subs.sed 11114rm -f conf$$subs.sed 11115cat >>$CONFIG_STATUS <<_ACEOF 11116:end 11117s/|#_!!_#|//g 11118CEOF$ac_eof 11119_ACEOF 11120 11121 11122# VPATH may cause trouble with some makes, so we remove $(srcdir), 11123# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11124# trailing colons and then remove the whole line if VPATH becomes empty 11125# (actually we leave an empty line to preserve line numbers). 11126if test "x$srcdir" = x.; then 11127 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11128s/:*\$(srcdir):*/:/ 11129s/:*\${srcdir}:*/:/ 11130s/:*@srcdir@:*/:/ 11131s/^\([^=]*=[ ]*\):*/\1/ 11132s/:*$// 11133s/^[^=]*=[ ]*$// 11134}' 11135fi 11136 11137cat >>$CONFIG_STATUS <<\_ACEOF 11138fi # test -n "$CONFIG_FILES" 11139 11140 11141for ac_tag in :F $CONFIG_FILES 11142do 11143 case $ac_tag in 11144 :[FHLC]) ac_mode=$ac_tag; continue;; 11145 esac 11146 case $ac_mode$ac_tag in 11147 :[FHL]*:*);; 11148 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 11149echo "$as_me: error: Invalid tag $ac_tag." >&2;} 11150 { (exit 1); exit 1; }; };; 11151 :[FH]-) ac_tag=-:-;; 11152 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11153 esac 11154 ac_save_IFS=$IFS 11155 IFS=: 11156 set x $ac_tag 11157 IFS=$ac_save_IFS 11158 shift 11159 ac_file=$1 11160 shift 11161 11162 case $ac_mode in 11163 :L) ac_source=$1;; 11164 :[FH]) 11165 ac_file_inputs= 11166 for ac_f 11167 do 11168 case $ac_f in 11169 -) ac_f="$tmp/stdin";; 11170 *) # Look for the file first in the build tree, then in the source tree 11171 # (if the path is not absolute). The absolute path cannot be DOS-style, 11172 # because $ac_f cannot contain `:'. 11173 test -f "$ac_f" || 11174 case $ac_f in 11175 [\\/$]*) false;; 11176 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11177 esac || 11178 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 11179echo "$as_me: error: cannot find input file: $ac_f" >&2;} 11180 { (exit 1); exit 1; }; };; 11181 esac 11182 ac_file_inputs="$ac_file_inputs $ac_f" 11183 done 11184 11185 # Let's still pretend it is `configure' which instantiates (i.e., don't 11186 # use $as_me), people would be surprised to read: 11187 # /* config.h. Generated by config.status. */ 11188 configure_input="Generated from "`IFS=: 11189 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 11190 if test x"$ac_file" != x-; then 11191 configure_input="$ac_file. $configure_input" 11192 { echo "$as_me:$LINENO: creating $ac_file" >&5 11193echo "$as_me: creating $ac_file" >&6;} 11194 fi 11195 11196 case $ac_tag in 11197 *:-:* | *:-) cat >"$tmp/stdin";; 11198 esac 11199 ;; 11200 esac 11201 11202 ac_dir=`$as_dirname -- "$ac_file" || 11203$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11204 X"$ac_file" : 'X\(//\)[^/]' \| \ 11205 X"$ac_file" : 'X\(//\)$' \| \ 11206 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11207echo X"$ac_file" | 11208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11209 s//\1/ 11210 q 11211 } 11212 /^X\(\/\/\)[^/].*/{ 11213 s//\1/ 11214 q 11215 } 11216 /^X\(\/\/\)$/{ 11217 s//\1/ 11218 q 11219 } 11220 /^X\(\/\).*/{ 11221 s//\1/ 11222 q 11223 } 11224 s/.*/./; q'` 11225 { as_dir="$ac_dir" 11226 case $as_dir in #( 11227 -*) as_dir=./$as_dir;; 11228 esac 11229 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11230 as_dirs= 11231 while :; do 11232 case $as_dir in #( 11233 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 11234 *) as_qdir=$as_dir;; 11235 esac 11236 as_dirs="'$as_qdir' $as_dirs" 11237 as_dir=`$as_dirname -- "$as_dir" || 11238$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11239 X"$as_dir" : 'X\(//\)[^/]' \| \ 11240 X"$as_dir" : 'X\(//\)$' \| \ 11241 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11242echo X"$as_dir" | 11243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11244 s//\1/ 11245 q 11246 } 11247 /^X\(\/\/\)[^/].*/{ 11248 s//\1/ 11249 q 11250 } 11251 /^X\(\/\/\)$/{ 11252 s//\1/ 11253 q 11254 } 11255 /^X\(\/\).*/{ 11256 s//\1/ 11257 q 11258 } 11259 s/.*/./; q'` 11260 test -d "$as_dir" && break 11261 done 11262 test -z "$as_dirs" || eval "mkdir $as_dirs" 11263 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 11264echo "$as_me: error: cannot create directory $as_dir" >&2;} 11265 { (exit 1); exit 1; }; }; } 11266 ac_builddir=. 11267 11268case "$ac_dir" in 11269.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11270*) 11271 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11272 # A ".." for each directory in $ac_dir_suffix. 11273 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 11274 case $ac_top_builddir_sub in 11275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11277 esac ;; 11278esac 11279ac_abs_top_builddir=$ac_pwd 11280ac_abs_builddir=$ac_pwd$ac_dir_suffix 11281# for backward compatibility: 11282ac_top_builddir=$ac_top_build_prefix 11283 11284case $srcdir in 11285 .) # We are building in place. 11286 ac_srcdir=. 11287 ac_top_srcdir=$ac_top_builddir_sub 11288 ac_abs_top_srcdir=$ac_pwd ;; 11289 [\\/]* | ?:[\\/]* ) # Absolute name. 11290 ac_srcdir=$srcdir$ac_dir_suffix; 11291 ac_top_srcdir=$srcdir 11292 ac_abs_top_srcdir=$srcdir ;; 11293 *) # Relative name. 11294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11295 ac_top_srcdir=$ac_top_build_prefix$srcdir 11296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11297esac 11298ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11299 11300 11301 case $ac_mode in 11302 :F) 11303 # 11304 # CONFIG_FILE 11305 # 11306 11307 case $INSTALL in 11308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11309 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11310 esac 11311_ACEOF 11312 11313cat >>$CONFIG_STATUS <<\_ACEOF 11314# If the template does not know about datarootdir, expand it. 11315# FIXME: This hack should be removed a few years after 2.60. 11316ac_datarootdir_hack=; ac_datarootdir_seen= 11317 11318case `sed -n '/datarootdir/ { 11319 p 11320 q 11321} 11322/@datadir@/p 11323/@docdir@/p 11324/@infodir@/p 11325/@localedir@/p 11326/@mandir@/p 11327' $ac_file_inputs` in 11328*datarootdir*) ac_datarootdir_seen=yes;; 11329*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11330 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11331echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11332_ACEOF 11333cat >>$CONFIG_STATUS <<_ACEOF 11334 ac_datarootdir_hack=' 11335 s&@datadir@&$datadir&g 11336 s&@docdir@&$docdir&g 11337 s&@infodir@&$infodir&g 11338 s&@localedir@&$localedir&g 11339 s&@mandir@&$mandir&g 11340 s&\\\${datarootdir}&$datarootdir&g' ;; 11341esac 11342_ACEOF 11343 11344# Neutralize VPATH when `$srcdir' = `.'. 11345# Shell code in configure.ac might set extrasub. 11346# FIXME: do we really want to maintain this feature? 11347cat >>$CONFIG_STATUS <<_ACEOF 11348 sed "$ac_vpsub 11349$extrasub 11350_ACEOF 11351cat >>$CONFIG_STATUS <<\_ACEOF 11352:t 11353/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11354s&@configure_input@&$configure_input&;t t 11355s&@top_builddir@&$ac_top_builddir_sub&;t t 11356s&@srcdir@&$ac_srcdir&;t t 11357s&@abs_srcdir@&$ac_abs_srcdir&;t t 11358s&@top_srcdir@&$ac_top_srcdir&;t t 11359s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11360s&@builddir@&$ac_builddir&;t t 11361s&@abs_builddir@&$ac_abs_builddir&;t t 11362s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11363s&@INSTALL@&$ac_INSTALL&;t t 11364$ac_datarootdir_hack 11365" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 11366 11367test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11368 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 11369 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 11370 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11371which seems to be undefined. Please make sure it is defined." >&5 11372echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11373which seems to be undefined. Please make sure it is defined." >&2;} 11374 11375 rm -f "$tmp/stdin" 11376 case $ac_file in 11377 -) cat "$tmp/out"; rm -f "$tmp/out";; 11378 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 11379 esac 11380 ;; 11381 11382 11383 11384 esac 11385 11386done # for ac_tag 11387 11388 11389{ (exit 0); exit 0; } 11390_ACEOF 11391chmod +x $CONFIG_STATUS 11392ac_clean_files=$ac_clean_files_save 11393 11394 11395# configure is writing to config.log, and then calls config.status. 11396# config.status does its own redirection, appending to config.log. 11397# Unfortunately, on DOS this fails, as config.log is still kept open 11398# by configure, so config.status won't be able to write to it; its 11399# output is simply discarded. So we exec the FD to /dev/null, 11400# effectively closing config.log, so it can be properly (re)opened and 11401# appended to by config.status. When coming back to configure, we 11402# need to make the FD available again. 11403if test "$no_create" != yes; then 11404 ac_cs_success=: 11405 ac_config_status_args= 11406 test "$silent" = yes && 11407 ac_config_status_args="$ac_config_status_args --quiet" 11408 exec 5>/dev/null 11409 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11410 exec 5>>config.log 11411 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11412 # would make configure fail if this is the last instruction. 11413 $ac_cs_success || { (exit 1); exit 1; } 11414fi 11415 11416