1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for thread 2.6.6. 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='thread' 574PACKAGE_TARNAME='thread' 575PACKAGE_VERSION='2.6.6' 576PACKAGE_STRING='thread 2.6.6' 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 thread 2.6.6 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/thread] 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 thread 2.6.6:";; 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-gdbm link with optional GDBM support 1316 --with-aolserver directory with AOLserver distribution 1317 --with-tclinclude directory containing the public Tcl header files 1318 --with-celib=DIR use Windows/CE support library from DIR 1319 1320Some influential environment variables: 1321 CC C compiler command 1322 CFLAGS C compiler flags 1323 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1324 nonstandard directory <lib dir> 1325 LIBS libraries to pass to the linker, e.g. -l<library> 1326 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1327 you have headers in a nonstandard directory <include dir> 1328 CPP C preprocessor 1329 1330Use these variables to override the choices made by `configure' or to help 1331it to find libraries and programs with nonstandard names/locations. 1332 1333_ACEOF 1334ac_status=$? 1335fi 1336 1337if test "$ac_init_help" = "recursive"; then 1338 # If there are subdirs, report their specific --help. 1339 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1340 test -d "$ac_dir" || continue 1341 ac_builddir=. 1342 1343case "$ac_dir" in 1344.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1345*) 1346 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1347 # A ".." for each directory in $ac_dir_suffix. 1348 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1349 case $ac_top_builddir_sub in 1350 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1351 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1352 esac ;; 1353esac 1354ac_abs_top_builddir=$ac_pwd 1355ac_abs_builddir=$ac_pwd$ac_dir_suffix 1356# for backward compatibility: 1357ac_top_builddir=$ac_top_build_prefix 1358 1359case $srcdir in 1360 .) # We are building in place. 1361 ac_srcdir=. 1362 ac_top_srcdir=$ac_top_builddir_sub 1363 ac_abs_top_srcdir=$ac_pwd ;; 1364 [\\/]* | ?:[\\/]* ) # Absolute name. 1365 ac_srcdir=$srcdir$ac_dir_suffix; 1366 ac_top_srcdir=$srcdir 1367 ac_abs_top_srcdir=$srcdir ;; 1368 *) # Relative name. 1369 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1370 ac_top_srcdir=$ac_top_build_prefix$srcdir 1371 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1372esac 1373ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1374 1375 cd "$ac_dir" || { ac_status=$?; continue; } 1376 # Check for guested configure. 1377 if test -f "$ac_srcdir/configure.gnu"; then 1378 echo && 1379 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1380 elif test -f "$ac_srcdir/configure"; then 1381 echo && 1382 $SHELL "$ac_srcdir/configure" --help=recursive 1383 else 1384 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1385 fi || ac_status=$? 1386 cd "$ac_pwd" || { ac_status=$?; break; } 1387 done 1388fi 1389 1390test -n "$ac_init_help" && exit $ac_status 1391if $ac_init_version; then 1392 cat <<\_ACEOF 1393thread configure 2.6.6 1394generated by GNU Autoconf 2.61 1395 1396Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13972002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1398This configure script is free software; the Free Software Foundation 1399gives unlimited permission to copy, distribute and modify it. 1400_ACEOF 1401 exit 1402fi 1403cat >config.log <<_ACEOF 1404This file contains any messages produced by compilers while 1405running configure, to aid debugging if configure makes a mistake. 1406 1407It was created by thread $as_me 2.6.6, which was 1408generated by GNU Autoconf 2.61. Invocation command line was 1409 1410 $ $0 $@ 1411 1412_ACEOF 1413exec 5>>config.log 1414{ 1415cat <<_ASUNAME 1416## --------- ## 1417## Platform. ## 1418## --------- ## 1419 1420hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1421uname -m = `(uname -m) 2>/dev/null || echo unknown` 1422uname -r = `(uname -r) 2>/dev/null || echo unknown` 1423uname -s = `(uname -s) 2>/dev/null || echo unknown` 1424uname -v = `(uname -v) 2>/dev/null || echo unknown` 1425 1426/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1427/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1428 1429/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1430/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1431/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1432/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1433/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1434/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1435/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1436 1437_ASUNAME 1438 1439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1440for as_dir in $PATH 1441do 1442 IFS=$as_save_IFS 1443 test -z "$as_dir" && as_dir=. 1444 echo "PATH: $as_dir" 1445done 1446IFS=$as_save_IFS 1447 1448} >&5 1449 1450cat >&5 <<_ACEOF 1451 1452 1453## ----------- ## 1454## Core tests. ## 1455## ----------- ## 1456 1457_ACEOF 1458 1459 1460# Keep a trace of the command line. 1461# Strip out --no-create and --no-recursion so they do not pile up. 1462# Strip out --silent because we don't want to record it for future runs. 1463# Also quote any args containing shell meta-characters. 1464# Make two passes to allow for proper duplicate-argument suppression. 1465ac_configure_args= 1466ac_configure_args0= 1467ac_configure_args1= 1468ac_must_keep_next=false 1469for ac_pass in 1 2 1470do 1471 for ac_arg 1472 do 1473 case $ac_arg in 1474 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1475 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1476 | -silent | --silent | --silen | --sile | --sil) 1477 continue ;; 1478 *\'*) 1479 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1480 esac 1481 case $ac_pass in 1482 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1483 2) 1484 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1485 if test $ac_must_keep_next = true; then 1486 ac_must_keep_next=false # Got value, back to normal. 1487 else 1488 case $ac_arg in 1489 *=* | --config-cache | -C | -disable-* | --disable-* \ 1490 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1491 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1492 | -with-* | --with-* | -without-* | --without-* | --x) 1493 case "$ac_configure_args0 " in 1494 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1495 esac 1496 ;; 1497 -* ) ac_must_keep_next=true ;; 1498 esac 1499 fi 1500 ac_configure_args="$ac_configure_args '$ac_arg'" 1501 ;; 1502 esac 1503 done 1504done 1505$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1506$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1507 1508# When interrupted or exit'd, cleanup temporary files, and complete 1509# config.log. We remove comments because anyway the quotes in there 1510# would cause problems or look ugly. 1511# WARNING: Use '\'' to represent an apostrophe within the trap. 1512# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1513trap 'exit_status=$? 1514 # Save into config.log some information that might help in debugging. 1515 { 1516 echo 1517 1518 cat <<\_ASBOX 1519## ---------------- ## 1520## Cache variables. ## 1521## ---------------- ## 1522_ASBOX 1523 echo 1524 # The following way of writing the cache mishandles newlines in values, 1525( 1526 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1527 eval ac_val=\$$ac_var 1528 case $ac_val in #( 1529 *${as_nl}*) 1530 case $ac_var in #( 1531 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1532echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1533 esac 1534 case $ac_var in #( 1535 _ | IFS | as_nl) ;; #( 1536 *) $as_unset $ac_var ;; 1537 esac ;; 1538 esac 1539 done 1540 (set) 2>&1 | 1541 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1542 *${as_nl}ac_space=\ *) 1543 sed -n \ 1544 "s/'\''/'\''\\\\'\'''\''/g; 1545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1546 ;; #( 1547 *) 1548 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1549 ;; 1550 esac | 1551 sort 1552) 1553 echo 1554 1555 cat <<\_ASBOX 1556## ----------------- ## 1557## Output variables. ## 1558## ----------------- ## 1559_ASBOX 1560 echo 1561 for ac_var in $ac_subst_vars 1562 do 1563 eval ac_val=\$$ac_var 1564 case $ac_val in 1565 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1566 esac 1567 echo "$ac_var='\''$ac_val'\''" 1568 done | sort 1569 echo 1570 1571 if test -n "$ac_subst_files"; then 1572 cat <<\_ASBOX 1573## ------------------- ## 1574## File substitutions. ## 1575## ------------------- ## 1576_ASBOX 1577 echo 1578 for ac_var in $ac_subst_files 1579 do 1580 eval ac_val=\$$ac_var 1581 case $ac_val in 1582 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1583 esac 1584 echo "$ac_var='\''$ac_val'\''" 1585 done | sort 1586 echo 1587 fi 1588 1589 if test -s confdefs.h; then 1590 cat <<\_ASBOX 1591## ----------- ## 1592## confdefs.h. ## 1593## ----------- ## 1594_ASBOX 1595 echo 1596 cat confdefs.h 1597 echo 1598 fi 1599 test "$ac_signal" != 0 && 1600 echo "$as_me: caught signal $ac_signal" 1601 echo "$as_me: exit $exit_status" 1602 } >&5 1603 rm -f core *.core core.conftest.* && 1604 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1605 exit $exit_status 1606' 0 1607for ac_signal in 1 2 13 15; do 1608 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1609done 1610ac_signal=0 1611 1612# confdefs.h avoids OS command line length limits that DEFS can exceed. 1613rm -f -r conftest* confdefs.h 1614 1615# Predefined preprocessor variables. 1616 1617cat >>confdefs.h <<_ACEOF 1618#define PACKAGE_NAME "$PACKAGE_NAME" 1619_ACEOF 1620 1621 1622cat >>confdefs.h <<_ACEOF 1623#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1624_ACEOF 1625 1626 1627cat >>confdefs.h <<_ACEOF 1628#define PACKAGE_VERSION "$PACKAGE_VERSION" 1629_ACEOF 1630 1631 1632cat >>confdefs.h <<_ACEOF 1633#define PACKAGE_STRING "$PACKAGE_STRING" 1634_ACEOF 1635 1636 1637cat >>confdefs.h <<_ACEOF 1638#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1639_ACEOF 1640 1641 1642# Let the site file select an alternate cache file if it wants to. 1643# Prefer explicitly selected file to automatically selected ones. 1644if test -n "$CONFIG_SITE"; then 1645 set x "$CONFIG_SITE" 1646elif test "x$prefix" != xNONE; then 1647 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1648else 1649 set x "$ac_default_prefix/share/config.site" \ 1650 "$ac_default_prefix/etc/config.site" 1651fi 1652shift 1653for ac_site_file 1654do 1655 if test -r "$ac_site_file"; then 1656 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1657echo "$as_me: loading site script $ac_site_file" >&6;} 1658 sed 's/^/| /' "$ac_site_file" >&5 1659 . "$ac_site_file" 1660 fi 1661done 1662 1663if test -r "$cache_file"; then 1664 # Some versions of bash will fail to source /dev/null (special 1665 # files actually), so we avoid doing that. 1666 if test -f "$cache_file"; then 1667 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1668echo "$as_me: loading cache $cache_file" >&6;} 1669 case $cache_file in 1670 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1671 *) . "./$cache_file";; 1672 esac 1673 fi 1674else 1675 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1676echo "$as_me: creating cache $cache_file" >&6;} 1677 >$cache_file 1678fi 1679 1680# Check that the precious variables saved in the cache have kept the same 1681# value. 1682ac_cache_corrupted=false 1683for ac_var in $ac_precious_vars; do 1684 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1685 eval ac_new_set=\$ac_env_${ac_var}_set 1686 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1687 eval ac_new_val=\$ac_env_${ac_var}_value 1688 case $ac_old_set,$ac_new_set in 1689 set,) 1690 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1691echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1692 ac_cache_corrupted=: ;; 1693 ,set) 1694 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1695echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1696 ac_cache_corrupted=: ;; 1697 ,);; 1698 *) 1699 if test "x$ac_old_val" != "x$ac_new_val"; then 1700 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1701echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1702 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1703echo "$as_me: former value: $ac_old_val" >&2;} 1704 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1705echo "$as_me: current value: $ac_new_val" >&2;} 1706 ac_cache_corrupted=: 1707 fi;; 1708 esac 1709 # Pass precious variables to config.status. 1710 if test "$ac_new_set" = set; then 1711 case $ac_new_val in 1712 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1713 *) ac_arg=$ac_var=$ac_new_val ;; 1714 esac 1715 case " $ac_configure_args " in 1716 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1717 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1718 esac 1719 fi 1720done 1721if $ac_cache_corrupted; then 1722 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1723echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1724 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1725echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1726 { (exit 1); exit 1; }; } 1727fi 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753ac_ext=c 1754ac_cpp='$CPP $CPPFLAGS' 1755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1757ac_compiler_gnu=$ac_cv_c_compiler_gnu 1758 1759 1760 1761#-------------------------------------------------------------------- 1762# Call TEA_INIT as the first TEA_ macro to set up initial vars. 1763# This will define a ${TEA_PLATFORM} variable == "unix" or "windows" 1764# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. 1765#-------------------------------------------------------------------- 1766 1767 1768 # TEA extensions pass this us the version of TEA they think they 1769 # are compatible with. 1770 TEA_VERSION="3.9" 1771 1772 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1773echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1774 if test x"${PACKAGE_NAME}" = x ; then 1775 { { echo "$as_me:$LINENO: error: 1776The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1777echo "$as_me: error: 1778The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1779 { (exit 1); exit 1; }; } 1780 fi 1781 if test x"3.9" = x ; then 1782 { { echo "$as_me:$LINENO: error: 1783TEA version not specified." >&5 1784echo "$as_me: error: 1785TEA version not specified." >&2;} 1786 { (exit 1); exit 1; }; } 1787 elif test "3.9" != "${TEA_VERSION}" ; then 1788 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1789echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1790 else 1791 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1792echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1793 fi 1794 case "`uname -s`" in 1795 *win32*|*WIN32*|*MINGW32_*) 1796 # Extract the first word of "cygpath", so it can be a program name with args. 1797set dummy cygpath; ac_word=$2 1798{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1800if test "${ac_cv_prog_CYGPATH+set}" = set; then 1801 echo $ECHO_N "(cached) $ECHO_C" >&6 1802else 1803 if test -n "$CYGPATH"; then 1804 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1805else 1806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1807for as_dir in $PATH 1808do 1809 IFS=$as_save_IFS 1810 test -z "$as_dir" && as_dir=. 1811 for ac_exec_ext in '' $ac_executable_extensions; do 1812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1813 ac_cv_prog_CYGPATH="cygpath -w" 1814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1815 break 2 1816 fi 1817done 1818done 1819IFS=$as_save_IFS 1820 1821 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1822fi 1823fi 1824CYGPATH=$ac_cv_prog_CYGPATH 1825if test -n "$CYGPATH"; then 1826 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1827echo "${ECHO_T}$CYGPATH" >&6; } 1828else 1829 { echo "$as_me:$LINENO: result: no" >&5 1830echo "${ECHO_T}no" >&6; } 1831fi 1832 1833 1834 EXEEXT=".exe" 1835 TEA_PLATFORM="windows" 1836 ;; 1837 *CYGWIN_*) 1838 CYGPATH=echo 1839 EXEEXT=".exe" 1840 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1841 ;; 1842 *) 1843 CYGPATH=echo 1844 EXEEXT="" 1845 TEA_PLATFORM="unix" 1846 ;; 1847 esac 1848 1849 # Check if exec_prefix is set. If not use fall back to prefix. 1850 # Note when adjusted, so that TEA_PREFIX can correct for this. 1851 # This is needed for recursive configures, since autoconf propagates 1852 # $prefix, but not $exec_prefix (doh!). 1853 if test x$exec_prefix = xNONE ; then 1854 exec_prefix_default=yes 1855 exec_prefix=$prefix 1856 fi 1857 1858 1859 1860 1861 # This package name must be replaced statically for AC_SUBST to work 1862 1863 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1864 1865 1866 # We AC_SUBST these here to ensure they are subst'ed, 1867 # in case the user doesn't call TEA_ADD_... 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877ac_aux_dir= 1878for ac_dir in tclconfig "$srcdir"/tclconfig; do 1879 if test -f "$ac_dir/install-sh"; then 1880 ac_aux_dir=$ac_dir 1881 ac_install_sh="$ac_aux_dir/install-sh -c" 1882 break 1883 elif 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/shtool"; then 1888 ac_aux_dir=$ac_dir 1889 ac_install_sh="$ac_aux_dir/shtool install -c" 1890 break 1891 fi 1892done 1893if test -z "$ac_aux_dir"; then 1894 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5 1895echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;} 1896 { (exit 1); exit 1; }; } 1897fi 1898 1899# These three variables are undocumented and unsupported, 1900# and are intended to be withdrawn in a future Autoconf release. 1901# They can cause serious problems if a builder's source tree is in a directory 1902# whose full name contains unusual characters. 1903ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1904ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1905ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1906 1907 1908 1909#-------------------------------------------------------------------- 1910# Load the tclConfig.sh file 1911#-------------------------------------------------------------------- 1912 1913 1914 1915 # 1916 # Ok, lets find the tcl configuration 1917 # First, look for one uninstalled. 1918 # the alternative search directory is invoked by --with-tcl 1919 # 1920 1921 if test x"${no_tcl}" = x ; then 1922 # we reset no_tcl in case something fails here 1923 no_tcl=true 1924 1925# Check whether --with-tcl was given. 1926if test "${with_tcl+set}" = set; then 1927 withval=$with_tcl; with_tclconfig="${withval}" 1928fi 1929 1930 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1931echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1932 if test "${ac_cv_c_tclconfig+set}" = set; then 1933 echo $ECHO_N "(cached) $ECHO_C" >&6 1934else 1935 1936 1937 # First check to see if --with-tcl was specified. 1938 if test x"${with_tclconfig}" != x ; then 1939 case "${with_tclconfig}" in 1940 */tclConfig.sh ) 1941 if test -f "${with_tclconfig}"; then 1942 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1943echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1944 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1945 fi ;; 1946 esac 1947 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1948 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1949 else 1950 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1951echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1952 { (exit 1); exit 1; }; } 1953 fi 1954 fi 1955 1956 # then check for a private Tcl installation 1957 if test x"${ac_cv_c_tclconfig}" = x ; then 1958 for i in \ 1959 ../tcl \ 1960 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1961 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1962 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 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` ; do 1971 if test "${TEA_PLATFORM}" = "windows" \ 1972 -a -f "$i/win/tclConfig.sh" ; then 1973 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 1974 break 1975 fi 1976 if test -f "$i/unix/tclConfig.sh" ; then 1977 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1978 break 1979 fi 1980 done 1981 fi 1982 1983 # on Darwin, check in Framework installation locations 1984 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1985 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1986 `ls -d /Library/Frameworks 2>/dev/null` \ 1987 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1988 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1989 ; do 1990 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 1991 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 1992 break 1993 fi 1994 done 1995 fi 1996 1997 # TEA specific: on Windows, check in common installation locations 1998 if test "${TEA_PLATFORM}" = "windows" \ 1999 -a x"${ac_cv_c_tclconfig}" = x ; then 2000 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2001 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2002 ; do 2003 if test -f "$i/tclConfig.sh" ; then 2004 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2005 break 2006 fi 2007 done 2008 fi 2009 2010 # check in a few common install locations 2011 if test x"${ac_cv_c_tclconfig}" = x ; then 2012 for i in `ls -d ${libdir} 2>/dev/null` \ 2013 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2014 `ls -d ${prefix}/lib 2>/dev/null` \ 2015 `ls -d /usr/local/lib 2>/dev/null` \ 2016 `ls -d /usr/contrib/lib 2>/dev/null` \ 2017 `ls -d /usr/lib 2>/dev/null` \ 2018 `ls -d /usr/lib64 2>/dev/null` \ 2019 ; do 2020 if test -f "$i/tclConfig.sh" ; then 2021 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2022 break 2023 fi 2024 done 2025 fi 2026 2027 # check in a few other private locations 2028 if test x"${ac_cv_c_tclconfig}" = x ; then 2029 for i in \ 2030 ${srcdir}/../tcl \ 2031 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2032 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2033 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2034 if test "${TEA_PLATFORM}" = "windows" \ 2035 -a -f "$i/win/tclConfig.sh" ; then 2036 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2037 break 2038 fi 2039 if test -f "$i/unix/tclConfig.sh" ; then 2040 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2041 break 2042 fi 2043 done 2044 fi 2045 2046fi 2047 2048 2049 if test x"${ac_cv_c_tclconfig}" = x ; then 2050 TCL_BIN_DIR="# no Tcl configs found" 2051 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2052echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2053 { (exit 1); exit 1; }; } 2054 else 2055 no_tcl= 2056 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2057 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2058echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2059 fi 2060 fi 2061 2062 2063 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2064echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2065 2066 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2067 { echo "$as_me:$LINENO: result: loading" >&5 2068echo "${ECHO_T}loading" >&6; } 2069 . "${TCL_BIN_DIR}/tclConfig.sh" 2070 else 2071 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2072echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2073 fi 2074 2075 # eval is required to do the TCL_DBGX substitution 2076 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2077 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2078 2079 # If the TCL_BIN_DIR is the build directory (not the install directory), 2080 # then set the common variable name to the value of the build variables. 2081 # For example, the variable TCL_LIB_SPEC will be set to the value 2082 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2083 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2084 # installed and uninstalled version of Tcl. 2085 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2086 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2087 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2088 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2089 elif test "`uname -s`" = "Darwin"; then 2090 # If Tcl was built as a framework, attempt to use the libraries 2091 # from the framework at the given location so that linking works 2092 # against Tcl.framework installed in an arbitrary location. 2093 case ${TCL_DEFS} in 2094 *TCL_FRAMEWORK*) 2095 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2096 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2097 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2098 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2099 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2100 break 2101 fi 2102 done 2103 fi 2104 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2105 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2106 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2107 fi 2108 ;; 2109 esac 2110 fi 2111 2112 # eval is required to do the TCL_DBGX substitution 2113 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2114 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2115 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2116 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 case "`uname -s`" in 2132 *CYGWIN_*) 2133 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2134echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2135 case ${TCL_EXTRA_CFLAGS} in 2136 *-mwin32*|*-mno-cygwin*) 2137 TEA_PLATFORM="windows" 2138 CFLAGS="$CFLAGS -mwin32" 2139 { echo "$as_me:$LINENO: result: win32" >&5 2140echo "${ECHO_T}win32" >&6; } 2141 ;; 2142 *) 2143 TEA_PLATFORM="unix" 2144 { echo "$as_me:$LINENO: result: unix" >&5 2145echo "${ECHO_T}unix" >&6; } 2146 ;; 2147 esac 2148 EXEEXT=".exe" 2149 ;; 2150 *) 2151 ;; 2152 esac 2153 2154 # Do this here as we have fully defined TEA_PLATFORM now 2155 if test "${TEA_PLATFORM}" = "windows" ; then 2156 # The BUILD_$pkg is to define the correct extern storage class 2157 # handling when making this package 2158 2159cat >>confdefs.h <<_ACEOF 2160#define BUILD_${PACKAGE_NAME} 2161_ACEOF 2162 2163 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2164 fi 2165 2166 # TEA specific: 2167 2168 2169 2170 2171 2172 2173 2174 2175#-------------------------------------------------------------------- 2176# Load the tkConfig.sh file if necessary (Tk extension) 2177#-------------------------------------------------------------------- 2178 2179#TEA_PATH_TKCONFIG 2180#TEA_LOAD_TKCONFIG 2181 2182#----------------------------------------------------------------------- 2183# Handle the --prefix=... option by defaulting to what Tcl gave. 2184# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2185#----------------------------------------------------------------------- 2186 2187 2188 if test "${prefix}" = "NONE"; then 2189 prefix_default=yes 2190 if test x"${TCL_PREFIX}" != x; then 2191 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2192echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2193 prefix=${TCL_PREFIX} 2194 else 2195 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2196echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2197 prefix=/usr/local 2198 fi 2199 fi 2200 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2201 -o x"${exec_prefix_default}" = x"yes" ; then 2202 if test x"${TCL_EXEC_PREFIX}" != x; then 2203 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2204echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2205 exec_prefix=${TCL_EXEC_PREFIX} 2206 else 2207 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2208echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2209 exec_prefix=$prefix 2210 fi 2211 fi 2212 2213 2214#----------------------------------------------------------------------- 2215# Standard compiler checks. 2216# This sets up CC by using the CC env var, or looks for gcc otherwise. 2217# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2218# the basic setup necessary to compile executables. 2219#----------------------------------------------------------------------- 2220 2221 2222 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2223 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2224 2225 # If the user did not set CFLAGS, set it now to keep 2226 # the AC_PROG_CC macro from adding "-g -O2". 2227 if test "${CFLAGS+set}" != "set" ; then 2228 CFLAGS="" 2229 fi 2230 2231 ac_ext=c 2232ac_cpp='$CPP $CPPFLAGS' 2233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2235ac_compiler_gnu=$ac_cv_c_compiler_gnu 2236if test -n "$ac_tool_prefix"; then 2237 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2238set dummy ${ac_tool_prefix}gcc; ac_word=$2 2239{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2241if test "${ac_cv_prog_CC+set}" = set; then 2242 echo $ECHO_N "(cached) $ECHO_C" >&6 2243else 2244 if test -n "$CC"; then 2245 ac_cv_prog_CC="$CC" # Let the user override the test. 2246else 2247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2248for as_dir in $PATH 2249do 2250 IFS=$as_save_IFS 2251 test -z "$as_dir" && as_dir=. 2252 for ac_exec_ext in '' $ac_executable_extensions; do 2253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2254 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2256 break 2 2257 fi 2258done 2259done 2260IFS=$as_save_IFS 2261 2262fi 2263fi 2264CC=$ac_cv_prog_CC 2265if test -n "$CC"; then 2266 { echo "$as_me:$LINENO: result: $CC" >&5 2267echo "${ECHO_T}$CC" >&6; } 2268else 2269 { echo "$as_me:$LINENO: result: no" >&5 2270echo "${ECHO_T}no" >&6; } 2271fi 2272 2273 2274fi 2275if test -z "$ac_cv_prog_CC"; then 2276 ac_ct_CC=$CC 2277 # Extract the first word of "gcc", so it can be a program name with args. 2278set dummy gcc; ac_word=$2 2279{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2281if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2282 echo $ECHO_N "(cached) $ECHO_C" >&6 2283else 2284 if test -n "$ac_ct_CC"; then 2285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2286else 2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2288for as_dir in $PATH 2289do 2290 IFS=$as_save_IFS 2291 test -z "$as_dir" && as_dir=. 2292 for ac_exec_ext in '' $ac_executable_extensions; do 2293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2294 ac_cv_prog_ac_ct_CC="gcc" 2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2296 break 2 2297 fi 2298done 2299done 2300IFS=$as_save_IFS 2301 2302fi 2303fi 2304ac_ct_CC=$ac_cv_prog_ac_ct_CC 2305if test -n "$ac_ct_CC"; then 2306 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2307echo "${ECHO_T}$ac_ct_CC" >&6; } 2308else 2309 { echo "$as_me:$LINENO: result: no" >&5 2310echo "${ECHO_T}no" >&6; } 2311fi 2312 2313 if test "x$ac_ct_CC" = x; then 2314 CC="" 2315 else 2316 case $cross_compiling:$ac_tool_warned in 2317yes:) 2318{ echo "$as_me:$LINENO: 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." >&5 2321echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2322whose name does not start with the host triplet. If you think this 2323configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2324ac_tool_warned=yes ;; 2325esac 2326 CC=$ac_ct_CC 2327 fi 2328else 2329 CC="$ac_cv_prog_CC" 2330fi 2331 2332if test -z "$CC"; then 2333 if test -n "$ac_tool_prefix"; then 2334 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2335set dummy ${ac_tool_prefix}cc; ac_word=$2 2336{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2338if test "${ac_cv_prog_CC+set}" = set; then 2339 echo $ECHO_N "(cached) $ECHO_C" >&6 2340else 2341 if test -n "$CC"; then 2342 ac_cv_prog_CC="$CC" # Let the user override the test. 2343else 2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2345for as_dir in $PATH 2346do 2347 IFS=$as_save_IFS 2348 test -z "$as_dir" && as_dir=. 2349 for ac_exec_ext in '' $ac_executable_extensions; do 2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2351 ac_cv_prog_CC="${ac_tool_prefix}cc" 2352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2353 break 2 2354 fi 2355done 2356done 2357IFS=$as_save_IFS 2358 2359fi 2360fi 2361CC=$ac_cv_prog_CC 2362if test -n "$CC"; then 2363 { echo "$as_me:$LINENO: result: $CC" >&5 2364echo "${ECHO_T}$CC" >&6; } 2365else 2366 { echo "$as_me:$LINENO: result: no" >&5 2367echo "${ECHO_T}no" >&6; } 2368fi 2369 2370 2371 fi 2372fi 2373if test -z "$CC"; then 2374 # Extract the first word of "cc", so it can be a program name with args. 2375set dummy cc; ac_word=$2 2376{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2378if test "${ac_cv_prog_CC+set}" = set; then 2379 echo $ECHO_N "(cached) $ECHO_C" >&6 2380else 2381 if test -n "$CC"; then 2382 ac_cv_prog_CC="$CC" # Let the user override the test. 2383else 2384 ac_prog_rejected=no 2385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2386for as_dir in $PATH 2387do 2388 IFS=$as_save_IFS 2389 test -z "$as_dir" && as_dir=. 2390 for ac_exec_ext in '' $ac_executable_extensions; do 2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2392 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2393 ac_prog_rejected=yes 2394 continue 2395 fi 2396 ac_cv_prog_CC="cc" 2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2398 break 2 2399 fi 2400done 2401done 2402IFS=$as_save_IFS 2403 2404if test $ac_prog_rejected = yes; then 2405 # We found a bogon in the path, so make sure we never use it. 2406 set dummy $ac_cv_prog_CC 2407 shift 2408 if test $# != 0; then 2409 # We chose a different compiler from the bogus one. 2410 # However, it has the same basename, so the bogon will be chosen 2411 # first if we set CC to just the basename; use the full file name. 2412 shift 2413 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2414 fi 2415fi 2416fi 2417fi 2418CC=$ac_cv_prog_CC 2419if test -n "$CC"; then 2420 { echo "$as_me:$LINENO: result: $CC" >&5 2421echo "${ECHO_T}$CC" >&6; } 2422else 2423 { echo "$as_me:$LINENO: result: no" >&5 2424echo "${ECHO_T}no" >&6; } 2425fi 2426 2427 2428fi 2429if test -z "$CC"; then 2430 if test -n "$ac_tool_prefix"; then 2431 for ac_prog in cl.exe 2432 do 2433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2434set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2435{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2437if test "${ac_cv_prog_CC+set}" = set; then 2438 echo $ECHO_N "(cached) $ECHO_C" >&6 2439else 2440 if test -n "$CC"; then 2441 ac_cv_prog_CC="$CC" # Let the user override the test. 2442else 2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2444for as_dir in $PATH 2445do 2446 IFS=$as_save_IFS 2447 test -z "$as_dir" && as_dir=. 2448 for ac_exec_ext in '' $ac_executable_extensions; do 2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2450 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2452 break 2 2453 fi 2454done 2455done 2456IFS=$as_save_IFS 2457 2458fi 2459fi 2460CC=$ac_cv_prog_CC 2461if test -n "$CC"; then 2462 { echo "$as_me:$LINENO: result: $CC" >&5 2463echo "${ECHO_T}$CC" >&6; } 2464else 2465 { echo "$as_me:$LINENO: result: no" >&5 2466echo "${ECHO_T}no" >&6; } 2467fi 2468 2469 2470 test -n "$CC" && break 2471 done 2472fi 2473if test -z "$CC"; then 2474 ac_ct_CC=$CC 2475 for ac_prog in cl.exe 2476do 2477 # Extract the first word of "$ac_prog", so it can be a program name with args. 2478set dummy $ac_prog; ac_word=$2 2479{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2481if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2482 echo $ECHO_N "(cached) $ECHO_C" >&6 2483else 2484 if test -n "$ac_ct_CC"; then 2485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2486else 2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2488for as_dir in $PATH 2489do 2490 IFS=$as_save_IFS 2491 test -z "$as_dir" && as_dir=. 2492 for ac_exec_ext in '' $ac_executable_extensions; do 2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2494 ac_cv_prog_ac_ct_CC="$ac_prog" 2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2496 break 2 2497 fi 2498done 2499done 2500IFS=$as_save_IFS 2501 2502fi 2503fi 2504ac_ct_CC=$ac_cv_prog_ac_ct_CC 2505if test -n "$ac_ct_CC"; then 2506 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2507echo "${ECHO_T}$ac_ct_CC" >&6; } 2508else 2509 { echo "$as_me:$LINENO: result: no" >&5 2510echo "${ECHO_T}no" >&6; } 2511fi 2512 2513 2514 test -n "$ac_ct_CC" && break 2515done 2516 2517 if test "x$ac_ct_CC" = x; then 2518 CC="" 2519 else 2520 case $cross_compiling:$ac_tool_warned in 2521yes:) 2522{ echo "$as_me:$LINENO: 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." >&5 2525echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2526whose name does not start with the host triplet. If you think this 2527configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2528ac_tool_warned=yes ;; 2529esac 2530 CC=$ac_ct_CC 2531 fi 2532fi 2533 2534fi 2535 2536 2537test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2538See \`config.log' for more details." >&5 2539echo "$as_me: error: no acceptable C compiler found in \$PATH 2540See \`config.log' for more details." >&2;} 2541 { (exit 1); exit 1; }; } 2542 2543# Provide some information about the compiler. 2544echo "$as_me:$LINENO: checking for C compiler version" >&5 2545ac_compiler=`set X $ac_compile; echo $2` 2546{ (ac_try="$ac_compiler --version >&5" 2547case "(($ac_try" in 2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2549 *) ac_try_echo=$ac_try;; 2550esac 2551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2552 (eval "$ac_compiler --version >&5") 2>&5 2553 ac_status=$? 2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2555 (exit $ac_status); } 2556{ (ac_try="$ac_compiler -v >&5" 2557case "(($ac_try" in 2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2559 *) ac_try_echo=$ac_try;; 2560esac 2561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2562 (eval "$ac_compiler -v >&5") 2>&5 2563 ac_status=$? 2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2565 (exit $ac_status); } 2566{ (ac_try="$ac_compiler -V >&5" 2567case "(($ac_try" in 2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2569 *) ac_try_echo=$ac_try;; 2570esac 2571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2572 (eval "$ac_compiler -V >&5") 2>&5 2573 ac_status=$? 2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2575 (exit $ac_status); } 2576 2577cat >conftest.$ac_ext <<_ACEOF 2578/* confdefs.h. */ 2579_ACEOF 2580cat confdefs.h >>conftest.$ac_ext 2581cat >>conftest.$ac_ext <<_ACEOF 2582/* end confdefs.h. */ 2583 2584int 2585main () 2586{ 2587 2588 ; 2589 return 0; 2590} 2591_ACEOF 2592ac_clean_files_save=$ac_clean_files 2593ac_clean_files="$ac_clean_files a.out a.exe b.out" 2594# Try to create an executable without -o first, disregard a.out. 2595# It will help us diagnose broken compilers, and finding out an intuition 2596# of exeext. 2597{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2598echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2599ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2600# 2601# List of possible output files, starting from the most likely. 2602# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2603# only as a last resort. b.out is created by i960 compilers. 2604ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2605# 2606# The IRIX 6 linker writes into existing files which may not be 2607# executable, retaining their permissions. Remove them first so a 2608# subsequent execution test works. 2609ac_rmfiles= 2610for ac_file in $ac_files 2611do 2612 case $ac_file in 2613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2614 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2615 esac 2616done 2617rm -f $ac_rmfiles 2618 2619if { (ac_try="$ac_link_default" 2620case "(($ac_try" in 2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2622 *) ac_try_echo=$ac_try;; 2623esac 2624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2625 (eval "$ac_link_default") 2>&5 2626 ac_status=$? 2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2628 (exit $ac_status); }; then 2629 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2630# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2631# in a Makefile. We should not override ac_cv_exeext if it was cached, 2632# so that the user can short-circuit this test for compilers unknown to 2633# Autoconf. 2634for ac_file in $ac_files '' 2635do 2636 test -f "$ac_file" || continue 2637 case $ac_file in 2638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2639 ;; 2640 [ab].out ) 2641 # We found the default executable, but exeext='' is most 2642 # certainly right. 2643 break;; 2644 *.* ) 2645 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2646 then :; else 2647 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2648 fi 2649 # We set ac_cv_exeext here because the later test for it is not 2650 # safe: cross compilers may not add the suffix if given an `-o' 2651 # argument, so we may need to know it at that point already. 2652 # Even if this section looks crufty: it has the advantage of 2653 # actually working. 2654 break;; 2655 * ) 2656 break;; 2657 esac 2658done 2659test "$ac_cv_exeext" = no && ac_cv_exeext= 2660 2661else 2662 ac_file='' 2663fi 2664 2665{ echo "$as_me:$LINENO: result: $ac_file" >&5 2666echo "${ECHO_T}$ac_file" >&6; } 2667if test -z "$ac_file"; then 2668 echo "$as_me: failed program was:" >&5 2669sed 's/^/| /' conftest.$ac_ext >&5 2670 2671{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2672See \`config.log' for more details." >&5 2673echo "$as_me: error: C compiler cannot create executables 2674See \`config.log' for more details." >&2;} 2675 { (exit 77); exit 77; }; } 2676fi 2677 2678ac_exeext=$ac_cv_exeext 2679 2680# Check that the compiler produces executables we can run. If not, either 2681# the compiler is broken, or we cross compile. 2682{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2683echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2684# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2685# If not cross compiling, check that we can run a simple program. 2686if test "$cross_compiling" != yes; then 2687 if { ac_try='./$ac_file' 2688 { (case "(($ac_try" in 2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2690 *) ac_try_echo=$ac_try;; 2691esac 2692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2693 (eval "$ac_try") 2>&5 2694 ac_status=$? 2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2696 (exit $ac_status); }; }; then 2697 cross_compiling=no 2698 else 2699 if test "$cross_compiling" = maybe; then 2700 cross_compiling=yes 2701 else 2702 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2703If you meant to cross compile, use \`--host'. 2704See \`config.log' for more details." >&5 2705echo "$as_me: error: cannot run C compiled programs. 2706If you meant to cross compile, use \`--host'. 2707See \`config.log' for more details." >&2;} 2708 { (exit 1); exit 1; }; } 2709 fi 2710 fi 2711fi 2712{ echo "$as_me:$LINENO: result: yes" >&5 2713echo "${ECHO_T}yes" >&6; } 2714 2715rm -f a.out a.exe conftest$ac_cv_exeext b.out 2716ac_clean_files=$ac_clean_files_save 2717# Check that the compiler produces executables we can run. If not, either 2718# the compiler is broken, or we cross compile. 2719{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2720echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2721{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2722echo "${ECHO_T}$cross_compiling" >&6; } 2723 2724{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2725echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2726if { (ac_try="$ac_link" 2727case "(($ac_try" in 2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2729 *) ac_try_echo=$ac_try;; 2730esac 2731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2732 (eval "$ac_link") 2>&5 2733 ac_status=$? 2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2735 (exit $ac_status); }; then 2736 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2737# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2738# work properly (i.e., refer to `conftest.exe'), while it won't with 2739# `rm'. 2740for ac_file in conftest.exe conftest conftest.*; do 2741 test -f "$ac_file" || continue 2742 case $ac_file in 2743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2744 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2745 break;; 2746 * ) break;; 2747 esac 2748done 2749else 2750 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2751See \`config.log' for more details." >&5 2752echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2753See \`config.log' for more details." >&2;} 2754 { (exit 1); exit 1; }; } 2755fi 2756 2757rm -f conftest$ac_cv_exeext 2758{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2759echo "${ECHO_T}$ac_cv_exeext" >&6; } 2760 2761rm -f conftest.$ac_ext 2762EXEEXT=$ac_cv_exeext 2763ac_exeext=$EXEEXT 2764{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2765echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2766if test "${ac_cv_objext+set}" = set; then 2767 echo $ECHO_N "(cached) $ECHO_C" >&6 2768else 2769 cat >conftest.$ac_ext <<_ACEOF 2770/* confdefs.h. */ 2771_ACEOF 2772cat confdefs.h >>conftest.$ac_ext 2773cat >>conftest.$ac_ext <<_ACEOF 2774/* end confdefs.h. */ 2775 2776int 2777main () 2778{ 2779 2780 ; 2781 return 0; 2782} 2783_ACEOF 2784rm -f conftest.o conftest.obj 2785if { (ac_try="$ac_compile" 2786case "(($ac_try" in 2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2788 *) ac_try_echo=$ac_try;; 2789esac 2790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2791 (eval "$ac_compile") 2>&5 2792 ac_status=$? 2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2794 (exit $ac_status); }; then 2795 for ac_file in conftest.o conftest.obj conftest.*; do 2796 test -f "$ac_file" || continue; 2797 case $ac_file in 2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2799 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2800 break;; 2801 esac 2802done 2803else 2804 echo "$as_me: failed program was:" >&5 2805sed 's/^/| /' conftest.$ac_ext >&5 2806 2807{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2808See \`config.log' for more details." >&5 2809echo "$as_me: error: cannot compute suffix of object files: cannot compile 2810See \`config.log' for more details." >&2;} 2811 { (exit 1); exit 1; }; } 2812fi 2813 2814rm -f conftest.$ac_cv_objext conftest.$ac_ext 2815fi 2816{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2817echo "${ECHO_T}$ac_cv_objext" >&6; } 2818OBJEXT=$ac_cv_objext 2819ac_objext=$OBJEXT 2820{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2821echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2822if test "${ac_cv_c_compiler_gnu+set}" = set; then 2823 echo $ECHO_N "(cached) $ECHO_C" >&6 2824else 2825 cat >conftest.$ac_ext <<_ACEOF 2826/* confdefs.h. */ 2827_ACEOF 2828cat confdefs.h >>conftest.$ac_ext 2829cat >>conftest.$ac_ext <<_ACEOF 2830/* end confdefs.h. */ 2831 2832int 2833main () 2834{ 2835#ifndef __GNUC__ 2836 choke me 2837#endif 2838 2839 ; 2840 return 0; 2841} 2842_ACEOF 2843rm -f conftest.$ac_objext 2844if { (ac_try="$ac_compile" 2845case "(($ac_try" in 2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2847 *) ac_try_echo=$ac_try;; 2848esac 2849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2850 (eval "$ac_compile") 2>conftest.er1 2851 ac_status=$? 2852 grep -v '^ *+' conftest.er1 >conftest.err 2853 rm -f conftest.er1 2854 cat conftest.err >&5 2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2856 (exit $ac_status); } && { 2857 test -z "$ac_c_werror_flag" || 2858 test ! -s conftest.err 2859 } && test -s conftest.$ac_objext; then 2860 ac_compiler_gnu=yes 2861else 2862 echo "$as_me: failed program was:" >&5 2863sed 's/^/| /' conftest.$ac_ext >&5 2864 2865 ac_compiler_gnu=no 2866fi 2867 2868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2869ac_cv_c_compiler_gnu=$ac_compiler_gnu 2870 2871fi 2872{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2873echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2874GCC=`test $ac_compiler_gnu = yes && echo yes` 2875ac_test_CFLAGS=${CFLAGS+set} 2876ac_save_CFLAGS=$CFLAGS 2877{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2878echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2879if test "${ac_cv_prog_cc_g+set}" = set; then 2880 echo $ECHO_N "(cached) $ECHO_C" >&6 2881else 2882 ac_save_c_werror_flag=$ac_c_werror_flag 2883 ac_c_werror_flag=yes 2884 ac_cv_prog_cc_g=no 2885 CFLAGS="-g" 2886 cat >conftest.$ac_ext <<_ACEOF 2887/* confdefs.h. */ 2888_ACEOF 2889cat confdefs.h >>conftest.$ac_ext 2890cat >>conftest.$ac_ext <<_ACEOF 2891/* end confdefs.h. */ 2892 2893int 2894main () 2895{ 2896 2897 ; 2898 return 0; 2899} 2900_ACEOF 2901rm -f conftest.$ac_objext 2902if { (ac_try="$ac_compile" 2903case "(($ac_try" in 2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2905 *) ac_try_echo=$ac_try;; 2906esac 2907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2908 (eval "$ac_compile") 2>conftest.er1 2909 ac_status=$? 2910 grep -v '^ *+' conftest.er1 >conftest.err 2911 rm -f conftest.er1 2912 cat conftest.err >&5 2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2914 (exit $ac_status); } && { 2915 test -z "$ac_c_werror_flag" || 2916 test ! -s conftest.err 2917 } && test -s conftest.$ac_objext; then 2918 ac_cv_prog_cc_g=yes 2919else 2920 echo "$as_me: failed program was:" >&5 2921sed 's/^/| /' conftest.$ac_ext >&5 2922 2923 CFLAGS="" 2924 cat >conftest.$ac_ext <<_ACEOF 2925/* confdefs.h. */ 2926_ACEOF 2927cat confdefs.h >>conftest.$ac_ext 2928cat >>conftest.$ac_ext <<_ACEOF 2929/* end confdefs.h. */ 2930 2931int 2932main () 2933{ 2934 2935 ; 2936 return 0; 2937} 2938_ACEOF 2939rm -f conftest.$ac_objext 2940if { (ac_try="$ac_compile" 2941case "(($ac_try" in 2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2943 *) ac_try_echo=$ac_try;; 2944esac 2945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2946 (eval "$ac_compile") 2>conftest.er1 2947 ac_status=$? 2948 grep -v '^ *+' conftest.er1 >conftest.err 2949 rm -f conftest.er1 2950 cat conftest.err >&5 2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2952 (exit $ac_status); } && { 2953 test -z "$ac_c_werror_flag" || 2954 test ! -s conftest.err 2955 } && test -s conftest.$ac_objext; then 2956 : 2957else 2958 echo "$as_me: failed program was:" >&5 2959sed 's/^/| /' conftest.$ac_ext >&5 2960 2961 ac_c_werror_flag=$ac_save_c_werror_flag 2962 CFLAGS="-g" 2963 cat >conftest.$ac_ext <<_ACEOF 2964/* confdefs.h. */ 2965_ACEOF 2966cat confdefs.h >>conftest.$ac_ext 2967cat >>conftest.$ac_ext <<_ACEOF 2968/* end confdefs.h. */ 2969 2970int 2971main () 2972{ 2973 2974 ; 2975 return 0; 2976} 2977_ACEOF 2978rm -f conftest.$ac_objext 2979if { (ac_try="$ac_compile" 2980case "(($ac_try" in 2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2982 *) ac_try_echo=$ac_try;; 2983esac 2984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2985 (eval "$ac_compile") 2>conftest.er1 2986 ac_status=$? 2987 grep -v '^ *+' conftest.er1 >conftest.err 2988 rm -f conftest.er1 2989 cat conftest.err >&5 2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2991 (exit $ac_status); } && { 2992 test -z "$ac_c_werror_flag" || 2993 test ! -s conftest.err 2994 } && test -s conftest.$ac_objext; then 2995 ac_cv_prog_cc_g=yes 2996else 2997 echo "$as_me: failed program was:" >&5 2998sed 's/^/| /' conftest.$ac_ext >&5 2999 3000 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 3007fi 3008 3009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3010 ac_c_werror_flag=$ac_save_c_werror_flag 3011fi 3012{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3013echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3014if test "$ac_test_CFLAGS" = set; then 3015 CFLAGS=$ac_save_CFLAGS 3016elif test $ac_cv_prog_cc_g = yes; then 3017 if test "$GCC" = yes; then 3018 CFLAGS="-g -O2" 3019 else 3020 CFLAGS="-g" 3021 fi 3022else 3023 if test "$GCC" = yes; then 3024 CFLAGS="-O2" 3025 else 3026 CFLAGS= 3027 fi 3028fi 3029{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3030echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3031if test "${ac_cv_prog_cc_c89+set}" = set; then 3032 echo $ECHO_N "(cached) $ECHO_C" >&6 3033else 3034 ac_cv_prog_cc_c89=no 3035ac_save_CC=$CC 3036cat >conftest.$ac_ext <<_ACEOF 3037/* confdefs.h. */ 3038_ACEOF 3039cat confdefs.h >>conftest.$ac_ext 3040cat >>conftest.$ac_ext <<_ACEOF 3041/* end confdefs.h. */ 3042#include <stdarg.h> 3043#include <stdio.h> 3044#include <sys/types.h> 3045#include <sys/stat.h> 3046/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3047struct buf { int x; }; 3048FILE * (*rcsopen) (struct buf *, struct stat *, int); 3049static char *e (p, i) 3050 char **p; 3051 int i; 3052{ 3053 return p[i]; 3054} 3055static char *f (char * (*g) (char **, int), char **p, ...) 3056{ 3057 char *s; 3058 va_list v; 3059 va_start (v,p); 3060 s = g (p, va_arg (v,int)); 3061 va_end (v); 3062 return s; 3063} 3064 3065/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3066 function prototypes and stuff, but not '\xHH' hex character constants. 3067 These don't provoke an error unfortunately, instead are silently treated 3068 as 'x'. The following induces an error, until -std is added to get 3069 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3070 array size at least. It's necessary to write '\x00'==0 to get something 3071 that's true only with -std. */ 3072int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3073 3074/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3075 inside strings and character constants. */ 3076#define FOO(x) 'x' 3077int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3078 3079int test (int i, double x); 3080struct s1 {int (*f) (int a);}; 3081struct s2 {int (*f) (double a);}; 3082int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3083int argc; 3084char **argv; 3085int 3086main () 3087{ 3088return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3089 ; 3090 return 0; 3091} 3092_ACEOF 3093for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3094 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3095do 3096 CC="$ac_save_CC $ac_arg" 3097 rm -f conftest.$ac_objext 3098if { (ac_try="$ac_compile" 3099case "(($ac_try" in 3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3101 *) ac_try_echo=$ac_try;; 3102esac 3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3104 (eval "$ac_compile") 2>conftest.er1 3105 ac_status=$? 3106 grep -v '^ *+' conftest.er1 >conftest.err 3107 rm -f conftest.er1 3108 cat conftest.err >&5 3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3110 (exit $ac_status); } && { 3111 test -z "$ac_c_werror_flag" || 3112 test ! -s conftest.err 3113 } && test -s conftest.$ac_objext; then 3114 ac_cv_prog_cc_c89=$ac_arg 3115else 3116 echo "$as_me: failed program was:" >&5 3117sed 's/^/| /' conftest.$ac_ext >&5 3118 3119 3120fi 3121 3122rm -f core conftest.err conftest.$ac_objext 3123 test "x$ac_cv_prog_cc_c89" != "xno" && break 3124done 3125rm -f conftest.$ac_ext 3126CC=$ac_save_CC 3127 3128fi 3129# AC_CACHE_VAL 3130case "x$ac_cv_prog_cc_c89" in 3131 x) 3132 { echo "$as_me:$LINENO: result: none needed" >&5 3133echo "${ECHO_T}none needed" >&6; } ;; 3134 xno) 3135 { echo "$as_me:$LINENO: result: unsupported" >&5 3136echo "${ECHO_T}unsupported" >&6; } ;; 3137 *) 3138 CC="$CC $ac_cv_prog_cc_c89" 3139 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3140echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3141esac 3142 3143 3144ac_ext=c 3145ac_cpp='$CPP $CPPFLAGS' 3146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3148ac_compiler_gnu=$ac_cv_c_compiler_gnu 3149 3150 ac_ext=c 3151ac_cpp='$CPP $CPPFLAGS' 3152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3154ac_compiler_gnu=$ac_cv_c_compiler_gnu 3155{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3156echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3157# On Suns, sometimes $CPP names a directory. 3158if test -n "$CPP" && test -d "$CPP"; then 3159 CPP= 3160fi 3161if test -z "$CPP"; then 3162 if test "${ac_cv_prog_CPP+set}" = set; then 3163 echo $ECHO_N "(cached) $ECHO_C" >&6 3164else 3165 # Double quotes because CPP needs to be expanded 3166 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3167 do 3168 ac_preproc_ok=false 3169for ac_c_preproc_warn_flag in '' yes 3170do 3171 # Use a header file that comes with gcc, so configuring glibc 3172 # with a fresh cross-compiler works. 3173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3174 # <limits.h> exists even on freestanding compilers. 3175 # On the NeXT, cc -E runs the code through the compiler's parser, 3176 # not just through cpp. "Syntax error" is here to catch this case. 3177 cat >conftest.$ac_ext <<_ACEOF 3178/* confdefs.h. */ 3179_ACEOF 3180cat confdefs.h >>conftest.$ac_ext 3181cat >>conftest.$ac_ext <<_ACEOF 3182/* end confdefs.h. */ 3183#ifdef __STDC__ 3184# include <limits.h> 3185#else 3186# include <assert.h> 3187#endif 3188 Syntax error 3189_ACEOF 3190if { (ac_try="$ac_cpp conftest.$ac_ext" 3191case "(($ac_try" in 3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3193 *) ac_try_echo=$ac_try;; 3194esac 3195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3197 ac_status=$? 3198 grep -v '^ *+' conftest.er1 >conftest.err 3199 rm -f conftest.er1 3200 cat conftest.err >&5 3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3202 (exit $ac_status); } >/dev/null && { 3203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3204 test ! -s conftest.err 3205 }; then 3206 : 3207else 3208 echo "$as_me: failed program was:" >&5 3209sed 's/^/| /' conftest.$ac_ext >&5 3210 3211 # Broken: fails on valid input. 3212continue 3213fi 3214 3215rm -f conftest.err conftest.$ac_ext 3216 3217 # OK, works on sane cases. Now check whether nonexistent headers 3218 # can be detected and how. 3219 cat >conftest.$ac_ext <<_ACEOF 3220/* confdefs.h. */ 3221_ACEOF 3222cat confdefs.h >>conftest.$ac_ext 3223cat >>conftest.$ac_ext <<_ACEOF 3224/* end confdefs.h. */ 3225#include <ac_nonexistent.h> 3226_ACEOF 3227if { (ac_try="$ac_cpp conftest.$ac_ext" 3228case "(($ac_try" in 3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3230 *) ac_try_echo=$ac_try;; 3231esac 3232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3234 ac_status=$? 3235 grep -v '^ *+' conftest.er1 >conftest.err 3236 rm -f conftest.er1 3237 cat conftest.err >&5 3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3239 (exit $ac_status); } >/dev/null && { 3240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3241 test ! -s conftest.err 3242 }; then 3243 # Broken: success on invalid input. 3244continue 3245else 3246 echo "$as_me: failed program was:" >&5 3247sed 's/^/| /' conftest.$ac_ext >&5 3248 3249 # Passes both tests. 3250ac_preproc_ok=: 3251break 3252fi 3253 3254rm -f conftest.err conftest.$ac_ext 3255 3256done 3257# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3258rm -f conftest.err conftest.$ac_ext 3259if $ac_preproc_ok; then 3260 break 3261fi 3262 3263 done 3264 ac_cv_prog_CPP=$CPP 3265 3266fi 3267 CPP=$ac_cv_prog_CPP 3268else 3269 ac_cv_prog_CPP=$CPP 3270fi 3271{ echo "$as_me:$LINENO: result: $CPP" >&5 3272echo "${ECHO_T}$CPP" >&6; } 3273ac_preproc_ok=false 3274for ac_c_preproc_warn_flag in '' yes 3275do 3276 # Use a header file that comes with gcc, so configuring glibc 3277 # with a fresh cross-compiler works. 3278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3279 # <limits.h> exists even on freestanding compilers. 3280 # On the NeXT, cc -E runs the code through the compiler's parser, 3281 # not just through cpp. "Syntax error" is here to catch this case. 3282 cat >conftest.$ac_ext <<_ACEOF 3283/* confdefs.h. */ 3284_ACEOF 3285cat confdefs.h >>conftest.$ac_ext 3286cat >>conftest.$ac_ext <<_ACEOF 3287/* end confdefs.h. */ 3288#ifdef __STDC__ 3289# include <limits.h> 3290#else 3291# include <assert.h> 3292#endif 3293 Syntax error 3294_ACEOF 3295if { (ac_try="$ac_cpp conftest.$ac_ext" 3296case "(($ac_try" in 3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3298 *) ac_try_echo=$ac_try;; 3299esac 3300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3302 ac_status=$? 3303 grep -v '^ *+' conftest.er1 >conftest.err 3304 rm -f conftest.er1 3305 cat conftest.err >&5 3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3307 (exit $ac_status); } >/dev/null && { 3308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3309 test ! -s conftest.err 3310 }; then 3311 : 3312else 3313 echo "$as_me: failed program was:" >&5 3314sed 's/^/| /' conftest.$ac_ext >&5 3315 3316 # Broken: fails on valid input. 3317continue 3318fi 3319 3320rm -f conftest.err conftest.$ac_ext 3321 3322 # OK, works on sane cases. Now check whether nonexistent headers 3323 # can be detected and how. 3324 cat >conftest.$ac_ext <<_ACEOF 3325/* confdefs.h. */ 3326_ACEOF 3327cat confdefs.h >>conftest.$ac_ext 3328cat >>conftest.$ac_ext <<_ACEOF 3329/* end confdefs.h. */ 3330#include <ac_nonexistent.h> 3331_ACEOF 3332if { (ac_try="$ac_cpp conftest.$ac_ext" 3333case "(($ac_try" in 3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3335 *) ac_try_echo=$ac_try;; 3336esac 3337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3339 ac_status=$? 3340 grep -v '^ *+' conftest.er1 >conftest.err 3341 rm -f conftest.er1 3342 cat conftest.err >&5 3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3344 (exit $ac_status); } >/dev/null && { 3345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3346 test ! -s conftest.err 3347 }; then 3348 # Broken: success on invalid input. 3349continue 3350else 3351 echo "$as_me: failed program was:" >&5 3352sed 's/^/| /' conftest.$ac_ext >&5 3353 3354 # Passes both tests. 3355ac_preproc_ok=: 3356break 3357fi 3358 3359rm -f conftest.err conftest.$ac_ext 3360 3361done 3362# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3363rm -f conftest.err conftest.$ac_ext 3364if $ac_preproc_ok; then 3365 : 3366else 3367 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3368See \`config.log' for more details." >&5 3369echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3370See \`config.log' for more details." >&2;} 3371 { (exit 1); exit 1; }; } 3372fi 3373 3374ac_ext=c 3375ac_cpp='$CPP $CPPFLAGS' 3376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3378ac_compiler_gnu=$ac_cv_c_compiler_gnu 3379 3380 3381 # Find a good install program. We prefer a C program (faster), 3382# so one script is as good as another. But avoid the broken or 3383# incompatible versions: 3384# SysV /etc/install, /usr/sbin/install 3385# SunOS /usr/etc/install 3386# IRIX /sbin/install 3387# AIX /bin/install 3388# AmigaOS /C/install, which installs bootblocks on floppy discs 3389# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3390# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3391# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3392# OS/2's system install, which has a completely different semantic 3393# ./install, which can be erroneously created by make from ./install.sh. 3394{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3395echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3396if test -z "$INSTALL"; then 3397if test "${ac_cv_path_install+set}" = set; then 3398 echo $ECHO_N "(cached) $ECHO_C" >&6 3399else 3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3401for as_dir in $PATH 3402do 3403 IFS=$as_save_IFS 3404 test -z "$as_dir" && as_dir=. 3405 # Account for people who put trailing slashes in PATH elements. 3406case $as_dir/ in 3407 ./ | .// | /cC/* | \ 3408 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3409 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3410 /usr/ucb/* ) ;; 3411 *) 3412 # OSF1 and SCO ODT 3.0 have their own names for install. 3413 # Don't use installbsd from OSF since it installs stuff as root 3414 # by default. 3415 for ac_prog in ginstall scoinst install; do 3416 for ac_exec_ext in '' $ac_executable_extensions; do 3417 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3418 if test $ac_prog = install && 3419 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3420 # AIX install. It has an incompatible calling convention. 3421 : 3422 elif test $ac_prog = install && 3423 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3424 # program-specific install script used by HP pwplus--don't use. 3425 : 3426 else 3427 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3428 break 3 3429 fi 3430 fi 3431 done 3432 done 3433 ;; 3434esac 3435done 3436IFS=$as_save_IFS 3437 3438 3439fi 3440 if test "${ac_cv_path_install+set}" = set; then 3441 INSTALL=$ac_cv_path_install 3442 else 3443 # As a last resort, use the slow shell script. Don't cache a 3444 # value for INSTALL within a source directory, because that will 3445 # break other packages using the cache if that directory is 3446 # removed, or if the value is a relative name. 3447 INSTALL=$ac_install_sh 3448 fi 3449fi 3450{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3451echo "${ECHO_T}$INSTALL" >&6; } 3452 3453# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3454# It thinks the first close brace ends the variable substitution. 3455test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3456 3457test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3458 3459test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3460 3461 3462 #-------------------------------------------------------------------- 3463 # Checks to see if the make program sets the $MAKE variable. 3464 #-------------------------------------------------------------------- 3465 3466 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3467echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3468set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3469if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3470 echo $ECHO_N "(cached) $ECHO_C" >&6 3471else 3472 cat >conftest.make <<\_ACEOF 3473SHELL = /bin/sh 3474all: 3475 @echo '@@@%%%=$(MAKE)=@@@%%%' 3476_ACEOF 3477# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3478case `${MAKE-make} -f conftest.make 2>/dev/null` in 3479 *@@@%%%=?*=@@@%%%*) 3480 eval ac_cv_prog_make_${ac_make}_set=yes;; 3481 *) 3482 eval ac_cv_prog_make_${ac_make}_set=no;; 3483esac 3484rm -f conftest.make 3485fi 3486if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3487 { echo "$as_me:$LINENO: result: yes" >&5 3488echo "${ECHO_T}yes" >&6; } 3489 SET_MAKE= 3490else 3491 { echo "$as_me:$LINENO: result: no" >&5 3492echo "${ECHO_T}no" >&6; } 3493 SET_MAKE="MAKE=${MAKE-make}" 3494fi 3495 3496 3497 #-------------------------------------------------------------------- 3498 # Find ranlib 3499 #-------------------------------------------------------------------- 3500 3501 if test -n "$ac_tool_prefix"; then 3502 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3503set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3504{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3506if test "${ac_cv_prog_RANLIB+set}" = set; then 3507 echo $ECHO_N "(cached) $ECHO_C" >&6 3508else 3509 if test -n "$RANLIB"; then 3510 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3511else 3512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3513for as_dir in $PATH 3514do 3515 IFS=$as_save_IFS 3516 test -z "$as_dir" && as_dir=. 3517 for ac_exec_ext in '' $ac_executable_extensions; do 3518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3519 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3521 break 2 3522 fi 3523done 3524done 3525IFS=$as_save_IFS 3526 3527fi 3528fi 3529RANLIB=$ac_cv_prog_RANLIB 3530if test -n "$RANLIB"; then 3531 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3532echo "${ECHO_T}$RANLIB" >&6; } 3533else 3534 { echo "$as_me:$LINENO: result: no" >&5 3535echo "${ECHO_T}no" >&6; } 3536fi 3537 3538 3539fi 3540if test -z "$ac_cv_prog_RANLIB"; then 3541 ac_ct_RANLIB=$RANLIB 3542 # Extract the first word of "ranlib", so it can be a program name with args. 3543set dummy ranlib; ac_word=$2 3544{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3546if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3547 echo $ECHO_N "(cached) $ECHO_C" >&6 3548else 3549 if test -n "$ac_ct_RANLIB"; then 3550 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3551else 3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3553for as_dir in $PATH 3554do 3555 IFS=$as_save_IFS 3556 test -z "$as_dir" && as_dir=. 3557 for ac_exec_ext in '' $ac_executable_extensions; do 3558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3559 ac_cv_prog_ac_ct_RANLIB="ranlib" 3560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3561 break 2 3562 fi 3563done 3564done 3565IFS=$as_save_IFS 3566 3567fi 3568fi 3569ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3570if test -n "$ac_ct_RANLIB"; then 3571 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3572echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3573else 3574 { echo "$as_me:$LINENO: result: no" >&5 3575echo "${ECHO_T}no" >&6; } 3576fi 3577 3578 if test "x$ac_ct_RANLIB" = x; then 3579 RANLIB=":" 3580 else 3581 case $cross_compiling:$ac_tool_warned in 3582yes:) 3583{ echo "$as_me:$LINENO: 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." >&5 3586echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3587whose name does not start with the host triplet. If you think this 3588configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3589ac_tool_warned=yes ;; 3590esac 3591 RANLIB=$ac_ct_RANLIB 3592 fi 3593else 3594 RANLIB="$ac_cv_prog_RANLIB" 3595fi 3596 3597 3598 #-------------------------------------------------------------------- 3599 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3600 #-------------------------------------------------------------------- 3601 3602 3603 3604 3605 3606 3607{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3608echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3609if test "${ac_cv_path_GREP+set}" = set; then 3610 echo $ECHO_N "(cached) $ECHO_C" >&6 3611else 3612 # Extract the first word of "grep ggrep" to use in msg output 3613if test -z "$GREP"; then 3614set dummy grep ggrep; ac_prog_name=$2 3615if test "${ac_cv_path_GREP+set}" = set; then 3616 echo $ECHO_N "(cached) $ECHO_C" >&6 3617else 3618 ac_path_GREP_found=false 3619# Loop through the user's path and test for each of PROGNAME-LIST 3620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3621for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3622do 3623 IFS=$as_save_IFS 3624 test -z "$as_dir" && as_dir=. 3625 for ac_prog in grep ggrep; do 3626 for ac_exec_ext in '' $ac_executable_extensions; do 3627 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3628 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3629 # Check for GNU ac_path_GREP and select it if it is found. 3630 # Check for GNU $ac_path_GREP 3631case `"$ac_path_GREP" --version 2>&1` in 3632*GNU*) 3633 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3634*) 3635 ac_count=0 3636 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3637 while : 3638 do 3639 cat "conftest.in" "conftest.in" >"conftest.tmp" 3640 mv "conftest.tmp" "conftest.in" 3641 cp "conftest.in" "conftest.nl" 3642 echo 'GREP' >> "conftest.nl" 3643 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3645 ac_count=`expr $ac_count + 1` 3646 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3647 # Best one so far, save it but keep looking for a better one 3648 ac_cv_path_GREP="$ac_path_GREP" 3649 ac_path_GREP_max=$ac_count 3650 fi 3651 # 10*(2^10) chars as input seems more than enough 3652 test $ac_count -gt 10 && break 3653 done 3654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3655esac 3656 3657 3658 $ac_path_GREP_found && break 3 3659 done 3660done 3661 3662done 3663IFS=$as_save_IFS 3664 3665 3666fi 3667 3668GREP="$ac_cv_path_GREP" 3669if test -z "$GREP"; then 3670 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3671echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3672 { (exit 1); exit 1; }; } 3673fi 3674 3675else 3676 ac_cv_path_GREP=$GREP 3677fi 3678 3679 3680fi 3681{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3682echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3683 GREP="$ac_cv_path_GREP" 3684 3685 3686{ echo "$as_me:$LINENO: checking for egrep" >&5 3687echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3688if test "${ac_cv_path_EGREP+set}" = set; then 3689 echo $ECHO_N "(cached) $ECHO_C" >&6 3690else 3691 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3692 then ac_cv_path_EGREP="$GREP -E" 3693 else 3694 # Extract the first word of "egrep" to use in msg output 3695if test -z "$EGREP"; then 3696set dummy egrep; ac_prog_name=$2 3697if test "${ac_cv_path_EGREP+set}" = set; then 3698 echo $ECHO_N "(cached) $ECHO_C" >&6 3699else 3700 ac_path_EGREP_found=false 3701# Loop through the user's path and test for each of PROGNAME-LIST 3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3703for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3704do 3705 IFS=$as_save_IFS 3706 test -z "$as_dir" && as_dir=. 3707 for ac_prog in egrep; do 3708 for ac_exec_ext in '' $ac_executable_extensions; do 3709 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3710 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3711 # Check for GNU ac_path_EGREP and select it if it is found. 3712 # Check for GNU $ac_path_EGREP 3713case `"$ac_path_EGREP" --version 2>&1` in 3714*GNU*) 3715 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3716*) 3717 ac_count=0 3718 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3719 while : 3720 do 3721 cat "conftest.in" "conftest.in" >"conftest.tmp" 3722 mv "conftest.tmp" "conftest.in" 3723 cp "conftest.in" "conftest.nl" 3724 echo 'EGREP' >> "conftest.nl" 3725 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3727 ac_count=`expr $ac_count + 1` 3728 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3729 # Best one so far, save it but keep looking for a better one 3730 ac_cv_path_EGREP="$ac_path_EGREP" 3731 ac_path_EGREP_max=$ac_count 3732 fi 3733 # 10*(2^10) chars as input seems more than enough 3734 test $ac_count -gt 10 && break 3735 done 3736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3737esac 3738 3739 3740 $ac_path_EGREP_found && break 3 3741 done 3742done 3743 3744done 3745IFS=$as_save_IFS 3746 3747 3748fi 3749 3750EGREP="$ac_cv_path_EGREP" 3751if test -z "$EGREP"; then 3752 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3753echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3754 { (exit 1); exit 1; }; } 3755fi 3756 3757else 3758 ac_cv_path_EGREP=$EGREP 3759fi 3760 3761 3762 fi 3763fi 3764{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3765echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3766 EGREP="$ac_cv_path_EGREP" 3767 3768 3769{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3770echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3771if test "${ac_cv_header_stdc+set}" = set; then 3772 echo $ECHO_N "(cached) $ECHO_C" >&6 3773else 3774 cat >conftest.$ac_ext <<_ACEOF 3775/* confdefs.h. */ 3776_ACEOF 3777cat confdefs.h >>conftest.$ac_ext 3778cat >>conftest.$ac_ext <<_ACEOF 3779/* end confdefs.h. */ 3780#include <stdlib.h> 3781#include <stdarg.h> 3782#include <string.h> 3783#include <float.h> 3784 3785int 3786main () 3787{ 3788 3789 ; 3790 return 0; 3791} 3792_ACEOF 3793rm -f conftest.$ac_objext 3794if { (ac_try="$ac_compile" 3795case "(($ac_try" in 3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3797 *) ac_try_echo=$ac_try;; 3798esac 3799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3800 (eval "$ac_compile") 2>conftest.er1 3801 ac_status=$? 3802 grep -v '^ *+' conftest.er1 >conftest.err 3803 rm -f conftest.er1 3804 cat conftest.err >&5 3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3806 (exit $ac_status); } && { 3807 test -z "$ac_c_werror_flag" || 3808 test ! -s conftest.err 3809 } && test -s conftest.$ac_objext; then 3810 ac_cv_header_stdc=yes 3811else 3812 echo "$as_me: failed program was:" >&5 3813sed 's/^/| /' conftest.$ac_ext >&5 3814 3815 ac_cv_header_stdc=no 3816fi 3817 3818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3819 3820if test $ac_cv_header_stdc = yes; then 3821 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3822 cat >conftest.$ac_ext <<_ACEOF 3823/* confdefs.h. */ 3824_ACEOF 3825cat confdefs.h >>conftest.$ac_ext 3826cat >>conftest.$ac_ext <<_ACEOF 3827/* end confdefs.h. */ 3828#include <string.h> 3829 3830_ACEOF 3831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3832 $EGREP "memchr" >/dev/null 2>&1; then 3833 : 3834else 3835 ac_cv_header_stdc=no 3836fi 3837rm -f -r conftest* 3838 3839fi 3840 3841if test $ac_cv_header_stdc = yes; then 3842 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3843 cat >conftest.$ac_ext <<_ACEOF 3844/* confdefs.h. */ 3845_ACEOF 3846cat confdefs.h >>conftest.$ac_ext 3847cat >>conftest.$ac_ext <<_ACEOF 3848/* end confdefs.h. */ 3849#include <stdlib.h> 3850 3851_ACEOF 3852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3853 $EGREP "free" >/dev/null 2>&1; then 3854 : 3855else 3856 ac_cv_header_stdc=no 3857fi 3858rm -f -r conftest* 3859 3860fi 3861 3862if test $ac_cv_header_stdc = yes; then 3863 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3864 if test "$cross_compiling" = yes; then 3865 : 3866else 3867 cat >conftest.$ac_ext <<_ACEOF 3868/* confdefs.h. */ 3869_ACEOF 3870cat confdefs.h >>conftest.$ac_ext 3871cat >>conftest.$ac_ext <<_ACEOF 3872/* end confdefs.h. */ 3873#include <ctype.h> 3874#include <stdlib.h> 3875#if ((' ' & 0x0FF) == 0x020) 3876# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3877# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3878#else 3879# define ISLOWER(c) \ 3880 (('a' <= (c) && (c) <= 'i') \ 3881 || ('j' <= (c) && (c) <= 'r') \ 3882 || ('s' <= (c) && (c) <= 'z')) 3883# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3884#endif 3885 3886#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3887int 3888main () 3889{ 3890 int i; 3891 for (i = 0; i < 256; i++) 3892 if (XOR (islower (i), ISLOWER (i)) 3893 || toupper (i) != TOUPPER (i)) 3894 return 2; 3895 return 0; 3896} 3897_ACEOF 3898rm -f conftest$ac_exeext 3899if { (ac_try="$ac_link" 3900case "(($ac_try" in 3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3902 *) ac_try_echo=$ac_try;; 3903esac 3904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3905 (eval "$ac_link") 2>&5 3906 ac_status=$? 3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3909 { (case "(($ac_try" in 3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3911 *) ac_try_echo=$ac_try;; 3912esac 3913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3914 (eval "$ac_try") 2>&5 3915 ac_status=$? 3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3917 (exit $ac_status); }; }; then 3918 : 3919else 3920 echo "$as_me: program exited with status $ac_status" >&5 3921echo "$as_me: failed program was:" >&5 3922sed 's/^/| /' conftest.$ac_ext >&5 3923 3924( exit $ac_status ) 3925ac_cv_header_stdc=no 3926fi 3927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3928fi 3929 3930 3931fi 3932fi 3933{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3934echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3935if test $ac_cv_header_stdc = yes; then 3936 3937cat >>confdefs.h <<\_ACEOF 3938#define STDC_HEADERS 1 3939_ACEOF 3940 3941fi 3942 3943# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3954 inttypes.h stdint.h unistd.h 3955do 3956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3957{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3960 echo $ECHO_N "(cached) $ECHO_C" >&6 3961else 3962 cat >conftest.$ac_ext <<_ACEOF 3963/* confdefs.h. */ 3964_ACEOF 3965cat confdefs.h >>conftest.$ac_ext 3966cat >>conftest.$ac_ext <<_ACEOF 3967/* end confdefs.h. */ 3968$ac_includes_default 3969 3970#include <$ac_header> 3971_ACEOF 3972rm -f conftest.$ac_objext 3973if { (ac_try="$ac_compile" 3974case "(($ac_try" in 3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3976 *) ac_try_echo=$ac_try;; 3977esac 3978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3979 (eval "$ac_compile") 2>conftest.er1 3980 ac_status=$? 3981 grep -v '^ *+' conftest.er1 >conftest.err 3982 rm -f conftest.er1 3983 cat conftest.err >&5 3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3985 (exit $ac_status); } && { 3986 test -z "$ac_c_werror_flag" || 3987 test ! -s conftest.err 3988 } && test -s conftest.$ac_objext; then 3989 eval "$as_ac_Header=yes" 3990else 3991 echo "$as_me: failed program was:" >&5 3992sed 's/^/| /' conftest.$ac_ext >&5 3993 3994 eval "$as_ac_Header=no" 3995fi 3996 3997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3998fi 3999ac_res=`eval echo '${'$as_ac_Header'}'` 4000 { echo "$as_me:$LINENO: result: $ac_res" >&5 4001echo "${ECHO_T}$ac_res" >&6; } 4002if test `eval echo '${'$as_ac_Header'}'` = yes; then 4003 cat >>confdefs.h <<_ACEOF 4004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4005_ACEOF 4006 4007fi 4008 4009done 4010 4011 4012 4013 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4014 4015 4016 #------------------------------------------------------------------------ 4017 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4018 # It makes compiling go faster. (This is only a performance feature.) 4019 #------------------------------------------------------------------------ 4020 4021 if test -z "$no_pipe" -a -n "$GCC"; then 4022 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4023echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4024if test "${tcl_cv_cc_pipe+set}" = set; then 4025 echo $ECHO_N "(cached) $ECHO_C" >&6 4026else 4027 4028 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4029 cat >conftest.$ac_ext <<_ACEOF 4030/* confdefs.h. */ 4031_ACEOF 4032cat confdefs.h >>conftest.$ac_ext 4033cat >>conftest.$ac_ext <<_ACEOF 4034/* end confdefs.h. */ 4035 4036int 4037main () 4038{ 4039 4040 ; 4041 return 0; 4042} 4043_ACEOF 4044rm -f conftest.$ac_objext 4045if { (ac_try="$ac_compile" 4046case "(($ac_try" in 4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4048 *) ac_try_echo=$ac_try;; 4049esac 4050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4051 (eval "$ac_compile") 2>conftest.er1 4052 ac_status=$? 4053 grep -v '^ *+' conftest.er1 >conftest.err 4054 rm -f conftest.er1 4055 cat conftest.err >&5 4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4057 (exit $ac_status); } && { 4058 test -z "$ac_c_werror_flag" || 4059 test ! -s conftest.err 4060 } && test -s conftest.$ac_objext; then 4061 tcl_cv_cc_pipe=yes 4062else 4063 echo "$as_me: failed program was:" >&5 4064sed 's/^/| /' conftest.$ac_ext >&5 4065 4066 tcl_cv_cc_pipe=no 4067fi 4068 4069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4070 CFLAGS=$hold_cflags 4071fi 4072{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4073echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4074 if test $tcl_cv_cc_pipe = yes; then 4075 CFLAGS="$CFLAGS -pipe" 4076 fi 4077 fi 4078 4079 #-------------------------------------------------------------------- 4080 # Common compiler flag setup 4081 #-------------------------------------------------------------------- 4082 4083 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4084echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4085if test "${ac_cv_c_bigendian+set}" = set; then 4086 echo $ECHO_N "(cached) $ECHO_C" >&6 4087else 4088 # See if sys/param.h defines the BYTE_ORDER macro. 4089cat >conftest.$ac_ext <<_ACEOF 4090/* confdefs.h. */ 4091_ACEOF 4092cat confdefs.h >>conftest.$ac_ext 4093cat >>conftest.$ac_ext <<_ACEOF 4094/* end confdefs.h. */ 4095#include <sys/types.h> 4096#include <sys/param.h> 4097 4098int 4099main () 4100{ 4101#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4102 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4103 bogus endian macros 4104#endif 4105 4106 ; 4107 return 0; 4108} 4109_ACEOF 4110rm -f conftest.$ac_objext 4111if { (ac_try="$ac_compile" 4112case "(($ac_try" in 4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4114 *) ac_try_echo=$ac_try;; 4115esac 4116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4117 (eval "$ac_compile") 2>conftest.er1 4118 ac_status=$? 4119 grep -v '^ *+' conftest.er1 >conftest.err 4120 rm -f conftest.er1 4121 cat conftest.err >&5 4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4123 (exit $ac_status); } && { 4124 test -z "$ac_c_werror_flag" || 4125 test ! -s conftest.err 4126 } && test -s conftest.$ac_objext; then 4127 # It does; now see whether it defined to BIG_ENDIAN or not. 4128cat >conftest.$ac_ext <<_ACEOF 4129/* confdefs.h. */ 4130_ACEOF 4131cat confdefs.h >>conftest.$ac_ext 4132cat >>conftest.$ac_ext <<_ACEOF 4133/* end confdefs.h. */ 4134#include <sys/types.h> 4135#include <sys/param.h> 4136 4137int 4138main () 4139{ 4140#if BYTE_ORDER != BIG_ENDIAN 4141 not big endian 4142#endif 4143 4144 ; 4145 return 0; 4146} 4147_ACEOF 4148rm -f conftest.$ac_objext 4149if { (ac_try="$ac_compile" 4150case "(($ac_try" in 4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4152 *) ac_try_echo=$ac_try;; 4153esac 4154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4155 (eval "$ac_compile") 2>conftest.er1 4156 ac_status=$? 4157 grep -v '^ *+' conftest.er1 >conftest.err 4158 rm -f conftest.er1 4159 cat conftest.err >&5 4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4161 (exit $ac_status); } && { 4162 test -z "$ac_c_werror_flag" || 4163 test ! -s conftest.err 4164 } && test -s conftest.$ac_objext; then 4165 ac_cv_c_bigendian=yes 4166else 4167 echo "$as_me: failed program was:" >&5 4168sed 's/^/| /' conftest.$ac_ext >&5 4169 4170 ac_cv_c_bigendian=no 4171fi 4172 4173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4174else 4175 echo "$as_me: failed program was:" >&5 4176sed 's/^/| /' conftest.$ac_ext >&5 4177 4178 # It does not; compile a test program. 4179if test "$cross_compiling" = yes; then 4180 # try to guess the endianness by grepping values into an object file 4181 ac_cv_c_bigendian=unknown 4182 cat >conftest.$ac_ext <<_ACEOF 4183/* confdefs.h. */ 4184_ACEOF 4185cat confdefs.h >>conftest.$ac_ext 4186cat >>conftest.$ac_ext <<_ACEOF 4187/* end confdefs.h. */ 4188short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4189short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4190void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4191short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4192short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4193void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4194int 4195main () 4196{ 4197 _ascii (); _ebcdic (); 4198 ; 4199 return 0; 4200} 4201_ACEOF 4202rm -f conftest.$ac_objext 4203if { (ac_try="$ac_compile" 4204case "(($ac_try" in 4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4206 *) ac_try_echo=$ac_try;; 4207esac 4208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4209 (eval "$ac_compile") 2>conftest.er1 4210 ac_status=$? 4211 grep -v '^ *+' conftest.er1 >conftest.err 4212 rm -f conftest.er1 4213 cat conftest.err >&5 4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4215 (exit $ac_status); } && { 4216 test -z "$ac_c_werror_flag" || 4217 test ! -s conftest.err 4218 } && test -s conftest.$ac_objext; then 4219 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4220 ac_cv_c_bigendian=yes 4221fi 4222if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4223 if test "$ac_cv_c_bigendian" = unknown; then 4224 ac_cv_c_bigendian=no 4225 else 4226 # finding both strings is unlikely to happen, but who knows? 4227 ac_cv_c_bigendian=unknown 4228 fi 4229fi 4230else 4231 echo "$as_me: failed program was:" >&5 4232sed 's/^/| /' conftest.$ac_ext >&5 4233 4234 4235fi 4236 4237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4238else 4239 cat >conftest.$ac_ext <<_ACEOF 4240/* confdefs.h. */ 4241_ACEOF 4242cat confdefs.h >>conftest.$ac_ext 4243cat >>conftest.$ac_ext <<_ACEOF 4244/* end confdefs.h. */ 4245$ac_includes_default 4246int 4247main () 4248{ 4249 4250 /* Are we little or big endian? From Harbison&Steele. */ 4251 union 4252 { 4253 long int l; 4254 char c[sizeof (long int)]; 4255 } u; 4256 u.l = 1; 4257 return u.c[sizeof (long int) - 1] == 1; 4258 4259 ; 4260 return 0; 4261} 4262_ACEOF 4263rm -f conftest$ac_exeext 4264if { (ac_try="$ac_link" 4265case "(($ac_try" in 4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4267 *) ac_try_echo=$ac_try;; 4268esac 4269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4270 (eval "$ac_link") 2>&5 4271 ac_status=$? 4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4274 { (case "(($ac_try" in 4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4276 *) ac_try_echo=$ac_try;; 4277esac 4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4279 (eval "$ac_try") 2>&5 4280 ac_status=$? 4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4282 (exit $ac_status); }; }; then 4283 ac_cv_c_bigendian=no 4284else 4285 echo "$as_me: program exited with status $ac_status" >&5 4286echo "$as_me: failed program was:" >&5 4287sed 's/^/| /' conftest.$ac_ext >&5 4288 4289( exit $ac_status ) 4290ac_cv_c_bigendian=yes 4291fi 4292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4293fi 4294 4295 4296fi 4297 4298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4299fi 4300{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4301echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4302case $ac_cv_c_bigendian in 4303 yes) 4304 4305cat >>confdefs.h <<\_ACEOF 4306#define WORDS_BIGENDIAN 1 4307_ACEOF 4308 ;; 4309 no) 4310 ;; 4311 *) 4312 { { echo "$as_me:$LINENO: error: unknown endianness 4313presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4314echo "$as_me: error: unknown endianness 4315presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4316 { (exit 1); exit 1; }; } ;; 4317esac 4318 4319 if test "${TEA_PLATFORM}" = "unix" ; then 4320 4321 #-------------------------------------------------------------------- 4322 # On a few very rare systems, all of the libm.a stuff is 4323 # already in libc.a. Set compiler flags accordingly. 4324 # Also, Linux requires the "ieee" library for math to work 4325 # right (and it must appear before "-lm"). 4326 #-------------------------------------------------------------------- 4327 4328 { echo "$as_me:$LINENO: checking for sin" >&5 4329echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4330if test "${ac_cv_func_sin+set}" = set; then 4331 echo $ECHO_N "(cached) $ECHO_C" >&6 4332else 4333 cat >conftest.$ac_ext <<_ACEOF 4334/* confdefs.h. */ 4335_ACEOF 4336cat confdefs.h >>conftest.$ac_ext 4337cat >>conftest.$ac_ext <<_ACEOF 4338/* end confdefs.h. */ 4339/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4340 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4341#define sin innocuous_sin 4342 4343/* System header to define __stub macros and hopefully few prototypes, 4344 which can conflict with char sin (); below. 4345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4346 <limits.h> exists even on freestanding compilers. */ 4347 4348#ifdef __STDC__ 4349# include <limits.h> 4350#else 4351# include <assert.h> 4352#endif 4353 4354#undef sin 4355 4356/* Override any GCC internal prototype to avoid an error. 4357 Use char because int might match the return type of a GCC 4358 builtin and then its argument prototype would still apply. */ 4359#ifdef __cplusplus 4360extern "C" 4361#endif 4362char sin (); 4363/* The GNU C library defines this for functions which it implements 4364 to always fail with ENOSYS. Some functions are actually named 4365 something starting with __ and the normal name is an alias. */ 4366#if defined __stub_sin || defined __stub___sin 4367choke me 4368#endif 4369 4370int 4371main () 4372{ 4373return sin (); 4374 ; 4375 return 0; 4376} 4377_ACEOF 4378rm -f conftest.$ac_objext conftest$ac_exeext 4379if { (ac_try="$ac_link" 4380case "(($ac_try" in 4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4382 *) ac_try_echo=$ac_try;; 4383esac 4384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4385 (eval "$ac_link") 2>conftest.er1 4386 ac_status=$? 4387 grep -v '^ *+' conftest.er1 >conftest.err 4388 rm -f conftest.er1 4389 cat conftest.err >&5 4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4391 (exit $ac_status); } && { 4392 test -z "$ac_c_werror_flag" || 4393 test ! -s conftest.err 4394 } && test -s conftest$ac_exeext && 4395 $as_test_x conftest$ac_exeext; then 4396 ac_cv_func_sin=yes 4397else 4398 echo "$as_me: failed program was:" >&5 4399sed 's/^/| /' conftest.$ac_ext >&5 4400 4401 ac_cv_func_sin=no 4402fi 4403 4404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4405 conftest$ac_exeext conftest.$ac_ext 4406fi 4407{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4408echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4409if test $ac_cv_func_sin = yes; then 4410 MATH_LIBS="" 4411else 4412 MATH_LIBS="-lm" 4413fi 4414 4415 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4416echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4417if test "${ac_cv_lib_ieee_main+set}" = set; then 4418 echo $ECHO_N "(cached) $ECHO_C" >&6 4419else 4420 ac_check_lib_save_LIBS=$LIBS 4421LIBS="-lieee $LIBS" 4422cat >conftest.$ac_ext <<_ACEOF 4423/* confdefs.h. */ 4424_ACEOF 4425cat confdefs.h >>conftest.$ac_ext 4426cat >>conftest.$ac_ext <<_ACEOF 4427/* end confdefs.h. */ 4428 4429 4430int 4431main () 4432{ 4433return main (); 4434 ; 4435 return 0; 4436} 4437_ACEOF 4438rm -f conftest.$ac_objext conftest$ac_exeext 4439if { (ac_try="$ac_link" 4440case "(($ac_try" in 4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4442 *) ac_try_echo=$ac_try;; 4443esac 4444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4445 (eval "$ac_link") 2>conftest.er1 4446 ac_status=$? 4447 grep -v '^ *+' conftest.er1 >conftest.err 4448 rm -f conftest.er1 4449 cat conftest.err >&5 4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4451 (exit $ac_status); } && { 4452 test -z "$ac_c_werror_flag" || 4453 test ! -s conftest.err 4454 } && test -s conftest$ac_exeext && 4455 $as_test_x conftest$ac_exeext; then 4456 ac_cv_lib_ieee_main=yes 4457else 4458 echo "$as_me: failed program was:" >&5 4459sed 's/^/| /' conftest.$ac_ext >&5 4460 4461 ac_cv_lib_ieee_main=no 4462fi 4463 4464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4465 conftest$ac_exeext conftest.$ac_ext 4466LIBS=$ac_check_lib_save_LIBS 4467fi 4468{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4469echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4470if test $ac_cv_lib_ieee_main = yes; then 4471 MATH_LIBS="-lieee $MATH_LIBS" 4472fi 4473 4474 4475 #-------------------------------------------------------------------- 4476 # Interactive UNIX requires -linet instead of -lsocket, plus it 4477 # needs net/errno.h to define the socket-related error codes. 4478 #-------------------------------------------------------------------- 4479 4480 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4481echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4482if test "${ac_cv_lib_inet_main+set}" = set; then 4483 echo $ECHO_N "(cached) $ECHO_C" >&6 4484else 4485 ac_check_lib_save_LIBS=$LIBS 4486LIBS="-linet $LIBS" 4487cat >conftest.$ac_ext <<_ACEOF 4488/* confdefs.h. */ 4489_ACEOF 4490cat confdefs.h >>conftest.$ac_ext 4491cat >>conftest.$ac_ext <<_ACEOF 4492/* end confdefs.h. */ 4493 4494 4495int 4496main () 4497{ 4498return main (); 4499 ; 4500 return 0; 4501} 4502_ACEOF 4503rm -f conftest.$ac_objext conftest$ac_exeext 4504if { (ac_try="$ac_link" 4505case "(($ac_try" in 4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4507 *) ac_try_echo=$ac_try;; 4508esac 4509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4510 (eval "$ac_link") 2>conftest.er1 4511 ac_status=$? 4512 grep -v '^ *+' conftest.er1 >conftest.err 4513 rm -f conftest.er1 4514 cat conftest.err >&5 4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4516 (exit $ac_status); } && { 4517 test -z "$ac_c_werror_flag" || 4518 test ! -s conftest.err 4519 } && test -s conftest$ac_exeext && 4520 $as_test_x conftest$ac_exeext; then 4521 ac_cv_lib_inet_main=yes 4522else 4523 echo "$as_me: failed program was:" >&5 4524sed 's/^/| /' conftest.$ac_ext >&5 4525 4526 ac_cv_lib_inet_main=no 4527fi 4528 4529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4530 conftest$ac_exeext conftest.$ac_ext 4531LIBS=$ac_check_lib_save_LIBS 4532fi 4533{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4534echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4535if test $ac_cv_lib_inet_main = yes; then 4536 LIBS="$LIBS -linet" 4537fi 4538 4539 if test "${ac_cv_header_net_errno_h+set}" = set; then 4540 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4541echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4542if test "${ac_cv_header_net_errno_h+set}" = set; then 4543 echo $ECHO_N "(cached) $ECHO_C" >&6 4544fi 4545{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4546echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4547else 4548 # Is the header compilable? 4549{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4550echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4551cat >conftest.$ac_ext <<_ACEOF 4552/* confdefs.h. */ 4553_ACEOF 4554cat confdefs.h >>conftest.$ac_ext 4555cat >>conftest.$ac_ext <<_ACEOF 4556/* end confdefs.h. */ 4557$ac_includes_default 4558#include <net/errno.h> 4559_ACEOF 4560rm -f conftest.$ac_objext 4561if { (ac_try="$ac_compile" 4562case "(($ac_try" in 4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4564 *) ac_try_echo=$ac_try;; 4565esac 4566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4567 (eval "$ac_compile") 2>conftest.er1 4568 ac_status=$? 4569 grep -v '^ *+' conftest.er1 >conftest.err 4570 rm -f conftest.er1 4571 cat conftest.err >&5 4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4573 (exit $ac_status); } && { 4574 test -z "$ac_c_werror_flag" || 4575 test ! -s conftest.err 4576 } && test -s conftest.$ac_objext; then 4577 ac_header_compiler=yes 4578else 4579 echo "$as_me: failed program was:" >&5 4580sed 's/^/| /' conftest.$ac_ext >&5 4581 4582 ac_header_compiler=no 4583fi 4584 4585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4586{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4587echo "${ECHO_T}$ac_header_compiler" >&6; } 4588 4589# Is the header present? 4590{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4591echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4592cat >conftest.$ac_ext <<_ACEOF 4593/* confdefs.h. */ 4594_ACEOF 4595cat confdefs.h >>conftest.$ac_ext 4596cat >>conftest.$ac_ext <<_ACEOF 4597/* end confdefs.h. */ 4598#include <net/errno.h> 4599_ACEOF 4600if { (ac_try="$ac_cpp conftest.$ac_ext" 4601case "(($ac_try" in 4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4603 *) ac_try_echo=$ac_try;; 4604esac 4605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4607 ac_status=$? 4608 grep -v '^ *+' conftest.er1 >conftest.err 4609 rm -f conftest.er1 4610 cat conftest.err >&5 4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4612 (exit $ac_status); } >/dev/null && { 4613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4614 test ! -s conftest.err 4615 }; then 4616 ac_header_preproc=yes 4617else 4618 echo "$as_me: failed program was:" >&5 4619sed 's/^/| /' conftest.$ac_ext >&5 4620 4621 ac_header_preproc=no 4622fi 4623 4624rm -f conftest.err conftest.$ac_ext 4625{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4626echo "${ECHO_T}$ac_header_preproc" >&6; } 4627 4628# So? What about this header? 4629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4630 yes:no: ) 4631 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4632echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4633 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4634echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4635 ac_header_preproc=yes 4636 ;; 4637 no:yes:* ) 4638 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4639echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4640 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4641echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4642 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4643echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4644 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4645echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4646 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4647echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4648 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4649echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4650 4651 ;; 4652esac 4653{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4654echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4655if test "${ac_cv_header_net_errno_h+set}" = set; then 4656 echo $ECHO_N "(cached) $ECHO_C" >&6 4657else 4658 ac_cv_header_net_errno_h=$ac_header_preproc 4659fi 4660{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4661echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4662 4663fi 4664if test $ac_cv_header_net_errno_h = yes; then 4665 4666 4667cat >>confdefs.h <<\_ACEOF 4668#define HAVE_NET_ERRNO_H 1 4669_ACEOF 4670 4671fi 4672 4673 4674 4675 #-------------------------------------------------------------------- 4676 # Check for the existence of the -lsocket and -lnsl libraries. 4677 # The order here is important, so that they end up in the right 4678 # order in the command line generated by make. Here are some 4679 # special considerations: 4680 # 1. Use "connect" and "accept" to check for -lsocket, and 4681 # "gethostbyname" to check for -lnsl. 4682 # 2. Use each function name only once: can't redo a check because 4683 # autoconf caches the results of the last check and won't redo it. 4684 # 3. Use -lnsl and -lsocket only if they supply procedures that 4685 # aren't already present in the normal libraries. This is because 4686 # IRIX 5.2 has libraries, but they aren't needed and they're 4687 # bogus: they goof up name resolution if used. 4688 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4689 # To get around this problem, check for both libraries together 4690 # if -lsocket doesn't work by itself. 4691 #-------------------------------------------------------------------- 4692 4693 tcl_checkBoth=0 4694 { echo "$as_me:$LINENO: checking for connect" >&5 4695echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4696if test "${ac_cv_func_connect+set}" = set; then 4697 echo $ECHO_N "(cached) $ECHO_C" >&6 4698else 4699 cat >conftest.$ac_ext <<_ACEOF 4700/* confdefs.h. */ 4701_ACEOF 4702cat confdefs.h >>conftest.$ac_ext 4703cat >>conftest.$ac_ext <<_ACEOF 4704/* end confdefs.h. */ 4705/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4706 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4707#define connect innocuous_connect 4708 4709/* System header to define __stub macros and hopefully few prototypes, 4710 which can conflict with char connect (); below. 4711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4712 <limits.h> exists even on freestanding compilers. */ 4713 4714#ifdef __STDC__ 4715# include <limits.h> 4716#else 4717# include <assert.h> 4718#endif 4719 4720#undef connect 4721 4722/* Override any GCC internal prototype to avoid an error. 4723 Use char because int might match the return type of a GCC 4724 builtin and then its argument prototype would still apply. */ 4725#ifdef __cplusplus 4726extern "C" 4727#endif 4728char connect (); 4729/* The GNU C library defines this for functions which it implements 4730 to always fail with ENOSYS. Some functions are actually named 4731 something starting with __ and the normal name is an alias. */ 4732#if defined __stub_connect || defined __stub___connect 4733choke me 4734#endif 4735 4736int 4737main () 4738{ 4739return connect (); 4740 ; 4741 return 0; 4742} 4743_ACEOF 4744rm -f conftest.$ac_objext conftest$ac_exeext 4745if { (ac_try="$ac_link" 4746case "(($ac_try" in 4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4748 *) ac_try_echo=$ac_try;; 4749esac 4750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4751 (eval "$ac_link") 2>conftest.er1 4752 ac_status=$? 4753 grep -v '^ *+' conftest.er1 >conftest.err 4754 rm -f conftest.er1 4755 cat conftest.err >&5 4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4757 (exit $ac_status); } && { 4758 test -z "$ac_c_werror_flag" || 4759 test ! -s conftest.err 4760 } && test -s conftest$ac_exeext && 4761 $as_test_x conftest$ac_exeext; then 4762 ac_cv_func_connect=yes 4763else 4764 echo "$as_me: failed program was:" >&5 4765sed 's/^/| /' conftest.$ac_ext >&5 4766 4767 ac_cv_func_connect=no 4768fi 4769 4770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4771 conftest$ac_exeext conftest.$ac_ext 4772fi 4773{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4774echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4775if test $ac_cv_func_connect = yes; then 4776 tcl_checkSocket=0 4777else 4778 tcl_checkSocket=1 4779fi 4780 4781 if test "$tcl_checkSocket" = 1; then 4782 { echo "$as_me:$LINENO: checking for setsockopt" >&5 4783echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 4784if test "${ac_cv_func_setsockopt+set}" = set; then 4785 echo $ECHO_N "(cached) $ECHO_C" >&6 4786else 4787 cat >conftest.$ac_ext <<_ACEOF 4788/* confdefs.h. */ 4789_ACEOF 4790cat confdefs.h >>conftest.$ac_ext 4791cat >>conftest.$ac_ext <<_ACEOF 4792/* end confdefs.h. */ 4793/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4794 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4795#define setsockopt innocuous_setsockopt 4796 4797/* System header to define __stub macros and hopefully few prototypes, 4798 which can conflict with char setsockopt (); below. 4799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4800 <limits.h> exists even on freestanding compilers. */ 4801 4802#ifdef __STDC__ 4803# include <limits.h> 4804#else 4805# include <assert.h> 4806#endif 4807 4808#undef setsockopt 4809 4810/* Override any GCC internal prototype to avoid an error. 4811 Use char because int might match the return type of a GCC 4812 builtin and then its argument prototype would still apply. */ 4813#ifdef __cplusplus 4814extern "C" 4815#endif 4816char setsockopt (); 4817/* The GNU C library defines this for functions which it implements 4818 to always fail with ENOSYS. Some functions are actually named 4819 something starting with __ and the normal name is an alias. */ 4820#if defined __stub_setsockopt || defined __stub___setsockopt 4821choke me 4822#endif 4823 4824int 4825main () 4826{ 4827return setsockopt (); 4828 ; 4829 return 0; 4830} 4831_ACEOF 4832rm -f conftest.$ac_objext conftest$ac_exeext 4833if { (ac_try="$ac_link" 4834case "(($ac_try" in 4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4836 *) ac_try_echo=$ac_try;; 4837esac 4838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4839 (eval "$ac_link") 2>conftest.er1 4840 ac_status=$? 4841 grep -v '^ *+' conftest.er1 >conftest.err 4842 rm -f conftest.er1 4843 cat conftest.err >&5 4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4845 (exit $ac_status); } && { 4846 test -z "$ac_c_werror_flag" || 4847 test ! -s conftest.err 4848 } && test -s conftest$ac_exeext && 4849 $as_test_x conftest$ac_exeext; then 4850 ac_cv_func_setsockopt=yes 4851else 4852 echo "$as_me: failed program was:" >&5 4853sed 's/^/| /' conftest.$ac_ext >&5 4854 4855 ac_cv_func_setsockopt=no 4856fi 4857 4858rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4859 conftest$ac_exeext conftest.$ac_ext 4860fi 4861{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4862echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 4863if test $ac_cv_func_setsockopt = yes; then 4864 : 4865else 4866 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4867echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 4868if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4869 echo $ECHO_N "(cached) $ECHO_C" >&6 4870else 4871 ac_check_lib_save_LIBS=$LIBS 4872LIBS="-lsocket $LIBS" 4873cat >conftest.$ac_ext <<_ACEOF 4874/* confdefs.h. */ 4875_ACEOF 4876cat confdefs.h >>conftest.$ac_ext 4877cat >>conftest.$ac_ext <<_ACEOF 4878/* end confdefs.h. */ 4879 4880/* Override any GCC internal prototype to avoid an error. 4881 Use char because int might match the return type of a GCC 4882 builtin and then its argument prototype would still apply. */ 4883#ifdef __cplusplus 4884extern "C" 4885#endif 4886char setsockopt (); 4887int 4888main () 4889{ 4890return setsockopt (); 4891 ; 4892 return 0; 4893} 4894_ACEOF 4895rm -f conftest.$ac_objext conftest$ac_exeext 4896if { (ac_try="$ac_link" 4897case "(($ac_try" in 4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4899 *) ac_try_echo=$ac_try;; 4900esac 4901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4902 (eval "$ac_link") 2>conftest.er1 4903 ac_status=$? 4904 grep -v '^ *+' conftest.er1 >conftest.err 4905 rm -f conftest.er1 4906 cat conftest.err >&5 4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4908 (exit $ac_status); } && { 4909 test -z "$ac_c_werror_flag" || 4910 test ! -s conftest.err 4911 } && test -s conftest$ac_exeext && 4912 $as_test_x conftest$ac_exeext; then 4913 ac_cv_lib_socket_setsockopt=yes 4914else 4915 echo "$as_me: failed program was:" >&5 4916sed 's/^/| /' conftest.$ac_ext >&5 4917 4918 ac_cv_lib_socket_setsockopt=no 4919fi 4920 4921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4922 conftest$ac_exeext conftest.$ac_ext 4923LIBS=$ac_check_lib_save_LIBS 4924fi 4925{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4926echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 4927if test $ac_cv_lib_socket_setsockopt = yes; then 4928 LIBS="$LIBS -lsocket" 4929else 4930 tcl_checkBoth=1 4931fi 4932 4933fi 4934 4935 fi 4936 if test "$tcl_checkBoth" = 1; then 4937 tk_oldLibs=$LIBS 4938 LIBS="$LIBS -lsocket -lnsl" 4939 { echo "$as_me:$LINENO: checking for accept" >&5 4940echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 4941if test "${ac_cv_func_accept+set}" = set; then 4942 echo $ECHO_N "(cached) $ECHO_C" >&6 4943else 4944 cat >conftest.$ac_ext <<_ACEOF 4945/* confdefs.h. */ 4946_ACEOF 4947cat confdefs.h >>conftest.$ac_ext 4948cat >>conftest.$ac_ext <<_ACEOF 4949/* end confdefs.h. */ 4950/* Define accept to an innocuous variant, in case <limits.h> declares accept. 4951 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4952#define accept innocuous_accept 4953 4954/* System header to define __stub macros and hopefully few prototypes, 4955 which can conflict with char accept (); below. 4956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4957 <limits.h> exists even on freestanding compilers. */ 4958 4959#ifdef __STDC__ 4960# include <limits.h> 4961#else 4962# include <assert.h> 4963#endif 4964 4965#undef accept 4966 4967/* Override any GCC internal prototype to avoid an error. 4968 Use char because int might match the return type of a GCC 4969 builtin and then its argument prototype would still apply. */ 4970#ifdef __cplusplus 4971extern "C" 4972#endif 4973char accept (); 4974/* The GNU C library defines this for functions which it implements 4975 to always fail with ENOSYS. Some functions are actually named 4976 something starting with __ and the normal name is an alias. */ 4977#if defined __stub_accept || defined __stub___accept 4978choke me 4979#endif 4980 4981int 4982main () 4983{ 4984return accept (); 4985 ; 4986 return 0; 4987} 4988_ACEOF 4989rm -f conftest.$ac_objext conftest$ac_exeext 4990if { (ac_try="$ac_link" 4991case "(($ac_try" in 4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4993 *) ac_try_echo=$ac_try;; 4994esac 4995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4996 (eval "$ac_link") 2>conftest.er1 4997 ac_status=$? 4998 grep -v '^ *+' conftest.er1 >conftest.err 4999 rm -f conftest.er1 5000 cat conftest.err >&5 5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5002 (exit $ac_status); } && { 5003 test -z "$ac_c_werror_flag" || 5004 test ! -s conftest.err 5005 } && test -s conftest$ac_exeext && 5006 $as_test_x conftest$ac_exeext; then 5007 ac_cv_func_accept=yes 5008else 5009 echo "$as_me: failed program was:" >&5 5010sed 's/^/| /' conftest.$ac_ext >&5 5011 5012 ac_cv_func_accept=no 5013fi 5014 5015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5016 conftest$ac_exeext conftest.$ac_ext 5017fi 5018{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5019echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5020if test $ac_cv_func_accept = yes; then 5021 tcl_checkNsl=0 5022else 5023 LIBS=$tk_oldLibs 5024fi 5025 5026 fi 5027 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5028echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5029if test "${ac_cv_func_gethostbyname+set}" = set; then 5030 echo $ECHO_N "(cached) $ECHO_C" >&6 5031else 5032 cat >conftest.$ac_ext <<_ACEOF 5033/* confdefs.h. */ 5034_ACEOF 5035cat confdefs.h >>conftest.$ac_ext 5036cat >>conftest.$ac_ext <<_ACEOF 5037/* end confdefs.h. */ 5038/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5039 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5040#define gethostbyname innocuous_gethostbyname 5041 5042/* System header to define __stub macros and hopefully few prototypes, 5043 which can conflict with char gethostbyname (); below. 5044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5045 <limits.h> exists even on freestanding compilers. */ 5046 5047#ifdef __STDC__ 5048# include <limits.h> 5049#else 5050# include <assert.h> 5051#endif 5052 5053#undef gethostbyname 5054 5055/* Override any GCC internal prototype to avoid an error. 5056 Use char because int might match the return type of a GCC 5057 builtin and then its argument prototype would still apply. */ 5058#ifdef __cplusplus 5059extern "C" 5060#endif 5061char gethostbyname (); 5062/* The GNU C library defines this for functions which it implements 5063 to always fail with ENOSYS. Some functions are actually named 5064 something starting with __ and the normal name is an alias. */ 5065#if defined __stub_gethostbyname || defined __stub___gethostbyname 5066choke me 5067#endif 5068 5069int 5070main () 5071{ 5072return gethostbyname (); 5073 ; 5074 return 0; 5075} 5076_ACEOF 5077rm -f conftest.$ac_objext conftest$ac_exeext 5078if { (ac_try="$ac_link" 5079case "(($ac_try" in 5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5081 *) ac_try_echo=$ac_try;; 5082esac 5083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5084 (eval "$ac_link") 2>conftest.er1 5085 ac_status=$? 5086 grep -v '^ *+' conftest.er1 >conftest.err 5087 rm -f conftest.er1 5088 cat conftest.err >&5 5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5090 (exit $ac_status); } && { 5091 test -z "$ac_c_werror_flag" || 5092 test ! -s conftest.err 5093 } && test -s conftest$ac_exeext && 5094 $as_test_x conftest$ac_exeext; then 5095 ac_cv_func_gethostbyname=yes 5096else 5097 echo "$as_me: failed program was:" >&5 5098sed 's/^/| /' conftest.$ac_ext >&5 5099 5100 ac_cv_func_gethostbyname=no 5101fi 5102 5103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5104 conftest$ac_exeext conftest.$ac_ext 5105fi 5106{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5107echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5108if test $ac_cv_func_gethostbyname = yes; then 5109 : 5110else 5111 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5112echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5113if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5114 echo $ECHO_N "(cached) $ECHO_C" >&6 5115else 5116 ac_check_lib_save_LIBS=$LIBS 5117LIBS="-lnsl $LIBS" 5118cat >conftest.$ac_ext <<_ACEOF 5119/* confdefs.h. */ 5120_ACEOF 5121cat confdefs.h >>conftest.$ac_ext 5122cat >>conftest.$ac_ext <<_ACEOF 5123/* end confdefs.h. */ 5124 5125/* Override any GCC internal prototype to avoid an error. 5126 Use char because int might match the return type of a GCC 5127 builtin and then its argument prototype would still apply. */ 5128#ifdef __cplusplus 5129extern "C" 5130#endif 5131char gethostbyname (); 5132int 5133main () 5134{ 5135return gethostbyname (); 5136 ; 5137 return 0; 5138} 5139_ACEOF 5140rm -f conftest.$ac_objext conftest$ac_exeext 5141if { (ac_try="$ac_link" 5142case "(($ac_try" in 5143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5144 *) ac_try_echo=$ac_try;; 5145esac 5146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5147 (eval "$ac_link") 2>conftest.er1 5148 ac_status=$? 5149 grep -v '^ *+' conftest.er1 >conftest.err 5150 rm -f conftest.er1 5151 cat conftest.err >&5 5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5153 (exit $ac_status); } && { 5154 test -z "$ac_c_werror_flag" || 5155 test ! -s conftest.err 5156 } && test -s conftest$ac_exeext && 5157 $as_test_x conftest$ac_exeext; then 5158 ac_cv_lib_nsl_gethostbyname=yes 5159else 5160 echo "$as_me: failed program was:" >&5 5161sed 's/^/| /' conftest.$ac_ext >&5 5162 5163 ac_cv_lib_nsl_gethostbyname=no 5164fi 5165 5166rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5167 conftest$ac_exeext conftest.$ac_ext 5168LIBS=$ac_check_lib_save_LIBS 5169fi 5170{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5171echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5172if test $ac_cv_lib_nsl_gethostbyname = yes; then 5173 LIBS="$LIBS -lnsl" 5174fi 5175 5176fi 5177 5178 5179 # TEA specific: Don't perform the eval of the libraries here because 5180 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5181 5182 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5183 5184 5185 5186 5187 { echo "$as_me:$LINENO: checking dirent.h" >&5 5188echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5189if test "${tcl_cv_dirent_h+set}" = set; then 5190 echo $ECHO_N "(cached) $ECHO_C" >&6 5191else 5192 5193 cat >conftest.$ac_ext <<_ACEOF 5194/* confdefs.h. */ 5195_ACEOF 5196cat confdefs.h >>conftest.$ac_ext 5197cat >>conftest.$ac_ext <<_ACEOF 5198/* end confdefs.h. */ 5199#include <sys/types.h> 5200#include <dirent.h> 5201int 5202main () 5203{ 5204 5205#ifndef _POSIX_SOURCE 5206# ifdef __Lynx__ 5207 /* 5208 * Generate compilation error to make the test fail: Lynx headers 5209 * are only valid if really in the POSIX environment. 5210 */ 5211 5212 missing_procedure(); 5213# endif 5214#endif 5215DIR *d; 5216struct dirent *entryPtr; 5217char *p; 5218d = opendir("foobar"); 5219entryPtr = readdir(d); 5220p = entryPtr->d_name; 5221closedir(d); 5222 5223 ; 5224 return 0; 5225} 5226_ACEOF 5227rm -f conftest.$ac_objext conftest$ac_exeext 5228if { (ac_try="$ac_link" 5229case "(($ac_try" in 5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5231 *) ac_try_echo=$ac_try;; 5232esac 5233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5234 (eval "$ac_link") 2>conftest.er1 5235 ac_status=$? 5236 grep -v '^ *+' conftest.er1 >conftest.err 5237 rm -f conftest.er1 5238 cat conftest.err >&5 5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5240 (exit $ac_status); } && { 5241 test -z "$ac_c_werror_flag" || 5242 test ! -s conftest.err 5243 } && test -s conftest$ac_exeext && 5244 $as_test_x conftest$ac_exeext; then 5245 tcl_cv_dirent_h=yes 5246else 5247 echo "$as_me: failed program was:" >&5 5248sed 's/^/| /' conftest.$ac_ext >&5 5249 5250 tcl_cv_dirent_h=no 5251fi 5252 5253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5254 conftest$ac_exeext conftest.$ac_ext 5255fi 5256{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5257echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5258 5259 if test $tcl_cv_dirent_h = no; then 5260 5261cat >>confdefs.h <<\_ACEOF 5262#define NO_DIRENT_H 1 5263_ACEOF 5264 5265 fi 5266 5267 # TEA specific: 5268 if test "${ac_cv_header_errno_h+set}" = set; then 5269 { echo "$as_me:$LINENO: checking for errno.h" >&5 5270echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5271if test "${ac_cv_header_errno_h+set}" = set; then 5272 echo $ECHO_N "(cached) $ECHO_C" >&6 5273fi 5274{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5275echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5276else 5277 # Is the header compilable? 5278{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5279echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5280cat >conftest.$ac_ext <<_ACEOF 5281/* confdefs.h. */ 5282_ACEOF 5283cat confdefs.h >>conftest.$ac_ext 5284cat >>conftest.$ac_ext <<_ACEOF 5285/* end confdefs.h. */ 5286$ac_includes_default 5287#include <errno.h> 5288_ACEOF 5289rm -f conftest.$ac_objext 5290if { (ac_try="$ac_compile" 5291case "(($ac_try" in 5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5293 *) ac_try_echo=$ac_try;; 5294esac 5295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5296 (eval "$ac_compile") 2>conftest.er1 5297 ac_status=$? 5298 grep -v '^ *+' conftest.er1 >conftest.err 5299 rm -f conftest.er1 5300 cat conftest.err >&5 5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5302 (exit $ac_status); } && { 5303 test -z "$ac_c_werror_flag" || 5304 test ! -s conftest.err 5305 } && test -s conftest.$ac_objext; then 5306 ac_header_compiler=yes 5307else 5308 echo "$as_me: failed program was:" >&5 5309sed 's/^/| /' conftest.$ac_ext >&5 5310 5311 ac_header_compiler=no 5312fi 5313 5314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5315{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5316echo "${ECHO_T}$ac_header_compiler" >&6; } 5317 5318# Is the header present? 5319{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5320echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5321cat >conftest.$ac_ext <<_ACEOF 5322/* confdefs.h. */ 5323_ACEOF 5324cat confdefs.h >>conftest.$ac_ext 5325cat >>conftest.$ac_ext <<_ACEOF 5326/* end confdefs.h. */ 5327#include <errno.h> 5328_ACEOF 5329if { (ac_try="$ac_cpp conftest.$ac_ext" 5330case "(($ac_try" in 5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5332 *) ac_try_echo=$ac_try;; 5333esac 5334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5336 ac_status=$? 5337 grep -v '^ *+' conftest.er1 >conftest.err 5338 rm -f conftest.er1 5339 cat conftest.err >&5 5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5341 (exit $ac_status); } >/dev/null && { 5342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5343 test ! -s conftest.err 5344 }; then 5345 ac_header_preproc=yes 5346else 5347 echo "$as_me: failed program was:" >&5 5348sed 's/^/| /' conftest.$ac_ext >&5 5349 5350 ac_header_preproc=no 5351fi 5352 5353rm -f conftest.err conftest.$ac_ext 5354{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5355echo "${ECHO_T}$ac_header_preproc" >&6; } 5356 5357# So? What about this header? 5358case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5359 yes:no: ) 5360 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5361echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5362 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5363echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5364 ac_header_preproc=yes 5365 ;; 5366 no:yes:* ) 5367 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5368echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5369 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5370echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5371 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5372echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5373 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5374echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5375 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5376echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5377 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5378echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5379 5380 ;; 5381esac 5382{ echo "$as_me:$LINENO: checking for errno.h" >&5 5383echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5384if test "${ac_cv_header_errno_h+set}" = set; then 5385 echo $ECHO_N "(cached) $ECHO_C" >&6 5386else 5387 ac_cv_header_errno_h=$ac_header_preproc 5388fi 5389{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5390echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5391 5392fi 5393if test $ac_cv_header_errno_h = yes; then 5394 : 5395else 5396 5397cat >>confdefs.h <<\_ACEOF 5398#define NO_ERRNO_H 1 5399_ACEOF 5400 5401fi 5402 5403 5404 if test "${ac_cv_header_float_h+set}" = set; then 5405 { echo "$as_me:$LINENO: checking for float.h" >&5 5406echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5407if test "${ac_cv_header_float_h+set}" = set; then 5408 echo $ECHO_N "(cached) $ECHO_C" >&6 5409fi 5410{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5411echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5412else 5413 # Is the header compilable? 5414{ echo "$as_me:$LINENO: checking float.h usability" >&5 5415echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5416cat >conftest.$ac_ext <<_ACEOF 5417/* confdefs.h. */ 5418_ACEOF 5419cat confdefs.h >>conftest.$ac_ext 5420cat >>conftest.$ac_ext <<_ACEOF 5421/* end confdefs.h. */ 5422$ac_includes_default 5423#include <float.h> 5424_ACEOF 5425rm -f conftest.$ac_objext 5426if { (ac_try="$ac_compile" 5427case "(($ac_try" in 5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5429 *) ac_try_echo=$ac_try;; 5430esac 5431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5432 (eval "$ac_compile") 2>conftest.er1 5433 ac_status=$? 5434 grep -v '^ *+' conftest.er1 >conftest.err 5435 rm -f conftest.er1 5436 cat conftest.err >&5 5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5438 (exit $ac_status); } && { 5439 test -z "$ac_c_werror_flag" || 5440 test ! -s conftest.err 5441 } && test -s conftest.$ac_objext; then 5442 ac_header_compiler=yes 5443else 5444 echo "$as_me: failed program was:" >&5 5445sed 's/^/| /' conftest.$ac_ext >&5 5446 5447 ac_header_compiler=no 5448fi 5449 5450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5451{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5452echo "${ECHO_T}$ac_header_compiler" >&6; } 5453 5454# Is the header present? 5455{ echo "$as_me:$LINENO: checking float.h presence" >&5 5456echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5457cat >conftest.$ac_ext <<_ACEOF 5458/* confdefs.h. */ 5459_ACEOF 5460cat confdefs.h >>conftest.$ac_ext 5461cat >>conftest.$ac_ext <<_ACEOF 5462/* end confdefs.h. */ 5463#include <float.h> 5464_ACEOF 5465if { (ac_try="$ac_cpp conftest.$ac_ext" 5466case "(($ac_try" in 5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5468 *) ac_try_echo=$ac_try;; 5469esac 5470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5472 ac_status=$? 5473 grep -v '^ *+' conftest.er1 >conftest.err 5474 rm -f conftest.er1 5475 cat conftest.err >&5 5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5477 (exit $ac_status); } >/dev/null && { 5478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5479 test ! -s conftest.err 5480 }; then 5481 ac_header_preproc=yes 5482else 5483 echo "$as_me: failed program was:" >&5 5484sed 's/^/| /' conftest.$ac_ext >&5 5485 5486 ac_header_preproc=no 5487fi 5488 5489rm -f conftest.err conftest.$ac_ext 5490{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5491echo "${ECHO_T}$ac_header_preproc" >&6; } 5492 5493# So? What about this header? 5494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5495 yes:no: ) 5496 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5497echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5498 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5499echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5500 ac_header_preproc=yes 5501 ;; 5502 no:yes:* ) 5503 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5504echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5505 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5506echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5507 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5508echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5509 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5510echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5511 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5512echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5513 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5514echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5515 5516 ;; 5517esac 5518{ echo "$as_me:$LINENO: checking for float.h" >&5 5519echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5520if test "${ac_cv_header_float_h+set}" = set; then 5521 echo $ECHO_N "(cached) $ECHO_C" >&6 5522else 5523 ac_cv_header_float_h=$ac_header_preproc 5524fi 5525{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5526echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5527 5528fi 5529if test $ac_cv_header_float_h = yes; then 5530 : 5531else 5532 5533cat >>confdefs.h <<\_ACEOF 5534#define NO_FLOAT_H 1 5535_ACEOF 5536 5537fi 5538 5539 5540 if test "${ac_cv_header_values_h+set}" = set; then 5541 { echo "$as_me:$LINENO: checking for values.h" >&5 5542echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5543if test "${ac_cv_header_values_h+set}" = set; then 5544 echo $ECHO_N "(cached) $ECHO_C" >&6 5545fi 5546{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5547echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5548else 5549 # Is the header compilable? 5550{ echo "$as_me:$LINENO: checking values.h usability" >&5 5551echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5552cat >conftest.$ac_ext <<_ACEOF 5553/* confdefs.h. */ 5554_ACEOF 5555cat confdefs.h >>conftest.$ac_ext 5556cat >>conftest.$ac_ext <<_ACEOF 5557/* end confdefs.h. */ 5558$ac_includes_default 5559#include <values.h> 5560_ACEOF 5561rm -f conftest.$ac_objext 5562if { (ac_try="$ac_compile" 5563case "(($ac_try" in 5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5565 *) ac_try_echo=$ac_try;; 5566esac 5567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5568 (eval "$ac_compile") 2>conftest.er1 5569 ac_status=$? 5570 grep -v '^ *+' conftest.er1 >conftest.err 5571 rm -f conftest.er1 5572 cat conftest.err >&5 5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5574 (exit $ac_status); } && { 5575 test -z "$ac_c_werror_flag" || 5576 test ! -s conftest.err 5577 } && test -s conftest.$ac_objext; then 5578 ac_header_compiler=yes 5579else 5580 echo "$as_me: failed program was:" >&5 5581sed 's/^/| /' conftest.$ac_ext >&5 5582 5583 ac_header_compiler=no 5584fi 5585 5586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5587{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5588echo "${ECHO_T}$ac_header_compiler" >&6; } 5589 5590# Is the header present? 5591{ echo "$as_me:$LINENO: checking values.h presence" >&5 5592echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5593cat >conftest.$ac_ext <<_ACEOF 5594/* confdefs.h. */ 5595_ACEOF 5596cat confdefs.h >>conftest.$ac_ext 5597cat >>conftest.$ac_ext <<_ACEOF 5598/* end confdefs.h. */ 5599#include <values.h> 5600_ACEOF 5601if { (ac_try="$ac_cpp conftest.$ac_ext" 5602case "(($ac_try" in 5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5604 *) ac_try_echo=$ac_try;; 5605esac 5606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5608 ac_status=$? 5609 grep -v '^ *+' conftest.er1 >conftest.err 5610 rm -f conftest.er1 5611 cat conftest.err >&5 5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5613 (exit $ac_status); } >/dev/null && { 5614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5615 test ! -s conftest.err 5616 }; then 5617 ac_header_preproc=yes 5618else 5619 echo "$as_me: failed program was:" >&5 5620sed 's/^/| /' conftest.$ac_ext >&5 5621 5622 ac_header_preproc=no 5623fi 5624 5625rm -f conftest.err conftest.$ac_ext 5626{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5627echo "${ECHO_T}$ac_header_preproc" >&6; } 5628 5629# So? What about this header? 5630case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5631 yes:no: ) 5632 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5633echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5634 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5635echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5636 ac_header_preproc=yes 5637 ;; 5638 no:yes:* ) 5639 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5640echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5641 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5642echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5643 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5644echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5645 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5646echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5647 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5648echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5649 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5650echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5651 5652 ;; 5653esac 5654{ echo "$as_me:$LINENO: checking for values.h" >&5 5655echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5656if test "${ac_cv_header_values_h+set}" = set; then 5657 echo $ECHO_N "(cached) $ECHO_C" >&6 5658else 5659 ac_cv_header_values_h=$ac_header_preproc 5660fi 5661{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5662echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5663 5664fi 5665if test $ac_cv_header_values_h = yes; then 5666 : 5667else 5668 5669cat >>confdefs.h <<\_ACEOF 5670#define NO_VALUES_H 1 5671_ACEOF 5672 5673fi 5674 5675 5676 if test "${ac_cv_header_limits_h+set}" = set; then 5677 { echo "$as_me:$LINENO: checking for limits.h" >&5 5678echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5679if test "${ac_cv_header_limits_h+set}" = set; then 5680 echo $ECHO_N "(cached) $ECHO_C" >&6 5681fi 5682{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5683echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5684else 5685 # Is the header compilable? 5686{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5687echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5688cat >conftest.$ac_ext <<_ACEOF 5689/* confdefs.h. */ 5690_ACEOF 5691cat confdefs.h >>conftest.$ac_ext 5692cat >>conftest.$ac_ext <<_ACEOF 5693/* end confdefs.h. */ 5694$ac_includes_default 5695#include <limits.h> 5696_ACEOF 5697rm -f conftest.$ac_objext 5698if { (ac_try="$ac_compile" 5699case "(($ac_try" in 5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5701 *) ac_try_echo=$ac_try;; 5702esac 5703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5704 (eval "$ac_compile") 2>conftest.er1 5705 ac_status=$? 5706 grep -v '^ *+' conftest.er1 >conftest.err 5707 rm -f conftest.er1 5708 cat conftest.err >&5 5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5710 (exit $ac_status); } && { 5711 test -z "$ac_c_werror_flag" || 5712 test ! -s conftest.err 5713 } && test -s conftest.$ac_objext; then 5714 ac_header_compiler=yes 5715else 5716 echo "$as_me: failed program was:" >&5 5717sed 's/^/| /' conftest.$ac_ext >&5 5718 5719 ac_header_compiler=no 5720fi 5721 5722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5723{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5724echo "${ECHO_T}$ac_header_compiler" >&6; } 5725 5726# Is the header present? 5727{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5728echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5729cat >conftest.$ac_ext <<_ACEOF 5730/* confdefs.h. */ 5731_ACEOF 5732cat confdefs.h >>conftest.$ac_ext 5733cat >>conftest.$ac_ext <<_ACEOF 5734/* end confdefs.h. */ 5735#include <limits.h> 5736_ACEOF 5737if { (ac_try="$ac_cpp conftest.$ac_ext" 5738case "(($ac_try" in 5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5740 *) ac_try_echo=$ac_try;; 5741esac 5742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5744 ac_status=$? 5745 grep -v '^ *+' conftest.er1 >conftest.err 5746 rm -f conftest.er1 5747 cat conftest.err >&5 5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5749 (exit $ac_status); } >/dev/null && { 5750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5751 test ! -s conftest.err 5752 }; then 5753 ac_header_preproc=yes 5754else 5755 echo "$as_me: failed program was:" >&5 5756sed 's/^/| /' conftest.$ac_ext >&5 5757 5758 ac_header_preproc=no 5759fi 5760 5761rm -f conftest.err conftest.$ac_ext 5762{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5763echo "${ECHO_T}$ac_header_preproc" >&6; } 5764 5765# So? What about this header? 5766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5767 yes:no: ) 5768 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5769echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5770 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5771echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5772 ac_header_preproc=yes 5773 ;; 5774 no:yes:* ) 5775 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5776echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5777 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5778echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5779 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5780echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5781 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5782echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5783 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5784echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5785 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5786echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5787 5788 ;; 5789esac 5790{ echo "$as_me:$LINENO: checking for limits.h" >&5 5791echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5792if test "${ac_cv_header_limits_h+set}" = set; then 5793 echo $ECHO_N "(cached) $ECHO_C" >&6 5794else 5795 ac_cv_header_limits_h=$ac_header_preproc 5796fi 5797{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5798echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5799 5800fi 5801if test $ac_cv_header_limits_h = yes; then 5802 5803cat >>confdefs.h <<\_ACEOF 5804#define HAVE_LIMITS_H 1 5805_ACEOF 5806 5807else 5808 5809cat >>confdefs.h <<\_ACEOF 5810#define NO_LIMITS_H 1 5811_ACEOF 5812 5813fi 5814 5815 5816 if test "${ac_cv_header_stdlib_h+set}" = set; then 5817 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 5818echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5819if test "${ac_cv_header_stdlib_h+set}" = set; then 5820 echo $ECHO_N "(cached) $ECHO_C" >&6 5821fi 5822{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5823echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5824else 5825 # Is the header compilable? 5826{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5827echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 5828cat >conftest.$ac_ext <<_ACEOF 5829/* confdefs.h. */ 5830_ACEOF 5831cat confdefs.h >>conftest.$ac_ext 5832cat >>conftest.$ac_ext <<_ACEOF 5833/* end confdefs.h. */ 5834$ac_includes_default 5835#include <stdlib.h> 5836_ACEOF 5837rm -f conftest.$ac_objext 5838if { (ac_try="$ac_compile" 5839case "(($ac_try" in 5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5841 *) ac_try_echo=$ac_try;; 5842esac 5843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5844 (eval "$ac_compile") 2>conftest.er1 5845 ac_status=$? 5846 grep -v '^ *+' conftest.er1 >conftest.err 5847 rm -f conftest.er1 5848 cat conftest.err >&5 5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5850 (exit $ac_status); } && { 5851 test -z "$ac_c_werror_flag" || 5852 test ! -s conftest.err 5853 } && test -s conftest.$ac_objext; then 5854 ac_header_compiler=yes 5855else 5856 echo "$as_me: failed program was:" >&5 5857sed 's/^/| /' conftest.$ac_ext >&5 5858 5859 ac_header_compiler=no 5860fi 5861 5862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5863{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5864echo "${ECHO_T}$ac_header_compiler" >&6; } 5865 5866# Is the header present? 5867{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5868echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 5869cat >conftest.$ac_ext <<_ACEOF 5870/* confdefs.h. */ 5871_ACEOF 5872cat confdefs.h >>conftest.$ac_ext 5873cat >>conftest.$ac_ext <<_ACEOF 5874/* end confdefs.h. */ 5875#include <stdlib.h> 5876_ACEOF 5877if { (ac_try="$ac_cpp conftest.$ac_ext" 5878case "(($ac_try" in 5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5880 *) ac_try_echo=$ac_try;; 5881esac 5882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5884 ac_status=$? 5885 grep -v '^ *+' conftest.er1 >conftest.err 5886 rm -f conftest.er1 5887 cat conftest.err >&5 5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5889 (exit $ac_status); } >/dev/null && { 5890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5891 test ! -s conftest.err 5892 }; then 5893 ac_header_preproc=yes 5894else 5895 echo "$as_me: failed program was:" >&5 5896sed 's/^/| /' conftest.$ac_ext >&5 5897 5898 ac_header_preproc=no 5899fi 5900 5901rm -f conftest.err conftest.$ac_ext 5902{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5903echo "${ECHO_T}$ac_header_preproc" >&6; } 5904 5905# So? What about this header? 5906case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5907 yes:no: ) 5908 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5909echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5910 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5911echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5912 ac_header_preproc=yes 5913 ;; 5914 no:yes:* ) 5915 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5916echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5917 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5918echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5919 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5920echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5921 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5922echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5923 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5924echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5925 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5926echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5927 5928 ;; 5929esac 5930{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 5931echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5932if test "${ac_cv_header_stdlib_h+set}" = set; then 5933 echo $ECHO_N "(cached) $ECHO_C" >&6 5934else 5935 ac_cv_header_stdlib_h=$ac_header_preproc 5936fi 5937{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5938echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5939 5940fi 5941if test $ac_cv_header_stdlib_h = yes; then 5942 tcl_ok=1 5943else 5944 tcl_ok=0 5945fi 5946 5947 5948 cat >conftest.$ac_ext <<_ACEOF 5949/* confdefs.h. */ 5950_ACEOF 5951cat confdefs.h >>conftest.$ac_ext 5952cat >>conftest.$ac_ext <<_ACEOF 5953/* end confdefs.h. */ 5954#include <stdlib.h> 5955 5956_ACEOF 5957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5958 $EGREP "strtol" >/dev/null 2>&1; then 5959 : 5960else 5961 tcl_ok=0 5962fi 5963rm -f -r conftest* 5964 5965 cat >conftest.$ac_ext <<_ACEOF 5966/* confdefs.h. */ 5967_ACEOF 5968cat confdefs.h >>conftest.$ac_ext 5969cat >>conftest.$ac_ext <<_ACEOF 5970/* end confdefs.h. */ 5971#include <stdlib.h> 5972 5973_ACEOF 5974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5975 $EGREP "strtoul" >/dev/null 2>&1; then 5976 : 5977else 5978 tcl_ok=0 5979fi 5980rm -f -r conftest* 5981 5982 cat >conftest.$ac_ext <<_ACEOF 5983/* confdefs.h. */ 5984_ACEOF 5985cat confdefs.h >>conftest.$ac_ext 5986cat >>conftest.$ac_ext <<_ACEOF 5987/* end confdefs.h. */ 5988#include <stdlib.h> 5989 5990_ACEOF 5991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5992 $EGREP "strtod" >/dev/null 2>&1; then 5993 : 5994else 5995 tcl_ok=0 5996fi 5997rm -f -r conftest* 5998 5999 if test $tcl_ok = 0; then 6000 6001cat >>confdefs.h <<\_ACEOF 6002#define NO_STDLIB_H 1 6003_ACEOF 6004 6005 fi 6006 if test "${ac_cv_header_string_h+set}" = set; then 6007 { echo "$as_me:$LINENO: checking for string.h" >&5 6008echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6009if test "${ac_cv_header_string_h+set}" = set; then 6010 echo $ECHO_N "(cached) $ECHO_C" >&6 6011fi 6012{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6013echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6014else 6015 # Is the header compilable? 6016{ echo "$as_me:$LINENO: checking string.h usability" >&5 6017echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6018cat >conftest.$ac_ext <<_ACEOF 6019/* confdefs.h. */ 6020_ACEOF 6021cat confdefs.h >>conftest.$ac_ext 6022cat >>conftest.$ac_ext <<_ACEOF 6023/* end confdefs.h. */ 6024$ac_includes_default 6025#include <string.h> 6026_ACEOF 6027rm -f conftest.$ac_objext 6028if { (ac_try="$ac_compile" 6029case "(($ac_try" in 6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6031 *) ac_try_echo=$ac_try;; 6032esac 6033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6034 (eval "$ac_compile") 2>conftest.er1 6035 ac_status=$? 6036 grep -v '^ *+' conftest.er1 >conftest.err 6037 rm -f conftest.er1 6038 cat conftest.err >&5 6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6040 (exit $ac_status); } && { 6041 test -z "$ac_c_werror_flag" || 6042 test ! -s conftest.err 6043 } && test -s conftest.$ac_objext; then 6044 ac_header_compiler=yes 6045else 6046 echo "$as_me: failed program was:" >&5 6047sed 's/^/| /' conftest.$ac_ext >&5 6048 6049 ac_header_compiler=no 6050fi 6051 6052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6053{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6054echo "${ECHO_T}$ac_header_compiler" >&6; } 6055 6056# Is the header present? 6057{ echo "$as_me:$LINENO: checking string.h presence" >&5 6058echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6059cat >conftest.$ac_ext <<_ACEOF 6060/* confdefs.h. */ 6061_ACEOF 6062cat confdefs.h >>conftest.$ac_ext 6063cat >>conftest.$ac_ext <<_ACEOF 6064/* end confdefs.h. */ 6065#include <string.h> 6066_ACEOF 6067if { (ac_try="$ac_cpp conftest.$ac_ext" 6068case "(($ac_try" in 6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6070 *) ac_try_echo=$ac_try;; 6071esac 6072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6074 ac_status=$? 6075 grep -v '^ *+' conftest.er1 >conftest.err 6076 rm -f conftest.er1 6077 cat conftest.err >&5 6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6079 (exit $ac_status); } >/dev/null && { 6080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6081 test ! -s conftest.err 6082 }; then 6083 ac_header_preproc=yes 6084else 6085 echo "$as_me: failed program was:" >&5 6086sed 's/^/| /' conftest.$ac_ext >&5 6087 6088 ac_header_preproc=no 6089fi 6090 6091rm -f conftest.err conftest.$ac_ext 6092{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6093echo "${ECHO_T}$ac_header_preproc" >&6; } 6094 6095# So? What about this header? 6096case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6097 yes:no: ) 6098 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6099echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6100 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6101echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6102 ac_header_preproc=yes 6103 ;; 6104 no:yes:* ) 6105 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6106echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6107 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6108echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6109 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6110echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6111 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6112echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6113 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6114echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6115 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6116echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6117 6118 ;; 6119esac 6120{ echo "$as_me:$LINENO: checking for string.h" >&5 6121echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6122if test "${ac_cv_header_string_h+set}" = set; then 6123 echo $ECHO_N "(cached) $ECHO_C" >&6 6124else 6125 ac_cv_header_string_h=$ac_header_preproc 6126fi 6127{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6128echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6129 6130fi 6131if test $ac_cv_header_string_h = yes; then 6132 tcl_ok=1 6133else 6134 tcl_ok=0 6135fi 6136 6137 6138 cat >conftest.$ac_ext <<_ACEOF 6139/* confdefs.h. */ 6140_ACEOF 6141cat confdefs.h >>conftest.$ac_ext 6142cat >>conftest.$ac_ext <<_ACEOF 6143/* end confdefs.h. */ 6144#include <string.h> 6145 6146_ACEOF 6147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6148 $EGREP "strstr" >/dev/null 2>&1; then 6149 : 6150else 6151 tcl_ok=0 6152fi 6153rm -f -r conftest* 6154 6155 cat >conftest.$ac_ext <<_ACEOF 6156/* confdefs.h. */ 6157_ACEOF 6158cat confdefs.h >>conftest.$ac_ext 6159cat >>conftest.$ac_ext <<_ACEOF 6160/* end confdefs.h. */ 6161#include <string.h> 6162 6163_ACEOF 6164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6165 $EGREP "strerror" >/dev/null 2>&1; then 6166 : 6167else 6168 tcl_ok=0 6169fi 6170rm -f -r conftest* 6171 6172 6173 # See also memmove check below for a place where NO_STRING_H can be 6174 # set and why. 6175 6176 if test $tcl_ok = 0; then 6177 6178cat >>confdefs.h <<\_ACEOF 6179#define NO_STRING_H 1 6180_ACEOF 6181 6182 fi 6183 6184 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6185 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6186echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6187if test "${ac_cv_header_sys_wait_h+set}" = set; then 6188 echo $ECHO_N "(cached) $ECHO_C" >&6 6189fi 6190{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6191echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6192else 6193 # Is the header compilable? 6194{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6195echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6196cat >conftest.$ac_ext <<_ACEOF 6197/* confdefs.h. */ 6198_ACEOF 6199cat confdefs.h >>conftest.$ac_ext 6200cat >>conftest.$ac_ext <<_ACEOF 6201/* end confdefs.h. */ 6202$ac_includes_default 6203#include <sys/wait.h> 6204_ACEOF 6205rm -f conftest.$ac_objext 6206if { (ac_try="$ac_compile" 6207case "(($ac_try" in 6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6209 *) ac_try_echo=$ac_try;; 6210esac 6211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6212 (eval "$ac_compile") 2>conftest.er1 6213 ac_status=$? 6214 grep -v '^ *+' conftest.er1 >conftest.err 6215 rm -f conftest.er1 6216 cat conftest.err >&5 6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6218 (exit $ac_status); } && { 6219 test -z "$ac_c_werror_flag" || 6220 test ! -s conftest.err 6221 } && test -s conftest.$ac_objext; then 6222 ac_header_compiler=yes 6223else 6224 echo "$as_me: failed program was:" >&5 6225sed 's/^/| /' conftest.$ac_ext >&5 6226 6227 ac_header_compiler=no 6228fi 6229 6230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6231{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6232echo "${ECHO_T}$ac_header_compiler" >&6; } 6233 6234# Is the header present? 6235{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6236echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6237cat >conftest.$ac_ext <<_ACEOF 6238/* confdefs.h. */ 6239_ACEOF 6240cat confdefs.h >>conftest.$ac_ext 6241cat >>conftest.$ac_ext <<_ACEOF 6242/* end confdefs.h. */ 6243#include <sys/wait.h> 6244_ACEOF 6245if { (ac_try="$ac_cpp conftest.$ac_ext" 6246case "(($ac_try" in 6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6248 *) ac_try_echo=$ac_try;; 6249esac 6250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6252 ac_status=$? 6253 grep -v '^ *+' conftest.er1 >conftest.err 6254 rm -f conftest.er1 6255 cat conftest.err >&5 6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6257 (exit $ac_status); } >/dev/null && { 6258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6259 test ! -s conftest.err 6260 }; then 6261 ac_header_preproc=yes 6262else 6263 echo "$as_me: failed program was:" >&5 6264sed 's/^/| /' conftest.$ac_ext >&5 6265 6266 ac_header_preproc=no 6267fi 6268 6269rm -f conftest.err conftest.$ac_ext 6270{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6271echo "${ECHO_T}$ac_header_preproc" >&6; } 6272 6273# So? What about this header? 6274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6275 yes:no: ) 6276 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6277echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6278 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6279echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6280 ac_header_preproc=yes 6281 ;; 6282 no:yes:* ) 6283 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6284echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6285 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6286echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6287 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6288echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6289 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6290echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6291 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6292echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6293 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6294echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6295 6296 ;; 6297esac 6298{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6299echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6300if test "${ac_cv_header_sys_wait_h+set}" = set; then 6301 echo $ECHO_N "(cached) $ECHO_C" >&6 6302else 6303 ac_cv_header_sys_wait_h=$ac_header_preproc 6304fi 6305{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6306echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6307 6308fi 6309if test $ac_cv_header_sys_wait_h = yes; then 6310 : 6311else 6312 6313cat >>confdefs.h <<\_ACEOF 6314#define NO_SYS_WAIT_H 1 6315_ACEOF 6316 6317fi 6318 6319 6320 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6321 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6322echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6323if test "${ac_cv_header_dlfcn_h+set}" = set; then 6324 echo $ECHO_N "(cached) $ECHO_C" >&6 6325fi 6326{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6327echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6328else 6329 # Is the header compilable? 6330{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6331echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6332cat >conftest.$ac_ext <<_ACEOF 6333/* confdefs.h. */ 6334_ACEOF 6335cat confdefs.h >>conftest.$ac_ext 6336cat >>conftest.$ac_ext <<_ACEOF 6337/* end confdefs.h. */ 6338$ac_includes_default 6339#include <dlfcn.h> 6340_ACEOF 6341rm -f conftest.$ac_objext 6342if { (ac_try="$ac_compile" 6343case "(($ac_try" in 6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6345 *) ac_try_echo=$ac_try;; 6346esac 6347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6348 (eval "$ac_compile") 2>conftest.er1 6349 ac_status=$? 6350 grep -v '^ *+' conftest.er1 >conftest.err 6351 rm -f conftest.er1 6352 cat conftest.err >&5 6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6354 (exit $ac_status); } && { 6355 test -z "$ac_c_werror_flag" || 6356 test ! -s conftest.err 6357 } && test -s conftest.$ac_objext; then 6358 ac_header_compiler=yes 6359else 6360 echo "$as_me: failed program was:" >&5 6361sed 's/^/| /' conftest.$ac_ext >&5 6362 6363 ac_header_compiler=no 6364fi 6365 6366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6367{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6368echo "${ECHO_T}$ac_header_compiler" >&6; } 6369 6370# Is the header present? 6371{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6372echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6373cat >conftest.$ac_ext <<_ACEOF 6374/* confdefs.h. */ 6375_ACEOF 6376cat confdefs.h >>conftest.$ac_ext 6377cat >>conftest.$ac_ext <<_ACEOF 6378/* end confdefs.h. */ 6379#include <dlfcn.h> 6380_ACEOF 6381if { (ac_try="$ac_cpp conftest.$ac_ext" 6382case "(($ac_try" in 6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6384 *) ac_try_echo=$ac_try;; 6385esac 6386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6388 ac_status=$? 6389 grep -v '^ *+' conftest.er1 >conftest.err 6390 rm -f conftest.er1 6391 cat conftest.err >&5 6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6393 (exit $ac_status); } >/dev/null && { 6394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6395 test ! -s conftest.err 6396 }; then 6397 ac_header_preproc=yes 6398else 6399 echo "$as_me: failed program was:" >&5 6400sed 's/^/| /' conftest.$ac_ext >&5 6401 6402 ac_header_preproc=no 6403fi 6404 6405rm -f conftest.err conftest.$ac_ext 6406{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6407echo "${ECHO_T}$ac_header_preproc" >&6; } 6408 6409# So? What about this header? 6410case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6411 yes:no: ) 6412 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6413echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6414 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6415echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6416 ac_header_preproc=yes 6417 ;; 6418 no:yes:* ) 6419 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6420echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6421 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6422echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6423 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6424echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6425 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6426echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6427 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6428echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6429 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6430echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6431 6432 ;; 6433esac 6434{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6435echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6436if test "${ac_cv_header_dlfcn_h+set}" = set; then 6437 echo $ECHO_N "(cached) $ECHO_C" >&6 6438else 6439 ac_cv_header_dlfcn_h=$ac_header_preproc 6440fi 6441{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6442echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6443 6444fi 6445if test $ac_cv_header_dlfcn_h = yes; then 6446 : 6447else 6448 6449cat >>confdefs.h <<\_ACEOF 6450#define NO_DLFCN_H 1 6451_ACEOF 6452 6453fi 6454 6455 6456 6457 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6458 6459for ac_header in sys/param.h 6460do 6461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6463 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6466 echo $ECHO_N "(cached) $ECHO_C" >&6 6467fi 6468ac_res=`eval echo '${'$as_ac_Header'}'` 6469 { echo "$as_me:$LINENO: result: $ac_res" >&5 6470echo "${ECHO_T}$ac_res" >&6; } 6471else 6472 # Is the header compilable? 6473{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6474echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6475cat >conftest.$ac_ext <<_ACEOF 6476/* confdefs.h. */ 6477_ACEOF 6478cat confdefs.h >>conftest.$ac_ext 6479cat >>conftest.$ac_ext <<_ACEOF 6480/* end confdefs.h. */ 6481$ac_includes_default 6482#include <$ac_header> 6483_ACEOF 6484rm -f conftest.$ac_objext 6485if { (ac_try="$ac_compile" 6486case "(($ac_try" in 6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6488 *) ac_try_echo=$ac_try;; 6489esac 6490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6491 (eval "$ac_compile") 2>conftest.er1 6492 ac_status=$? 6493 grep -v '^ *+' conftest.er1 >conftest.err 6494 rm -f conftest.er1 6495 cat conftest.err >&5 6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6497 (exit $ac_status); } && { 6498 test -z "$ac_c_werror_flag" || 6499 test ! -s conftest.err 6500 } && test -s conftest.$ac_objext; then 6501 ac_header_compiler=yes 6502else 6503 echo "$as_me: failed program was:" >&5 6504sed 's/^/| /' conftest.$ac_ext >&5 6505 6506 ac_header_compiler=no 6507fi 6508 6509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6510{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6511echo "${ECHO_T}$ac_header_compiler" >&6; } 6512 6513# Is the header present? 6514{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6515echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6516cat >conftest.$ac_ext <<_ACEOF 6517/* confdefs.h. */ 6518_ACEOF 6519cat confdefs.h >>conftest.$ac_ext 6520cat >>conftest.$ac_ext <<_ACEOF 6521/* end confdefs.h. */ 6522#include <$ac_header> 6523_ACEOF 6524if { (ac_try="$ac_cpp conftest.$ac_ext" 6525case "(($ac_try" in 6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6527 *) ac_try_echo=$ac_try;; 6528esac 6529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6531 ac_status=$? 6532 grep -v '^ *+' conftest.er1 >conftest.err 6533 rm -f conftest.er1 6534 cat conftest.err >&5 6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6536 (exit $ac_status); } >/dev/null && { 6537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6538 test ! -s conftest.err 6539 }; then 6540 ac_header_preproc=yes 6541else 6542 echo "$as_me: failed program was:" >&5 6543sed 's/^/| /' conftest.$ac_ext >&5 6544 6545 ac_header_preproc=no 6546fi 6547 6548rm -f conftest.err conftest.$ac_ext 6549{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6550echo "${ECHO_T}$ac_header_preproc" >&6; } 6551 6552# So? What about this header? 6553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6554 yes:no: ) 6555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6559 ac_header_preproc=yes 6560 ;; 6561 no:yes:* ) 6562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6565echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6569echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6574 6575 ;; 6576esac 6577{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6580 echo $ECHO_N "(cached) $ECHO_C" >&6 6581else 6582 eval "$as_ac_Header=\$ac_header_preproc" 6583fi 6584ac_res=`eval echo '${'$as_ac_Header'}'` 6585 { echo "$as_me:$LINENO: result: $ac_res" >&5 6586echo "${ECHO_T}$ac_res" >&6; } 6587 6588fi 6589if test `eval echo '${'$as_ac_Header'}'` = yes; then 6590 cat >>confdefs.h <<_ACEOF 6591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6592_ACEOF 6593 6594fi 6595 6596done 6597 6598 6599 # Let the user call this, because if it triggers, they will 6600 # need a compat/strtod.c that is correct. Users can also 6601 # use Tcl_GetDouble(FromObj) instead. 6602 #TEA_BUGGY_STRTOD 6603 fi 6604 6605 6606#-------------------------------------------------------------------- 6607# Check if building with optional Gdbm package. This will declare 6608# GDBM_CFLAGS and GDBM_LIBS variables. 6609#-------------------------------------------------------------------- 6610 6611 6612 6613# Check whether --with-gdbm was given. 6614if test "${with_gdbm+set}" = set; then 6615 withval=$with_gdbm; \ 6616 with_gdbm=${withval} 6617fi 6618 6619 6620 if test x"${with_gdbm}" != x; then 6621 6622 { echo "$as_me:$LINENO: checking for GNU gdbm library" >&5 6623echo $ECHO_N "checking for GNU gdbm library... $ECHO_C" >&6; } 6624 6625 if test "${ac_cv_c_gdbm+set}" = set; then 6626 echo $ECHO_N "(cached) $ECHO_C" >&6 6627else 6628 6629 if test x"${with_gdbm}" != x -a "${with_gdbm}" != "yes"; then 6630 if test -f "${with_gdbm}/gdbm.h" -a x"`ls ${with_gdbm}/libgdbm* 2>/dev/null`" != x; then 6631 ac_cv_c_gdbm=`(cd ${with_gdbm}; pwd)` 6632 gincdir=$ac_cv_c_gdbm 6633 glibdir=$ac_cv_c_gdbm 6634 { echo "$as_me:$LINENO: result: found in $glibdir" >&5 6635echo "${ECHO_T}found in $glibdir" >&6; } 6636 else 6637 { { echo "$as_me:$LINENO: error: ${with_gdbm} directory doesn't contain gdbm library" >&5 6638echo "$as_me: error: ${with_gdbm} directory doesn't contain gdbm library" >&2;} 6639 { (exit 1); exit 1; }; } 6640 fi 6641 fi 6642 6643fi 6644 6645 if test x"${gincdir}" = x -o x"${glibdir}" = x; then 6646 for i in \ 6647 `ls -d ${exec_prefix}/lib 2>/dev/null`\ 6648 `ls -d ${prefix}/lib 2>/dev/null`\ 6649 `ls -d /usr/local/lib 2>/dev/null`\ 6650 `ls -d /usr/lib 2>/dev/null` ; do 6651 if test x"`ls $i/libgdbm* 2>/dev/null`" != x ; then 6652 glibdir=`(cd $i; pwd)` 6653 break 6654 fi 6655 done 6656 for i in \ 6657 `ls -d ${prefix}/include 2>/dev/null`\ 6658 `ls -d /usr/local/include 2>/dev/null`\ 6659 `ls -d /usr/include 2>/dev/null` ; do 6660 if test -f "$i/gdbm.h" ; then 6661 gincdir=`(cd $i; pwd)` 6662 break 6663 fi 6664 done 6665 if test x"$glibdir" = x -o x"$gincdir" = x ; then 6666 { { echo "$as_me:$LINENO: error: none found" >&5 6667echo "$as_me: error: none found" >&2;} 6668 { (exit 1); exit 1; }; } 6669 else 6670 { echo "$as_me:$LINENO: result: found in $glibdir, includes in $gincdir" >&5 6671echo "${ECHO_T}found in $glibdir, includes in $gincdir" >&6; } 6672 cat >>confdefs.h <<\_ACEOF 6673#define HAVE_GDBM 1 6674_ACEOF 6675 6676 GDBM_CFLAGS="-I\"$gincdir\"" 6677 GDBM_LIBS="-L\"$glibdir\" -lgdbm" 6678 fi 6679 fi 6680 fi 6681 6682 6683#-------------------------------------------------------------------- 6684# Locate the AOLserver dir for compilation as AOLserver module. 6685# This will declare AOL_INCLUDES, AOL_LIBS and define NS_AOLSERVER. 6686#-------------------------------------------------------------------- 6687 6688 6689 { echo "$as_me:$LINENO: checking for AOLserver configuration" >&5 6690echo $ECHO_N "checking for AOLserver configuration... $ECHO_C" >&6; } 6691 6692# Check whether --with-aol was given. 6693if test "${with_aol+set}" = set; then 6694 withval=$with_aol; \ 6695 with_aolserver=${withval} 6696fi 6697 6698 6699 if test "${ac_cv_c_aolserver+set}" = set; then 6700 echo $ECHO_N "(cached) $ECHO_C" >&6 6701else 6702 6703 if test x"${with_aolserver}" != x ; then 6704 if test -f "${with_aolserver}/include/ns.h" ; then 6705 ac_cv_c_aolserver=`(cd ${with_aolserver}; pwd)` 6706 else 6707 { { echo "$as_me:$LINENO: error: ${with_aolserver} directory doesn't contain ns.h" >&5 6708echo "$as_me: error: ${with_aolserver} directory doesn't contain ns.h" >&2;} 6709 { (exit 1); exit 1; }; } 6710 fi 6711 fi 6712 6713fi 6714 6715 if test x"${ac_cv_c_aolserver}" = x ; then 6716 { echo "$as_me:$LINENO: result: none found" >&5 6717echo "${ECHO_T}none found" >&6; } 6718 else 6719 AOL_DIR=${ac_cv_c_aolserver} 6720 { echo "$as_me:$LINENO: result: found AOLserver in $AOL_DIR" >&5 6721echo "${ECHO_T}found AOLserver in $AOL_DIR" >&6; } 6722 AOL_INCLUDES="-I\"${AOL_DIR}/include\"" 6723 if test "`uname -s`" = Darwin ; then 6724 aollibs=`ls ${AOL_DIR}/lib/libns* 2>/dev/null` 6725 if test x"$aollibs" != x ; then 6726 AOL_LIBS="-L\"${AOL_DIR}/lib\" -lnsd -lnsthread" 6727 fi 6728 fi 6729 cat >>confdefs.h <<\_ACEOF 6730#define NS_AOLSERVER 1 6731_ACEOF 6732 6733 fi 6734 6735 6736#----------------------------------------------------------------------- 6737# __CHANGE__ 6738# Specify the C source files to compile in TEA_ADD_SOURCES, 6739# public headers that need to be installed in TEA_ADD_HEADERS, 6740# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6741# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6742# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6743# and PKG_TCL_SOURCES. 6744#----------------------------------------------------------------------- 6745 6746 6747 vars="generic/threadCmd.c \ 6748 generic/threadSvCmd.c \ 6749 generic/threadSpCmd.c \ 6750 generic/threadPoolCmd.c \ 6751 generic/psGdbm.c \ 6752 generic/threadSvListCmd.c \ 6753 generic/threadSvKeylistCmd.c \ 6754 generic/tclXkeylist.c \ 6755" 6756 for i in $vars; do 6757 case $i in 6758 \$*) 6759 # allow $-var names 6760 PKG_SOURCES="$PKG_SOURCES $i" 6761 PKG_OBJECTS="$PKG_OBJECTS $i" 6762 ;; 6763 *) 6764 # check for existence - allows for generic/win/unix VPATH 6765 # To add more dirs here (like 'src'), you have to update VPATH 6766 # in Makefile.in as well 6767 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6768 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6769 -a ! -f "${srcdir}/macosx/$i" \ 6770 ; then 6771 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6772echo "$as_me: error: could not find source file '$i'" >&2;} 6773 { (exit 1); exit 1; }; } 6774 fi 6775 PKG_SOURCES="$PKG_SOURCES $i" 6776 # this assumes it is in a VPATH dir 6777 i=`basename $i` 6778 # handle user calling this before or after TEA_SETUP_COMPILER 6779 if test x"${OBJEXT}" != x ; then 6780 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6781 else 6782 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6783 fi 6784 PKG_OBJECTS="$PKG_OBJECTS $j" 6785 ;; 6786 esac 6787 done 6788 6789 6790 6791 6792 6793 vars="" 6794 for i in $vars; do 6795 # check for existence, be strict because it is installed 6796 if test ! -f "${srcdir}/$i" ; then 6797 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6798echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6799 { (exit 1); exit 1; }; } 6800 fi 6801 PKG_HEADERS="$PKG_HEADERS $i" 6802 done 6803 6804 6805 6806 vars="${AOL_INCLUDES}" 6807 for i in $vars; do 6808 PKG_INCLUDES="$PKG_INCLUDES $i" 6809 done 6810 6811 6812 6813 vars="${GDBM_LIBS} ${AOL_LIBS}" 6814 for i in $vars; do 6815 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6816 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6817 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6818 fi 6819 PKG_LIBS="$PKG_LIBS $i" 6820 done 6821 6822 6823 6824 PKG_CFLAGS="$PKG_CFLAGS ${GDBM_CFLAGS}" 6825 6826 6827 6828 vars="" 6829 for i in $vars; do 6830 # check for existence - allows for generic/win/unix VPATH 6831 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6832 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6833 -a ! -f "${srcdir}/macosx/$i" \ 6834 ; then 6835 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6836echo "$as_me: error: could not find stub source file '$i'" >&2;} 6837 { (exit 1); exit 1; }; } 6838 fi 6839 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6840 # this assumes it is in a VPATH dir 6841 i=`basename $i` 6842 # handle user calling this before or after TEA_SETUP_COMPILER 6843 if test x"${OBJEXT}" != x ; then 6844 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6845 else 6846 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6847 fi 6848 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6849 done 6850 6851 6852 6853 6854 vars="lib/ttrace.tcl" 6855 for i in $vars; do 6856 # check for existence, be strict because it is installed 6857 if test ! -f "${srcdir}/$i" ; then 6858 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6859echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6860 { (exit 1); exit 1; }; } 6861 fi 6862 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6863 done 6864 6865 6866 6867#-------------------------------------------------------------------- 6868# __CHANGE__ 6869# A few miscellaneous platform-specific items: 6870# 6871# Define a special symbol for Windows (BUILD_sample in this case) so 6872# that we create the export library with the dll. 6873# 6874# Windows creates a few extra files that need to be cleaned up. 6875# You can add more files to clean if your extension creates any extra 6876# files. 6877# 6878# TEA_ADD_* any platform specific compiler/build info here. 6879#-------------------------------------------------------------------- 6880 6881if test "${TEA_PLATFORM}" = "windows" ; then 6882 cat >>confdefs.h <<\_ACEOF 6883#define BUILD_thread 1 6884_ACEOF 6885 6886 CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch" 6887 6888 vars="win/threadWin.c" 6889 for i in $vars; do 6890 case $i in 6891 \$*) 6892 # allow $-var names 6893 PKG_SOURCES="$PKG_SOURCES $i" 6894 PKG_OBJECTS="$PKG_OBJECTS $i" 6895 ;; 6896 *) 6897 # check for existence - allows for generic/win/unix VPATH 6898 # To add more dirs here (like 'src'), you have to update VPATH 6899 # in Makefile.in as well 6900 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6901 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6902 -a ! -f "${srcdir}/macosx/$i" \ 6903 ; then 6904 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6905echo "$as_me: error: could not find source file '$i'" >&2;} 6906 { (exit 1); exit 1; }; } 6907 fi 6908 PKG_SOURCES="$PKG_SOURCES $i" 6909 # this assumes it is in a VPATH dir 6910 i=`basename $i` 6911 # handle user calling this before or after TEA_SETUP_COMPILER 6912 if test x"${OBJEXT}" != x ; then 6913 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6914 else 6915 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6916 fi 6917 PKG_OBJECTS="$PKG_OBJECTS $j" 6918 ;; 6919 esac 6920 done 6921 6922 6923 6924 6925 vars="-I\"$(${CYGPATH} ${srcdir}/win)\"" 6926 for i in $vars; do 6927 PKG_INCLUDES="$PKG_INCLUDES $i" 6928 done 6929 6930 6931else 6932 6933 vars="unix/threadUnix.c" 6934 for i in $vars; do 6935 case $i in 6936 \$*) 6937 # allow $-var names 6938 PKG_SOURCES="$PKG_SOURCES $i" 6939 PKG_OBJECTS="$PKG_OBJECTS $i" 6940 ;; 6941 *) 6942 # check for existence - allows for generic/win/unix VPATH 6943 # To add more dirs here (like 'src'), you have to update VPATH 6944 # in Makefile.in as well 6945 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6946 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6947 -a ! -f "${srcdir}/macosx/$i" \ 6948 ; then 6949 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6950echo "$as_me: error: could not find source file '$i'" >&2;} 6951 { (exit 1); exit 1; }; } 6952 fi 6953 PKG_SOURCES="$PKG_SOURCES $i" 6954 # this assumes it is in a VPATH dir 6955 i=`basename $i` 6956 # handle user calling this before or after TEA_SETUP_COMPILER 6957 if test x"${OBJEXT}" != x ; then 6958 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6959 else 6960 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6961 fi 6962 PKG_OBJECTS="$PKG_OBJECTS $j" 6963 ;; 6964 esac 6965 done 6966 6967 6968 6969fi 6970 6971 6972#-------------------------------------------------------------------- 6973# __CHANGE__ 6974# Choose which headers you need. Extension authors should try very 6975# hard to only rely on the Tcl public header files. Internal headers 6976# contain private data structures and are subject to change without 6977# notice. 6978# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 6979#-------------------------------------------------------------------- 6980 6981 6982 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6983echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6984 6985 6986# Check whether --with-tclinclude was given. 6987if test "${with_tclinclude+set}" = set; then 6988 withval=$with_tclinclude; with_tclinclude=${withval} 6989fi 6990 6991 6992 if test "${ac_cv_c_tclh+set}" = set; then 6993 echo $ECHO_N "(cached) $ECHO_C" >&6 6994else 6995 6996 # Use the value from --with-tclinclude, if it was given 6997 6998 if test x"${with_tclinclude}" != x ; then 6999 if test -f "${with_tclinclude}/tcl.h" ; then 7000 ac_cv_c_tclh=${with_tclinclude} 7001 else 7002 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 7003echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 7004 { (exit 1); exit 1; }; } 7005 fi 7006 else 7007 list="" 7008 if test "`uname -s`" = "Darwin"; then 7009 # If Tcl was built as a framework, attempt to use 7010 # the framework's Headers directory 7011 case ${TCL_DEFS} in 7012 *TCL_FRAMEWORK*) 7013 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 7014 ;; 7015 esac 7016 fi 7017 7018 # Look in the source dir only if Tcl is not installed, 7019 # and in that situation, look there before installed locations. 7020 if test -f "${TCL_BIN_DIR}/Makefile" ; then 7021 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 7022 fi 7023 7024 # Check order: pkg --prefix location, Tcl's --prefix location, 7025 # relative to directory of tclConfig.sh. 7026 7027 eval "temp_includedir=${includedir}" 7028 list="$list \ 7029 `ls -d ${temp_includedir} 2>/dev/null` \ 7030 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7031 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7032 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7033 list="$list /usr/local/include /usr/include" 7034 if test x"${TCL_INCLUDE_SPEC}" != x ; then 7035 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7036 list="$list `ls -d ${d} 2>/dev/null`" 7037 fi 7038 fi 7039 for i in $list ; do 7040 if test -f "$i/tcl.h" ; then 7041 ac_cv_c_tclh=$i 7042 break 7043 fi 7044 done 7045 fi 7046 7047fi 7048 7049 7050 # Print a message based on how we determined the include path 7051 7052 if test x"${ac_cv_c_tclh}" = x ; then 7053 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 7054echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 7055 { (exit 1); exit 1; }; } 7056 else 7057 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 7058echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 7059 fi 7060 7061 # Convert to a native path and substitute into the output files. 7062 7063 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 7064 7065 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7066 7067 7068 7069#TEA_PRIVATE_TCL_HEADERS 7070 7071#TEA_PUBLIC_TK_HEADERS 7072#TEA_PRIVATE_TK_HEADERS 7073#TEA_PATH_X 7074 7075#-------------------------------------------------------------------- 7076# Check whether --enable-threads or --disable-threads was given. 7077# This auto-enables if Tcl was compiled threaded. 7078#-------------------------------------------------------------------- 7079 7080 7081 # Check whether --enable-threads was given. 7082if test "${enable_threads+set}" = set; then 7083 enableval=$enable_threads; tcl_ok=$enableval 7084else 7085 tcl_ok=yes 7086fi 7087 7088 7089 if test "${enable_threads+set}" = set; then 7090 enableval="$enable_threads" 7091 tcl_ok=$enableval 7092 else 7093 tcl_ok=yes 7094 fi 7095 7096 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 7097 TCL_THREADS=1 7098 7099 if test "${TEA_PLATFORM}" != "windows" ; then 7100 # We are always OK on Windows, so check what this platform wants: 7101 7102 # USE_THREAD_ALLOC tells us to try the special thread-based 7103 # allocator that significantly reduces lock contention 7104 7105cat >>confdefs.h <<\_ACEOF 7106#define USE_THREAD_ALLOC 1 7107_ACEOF 7108 7109 7110cat >>confdefs.h <<\_ACEOF 7111#define _REENTRANT 1 7112_ACEOF 7113 7114 if test "`uname -s`" = "SunOS" ; then 7115 7116cat >>confdefs.h <<\_ACEOF 7117#define _POSIX_PTHREAD_SEMANTICS 1 7118_ACEOF 7119 7120 fi 7121 7122cat >>confdefs.h <<\_ACEOF 7123#define _THREAD_SAFE 1 7124_ACEOF 7125 7126 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 7127echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7128if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 7129 echo $ECHO_N "(cached) $ECHO_C" >&6 7130else 7131 ac_check_lib_save_LIBS=$LIBS 7132LIBS="-lpthread $LIBS" 7133cat >conftest.$ac_ext <<_ACEOF 7134/* confdefs.h. */ 7135_ACEOF 7136cat confdefs.h >>conftest.$ac_ext 7137cat >>conftest.$ac_ext <<_ACEOF 7138/* end confdefs.h. */ 7139 7140/* Override any GCC internal prototype to avoid an error. 7141 Use char because int might match the return type of a GCC 7142 builtin and then its argument prototype would still apply. */ 7143#ifdef __cplusplus 7144extern "C" 7145#endif 7146char pthread_mutex_init (); 7147int 7148main () 7149{ 7150return pthread_mutex_init (); 7151 ; 7152 return 0; 7153} 7154_ACEOF 7155rm -f conftest.$ac_objext conftest$ac_exeext 7156if { (ac_try="$ac_link" 7157case "(($ac_try" in 7158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7159 *) ac_try_echo=$ac_try;; 7160esac 7161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7162 (eval "$ac_link") 2>conftest.er1 7163 ac_status=$? 7164 grep -v '^ *+' conftest.er1 >conftest.err 7165 rm -f conftest.er1 7166 cat conftest.err >&5 7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7168 (exit $ac_status); } && { 7169 test -z "$ac_c_werror_flag" || 7170 test ! -s conftest.err 7171 } && test -s conftest$ac_exeext && 7172 $as_test_x conftest$ac_exeext; then 7173 ac_cv_lib_pthread_pthread_mutex_init=yes 7174else 7175 echo "$as_me: failed program was:" >&5 7176sed 's/^/| /' conftest.$ac_ext >&5 7177 7178 ac_cv_lib_pthread_pthread_mutex_init=no 7179fi 7180 7181rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7182 conftest$ac_exeext conftest.$ac_ext 7183LIBS=$ac_check_lib_save_LIBS 7184fi 7185{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7186echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7187if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7188 tcl_ok=yes 7189else 7190 tcl_ok=no 7191fi 7192 7193 if test "$tcl_ok" = "no"; then 7194 # Check a little harder for __pthread_mutex_init in the same 7195 # library, as some systems hide it there until pthread.h is 7196 # defined. We could alternatively do an AC_TRY_COMPILE with 7197 # pthread.h, but that will work with libpthread really doesn't 7198 # exist, like AIX 4.2. [Bug: 4359] 7199 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7200echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7201if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7202 echo $ECHO_N "(cached) $ECHO_C" >&6 7203else 7204 ac_check_lib_save_LIBS=$LIBS 7205LIBS="-lpthread $LIBS" 7206cat >conftest.$ac_ext <<_ACEOF 7207/* confdefs.h. */ 7208_ACEOF 7209cat confdefs.h >>conftest.$ac_ext 7210cat >>conftest.$ac_ext <<_ACEOF 7211/* end confdefs.h. */ 7212 7213/* Override any GCC internal prototype to avoid an error. 7214 Use char because int might match the return type of a GCC 7215 builtin and then its argument prototype would still apply. */ 7216#ifdef __cplusplus 7217extern "C" 7218#endif 7219char __pthread_mutex_init (); 7220int 7221main () 7222{ 7223return __pthread_mutex_init (); 7224 ; 7225 return 0; 7226} 7227_ACEOF 7228rm -f conftest.$ac_objext conftest$ac_exeext 7229if { (ac_try="$ac_link" 7230case "(($ac_try" in 7231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7232 *) ac_try_echo=$ac_try;; 7233esac 7234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7235 (eval "$ac_link") 2>conftest.er1 7236 ac_status=$? 7237 grep -v '^ *+' conftest.er1 >conftest.err 7238 rm -f conftest.er1 7239 cat conftest.err >&5 7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7241 (exit $ac_status); } && { 7242 test -z "$ac_c_werror_flag" || 7243 test ! -s conftest.err 7244 } && test -s conftest$ac_exeext && 7245 $as_test_x conftest$ac_exeext; then 7246 ac_cv_lib_pthread___pthread_mutex_init=yes 7247else 7248 echo "$as_me: failed program was:" >&5 7249sed 's/^/| /' conftest.$ac_ext >&5 7250 7251 ac_cv_lib_pthread___pthread_mutex_init=no 7252fi 7253 7254rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7255 conftest$ac_exeext conftest.$ac_ext 7256LIBS=$ac_check_lib_save_LIBS 7257fi 7258{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7259echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7260if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7261 tcl_ok=yes 7262else 7263 tcl_ok=no 7264fi 7265 7266 fi 7267 7268 if test "$tcl_ok" = "yes"; then 7269 # The space is needed 7270 THREADS_LIBS=" -lpthread" 7271 else 7272 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7273echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7274if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7275 echo $ECHO_N "(cached) $ECHO_C" >&6 7276else 7277 ac_check_lib_save_LIBS=$LIBS 7278LIBS="-lpthreads $LIBS" 7279cat >conftest.$ac_ext <<_ACEOF 7280/* confdefs.h. */ 7281_ACEOF 7282cat confdefs.h >>conftest.$ac_ext 7283cat >>conftest.$ac_ext <<_ACEOF 7284/* end confdefs.h. */ 7285 7286/* Override any GCC internal prototype to avoid an error. 7287 Use char because int might match the return type of a GCC 7288 builtin and then its argument prototype would still apply. */ 7289#ifdef __cplusplus 7290extern "C" 7291#endif 7292char pthread_mutex_init (); 7293int 7294main () 7295{ 7296return pthread_mutex_init (); 7297 ; 7298 return 0; 7299} 7300_ACEOF 7301rm -f conftest.$ac_objext conftest$ac_exeext 7302if { (ac_try="$ac_link" 7303case "(($ac_try" in 7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7305 *) ac_try_echo=$ac_try;; 7306esac 7307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7308 (eval "$ac_link") 2>conftest.er1 7309 ac_status=$? 7310 grep -v '^ *+' conftest.er1 >conftest.err 7311 rm -f conftest.er1 7312 cat conftest.err >&5 7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7314 (exit $ac_status); } && { 7315 test -z "$ac_c_werror_flag" || 7316 test ! -s conftest.err 7317 } && test -s conftest$ac_exeext && 7318 $as_test_x conftest$ac_exeext; then 7319 ac_cv_lib_pthreads_pthread_mutex_init=yes 7320else 7321 echo "$as_me: failed program was:" >&5 7322sed 's/^/| /' conftest.$ac_ext >&5 7323 7324 ac_cv_lib_pthreads_pthread_mutex_init=no 7325fi 7326 7327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7328 conftest$ac_exeext conftest.$ac_ext 7329LIBS=$ac_check_lib_save_LIBS 7330fi 7331{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7332echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7333if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7334 tcl_ok=yes 7335else 7336 tcl_ok=no 7337fi 7338 7339 if test "$tcl_ok" = "yes"; then 7340 # The space is needed 7341 THREADS_LIBS=" -lpthreads" 7342 else 7343 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7344echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7345if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7346 echo $ECHO_N "(cached) $ECHO_C" >&6 7347else 7348 ac_check_lib_save_LIBS=$LIBS 7349LIBS="-lc $LIBS" 7350cat >conftest.$ac_ext <<_ACEOF 7351/* confdefs.h. */ 7352_ACEOF 7353cat confdefs.h >>conftest.$ac_ext 7354cat >>conftest.$ac_ext <<_ACEOF 7355/* end confdefs.h. */ 7356 7357/* Override any GCC internal prototype to avoid an error. 7358 Use char because int might match the return type of a GCC 7359 builtin and then its argument prototype would still apply. */ 7360#ifdef __cplusplus 7361extern "C" 7362#endif 7363char pthread_mutex_init (); 7364int 7365main () 7366{ 7367return pthread_mutex_init (); 7368 ; 7369 return 0; 7370} 7371_ACEOF 7372rm -f conftest.$ac_objext conftest$ac_exeext 7373if { (ac_try="$ac_link" 7374case "(($ac_try" in 7375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7376 *) ac_try_echo=$ac_try;; 7377esac 7378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7379 (eval "$ac_link") 2>conftest.er1 7380 ac_status=$? 7381 grep -v '^ *+' conftest.er1 >conftest.err 7382 rm -f conftest.er1 7383 cat conftest.err >&5 7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7385 (exit $ac_status); } && { 7386 test -z "$ac_c_werror_flag" || 7387 test ! -s conftest.err 7388 } && test -s conftest$ac_exeext && 7389 $as_test_x conftest$ac_exeext; then 7390 ac_cv_lib_c_pthread_mutex_init=yes 7391else 7392 echo "$as_me: failed program was:" >&5 7393sed 's/^/| /' conftest.$ac_ext >&5 7394 7395 ac_cv_lib_c_pthread_mutex_init=no 7396fi 7397 7398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7399 conftest$ac_exeext conftest.$ac_ext 7400LIBS=$ac_check_lib_save_LIBS 7401fi 7402{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7403echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7404if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7405 tcl_ok=yes 7406else 7407 tcl_ok=no 7408fi 7409 7410 if test "$tcl_ok" = "no"; then 7411 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7412echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7413if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7414 echo $ECHO_N "(cached) $ECHO_C" >&6 7415else 7416 ac_check_lib_save_LIBS=$LIBS 7417LIBS="-lc_r $LIBS" 7418cat >conftest.$ac_ext <<_ACEOF 7419/* confdefs.h. */ 7420_ACEOF 7421cat confdefs.h >>conftest.$ac_ext 7422cat >>conftest.$ac_ext <<_ACEOF 7423/* end confdefs.h. */ 7424 7425/* Override any GCC internal prototype to avoid an error. 7426 Use char because int might match the return type of a GCC 7427 builtin and then its argument prototype would still apply. */ 7428#ifdef __cplusplus 7429extern "C" 7430#endif 7431char pthread_mutex_init (); 7432int 7433main () 7434{ 7435return pthread_mutex_init (); 7436 ; 7437 return 0; 7438} 7439_ACEOF 7440rm -f conftest.$ac_objext conftest$ac_exeext 7441if { (ac_try="$ac_link" 7442case "(($ac_try" in 7443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7444 *) ac_try_echo=$ac_try;; 7445esac 7446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7447 (eval "$ac_link") 2>conftest.er1 7448 ac_status=$? 7449 grep -v '^ *+' conftest.er1 >conftest.err 7450 rm -f conftest.er1 7451 cat conftest.err >&5 7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7453 (exit $ac_status); } && { 7454 test -z "$ac_c_werror_flag" || 7455 test ! -s conftest.err 7456 } && test -s conftest$ac_exeext && 7457 $as_test_x conftest$ac_exeext; then 7458 ac_cv_lib_c_r_pthread_mutex_init=yes 7459else 7460 echo "$as_me: failed program was:" >&5 7461sed 's/^/| /' conftest.$ac_ext >&5 7462 7463 ac_cv_lib_c_r_pthread_mutex_init=no 7464fi 7465 7466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7467 conftest$ac_exeext conftest.$ac_ext 7468LIBS=$ac_check_lib_save_LIBS 7469fi 7470{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7471echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7472if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7473 tcl_ok=yes 7474else 7475 tcl_ok=no 7476fi 7477 7478 if test "$tcl_ok" = "yes"; then 7479 # The space is needed 7480 THREADS_LIBS=" -pthread" 7481 else 7482 TCL_THREADS=0 7483 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7484echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7485 fi 7486 fi 7487 fi 7488 fi 7489 fi 7490 else 7491 TCL_THREADS=0 7492 fi 7493 # Do checking message here to not mess up interleaved configure output 7494 { echo "$as_me:$LINENO: checking for building with threads" >&5 7495echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7496 if test "${TCL_THREADS}" = 1; then 7497 7498cat >>confdefs.h <<\_ACEOF 7499#define TCL_THREADS 1 7500_ACEOF 7501 7502 { echo "$as_me:$LINENO: result: yes (default)" >&5 7503echo "${ECHO_T}yes (default)" >&6; } 7504 else 7505 { echo "$as_me:$LINENO: result: no" >&5 7506echo "${ECHO_T}no" >&6; } 7507 fi 7508 # TCL_THREADS sanity checking. See if our request for building with 7509 # threads is the same as the way Tcl was built. If not, warn the user. 7510 case ${TCL_DEFS} in 7511 *THREADS=1*) 7512 if test "${TCL_THREADS}" = "0"; then 7513 { echo "$as_me:$LINENO: WARNING: 7514 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7515 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7516echo "$as_me: WARNING: 7517 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7518 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7519 fi 7520 ;; 7521 *) 7522 if test "${TCL_THREADS}" = "1"; then 7523 { echo "$as_me:$LINENO: WARNING: 7524 --enable-threads requested, but building against a Tcl that is NOT 7525 thread-enabled. This is an OK configuration that will also run in 7526 a thread-enabled core." >&5 7527echo "$as_me: WARNING: 7528 --enable-threads requested, but building against a Tcl that is NOT 7529 thread-enabled. This is an OK configuration that will also run in 7530 a thread-enabled core." >&2;} 7531 fi 7532 ;; 7533 esac 7534 7535 7536 7537#-------------------------------------------------------------------- 7538# The statement below defines a collection of symbols related to 7539# building as a shared library instead of a static library. 7540#-------------------------------------------------------------------- 7541 7542 7543 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7544echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7545 # Check whether --enable-shared was given. 7546if test "${enable_shared+set}" = set; then 7547 enableval=$enable_shared; tcl_ok=$enableval 7548else 7549 tcl_ok=yes 7550fi 7551 7552 7553 if test "${enable_shared+set}" = set; then 7554 enableval="$enable_shared" 7555 tcl_ok=$enableval 7556 else 7557 tcl_ok=yes 7558 fi 7559 7560 if test "$tcl_ok" = "yes" ; then 7561 { echo "$as_me:$LINENO: result: shared" >&5 7562echo "${ECHO_T}shared" >&6; } 7563 SHARED_BUILD=1 7564 else 7565 { echo "$as_me:$LINENO: result: static" >&5 7566echo "${ECHO_T}static" >&6; } 7567 SHARED_BUILD=0 7568 7569cat >>confdefs.h <<\_ACEOF 7570#define STATIC_BUILD 1 7571_ACEOF 7572 7573 fi 7574 7575 7576 7577#-------------------------------------------------------------------- 7578# This macro figures out what flags to use with the compiler/linker 7579# when building shared/static debug/optimized objects. This information 7580# can be taken from the tclConfig.sh file, but this figures it all out. 7581#-------------------------------------------------------------------- 7582 7583 7584 7585 7586 # Step 0.a: Enable 64 bit support? 7587 7588 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7589echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 7590 # Check whether --enable-64bit was given. 7591if test "${enable_64bit+set}" = set; then 7592 enableval=$enable_64bit; do64bit=$enableval 7593else 7594 do64bit=no 7595fi 7596 7597 { echo "$as_me:$LINENO: result: $do64bit" >&5 7598echo "${ECHO_T}$do64bit" >&6; } 7599 7600 # Step 0.b: Enable Solaris 64 bit VIS support? 7601 7602 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7603echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 7604 # Check whether --enable-64bit-vis was given. 7605if test "${enable_64bit_vis+set}" = set; then 7606 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7607else 7608 do64bitVIS=no 7609fi 7610 7611 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7612echo "${ECHO_T}$do64bitVIS" >&6; } 7613 # Force 64bit on with VIS 7614 if test "$do64bitVIS" = "yes"; then 7615 do64bit=yes 7616fi 7617 7618 7619 # Step 0.c: Check if visibility support is available. Do this here so 7620 # that platform specific alternatives can be used below if this fails. 7621 7622 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7623echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 7624if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7625 echo $ECHO_N "(cached) $ECHO_C" >&6 7626else 7627 7628 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7629 cat >conftest.$ac_ext <<_ACEOF 7630/* confdefs.h. */ 7631_ACEOF 7632cat confdefs.h >>conftest.$ac_ext 7633cat >>conftest.$ac_ext <<_ACEOF 7634/* end confdefs.h. */ 7635 7636 extern __attribute__((__visibility__("hidden"))) void f(void); 7637 void f(void) {} 7638int 7639main () 7640{ 7641f(); 7642 ; 7643 return 0; 7644} 7645_ACEOF 7646rm -f conftest.$ac_objext conftest$ac_exeext 7647if { (ac_try="$ac_link" 7648case "(($ac_try" in 7649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7650 *) ac_try_echo=$ac_try;; 7651esac 7652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7653 (eval "$ac_link") 2>conftest.er1 7654 ac_status=$? 7655 grep -v '^ *+' conftest.er1 >conftest.err 7656 rm -f conftest.er1 7657 cat conftest.err >&5 7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7659 (exit $ac_status); } && { 7660 test -z "$ac_c_werror_flag" || 7661 test ! -s conftest.err 7662 } && test -s conftest$ac_exeext && 7663 $as_test_x conftest$ac_exeext; then 7664 tcl_cv_cc_visibility_hidden=yes 7665else 7666 echo "$as_me: failed program was:" >&5 7667sed 's/^/| /' conftest.$ac_ext >&5 7668 7669 tcl_cv_cc_visibility_hidden=no 7670fi 7671 7672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7673 conftest$ac_exeext conftest.$ac_ext 7674 CFLAGS=$hold_cflags 7675fi 7676{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7677echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 7678 if test $tcl_cv_cc_visibility_hidden = yes; then 7679 7680 7681cat >>confdefs.h <<\_ACEOF 7682#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7683_ACEOF 7684 7685 7686fi 7687 7688 7689 # Step 0.d: Disable -rpath support? 7690 7691 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7692echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 7693 # Check whether --enable-rpath was given. 7694if test "${enable_rpath+set}" = set; then 7695 enableval=$enable_rpath; doRpath=$enableval 7696else 7697 doRpath=yes 7698fi 7699 7700 { echo "$as_me:$LINENO: result: $doRpath" >&5 7701echo "${ECHO_T}$doRpath" >&6; } 7702 7703 # TEA specific: Cross-compiling options for Windows/CE builds? 7704 7705 if test "${TEA_PLATFORM}" = windows; then 7706 7707 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7708echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 7709 # Check whether --enable-wince was given. 7710if test "${enable_wince+set}" = set; then 7711 enableval=$enable_wince; doWince=$enableval 7712else 7713 doWince=no 7714fi 7715 7716 { echo "$as_me:$LINENO: result: $doWince" >&5 7717echo "${ECHO_T}$doWince" >&6; } 7718 7719fi 7720 7721 7722 # Set the variable "system" to hold the name and version number 7723 # for the system. 7724 7725 7726 { echo "$as_me:$LINENO: checking system version" >&5 7727echo $ECHO_N "checking system version... $ECHO_C" >&6; } 7728if test "${tcl_cv_sys_version+set}" = set; then 7729 echo $ECHO_N "(cached) $ECHO_C" >&6 7730else 7731 7732 # TEA specific: 7733 if test "${TEA_PLATFORM}" = "windows" ; then 7734 tcl_cv_sys_version=windows 7735 else 7736 tcl_cv_sys_version=`uname -s`-`uname -r` 7737 if test "$?" -ne 0 ; then 7738 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7739echo "$as_me: WARNING: can't find uname command" >&2;} 7740 tcl_cv_sys_version=unknown 7741 else 7742 if test "`uname -s`" = "AIX" ; then 7743 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7744 fi 7745 fi 7746 fi 7747 7748fi 7749{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7750echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 7751 system=$tcl_cv_sys_version 7752 7753 7754 # Require ranlib early so we can override it in special cases below. 7755 7756 7757 7758 # Set configuration options based on system name and version. 7759 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7760 # "windows" case and removed some core-only vars. 7761 7762 do64bit_ok=no 7763 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7764 SHLIB_LD_LIBS='${LIBS}' 7765 # When ld needs options to work in 64-bit mode, put them in 7766 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7767 # is disabled by the user. [Bug 1016796] 7768 LDFLAGS_ARCH="" 7769 UNSHARED_LIB_SUFFIX="" 7770 # TEA specific: use PACKAGE_VERSION instead of VERSION 7771 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7772 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7773 TCL_LIB_VERSIONS_OK=ok 7774 CFLAGS_DEBUG=-g 7775 CFLAGS_OPTIMIZE=-O 7776 if test "$GCC" = yes; then 7777 7778 # TEA specific: 7779 CFLAGS_OPTIMIZE=-O2 7780 CFLAGS_WARNING="-Wall" 7781 7782else 7783 CFLAGS_WARNING="" 7784fi 7785 7786 # Extract the first word of "ar", so it can be a program name with args. 7787set dummy ar; ac_word=$2 7788{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7790if test "${ac_cv_prog_AR+set}" = set; then 7791 echo $ECHO_N "(cached) $ECHO_C" >&6 7792else 7793 if test -n "$AR"; then 7794 ac_cv_prog_AR="$AR" # Let the user override the test. 7795else 7796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7797for as_dir in $PATH 7798do 7799 IFS=$as_save_IFS 7800 test -z "$as_dir" && as_dir=. 7801 for ac_exec_ext in '' $ac_executable_extensions; do 7802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7803 ac_cv_prog_AR="ar" 7804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7805 break 2 7806 fi 7807done 7808done 7809IFS=$as_save_IFS 7810 7811fi 7812fi 7813AR=$ac_cv_prog_AR 7814if test -n "$AR"; then 7815 { echo "$as_me:$LINENO: result: $AR" >&5 7816echo "${ECHO_T}$AR" >&6; } 7817else 7818 { echo "$as_me:$LINENO: result: no" >&5 7819echo "${ECHO_T}no" >&6; } 7820fi 7821 7822 7823 STLIB_LD='${AR} cr' 7824 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7825 if test "x$SHLIB_VERSION" = x; then 7826 SHLIB_VERSION="1.0" 7827fi 7828 7829 case $system in 7830 # TEA specific: 7831 windows) 7832 # This is a 2-stage check to make sure we have the 64-bit SDK 7833 # We have to know where the SDK is installed. 7834 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7835 # MACHINE is IX86 for LINK, but this is used by the manifest, 7836 # which requires x86|amd64|ia64. 7837 MACHINE="X86" 7838 if test "$do64bit" != "no" ; then 7839 if test "x${MSSDK}x" = "xx" ; then 7840 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7841 fi 7842 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7843 PATH64="" 7844 case "$do64bit" in 7845 amd64|x64|yes) 7846 MACHINE="AMD64" ; # default to AMD64 64-bit build 7847 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7848 ;; 7849 ia64) 7850 MACHINE="IA64" 7851 PATH64="${MSSDK}/Bin/Win64" 7852 ;; 7853 esac 7854 if test ! -d "${PATH64}" ; then 7855 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7856echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7857 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7858echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7859 do64bit="no" 7860 else 7861 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7862echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 7863 do64bit_ok="yes" 7864 fi 7865 fi 7866 7867 if test "$doWince" != "no" ; then 7868 if test "$do64bit" != "no" ; then 7869 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7870echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7871 { (exit 1); exit 1; }; } 7872 fi 7873 if test "$GCC" = "yes" ; then 7874 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7875echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7876 { (exit 1); exit 1; }; } 7877 fi 7878 7879 # First, look for one uninstalled. 7880 # the alternative search directory is invoked by --with-celib 7881 7882 if test x"${no_celib}" = x ; then 7883 # we reset no_celib in case something fails here 7884 no_celib=true 7885 7886# Check whether --with-celib was given. 7887if test "${with_celib+set}" = set; then 7888 withval=$with_celib; with_celibconfig=${withval} 7889fi 7890 7891 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7892echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 7893 if test "${ac_cv_c_celibconfig+set}" = set; then 7894 echo $ECHO_N "(cached) $ECHO_C" >&6 7895else 7896 7897 # First check to see if --with-celibconfig was specified. 7898 if test x"${with_celibconfig}" != x ; then 7899 if test -d "${with_celibconfig}/inc" ; then 7900 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7901 else 7902 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7903echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7904 { (exit 1); exit 1; }; } 7905 fi 7906 fi 7907 7908 # then check for a celib library 7909 if test x"${ac_cv_c_celibconfig}" = x ; then 7910 for i in \ 7911 ../celib-palm-3.0 \ 7912 ../celib \ 7913 ../../celib-palm-3.0 \ 7914 ../../celib \ 7915 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7916 ${srcdir}/../celib-palm-3.0 \ 7917 ${srcdir}/../celib \ 7918 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7919 ; do 7920 if test -d "$i/inc" ; then 7921 ac_cv_c_celibconfig=`(cd $i; pwd)` 7922 break 7923 fi 7924 done 7925 fi 7926 7927fi 7928 7929 if test x"${ac_cv_c_celibconfig}" = x ; then 7930 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7931echo "$as_me: error: Cannot find celib support library directory" >&2;} 7932 { (exit 1); exit 1; }; } 7933 else 7934 no_celib= 7935 CELIB_DIR=${ac_cv_c_celibconfig} 7936 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7937 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7938echo "${ECHO_T}found $CELIB_DIR" >&6; } 7939 fi 7940 fi 7941 7942 # Set defaults for common evc4/PPC2003 setup 7943 # Currently Tcl requires 300+, possibly 420+ for sockets 7944 CEVERSION=420; # could be 211 300 301 400 420 ... 7945 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7946 ARCH=ARM; # could be ARM MIPS X86EM ... 7947 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7948 if test "$doWince" != "yes"; then 7949 # If !yes then the user specified something 7950 # Reset ARCH to allow user to skip specifying it 7951 ARCH= 7952 eval `echo $doWince | awk -F, '{ \ 7953 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7954 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7955 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7956 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7957 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7958 }'` 7959 if test "x${ARCH}" = "x" ; then 7960 ARCH=$TARGETCPU; 7961 fi 7962 fi 7963 OSVERSION=WCE$CEVERSION; 7964 if test "x${WCEROOT}" = "x" ; then 7965 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7966 if test ! -d "${WCEROOT}" ; then 7967 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7968 fi 7969 fi 7970 if test "x${SDKROOT}" = "x" ; then 7971 SDKROOT="C:/Program Files/Windows CE Tools" 7972 if test ! -d "${SDKROOT}" ; then 7973 SDKROOT="C:/Windows CE Tools" 7974 fi 7975 fi 7976 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7977 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7978 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7979 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7980 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7981echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7982 { (exit 1); exit 1; }; } 7983 doWince="no" 7984 else 7985 # We could PATH_NOSPACE these, but that's not important, 7986 # as long as we quote them when used. 7987 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7988 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7989 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7990 fi 7991 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7992 fi 7993 fi 7994 7995 if test "$GCC" != "yes" ; then 7996 if test "${SHARED_BUILD}" = "0" ; then 7997 runtime=-MT 7998 else 7999 runtime=-MD 8000 fi 8001 8002 if test "$do64bit" != "no" ; then 8003 # All this magic is necessary for the Win64 SDK RC1 - hobbs 8004 CC="\"${PATH64}/cl.exe\"" 8005 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 8006 RC="\"${MSSDK}/bin/rc.exe\"" 8007 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 8008 LINKBIN="\"${PATH64}/link.exe\"" 8009 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 8010 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8011 # Avoid 'unresolved external symbol __security_cookie' 8012 # errors, c.f. http://support.microsoft.com/?id=894573 8013 8014 vars="bufferoverflowU.lib" 8015 for i in $vars; do 8016 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 8017 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 8018 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 8019 fi 8020 PKG_LIBS="$PKG_LIBS $i" 8021 done 8022 8023 8024 elif test "$doWince" != "no" ; then 8025 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 8026 if test "${TARGETCPU}" = "X86"; then 8027 CC="\"${CEBINROOT}/cl.exe\"" 8028 else 8029 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 8030 fi 8031 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 8032 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 8033 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 8034 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 8035 if test "${SHARED_BUILD}" = "1" ; then 8036 # Static CE builds require static celib as well 8037 defs="${defs} _DLL" 8038 fi 8039 for i in $defs ; do 8040 8041cat >>confdefs.h <<_ACEOF 8042#define $i 1 8043_ACEOF 8044 8045 done 8046 8047cat >>confdefs.h <<_ACEOF 8048#define _WIN32_WCE $CEVERSION 8049_ACEOF 8050 8051 8052cat >>confdefs.h <<_ACEOF 8053#define UNDER_CE $CEVERSION 8054_ACEOF 8055 8056 CFLAGS_DEBUG="-nologo -Zi -Od" 8057 CFLAGS_OPTIMIZE="-nologo -Ox" 8058 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 8059 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 8060 LINKBIN="\"${CEBINROOT}/link.exe\"" 8061 8062 else 8063 RC="rc" 8064 lflags="-nologo" 8065 LINKBIN="link" 8066 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 8067 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8068 fi 8069 fi 8070 8071 if test "$GCC" = "yes"; then 8072 # mingw gcc mode 8073 RC="windres" 8074 CFLAGS_DEBUG="-g" 8075 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8076 SHLIB_LD="$CC -shared" 8077 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8078 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 8079 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 8080 else 8081 SHLIB_LD="${LINKBIN} -dll ${lflags}" 8082 # link -lib only works when -lib is the first arg 8083 STLIB_LD="${LINKBIN} -lib ${lflags}" 8084 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 8085 PATHTYPE=-w 8086 # For information on what debugtype is most useful, see: 8087 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 8088 # and also 8089 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 8090 # This essentially turns it all on. 8091 LDFLAGS_DEBUG="-debug -debugtype:cv" 8092 LDFLAGS_OPTIMIZE="-release" 8093 if test "$doWince" != "no" ; then 8094 LDFLAGS_CONSOLE="-link ${lflags}" 8095 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 8096 else 8097 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 8098 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 8099 fi 8100 fi 8101 8102 SHLIB_SUFFIX=".dll" 8103 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 8104 8105 TCL_LIB_VERSIONS_OK=nodots 8106 ;; 8107 AIX-*) 8108 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 8109 8110 # AIX requires the _r compiler when gcc isn't being used 8111 case "${CC}" in 8112 *_r|*_r\ *) 8113 # ok ... 8114 ;; 8115 *) 8116 # Make sure only first arg gets _r 8117 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 8118 ;; 8119 esac 8120 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 8121echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 8122 8123fi 8124 8125 LIBS="$LIBS -lc" 8126 SHLIB_CFLAGS="" 8127 SHLIB_SUFFIX=".so" 8128 8129 LD_LIBRARY_PATH_VAR="LIBPATH" 8130 8131 # Check to enable 64-bit flags for compiler/linker 8132 if test "$do64bit" = yes; then 8133 8134 if test "$GCC" = yes; then 8135 8136 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8137echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8138 8139else 8140 8141 do64bit_ok=yes 8142 CFLAGS="$CFLAGS -q64" 8143 LDFLAGS_ARCH="-q64" 8144 RANLIB="${RANLIB} -X64" 8145 AR="${AR} -X64" 8146 SHLIB_LD_FLAGS="-b64" 8147 8148fi 8149 8150 8151fi 8152 8153 8154 if test "`uname -m`" = ia64; then 8155 8156 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8157 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8158 if test "$GCC" = yes; then 8159 8160 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8161 8162else 8163 8164 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8165 8166fi 8167 8168 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8169 8170else 8171 8172 if test "$GCC" = yes; then 8173 8174 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8175 8176else 8177 8178 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8179 LDFLAGS="$LDFLAGS -brtl" 8180 8181fi 8182 8183 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8184 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8185 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8186 8187fi 8188 8189 ;; 8190 BeOS*) 8191 SHLIB_CFLAGS="-fPIC" 8192 SHLIB_LD='${CC} -nostart' 8193 SHLIB_SUFFIX=".so" 8194 8195 #----------------------------------------------------------- 8196 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8197 # -lsocket, even if the network functions are in -lnet which 8198 # is always linked to, for compatibility. 8199 #----------------------------------------------------------- 8200 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8201echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8202if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8203 echo $ECHO_N "(cached) $ECHO_C" >&6 8204else 8205 ac_check_lib_save_LIBS=$LIBS 8206LIBS="-lbind $LIBS" 8207cat >conftest.$ac_ext <<_ACEOF 8208/* confdefs.h. */ 8209_ACEOF 8210cat confdefs.h >>conftest.$ac_ext 8211cat >>conftest.$ac_ext <<_ACEOF 8212/* end confdefs.h. */ 8213 8214/* Override any GCC internal prototype to avoid an error. 8215 Use char because int might match the return type of a GCC 8216 builtin and then its argument prototype would still apply. */ 8217#ifdef __cplusplus 8218extern "C" 8219#endif 8220char inet_ntoa (); 8221int 8222main () 8223{ 8224return inet_ntoa (); 8225 ; 8226 return 0; 8227} 8228_ACEOF 8229rm -f conftest.$ac_objext conftest$ac_exeext 8230if { (ac_try="$ac_link" 8231case "(($ac_try" in 8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8233 *) ac_try_echo=$ac_try;; 8234esac 8235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8236 (eval "$ac_link") 2>conftest.er1 8237 ac_status=$? 8238 grep -v '^ *+' conftest.er1 >conftest.err 8239 rm -f conftest.er1 8240 cat conftest.err >&5 8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8242 (exit $ac_status); } && { 8243 test -z "$ac_c_werror_flag" || 8244 test ! -s conftest.err 8245 } && test -s conftest$ac_exeext && 8246 $as_test_x conftest$ac_exeext; then 8247 ac_cv_lib_bind_inet_ntoa=yes 8248else 8249 echo "$as_me: failed program was:" >&5 8250sed 's/^/| /' conftest.$ac_ext >&5 8251 8252 ac_cv_lib_bind_inet_ntoa=no 8253fi 8254 8255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8256 conftest$ac_exeext conftest.$ac_ext 8257LIBS=$ac_check_lib_save_LIBS 8258fi 8259{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8260echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8261if test $ac_cv_lib_bind_inet_ntoa = yes; then 8262 LIBS="$LIBS -lbind -lsocket" 8263fi 8264 8265 ;; 8266 BSD/OS-4.*) 8267 SHLIB_CFLAGS="-export-dynamic -fPIC" 8268 SHLIB_LD='${CC} -shared' 8269 SHLIB_SUFFIX=".so" 8270 LDFLAGS="$LDFLAGS -export-dynamic" 8271 CC_SEARCH_FLAGS="" 8272 LD_SEARCH_FLAGS="" 8273 ;; 8274 CYGWIN_*) 8275 SHLIB_CFLAGS="" 8276 SHLIB_LD='${CC} -shared' 8277 SHLIB_SUFFIX=".dll" 8278 EXE_SUFFIX=".exe" 8279 CC_SEARCH_FLAGS="" 8280 LD_SEARCH_FLAGS="" 8281 ;; 8282 Haiku*) 8283 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8284 SHLIB_CFLAGS="-fPIC" 8285 SHLIB_SUFFIX=".so" 8286 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8287 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8288echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8289if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8290 echo $ECHO_N "(cached) $ECHO_C" >&6 8291else 8292 ac_check_lib_save_LIBS=$LIBS 8293LIBS="-lnetwork $LIBS" 8294cat >conftest.$ac_ext <<_ACEOF 8295/* confdefs.h. */ 8296_ACEOF 8297cat confdefs.h >>conftest.$ac_ext 8298cat >>conftest.$ac_ext <<_ACEOF 8299/* end confdefs.h. */ 8300 8301/* Override any GCC internal prototype to avoid an error. 8302 Use char because int might match the return type of a GCC 8303 builtin and then its argument prototype would still apply. */ 8304#ifdef __cplusplus 8305extern "C" 8306#endif 8307char inet_ntoa (); 8308int 8309main () 8310{ 8311return inet_ntoa (); 8312 ; 8313 return 0; 8314} 8315_ACEOF 8316rm -f conftest.$ac_objext conftest$ac_exeext 8317if { (ac_try="$ac_link" 8318case "(($ac_try" in 8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8320 *) ac_try_echo=$ac_try;; 8321esac 8322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8323 (eval "$ac_link") 2>conftest.er1 8324 ac_status=$? 8325 grep -v '^ *+' conftest.er1 >conftest.err 8326 rm -f conftest.er1 8327 cat conftest.err >&5 8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8329 (exit $ac_status); } && { 8330 test -z "$ac_c_werror_flag" || 8331 test ! -s conftest.err 8332 } && test -s conftest$ac_exeext && 8333 $as_test_x conftest$ac_exeext; then 8334 ac_cv_lib_network_inet_ntoa=yes 8335else 8336 echo "$as_me: failed program was:" >&5 8337sed 's/^/| /' conftest.$ac_ext >&5 8338 8339 ac_cv_lib_network_inet_ntoa=no 8340fi 8341 8342rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8343 conftest$ac_exeext conftest.$ac_ext 8344LIBS=$ac_check_lib_save_LIBS 8345fi 8346{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8347echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8348if test $ac_cv_lib_network_inet_ntoa = yes; then 8349 LIBS="$LIBS -lnetwork" 8350fi 8351 8352 ;; 8353 HP-UX-*.11.*) 8354 # Use updated header definitions where possible 8355 8356cat >>confdefs.h <<\_ACEOF 8357#define _XOPEN_SOURCE_EXTENDED 1 8358_ACEOF 8359 8360 # TEA specific: Needed by Tcl, but not most extensions 8361 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8362 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8363 8364 if test "`uname -m`" = ia64; then 8365 8366 SHLIB_SUFFIX=".so" 8367 # Use newer C++ library for C++ extensions 8368 #if test "$GCC" != "yes" ; then 8369 # CPPFLAGS="-AA" 8370 #fi 8371 8372else 8373 8374 SHLIB_SUFFIX=".sl" 8375 8376fi 8377 8378 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8379echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8380if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8381 echo $ECHO_N "(cached) $ECHO_C" >&6 8382else 8383 ac_check_lib_save_LIBS=$LIBS 8384LIBS="-ldld $LIBS" 8385cat >conftest.$ac_ext <<_ACEOF 8386/* confdefs.h. */ 8387_ACEOF 8388cat confdefs.h >>conftest.$ac_ext 8389cat >>conftest.$ac_ext <<_ACEOF 8390/* end confdefs.h. */ 8391 8392/* Override any GCC internal prototype to avoid an error. 8393 Use char because int might match the return type of a GCC 8394 builtin and then its argument prototype would still apply. */ 8395#ifdef __cplusplus 8396extern "C" 8397#endif 8398char shl_load (); 8399int 8400main () 8401{ 8402return shl_load (); 8403 ; 8404 return 0; 8405} 8406_ACEOF 8407rm -f conftest.$ac_objext conftest$ac_exeext 8408if { (ac_try="$ac_link" 8409case "(($ac_try" in 8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8411 *) ac_try_echo=$ac_try;; 8412esac 8413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8414 (eval "$ac_link") 2>conftest.er1 8415 ac_status=$? 8416 grep -v '^ *+' conftest.er1 >conftest.err 8417 rm -f conftest.er1 8418 cat conftest.err >&5 8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8420 (exit $ac_status); } && { 8421 test -z "$ac_c_werror_flag" || 8422 test ! -s conftest.err 8423 } && test -s conftest$ac_exeext && 8424 $as_test_x conftest$ac_exeext; then 8425 ac_cv_lib_dld_shl_load=yes 8426else 8427 echo "$as_me: failed program was:" >&5 8428sed 's/^/| /' conftest.$ac_ext >&5 8429 8430 ac_cv_lib_dld_shl_load=no 8431fi 8432 8433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8434 conftest$ac_exeext conftest.$ac_ext 8435LIBS=$ac_check_lib_save_LIBS 8436fi 8437{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8438echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8439if test $ac_cv_lib_dld_shl_load = yes; then 8440 tcl_ok=yes 8441else 8442 tcl_ok=no 8443fi 8444 8445 if test "$tcl_ok" = yes; then 8446 8447 LDFLAGS="$LDFLAGS -E" 8448 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8449 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8450 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8451 8452fi 8453 8454 if test "$GCC" = yes; then 8455 8456 SHLIB_LD='${CC} -shared' 8457 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8458 8459else 8460 8461 CFLAGS="$CFLAGS -z" 8462 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8463 #CFLAGS="$CFLAGS +DAportable" 8464 SHLIB_CFLAGS="+z" 8465 SHLIB_LD="ld -b" 8466 8467fi 8468 8469 8470 # Check to enable 64-bit flags for compiler/linker 8471 if test "$do64bit" = "yes"; then 8472 8473 if test "$GCC" = yes; then 8474 8475 case `${CC} -dumpmachine` in 8476 hppa64*) 8477 # 64-bit gcc in use. Fix flags for GNU ld. 8478 do64bit_ok=yes 8479 SHLIB_LD='${CC} -shared' 8480 if test $doRpath = yes; then 8481 8482 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8483fi 8484 8485 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8486 ;; 8487 *) 8488 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8489echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8490 ;; 8491 esac 8492 8493else 8494 8495 do64bit_ok=yes 8496 CFLAGS="$CFLAGS +DD64" 8497 LDFLAGS_ARCH="+DD64" 8498 8499fi 8500 8501 8502fi 8503 ;; 8504 IRIX-6.*) 8505 SHLIB_CFLAGS="" 8506 SHLIB_LD="ld -n32 -shared -rdata_shared" 8507 SHLIB_SUFFIX=".so" 8508 if test $doRpath = yes; then 8509 8510 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8511 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8512fi 8513 8514 if test "$GCC" = yes; then 8515 8516 CFLAGS="$CFLAGS -mabi=n32" 8517 LDFLAGS="$LDFLAGS -mabi=n32" 8518 8519else 8520 8521 case $system in 8522 IRIX-6.3) 8523 # Use to build 6.2 compatible binaries on 6.3. 8524 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8525 ;; 8526 *) 8527 CFLAGS="$CFLAGS -n32" 8528 ;; 8529 esac 8530 LDFLAGS="$LDFLAGS -n32" 8531 8532fi 8533 8534 ;; 8535 IRIX64-6.*) 8536 SHLIB_CFLAGS="" 8537 SHLIB_LD="ld -n32 -shared -rdata_shared" 8538 SHLIB_SUFFIX=".so" 8539 if test $doRpath = yes; then 8540 8541 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8542 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8543fi 8544 8545 8546 # Check to enable 64-bit flags for compiler/linker 8547 8548 if test "$do64bit" = yes; then 8549 8550 if test "$GCC" = yes; then 8551 8552 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8553echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8554 8555else 8556 8557 do64bit_ok=yes 8558 SHLIB_LD="ld -64 -shared -rdata_shared" 8559 CFLAGS="$CFLAGS -64" 8560 LDFLAGS_ARCH="-64" 8561 8562fi 8563 8564 8565fi 8566 8567 ;; 8568 Linux*) 8569 SHLIB_CFLAGS="-fPIC" 8570 SHLIB_SUFFIX=".so" 8571 8572 # TEA specific: 8573 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8574 8575 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8576 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8577 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8578 if test $doRpath = yes; then 8579 8580 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8581fi 8582 8583 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8584 if test "`uname -m`" = "alpha"; then 8585 CFLAGS="$CFLAGS -mieee" 8586fi 8587 8588 if test $do64bit = yes; then 8589 8590 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8591echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 8592if test "${tcl_cv_cc_m64+set}" = set; then 8593 echo $ECHO_N "(cached) $ECHO_C" >&6 8594else 8595 8596 hold_cflags=$CFLAGS 8597 CFLAGS="$CFLAGS -m64" 8598 cat >conftest.$ac_ext <<_ACEOF 8599/* confdefs.h. */ 8600_ACEOF 8601cat confdefs.h >>conftest.$ac_ext 8602cat >>conftest.$ac_ext <<_ACEOF 8603/* end confdefs.h. */ 8604 8605int 8606main () 8607{ 8608 8609 ; 8610 return 0; 8611} 8612_ACEOF 8613rm -f conftest.$ac_objext conftest$ac_exeext 8614if { (ac_try="$ac_link" 8615case "(($ac_try" in 8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8617 *) ac_try_echo=$ac_try;; 8618esac 8619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8620 (eval "$ac_link") 2>conftest.er1 8621 ac_status=$? 8622 grep -v '^ *+' conftest.er1 >conftest.err 8623 rm -f conftest.er1 8624 cat conftest.err >&5 8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8626 (exit $ac_status); } && { 8627 test -z "$ac_c_werror_flag" || 8628 test ! -s conftest.err 8629 } && test -s conftest$ac_exeext && 8630 $as_test_x conftest$ac_exeext; then 8631 tcl_cv_cc_m64=yes 8632else 8633 echo "$as_me: failed program was:" >&5 8634sed 's/^/| /' conftest.$ac_ext >&5 8635 8636 tcl_cv_cc_m64=no 8637fi 8638 8639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8640 conftest$ac_exeext conftest.$ac_ext 8641 CFLAGS=$hold_cflags 8642fi 8643{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8644echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 8645 if test $tcl_cv_cc_m64 = yes; then 8646 8647 CFLAGS="$CFLAGS -m64" 8648 do64bit_ok=yes 8649 8650fi 8651 8652 8653fi 8654 8655 8656 # The combo of gcc + glibc has a bug related to inlining of 8657 # functions like strtod(). The -fno-builtin flag should address 8658 # this problem but it does not work. The -fno-inline flag is kind 8659 # of overkill but it works. Disable inlining only when one of the 8660 # files in compat/*.c is being linked in. 8661 8662 if test x"${USE_COMPAT}" != x; then 8663 CFLAGS="$CFLAGS -fno-inline" 8664fi 8665 8666 8667 ;; 8668 GNU*) 8669 SHLIB_CFLAGS="-fPIC" 8670 SHLIB_SUFFIX=".so" 8671 8672 SHLIB_LD='${CC} -shared' 8673 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8674 CC_SEARCH_FLAGS="" 8675 LD_SEARCH_FLAGS="" 8676 if test "`uname -m`" = "alpha"; then 8677 CFLAGS="$CFLAGS -mieee" 8678fi 8679 8680 ;; 8681 Lynx*) 8682 SHLIB_CFLAGS="-fPIC" 8683 SHLIB_SUFFIX=".so" 8684 CFLAGS_OPTIMIZE=-02 8685 SHLIB_LD='${CC} -shared' 8686 LD_FLAGS="-Wl,--export-dynamic" 8687 if test $doRpath = yes; then 8688 8689 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8690 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8691fi 8692 8693 ;; 8694 OpenBSD-*) 8695 SHLIB_CFLAGS="-fPIC" 8696 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8697 SHLIB_SUFFIX=".so" 8698 if test $doRpath = yes; then 8699 8700 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8701fi 8702 8703 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8704 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8705 { echo "$as_me:$LINENO: checking for ELF" >&5 8706echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 8707if test "${tcl_cv_ld_elf+set}" = set; then 8708 echo $ECHO_N "(cached) $ECHO_C" >&6 8709else 8710 8711 cat >conftest.$ac_ext <<_ACEOF 8712/* confdefs.h. */ 8713_ACEOF 8714cat confdefs.h >>conftest.$ac_ext 8715cat >>conftest.$ac_ext <<_ACEOF 8716/* end confdefs.h. */ 8717 8718#ifdef __ELF__ 8719 yes 8720#endif 8721 8722_ACEOF 8723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8724 $EGREP "yes" >/dev/null 2>&1; then 8725 tcl_cv_ld_elf=yes 8726else 8727 tcl_cv_ld_elf=no 8728fi 8729rm -f -r conftest* 8730 8731fi 8732{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8733echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 8734 if test $tcl_cv_ld_elf = yes; then 8735 8736 LDFLAGS=-Wl,-export-dynamic 8737 8738else 8739 LDFLAGS="" 8740fi 8741 8742 if test "${TCL_THREADS}" = "1"; then 8743 8744 # OpenBSD builds and links with -pthread, never -lpthread. 8745 LIBS=`echo $LIBS | sed s/-lpthread//` 8746 CFLAGS="$CFLAGS -pthread" 8747 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8748 8749fi 8750 8751 # OpenBSD doesn't do version numbers with dots. 8752 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8753 TCL_LIB_VERSIONS_OK=nodots 8754 ;; 8755 NetBSD-*|FreeBSD-[3-4].*) 8756 # FreeBSD 3.* and greater have ELF. 8757 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8758 SHLIB_CFLAGS="-fPIC" 8759 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8760 SHLIB_SUFFIX=".so" 8761 LDFLAGS="$LDFLAGS -export-dynamic" 8762 if test $doRpath = yes; then 8763 8764 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8765fi 8766 8767 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8768 if test "${TCL_THREADS}" = "1"; then 8769 8770 # The -pthread needs to go in the CFLAGS, not LIBS 8771 LIBS=`echo $LIBS | sed s/-pthread//` 8772 CFLAGS="$CFLAGS -pthread" 8773 LDFLAGS="$LDFLAGS -pthread" 8774 8775fi 8776 8777 case $system in 8778 FreeBSD-3.*) 8779 # FreeBSD-3 doesn't handle version numbers with dots. 8780 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8781 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8782 TCL_LIB_VERSIONS_OK=nodots 8783 ;; 8784 esac 8785 ;; 8786 FreeBSD-*) 8787 # This configuration from FreeBSD Ports. 8788 SHLIB_CFLAGS="-fPIC" 8789 SHLIB_LD="${CC} -shared" 8790 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8791 SHLIB_SUFFIX=".so" 8792 LDFLAGS="" 8793 if test $doRpath = yes; then 8794 8795 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8796 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8797fi 8798 8799 if test "${TCL_THREADS}" = "1"; then 8800 8801 # The -pthread needs to go in the LDFLAGS, not LIBS 8802 LIBS=`echo $LIBS | sed s/-pthread//` 8803 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8804 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8805fi 8806 8807 # Version numbers are dot-stripped by system policy. 8808 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8809 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8810 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8811 TCL_LIB_VERSIONS_OK=nodots 8812 ;; 8813 Darwin-*) 8814 CFLAGS_OPTIMIZE="-Os" 8815 SHLIB_CFLAGS="-fno-common" 8816 # To avoid discrepancies between what headers configure sees during 8817 # preprocessing tests and compiling tests, move any -isysroot and 8818 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8819 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8820 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8821 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8822 CFLAGS="`echo " ${CFLAGS}" | \ 8823 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8824 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8825 if test $do64bit = yes; then 8826 8827 case `arch` in 8828 ppc) 8829 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8830echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 8831if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8832 echo $ECHO_N "(cached) $ECHO_C" >&6 8833else 8834 8835 hold_cflags=$CFLAGS 8836 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8837 cat >conftest.$ac_ext <<_ACEOF 8838/* confdefs.h. */ 8839_ACEOF 8840cat confdefs.h >>conftest.$ac_ext 8841cat >>conftest.$ac_ext <<_ACEOF 8842/* end confdefs.h. */ 8843 8844int 8845main () 8846{ 8847 8848 ; 8849 return 0; 8850} 8851_ACEOF 8852rm -f conftest.$ac_objext conftest$ac_exeext 8853if { (ac_try="$ac_link" 8854case "(($ac_try" in 8855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8856 *) ac_try_echo=$ac_try;; 8857esac 8858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8859 (eval "$ac_link") 2>conftest.er1 8860 ac_status=$? 8861 grep -v '^ *+' conftest.er1 >conftest.err 8862 rm -f conftest.er1 8863 cat conftest.err >&5 8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8865 (exit $ac_status); } && { 8866 test -z "$ac_c_werror_flag" || 8867 test ! -s conftest.err 8868 } && test -s conftest$ac_exeext && 8869 $as_test_x conftest$ac_exeext; then 8870 tcl_cv_cc_arch_ppc64=yes 8871else 8872 echo "$as_me: failed program was:" >&5 8873sed 's/^/| /' conftest.$ac_ext >&5 8874 8875 tcl_cv_cc_arch_ppc64=no 8876fi 8877 8878rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8879 conftest$ac_exeext conftest.$ac_ext 8880 CFLAGS=$hold_cflags 8881fi 8882{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8883echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 8884 if test $tcl_cv_cc_arch_ppc64 = yes; then 8885 8886 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8887 do64bit_ok=yes 8888 8889fi 8890;; 8891 i386) 8892 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8893echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 8894if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8895 echo $ECHO_N "(cached) $ECHO_C" >&6 8896else 8897 8898 hold_cflags=$CFLAGS 8899 CFLAGS="$CFLAGS -arch x86_64" 8900 cat >conftest.$ac_ext <<_ACEOF 8901/* confdefs.h. */ 8902_ACEOF 8903cat confdefs.h >>conftest.$ac_ext 8904cat >>conftest.$ac_ext <<_ACEOF 8905/* end confdefs.h. */ 8906 8907int 8908main () 8909{ 8910 8911 ; 8912 return 0; 8913} 8914_ACEOF 8915rm -f conftest.$ac_objext conftest$ac_exeext 8916if { (ac_try="$ac_link" 8917case "(($ac_try" in 8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8919 *) ac_try_echo=$ac_try;; 8920esac 8921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8922 (eval "$ac_link") 2>conftest.er1 8923 ac_status=$? 8924 grep -v '^ *+' conftest.er1 >conftest.err 8925 rm -f conftest.er1 8926 cat conftest.err >&5 8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8928 (exit $ac_status); } && { 8929 test -z "$ac_c_werror_flag" || 8930 test ! -s conftest.err 8931 } && test -s conftest$ac_exeext && 8932 $as_test_x conftest$ac_exeext; then 8933 tcl_cv_cc_arch_x86_64=yes 8934else 8935 echo "$as_me: failed program was:" >&5 8936sed 's/^/| /' conftest.$ac_ext >&5 8937 8938 tcl_cv_cc_arch_x86_64=no 8939fi 8940 8941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8942 conftest$ac_exeext conftest.$ac_ext 8943 CFLAGS=$hold_cflags 8944fi 8945{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8946echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 8947 if test $tcl_cv_cc_arch_x86_64 = yes; then 8948 8949 CFLAGS="$CFLAGS -arch x86_64" 8950 do64bit_ok=yes 8951 8952fi 8953;; 8954 *) 8955 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8956echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8957 esac 8958 8959else 8960 8961 # Check for combined 32-bit and 64-bit fat build 8962 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8963 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 8964 8965 fat_32_64=yes 8966fi 8967 8968 8969fi 8970 8971 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8972 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8973 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8974echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 8975if test "${tcl_cv_ld_single_module+set}" = set; then 8976 echo $ECHO_N "(cached) $ECHO_C" >&6 8977else 8978 8979 hold_ldflags=$LDFLAGS 8980 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8981 cat >conftest.$ac_ext <<_ACEOF 8982/* confdefs.h. */ 8983_ACEOF 8984cat confdefs.h >>conftest.$ac_ext 8985cat >>conftest.$ac_ext <<_ACEOF 8986/* end confdefs.h. */ 8987 8988int 8989main () 8990{ 8991int i; 8992 ; 8993 return 0; 8994} 8995_ACEOF 8996rm -f conftest.$ac_objext conftest$ac_exeext 8997if { (ac_try="$ac_link" 8998case "(($ac_try" in 8999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9000 *) ac_try_echo=$ac_try;; 9001esac 9002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9003 (eval "$ac_link") 2>conftest.er1 9004 ac_status=$? 9005 grep -v '^ *+' conftest.er1 >conftest.err 9006 rm -f conftest.er1 9007 cat conftest.err >&5 9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9009 (exit $ac_status); } && { 9010 test -z "$ac_c_werror_flag" || 9011 test ! -s conftest.err 9012 } && test -s conftest$ac_exeext && 9013 $as_test_x conftest$ac_exeext; then 9014 tcl_cv_ld_single_module=yes 9015else 9016 echo "$as_me: failed program was:" >&5 9017sed 's/^/| /' conftest.$ac_ext >&5 9018 9019 tcl_cv_ld_single_module=no 9020fi 9021 9022rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9023 conftest$ac_exeext conftest.$ac_ext 9024 LDFLAGS=$hold_ldflags 9025fi 9026{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 9027echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 9028 if test $tcl_cv_ld_single_module = yes; then 9029 9030 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 9031 9032fi 9033 9034 # TEA specific: link shlib with current and compatiblity version flags 9035 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 9036 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 9037 SHLIB_SUFFIX=".dylib" 9038 # Don't use -prebind when building for Mac OS X 10.4 or later only: 9039 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 9040 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 9041 9042 LDFLAGS="$LDFLAGS -prebind" 9043fi 9044 9045 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 9046 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 9047echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 9048if test "${tcl_cv_ld_search_paths_first+set}" = set; then 9049 echo $ECHO_N "(cached) $ECHO_C" >&6 9050else 9051 9052 hold_ldflags=$LDFLAGS 9053 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9054 cat >conftest.$ac_ext <<_ACEOF 9055/* confdefs.h. */ 9056_ACEOF 9057cat confdefs.h >>conftest.$ac_ext 9058cat >>conftest.$ac_ext <<_ACEOF 9059/* end confdefs.h. */ 9060 9061int 9062main () 9063{ 9064int i; 9065 ; 9066 return 0; 9067} 9068_ACEOF 9069rm -f conftest.$ac_objext conftest$ac_exeext 9070if { (ac_try="$ac_link" 9071case "(($ac_try" in 9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9073 *) ac_try_echo=$ac_try;; 9074esac 9075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9076 (eval "$ac_link") 2>conftest.er1 9077 ac_status=$? 9078 grep -v '^ *+' conftest.er1 >conftest.err 9079 rm -f conftest.er1 9080 cat conftest.err >&5 9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9082 (exit $ac_status); } && { 9083 test -z "$ac_c_werror_flag" || 9084 test ! -s conftest.err 9085 } && test -s conftest$ac_exeext && 9086 $as_test_x conftest$ac_exeext; then 9087 tcl_cv_ld_search_paths_first=yes 9088else 9089 echo "$as_me: failed program was:" >&5 9090sed 's/^/| /' conftest.$ac_ext >&5 9091 9092 tcl_cv_ld_search_paths_first=no 9093fi 9094 9095rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9096 conftest$ac_exeext conftest.$ac_ext 9097 LDFLAGS=$hold_ldflags 9098fi 9099{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9100echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 9101 if test $tcl_cv_ld_search_paths_first = yes; then 9102 9103 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9104 9105fi 9106 9107 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9108 9109 9110cat >>confdefs.h <<\_ACEOF 9111#define MODULE_SCOPE __private_extern__ 9112_ACEOF 9113 9114 tcl_cv_cc_visibility_hidden=yes 9115 9116fi 9117 9118 CC_SEARCH_FLAGS="" 9119 LD_SEARCH_FLAGS="" 9120 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9121 # TEA specific: for combined 32 & 64 bit fat builds of Tk 9122 # extensions, verify that 64-bit build is possible. 9123 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 9124 9125 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 9126 9127 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9128echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 9129if test "${tcl_cv_lib_x11_64+set}" = set; then 9130 echo $ECHO_N "(cached) $ECHO_C" >&6 9131else 9132 9133 for v in CFLAGS CPPFLAGS LDFLAGS; do 9134 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9135 done 9136 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9137 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9138 cat >conftest.$ac_ext <<_ACEOF 9139/* confdefs.h. */ 9140_ACEOF 9141cat confdefs.h >>conftest.$ac_ext 9142cat >>conftest.$ac_ext <<_ACEOF 9143/* end confdefs.h. */ 9144#include <X11/Xlib.h> 9145int 9146main () 9147{ 9148XrmInitialize(); 9149 ; 9150 return 0; 9151} 9152_ACEOF 9153rm -f conftest.$ac_objext conftest$ac_exeext 9154if { (ac_try="$ac_link" 9155case "(($ac_try" in 9156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9157 *) ac_try_echo=$ac_try;; 9158esac 9159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9160 (eval "$ac_link") 2>conftest.er1 9161 ac_status=$? 9162 grep -v '^ *+' conftest.er1 >conftest.err 9163 rm -f conftest.er1 9164 cat conftest.err >&5 9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9166 (exit $ac_status); } && { 9167 test -z "$ac_c_werror_flag" || 9168 test ! -s conftest.err 9169 } && test -s conftest$ac_exeext && 9170 $as_test_x conftest$ac_exeext; then 9171 tcl_cv_lib_x11_64=yes 9172else 9173 echo "$as_me: failed program was:" >&5 9174sed 's/^/| /' conftest.$ac_ext >&5 9175 9176 tcl_cv_lib_x11_64=no 9177fi 9178 9179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9180 conftest$ac_exeext conftest.$ac_ext 9181 for v in CFLAGS CPPFLAGS LDFLAGS; do 9182 eval $v'="$hold_'$v'"' 9183 done 9184fi 9185{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9186echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9187 9188fi 9189 9190 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9191 9192 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9193echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9194if test "${tcl_cv_lib_tk_64+set}" = set; then 9195 echo $ECHO_N "(cached) $ECHO_C" >&6 9196else 9197 9198 for v in CFLAGS CPPFLAGS LDFLAGS; do 9199 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9200 done 9201 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9202 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9203 cat >conftest.$ac_ext <<_ACEOF 9204/* confdefs.h. */ 9205_ACEOF 9206cat confdefs.h >>conftest.$ac_ext 9207cat >>conftest.$ac_ext <<_ACEOF 9208/* end confdefs.h. */ 9209#include <tk.h> 9210int 9211main () 9212{ 9213Tk_InitStubs(NULL, "", 0); 9214 ; 9215 return 0; 9216} 9217_ACEOF 9218rm -f conftest.$ac_objext conftest$ac_exeext 9219if { (ac_try="$ac_link" 9220case "(($ac_try" in 9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9222 *) ac_try_echo=$ac_try;; 9223esac 9224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9225 (eval "$ac_link") 2>conftest.er1 9226 ac_status=$? 9227 grep -v '^ *+' conftest.er1 >conftest.err 9228 rm -f conftest.er1 9229 cat conftest.err >&5 9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9231 (exit $ac_status); } && { 9232 test -z "$ac_c_werror_flag" || 9233 test ! -s conftest.err 9234 } && test -s conftest$ac_exeext && 9235 $as_test_x conftest$ac_exeext; then 9236 tcl_cv_lib_tk_64=yes 9237else 9238 echo "$as_me: failed program was:" >&5 9239sed 's/^/| /' conftest.$ac_ext >&5 9240 9241 tcl_cv_lib_tk_64=no 9242fi 9243 9244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9245 conftest$ac_exeext conftest.$ac_ext 9246 for v in CFLAGS CPPFLAGS LDFLAGS; do 9247 eval $v'="$hold_'$v'"' 9248 done 9249fi 9250{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9251echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9252 9253fi 9254 9255 # remove 64-bit arch flags from CFLAGS et al. if configuration 9256 # does not support 64-bit. 9257 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9258 9259 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9260echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9261 for v in CFLAGS CPPFLAGS LDFLAGS; do 9262 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9263 done 9264fi 9265 9266 9267fi 9268 9269 ;; 9270 OS/390-*) 9271 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9272 9273cat >>confdefs.h <<\_ACEOF 9274#define _OE_SOCKETS 1 9275_ACEOF 9276 9277 ;; 9278 OSF1-V*) 9279 # Digital OSF/1 9280 SHLIB_CFLAGS="" 9281 if test "$SHARED_BUILD" = 1; then 9282 9283 SHLIB_LD='ld -shared -expect_unresolved "*"' 9284 9285else 9286 9287 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9288 9289fi 9290 9291 SHLIB_SUFFIX=".so" 9292 if test $doRpath = yes; then 9293 9294 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9295 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9296fi 9297 9298 if test "$GCC" = yes; then 9299 CFLAGS="$CFLAGS -mieee" 9300else 9301 9302 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9303fi 9304 9305 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9306 if test "${TCL_THREADS}" = 1; then 9307 9308 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9309 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9310 LIBS=`echo $LIBS | sed s/-lpthreads//` 9311 if test "$GCC" = yes; then 9312 9313 LIBS="$LIBS -lpthread -lmach -lexc" 9314 9315else 9316 9317 CFLAGS="$CFLAGS -pthread" 9318 LDFLAGS="$LDFLAGS -pthread" 9319 9320fi 9321 9322 9323fi 9324 9325 ;; 9326 QNX-6*) 9327 # QNX RTP 9328 # This may work for all QNX, but it was only reported for v6. 9329 SHLIB_CFLAGS="-fPIC" 9330 SHLIB_LD="ld -Bshareable -x" 9331 SHLIB_LD_LIBS="" 9332 SHLIB_SUFFIX=".so" 9333 CC_SEARCH_FLAGS="" 9334 LD_SEARCH_FLAGS="" 9335 ;; 9336 SCO_SV-3.2*) 9337 if test "$GCC" = yes; then 9338 9339 SHLIB_CFLAGS="-fPIC -melf" 9340 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9341 9342else 9343 9344 SHLIB_CFLAGS="-Kpic -belf" 9345 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9346 9347fi 9348 9349 SHLIB_LD="ld -G" 9350 SHLIB_LD_LIBS="" 9351 SHLIB_SUFFIX=".so" 9352 CC_SEARCH_FLAGS="" 9353 LD_SEARCH_FLAGS="" 9354 ;; 9355 SunOS-5.[0-6]) 9356 # Careful to not let 5.10+ fall into this case 9357 9358 # Note: If _REENTRANT isn't defined, then Solaris 9359 # won't define thread-safe library routines. 9360 9361 9362cat >>confdefs.h <<\_ACEOF 9363#define _REENTRANT 1 9364_ACEOF 9365 9366 9367cat >>confdefs.h <<\_ACEOF 9368#define _POSIX_PTHREAD_SEMANTICS 1 9369_ACEOF 9370 9371 9372 SHLIB_CFLAGS="-KPIC" 9373 SHLIB_SUFFIX=".so" 9374 if test "$GCC" = yes; then 9375 9376 SHLIB_LD='${CC} -shared' 9377 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9378 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9379 9380else 9381 9382 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9383 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9384 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9385 9386fi 9387 9388 ;; 9389 SunOS-5*) 9390 # Note: If _REENTRANT isn't defined, then Solaris 9391 # won't define thread-safe library routines. 9392 9393 9394cat >>confdefs.h <<\_ACEOF 9395#define _REENTRANT 1 9396_ACEOF 9397 9398 9399cat >>confdefs.h <<\_ACEOF 9400#define _POSIX_PTHREAD_SEMANTICS 1 9401_ACEOF 9402 9403 9404 SHLIB_CFLAGS="-KPIC" 9405 9406 # Check to enable 64-bit flags for compiler/linker 9407 if test "$do64bit" = yes; then 9408 9409 arch=`isainfo` 9410 if test "$arch" = "sparcv9 sparc"; then 9411 9412 if test "$GCC" = yes; then 9413 9414 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9415 9416 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9417echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9418 9419else 9420 9421 do64bit_ok=yes 9422 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9423 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9424 SHLIB_CFLAGS="-fPIC" 9425 9426fi 9427 9428 9429else 9430 9431 do64bit_ok=yes 9432 if test "$do64bitVIS" = yes; then 9433 9434 CFLAGS="$CFLAGS -xarch=v9a" 9435 LDFLAGS_ARCH="-xarch=v9a" 9436 9437else 9438 9439 CFLAGS="$CFLAGS -xarch=v9" 9440 LDFLAGS_ARCH="-xarch=v9" 9441 9442fi 9443 9444 # Solaris 64 uses this as well 9445 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9446 9447fi 9448 9449 9450else 9451 if test "$arch" = "amd64 i386"; then 9452 9453 if test "$GCC" = yes; then 9454 9455 case $system in 9456 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9457 do64bit_ok=yes 9458 CFLAGS="$CFLAGS -m64" 9459 LDFLAGS="$LDFLAGS -m64";; 9460 *) 9461 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9462echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9463 esac 9464 9465else 9466 9467 do64bit_ok=yes 9468 case $system in 9469 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9470 CFLAGS="$CFLAGS -m64" 9471 LDFLAGS="$LDFLAGS -m64";; 9472 *) 9473 CFLAGS="$CFLAGS -xarch=amd64" 9474 LDFLAGS="$LDFLAGS -xarch=amd64";; 9475 esac 9476 9477fi 9478 9479 9480else 9481 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9482echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9483fi 9484 9485fi 9486 9487 9488fi 9489 9490 9491 SHLIB_SUFFIX=".so" 9492 if test "$GCC" = yes; then 9493 9494 SHLIB_LD='${CC} -shared' 9495 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9496 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9497 if test "$do64bit_ok" = yes; then 9498 9499 if test "$arch" = "sparcv9 sparc"; then 9500 9501 # We need to specify -static-libgcc or we need to 9502 # add the path to the sparv9 libgcc. 9503 # JH: static-libgcc is necessary for core Tcl, but may 9504 # not be necessary for extensions. 9505 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9506 # for finding sparcv9 libgcc, get the regular libgcc 9507 # path, remove so name and append 'sparcv9' 9508 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9509 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9510 9511else 9512 if test "$arch" = "amd64 i386"; then 9513 9514 # JH: static-libgcc is necessary for core Tcl, but may 9515 # not be necessary for extensions. 9516 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9517 9518fi 9519 9520fi 9521 9522 9523fi 9524 9525 9526else 9527 9528 case $system in 9529 SunOS-5.[1-9][0-9]*) 9530 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9531 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9532 *) 9533 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9534 esac 9535 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9536 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9537 9538fi 9539 9540 ;; 9541 esac 9542 9543 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9544 9545 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9546echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9547 9548fi 9549 9550 9551 9552 9553 # Add in the arch flags late to ensure it wasn't removed. 9554 # Not necessary in TEA, but this is aligned with core 9555 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9556 9557 # If we're running gcc, then change the C flags for compiling shared 9558 # libraries to the right flags for gcc, instead of those for the 9559 # standard manufacturer compiler. 9560 9561 if test "$GCC" = yes; then 9562 9563 case $system in 9564 AIX-*) ;; 9565 BSD/OS*) ;; 9566 CYGWIN_*) ;; 9567 IRIX*) ;; 9568 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 9569 Darwin-*) ;; 9570 SCO_SV-3.2*) ;; 9571 windows) ;; 9572 *) SHLIB_CFLAGS="-fPIC" ;; 9573 esac 9574fi 9575 9576 9577 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9578 9579 9580cat >>confdefs.h <<\_ACEOF 9581#define MODULE_SCOPE extern 9582_ACEOF 9583 9584 9585cat >>confdefs.h <<\_ACEOF 9586#define NO_VIZ 9587_ACEOF 9588 9589 9590fi 9591 9592 9593 if test "$SHARED_LIB_SUFFIX" = ""; then 9594 9595 # TEA specific: use PACKAGE_VERSION instead of VERSION 9596 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9597fi 9598 9599 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9600 9601 # TEA specific: use PACKAGE_VERSION instead of VERSION 9602 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9603fi 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 # These must be called after we do the basic CFLAGS checks and 9619 # verify any possible 64-bit or similar switches are necessary 9620 9621 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9622echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 9623 tcl_flags="" 9624 9625 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9626 echo $ECHO_N "(cached) $ECHO_C" >&6 9627else 9628 cat >conftest.$ac_ext <<_ACEOF 9629/* confdefs.h. */ 9630_ACEOF 9631cat confdefs.h >>conftest.$ac_ext 9632cat >>conftest.$ac_ext <<_ACEOF 9633/* end confdefs.h. */ 9634#include <stdlib.h> 9635int 9636main () 9637{ 9638char *p = (char *)strtoll; char *q = (char *)strtoull; 9639 ; 9640 return 0; 9641} 9642_ACEOF 9643rm -f conftest.$ac_objext 9644if { (ac_try="$ac_compile" 9645case "(($ac_try" in 9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9647 *) ac_try_echo=$ac_try;; 9648esac 9649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9650 (eval "$ac_compile") 2>conftest.er1 9651 ac_status=$? 9652 grep -v '^ *+' conftest.er1 >conftest.err 9653 rm -f conftest.er1 9654 cat conftest.err >&5 9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9656 (exit $ac_status); } && { 9657 test -z "$ac_c_werror_flag" || 9658 test ! -s conftest.err 9659 } && test -s conftest.$ac_objext; then 9660 tcl_cv_flag__isoc99_source=no 9661else 9662 echo "$as_me: failed program was:" >&5 9663sed 's/^/| /' conftest.$ac_ext >&5 9664 9665 cat >conftest.$ac_ext <<_ACEOF 9666/* confdefs.h. */ 9667_ACEOF 9668cat confdefs.h >>conftest.$ac_ext 9669cat >>conftest.$ac_ext <<_ACEOF 9670/* end confdefs.h. */ 9671#define _ISOC99_SOURCE 1 9672#include <stdlib.h> 9673int 9674main () 9675{ 9676char *p = (char *)strtoll; char *q = (char *)strtoull; 9677 ; 9678 return 0; 9679} 9680_ACEOF 9681rm -f conftest.$ac_objext 9682if { (ac_try="$ac_compile" 9683case "(($ac_try" in 9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9685 *) ac_try_echo=$ac_try;; 9686esac 9687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9688 (eval "$ac_compile") 2>conftest.er1 9689 ac_status=$? 9690 grep -v '^ *+' conftest.er1 >conftest.err 9691 rm -f conftest.er1 9692 cat conftest.err >&5 9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9694 (exit $ac_status); } && { 9695 test -z "$ac_c_werror_flag" || 9696 test ! -s conftest.err 9697 } && test -s conftest.$ac_objext; then 9698 tcl_cv_flag__isoc99_source=yes 9699else 9700 echo "$as_me: failed program was:" >&5 9701sed 's/^/| /' conftest.$ac_ext >&5 9702 9703 tcl_cv_flag__isoc99_source=no 9704fi 9705 9706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9707fi 9708 9709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9710fi 9711 9712 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9713 9714cat >>confdefs.h <<\_ACEOF 9715#define _ISOC99_SOURCE 1 9716_ACEOF 9717 9718 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9719 fi 9720 9721 9722 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9723 echo $ECHO_N "(cached) $ECHO_C" >&6 9724else 9725 cat >conftest.$ac_ext <<_ACEOF 9726/* confdefs.h. */ 9727_ACEOF 9728cat confdefs.h >>conftest.$ac_ext 9729cat >>conftest.$ac_ext <<_ACEOF 9730/* end confdefs.h. */ 9731#include <sys/stat.h> 9732int 9733main () 9734{ 9735struct stat64 buf; int i = stat64("/", &buf); 9736 ; 9737 return 0; 9738} 9739_ACEOF 9740rm -f conftest.$ac_objext 9741if { (ac_try="$ac_compile" 9742case "(($ac_try" in 9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9744 *) ac_try_echo=$ac_try;; 9745esac 9746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9747 (eval "$ac_compile") 2>conftest.er1 9748 ac_status=$? 9749 grep -v '^ *+' conftest.er1 >conftest.err 9750 rm -f conftest.er1 9751 cat conftest.err >&5 9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9753 (exit $ac_status); } && { 9754 test -z "$ac_c_werror_flag" || 9755 test ! -s conftest.err 9756 } && test -s conftest.$ac_objext; then 9757 tcl_cv_flag__largefile64_source=no 9758else 9759 echo "$as_me: failed program was:" >&5 9760sed 's/^/| /' conftest.$ac_ext >&5 9761 9762 cat >conftest.$ac_ext <<_ACEOF 9763/* confdefs.h. */ 9764_ACEOF 9765cat confdefs.h >>conftest.$ac_ext 9766cat >>conftest.$ac_ext <<_ACEOF 9767/* end confdefs.h. */ 9768#define _LARGEFILE64_SOURCE 1 9769#include <sys/stat.h> 9770int 9771main () 9772{ 9773struct stat64 buf; int i = stat64("/", &buf); 9774 ; 9775 return 0; 9776} 9777_ACEOF 9778rm -f conftest.$ac_objext 9779if { (ac_try="$ac_compile" 9780case "(($ac_try" in 9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9782 *) ac_try_echo=$ac_try;; 9783esac 9784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9785 (eval "$ac_compile") 2>conftest.er1 9786 ac_status=$? 9787 grep -v '^ *+' conftest.er1 >conftest.err 9788 rm -f conftest.er1 9789 cat conftest.err >&5 9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9791 (exit $ac_status); } && { 9792 test -z "$ac_c_werror_flag" || 9793 test ! -s conftest.err 9794 } && test -s conftest.$ac_objext; then 9795 tcl_cv_flag__largefile64_source=yes 9796else 9797 echo "$as_me: failed program was:" >&5 9798sed 's/^/| /' conftest.$ac_ext >&5 9799 9800 tcl_cv_flag__largefile64_source=no 9801fi 9802 9803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9804fi 9805 9806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9807fi 9808 9809 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9810 9811cat >>confdefs.h <<\_ACEOF 9812#define _LARGEFILE64_SOURCE 1 9813_ACEOF 9814 9815 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9816 fi 9817 9818 9819 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9820 echo $ECHO_N "(cached) $ECHO_C" >&6 9821else 9822 cat >conftest.$ac_ext <<_ACEOF 9823/* confdefs.h. */ 9824_ACEOF 9825cat confdefs.h >>conftest.$ac_ext 9826cat >>conftest.$ac_ext <<_ACEOF 9827/* end confdefs.h. */ 9828#include <sys/stat.h> 9829int 9830main () 9831{ 9832char *p = (char *)open64; 9833 ; 9834 return 0; 9835} 9836_ACEOF 9837rm -f conftest.$ac_objext 9838if { (ac_try="$ac_compile" 9839case "(($ac_try" in 9840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9841 *) ac_try_echo=$ac_try;; 9842esac 9843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9844 (eval "$ac_compile") 2>conftest.er1 9845 ac_status=$? 9846 grep -v '^ *+' conftest.er1 >conftest.err 9847 rm -f conftest.er1 9848 cat conftest.err >&5 9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9850 (exit $ac_status); } && { 9851 test -z "$ac_c_werror_flag" || 9852 test ! -s conftest.err 9853 } && test -s conftest.$ac_objext; then 9854 tcl_cv_flag__largefile_source64=no 9855else 9856 echo "$as_me: failed program was:" >&5 9857sed 's/^/| /' conftest.$ac_ext >&5 9858 9859 cat >conftest.$ac_ext <<_ACEOF 9860/* confdefs.h. */ 9861_ACEOF 9862cat confdefs.h >>conftest.$ac_ext 9863cat >>conftest.$ac_ext <<_ACEOF 9864/* end confdefs.h. */ 9865#define _LARGEFILE_SOURCE64 1 9866#include <sys/stat.h> 9867int 9868main () 9869{ 9870char *p = (char *)open64; 9871 ; 9872 return 0; 9873} 9874_ACEOF 9875rm -f conftest.$ac_objext 9876if { (ac_try="$ac_compile" 9877case "(($ac_try" in 9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9879 *) ac_try_echo=$ac_try;; 9880esac 9881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9882 (eval "$ac_compile") 2>conftest.er1 9883 ac_status=$? 9884 grep -v '^ *+' conftest.er1 >conftest.err 9885 rm -f conftest.er1 9886 cat conftest.err >&5 9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9888 (exit $ac_status); } && { 9889 test -z "$ac_c_werror_flag" || 9890 test ! -s conftest.err 9891 } && test -s conftest.$ac_objext; then 9892 tcl_cv_flag__largefile_source64=yes 9893else 9894 echo "$as_me: failed program was:" >&5 9895sed 's/^/| /' conftest.$ac_ext >&5 9896 9897 tcl_cv_flag__largefile_source64=no 9898fi 9899 9900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9901fi 9902 9903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9904fi 9905 9906 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9907 9908cat >>confdefs.h <<\_ACEOF 9909#define _LARGEFILE_SOURCE64 1 9910_ACEOF 9911 9912 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9913 fi 9914 9915 if test "x${tcl_flags}" = "x" ; then 9916 { echo "$as_me:$LINENO: result: none" >&5 9917echo "${ECHO_T}none" >&6; } 9918 else 9919 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9920echo "${ECHO_T}${tcl_flags}" >&6; } 9921 fi 9922 9923 9924 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9925echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 9926 if test "${tcl_cv_type_64bit+set}" = set; then 9927 echo $ECHO_N "(cached) $ECHO_C" >&6 9928else 9929 9930 tcl_cv_type_64bit=none 9931 # See if the compiler knows natively about __int64 9932 cat >conftest.$ac_ext <<_ACEOF 9933/* confdefs.h. */ 9934_ACEOF 9935cat confdefs.h >>conftest.$ac_ext 9936cat >>conftest.$ac_ext <<_ACEOF 9937/* end confdefs.h. */ 9938 9939int 9940main () 9941{ 9942__int64 value = (__int64) 0; 9943 ; 9944 return 0; 9945} 9946_ACEOF 9947rm -f conftest.$ac_objext 9948if { (ac_try="$ac_compile" 9949case "(($ac_try" in 9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9951 *) ac_try_echo=$ac_try;; 9952esac 9953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9954 (eval "$ac_compile") 2>conftest.er1 9955 ac_status=$? 9956 grep -v '^ *+' conftest.er1 >conftest.err 9957 rm -f conftest.er1 9958 cat conftest.err >&5 9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9960 (exit $ac_status); } && { 9961 test -z "$ac_c_werror_flag" || 9962 test ! -s conftest.err 9963 } && test -s conftest.$ac_objext; then 9964 tcl_type_64bit=__int64 9965else 9966 echo "$as_me: failed program was:" >&5 9967sed 's/^/| /' conftest.$ac_ext >&5 9968 9969 tcl_type_64bit="long long" 9970fi 9971 9972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9973 # See if we should use long anyway Note that we substitute in the 9974 # type that is our current guess for a 64-bit type inside this check 9975 # program, so it should be modified only carefully... 9976 cat >conftest.$ac_ext <<_ACEOF 9977/* confdefs.h. */ 9978_ACEOF 9979cat confdefs.h >>conftest.$ac_ext 9980cat >>conftest.$ac_ext <<_ACEOF 9981/* end confdefs.h. */ 9982 9983int 9984main () 9985{ 9986switch (0) { 9987 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9988 } 9989 ; 9990 return 0; 9991} 9992_ACEOF 9993rm -f conftest.$ac_objext 9994if { (ac_try="$ac_compile" 9995case "(($ac_try" in 9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9997 *) ac_try_echo=$ac_try;; 9998esac 9999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10000 (eval "$ac_compile") 2>conftest.er1 10001 ac_status=$? 10002 grep -v '^ *+' conftest.er1 >conftest.err 10003 rm -f conftest.er1 10004 cat conftest.err >&5 10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10006 (exit $ac_status); } && { 10007 test -z "$ac_c_werror_flag" || 10008 test ! -s conftest.err 10009 } && test -s conftest.$ac_objext; then 10010 tcl_cv_type_64bit=${tcl_type_64bit} 10011else 10012 echo "$as_me: failed program was:" >&5 10013sed 's/^/| /' conftest.$ac_ext >&5 10014 10015 10016fi 10017 10018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10019fi 10020 10021 if test "${tcl_cv_type_64bit}" = none ; then 10022 10023cat >>confdefs.h <<\_ACEOF 10024#define TCL_WIDE_INT_IS_LONG 1 10025_ACEOF 10026 10027 { echo "$as_me:$LINENO: result: using long" >&5 10028echo "${ECHO_T}using long" >&6; } 10029 elif test "${tcl_cv_type_64bit}" = "__int64" \ 10030 -a "${TEA_PLATFORM}" = "windows" ; then 10031 # TEA specific: We actually want to use the default tcl.h checks in 10032 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 10033 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 10034echo "${ECHO_T}using Tcl header defaults" >&6; } 10035 else 10036 10037cat >>confdefs.h <<_ACEOF 10038#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 10039_ACEOF 10040 10041 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 10042echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 10043 10044 # Now check for auxiliary declarations 10045 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 10046echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 10047if test "${tcl_cv_struct_dirent64+set}" = set; then 10048 echo $ECHO_N "(cached) $ECHO_C" >&6 10049else 10050 10051 cat >conftest.$ac_ext <<_ACEOF 10052/* confdefs.h. */ 10053_ACEOF 10054cat confdefs.h >>conftest.$ac_ext 10055cat >>conftest.$ac_ext <<_ACEOF 10056/* end confdefs.h. */ 10057#include <sys/types.h> 10058#include <sys/dirent.h> 10059int 10060main () 10061{ 10062struct dirent64 p; 10063 ; 10064 return 0; 10065} 10066_ACEOF 10067rm -f conftest.$ac_objext 10068if { (ac_try="$ac_compile" 10069case "(($ac_try" in 10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10071 *) ac_try_echo=$ac_try;; 10072esac 10073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10074 (eval "$ac_compile") 2>conftest.er1 10075 ac_status=$? 10076 grep -v '^ *+' conftest.er1 >conftest.err 10077 rm -f conftest.er1 10078 cat conftest.err >&5 10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10080 (exit $ac_status); } && { 10081 test -z "$ac_c_werror_flag" || 10082 test ! -s conftest.err 10083 } && test -s conftest.$ac_objext; then 10084 tcl_cv_struct_dirent64=yes 10085else 10086 echo "$as_me: failed program was:" >&5 10087sed 's/^/| /' conftest.$ac_ext >&5 10088 10089 tcl_cv_struct_dirent64=no 10090fi 10091 10092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10093fi 10094{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10095echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 10096 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10097 10098cat >>confdefs.h <<\_ACEOF 10099#define HAVE_STRUCT_DIRENT64 1 10100_ACEOF 10101 10102 fi 10103 10104 { echo "$as_me:$LINENO: checking for struct stat64" >&5 10105echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 10106if test "${tcl_cv_struct_stat64+set}" = set; then 10107 echo $ECHO_N "(cached) $ECHO_C" >&6 10108else 10109 10110 cat >conftest.$ac_ext <<_ACEOF 10111/* confdefs.h. */ 10112_ACEOF 10113cat confdefs.h >>conftest.$ac_ext 10114cat >>conftest.$ac_ext <<_ACEOF 10115/* end confdefs.h. */ 10116#include <sys/stat.h> 10117int 10118main () 10119{ 10120struct stat64 p; 10121 10122 ; 10123 return 0; 10124} 10125_ACEOF 10126rm -f conftest.$ac_objext 10127if { (ac_try="$ac_compile" 10128case "(($ac_try" in 10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10130 *) ac_try_echo=$ac_try;; 10131esac 10132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10133 (eval "$ac_compile") 2>conftest.er1 10134 ac_status=$? 10135 grep -v '^ *+' conftest.er1 >conftest.err 10136 rm -f conftest.er1 10137 cat conftest.err >&5 10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10139 (exit $ac_status); } && { 10140 test -z "$ac_c_werror_flag" || 10141 test ! -s conftest.err 10142 } && test -s conftest.$ac_objext; then 10143 tcl_cv_struct_stat64=yes 10144else 10145 echo "$as_me: failed program was:" >&5 10146sed 's/^/| /' conftest.$ac_ext >&5 10147 10148 tcl_cv_struct_stat64=no 10149fi 10150 10151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10152fi 10153{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10154echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10155 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10156 10157cat >>confdefs.h <<\_ACEOF 10158#define HAVE_STRUCT_STAT64 1 10159_ACEOF 10160 10161 fi 10162 10163 10164 10165for ac_func in open64 lseek64 10166do 10167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10168{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10170if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10171 echo $ECHO_N "(cached) $ECHO_C" >&6 10172else 10173 cat >conftest.$ac_ext <<_ACEOF 10174/* confdefs.h. */ 10175_ACEOF 10176cat confdefs.h >>conftest.$ac_ext 10177cat >>conftest.$ac_ext <<_ACEOF 10178/* end confdefs.h. */ 10179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10180 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10181#define $ac_func innocuous_$ac_func 10182 10183/* System header to define __stub macros and hopefully few prototypes, 10184 which can conflict with char $ac_func (); below. 10185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10186 <limits.h> exists even on freestanding compilers. */ 10187 10188#ifdef __STDC__ 10189# include <limits.h> 10190#else 10191# include <assert.h> 10192#endif 10193 10194#undef $ac_func 10195 10196/* Override any GCC internal prototype to avoid an error. 10197 Use char because int might match the return type of a GCC 10198 builtin and then its argument prototype would still apply. */ 10199#ifdef __cplusplus 10200extern "C" 10201#endif 10202char $ac_func (); 10203/* The GNU C library defines this for functions which it implements 10204 to always fail with ENOSYS. Some functions are actually named 10205 something starting with __ and the normal name is an alias. */ 10206#if defined __stub_$ac_func || defined __stub___$ac_func 10207choke me 10208#endif 10209 10210int 10211main () 10212{ 10213return $ac_func (); 10214 ; 10215 return 0; 10216} 10217_ACEOF 10218rm -f conftest.$ac_objext conftest$ac_exeext 10219if { (ac_try="$ac_link" 10220case "(($ac_try" in 10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10222 *) ac_try_echo=$ac_try;; 10223esac 10224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10225 (eval "$ac_link") 2>conftest.er1 10226 ac_status=$? 10227 grep -v '^ *+' conftest.er1 >conftest.err 10228 rm -f conftest.er1 10229 cat conftest.err >&5 10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10231 (exit $ac_status); } && { 10232 test -z "$ac_c_werror_flag" || 10233 test ! -s conftest.err 10234 } && test -s conftest$ac_exeext && 10235 $as_test_x conftest$ac_exeext; then 10236 eval "$as_ac_var=yes" 10237else 10238 echo "$as_me: failed program was:" >&5 10239sed 's/^/| /' conftest.$ac_ext >&5 10240 10241 eval "$as_ac_var=no" 10242fi 10243 10244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10245 conftest$ac_exeext conftest.$ac_ext 10246fi 10247ac_res=`eval echo '${'$as_ac_var'}'` 10248 { echo "$as_me:$LINENO: result: $ac_res" >&5 10249echo "${ECHO_T}$ac_res" >&6; } 10250if test `eval echo '${'$as_ac_var'}'` = yes; then 10251 cat >>confdefs.h <<_ACEOF 10252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10253_ACEOF 10254 10255fi 10256done 10257 10258 { echo "$as_me:$LINENO: checking for off64_t" >&5 10259echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10260 if test "${tcl_cv_type_off64_t+set}" = set; then 10261 echo $ECHO_N "(cached) $ECHO_C" >&6 10262else 10263 10264 cat >conftest.$ac_ext <<_ACEOF 10265/* confdefs.h. */ 10266_ACEOF 10267cat confdefs.h >>conftest.$ac_ext 10268cat >>conftest.$ac_ext <<_ACEOF 10269/* end confdefs.h. */ 10270#include <sys/types.h> 10271int 10272main () 10273{ 10274off64_t offset; 10275 10276 ; 10277 return 0; 10278} 10279_ACEOF 10280rm -f conftest.$ac_objext 10281if { (ac_try="$ac_compile" 10282case "(($ac_try" in 10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10284 *) ac_try_echo=$ac_try;; 10285esac 10286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10287 (eval "$ac_compile") 2>conftest.er1 10288 ac_status=$? 10289 grep -v '^ *+' conftest.er1 >conftest.err 10290 rm -f conftest.er1 10291 cat conftest.err >&5 10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10293 (exit $ac_status); } && { 10294 test -z "$ac_c_werror_flag" || 10295 test ! -s conftest.err 10296 } && test -s conftest.$ac_objext; then 10297 tcl_cv_type_off64_t=yes 10298else 10299 echo "$as_me: failed program was:" >&5 10300sed 's/^/| /' conftest.$ac_ext >&5 10301 10302 tcl_cv_type_off64_t=no 10303fi 10304 10305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10306fi 10307 10308 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10309 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10310 test "x${ac_cv_func_open64}" = "xyes" ; then 10311 10312cat >>confdefs.h <<\_ACEOF 10313#define HAVE_TYPE_OFF64_T 1 10314_ACEOF 10315 10316 { echo "$as_me:$LINENO: result: yes" >&5 10317echo "${ECHO_T}yes" >&6; } 10318 else 10319 { echo "$as_me:$LINENO: result: no" >&5 10320echo "${ECHO_T}no" >&6; } 10321 fi 10322 fi 10323 10324 10325 10326#-------------------------------------------------------------------- 10327# Set the default compiler switches based on the --enable-symbols option. 10328#-------------------------------------------------------------------- 10329 10330 10331 10332 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10333echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10334 # Check whether --enable-symbols was given. 10335if test "${enable_symbols+set}" = set; then 10336 enableval=$enable_symbols; tcl_ok=$enableval 10337else 10338 tcl_ok=no 10339fi 10340 10341 DBGX="" 10342 if test "$tcl_ok" = "no"; then 10343 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10344 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10345 { echo "$as_me:$LINENO: result: no" >&5 10346echo "${ECHO_T}no" >&6; } 10347 else 10348 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10349 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10350 if test "$tcl_ok" = "yes"; then 10351 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10352echo "${ECHO_T}yes (standard debugging)" >&6; } 10353 fi 10354 fi 10355 # TEA specific: 10356 if test "${TEA_PLATFORM}" != "windows" ; then 10357 LDFLAGS_DEFAULT="${LDFLAGS}" 10358 fi 10359 10360 10361 10362 10363 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10364 10365cat >>confdefs.h <<\_ACEOF 10366#define TCL_MEM_DEBUG 1 10367_ACEOF 10368 10369 fi 10370 10371 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10372 if test "$tcl_ok" = "all"; then 10373 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10374echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10375 else 10376 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10377echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10378 fi 10379 fi 10380 10381 10382#-------------------------------------------------------------------- 10383# Everyone should be linking against the Tcl stub library. If you 10384# can't for some reason, remove this definition. If you aren't using 10385# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10386# link against the non-stubbed Tcl library. Add Tk too if necessary. 10387#-------------------------------------------------------------------- 10388 10389 10390cat >>confdefs.h <<\_ACEOF 10391#define USE_TCL_STUBS 1 10392_ACEOF 10393 10394 10395#-------------------------------------------------------------------- 10396# This macro generates a line to use when building a library. It 10397# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10398# and TEA_LOAD_TCLCONFIG macros above. 10399#-------------------------------------------------------------------- 10400 10401 10402 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10403 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10404 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10405 cat >conftest.$ac_ext <<_ACEOF 10406/* confdefs.h. */ 10407_ACEOF 10408cat confdefs.h >>conftest.$ac_ext 10409cat >>conftest.$ac_ext <<_ACEOF 10410/* end confdefs.h. */ 10411 10412#if defined(_MSC_VER) && _MSC_VER >= 1400 10413print("manifest needed") 10414#endif 10415 10416_ACEOF 10417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10418 $EGREP "manifest needed" >/dev/null 2>&1; then 10419 10420 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 10421 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 10422 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 10423 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 10424 10425 CLEANFILES="$CLEANFILES *.manifest" 10426 10427 10428fi 10429rm -f -r conftest* 10430 10431 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 10432 else 10433 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 10434 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 10435 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 10436 fi 10437 10438 if test "${SHARED_BUILD}" = "1" ; then 10439 MAKE_LIB="${MAKE_SHARED_LIB} " 10440 else 10441 MAKE_LIB="${MAKE_STATIC_LIB} " 10442 fi 10443 10444 #-------------------------------------------------------------------- 10445 # Shared libraries and static libraries have different names. 10446 # Use the double eval to make sure any variables in the suffix is 10447 # substituted. (@@@ Might not be necessary anymore) 10448 #-------------------------------------------------------------------- 10449 10450 if test "${TEA_PLATFORM}" = "windows" ; then 10451 if test "${SHARED_BUILD}" = "1" ; then 10452 # We force the unresolved linking of symbols that are really in 10453 # the private libraries of Tcl and Tk. 10454 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 10455 if test x"${TK_BIN_DIR}" != x ; then 10456 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 10457 fi 10458 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10459 else 10460 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10461 fi 10462 # Some packages build their own stubs libraries 10463 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10464 if test "$GCC" = "yes"; then 10465 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 10466 fi 10467 # These aren't needed on Windows (either MSVC or gcc) 10468 RANLIB=: 10469 RANLIB_STUB=: 10470 else 10471 RANLIB_STUB="${RANLIB}" 10472 if test "${SHARED_BUILD}" = "1" ; then 10473 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 10474 if test x"${TK_BIN_DIR}" != x ; then 10475 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 10476 fi 10477 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10478 RANLIB=: 10479 else 10480 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10481 fi 10482 # Some packages build their own stubs libraries 10483 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10484 fi 10485 10486 # These are escaped so that only CFLAGS is picked up at configure time. 10487 # The other values will be substituted at make time. 10488 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 10489 if test "${SHARED_BUILD}" = "1" ; then 10490 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 10491 fi 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502#-------------------------------------------------------------------- 10503# Determine the name of the tclsh and/or wish executables in the 10504# Tcl and Tk build directories or the location they were installed 10505# into. These paths are used to support running test cases only, 10506# the Makefile should not be making use of these paths to generate 10507# a pkgIndex.tcl file or anything else at extension build time. 10508#-------------------------------------------------------------------- 10509 10510 10511 { echo "$as_me:$LINENO: checking for tclsh" >&5 10512echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 10513 if test -f "${TCL_BIN_DIR}/Makefile" ; then 10514 # tclConfig.sh is in Tcl build directory 10515 if test "${TEA_PLATFORM}" = "windows"; then 10516 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10517 else 10518 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 10519 fi 10520 else 10521 # tclConfig.sh is in install location 10522 if test "${TEA_PLATFORM}" = "windows"; then 10523 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10524 else 10525 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 10526 fi 10527 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 10528 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 10529 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 10530 for i in $list ; do 10531 if test -f "$i/${TCLSH_PROG}" ; then 10532 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 10533 break 10534 fi 10535 done 10536 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 10537 fi 10538 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 10539echo "${ECHO_T}${TCLSH_PROG}" >&6; } 10540 10541 10542#TEA_PROG_WISH 10543 10544#-------------------------------------------------------------------- 10545# Finally, substitute all of the various values into the Makefile. 10546# You may alternatively have a special pkgIndex.tcl.in or other files 10547# which require substituting th AC variables in. Include these here. 10548#-------------------------------------------------------------------- 10549 10550ac_config_files="$ac_config_files Makefile pkgIndex.tcl" 10551 10552cat >confcache <<\_ACEOF 10553# This file is a shell script that caches the results of configure 10554# tests run on this system so they can be shared between configure 10555# scripts and configure runs, see configure's option --config-cache. 10556# It is not useful on other systems. If it contains results you don't 10557# want to keep, you may remove or edit it. 10558# 10559# config.status only pays attention to the cache file if you give it 10560# the --recheck option to rerun configure. 10561# 10562# `ac_cv_env_foo' variables (set or unset) will be overridden when 10563# loading this file, other *unset* `ac_cv_foo' will be assigned the 10564# following values. 10565 10566_ACEOF 10567 10568# The following way of writing the cache mishandles newlines in values, 10569# but we know of no workaround that is simple, portable, and efficient. 10570# So, we kill variables containing newlines. 10571# Ultrix sh set writes to stderr and can't be redirected directly, 10572# and sets the high bit in the cache file unless we assign to the vars. 10573( 10574 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10575 eval ac_val=\$$ac_var 10576 case $ac_val in #( 10577 *${as_nl}*) 10578 case $ac_var in #( 10579 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 10580echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 10581 esac 10582 case $ac_var in #( 10583 _ | IFS | as_nl) ;; #( 10584 *) $as_unset $ac_var ;; 10585 esac ;; 10586 esac 10587 done 10588 10589 (set) 2>&1 | 10590 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10591 *${as_nl}ac_space=\ *) 10592 # `set' does not quote correctly, so add quotes (double-quote 10593 # substitution turns \\\\ into \\, and sed turns \\ into \). 10594 sed -n \ 10595 "s/'/'\\\\''/g; 10596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10597 ;; #( 10598 *) 10599 # `set' quotes correctly as required by POSIX, so do not add quotes. 10600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10601 ;; 10602 esac | 10603 sort 10604) | 10605 sed ' 10606 /^ac_cv_env_/b end 10607 t clear 10608 :clear 10609 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10610 t end 10611 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10612 :end' >>confcache 10613if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10614 if test -w "$cache_file"; then 10615 test "x$cache_file" != "x/dev/null" && 10616 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 10617echo "$as_me: updating cache $cache_file" >&6;} 10618 cat confcache >$cache_file 10619 else 10620 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 10621echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10622 fi 10623fi 10624rm -f confcache 10625 10626test "x$prefix" = xNONE && prefix=$ac_default_prefix 10627# Let make expand exec_prefix. 10628test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10629 10630# Transform confdefs.h into DEFS. 10631# Protect against shell expansion while executing Makefile rules. 10632# Protect against Makefile macro expansion. 10633# 10634# If the first sed substitution is executed (which looks for macros that 10635# take arguments), then branch to the quote section. Otherwise, 10636# look for a macro that doesn't take arguments. 10637ac_script=' 10638t clear 10639:clear 10640s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10641t quote 10642s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10643t quote 10644b any 10645:quote 10646s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10647s/\[/\\&/g 10648s/\]/\\&/g 10649s/\$/$$/g 10650H 10651:any 10652${ 10653 g 10654 s/^\n// 10655 s/\n/ /g 10656 p 10657} 10658' 10659DEFS=`sed -n "$ac_script" confdefs.h` 10660 10661 10662ac_libobjs= 10663ac_ltlibobjs= 10664for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10665 # 1. Remove the extension, and $U if already installed. 10666 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10667 ac_i=`echo "$ac_i" | sed "$ac_script"` 10668 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10669 # will be set to the directory where LIBOBJS objects are built. 10670 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10671 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 10672done 10673LIBOBJS=$ac_libobjs 10674 10675LTLIBOBJS=$ac_ltlibobjs 10676 10677 10678CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 10679 10680: ${CONFIG_STATUS=./config.status} 10681ac_clean_files_save=$ac_clean_files 10682ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10683{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10684echo "$as_me: creating $CONFIG_STATUS" >&6;} 10685cat >$CONFIG_STATUS <<_ACEOF 10686#! $SHELL 10687# Generated by $as_me. 10688# Run this file to recreate the current configuration. 10689# Compiler output produced by configure, useful for debugging 10690# configure, is in config.log if it exists. 10691 10692debug=false 10693ac_cs_recheck=false 10694ac_cs_silent=false 10695SHELL=\${CONFIG_SHELL-$SHELL} 10696_ACEOF 10697 10698cat >>$CONFIG_STATUS <<\_ACEOF 10699## --------------------- ## 10700## M4sh Initialization. ## 10701## --------------------- ## 10702 10703# Be more Bourne compatible 10704DUALCASE=1; export DUALCASE # for MKS sh 10705if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10706 emulate sh 10707 NULLCMD=: 10708 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10709 # is contrary to our usage. Disable this feature. 10710 alias -g '${1+"$@"}'='"$@"' 10711 setopt NO_GLOB_SUBST 10712else 10713 case `(set -o) 2>/dev/null` in 10714 *posix*) set -o posix ;; 10715esac 10716 10717fi 10718 10719 10720 10721 10722# PATH needs CR 10723# Avoid depending upon Character Ranges. 10724as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10725as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10726as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10727as_cr_digits='0123456789' 10728as_cr_alnum=$as_cr_Letters$as_cr_digits 10729 10730# The user is always right. 10731if test "${PATH_SEPARATOR+set}" != set; then 10732 echo "#! /bin/sh" >conf$$.sh 10733 echo "exit 0" >>conf$$.sh 10734 chmod +x conf$$.sh 10735 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10736 PATH_SEPARATOR=';' 10737 else 10738 PATH_SEPARATOR=: 10739 fi 10740 rm -f conf$$.sh 10741fi 10742 10743# Support unset when possible. 10744if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10745 as_unset=unset 10746else 10747 as_unset=false 10748fi 10749 10750 10751# IFS 10752# We need space, tab and new line, in precisely that order. Quoting is 10753# there to prevent editors from complaining about space-tab. 10754# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10755# splitting by setting IFS to empty value.) 10756as_nl=' 10757' 10758IFS=" "" $as_nl" 10759 10760# Find who we are. Look in the path if we contain no directory separator. 10761case $0 in 10762 *[\\/]* ) as_myself=$0 ;; 10763 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10764for as_dir in $PATH 10765do 10766 IFS=$as_save_IFS 10767 test -z "$as_dir" && as_dir=. 10768 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10769done 10770IFS=$as_save_IFS 10771 10772 ;; 10773esac 10774# We did not find ourselves, most probably we were run as `sh COMMAND' 10775# in which case we are not to be found in the path. 10776if test "x$as_myself" = x; then 10777 as_myself=$0 10778fi 10779if test ! -f "$as_myself"; then 10780 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10781 { (exit 1); exit 1; } 10782fi 10783 10784# Work around bugs in pre-3.0 UWIN ksh. 10785for as_var in ENV MAIL MAILPATH 10786do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10787done 10788PS1='$ ' 10789PS2='> ' 10790PS4='+ ' 10791 10792# NLS nuisances. 10793for as_var in \ 10794 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 10795 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 10796 LC_TELEPHONE LC_TIME 10797do 10798 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 10799 eval $as_var=C; export $as_var 10800 else 10801 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10802 fi 10803done 10804 10805# Required to use basename. 10806if expr a : '\(a\)' >/dev/null 2>&1 && 10807 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10808 as_expr=expr 10809else 10810 as_expr=false 10811fi 10812 10813if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10814 as_basename=basename 10815else 10816 as_basename=false 10817fi 10818 10819 10820# Name of the executable. 10821as_me=`$as_basename -- "$0" || 10822$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10823 X"$0" : 'X\(//\)$' \| \ 10824 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10825echo X/"$0" | 10826 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10827 s//\1/ 10828 q 10829 } 10830 /^X\/\(\/\/\)$/{ 10831 s//\1/ 10832 q 10833 } 10834 /^X\/\(\/\).*/{ 10835 s//\1/ 10836 q 10837 } 10838 s/.*/./; q'` 10839 10840# CDPATH. 10841$as_unset CDPATH 10842 10843 10844 10845 as_lineno_1=$LINENO 10846 as_lineno_2=$LINENO 10847 test "x$as_lineno_1" != "x$as_lineno_2" && 10848 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 10849 10850 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10851 # uniformly replaced by the line number. The first 'sed' inserts a 10852 # line-number line after each line using $LINENO; the second 'sed' 10853 # does the real work. The second script uses 'N' to pair each 10854 # line-number line with the line containing $LINENO, and appends 10855 # trailing '-' during substitution so that $LINENO is not a special 10856 # case at line end. 10857 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10858 # scripts with optimization help from Paolo Bonzini. Blame Lee 10859 # E. McMahon (1931-1989) for sed's syntax. :-) 10860 sed -n ' 10861 p 10862 /[$]LINENO/= 10863 ' <$as_myself | 10864 sed ' 10865 s/[$]LINENO.*/&-/ 10866 t lineno 10867 b 10868 :lineno 10869 N 10870 :loop 10871 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 10872 t loop 10873 s/-\n.*// 10874 ' >$as_me.lineno && 10875 chmod +x "$as_me.lineno" || 10876 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 10877 { (exit 1); exit 1; }; } 10878 10879 # Don't try to exec as it changes $[0], causing all sort of problems 10880 # (the dirname of $[0] is not the place where we might find the 10881 # original and so on. Autoconf is especially sensitive to this). 10882 . "./$as_me.lineno" 10883 # Exit status is that of the last command. 10884 exit 10885} 10886 10887 10888if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10889 as_dirname=dirname 10890else 10891 as_dirname=false 10892fi 10893 10894ECHO_C= ECHO_N= ECHO_T= 10895case `echo -n x` in 10896-n*) 10897 case `echo 'x\c'` in 10898 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10899 *) ECHO_C='\c';; 10900 esac;; 10901*) 10902 ECHO_N='-n';; 10903esac 10904 10905if expr a : '\(a\)' >/dev/null 2>&1 && 10906 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10907 as_expr=expr 10908else 10909 as_expr=false 10910fi 10911 10912rm -f conf$$ conf$$.exe conf$$.file 10913if test -d conf$$.dir; then 10914 rm -f conf$$.dir/conf$$.file 10915else 10916 rm -f conf$$.dir 10917 mkdir conf$$.dir 10918fi 10919echo >conf$$.file 10920if ln -s conf$$.file conf$$ 2>/dev/null; then 10921 as_ln_s='ln -s' 10922 # ... but there are two gotchas: 10923 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10924 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10925 # In both cases, we have to default to `cp -p'. 10926 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10927 as_ln_s='cp -p' 10928elif ln conf$$.file conf$$ 2>/dev/null; then 10929 as_ln_s=ln 10930else 10931 as_ln_s='cp -p' 10932fi 10933rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10934rmdir conf$$.dir 2>/dev/null 10935 10936if mkdir -p . 2>/dev/null; then 10937 as_mkdir_p=: 10938else 10939 test -d ./-p && rmdir ./-p 10940 as_mkdir_p=false 10941fi 10942 10943if test -x / >/dev/null 2>&1; then 10944 as_test_x='test -x' 10945else 10946 if ls -dL / >/dev/null 2>&1; then 10947 as_ls_L_option=L 10948 else 10949 as_ls_L_option= 10950 fi 10951 as_test_x=' 10952 eval sh -c '\'' 10953 if test -d "$1"; then 10954 test -d "$1/."; 10955 else 10956 case $1 in 10957 -*)set "./$1";; 10958 esac; 10959 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 10960 ???[sx]*):;;*)false;;esac;fi 10961 '\'' sh 10962 ' 10963fi 10964as_executable_p=$as_test_x 10965 10966# Sed expression to map a string onto a valid CPP name. 10967as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10968 10969# Sed expression to map a string onto a valid variable name. 10970as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10971 10972 10973exec 6>&1 10974 10975# Save the log message, to keep $[0] and so on meaningful, and to 10976# report actual input values of CONFIG_FILES etc. instead of their 10977# values after options handling. 10978ac_log=" 10979This file was extended by thread $as_me 2.6.6, which was 10980generated by GNU Autoconf 2.61. Invocation command line was 10981 10982 CONFIG_FILES = $CONFIG_FILES 10983 CONFIG_HEADERS = $CONFIG_HEADERS 10984 CONFIG_LINKS = $CONFIG_LINKS 10985 CONFIG_COMMANDS = $CONFIG_COMMANDS 10986 $ $0 $@ 10987 10988on `(hostname || uname -n) 2>/dev/null | sed 1q` 10989" 10990 10991_ACEOF 10992 10993cat >>$CONFIG_STATUS <<_ACEOF 10994# Files that config.status was made for. 10995config_files="$ac_config_files" 10996 10997_ACEOF 10998 10999cat >>$CONFIG_STATUS <<\_ACEOF 11000ac_cs_usage="\ 11001\`$as_me' instantiates files from templates according to the 11002current configuration. 11003 11004Usage: $0 [OPTIONS] [FILE]... 11005 11006 -h, --help print this help, then exit 11007 -V, --version print version number and configuration settings, then exit 11008 -q, --quiet do not print progress messages 11009 -d, --debug don't remove temporary files 11010 --recheck update $as_me by reconfiguring in the same conditions 11011 --file=FILE[:TEMPLATE] 11012 instantiate the configuration file FILE 11013 11014Configuration files: 11015$config_files 11016 11017Report bugs to <bug-autoconf@gnu.org>." 11018 11019_ACEOF 11020cat >>$CONFIG_STATUS <<_ACEOF 11021ac_cs_version="\\ 11022thread config.status 2.6.6 11023configured by $0, generated by GNU Autoconf 2.61, 11024 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11025 11026Copyright (C) 2006 Free Software Foundation, Inc. 11027This config.status script is free software; the Free Software Foundation 11028gives unlimited permission to copy, distribute and modify it." 11029 11030ac_pwd='$ac_pwd' 11031srcdir='$srcdir' 11032INSTALL='$INSTALL' 11033_ACEOF 11034 11035cat >>$CONFIG_STATUS <<\_ACEOF 11036# If no file are specified by the user, then we need to provide default 11037# value. By we need to know if files were specified by the user. 11038ac_need_defaults=: 11039while test $# != 0 11040do 11041 case $1 in 11042 --*=*) 11043 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11044 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11045 ac_shift=: 11046 ;; 11047 *) 11048 ac_option=$1 11049 ac_optarg=$2 11050 ac_shift=shift 11051 ;; 11052 esac 11053 11054 case $ac_option in 11055 # Handling of the options. 11056 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11057 ac_cs_recheck=: ;; 11058 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11059 echo "$ac_cs_version"; exit ;; 11060 --debug | --debu | --deb | --de | --d | -d ) 11061 debug=: ;; 11062 --file | --fil | --fi | --f ) 11063 $ac_shift 11064 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11065 ac_need_defaults=false;; 11066 --he | --h | --help | --hel | -h ) 11067 echo "$ac_cs_usage"; exit ;; 11068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11069 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11070 ac_cs_silent=: ;; 11071 11072 # This is an error. 11073 -*) { echo "$as_me: error: unrecognized option: $1 11074Try \`$0 --help' for more information." >&2 11075 { (exit 1); exit 1; }; } ;; 11076 11077 *) ac_config_targets="$ac_config_targets $1" 11078 ac_need_defaults=false ;; 11079 11080 esac 11081 shift 11082done 11083 11084ac_configure_extra_args= 11085 11086if $ac_cs_silent; then 11087 exec 6>/dev/null 11088 ac_configure_extra_args="$ac_configure_extra_args --silent" 11089fi 11090 11091_ACEOF 11092cat >>$CONFIG_STATUS <<_ACEOF 11093if \$ac_cs_recheck; then 11094 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11095 CONFIG_SHELL=$SHELL 11096 export CONFIG_SHELL 11097 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11098fi 11099 11100_ACEOF 11101cat >>$CONFIG_STATUS <<\_ACEOF 11102exec 5>>config.log 11103{ 11104 echo 11105 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11106## Running $as_me. ## 11107_ASBOX 11108 echo "$ac_log" 11109} >&5 11110 11111_ACEOF 11112cat >>$CONFIG_STATUS <<_ACEOF 11113_ACEOF 11114 11115cat >>$CONFIG_STATUS <<\_ACEOF 11116 11117# Handling of arguments. 11118for ac_config_target in $ac_config_targets 11119do 11120 case $ac_config_target in 11121 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11122 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 11123 11124 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11125echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11126 { (exit 1); exit 1; }; };; 11127 esac 11128done 11129 11130 11131# If the user did not use the arguments to specify the items to instantiate, 11132# then the envvar interface is used. Set only those that are not. 11133# We use the long form for the default assignment because of an extremely 11134# bizarre bug on SunOS 4.1.3. 11135if $ac_need_defaults; then 11136 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11137fi 11138 11139# Have a temporary directory for convenience. Make it in the build tree 11140# simply because there is no reason against having it here, and in addition, 11141# creating and moving files from /tmp can sometimes cause problems. 11142# Hook for its removal unless debugging. 11143# Note that there is a small window in which the directory will not be cleaned: 11144# after its creation but before its name has been assigned to `$tmp'. 11145$debug || 11146{ 11147 tmp= 11148 trap 'exit_status=$? 11149 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 11150' 0 11151 trap '{ (exit 1); exit 1; }' 1 2 13 15 11152} 11153# Create a (secure) tmp directory for tmp files. 11154 11155{ 11156 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11157 test -n "$tmp" && test -d "$tmp" 11158} || 11159{ 11160 tmp=./conf$$-$RANDOM 11161 (umask 077 && mkdir "$tmp") 11162} || 11163{ 11164 echo "$me: cannot create a temporary directory in ." >&2 11165 { (exit 1); exit 1; } 11166} 11167 11168# 11169# Set up the sed scripts for CONFIG_FILES section. 11170# 11171 11172# No need to generate the scripts if there are no CONFIG_FILES. 11173# This happens for instance when ./config.status config.h 11174if test -n "$CONFIG_FILES"; then 11175 11176_ACEOF 11177 11178 11179 11180ac_delim='%!_!# ' 11181for ac_last_try in false false false false false :; do 11182 cat >conf$$subs.sed <<_ACEOF 11183SHELL!$SHELL$ac_delim 11184PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 11185PACKAGE_NAME!$PACKAGE_NAME$ac_delim 11186PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 11187PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 11188PACKAGE_STRING!$PACKAGE_STRING$ac_delim 11189PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 11190exec_prefix!$exec_prefix$ac_delim 11191prefix!$prefix$ac_delim 11192program_transform_name!$program_transform_name$ac_delim 11193bindir!$bindir$ac_delim 11194sbindir!$sbindir$ac_delim 11195libexecdir!$libexecdir$ac_delim 11196datarootdir!$datarootdir$ac_delim 11197datadir!$datadir$ac_delim 11198sysconfdir!$sysconfdir$ac_delim 11199sharedstatedir!$sharedstatedir$ac_delim 11200localstatedir!$localstatedir$ac_delim 11201includedir!$includedir$ac_delim 11202oldincludedir!$oldincludedir$ac_delim 11203docdir!$docdir$ac_delim 11204infodir!$infodir$ac_delim 11205htmldir!$htmldir$ac_delim 11206dvidir!$dvidir$ac_delim 11207pdfdir!$pdfdir$ac_delim 11208psdir!$psdir$ac_delim 11209libdir!$libdir$ac_delim 11210localedir!$localedir$ac_delim 11211mandir!$mandir$ac_delim 11212DEFS!$DEFS$ac_delim 11213ECHO_C!$ECHO_C$ac_delim 11214ECHO_N!$ECHO_N$ac_delim 11215ECHO_T!$ECHO_T$ac_delim 11216LIBS!$LIBS$ac_delim 11217build_alias!$build_alias$ac_delim 11218host_alias!$host_alias$ac_delim 11219target_alias!$target_alias$ac_delim 11220CYGPATH!$CYGPATH$ac_delim 11221EXEEXT!$EXEEXT$ac_delim 11222PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 11223PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 11224PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 11225PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 11226PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 11227PKG_HEADERS!$PKG_HEADERS$ac_delim 11228PKG_INCLUDES!$PKG_INCLUDES$ac_delim 11229PKG_LIBS!$PKG_LIBS$ac_delim 11230PKG_CFLAGS!$PKG_CFLAGS$ac_delim 11231TCL_VERSION!$TCL_VERSION$ac_delim 11232TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 11233TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 11234TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 11235TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 11236TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 11237TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 11238TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 11239TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 11240TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 11241CLEANFILES!$CLEANFILES$ac_delim 11242TCL_LIBS!$TCL_LIBS$ac_delim 11243TCL_DEFS!$TCL_DEFS$ac_delim 11244TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 11245TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 11246TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 11247CC!$CC$ac_delim 11248CFLAGS!$CFLAGS$ac_delim 11249LDFLAGS!$LDFLAGS$ac_delim 11250CPPFLAGS!$CPPFLAGS$ac_delim 11251ac_ct_CC!$ac_ct_CC$ac_delim 11252OBJEXT!$OBJEXT$ac_delim 11253CPP!$CPP$ac_delim 11254INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 11255INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 11256INSTALL_DATA!$INSTALL_DATA$ac_delim 11257SET_MAKE!$SET_MAKE$ac_delim 11258RANLIB!$RANLIB$ac_delim 11259GREP!$GREP$ac_delim 11260EGREP!$EGREP$ac_delim 11261MATH_LIBS!$MATH_LIBS$ac_delim 11262PKG_SOURCES!$PKG_SOURCES$ac_delim 11263PKG_OBJECTS!$PKG_OBJECTS$ac_delim 11264TCL_INCLUDES!$TCL_INCLUDES$ac_delim 11265TCL_THREADS!$TCL_THREADS$ac_delim 11266SHARED_BUILD!$SHARED_BUILD$ac_delim 11267AR!$AR$ac_delim 11268CELIB_DIR!$CELIB_DIR$ac_delim 11269CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 11270CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 11271CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 11272STLIB_LD!$STLIB_LD$ac_delim 11273SHLIB_LD!$SHLIB_LD$ac_delim 11274SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 11275SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 11276LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 11277CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 11278LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 11279TCL_DBGX!$TCL_DBGX$ac_delim 11280_ACEOF 11281 11282 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 11283 break 11284 elif $ac_last_try; then 11285 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11286echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11287 { (exit 1); exit 1; }; } 11288 else 11289 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11290 fi 11291done 11292 11293ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11294if test -n "$ac_eof"; then 11295 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11296 ac_eof=`expr $ac_eof + 1` 11297fi 11298 11299cat >>$CONFIG_STATUS <<_ACEOF 11300cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 11301/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11302_ACEOF 11303sed ' 11304s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11305s/^/s,@/; s/!/@,|#_!!_#|/ 11306:n 11307t n 11308s/'"$ac_delim"'$/,g/; t 11309s/$/\\/; p 11310N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11311' >>$CONFIG_STATUS <conf$$subs.sed 11312rm -f conf$$subs.sed 11313cat >>$CONFIG_STATUS <<_ACEOF 11314CEOF$ac_eof 11315_ACEOF 11316 11317 11318ac_delim='%!_!# ' 11319for ac_last_try in false false false false false :; do 11320 cat >conf$$subs.sed <<_ACEOF 11321MAKE_LIB!$MAKE_LIB$ac_delim 11322MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 11323MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 11324MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 11325RANLIB_STUB!$RANLIB_STUB$ac_delim 11326VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 11327VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 11328TCLSH_PROG!$TCLSH_PROG$ac_delim 11329LIBOBJS!$LIBOBJS$ac_delim 11330LTLIBOBJS!$LTLIBOBJS$ac_delim 11331_ACEOF 11332 11333 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then 11334 break 11335 elif $ac_last_try; then 11336 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11337echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11338 { (exit 1); exit 1; }; } 11339 else 11340 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11341 fi 11342done 11343 11344ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11345if test -n "$ac_eof"; then 11346 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11347 ac_eof=`expr $ac_eof + 1` 11348fi 11349 11350cat >>$CONFIG_STATUS <<_ACEOF 11351cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 11352/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 11353_ACEOF 11354sed ' 11355s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11356s/^/s,@/; s/!/@,|#_!!_#|/ 11357:n 11358t n 11359s/'"$ac_delim"'$/,g/; t 11360s/$/\\/; p 11361N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11362' >>$CONFIG_STATUS <conf$$subs.sed 11363rm -f conf$$subs.sed 11364cat >>$CONFIG_STATUS <<_ACEOF 11365:end 11366s/|#_!!_#|//g 11367CEOF$ac_eof 11368_ACEOF 11369 11370 11371# VPATH may cause trouble with some makes, so we remove $(srcdir), 11372# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11373# trailing colons and then remove the whole line if VPATH becomes empty 11374# (actually we leave an empty line to preserve line numbers). 11375if test "x$srcdir" = x.; then 11376 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11377s/:*\$(srcdir):*/:/ 11378s/:*\${srcdir}:*/:/ 11379s/:*@srcdir@:*/:/ 11380s/^\([^=]*=[ ]*\):*/\1/ 11381s/:*$// 11382s/^[^=]*=[ ]*$// 11383}' 11384fi 11385 11386cat >>$CONFIG_STATUS <<\_ACEOF 11387fi # test -n "$CONFIG_FILES" 11388 11389 11390for ac_tag in :F $CONFIG_FILES 11391do 11392 case $ac_tag in 11393 :[FHLC]) ac_mode=$ac_tag; continue;; 11394 esac 11395 case $ac_mode$ac_tag in 11396 :[FHL]*:*);; 11397 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 11398echo "$as_me: error: Invalid tag $ac_tag." >&2;} 11399 { (exit 1); exit 1; }; };; 11400 :[FH]-) ac_tag=-:-;; 11401 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11402 esac 11403 ac_save_IFS=$IFS 11404 IFS=: 11405 set x $ac_tag 11406 IFS=$ac_save_IFS 11407 shift 11408 ac_file=$1 11409 shift 11410 11411 case $ac_mode in 11412 :L) ac_source=$1;; 11413 :[FH]) 11414 ac_file_inputs= 11415 for ac_f 11416 do 11417 case $ac_f in 11418 -) ac_f="$tmp/stdin";; 11419 *) # Look for the file first in the build tree, then in the source tree 11420 # (if the path is not absolute). The absolute path cannot be DOS-style, 11421 # because $ac_f cannot contain `:'. 11422 test -f "$ac_f" || 11423 case $ac_f in 11424 [\\/$]*) false;; 11425 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11426 esac || 11427 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 11428echo "$as_me: error: cannot find input file: $ac_f" >&2;} 11429 { (exit 1); exit 1; }; };; 11430 esac 11431 ac_file_inputs="$ac_file_inputs $ac_f" 11432 done 11433 11434 # Let's still pretend it is `configure' which instantiates (i.e., don't 11435 # use $as_me), people would be surprised to read: 11436 # /* config.h. Generated by config.status. */ 11437 configure_input="Generated from "`IFS=: 11438 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 11439 if test x"$ac_file" != x-; then 11440 configure_input="$ac_file. $configure_input" 11441 { echo "$as_me:$LINENO: creating $ac_file" >&5 11442echo "$as_me: creating $ac_file" >&6;} 11443 fi 11444 11445 case $ac_tag in 11446 *:-:* | *:-) cat >"$tmp/stdin";; 11447 esac 11448 ;; 11449 esac 11450 11451 ac_dir=`$as_dirname -- "$ac_file" || 11452$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11453 X"$ac_file" : 'X\(//\)[^/]' \| \ 11454 X"$ac_file" : 'X\(//\)$' \| \ 11455 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11456echo X"$ac_file" | 11457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11458 s//\1/ 11459 q 11460 } 11461 /^X\(\/\/\)[^/].*/{ 11462 s//\1/ 11463 q 11464 } 11465 /^X\(\/\/\)$/{ 11466 s//\1/ 11467 q 11468 } 11469 /^X\(\/\).*/{ 11470 s//\1/ 11471 q 11472 } 11473 s/.*/./; q'` 11474 { as_dir="$ac_dir" 11475 case $as_dir in #( 11476 -*) as_dir=./$as_dir;; 11477 esac 11478 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11479 as_dirs= 11480 while :; do 11481 case $as_dir in #( 11482 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 11483 *) as_qdir=$as_dir;; 11484 esac 11485 as_dirs="'$as_qdir' $as_dirs" 11486 as_dir=`$as_dirname -- "$as_dir" || 11487$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11488 X"$as_dir" : 'X\(//\)[^/]' \| \ 11489 X"$as_dir" : 'X\(//\)$' \| \ 11490 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11491echo X"$as_dir" | 11492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11493 s//\1/ 11494 q 11495 } 11496 /^X\(\/\/\)[^/].*/{ 11497 s//\1/ 11498 q 11499 } 11500 /^X\(\/\/\)$/{ 11501 s//\1/ 11502 q 11503 } 11504 /^X\(\/\).*/{ 11505 s//\1/ 11506 q 11507 } 11508 s/.*/./; q'` 11509 test -d "$as_dir" && break 11510 done 11511 test -z "$as_dirs" || eval "mkdir $as_dirs" 11512 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 11513echo "$as_me: error: cannot create directory $as_dir" >&2;} 11514 { (exit 1); exit 1; }; }; } 11515 ac_builddir=. 11516 11517case "$ac_dir" in 11518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11519*) 11520 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11521 # A ".." for each directory in $ac_dir_suffix. 11522 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 11523 case $ac_top_builddir_sub in 11524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11526 esac ;; 11527esac 11528ac_abs_top_builddir=$ac_pwd 11529ac_abs_builddir=$ac_pwd$ac_dir_suffix 11530# for backward compatibility: 11531ac_top_builddir=$ac_top_build_prefix 11532 11533case $srcdir in 11534 .) # We are building in place. 11535 ac_srcdir=. 11536 ac_top_srcdir=$ac_top_builddir_sub 11537 ac_abs_top_srcdir=$ac_pwd ;; 11538 [\\/]* | ?:[\\/]* ) # Absolute name. 11539 ac_srcdir=$srcdir$ac_dir_suffix; 11540 ac_top_srcdir=$srcdir 11541 ac_abs_top_srcdir=$srcdir ;; 11542 *) # Relative name. 11543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11544 ac_top_srcdir=$ac_top_build_prefix$srcdir 11545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11546esac 11547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11548 11549 11550 case $ac_mode in 11551 :F) 11552 # 11553 # CONFIG_FILE 11554 # 11555 11556 case $INSTALL in 11557 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11558 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11559 esac 11560_ACEOF 11561 11562cat >>$CONFIG_STATUS <<\_ACEOF 11563# If the template does not know about datarootdir, expand it. 11564# FIXME: This hack should be removed a few years after 2.60. 11565ac_datarootdir_hack=; ac_datarootdir_seen= 11566 11567case `sed -n '/datarootdir/ { 11568 p 11569 q 11570} 11571/@datadir@/p 11572/@docdir@/p 11573/@infodir@/p 11574/@localedir@/p 11575/@mandir@/p 11576' $ac_file_inputs` in 11577*datarootdir*) ac_datarootdir_seen=yes;; 11578*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11579 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11580echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11581_ACEOF 11582cat >>$CONFIG_STATUS <<_ACEOF 11583 ac_datarootdir_hack=' 11584 s&@datadir@&$datadir&g 11585 s&@docdir@&$docdir&g 11586 s&@infodir@&$infodir&g 11587 s&@localedir@&$localedir&g 11588 s&@mandir@&$mandir&g 11589 s&\\\${datarootdir}&$datarootdir&g' ;; 11590esac 11591_ACEOF 11592 11593# Neutralize VPATH when `$srcdir' = `.'. 11594# Shell code in configure.ac might set extrasub. 11595# FIXME: do we really want to maintain this feature? 11596cat >>$CONFIG_STATUS <<_ACEOF 11597 sed "$ac_vpsub 11598$extrasub 11599_ACEOF 11600cat >>$CONFIG_STATUS <<\_ACEOF 11601:t 11602/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11603s&@configure_input@&$configure_input&;t t 11604s&@top_builddir@&$ac_top_builddir_sub&;t t 11605s&@srcdir@&$ac_srcdir&;t t 11606s&@abs_srcdir@&$ac_abs_srcdir&;t t 11607s&@top_srcdir@&$ac_top_srcdir&;t t 11608s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11609s&@builddir@&$ac_builddir&;t t 11610s&@abs_builddir@&$ac_abs_builddir&;t t 11611s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11612s&@INSTALL@&$ac_INSTALL&;t t 11613$ac_datarootdir_hack 11614" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 11615 11616test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11617 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 11618 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 11619 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11620which seems to be undefined. Please make sure it is defined." >&5 11621echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11622which seems to be undefined. Please make sure it is defined." >&2;} 11623 11624 rm -f "$tmp/stdin" 11625 case $ac_file in 11626 -) cat "$tmp/out"; rm -f "$tmp/out";; 11627 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 11628 esac 11629 ;; 11630 11631 11632 11633 esac 11634 11635done # for ac_tag 11636 11637 11638{ (exit 0); exit 0; } 11639_ACEOF 11640chmod +x $CONFIG_STATUS 11641ac_clean_files=$ac_clean_files_save 11642 11643 11644# configure is writing to config.log, and then calls config.status. 11645# config.status does its own redirection, appending to config.log. 11646# Unfortunately, on DOS this fails, as config.log is still kept open 11647# by configure, so config.status won't be able to write to it; its 11648# output is simply discarded. So we exec the FD to /dev/null, 11649# effectively closing config.log, so it can be properly (re)opened and 11650# appended to by config.status. When coming back to configure, we 11651# need to make the FD available again. 11652if test "$no_create" != yes; then 11653 ac_cs_success=: 11654 ac_config_status_args= 11655 test "$silent" = yes && 11656 ac_config_status_args="$ac_config_status_args --quiet" 11657 exec 5>/dev/null 11658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11659 exec 5>>config.log 11660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11661 # would make configure fail if this is the last instruction. 11662 $ac_cs_success || { (exit 1); exit 1; } 11663fi 11664 11665