1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for tclx 8.4. 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='tclx' 574PACKAGE_TARNAME='tclx' 575PACKAGE_VERSION='8.4' 576PACKAGE_STRING='tclx 8.4' 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_TOP_DIR_NATIVE 698TCL_THREADS 699SHARED_BUILD 700AR 701CELIB_DIR 702CFLAGS_DEBUG 703CFLAGS_OPTIMIZE 704CFLAGS_WARNING 705STLIB_LD 706SHLIB_LD 707SHLIB_LD_LIBS 708SHLIB_CFLAGS 709LD_LIBRARY_PATH_VAR 710CFLAGS_DEFAULT 711LDFLAGS_DEFAULT 712TCL_DBGX 713LIBOBJS 714NROFF 715COL 716BUILDHELP 717HELP_DIR 718MAKE_LIB 719MAKE_SHARED_LIB 720MAKE_STATIC_LIB 721MAKE_STUB_LIB 722RANLIB_STUB 723VC_MANIFEST_EMBED_DLL 724VC_MANIFEST_EMBED_EXE 725TCLSH_PROG' 726ac_subst_files='' 727 ac_precious_vars='build_alias 728host_alias 729target_alias 730CC 731CFLAGS 732LDFLAGS 733LIBS 734CPPFLAGS 735CPP' 736 737 738# Initialize some variables set by options. 739ac_init_help= 740ac_init_version=false 741# The variables have the same names as the options, with 742# dashes changed to underlines. 743cache_file=/dev/null 744exec_prefix=NONE 745no_create= 746no_recursion= 747prefix=NONE 748program_prefix=NONE 749program_suffix=NONE 750program_transform_name=s,x,x, 751silent= 752site= 753srcdir= 754verbose= 755x_includes=NONE 756x_libraries=NONE 757 758# Installation directory options. 759# These are left unexpanded so users can "make install exec_prefix=/foo" 760# and all the variables that are supposed to be based on exec_prefix 761# by default will actually change. 762# Use braces instead of parens because sh, perl, etc. also accept them. 763# (The list follows the same order as the GNU Coding Standards.) 764bindir='${exec_prefix}/bin' 765sbindir='${exec_prefix}/sbin' 766libexecdir='${exec_prefix}/libexec' 767datarootdir='${prefix}/share' 768datadir='${datarootdir}' 769sysconfdir='${prefix}/etc' 770sharedstatedir='${prefix}/com' 771localstatedir='${prefix}/var' 772includedir='${prefix}/include' 773oldincludedir='/usr/include' 774docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 775infodir='${datarootdir}/info' 776htmldir='${docdir}' 777dvidir='${docdir}' 778pdfdir='${docdir}' 779psdir='${docdir}' 780libdir='${exec_prefix}/lib' 781localedir='${datarootdir}/locale' 782mandir='${datarootdir}/man' 783 784ac_prev= 785ac_dashdash= 786for ac_option 787do 788 # If the previous option needs an argument, assign it. 789 if test -n "$ac_prev"; then 790 eval $ac_prev=\$ac_option 791 ac_prev= 792 continue 793 fi 794 795 case $ac_option in 796 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 797 *) ac_optarg=yes ;; 798 esac 799 800 # Accept the important Cygnus configure options, so we can diagnose typos. 801 802 case $ac_dashdash$ac_option in 803 --) 804 ac_dashdash=yes ;; 805 806 -bindir | --bindir | --bindi | --bind | --bin | --bi) 807 ac_prev=bindir ;; 808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 809 bindir=$ac_optarg ;; 810 811 -build | --build | --buil | --bui | --bu) 812 ac_prev=build_alias ;; 813 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 814 build_alias=$ac_optarg ;; 815 816 -cache-file | --cache-file | --cache-fil | --cache-fi \ 817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 818 ac_prev=cache_file ;; 819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 821 cache_file=$ac_optarg ;; 822 823 --config-cache | -C) 824 cache_file=config.cache ;; 825 826 -datadir | --datadir | --datadi | --datad) 827 ac_prev=datadir ;; 828 -datadir=* | --datadir=* | --datadi=* | --datad=*) 829 datadir=$ac_optarg ;; 830 831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 832 | --dataroo | --dataro | --datar) 833 ac_prev=datarootdir ;; 834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 836 datarootdir=$ac_optarg ;; 837 838 -disable-* | --disable-*) 839 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 840 # Reject names that are not valid shell variable names. 841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 843 { (exit 1); exit 1; }; } 844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 845 eval enable_$ac_feature=no ;; 846 847 -docdir | --docdir | --docdi | --doc | --do) 848 ac_prev=docdir ;; 849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 850 docdir=$ac_optarg ;; 851 852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 853 ac_prev=dvidir ;; 854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 855 dvidir=$ac_optarg ;; 856 857 -enable-* | --enable-*) 858 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 859 # Reject names that are not valid shell variable names. 860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 862 { (exit 1); exit 1; }; } 863 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 864 eval enable_$ac_feature=\$ac_optarg ;; 865 866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 868 | --exec | --exe | --ex) 869 ac_prev=exec_prefix ;; 870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 872 | --exec=* | --exe=* | --ex=*) 873 exec_prefix=$ac_optarg ;; 874 875 -gas | --gas | --ga | --g) 876 # Obsolete; use --with-gas. 877 with_gas=yes ;; 878 879 -help | --help | --hel | --he | -h) 880 ac_init_help=long ;; 881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 882 ac_init_help=recursive ;; 883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 884 ac_init_help=short ;; 885 886 -host | --host | --hos | --ho) 887 ac_prev=host_alias ;; 888 -host=* | --host=* | --hos=* | --ho=*) 889 host_alias=$ac_optarg ;; 890 891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 892 ac_prev=htmldir ;; 893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 894 | --ht=*) 895 htmldir=$ac_optarg ;; 896 897 -includedir | --includedir | --includedi | --included | --include \ 898 | --includ | --inclu | --incl | --inc) 899 ac_prev=includedir ;; 900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 901 | --includ=* | --inclu=* | --incl=* | --inc=*) 902 includedir=$ac_optarg ;; 903 904 -infodir | --infodir | --infodi | --infod | --info | --inf) 905 ac_prev=infodir ;; 906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 907 infodir=$ac_optarg ;; 908 909 -libdir | --libdir | --libdi | --libd) 910 ac_prev=libdir ;; 911 -libdir=* | --libdir=* | --libdi=* | --libd=*) 912 libdir=$ac_optarg ;; 913 914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 915 | --libexe | --libex | --libe) 916 ac_prev=libexecdir ;; 917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 918 | --libexe=* | --libex=* | --libe=*) 919 libexecdir=$ac_optarg ;; 920 921 -localedir | --localedir | --localedi | --localed | --locale) 922 ac_prev=localedir ;; 923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 924 localedir=$ac_optarg ;; 925 926 -localstatedir | --localstatedir | --localstatedi | --localstated \ 927 | --localstate | --localstat | --localsta | --localst | --locals) 928 ac_prev=localstatedir ;; 929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 931 localstatedir=$ac_optarg ;; 932 933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 934 ac_prev=mandir ;; 935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 936 mandir=$ac_optarg ;; 937 938 -nfp | --nfp | --nf) 939 # Obsolete; use --without-fp. 940 with_fp=no ;; 941 942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 943 | --no-cr | --no-c | -n) 944 no_create=yes ;; 945 946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 948 no_recursion=yes ;; 949 950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 952 | --oldin | --oldi | --old | --ol | --o) 953 ac_prev=oldincludedir ;; 954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 957 oldincludedir=$ac_optarg ;; 958 959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 960 ac_prev=prefix ;; 961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 962 prefix=$ac_optarg ;; 963 964 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 965 | --program-pre | --program-pr | --program-p) 966 ac_prev=program_prefix ;; 967 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 969 program_prefix=$ac_optarg ;; 970 971 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 972 | --program-suf | --program-su | --program-s) 973 ac_prev=program_suffix ;; 974 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 976 program_suffix=$ac_optarg ;; 977 978 -program-transform-name | --program-transform-name \ 979 | --program-transform-nam | --program-transform-na \ 980 | --program-transform-n | --program-transform- \ 981 | --program-transform | --program-transfor \ 982 | --program-transfo | --program-transf \ 983 | --program-trans | --program-tran \ 984 | --progr-tra | --program-tr | --program-t) 985 ac_prev=program_transform_name ;; 986 -program-transform-name=* | --program-transform-name=* \ 987 | --program-transform-nam=* | --program-transform-na=* \ 988 | --program-transform-n=* | --program-transform-=* \ 989 | --program-transform=* | --program-transfor=* \ 990 | --program-transfo=* | --program-transf=* \ 991 | --program-trans=* | --program-tran=* \ 992 | --progr-tra=* | --program-tr=* | --program-t=*) 993 program_transform_name=$ac_optarg ;; 994 995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 996 ac_prev=pdfdir ;; 997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 998 pdfdir=$ac_optarg ;; 999 1000 -psdir | --psdir | --psdi | --psd | --ps) 1001 ac_prev=psdir ;; 1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1003 psdir=$ac_optarg ;; 1004 1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1006 | -silent | --silent | --silen | --sile | --sil) 1007 silent=yes ;; 1008 1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1010 ac_prev=sbindir ;; 1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1012 | --sbi=* | --sb=*) 1013 sbindir=$ac_optarg ;; 1014 1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1017 | --sharedst | --shareds | --shared | --share | --shar \ 1018 | --sha | --sh) 1019 ac_prev=sharedstatedir ;; 1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1023 | --sha=* | --sh=*) 1024 sharedstatedir=$ac_optarg ;; 1025 1026 -site | --site | --sit) 1027 ac_prev=site ;; 1028 -site=* | --site=* | --sit=*) 1029 site=$ac_optarg ;; 1030 1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1032 ac_prev=srcdir ;; 1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1034 srcdir=$ac_optarg ;; 1035 1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1037 | --syscon | --sysco | --sysc | --sys | --sy) 1038 ac_prev=sysconfdir ;; 1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1041 sysconfdir=$ac_optarg ;; 1042 1043 -target | --target | --targe | --targ | --tar | --ta | --t) 1044 ac_prev=target_alias ;; 1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1046 target_alias=$ac_optarg ;; 1047 1048 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1049 verbose=yes ;; 1050 1051 -version | --version | --versio | --versi | --vers | -V) 1052 ac_init_version=: ;; 1053 1054 -with-* | --with-*) 1055 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1056 # Reject names that are not valid shell variable names. 1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1058 { echo "$as_me: error: invalid package name: $ac_package" >&2 1059 { (exit 1); exit 1; }; } 1060 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1061 eval with_$ac_package=\$ac_optarg ;; 1062 1063 -without-* | --without-*) 1064 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1065 # Reject names that are not valid shell variable names. 1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1067 { echo "$as_me: error: invalid package name: $ac_package" >&2 1068 { (exit 1); exit 1; }; } 1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1070 eval with_$ac_package=no ;; 1071 1072 --x) 1073 # Obsolete; use --with-x. 1074 with_x=yes ;; 1075 1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1077 | --x-incl | --x-inc | --x-in | --x-i) 1078 ac_prev=x_includes ;; 1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1081 x_includes=$ac_optarg ;; 1082 1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1085 ac_prev=x_libraries ;; 1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1088 x_libraries=$ac_optarg ;; 1089 1090 -*) { echo "$as_me: error: unrecognized option: $ac_option 1091Try \`$0 --help' for more information." >&2 1092 { (exit 1); exit 1; }; } 1093 ;; 1094 1095 *=*) 1096 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1097 # Reject names that are not valid shell variable names. 1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1100 { (exit 1); exit 1; }; } 1101 eval $ac_envvar=\$ac_optarg 1102 export $ac_envvar ;; 1103 1104 *) 1105 # FIXME: should be removed in autoconf 3.0. 1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1110 ;; 1111 1112 esac 1113done 1114 1115if test -n "$ac_prev"; then 1116 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1117 { echo "$as_me: error: missing argument to $ac_option" >&2 1118 { (exit 1); exit 1; }; } 1119fi 1120 1121# Be sure to have absolute directory names. 1122for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1123 datadir sysconfdir sharedstatedir localstatedir includedir \ 1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1125 libdir localedir mandir 1126do 1127 eval ac_val=\$$ac_var 1128 case $ac_val in 1129 [\\/$]* | ?:[\\/]* ) continue;; 1130 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1131 esac 1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1133 { (exit 1); exit 1; }; } 1134done 1135 1136# There might be people who depend on the old broken behavior: `$host' 1137# used to hold the argument of --host etc. 1138# FIXME: To remove some day. 1139build=$build_alias 1140host=$host_alias 1141target=$target_alias 1142 1143# FIXME: To remove some day. 1144if test "x$host_alias" != x; then 1145 if test "x$build_alias" = x; then 1146 cross_compiling=maybe 1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1148 If a cross compiler is detected then cross compile mode will be used." >&2 1149 elif test "x$build_alias" != "x$host_alias"; then 1150 cross_compiling=yes 1151 fi 1152fi 1153 1154ac_tool_prefix= 1155test -n "$host_alias" && ac_tool_prefix=$host_alias- 1156 1157test "$silent" = yes && exec 6>/dev/null 1158 1159 1160ac_pwd=`pwd` && test -n "$ac_pwd" && 1161ac_ls_di=`ls -di .` && 1162ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1163 { echo "$as_me: error: Working directory cannot be determined" >&2 1164 { (exit 1); exit 1; }; } 1165test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1166 { echo "$as_me: error: pwd does not report name of working directory" >&2 1167 { (exit 1); exit 1; }; } 1168 1169 1170# Find the source files, if location was not specified. 1171if test -z "$srcdir"; then 1172 ac_srcdir_defaulted=yes 1173 # Try the directory containing this script, then the parent directory. 1174 ac_confdir=`$as_dirname -- "$0" || 1175$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1176 X"$0" : 'X\(//\)[^/]' \| \ 1177 X"$0" : 'X\(//\)$' \| \ 1178 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1179echo X"$0" | 1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1181 s//\1/ 1182 q 1183 } 1184 /^X\(\/\/\)[^/].*/{ 1185 s//\1/ 1186 q 1187 } 1188 /^X\(\/\/\)$/{ 1189 s//\1/ 1190 q 1191 } 1192 /^X\(\/\).*/{ 1193 s//\1/ 1194 q 1195 } 1196 s/.*/./; q'` 1197 srcdir=$ac_confdir 1198 if test ! -r "$srcdir/$ac_unique_file"; then 1199 srcdir=.. 1200 fi 1201else 1202 ac_srcdir_defaulted=no 1203fi 1204if test ! -r "$srcdir/$ac_unique_file"; then 1205 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1207 { (exit 1); exit 1; }; } 1208fi 1209ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1210ac_abs_confdir=`( 1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1212 { (exit 1); exit 1; }; } 1213 pwd)` 1214# When building in place, set srcdir=. 1215if test "$ac_abs_confdir" = "$ac_pwd"; then 1216 srcdir=. 1217fi 1218# Remove unnecessary trailing slashes from srcdir. 1219# Double slashes in file names in object file debugging info 1220# mess up M-x gdb in Emacs. 1221case $srcdir in 1222*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1223esac 1224for ac_var in $ac_precious_vars; do 1225 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1226 eval ac_env_${ac_var}_value=\$${ac_var} 1227 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1228 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1229done 1230 1231# 1232# Report the --help message. 1233# 1234if test "$ac_init_help" = "long"; then 1235 # Omit some internal or obsolete options to make the list less imposing. 1236 # This message is too long to be a string in the A/UX 3.1 sh. 1237 cat <<_ACEOF 1238\`configure' configures tclx 8.4 to adapt to many kinds of systems. 1239 1240Usage: $0 [OPTION]... [VAR=VALUE]... 1241 1242To assign environment variables (e.g., CC, CFLAGS...), specify them as 1243VAR=VALUE. See below for descriptions of some of the useful variables. 1244 1245Defaults for the options are specified in brackets. 1246 1247Configuration: 1248 -h, --help display this help and exit 1249 --help=short display options specific to this package 1250 --help=recursive display the short help of all the included packages 1251 -V, --version display version information and exit 1252 -q, --quiet, --silent do not print \`checking...' messages 1253 --cache-file=FILE cache test results in FILE [disabled] 1254 -C, --config-cache alias for \`--cache-file=config.cache' 1255 -n, --no-create do not create output files 1256 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1257 1258Installation directories: 1259 --prefix=PREFIX install architecture-independent files in PREFIX 1260 [$ac_default_prefix] 1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1262 [PREFIX] 1263 1264By default, \`make install' will install all the files in 1265\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1266an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1267for instance \`--prefix=\$HOME'. 1268 1269For better control, use the options below. 1270 1271Fine tuning of the installation directories: 1272 --bindir=DIR user executables [EPREFIX/bin] 1273 --sbindir=DIR system admin executables [EPREFIX/sbin] 1274 --libexecdir=DIR program executables [EPREFIX/libexec] 1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1278 --libdir=DIR object code libraries [EPREFIX/lib] 1279 --includedir=DIR C header files [PREFIX/include] 1280 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1283 --infodir=DIR info documentation [DATAROOTDIR/info] 1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1285 --mandir=DIR man documentation [DATAROOTDIR/man] 1286 --docdir=DIR documentation root [DATAROOTDIR/doc/tclx] 1287 --htmldir=DIR html documentation [DOCDIR] 1288 --dvidir=DIR dvi documentation [DOCDIR] 1289 --pdfdir=DIR pdf documentation [DOCDIR] 1290 --psdir=DIR ps documentation [DOCDIR] 1291_ACEOF 1292 1293 cat <<\_ACEOF 1294_ACEOF 1295fi 1296 1297if test -n "$ac_init_help"; then 1298 case $ac_init_help in 1299 short | recursive ) echo "Configuration of tclx 8.4:";; 1300 esac 1301 cat <<\_ACEOF 1302 1303Optional Features: 1304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1306 --enable-threads build with threads 1307 --enable-shared build and link with shared libraries (default: on) 1308 --enable-64bit enable 64bit support (default: off) 1309 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1310 --disable-rpath disable rpath support (default: on) 1311 --enable-wince enable Win/CE support (where applicable) 1312 --enable-symbols build with debugging symbols (default: off) 1313 1314Optional Packages: 1315 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1316 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1317 --with-tcl directory containing tcl configuration 1318 (tclConfig.sh) 1319 --with-tclinclude directory containing the public Tcl header files 1320 --with-celib=DIR use Windows/CE support library from DIR 1321 --with-help directory containing generated help files 1322 1323Some influential environment variables: 1324 CC C compiler command 1325 CFLAGS C compiler flags 1326 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1327 nonstandard directory <lib dir> 1328 LIBS libraries to pass to the linker, e.g. -l<library> 1329 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1330 you have headers in a nonstandard directory <include dir> 1331 CPP C preprocessor 1332 1333Use these variables to override the choices made by `configure' or to help 1334it to find libraries and programs with nonstandard names/locations. 1335 1336_ACEOF 1337ac_status=$? 1338fi 1339 1340if test "$ac_init_help" = "recursive"; then 1341 # If there are subdirs, report their specific --help. 1342 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1343 test -d "$ac_dir" || continue 1344 ac_builddir=. 1345 1346case "$ac_dir" in 1347.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1348*) 1349 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1350 # A ".." for each directory in $ac_dir_suffix. 1351 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1352 case $ac_top_builddir_sub in 1353 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1354 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1355 esac ;; 1356esac 1357ac_abs_top_builddir=$ac_pwd 1358ac_abs_builddir=$ac_pwd$ac_dir_suffix 1359# for backward compatibility: 1360ac_top_builddir=$ac_top_build_prefix 1361 1362case $srcdir in 1363 .) # We are building in place. 1364 ac_srcdir=. 1365 ac_top_srcdir=$ac_top_builddir_sub 1366 ac_abs_top_srcdir=$ac_pwd ;; 1367 [\\/]* | ?:[\\/]* ) # Absolute name. 1368 ac_srcdir=$srcdir$ac_dir_suffix; 1369 ac_top_srcdir=$srcdir 1370 ac_abs_top_srcdir=$srcdir ;; 1371 *) # Relative name. 1372 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1373 ac_top_srcdir=$ac_top_build_prefix$srcdir 1374 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1375esac 1376ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1377 1378 cd "$ac_dir" || { ac_status=$?; continue; } 1379 # Check for guested configure. 1380 if test -f "$ac_srcdir/configure.gnu"; then 1381 echo && 1382 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1383 elif test -f "$ac_srcdir/configure"; then 1384 echo && 1385 $SHELL "$ac_srcdir/configure" --help=recursive 1386 else 1387 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1388 fi || ac_status=$? 1389 cd "$ac_pwd" || { ac_status=$?; break; } 1390 done 1391fi 1392 1393test -n "$ac_init_help" && exit $ac_status 1394if $ac_init_version; then 1395 cat <<\_ACEOF 1396tclx configure 8.4 1397generated by GNU Autoconf 2.61 1398 1399Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14002002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1401This configure script is free software; the Free Software Foundation 1402gives unlimited permission to copy, distribute and modify it. 1403_ACEOF 1404 exit 1405fi 1406cat >config.log <<_ACEOF 1407This file contains any messages produced by compilers while 1408running configure, to aid debugging if configure makes a mistake. 1409 1410It was created by tclx $as_me 8.4, which was 1411generated by GNU Autoconf 2.61. Invocation command line was 1412 1413 $ $0 $@ 1414 1415_ACEOF 1416exec 5>>config.log 1417{ 1418cat <<_ASUNAME 1419## --------- ## 1420## Platform. ## 1421## --------- ## 1422 1423hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1424uname -m = `(uname -m) 2>/dev/null || echo unknown` 1425uname -r = `(uname -r) 2>/dev/null || echo unknown` 1426uname -s = `(uname -s) 2>/dev/null || echo unknown` 1427uname -v = `(uname -v) 2>/dev/null || echo unknown` 1428 1429/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1430/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1431 1432/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1433/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1434/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1435/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1436/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1437/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1438/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1439 1440_ASUNAME 1441 1442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1443for as_dir in $PATH 1444do 1445 IFS=$as_save_IFS 1446 test -z "$as_dir" && as_dir=. 1447 echo "PATH: $as_dir" 1448done 1449IFS=$as_save_IFS 1450 1451} >&5 1452 1453cat >&5 <<_ACEOF 1454 1455 1456## ----------- ## 1457## Core tests. ## 1458## ----------- ## 1459 1460_ACEOF 1461 1462 1463# Keep a trace of the command line. 1464# Strip out --no-create and --no-recursion so they do not pile up. 1465# Strip out --silent because we don't want to record it for future runs. 1466# Also quote any args containing shell meta-characters. 1467# Make two passes to allow for proper duplicate-argument suppression. 1468ac_configure_args= 1469ac_configure_args0= 1470ac_configure_args1= 1471ac_must_keep_next=false 1472for ac_pass in 1 2 1473do 1474 for ac_arg 1475 do 1476 case $ac_arg in 1477 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1478 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1479 | -silent | --silent | --silen | --sile | --sil) 1480 continue ;; 1481 *\'*) 1482 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1483 esac 1484 case $ac_pass in 1485 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1486 2) 1487 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1488 if test $ac_must_keep_next = true; then 1489 ac_must_keep_next=false # Got value, back to normal. 1490 else 1491 case $ac_arg in 1492 *=* | --config-cache | -C | -disable-* | --disable-* \ 1493 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1494 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1495 | -with-* | --with-* | -without-* | --without-* | --x) 1496 case "$ac_configure_args0 " in 1497 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1498 esac 1499 ;; 1500 -* ) ac_must_keep_next=true ;; 1501 esac 1502 fi 1503 ac_configure_args="$ac_configure_args '$ac_arg'" 1504 ;; 1505 esac 1506 done 1507done 1508$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1509$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1510 1511# When interrupted or exit'd, cleanup temporary files, and complete 1512# config.log. We remove comments because anyway the quotes in there 1513# would cause problems or look ugly. 1514# WARNING: Use '\'' to represent an apostrophe within the trap. 1515# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1516trap 'exit_status=$? 1517 # Save into config.log some information that might help in debugging. 1518 { 1519 echo 1520 1521 cat <<\_ASBOX 1522## ---------------- ## 1523## Cache variables. ## 1524## ---------------- ## 1525_ASBOX 1526 echo 1527 # The following way of writing the cache mishandles newlines in values, 1528( 1529 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1530 eval ac_val=\$$ac_var 1531 case $ac_val in #( 1532 *${as_nl}*) 1533 case $ac_var in #( 1534 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1535echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1536 esac 1537 case $ac_var in #( 1538 _ | IFS | as_nl) ;; #( 1539 *) $as_unset $ac_var ;; 1540 esac ;; 1541 esac 1542 done 1543 (set) 2>&1 | 1544 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1545 *${as_nl}ac_space=\ *) 1546 sed -n \ 1547 "s/'\''/'\''\\\\'\'''\''/g; 1548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1549 ;; #( 1550 *) 1551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1552 ;; 1553 esac | 1554 sort 1555) 1556 echo 1557 1558 cat <<\_ASBOX 1559## ----------------- ## 1560## Output variables. ## 1561## ----------------- ## 1562_ASBOX 1563 echo 1564 for ac_var in $ac_subst_vars 1565 do 1566 eval ac_val=\$$ac_var 1567 case $ac_val in 1568 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1569 esac 1570 echo "$ac_var='\''$ac_val'\''" 1571 done | sort 1572 echo 1573 1574 if test -n "$ac_subst_files"; then 1575 cat <<\_ASBOX 1576## ------------------- ## 1577## File substitutions. ## 1578## ------------------- ## 1579_ASBOX 1580 echo 1581 for ac_var in $ac_subst_files 1582 do 1583 eval ac_val=\$$ac_var 1584 case $ac_val in 1585 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1586 esac 1587 echo "$ac_var='\''$ac_val'\''" 1588 done | sort 1589 echo 1590 fi 1591 1592 if test -s confdefs.h; then 1593 cat <<\_ASBOX 1594## ----------- ## 1595## confdefs.h. ## 1596## ----------- ## 1597_ASBOX 1598 echo 1599 cat confdefs.h 1600 echo 1601 fi 1602 test "$ac_signal" != 0 && 1603 echo "$as_me: caught signal $ac_signal" 1604 echo "$as_me: exit $exit_status" 1605 } >&5 1606 rm -f core *.core core.conftest.* && 1607 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1608 exit $exit_status 1609' 0 1610for ac_signal in 1 2 13 15; do 1611 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1612done 1613ac_signal=0 1614 1615# confdefs.h avoids OS command line length limits that DEFS can exceed. 1616rm -f -r conftest* confdefs.h 1617 1618# Predefined preprocessor variables. 1619 1620cat >>confdefs.h <<_ACEOF 1621#define PACKAGE_NAME "$PACKAGE_NAME" 1622_ACEOF 1623 1624 1625cat >>confdefs.h <<_ACEOF 1626#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1627_ACEOF 1628 1629 1630cat >>confdefs.h <<_ACEOF 1631#define PACKAGE_VERSION "$PACKAGE_VERSION" 1632_ACEOF 1633 1634 1635cat >>confdefs.h <<_ACEOF 1636#define PACKAGE_STRING "$PACKAGE_STRING" 1637_ACEOF 1638 1639 1640cat >>confdefs.h <<_ACEOF 1641#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1642_ACEOF 1643 1644 1645# Let the site file select an alternate cache file if it wants to. 1646# Prefer explicitly selected file to automatically selected ones. 1647if test -n "$CONFIG_SITE"; then 1648 set x "$CONFIG_SITE" 1649elif test "x$prefix" != xNONE; then 1650 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1651else 1652 set x "$ac_default_prefix/share/config.site" \ 1653 "$ac_default_prefix/etc/config.site" 1654fi 1655shift 1656for ac_site_file 1657do 1658 if test -r "$ac_site_file"; then 1659 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1660echo "$as_me: loading site script $ac_site_file" >&6;} 1661 sed 's/^/| /' "$ac_site_file" >&5 1662 . "$ac_site_file" 1663 fi 1664done 1665 1666if test -r "$cache_file"; then 1667 # Some versions of bash will fail to source /dev/null (special 1668 # files actually), so we avoid doing that. 1669 if test -f "$cache_file"; then 1670 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1671echo "$as_me: loading cache $cache_file" >&6;} 1672 case $cache_file in 1673 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1674 *) . "./$cache_file";; 1675 esac 1676 fi 1677else 1678 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1679echo "$as_me: creating cache $cache_file" >&6;} 1680 >$cache_file 1681fi 1682 1683# Check that the precious variables saved in the cache have kept the same 1684# value. 1685ac_cache_corrupted=false 1686for ac_var in $ac_precious_vars; do 1687 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1688 eval ac_new_set=\$ac_env_${ac_var}_set 1689 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1690 eval ac_new_val=\$ac_env_${ac_var}_value 1691 case $ac_old_set,$ac_new_set in 1692 set,) 1693 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1694echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1695 ac_cache_corrupted=: ;; 1696 ,set) 1697 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1698echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1699 ac_cache_corrupted=: ;; 1700 ,);; 1701 *) 1702 if test "x$ac_old_val" != "x$ac_new_val"; then 1703 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1704echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1705 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1706echo "$as_me: former value: $ac_old_val" >&2;} 1707 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1708echo "$as_me: current value: $ac_new_val" >&2;} 1709 ac_cache_corrupted=: 1710 fi;; 1711 esac 1712 # Pass precious variables to config.status. 1713 if test "$ac_new_set" = set; then 1714 case $ac_new_val in 1715 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1716 *) ac_arg=$ac_var=$ac_new_val ;; 1717 esac 1718 case " $ac_configure_args " in 1719 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1720 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1721 esac 1722 fi 1723done 1724if $ac_cache_corrupted; then 1725 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1726echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1727 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1728echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1729 { (exit 1); exit 1; }; } 1730fi 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756ac_ext=c 1757ac_cpp='$CPP $CPPFLAGS' 1758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1760ac_compiler_gnu=$ac_cv_c_compiler_gnu 1761 1762 1763FULL_VERSION="8.4.0" 1764 1765 1766 # TEA extensions pass this us the version of TEA they think they 1767 # are compatible with. 1768 TEA_VERSION="3.9" 1769 1770 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1771echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1772 if test x"${PACKAGE_NAME}" = x ; then 1773 { { echo "$as_me:$LINENO: error: 1774The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1775echo "$as_me: error: 1776The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1777 { (exit 1); exit 1; }; } 1778 fi 1779 if test x"3.9" = x ; then 1780 { { echo "$as_me:$LINENO: error: 1781TEA version not specified." >&5 1782echo "$as_me: error: 1783TEA version not specified." >&2;} 1784 { (exit 1); exit 1; }; } 1785 elif test "3.9" != "${TEA_VERSION}" ; then 1786 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1787echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1788 else 1789 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1790echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1791 fi 1792 case "`uname -s`" in 1793 *win32*|*WIN32*|*MINGW32_*) 1794 # Extract the first word of "cygpath", so it can be a program name with args. 1795set dummy cygpath; ac_word=$2 1796{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1798if test "${ac_cv_prog_CYGPATH+set}" = set; then 1799 echo $ECHO_N "(cached) $ECHO_C" >&6 1800else 1801 if test -n "$CYGPATH"; then 1802 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1803else 1804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1805for as_dir in $PATH 1806do 1807 IFS=$as_save_IFS 1808 test -z "$as_dir" && as_dir=. 1809 for ac_exec_ext in '' $ac_executable_extensions; do 1810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1811 ac_cv_prog_CYGPATH="cygpath -w" 1812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1813 break 2 1814 fi 1815done 1816done 1817IFS=$as_save_IFS 1818 1819 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1820fi 1821fi 1822CYGPATH=$ac_cv_prog_CYGPATH 1823if test -n "$CYGPATH"; then 1824 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1825echo "${ECHO_T}$CYGPATH" >&6; } 1826else 1827 { echo "$as_me:$LINENO: result: no" >&5 1828echo "${ECHO_T}no" >&6; } 1829fi 1830 1831 1832 EXEEXT=".exe" 1833 TEA_PLATFORM="windows" 1834 ;; 1835 *CYGWIN_*) 1836 CYGPATH=echo 1837 EXEEXT=".exe" 1838 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1839 ;; 1840 *) 1841 CYGPATH=echo 1842 EXEEXT="" 1843 TEA_PLATFORM="unix" 1844 ;; 1845 esac 1846 1847 # Check if exec_prefix is set. If not use fall back to prefix. 1848 # Note when adjusted, so that TEA_PREFIX can correct for this. 1849 # This is needed for recursive configures, since autoconf propagates 1850 # $prefix, but not $exec_prefix (doh!). 1851 if test x$exec_prefix = xNONE ; then 1852 exec_prefix_default=yes 1853 exec_prefix=$prefix 1854 fi 1855 1856 1857 1858 1859 # This package name must be replaced statically for AC_SUBST to work 1860 1861 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1862 1863 1864 # We AC_SUBST these here to ensure they are subst'ed, 1865 # in case the user doesn't call TEA_ADD_... 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875ac_aux_dir= 1876for ac_dir in tclconfig "$srcdir"/tclconfig; do 1877 if test -f "$ac_dir/install-sh"; then 1878 ac_aux_dir=$ac_dir 1879 ac_install_sh="$ac_aux_dir/install-sh -c" 1880 break 1881 elif test -f "$ac_dir/install.sh"; then 1882 ac_aux_dir=$ac_dir 1883 ac_install_sh="$ac_aux_dir/install.sh -c" 1884 break 1885 elif test -f "$ac_dir/shtool"; then 1886 ac_aux_dir=$ac_dir 1887 ac_install_sh="$ac_aux_dir/shtool install -c" 1888 break 1889 fi 1890done 1891if test -z "$ac_aux_dir"; then 1892 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5 1893echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;} 1894 { (exit 1); exit 1; }; } 1895fi 1896 1897# These three variables are undocumented and unsupported, 1898# and are intended to be withdrawn in a future Autoconf release. 1899# They can cause serious problems if a builder's source tree is in a directory 1900# whose full name contains unusual characters. 1901ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1902ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1903ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1904 1905 1906 1907cat >>confdefs.h <<_ACEOF 1908#define FULL_VERSION "${FULL_VERSION}" 1909_ACEOF 1910 1911 1912#-------------------------------------------------------------------- 1913# Load the tclConfig.sh file 1914#-------------------------------------------------------------------- 1915 1916 1917 1918 # 1919 # Ok, lets find the tcl configuration 1920 # First, look for one uninstalled. 1921 # the alternative search directory is invoked by --with-tcl 1922 # 1923 1924 if test x"${no_tcl}" = x ; then 1925 # we reset no_tcl in case something fails here 1926 no_tcl=true 1927 1928# Check whether --with-tcl was given. 1929if test "${with_tcl+set}" = set; then 1930 withval=$with_tcl; with_tclconfig="${withval}" 1931fi 1932 1933 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1934echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1935 if test "${ac_cv_c_tclconfig+set}" = set; then 1936 echo $ECHO_N "(cached) $ECHO_C" >&6 1937else 1938 1939 1940 # First check to see if --with-tcl was specified. 1941 if test x"${with_tclconfig}" != x ; then 1942 case "${with_tclconfig}" in 1943 */tclConfig.sh ) 1944 if test -f "${with_tclconfig}"; then 1945 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1946echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1947 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1948 fi ;; 1949 esac 1950 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1951 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1952 else 1953 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1954echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1955 { (exit 1); exit 1; }; } 1956 fi 1957 fi 1958 1959 # then check for a private Tcl installation 1960 if test x"${ac_cv_c_tclconfig}" = x ; then 1961 for i in \ 1962 ../tcl \ 1963 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1964 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1965 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1966 ../../tcl \ 1967 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1968 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1969 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1970 ../../../tcl \ 1971 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1972 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1973 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1974 if test "${TEA_PLATFORM}" = "windows" \ 1975 -a -f "$i/win/tclConfig.sh" ; then 1976 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 1977 break 1978 fi 1979 if test -f "$i/unix/tclConfig.sh" ; then 1980 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1981 break 1982 fi 1983 done 1984 fi 1985 1986 # on Darwin, check in Framework installation locations 1987 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1988 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1989 `ls -d /Library/Frameworks 2>/dev/null` \ 1990 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1991 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1992 ; do 1993 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 1994 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 1995 break 1996 fi 1997 done 1998 fi 1999 2000 # TEA specific: on Windows, check in common installation locations 2001 if test "${TEA_PLATFORM}" = "windows" \ 2002 -a x"${ac_cv_c_tclconfig}" = x ; then 2003 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2004 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2005 ; do 2006 if test -f "$i/tclConfig.sh" ; then 2007 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2008 break 2009 fi 2010 done 2011 fi 2012 2013 # check in a few common install locations 2014 if test x"${ac_cv_c_tclconfig}" = x ; then 2015 for i in `ls -d ${libdir} 2>/dev/null` \ 2016 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2017 `ls -d ${prefix}/lib 2>/dev/null` \ 2018 `ls -d /usr/local/lib 2>/dev/null` \ 2019 `ls -d /usr/contrib/lib 2>/dev/null` \ 2020 `ls -d /usr/lib 2>/dev/null` \ 2021 `ls -d /usr/lib64 2>/dev/null` \ 2022 ; do 2023 if test -f "$i/tclConfig.sh" ; then 2024 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2025 break 2026 fi 2027 done 2028 fi 2029 2030 # check in a few other private locations 2031 if test x"${ac_cv_c_tclconfig}" = x ; then 2032 for i in \ 2033 ${srcdir}/../tcl \ 2034 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2035 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2036 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2037 if test "${TEA_PLATFORM}" = "windows" \ 2038 -a -f "$i/win/tclConfig.sh" ; then 2039 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2040 break 2041 fi 2042 if test -f "$i/unix/tclConfig.sh" ; then 2043 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2044 break 2045 fi 2046 done 2047 fi 2048 2049fi 2050 2051 2052 if test x"${ac_cv_c_tclconfig}" = x ; then 2053 TCL_BIN_DIR="# no Tcl configs found" 2054 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2055echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2056 { (exit 1); exit 1; }; } 2057 else 2058 no_tcl= 2059 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2060 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2061echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2062 fi 2063 fi 2064 2065 2066 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2067echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2068 2069 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2070 { echo "$as_me:$LINENO: result: loading" >&5 2071echo "${ECHO_T}loading" >&6; } 2072 . "${TCL_BIN_DIR}/tclConfig.sh" 2073 else 2074 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2075echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2076 fi 2077 2078 # eval is required to do the TCL_DBGX substitution 2079 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2080 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2081 2082 # If the TCL_BIN_DIR is the build directory (not the install directory), 2083 # then set the common variable name to the value of the build variables. 2084 # For example, the variable TCL_LIB_SPEC will be set to the value 2085 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2086 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2087 # installed and uninstalled version of Tcl. 2088 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2089 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2090 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2091 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2092 elif test "`uname -s`" = "Darwin"; then 2093 # If Tcl was built as a framework, attempt to use the libraries 2094 # from the framework at the given location so that linking works 2095 # against Tcl.framework installed in an arbitrary location. 2096 case ${TCL_DEFS} in 2097 *TCL_FRAMEWORK*) 2098 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2099 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2100 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2101 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2102 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2103 break 2104 fi 2105 done 2106 fi 2107 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2108 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2109 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2110 fi 2111 ;; 2112 esac 2113 fi 2114 2115 # eval is required to do the TCL_DBGX substitution 2116 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2117 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2118 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2119 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 case "`uname -s`" in 2135 *CYGWIN_*) 2136 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2137echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2138 case ${TCL_EXTRA_CFLAGS} in 2139 *-mwin32*|*-mno-cygwin*) 2140 TEA_PLATFORM="windows" 2141 CFLAGS="$CFLAGS -mwin32" 2142 { echo "$as_me:$LINENO: result: win32" >&5 2143echo "${ECHO_T}win32" >&6; } 2144 ;; 2145 *) 2146 TEA_PLATFORM="unix" 2147 { echo "$as_me:$LINENO: result: unix" >&5 2148echo "${ECHO_T}unix" >&6; } 2149 ;; 2150 esac 2151 EXEEXT=".exe" 2152 ;; 2153 *) 2154 ;; 2155 esac 2156 2157 # Do this here as we have fully defined TEA_PLATFORM now 2158 if test "${TEA_PLATFORM}" = "windows" ; then 2159 # The BUILD_$pkg is to define the correct extern storage class 2160 # handling when making this package 2161 2162cat >>confdefs.h <<_ACEOF 2163#define BUILD_${PACKAGE_NAME} 2164_ACEOF 2165 2166 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2167 fi 2168 2169 # TEA specific: 2170 2171 2172 2173 2174 2175 2176 2177 2178#----------------------------------------------------------------------- 2179# Handle the --prefix=... option by defaulting to what Tcl gave. 2180# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2181#----------------------------------------------------------------------- 2182 2183 2184 if test "${prefix}" = "NONE"; then 2185 prefix_default=yes 2186 if test x"${TCL_PREFIX}" != x; then 2187 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2188echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2189 prefix=${TCL_PREFIX} 2190 else 2191 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2192echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2193 prefix=/usr/local 2194 fi 2195 fi 2196 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2197 -o x"${exec_prefix_default}" = x"yes" ; then 2198 if test x"${TCL_EXEC_PREFIX}" != x; then 2199 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2200echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2201 exec_prefix=${TCL_EXEC_PREFIX} 2202 else 2203 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2204echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2205 exec_prefix=$prefix 2206 fi 2207 fi 2208 2209 2210#----------------------------------------------------------------------- 2211# Standard compiler checks. 2212# This sets up CC by using the CC env var, or looks for gcc otherwise. 2213# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2214# the basic setup necessary to compile executables. 2215#----------------------------------------------------------------------- 2216 2217 2218 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2219 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2220 2221 # If the user did not set CFLAGS, set it now to keep 2222 # the AC_PROG_CC macro from adding "-g -O2". 2223 if test "${CFLAGS+set}" != "set" ; then 2224 CFLAGS="" 2225 fi 2226 2227 ac_ext=c 2228ac_cpp='$CPP $CPPFLAGS' 2229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2231ac_compiler_gnu=$ac_cv_c_compiler_gnu 2232if test -n "$ac_tool_prefix"; then 2233 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2234set dummy ${ac_tool_prefix}gcc; ac_word=$2 2235{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2237if test "${ac_cv_prog_CC+set}" = set; then 2238 echo $ECHO_N "(cached) $ECHO_C" >&6 2239else 2240 if test -n "$CC"; then 2241 ac_cv_prog_CC="$CC" # Let the user override the test. 2242else 2243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2244for as_dir in $PATH 2245do 2246 IFS=$as_save_IFS 2247 test -z "$as_dir" && as_dir=. 2248 for ac_exec_ext in '' $ac_executable_extensions; do 2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2250 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2252 break 2 2253 fi 2254done 2255done 2256IFS=$as_save_IFS 2257 2258fi 2259fi 2260CC=$ac_cv_prog_CC 2261if test -n "$CC"; then 2262 { echo "$as_me:$LINENO: result: $CC" >&5 2263echo "${ECHO_T}$CC" >&6; } 2264else 2265 { echo "$as_me:$LINENO: result: no" >&5 2266echo "${ECHO_T}no" >&6; } 2267fi 2268 2269 2270fi 2271if test -z "$ac_cv_prog_CC"; then 2272 ac_ct_CC=$CC 2273 # Extract the first word of "gcc", so it can be a program name with args. 2274set dummy gcc; ac_word=$2 2275{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2277if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2278 echo $ECHO_N "(cached) $ECHO_C" >&6 2279else 2280 if test -n "$ac_ct_CC"; then 2281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2282else 2283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2284for as_dir in $PATH 2285do 2286 IFS=$as_save_IFS 2287 test -z "$as_dir" && as_dir=. 2288 for ac_exec_ext in '' $ac_executable_extensions; do 2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2290 ac_cv_prog_ac_ct_CC="gcc" 2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2292 break 2 2293 fi 2294done 2295done 2296IFS=$as_save_IFS 2297 2298fi 2299fi 2300ac_ct_CC=$ac_cv_prog_ac_ct_CC 2301if test -n "$ac_ct_CC"; then 2302 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2303echo "${ECHO_T}$ac_ct_CC" >&6; } 2304else 2305 { echo "$as_me:$LINENO: result: no" >&5 2306echo "${ECHO_T}no" >&6; } 2307fi 2308 2309 if test "x$ac_ct_CC" = x; then 2310 CC="" 2311 else 2312 case $cross_compiling:$ac_tool_warned in 2313yes:) 2314{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2315whose name does not start with the host triplet. If you think this 2316configuration is useful to you, please write to autoconf@gnu.org." >&5 2317echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2318whose name does not start with the host triplet. If you think this 2319configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2320ac_tool_warned=yes ;; 2321esac 2322 CC=$ac_ct_CC 2323 fi 2324else 2325 CC="$ac_cv_prog_CC" 2326fi 2327 2328if test -z "$CC"; then 2329 if test -n "$ac_tool_prefix"; then 2330 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2331set dummy ${ac_tool_prefix}cc; ac_word=$2 2332{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2334if test "${ac_cv_prog_CC+set}" = set; then 2335 echo $ECHO_N "(cached) $ECHO_C" >&6 2336else 2337 if test -n "$CC"; then 2338 ac_cv_prog_CC="$CC" # Let the user override the test. 2339else 2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2341for as_dir in $PATH 2342do 2343 IFS=$as_save_IFS 2344 test -z "$as_dir" && as_dir=. 2345 for ac_exec_ext in '' $ac_executable_extensions; do 2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2347 ac_cv_prog_CC="${ac_tool_prefix}cc" 2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2349 break 2 2350 fi 2351done 2352done 2353IFS=$as_save_IFS 2354 2355fi 2356fi 2357CC=$ac_cv_prog_CC 2358if test -n "$CC"; then 2359 { echo "$as_me:$LINENO: result: $CC" >&5 2360echo "${ECHO_T}$CC" >&6; } 2361else 2362 { echo "$as_me:$LINENO: result: no" >&5 2363echo "${ECHO_T}no" >&6; } 2364fi 2365 2366 2367 fi 2368fi 2369if test -z "$CC"; then 2370 # Extract the first word of "cc", so it can be a program name with args. 2371set dummy cc; ac_word=$2 2372{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2374if test "${ac_cv_prog_CC+set}" = set; then 2375 echo $ECHO_N "(cached) $ECHO_C" >&6 2376else 2377 if test -n "$CC"; then 2378 ac_cv_prog_CC="$CC" # Let the user override the test. 2379else 2380 ac_prog_rejected=no 2381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2382for as_dir in $PATH 2383do 2384 IFS=$as_save_IFS 2385 test -z "$as_dir" && as_dir=. 2386 for ac_exec_ext in '' $ac_executable_extensions; do 2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2388 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2389 ac_prog_rejected=yes 2390 continue 2391 fi 2392 ac_cv_prog_CC="cc" 2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2394 break 2 2395 fi 2396done 2397done 2398IFS=$as_save_IFS 2399 2400if test $ac_prog_rejected = yes; then 2401 # We found a bogon in the path, so make sure we never use it. 2402 set dummy $ac_cv_prog_CC 2403 shift 2404 if test $# != 0; then 2405 # We chose a different compiler from the bogus one. 2406 # However, it has the same basename, so the bogon will be chosen 2407 # first if we set CC to just the basename; use the full file name. 2408 shift 2409 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2410 fi 2411fi 2412fi 2413fi 2414CC=$ac_cv_prog_CC 2415if test -n "$CC"; then 2416 { echo "$as_me:$LINENO: result: $CC" >&5 2417echo "${ECHO_T}$CC" >&6; } 2418else 2419 { echo "$as_me:$LINENO: result: no" >&5 2420echo "${ECHO_T}no" >&6; } 2421fi 2422 2423 2424fi 2425if test -z "$CC"; then 2426 if test -n "$ac_tool_prefix"; then 2427 for ac_prog in cl.exe 2428 do 2429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2430set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2431{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2433if test "${ac_cv_prog_CC+set}" = set; then 2434 echo $ECHO_N "(cached) $ECHO_C" >&6 2435else 2436 if test -n "$CC"; then 2437 ac_cv_prog_CC="$CC" # Let the user override the test. 2438else 2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2440for as_dir in $PATH 2441do 2442 IFS=$as_save_IFS 2443 test -z "$as_dir" && as_dir=. 2444 for ac_exec_ext in '' $ac_executable_extensions; do 2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2446 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2448 break 2 2449 fi 2450done 2451done 2452IFS=$as_save_IFS 2453 2454fi 2455fi 2456CC=$ac_cv_prog_CC 2457if test -n "$CC"; then 2458 { echo "$as_me:$LINENO: result: $CC" >&5 2459echo "${ECHO_T}$CC" >&6; } 2460else 2461 { echo "$as_me:$LINENO: result: no" >&5 2462echo "${ECHO_T}no" >&6; } 2463fi 2464 2465 2466 test -n "$CC" && break 2467 done 2468fi 2469if test -z "$CC"; then 2470 ac_ct_CC=$CC 2471 for ac_prog in cl.exe 2472do 2473 # Extract the first word of "$ac_prog", so it can be a program name with args. 2474set dummy $ac_prog; ac_word=$2 2475{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2477if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2478 echo $ECHO_N "(cached) $ECHO_C" >&6 2479else 2480 if test -n "$ac_ct_CC"; then 2481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2482else 2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2484for as_dir in $PATH 2485do 2486 IFS=$as_save_IFS 2487 test -z "$as_dir" && as_dir=. 2488 for ac_exec_ext in '' $ac_executable_extensions; do 2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2490 ac_cv_prog_ac_ct_CC="$ac_prog" 2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2492 break 2 2493 fi 2494done 2495done 2496IFS=$as_save_IFS 2497 2498fi 2499fi 2500ac_ct_CC=$ac_cv_prog_ac_ct_CC 2501if test -n "$ac_ct_CC"; then 2502 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2503echo "${ECHO_T}$ac_ct_CC" >&6; } 2504else 2505 { echo "$as_me:$LINENO: result: no" >&5 2506echo "${ECHO_T}no" >&6; } 2507fi 2508 2509 2510 test -n "$ac_ct_CC" && break 2511done 2512 2513 if test "x$ac_ct_CC" = x; then 2514 CC="" 2515 else 2516 case $cross_compiling:$ac_tool_warned in 2517yes:) 2518{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2519whose name does not start with the host triplet. If you think this 2520configuration is useful to you, please write to autoconf@gnu.org." >&5 2521echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2522whose name does not start with the host triplet. If you think this 2523configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2524ac_tool_warned=yes ;; 2525esac 2526 CC=$ac_ct_CC 2527 fi 2528fi 2529 2530fi 2531 2532 2533test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2534See \`config.log' for more details." >&5 2535echo "$as_me: error: no acceptable C compiler found in \$PATH 2536See \`config.log' for more details." >&2;} 2537 { (exit 1); exit 1; }; } 2538 2539# Provide some information about the compiler. 2540echo "$as_me:$LINENO: checking for C compiler version" >&5 2541ac_compiler=`set X $ac_compile; echo $2` 2542{ (ac_try="$ac_compiler --version >&5" 2543case "(($ac_try" in 2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2545 *) ac_try_echo=$ac_try;; 2546esac 2547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2548 (eval "$ac_compiler --version >&5") 2>&5 2549 ac_status=$? 2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2551 (exit $ac_status); } 2552{ (ac_try="$ac_compiler -v >&5" 2553case "(($ac_try" in 2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2555 *) ac_try_echo=$ac_try;; 2556esac 2557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2558 (eval "$ac_compiler -v >&5") 2>&5 2559 ac_status=$? 2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2561 (exit $ac_status); } 2562{ (ac_try="$ac_compiler -V >&5" 2563case "(($ac_try" in 2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2565 *) ac_try_echo=$ac_try;; 2566esac 2567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2568 (eval "$ac_compiler -V >&5") 2>&5 2569 ac_status=$? 2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2571 (exit $ac_status); } 2572 2573cat >conftest.$ac_ext <<_ACEOF 2574/* confdefs.h. */ 2575_ACEOF 2576cat confdefs.h >>conftest.$ac_ext 2577cat >>conftest.$ac_ext <<_ACEOF 2578/* end confdefs.h. */ 2579 2580int 2581main () 2582{ 2583 2584 ; 2585 return 0; 2586} 2587_ACEOF 2588ac_clean_files_save=$ac_clean_files 2589ac_clean_files="$ac_clean_files a.out a.exe b.out" 2590# Try to create an executable without -o first, disregard a.out. 2591# It will help us diagnose broken compilers, and finding out an intuition 2592# of exeext. 2593{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2594echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2595ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2596# 2597# List of possible output files, starting from the most likely. 2598# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2599# only as a last resort. b.out is created by i960 compilers. 2600ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2601# 2602# The IRIX 6 linker writes into existing files which may not be 2603# executable, retaining their permissions. Remove them first so a 2604# subsequent execution test works. 2605ac_rmfiles= 2606for ac_file in $ac_files 2607do 2608 case $ac_file in 2609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2610 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2611 esac 2612done 2613rm -f $ac_rmfiles 2614 2615if { (ac_try="$ac_link_default" 2616case "(($ac_try" in 2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2618 *) ac_try_echo=$ac_try;; 2619esac 2620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2621 (eval "$ac_link_default") 2>&5 2622 ac_status=$? 2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2624 (exit $ac_status); }; then 2625 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2626# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2627# in a Makefile. We should not override ac_cv_exeext if it was cached, 2628# so that the user can short-circuit this test for compilers unknown to 2629# Autoconf. 2630for ac_file in $ac_files '' 2631do 2632 test -f "$ac_file" || continue 2633 case $ac_file in 2634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2635 ;; 2636 [ab].out ) 2637 # We found the default executable, but exeext='' is most 2638 # certainly right. 2639 break;; 2640 *.* ) 2641 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2642 then :; else 2643 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2644 fi 2645 # We set ac_cv_exeext here because the later test for it is not 2646 # safe: cross compilers may not add the suffix if given an `-o' 2647 # argument, so we may need to know it at that point already. 2648 # Even if this section looks crufty: it has the advantage of 2649 # actually working. 2650 break;; 2651 * ) 2652 break;; 2653 esac 2654done 2655test "$ac_cv_exeext" = no && ac_cv_exeext= 2656 2657else 2658 ac_file='' 2659fi 2660 2661{ echo "$as_me:$LINENO: result: $ac_file" >&5 2662echo "${ECHO_T}$ac_file" >&6; } 2663if test -z "$ac_file"; then 2664 echo "$as_me: failed program was:" >&5 2665sed 's/^/| /' conftest.$ac_ext >&5 2666 2667{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2668See \`config.log' for more details." >&5 2669echo "$as_me: error: C compiler cannot create executables 2670See \`config.log' for more details." >&2;} 2671 { (exit 77); exit 77; }; } 2672fi 2673 2674ac_exeext=$ac_cv_exeext 2675 2676# Check that the compiler produces executables we can run. If not, either 2677# the compiler is broken, or we cross compile. 2678{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2679echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2680# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2681# If not cross compiling, check that we can run a simple program. 2682if test "$cross_compiling" != yes; then 2683 if { ac_try='./$ac_file' 2684 { (case "(($ac_try" in 2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2686 *) ac_try_echo=$ac_try;; 2687esac 2688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2689 (eval "$ac_try") 2>&5 2690 ac_status=$? 2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2692 (exit $ac_status); }; }; then 2693 cross_compiling=no 2694 else 2695 if test "$cross_compiling" = maybe; then 2696 cross_compiling=yes 2697 else 2698 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2699If you meant to cross compile, use \`--host'. 2700See \`config.log' for more details." >&5 2701echo "$as_me: error: cannot run C compiled programs. 2702If you meant to cross compile, use \`--host'. 2703See \`config.log' for more details." >&2;} 2704 { (exit 1); exit 1; }; } 2705 fi 2706 fi 2707fi 2708{ echo "$as_me:$LINENO: result: yes" >&5 2709echo "${ECHO_T}yes" >&6; } 2710 2711rm -f a.out a.exe conftest$ac_cv_exeext b.out 2712ac_clean_files=$ac_clean_files_save 2713# Check that the compiler produces executables we can run. If not, either 2714# the compiler is broken, or we cross compile. 2715{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2716echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2717{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2718echo "${ECHO_T}$cross_compiling" >&6; } 2719 2720{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2721echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2722if { (ac_try="$ac_link" 2723case "(($ac_try" in 2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2725 *) ac_try_echo=$ac_try;; 2726esac 2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2728 (eval "$ac_link") 2>&5 2729 ac_status=$? 2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2731 (exit $ac_status); }; then 2732 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2733# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2734# work properly (i.e., refer to `conftest.exe'), while it won't with 2735# `rm'. 2736for ac_file in conftest.exe conftest conftest.*; do 2737 test -f "$ac_file" || continue 2738 case $ac_file in 2739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2740 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2741 break;; 2742 * ) break;; 2743 esac 2744done 2745else 2746 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2747See \`config.log' for more details." >&5 2748echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2749See \`config.log' for more details." >&2;} 2750 { (exit 1); exit 1; }; } 2751fi 2752 2753rm -f conftest$ac_cv_exeext 2754{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2755echo "${ECHO_T}$ac_cv_exeext" >&6; } 2756 2757rm -f conftest.$ac_ext 2758EXEEXT=$ac_cv_exeext 2759ac_exeext=$EXEEXT 2760{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2761echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2762if test "${ac_cv_objext+set}" = set; then 2763 echo $ECHO_N "(cached) $ECHO_C" >&6 2764else 2765 cat >conftest.$ac_ext <<_ACEOF 2766/* confdefs.h. */ 2767_ACEOF 2768cat confdefs.h >>conftest.$ac_ext 2769cat >>conftest.$ac_ext <<_ACEOF 2770/* end confdefs.h. */ 2771 2772int 2773main () 2774{ 2775 2776 ; 2777 return 0; 2778} 2779_ACEOF 2780rm -f conftest.o conftest.obj 2781if { (ac_try="$ac_compile" 2782case "(($ac_try" in 2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2784 *) ac_try_echo=$ac_try;; 2785esac 2786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2787 (eval "$ac_compile") 2>&5 2788 ac_status=$? 2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2790 (exit $ac_status); }; then 2791 for ac_file in conftest.o conftest.obj conftest.*; do 2792 test -f "$ac_file" || continue; 2793 case $ac_file in 2794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2795 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2796 break;; 2797 esac 2798done 2799else 2800 echo "$as_me: failed program was:" >&5 2801sed 's/^/| /' conftest.$ac_ext >&5 2802 2803{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2804See \`config.log' for more details." >&5 2805echo "$as_me: error: cannot compute suffix of object files: cannot compile 2806See \`config.log' for more details." >&2;} 2807 { (exit 1); exit 1; }; } 2808fi 2809 2810rm -f conftest.$ac_cv_objext conftest.$ac_ext 2811fi 2812{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2813echo "${ECHO_T}$ac_cv_objext" >&6; } 2814OBJEXT=$ac_cv_objext 2815ac_objext=$OBJEXT 2816{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2817echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2818if test "${ac_cv_c_compiler_gnu+set}" = set; then 2819 echo $ECHO_N "(cached) $ECHO_C" >&6 2820else 2821 cat >conftest.$ac_ext <<_ACEOF 2822/* confdefs.h. */ 2823_ACEOF 2824cat confdefs.h >>conftest.$ac_ext 2825cat >>conftest.$ac_ext <<_ACEOF 2826/* end confdefs.h. */ 2827 2828int 2829main () 2830{ 2831#ifndef __GNUC__ 2832 choke me 2833#endif 2834 2835 ; 2836 return 0; 2837} 2838_ACEOF 2839rm -f conftest.$ac_objext 2840if { (ac_try="$ac_compile" 2841case "(($ac_try" in 2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2843 *) ac_try_echo=$ac_try;; 2844esac 2845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2846 (eval "$ac_compile") 2>conftest.er1 2847 ac_status=$? 2848 grep -v '^ *+' conftest.er1 >conftest.err 2849 rm -f conftest.er1 2850 cat conftest.err >&5 2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2852 (exit $ac_status); } && { 2853 test -z "$ac_c_werror_flag" || 2854 test ! -s conftest.err 2855 } && test -s conftest.$ac_objext; then 2856 ac_compiler_gnu=yes 2857else 2858 echo "$as_me: failed program was:" >&5 2859sed 's/^/| /' conftest.$ac_ext >&5 2860 2861 ac_compiler_gnu=no 2862fi 2863 2864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2865ac_cv_c_compiler_gnu=$ac_compiler_gnu 2866 2867fi 2868{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2869echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2870GCC=`test $ac_compiler_gnu = yes && echo yes` 2871ac_test_CFLAGS=${CFLAGS+set} 2872ac_save_CFLAGS=$CFLAGS 2873{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2874echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2875if test "${ac_cv_prog_cc_g+set}" = set; then 2876 echo $ECHO_N "(cached) $ECHO_C" >&6 2877else 2878 ac_save_c_werror_flag=$ac_c_werror_flag 2879 ac_c_werror_flag=yes 2880 ac_cv_prog_cc_g=no 2881 CFLAGS="-g" 2882 cat >conftest.$ac_ext <<_ACEOF 2883/* confdefs.h. */ 2884_ACEOF 2885cat confdefs.h >>conftest.$ac_ext 2886cat >>conftest.$ac_ext <<_ACEOF 2887/* end confdefs.h. */ 2888 2889int 2890main () 2891{ 2892 2893 ; 2894 return 0; 2895} 2896_ACEOF 2897rm -f conftest.$ac_objext 2898if { (ac_try="$ac_compile" 2899case "(($ac_try" in 2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2901 *) ac_try_echo=$ac_try;; 2902esac 2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2904 (eval "$ac_compile") 2>conftest.er1 2905 ac_status=$? 2906 grep -v '^ *+' conftest.er1 >conftest.err 2907 rm -f conftest.er1 2908 cat conftest.err >&5 2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2910 (exit $ac_status); } && { 2911 test -z "$ac_c_werror_flag" || 2912 test ! -s conftest.err 2913 } && test -s conftest.$ac_objext; then 2914 ac_cv_prog_cc_g=yes 2915else 2916 echo "$as_me: failed program was:" >&5 2917sed 's/^/| /' conftest.$ac_ext >&5 2918 2919 CFLAGS="" 2920 cat >conftest.$ac_ext <<_ACEOF 2921/* confdefs.h. */ 2922_ACEOF 2923cat confdefs.h >>conftest.$ac_ext 2924cat >>conftest.$ac_ext <<_ACEOF 2925/* end confdefs.h. */ 2926 2927int 2928main () 2929{ 2930 2931 ; 2932 return 0; 2933} 2934_ACEOF 2935rm -f conftest.$ac_objext 2936if { (ac_try="$ac_compile" 2937case "(($ac_try" in 2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2939 *) ac_try_echo=$ac_try;; 2940esac 2941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2942 (eval "$ac_compile") 2>conftest.er1 2943 ac_status=$? 2944 grep -v '^ *+' conftest.er1 >conftest.err 2945 rm -f conftest.er1 2946 cat conftest.err >&5 2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2948 (exit $ac_status); } && { 2949 test -z "$ac_c_werror_flag" || 2950 test ! -s conftest.err 2951 } && test -s conftest.$ac_objext; then 2952 : 2953else 2954 echo "$as_me: failed program was:" >&5 2955sed 's/^/| /' conftest.$ac_ext >&5 2956 2957 ac_c_werror_flag=$ac_save_c_werror_flag 2958 CFLAGS="-g" 2959 cat >conftest.$ac_ext <<_ACEOF 2960/* confdefs.h. */ 2961_ACEOF 2962cat confdefs.h >>conftest.$ac_ext 2963cat >>conftest.$ac_ext <<_ACEOF 2964/* end confdefs.h. */ 2965 2966int 2967main () 2968{ 2969 2970 ; 2971 return 0; 2972} 2973_ACEOF 2974rm -f conftest.$ac_objext 2975if { (ac_try="$ac_compile" 2976case "(($ac_try" in 2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2978 *) ac_try_echo=$ac_try;; 2979esac 2980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2981 (eval "$ac_compile") 2>conftest.er1 2982 ac_status=$? 2983 grep -v '^ *+' conftest.er1 >conftest.err 2984 rm -f conftest.er1 2985 cat conftest.err >&5 2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2987 (exit $ac_status); } && { 2988 test -z "$ac_c_werror_flag" || 2989 test ! -s conftest.err 2990 } && test -s conftest.$ac_objext; then 2991 ac_cv_prog_cc_g=yes 2992else 2993 echo "$as_me: failed program was:" >&5 2994sed 's/^/| /' conftest.$ac_ext >&5 2995 2996 2997fi 2998 2999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3000fi 3001 3002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3003fi 3004 3005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3006 ac_c_werror_flag=$ac_save_c_werror_flag 3007fi 3008{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3009echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3010if test "$ac_test_CFLAGS" = set; then 3011 CFLAGS=$ac_save_CFLAGS 3012elif test $ac_cv_prog_cc_g = yes; then 3013 if test "$GCC" = yes; then 3014 CFLAGS="-g -O2" 3015 else 3016 CFLAGS="-g" 3017 fi 3018else 3019 if test "$GCC" = yes; then 3020 CFLAGS="-O2" 3021 else 3022 CFLAGS= 3023 fi 3024fi 3025{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3026echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3027if test "${ac_cv_prog_cc_c89+set}" = set; then 3028 echo $ECHO_N "(cached) $ECHO_C" >&6 3029else 3030 ac_cv_prog_cc_c89=no 3031ac_save_CC=$CC 3032cat >conftest.$ac_ext <<_ACEOF 3033/* confdefs.h. */ 3034_ACEOF 3035cat confdefs.h >>conftest.$ac_ext 3036cat >>conftest.$ac_ext <<_ACEOF 3037/* end confdefs.h. */ 3038#include <stdarg.h> 3039#include <stdio.h> 3040#include <sys/types.h> 3041#include <sys/stat.h> 3042/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3043struct buf { int x; }; 3044FILE * (*rcsopen) (struct buf *, struct stat *, int); 3045static char *e (p, i) 3046 char **p; 3047 int i; 3048{ 3049 return p[i]; 3050} 3051static char *f (char * (*g) (char **, int), char **p, ...) 3052{ 3053 char *s; 3054 va_list v; 3055 va_start (v,p); 3056 s = g (p, va_arg (v,int)); 3057 va_end (v); 3058 return s; 3059} 3060 3061/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3062 function prototypes and stuff, but not '\xHH' hex character constants. 3063 These don't provoke an error unfortunately, instead are silently treated 3064 as 'x'. The following induces an error, until -std is added to get 3065 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3066 array size at least. It's necessary to write '\x00'==0 to get something 3067 that's true only with -std. */ 3068int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3069 3070/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3071 inside strings and character constants. */ 3072#define FOO(x) 'x' 3073int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3074 3075int test (int i, double x); 3076struct s1 {int (*f) (int a);}; 3077struct s2 {int (*f) (double a);}; 3078int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3079int argc; 3080char **argv; 3081int 3082main () 3083{ 3084return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3085 ; 3086 return 0; 3087} 3088_ACEOF 3089for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3090 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3091do 3092 CC="$ac_save_CC $ac_arg" 3093 rm -f conftest.$ac_objext 3094if { (ac_try="$ac_compile" 3095case "(($ac_try" in 3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3097 *) ac_try_echo=$ac_try;; 3098esac 3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3100 (eval "$ac_compile") 2>conftest.er1 3101 ac_status=$? 3102 grep -v '^ *+' conftest.er1 >conftest.err 3103 rm -f conftest.er1 3104 cat conftest.err >&5 3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3106 (exit $ac_status); } && { 3107 test -z "$ac_c_werror_flag" || 3108 test ! -s conftest.err 3109 } && test -s conftest.$ac_objext; then 3110 ac_cv_prog_cc_c89=$ac_arg 3111else 3112 echo "$as_me: failed program was:" >&5 3113sed 's/^/| /' conftest.$ac_ext >&5 3114 3115 3116fi 3117 3118rm -f core conftest.err conftest.$ac_objext 3119 test "x$ac_cv_prog_cc_c89" != "xno" && break 3120done 3121rm -f conftest.$ac_ext 3122CC=$ac_save_CC 3123 3124fi 3125# AC_CACHE_VAL 3126case "x$ac_cv_prog_cc_c89" in 3127 x) 3128 { echo "$as_me:$LINENO: result: none needed" >&5 3129echo "${ECHO_T}none needed" >&6; } ;; 3130 xno) 3131 { echo "$as_me:$LINENO: result: unsupported" >&5 3132echo "${ECHO_T}unsupported" >&6; } ;; 3133 *) 3134 CC="$CC $ac_cv_prog_cc_c89" 3135 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3136echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3137esac 3138 3139 3140ac_ext=c 3141ac_cpp='$CPP $CPPFLAGS' 3142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3144ac_compiler_gnu=$ac_cv_c_compiler_gnu 3145 3146 ac_ext=c 3147ac_cpp='$CPP $CPPFLAGS' 3148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3150ac_compiler_gnu=$ac_cv_c_compiler_gnu 3151{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3152echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3153# On Suns, sometimes $CPP names a directory. 3154if test -n "$CPP" && test -d "$CPP"; then 3155 CPP= 3156fi 3157if test -z "$CPP"; then 3158 if test "${ac_cv_prog_CPP+set}" = set; then 3159 echo $ECHO_N "(cached) $ECHO_C" >&6 3160else 3161 # Double quotes because CPP needs to be expanded 3162 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3163 do 3164 ac_preproc_ok=false 3165for ac_c_preproc_warn_flag in '' yes 3166do 3167 # Use a header file that comes with gcc, so configuring glibc 3168 # with a fresh cross-compiler works. 3169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3170 # <limits.h> exists even on freestanding compilers. 3171 # On the NeXT, cc -E runs the code through the compiler's parser, 3172 # not just through cpp. "Syntax error" is here to catch this case. 3173 cat >conftest.$ac_ext <<_ACEOF 3174/* confdefs.h. */ 3175_ACEOF 3176cat confdefs.h >>conftest.$ac_ext 3177cat >>conftest.$ac_ext <<_ACEOF 3178/* end confdefs.h. */ 3179#ifdef __STDC__ 3180# include <limits.h> 3181#else 3182# include <assert.h> 3183#endif 3184 Syntax error 3185_ACEOF 3186if { (ac_try="$ac_cpp conftest.$ac_ext" 3187case "(($ac_try" in 3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3189 *) ac_try_echo=$ac_try;; 3190esac 3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3193 ac_status=$? 3194 grep -v '^ *+' conftest.er1 >conftest.err 3195 rm -f conftest.er1 3196 cat conftest.err >&5 3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3198 (exit $ac_status); } >/dev/null && { 3199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3200 test ! -s conftest.err 3201 }; then 3202 : 3203else 3204 echo "$as_me: failed program was:" >&5 3205sed 's/^/| /' conftest.$ac_ext >&5 3206 3207 # Broken: fails on valid input. 3208continue 3209fi 3210 3211rm -f conftest.err conftest.$ac_ext 3212 3213 # OK, works on sane cases. Now check whether nonexistent headers 3214 # can be detected and how. 3215 cat >conftest.$ac_ext <<_ACEOF 3216/* confdefs.h. */ 3217_ACEOF 3218cat confdefs.h >>conftest.$ac_ext 3219cat >>conftest.$ac_ext <<_ACEOF 3220/* end confdefs.h. */ 3221#include <ac_nonexistent.h> 3222_ACEOF 3223if { (ac_try="$ac_cpp conftest.$ac_ext" 3224case "(($ac_try" in 3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3226 *) ac_try_echo=$ac_try;; 3227esac 3228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3230 ac_status=$? 3231 grep -v '^ *+' conftest.er1 >conftest.err 3232 rm -f conftest.er1 3233 cat conftest.err >&5 3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3235 (exit $ac_status); } >/dev/null && { 3236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3237 test ! -s conftest.err 3238 }; then 3239 # Broken: success on invalid input. 3240continue 3241else 3242 echo "$as_me: failed program was:" >&5 3243sed 's/^/| /' conftest.$ac_ext >&5 3244 3245 # Passes both tests. 3246ac_preproc_ok=: 3247break 3248fi 3249 3250rm -f conftest.err conftest.$ac_ext 3251 3252done 3253# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3254rm -f conftest.err conftest.$ac_ext 3255if $ac_preproc_ok; then 3256 break 3257fi 3258 3259 done 3260 ac_cv_prog_CPP=$CPP 3261 3262fi 3263 CPP=$ac_cv_prog_CPP 3264else 3265 ac_cv_prog_CPP=$CPP 3266fi 3267{ echo "$as_me:$LINENO: result: $CPP" >&5 3268echo "${ECHO_T}$CPP" >&6; } 3269ac_preproc_ok=false 3270for ac_c_preproc_warn_flag in '' yes 3271do 3272 # Use a header file that comes with gcc, so configuring glibc 3273 # with a fresh cross-compiler works. 3274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3275 # <limits.h> exists even on freestanding compilers. 3276 # On the NeXT, cc -E runs the code through the compiler's parser, 3277 # not just through cpp. "Syntax error" is here to catch this case. 3278 cat >conftest.$ac_ext <<_ACEOF 3279/* confdefs.h. */ 3280_ACEOF 3281cat confdefs.h >>conftest.$ac_ext 3282cat >>conftest.$ac_ext <<_ACEOF 3283/* end confdefs.h. */ 3284#ifdef __STDC__ 3285# include <limits.h> 3286#else 3287# include <assert.h> 3288#endif 3289 Syntax error 3290_ACEOF 3291if { (ac_try="$ac_cpp conftest.$ac_ext" 3292case "(($ac_try" in 3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3294 *) ac_try_echo=$ac_try;; 3295esac 3296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3298 ac_status=$? 3299 grep -v '^ *+' conftest.er1 >conftest.err 3300 rm -f conftest.er1 3301 cat conftest.err >&5 3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3303 (exit $ac_status); } >/dev/null && { 3304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3305 test ! -s conftest.err 3306 }; then 3307 : 3308else 3309 echo "$as_me: failed program was:" >&5 3310sed 's/^/| /' conftest.$ac_ext >&5 3311 3312 # Broken: fails on valid input. 3313continue 3314fi 3315 3316rm -f conftest.err conftest.$ac_ext 3317 3318 # OK, works on sane cases. Now check whether nonexistent headers 3319 # can be detected and how. 3320 cat >conftest.$ac_ext <<_ACEOF 3321/* confdefs.h. */ 3322_ACEOF 3323cat confdefs.h >>conftest.$ac_ext 3324cat >>conftest.$ac_ext <<_ACEOF 3325/* end confdefs.h. */ 3326#include <ac_nonexistent.h> 3327_ACEOF 3328if { (ac_try="$ac_cpp conftest.$ac_ext" 3329case "(($ac_try" in 3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3331 *) ac_try_echo=$ac_try;; 3332esac 3333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3335 ac_status=$? 3336 grep -v '^ *+' conftest.er1 >conftest.err 3337 rm -f conftest.er1 3338 cat conftest.err >&5 3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3340 (exit $ac_status); } >/dev/null && { 3341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3342 test ! -s conftest.err 3343 }; then 3344 # Broken: success on invalid input. 3345continue 3346else 3347 echo "$as_me: failed program was:" >&5 3348sed 's/^/| /' conftest.$ac_ext >&5 3349 3350 # Passes both tests. 3351ac_preproc_ok=: 3352break 3353fi 3354 3355rm -f conftest.err conftest.$ac_ext 3356 3357done 3358# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3359rm -f conftest.err conftest.$ac_ext 3360if $ac_preproc_ok; then 3361 : 3362else 3363 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3364See \`config.log' for more details." >&5 3365echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3366See \`config.log' for more details." >&2;} 3367 { (exit 1); exit 1; }; } 3368fi 3369 3370ac_ext=c 3371ac_cpp='$CPP $CPPFLAGS' 3372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3374ac_compiler_gnu=$ac_cv_c_compiler_gnu 3375 3376 3377 # Find a good install program. We prefer a C program (faster), 3378# so one script is as good as another. But avoid the broken or 3379# incompatible versions: 3380# SysV /etc/install, /usr/sbin/install 3381# SunOS /usr/etc/install 3382# IRIX /sbin/install 3383# AIX /bin/install 3384# AmigaOS /C/install, which installs bootblocks on floppy discs 3385# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3386# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3387# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3388# OS/2's system install, which has a completely different semantic 3389# ./install, which can be erroneously created by make from ./install.sh. 3390{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3391echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3392if test -z "$INSTALL"; then 3393if test "${ac_cv_path_install+set}" = set; then 3394 echo $ECHO_N "(cached) $ECHO_C" >&6 3395else 3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3397for as_dir in $PATH 3398do 3399 IFS=$as_save_IFS 3400 test -z "$as_dir" && as_dir=. 3401 # Account for people who put trailing slashes in PATH elements. 3402case $as_dir/ in 3403 ./ | .// | /cC/* | \ 3404 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3405 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3406 /usr/ucb/* ) ;; 3407 *) 3408 # OSF1 and SCO ODT 3.0 have their own names for install. 3409 # Don't use installbsd from OSF since it installs stuff as root 3410 # by default. 3411 for ac_prog in ginstall scoinst install; do 3412 for ac_exec_ext in '' $ac_executable_extensions; do 3413 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3414 if test $ac_prog = install && 3415 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3416 # AIX install. It has an incompatible calling convention. 3417 : 3418 elif test $ac_prog = install && 3419 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3420 # program-specific install script used by HP pwplus--don't use. 3421 : 3422 else 3423 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3424 break 3 3425 fi 3426 fi 3427 done 3428 done 3429 ;; 3430esac 3431done 3432IFS=$as_save_IFS 3433 3434 3435fi 3436 if test "${ac_cv_path_install+set}" = set; then 3437 INSTALL=$ac_cv_path_install 3438 else 3439 # As a last resort, use the slow shell script. Don't cache a 3440 # value for INSTALL within a source directory, because that will 3441 # break other packages using the cache if that directory is 3442 # removed, or if the value is a relative name. 3443 INSTALL=$ac_install_sh 3444 fi 3445fi 3446{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3447echo "${ECHO_T}$INSTALL" >&6; } 3448 3449# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3450# It thinks the first close brace ends the variable substitution. 3451test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3452 3453test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3454 3455test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3456 3457 3458 #-------------------------------------------------------------------- 3459 # Checks to see if the make program sets the $MAKE variable. 3460 #-------------------------------------------------------------------- 3461 3462 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3463echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3464set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3465if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3466 echo $ECHO_N "(cached) $ECHO_C" >&6 3467else 3468 cat >conftest.make <<\_ACEOF 3469SHELL = /bin/sh 3470all: 3471 @echo '@@@%%%=$(MAKE)=@@@%%%' 3472_ACEOF 3473# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3474case `${MAKE-make} -f conftest.make 2>/dev/null` in 3475 *@@@%%%=?*=@@@%%%*) 3476 eval ac_cv_prog_make_${ac_make}_set=yes;; 3477 *) 3478 eval ac_cv_prog_make_${ac_make}_set=no;; 3479esac 3480rm -f conftest.make 3481fi 3482if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3483 { echo "$as_me:$LINENO: result: yes" >&5 3484echo "${ECHO_T}yes" >&6; } 3485 SET_MAKE= 3486else 3487 { echo "$as_me:$LINENO: result: no" >&5 3488echo "${ECHO_T}no" >&6; } 3489 SET_MAKE="MAKE=${MAKE-make}" 3490fi 3491 3492 3493 #-------------------------------------------------------------------- 3494 # Find ranlib 3495 #-------------------------------------------------------------------- 3496 3497 if test -n "$ac_tool_prefix"; then 3498 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3499set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3500{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3502if test "${ac_cv_prog_RANLIB+set}" = set; then 3503 echo $ECHO_N "(cached) $ECHO_C" >&6 3504else 3505 if test -n "$RANLIB"; then 3506 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3507else 3508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3509for as_dir in $PATH 3510do 3511 IFS=$as_save_IFS 3512 test -z "$as_dir" && as_dir=. 3513 for ac_exec_ext in '' $ac_executable_extensions; do 3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3515 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3517 break 2 3518 fi 3519done 3520done 3521IFS=$as_save_IFS 3522 3523fi 3524fi 3525RANLIB=$ac_cv_prog_RANLIB 3526if test -n "$RANLIB"; then 3527 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3528echo "${ECHO_T}$RANLIB" >&6; } 3529else 3530 { echo "$as_me:$LINENO: result: no" >&5 3531echo "${ECHO_T}no" >&6; } 3532fi 3533 3534 3535fi 3536if test -z "$ac_cv_prog_RANLIB"; then 3537 ac_ct_RANLIB=$RANLIB 3538 # Extract the first word of "ranlib", so it can be a program name with args. 3539set dummy ranlib; ac_word=$2 3540{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3542if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3543 echo $ECHO_N "(cached) $ECHO_C" >&6 3544else 3545 if test -n "$ac_ct_RANLIB"; then 3546 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3547else 3548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3549for as_dir in $PATH 3550do 3551 IFS=$as_save_IFS 3552 test -z "$as_dir" && as_dir=. 3553 for ac_exec_ext in '' $ac_executable_extensions; do 3554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3555 ac_cv_prog_ac_ct_RANLIB="ranlib" 3556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3557 break 2 3558 fi 3559done 3560done 3561IFS=$as_save_IFS 3562 3563fi 3564fi 3565ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3566if test -n "$ac_ct_RANLIB"; then 3567 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3568echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3569else 3570 { echo "$as_me:$LINENO: result: no" >&5 3571echo "${ECHO_T}no" >&6; } 3572fi 3573 3574 if test "x$ac_ct_RANLIB" = x; then 3575 RANLIB=":" 3576 else 3577 case $cross_compiling:$ac_tool_warned in 3578yes:) 3579{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3580whose name does not start with the host triplet. If you think this 3581configuration is useful to you, please write to autoconf@gnu.org." >&5 3582echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3583whose name does not start with the host triplet. If you think this 3584configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3585ac_tool_warned=yes ;; 3586esac 3587 RANLIB=$ac_ct_RANLIB 3588 fi 3589else 3590 RANLIB="$ac_cv_prog_RANLIB" 3591fi 3592 3593 3594 #-------------------------------------------------------------------- 3595 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3596 #-------------------------------------------------------------------- 3597 3598 3599 3600 3601 3602 3603{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3604echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3605if test "${ac_cv_path_GREP+set}" = set; then 3606 echo $ECHO_N "(cached) $ECHO_C" >&6 3607else 3608 # Extract the first word of "grep ggrep" to use in msg output 3609if test -z "$GREP"; then 3610set dummy grep ggrep; ac_prog_name=$2 3611if test "${ac_cv_path_GREP+set}" = set; then 3612 echo $ECHO_N "(cached) $ECHO_C" >&6 3613else 3614 ac_path_GREP_found=false 3615# Loop through the user's path and test for each of PROGNAME-LIST 3616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3617for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3618do 3619 IFS=$as_save_IFS 3620 test -z "$as_dir" && as_dir=. 3621 for ac_prog in grep ggrep; do 3622 for ac_exec_ext in '' $ac_executable_extensions; do 3623 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3624 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3625 # Check for GNU ac_path_GREP and select it if it is found. 3626 # Check for GNU $ac_path_GREP 3627case `"$ac_path_GREP" --version 2>&1` in 3628*GNU*) 3629 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3630*) 3631 ac_count=0 3632 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3633 while : 3634 do 3635 cat "conftest.in" "conftest.in" >"conftest.tmp" 3636 mv "conftest.tmp" "conftest.in" 3637 cp "conftest.in" "conftest.nl" 3638 echo 'GREP' >> "conftest.nl" 3639 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3641 ac_count=`expr $ac_count + 1` 3642 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3643 # Best one so far, save it but keep looking for a better one 3644 ac_cv_path_GREP="$ac_path_GREP" 3645 ac_path_GREP_max=$ac_count 3646 fi 3647 # 10*(2^10) chars as input seems more than enough 3648 test $ac_count -gt 10 && break 3649 done 3650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3651esac 3652 3653 3654 $ac_path_GREP_found && break 3 3655 done 3656done 3657 3658done 3659IFS=$as_save_IFS 3660 3661 3662fi 3663 3664GREP="$ac_cv_path_GREP" 3665if test -z "$GREP"; then 3666 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3667echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3668 { (exit 1); exit 1; }; } 3669fi 3670 3671else 3672 ac_cv_path_GREP=$GREP 3673fi 3674 3675 3676fi 3677{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3678echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3679 GREP="$ac_cv_path_GREP" 3680 3681 3682{ echo "$as_me:$LINENO: checking for egrep" >&5 3683echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3684if test "${ac_cv_path_EGREP+set}" = set; then 3685 echo $ECHO_N "(cached) $ECHO_C" >&6 3686else 3687 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3688 then ac_cv_path_EGREP="$GREP -E" 3689 else 3690 # Extract the first word of "egrep" to use in msg output 3691if test -z "$EGREP"; then 3692set dummy egrep; ac_prog_name=$2 3693if test "${ac_cv_path_EGREP+set}" = set; then 3694 echo $ECHO_N "(cached) $ECHO_C" >&6 3695else 3696 ac_path_EGREP_found=false 3697# Loop through the user's path and test for each of PROGNAME-LIST 3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3699for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3700do 3701 IFS=$as_save_IFS 3702 test -z "$as_dir" && as_dir=. 3703 for ac_prog in egrep; do 3704 for ac_exec_ext in '' $ac_executable_extensions; do 3705 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3706 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3707 # Check for GNU ac_path_EGREP and select it if it is found. 3708 # Check for GNU $ac_path_EGREP 3709case `"$ac_path_EGREP" --version 2>&1` in 3710*GNU*) 3711 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3712*) 3713 ac_count=0 3714 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3715 while : 3716 do 3717 cat "conftest.in" "conftest.in" >"conftest.tmp" 3718 mv "conftest.tmp" "conftest.in" 3719 cp "conftest.in" "conftest.nl" 3720 echo 'EGREP' >> "conftest.nl" 3721 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3723 ac_count=`expr $ac_count + 1` 3724 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3725 # Best one so far, save it but keep looking for a better one 3726 ac_cv_path_EGREP="$ac_path_EGREP" 3727 ac_path_EGREP_max=$ac_count 3728 fi 3729 # 10*(2^10) chars as input seems more than enough 3730 test $ac_count -gt 10 && break 3731 done 3732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3733esac 3734 3735 3736 $ac_path_EGREP_found && break 3 3737 done 3738done 3739 3740done 3741IFS=$as_save_IFS 3742 3743 3744fi 3745 3746EGREP="$ac_cv_path_EGREP" 3747if test -z "$EGREP"; then 3748 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3749echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3750 { (exit 1); exit 1; }; } 3751fi 3752 3753else 3754 ac_cv_path_EGREP=$EGREP 3755fi 3756 3757 3758 fi 3759fi 3760{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3761echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3762 EGREP="$ac_cv_path_EGREP" 3763 3764 3765{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3766echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3767if test "${ac_cv_header_stdc+set}" = set; then 3768 echo $ECHO_N "(cached) $ECHO_C" >&6 3769else 3770 cat >conftest.$ac_ext <<_ACEOF 3771/* confdefs.h. */ 3772_ACEOF 3773cat confdefs.h >>conftest.$ac_ext 3774cat >>conftest.$ac_ext <<_ACEOF 3775/* end confdefs.h. */ 3776#include <stdlib.h> 3777#include <stdarg.h> 3778#include <string.h> 3779#include <float.h> 3780 3781int 3782main () 3783{ 3784 3785 ; 3786 return 0; 3787} 3788_ACEOF 3789rm -f conftest.$ac_objext 3790if { (ac_try="$ac_compile" 3791case "(($ac_try" in 3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3793 *) ac_try_echo=$ac_try;; 3794esac 3795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3796 (eval "$ac_compile") 2>conftest.er1 3797 ac_status=$? 3798 grep -v '^ *+' conftest.er1 >conftest.err 3799 rm -f conftest.er1 3800 cat conftest.err >&5 3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3802 (exit $ac_status); } && { 3803 test -z "$ac_c_werror_flag" || 3804 test ! -s conftest.err 3805 } && test -s conftest.$ac_objext; then 3806 ac_cv_header_stdc=yes 3807else 3808 echo "$as_me: failed program was:" >&5 3809sed 's/^/| /' conftest.$ac_ext >&5 3810 3811 ac_cv_header_stdc=no 3812fi 3813 3814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3815 3816if test $ac_cv_header_stdc = yes; then 3817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3818 cat >conftest.$ac_ext <<_ACEOF 3819/* confdefs.h. */ 3820_ACEOF 3821cat confdefs.h >>conftest.$ac_ext 3822cat >>conftest.$ac_ext <<_ACEOF 3823/* end confdefs.h. */ 3824#include <string.h> 3825 3826_ACEOF 3827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3828 $EGREP "memchr" >/dev/null 2>&1; then 3829 : 3830else 3831 ac_cv_header_stdc=no 3832fi 3833rm -f -r conftest* 3834 3835fi 3836 3837if test $ac_cv_header_stdc = yes; then 3838 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3839 cat >conftest.$ac_ext <<_ACEOF 3840/* confdefs.h. */ 3841_ACEOF 3842cat confdefs.h >>conftest.$ac_ext 3843cat >>conftest.$ac_ext <<_ACEOF 3844/* end confdefs.h. */ 3845#include <stdlib.h> 3846 3847_ACEOF 3848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3849 $EGREP "free" >/dev/null 2>&1; then 3850 : 3851else 3852 ac_cv_header_stdc=no 3853fi 3854rm -f -r conftest* 3855 3856fi 3857 3858if test $ac_cv_header_stdc = yes; then 3859 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3860 if test "$cross_compiling" = yes; then 3861 : 3862else 3863 cat >conftest.$ac_ext <<_ACEOF 3864/* confdefs.h. */ 3865_ACEOF 3866cat confdefs.h >>conftest.$ac_ext 3867cat >>conftest.$ac_ext <<_ACEOF 3868/* end confdefs.h. */ 3869#include <ctype.h> 3870#include <stdlib.h> 3871#if ((' ' & 0x0FF) == 0x020) 3872# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3873# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3874#else 3875# define ISLOWER(c) \ 3876 (('a' <= (c) && (c) <= 'i') \ 3877 || ('j' <= (c) && (c) <= 'r') \ 3878 || ('s' <= (c) && (c) <= 'z')) 3879# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3880#endif 3881 3882#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3883int 3884main () 3885{ 3886 int i; 3887 for (i = 0; i < 256; i++) 3888 if (XOR (islower (i), ISLOWER (i)) 3889 || toupper (i) != TOUPPER (i)) 3890 return 2; 3891 return 0; 3892} 3893_ACEOF 3894rm -f conftest$ac_exeext 3895if { (ac_try="$ac_link" 3896case "(($ac_try" in 3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3898 *) ac_try_echo=$ac_try;; 3899esac 3900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3901 (eval "$ac_link") 2>&5 3902 ac_status=$? 3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3905 { (case "(($ac_try" in 3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3907 *) ac_try_echo=$ac_try;; 3908esac 3909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3910 (eval "$ac_try") 2>&5 3911 ac_status=$? 3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3913 (exit $ac_status); }; }; then 3914 : 3915else 3916 echo "$as_me: program exited with status $ac_status" >&5 3917echo "$as_me: failed program was:" >&5 3918sed 's/^/| /' conftest.$ac_ext >&5 3919 3920( exit $ac_status ) 3921ac_cv_header_stdc=no 3922fi 3923rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3924fi 3925 3926 3927fi 3928fi 3929{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3930echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3931if test $ac_cv_header_stdc = yes; then 3932 3933cat >>confdefs.h <<\_ACEOF 3934#define STDC_HEADERS 1 3935_ACEOF 3936 3937fi 3938 3939# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3950 inttypes.h stdint.h unistd.h 3951do 3952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3953{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3956 echo $ECHO_N "(cached) $ECHO_C" >&6 3957else 3958 cat >conftest.$ac_ext <<_ACEOF 3959/* confdefs.h. */ 3960_ACEOF 3961cat confdefs.h >>conftest.$ac_ext 3962cat >>conftest.$ac_ext <<_ACEOF 3963/* end confdefs.h. */ 3964$ac_includes_default 3965 3966#include <$ac_header> 3967_ACEOF 3968rm -f conftest.$ac_objext 3969if { (ac_try="$ac_compile" 3970case "(($ac_try" in 3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3972 *) ac_try_echo=$ac_try;; 3973esac 3974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3975 (eval "$ac_compile") 2>conftest.er1 3976 ac_status=$? 3977 grep -v '^ *+' conftest.er1 >conftest.err 3978 rm -f conftest.er1 3979 cat conftest.err >&5 3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3981 (exit $ac_status); } && { 3982 test -z "$ac_c_werror_flag" || 3983 test ! -s conftest.err 3984 } && test -s conftest.$ac_objext; then 3985 eval "$as_ac_Header=yes" 3986else 3987 echo "$as_me: failed program was:" >&5 3988sed 's/^/| /' conftest.$ac_ext >&5 3989 3990 eval "$as_ac_Header=no" 3991fi 3992 3993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3994fi 3995ac_res=`eval echo '${'$as_ac_Header'}'` 3996 { echo "$as_me:$LINENO: result: $ac_res" >&5 3997echo "${ECHO_T}$ac_res" >&6; } 3998if test `eval echo '${'$as_ac_Header'}'` = yes; then 3999 cat >>confdefs.h <<_ACEOF 4000#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4001_ACEOF 4002 4003fi 4004 4005done 4006 4007 4008 4009 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4010 4011 4012 #------------------------------------------------------------------------ 4013 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4014 # It makes compiling go faster. (This is only a performance feature.) 4015 #------------------------------------------------------------------------ 4016 4017 if test -z "$no_pipe" -a -n "$GCC"; then 4018 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4019echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4020if test "${tcl_cv_cc_pipe+set}" = set; then 4021 echo $ECHO_N "(cached) $ECHO_C" >&6 4022else 4023 4024 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4025 cat >conftest.$ac_ext <<_ACEOF 4026/* confdefs.h. */ 4027_ACEOF 4028cat confdefs.h >>conftest.$ac_ext 4029cat >>conftest.$ac_ext <<_ACEOF 4030/* end confdefs.h. */ 4031 4032int 4033main () 4034{ 4035 4036 ; 4037 return 0; 4038} 4039_ACEOF 4040rm -f conftest.$ac_objext 4041if { (ac_try="$ac_compile" 4042case "(($ac_try" in 4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4044 *) ac_try_echo=$ac_try;; 4045esac 4046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4047 (eval "$ac_compile") 2>conftest.er1 4048 ac_status=$? 4049 grep -v '^ *+' conftest.er1 >conftest.err 4050 rm -f conftest.er1 4051 cat conftest.err >&5 4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4053 (exit $ac_status); } && { 4054 test -z "$ac_c_werror_flag" || 4055 test ! -s conftest.err 4056 } && test -s conftest.$ac_objext; then 4057 tcl_cv_cc_pipe=yes 4058else 4059 echo "$as_me: failed program was:" >&5 4060sed 's/^/| /' conftest.$ac_ext >&5 4061 4062 tcl_cv_cc_pipe=no 4063fi 4064 4065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4066 CFLAGS=$hold_cflags 4067fi 4068{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4069echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4070 if test $tcl_cv_cc_pipe = yes; then 4071 CFLAGS="$CFLAGS -pipe" 4072 fi 4073 fi 4074 4075 #-------------------------------------------------------------------- 4076 # Common compiler flag setup 4077 #-------------------------------------------------------------------- 4078 4079 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4080echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4081if test "${ac_cv_c_bigendian+set}" = set; then 4082 echo $ECHO_N "(cached) $ECHO_C" >&6 4083else 4084 # See if sys/param.h defines the BYTE_ORDER macro. 4085cat >conftest.$ac_ext <<_ACEOF 4086/* confdefs.h. */ 4087_ACEOF 4088cat confdefs.h >>conftest.$ac_ext 4089cat >>conftest.$ac_ext <<_ACEOF 4090/* end confdefs.h. */ 4091#include <sys/types.h> 4092#include <sys/param.h> 4093 4094int 4095main () 4096{ 4097#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4098 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4099 bogus endian macros 4100#endif 4101 4102 ; 4103 return 0; 4104} 4105_ACEOF 4106rm -f conftest.$ac_objext 4107if { (ac_try="$ac_compile" 4108case "(($ac_try" in 4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4110 *) ac_try_echo=$ac_try;; 4111esac 4112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4113 (eval "$ac_compile") 2>conftest.er1 4114 ac_status=$? 4115 grep -v '^ *+' conftest.er1 >conftest.err 4116 rm -f conftest.er1 4117 cat conftest.err >&5 4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4119 (exit $ac_status); } && { 4120 test -z "$ac_c_werror_flag" || 4121 test ! -s conftest.err 4122 } && test -s conftest.$ac_objext; then 4123 # It does; now see whether it defined to BIG_ENDIAN or not. 4124cat >conftest.$ac_ext <<_ACEOF 4125/* confdefs.h. */ 4126_ACEOF 4127cat confdefs.h >>conftest.$ac_ext 4128cat >>conftest.$ac_ext <<_ACEOF 4129/* end confdefs.h. */ 4130#include <sys/types.h> 4131#include <sys/param.h> 4132 4133int 4134main () 4135{ 4136#if BYTE_ORDER != BIG_ENDIAN 4137 not big endian 4138#endif 4139 4140 ; 4141 return 0; 4142} 4143_ACEOF 4144rm -f conftest.$ac_objext 4145if { (ac_try="$ac_compile" 4146case "(($ac_try" in 4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4148 *) ac_try_echo=$ac_try;; 4149esac 4150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4151 (eval "$ac_compile") 2>conftest.er1 4152 ac_status=$? 4153 grep -v '^ *+' conftest.er1 >conftest.err 4154 rm -f conftest.er1 4155 cat conftest.err >&5 4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4157 (exit $ac_status); } && { 4158 test -z "$ac_c_werror_flag" || 4159 test ! -s conftest.err 4160 } && test -s conftest.$ac_objext; then 4161 ac_cv_c_bigendian=yes 4162else 4163 echo "$as_me: failed program was:" >&5 4164sed 's/^/| /' conftest.$ac_ext >&5 4165 4166 ac_cv_c_bigendian=no 4167fi 4168 4169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4170else 4171 echo "$as_me: failed program was:" >&5 4172sed 's/^/| /' conftest.$ac_ext >&5 4173 4174 # It does not; compile a test program. 4175if test "$cross_compiling" = yes; then 4176 # try to guess the endianness by grepping values into an object file 4177 ac_cv_c_bigendian=unknown 4178 cat >conftest.$ac_ext <<_ACEOF 4179/* confdefs.h. */ 4180_ACEOF 4181cat confdefs.h >>conftest.$ac_ext 4182cat >>conftest.$ac_ext <<_ACEOF 4183/* end confdefs.h. */ 4184short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4185short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4186void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4187short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4188short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4189void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4190int 4191main () 4192{ 4193 _ascii (); _ebcdic (); 4194 ; 4195 return 0; 4196} 4197_ACEOF 4198rm -f conftest.$ac_objext 4199if { (ac_try="$ac_compile" 4200case "(($ac_try" in 4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4202 *) ac_try_echo=$ac_try;; 4203esac 4204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4205 (eval "$ac_compile") 2>conftest.er1 4206 ac_status=$? 4207 grep -v '^ *+' conftest.er1 >conftest.err 4208 rm -f conftest.er1 4209 cat conftest.err >&5 4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4211 (exit $ac_status); } && { 4212 test -z "$ac_c_werror_flag" || 4213 test ! -s conftest.err 4214 } && test -s conftest.$ac_objext; then 4215 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4216 ac_cv_c_bigendian=yes 4217fi 4218if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4219 if test "$ac_cv_c_bigendian" = unknown; then 4220 ac_cv_c_bigendian=no 4221 else 4222 # finding both strings is unlikely to happen, but who knows? 4223 ac_cv_c_bigendian=unknown 4224 fi 4225fi 4226else 4227 echo "$as_me: failed program was:" >&5 4228sed 's/^/| /' conftest.$ac_ext >&5 4229 4230 4231fi 4232 4233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4234else 4235 cat >conftest.$ac_ext <<_ACEOF 4236/* confdefs.h. */ 4237_ACEOF 4238cat confdefs.h >>conftest.$ac_ext 4239cat >>conftest.$ac_ext <<_ACEOF 4240/* end confdefs.h. */ 4241$ac_includes_default 4242int 4243main () 4244{ 4245 4246 /* Are we little or big endian? From Harbison&Steele. */ 4247 union 4248 { 4249 long int l; 4250 char c[sizeof (long int)]; 4251 } u; 4252 u.l = 1; 4253 return u.c[sizeof (long int) - 1] == 1; 4254 4255 ; 4256 return 0; 4257} 4258_ACEOF 4259rm -f conftest$ac_exeext 4260if { (ac_try="$ac_link" 4261case "(($ac_try" in 4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4263 *) ac_try_echo=$ac_try;; 4264esac 4265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4266 (eval "$ac_link") 2>&5 4267 ac_status=$? 4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4270 { (case "(($ac_try" in 4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4272 *) ac_try_echo=$ac_try;; 4273esac 4274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4275 (eval "$ac_try") 2>&5 4276 ac_status=$? 4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4278 (exit $ac_status); }; }; then 4279 ac_cv_c_bigendian=no 4280else 4281 echo "$as_me: program exited with status $ac_status" >&5 4282echo "$as_me: failed program was:" >&5 4283sed 's/^/| /' conftest.$ac_ext >&5 4284 4285( exit $ac_status ) 4286ac_cv_c_bigendian=yes 4287fi 4288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4289fi 4290 4291 4292fi 4293 4294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4295fi 4296{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4297echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4298case $ac_cv_c_bigendian in 4299 yes) 4300 4301cat >>confdefs.h <<\_ACEOF 4302#define WORDS_BIGENDIAN 1 4303_ACEOF 4304 ;; 4305 no) 4306 ;; 4307 *) 4308 { { echo "$as_me:$LINENO: error: unknown endianness 4309presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4310echo "$as_me: error: unknown endianness 4311presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4312 { (exit 1); exit 1; }; } ;; 4313esac 4314 4315 if test "${TEA_PLATFORM}" = "unix" ; then 4316 4317 #-------------------------------------------------------------------- 4318 # On a few very rare systems, all of the libm.a stuff is 4319 # already in libc.a. Set compiler flags accordingly. 4320 # Also, Linux requires the "ieee" library for math to work 4321 # right (and it must appear before "-lm"). 4322 #-------------------------------------------------------------------- 4323 4324 { echo "$as_me:$LINENO: checking for sin" >&5 4325echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4326if test "${ac_cv_func_sin+set}" = set; then 4327 echo $ECHO_N "(cached) $ECHO_C" >&6 4328else 4329 cat >conftest.$ac_ext <<_ACEOF 4330/* confdefs.h. */ 4331_ACEOF 4332cat confdefs.h >>conftest.$ac_ext 4333cat >>conftest.$ac_ext <<_ACEOF 4334/* end confdefs.h. */ 4335/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4336 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4337#define sin innocuous_sin 4338 4339/* System header to define __stub macros and hopefully few prototypes, 4340 which can conflict with char sin (); below. 4341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4342 <limits.h> exists even on freestanding compilers. */ 4343 4344#ifdef __STDC__ 4345# include <limits.h> 4346#else 4347# include <assert.h> 4348#endif 4349 4350#undef sin 4351 4352/* Override any GCC internal prototype to avoid an error. 4353 Use char because int might match the return type of a GCC 4354 builtin and then its argument prototype would still apply. */ 4355#ifdef __cplusplus 4356extern "C" 4357#endif 4358char sin (); 4359/* The GNU C library defines this for functions which it implements 4360 to always fail with ENOSYS. Some functions are actually named 4361 something starting with __ and the normal name is an alias. */ 4362#if defined __stub_sin || defined __stub___sin 4363choke me 4364#endif 4365 4366int 4367main () 4368{ 4369return sin (); 4370 ; 4371 return 0; 4372} 4373_ACEOF 4374rm -f conftest.$ac_objext conftest$ac_exeext 4375if { (ac_try="$ac_link" 4376case "(($ac_try" in 4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4378 *) ac_try_echo=$ac_try;; 4379esac 4380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4381 (eval "$ac_link") 2>conftest.er1 4382 ac_status=$? 4383 grep -v '^ *+' conftest.er1 >conftest.err 4384 rm -f conftest.er1 4385 cat conftest.err >&5 4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4387 (exit $ac_status); } && { 4388 test -z "$ac_c_werror_flag" || 4389 test ! -s conftest.err 4390 } && test -s conftest$ac_exeext && 4391 $as_test_x conftest$ac_exeext; then 4392 ac_cv_func_sin=yes 4393else 4394 echo "$as_me: failed program was:" >&5 4395sed 's/^/| /' conftest.$ac_ext >&5 4396 4397 ac_cv_func_sin=no 4398fi 4399 4400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4401 conftest$ac_exeext conftest.$ac_ext 4402fi 4403{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4404echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4405if test $ac_cv_func_sin = yes; then 4406 MATH_LIBS="" 4407else 4408 MATH_LIBS="-lm" 4409fi 4410 4411 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4412echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4413if test "${ac_cv_lib_ieee_main+set}" = set; then 4414 echo $ECHO_N "(cached) $ECHO_C" >&6 4415else 4416 ac_check_lib_save_LIBS=$LIBS 4417LIBS="-lieee $LIBS" 4418cat >conftest.$ac_ext <<_ACEOF 4419/* confdefs.h. */ 4420_ACEOF 4421cat confdefs.h >>conftest.$ac_ext 4422cat >>conftest.$ac_ext <<_ACEOF 4423/* end confdefs.h. */ 4424 4425 4426int 4427main () 4428{ 4429return main (); 4430 ; 4431 return 0; 4432} 4433_ACEOF 4434rm -f conftest.$ac_objext conftest$ac_exeext 4435if { (ac_try="$ac_link" 4436case "(($ac_try" in 4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4438 *) ac_try_echo=$ac_try;; 4439esac 4440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4441 (eval "$ac_link") 2>conftest.er1 4442 ac_status=$? 4443 grep -v '^ *+' conftest.er1 >conftest.err 4444 rm -f conftest.er1 4445 cat conftest.err >&5 4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4447 (exit $ac_status); } && { 4448 test -z "$ac_c_werror_flag" || 4449 test ! -s conftest.err 4450 } && test -s conftest$ac_exeext && 4451 $as_test_x conftest$ac_exeext; then 4452 ac_cv_lib_ieee_main=yes 4453else 4454 echo "$as_me: failed program was:" >&5 4455sed 's/^/| /' conftest.$ac_ext >&5 4456 4457 ac_cv_lib_ieee_main=no 4458fi 4459 4460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4461 conftest$ac_exeext conftest.$ac_ext 4462LIBS=$ac_check_lib_save_LIBS 4463fi 4464{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4465echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4466if test $ac_cv_lib_ieee_main = yes; then 4467 MATH_LIBS="-lieee $MATH_LIBS" 4468fi 4469 4470 4471 #-------------------------------------------------------------------- 4472 # Interactive UNIX requires -linet instead of -lsocket, plus it 4473 # needs net/errno.h to define the socket-related error codes. 4474 #-------------------------------------------------------------------- 4475 4476 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4477echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4478if test "${ac_cv_lib_inet_main+set}" = set; then 4479 echo $ECHO_N "(cached) $ECHO_C" >&6 4480else 4481 ac_check_lib_save_LIBS=$LIBS 4482LIBS="-linet $LIBS" 4483cat >conftest.$ac_ext <<_ACEOF 4484/* confdefs.h. */ 4485_ACEOF 4486cat confdefs.h >>conftest.$ac_ext 4487cat >>conftest.$ac_ext <<_ACEOF 4488/* end confdefs.h. */ 4489 4490 4491int 4492main () 4493{ 4494return main (); 4495 ; 4496 return 0; 4497} 4498_ACEOF 4499rm -f conftest.$ac_objext conftest$ac_exeext 4500if { (ac_try="$ac_link" 4501case "(($ac_try" in 4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4503 *) ac_try_echo=$ac_try;; 4504esac 4505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4506 (eval "$ac_link") 2>conftest.er1 4507 ac_status=$? 4508 grep -v '^ *+' conftest.er1 >conftest.err 4509 rm -f conftest.er1 4510 cat conftest.err >&5 4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4512 (exit $ac_status); } && { 4513 test -z "$ac_c_werror_flag" || 4514 test ! -s conftest.err 4515 } && test -s conftest$ac_exeext && 4516 $as_test_x conftest$ac_exeext; then 4517 ac_cv_lib_inet_main=yes 4518else 4519 echo "$as_me: failed program was:" >&5 4520sed 's/^/| /' conftest.$ac_ext >&5 4521 4522 ac_cv_lib_inet_main=no 4523fi 4524 4525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4526 conftest$ac_exeext conftest.$ac_ext 4527LIBS=$ac_check_lib_save_LIBS 4528fi 4529{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4530echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4531if test $ac_cv_lib_inet_main = yes; then 4532 LIBS="$LIBS -linet" 4533fi 4534 4535 if test "${ac_cv_header_net_errno_h+set}" = set; then 4536 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4537echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4538if test "${ac_cv_header_net_errno_h+set}" = set; then 4539 echo $ECHO_N "(cached) $ECHO_C" >&6 4540fi 4541{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4542echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4543else 4544 # Is the header compilable? 4545{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4546echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4547cat >conftest.$ac_ext <<_ACEOF 4548/* confdefs.h. */ 4549_ACEOF 4550cat confdefs.h >>conftest.$ac_ext 4551cat >>conftest.$ac_ext <<_ACEOF 4552/* end confdefs.h. */ 4553$ac_includes_default 4554#include <net/errno.h> 4555_ACEOF 4556rm -f conftest.$ac_objext 4557if { (ac_try="$ac_compile" 4558case "(($ac_try" in 4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4560 *) ac_try_echo=$ac_try;; 4561esac 4562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4563 (eval "$ac_compile") 2>conftest.er1 4564 ac_status=$? 4565 grep -v '^ *+' conftest.er1 >conftest.err 4566 rm -f conftest.er1 4567 cat conftest.err >&5 4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4569 (exit $ac_status); } && { 4570 test -z "$ac_c_werror_flag" || 4571 test ! -s conftest.err 4572 } && test -s conftest.$ac_objext; then 4573 ac_header_compiler=yes 4574else 4575 echo "$as_me: failed program was:" >&5 4576sed 's/^/| /' conftest.$ac_ext >&5 4577 4578 ac_header_compiler=no 4579fi 4580 4581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4582{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4583echo "${ECHO_T}$ac_header_compiler" >&6; } 4584 4585# Is the header present? 4586{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4587echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4588cat >conftest.$ac_ext <<_ACEOF 4589/* confdefs.h. */ 4590_ACEOF 4591cat confdefs.h >>conftest.$ac_ext 4592cat >>conftest.$ac_ext <<_ACEOF 4593/* end confdefs.h. */ 4594#include <net/errno.h> 4595_ACEOF 4596if { (ac_try="$ac_cpp conftest.$ac_ext" 4597case "(($ac_try" in 4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4599 *) ac_try_echo=$ac_try;; 4600esac 4601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4603 ac_status=$? 4604 grep -v '^ *+' conftest.er1 >conftest.err 4605 rm -f conftest.er1 4606 cat conftest.err >&5 4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4608 (exit $ac_status); } >/dev/null && { 4609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4610 test ! -s conftest.err 4611 }; then 4612 ac_header_preproc=yes 4613else 4614 echo "$as_me: failed program was:" >&5 4615sed 's/^/| /' conftest.$ac_ext >&5 4616 4617 ac_header_preproc=no 4618fi 4619 4620rm -f conftest.err conftest.$ac_ext 4621{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4622echo "${ECHO_T}$ac_header_preproc" >&6; } 4623 4624# So? What about this header? 4625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4626 yes:no: ) 4627 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4628echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4629 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4630echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4631 ac_header_preproc=yes 4632 ;; 4633 no:yes:* ) 4634 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4635echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4636 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4637echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4638 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4639echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4640 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4641echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4642 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4643echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4644 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4645echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4646 4647 ;; 4648esac 4649{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4650echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4651if test "${ac_cv_header_net_errno_h+set}" = set; then 4652 echo $ECHO_N "(cached) $ECHO_C" >&6 4653else 4654 ac_cv_header_net_errno_h=$ac_header_preproc 4655fi 4656{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4657echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4658 4659fi 4660if test $ac_cv_header_net_errno_h = yes; then 4661 4662 4663cat >>confdefs.h <<\_ACEOF 4664#define HAVE_NET_ERRNO_H 1 4665_ACEOF 4666 4667fi 4668 4669 4670 4671 #-------------------------------------------------------------------- 4672 # Check for the existence of the -lsocket and -lnsl libraries. 4673 # The order here is important, so that they end up in the right 4674 # order in the command line generated by make. Here are some 4675 # special considerations: 4676 # 1. Use "connect" and "accept" to check for -lsocket, and 4677 # "gethostbyname" to check for -lnsl. 4678 # 2. Use each function name only once: can't redo a check because 4679 # autoconf caches the results of the last check and won't redo it. 4680 # 3. Use -lnsl and -lsocket only if they supply procedures that 4681 # aren't already present in the normal libraries. This is because 4682 # IRIX 5.2 has libraries, but they aren't needed and they're 4683 # bogus: they goof up name resolution if used. 4684 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4685 # To get around this problem, check for both libraries together 4686 # if -lsocket doesn't work by itself. 4687 #-------------------------------------------------------------------- 4688 4689 tcl_checkBoth=0 4690 { echo "$as_me:$LINENO: checking for connect" >&5 4691echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4692if test "${ac_cv_func_connect+set}" = set; then 4693 echo $ECHO_N "(cached) $ECHO_C" >&6 4694else 4695 cat >conftest.$ac_ext <<_ACEOF 4696/* confdefs.h. */ 4697_ACEOF 4698cat confdefs.h >>conftest.$ac_ext 4699cat >>conftest.$ac_ext <<_ACEOF 4700/* end confdefs.h. */ 4701/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4702 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4703#define connect innocuous_connect 4704 4705/* System header to define __stub macros and hopefully few prototypes, 4706 which can conflict with char connect (); below. 4707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4708 <limits.h> exists even on freestanding compilers. */ 4709 4710#ifdef __STDC__ 4711# include <limits.h> 4712#else 4713# include <assert.h> 4714#endif 4715 4716#undef connect 4717 4718/* Override any GCC internal prototype to avoid an error. 4719 Use char because int might match the return type of a GCC 4720 builtin and then its argument prototype would still apply. */ 4721#ifdef __cplusplus 4722extern "C" 4723#endif 4724char connect (); 4725/* The GNU C library defines this for functions which it implements 4726 to always fail with ENOSYS. Some functions are actually named 4727 something starting with __ and the normal name is an alias. */ 4728#if defined __stub_connect || defined __stub___connect 4729choke me 4730#endif 4731 4732int 4733main () 4734{ 4735return connect (); 4736 ; 4737 return 0; 4738} 4739_ACEOF 4740rm -f conftest.$ac_objext conftest$ac_exeext 4741if { (ac_try="$ac_link" 4742case "(($ac_try" in 4743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4744 *) ac_try_echo=$ac_try;; 4745esac 4746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4747 (eval "$ac_link") 2>conftest.er1 4748 ac_status=$? 4749 grep -v '^ *+' conftest.er1 >conftest.err 4750 rm -f conftest.er1 4751 cat conftest.err >&5 4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4753 (exit $ac_status); } && { 4754 test -z "$ac_c_werror_flag" || 4755 test ! -s conftest.err 4756 } && test -s conftest$ac_exeext && 4757 $as_test_x conftest$ac_exeext; then 4758 ac_cv_func_connect=yes 4759else 4760 echo "$as_me: failed program was:" >&5 4761sed 's/^/| /' conftest.$ac_ext >&5 4762 4763 ac_cv_func_connect=no 4764fi 4765 4766rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4767 conftest$ac_exeext conftest.$ac_ext 4768fi 4769{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4770echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4771if test $ac_cv_func_connect = yes; then 4772 tcl_checkSocket=0 4773else 4774 tcl_checkSocket=1 4775fi 4776 4777 if test "$tcl_checkSocket" = 1; then 4778 { echo "$as_me:$LINENO: checking for setsockopt" >&5 4779echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 4780if test "${ac_cv_func_setsockopt+set}" = set; then 4781 echo $ECHO_N "(cached) $ECHO_C" >&6 4782else 4783 cat >conftest.$ac_ext <<_ACEOF 4784/* confdefs.h. */ 4785_ACEOF 4786cat confdefs.h >>conftest.$ac_ext 4787cat >>conftest.$ac_ext <<_ACEOF 4788/* end confdefs.h. */ 4789/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4790 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4791#define setsockopt innocuous_setsockopt 4792 4793/* System header to define __stub macros and hopefully few prototypes, 4794 which can conflict with char setsockopt (); below. 4795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4796 <limits.h> exists even on freestanding compilers. */ 4797 4798#ifdef __STDC__ 4799# include <limits.h> 4800#else 4801# include <assert.h> 4802#endif 4803 4804#undef setsockopt 4805 4806/* Override any GCC internal prototype to avoid an error. 4807 Use char because int might match the return type of a GCC 4808 builtin and then its argument prototype would still apply. */ 4809#ifdef __cplusplus 4810extern "C" 4811#endif 4812char setsockopt (); 4813/* The GNU C library defines this for functions which it implements 4814 to always fail with ENOSYS. Some functions are actually named 4815 something starting with __ and the normal name is an alias. */ 4816#if defined __stub_setsockopt || defined __stub___setsockopt 4817choke me 4818#endif 4819 4820int 4821main () 4822{ 4823return setsockopt (); 4824 ; 4825 return 0; 4826} 4827_ACEOF 4828rm -f conftest.$ac_objext conftest$ac_exeext 4829if { (ac_try="$ac_link" 4830case "(($ac_try" in 4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4832 *) ac_try_echo=$ac_try;; 4833esac 4834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4835 (eval "$ac_link") 2>conftest.er1 4836 ac_status=$? 4837 grep -v '^ *+' conftest.er1 >conftest.err 4838 rm -f conftest.er1 4839 cat conftest.err >&5 4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4841 (exit $ac_status); } && { 4842 test -z "$ac_c_werror_flag" || 4843 test ! -s conftest.err 4844 } && test -s conftest$ac_exeext && 4845 $as_test_x conftest$ac_exeext; then 4846 ac_cv_func_setsockopt=yes 4847else 4848 echo "$as_me: failed program was:" >&5 4849sed 's/^/| /' conftest.$ac_ext >&5 4850 4851 ac_cv_func_setsockopt=no 4852fi 4853 4854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4855 conftest$ac_exeext conftest.$ac_ext 4856fi 4857{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4858echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 4859if test $ac_cv_func_setsockopt = yes; then 4860 : 4861else 4862 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4863echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 4864if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4865 echo $ECHO_N "(cached) $ECHO_C" >&6 4866else 4867 ac_check_lib_save_LIBS=$LIBS 4868LIBS="-lsocket $LIBS" 4869cat >conftest.$ac_ext <<_ACEOF 4870/* confdefs.h. */ 4871_ACEOF 4872cat confdefs.h >>conftest.$ac_ext 4873cat >>conftest.$ac_ext <<_ACEOF 4874/* end confdefs.h. */ 4875 4876/* Override any GCC internal prototype to avoid an error. 4877 Use char because int might match the return type of a GCC 4878 builtin and then its argument prototype would still apply. */ 4879#ifdef __cplusplus 4880extern "C" 4881#endif 4882char setsockopt (); 4883int 4884main () 4885{ 4886return setsockopt (); 4887 ; 4888 return 0; 4889} 4890_ACEOF 4891rm -f conftest.$ac_objext conftest$ac_exeext 4892if { (ac_try="$ac_link" 4893case "(($ac_try" in 4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4895 *) ac_try_echo=$ac_try;; 4896esac 4897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4898 (eval "$ac_link") 2>conftest.er1 4899 ac_status=$? 4900 grep -v '^ *+' conftest.er1 >conftest.err 4901 rm -f conftest.er1 4902 cat conftest.err >&5 4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4904 (exit $ac_status); } && { 4905 test -z "$ac_c_werror_flag" || 4906 test ! -s conftest.err 4907 } && test -s conftest$ac_exeext && 4908 $as_test_x conftest$ac_exeext; then 4909 ac_cv_lib_socket_setsockopt=yes 4910else 4911 echo "$as_me: failed program was:" >&5 4912sed 's/^/| /' conftest.$ac_ext >&5 4913 4914 ac_cv_lib_socket_setsockopt=no 4915fi 4916 4917rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4918 conftest$ac_exeext conftest.$ac_ext 4919LIBS=$ac_check_lib_save_LIBS 4920fi 4921{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4922echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 4923if test $ac_cv_lib_socket_setsockopt = yes; then 4924 LIBS="$LIBS -lsocket" 4925else 4926 tcl_checkBoth=1 4927fi 4928 4929fi 4930 4931 fi 4932 if test "$tcl_checkBoth" = 1; then 4933 tk_oldLibs=$LIBS 4934 LIBS="$LIBS -lsocket -lnsl" 4935 { echo "$as_me:$LINENO: checking for accept" >&5 4936echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 4937if test "${ac_cv_func_accept+set}" = set; then 4938 echo $ECHO_N "(cached) $ECHO_C" >&6 4939else 4940 cat >conftest.$ac_ext <<_ACEOF 4941/* confdefs.h. */ 4942_ACEOF 4943cat confdefs.h >>conftest.$ac_ext 4944cat >>conftest.$ac_ext <<_ACEOF 4945/* end confdefs.h. */ 4946/* Define accept to an innocuous variant, in case <limits.h> declares accept. 4947 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4948#define accept innocuous_accept 4949 4950/* System header to define __stub macros and hopefully few prototypes, 4951 which can conflict with char accept (); below. 4952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4953 <limits.h> exists even on freestanding compilers. */ 4954 4955#ifdef __STDC__ 4956# include <limits.h> 4957#else 4958# include <assert.h> 4959#endif 4960 4961#undef accept 4962 4963/* Override any GCC internal prototype to avoid an error. 4964 Use char because int might match the return type of a GCC 4965 builtin and then its argument prototype would still apply. */ 4966#ifdef __cplusplus 4967extern "C" 4968#endif 4969char accept (); 4970/* The GNU C library defines this for functions which it implements 4971 to always fail with ENOSYS. Some functions are actually named 4972 something starting with __ and the normal name is an alias. */ 4973#if defined __stub_accept || defined __stub___accept 4974choke me 4975#endif 4976 4977int 4978main () 4979{ 4980return accept (); 4981 ; 4982 return 0; 4983} 4984_ACEOF 4985rm -f conftest.$ac_objext conftest$ac_exeext 4986if { (ac_try="$ac_link" 4987case "(($ac_try" in 4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4989 *) ac_try_echo=$ac_try;; 4990esac 4991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4992 (eval "$ac_link") 2>conftest.er1 4993 ac_status=$? 4994 grep -v '^ *+' conftest.er1 >conftest.err 4995 rm -f conftest.er1 4996 cat conftest.err >&5 4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4998 (exit $ac_status); } && { 4999 test -z "$ac_c_werror_flag" || 5000 test ! -s conftest.err 5001 } && test -s conftest$ac_exeext && 5002 $as_test_x conftest$ac_exeext; then 5003 ac_cv_func_accept=yes 5004else 5005 echo "$as_me: failed program was:" >&5 5006sed 's/^/| /' conftest.$ac_ext >&5 5007 5008 ac_cv_func_accept=no 5009fi 5010 5011rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5012 conftest$ac_exeext conftest.$ac_ext 5013fi 5014{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5015echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5016if test $ac_cv_func_accept = yes; then 5017 tcl_checkNsl=0 5018else 5019 LIBS=$tk_oldLibs 5020fi 5021 5022 fi 5023 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5024echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5025if test "${ac_cv_func_gethostbyname+set}" = set; then 5026 echo $ECHO_N "(cached) $ECHO_C" >&6 5027else 5028 cat >conftest.$ac_ext <<_ACEOF 5029/* confdefs.h. */ 5030_ACEOF 5031cat confdefs.h >>conftest.$ac_ext 5032cat >>conftest.$ac_ext <<_ACEOF 5033/* end confdefs.h. */ 5034/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5035 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5036#define gethostbyname innocuous_gethostbyname 5037 5038/* System header to define __stub macros and hopefully few prototypes, 5039 which can conflict with char gethostbyname (); below. 5040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5041 <limits.h> exists even on freestanding compilers. */ 5042 5043#ifdef __STDC__ 5044# include <limits.h> 5045#else 5046# include <assert.h> 5047#endif 5048 5049#undef gethostbyname 5050 5051/* Override any GCC internal prototype to avoid an error. 5052 Use char because int might match the return type of a GCC 5053 builtin and then its argument prototype would still apply. */ 5054#ifdef __cplusplus 5055extern "C" 5056#endif 5057char gethostbyname (); 5058/* The GNU C library defines this for functions which it implements 5059 to always fail with ENOSYS. Some functions are actually named 5060 something starting with __ and the normal name is an alias. */ 5061#if defined __stub_gethostbyname || defined __stub___gethostbyname 5062choke me 5063#endif 5064 5065int 5066main () 5067{ 5068return gethostbyname (); 5069 ; 5070 return 0; 5071} 5072_ACEOF 5073rm -f conftest.$ac_objext conftest$ac_exeext 5074if { (ac_try="$ac_link" 5075case "(($ac_try" in 5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5077 *) ac_try_echo=$ac_try;; 5078esac 5079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5080 (eval "$ac_link") 2>conftest.er1 5081 ac_status=$? 5082 grep -v '^ *+' conftest.er1 >conftest.err 5083 rm -f conftest.er1 5084 cat conftest.err >&5 5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5086 (exit $ac_status); } && { 5087 test -z "$ac_c_werror_flag" || 5088 test ! -s conftest.err 5089 } && test -s conftest$ac_exeext && 5090 $as_test_x conftest$ac_exeext; then 5091 ac_cv_func_gethostbyname=yes 5092else 5093 echo "$as_me: failed program was:" >&5 5094sed 's/^/| /' conftest.$ac_ext >&5 5095 5096 ac_cv_func_gethostbyname=no 5097fi 5098 5099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5100 conftest$ac_exeext conftest.$ac_ext 5101fi 5102{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5103echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5104if test $ac_cv_func_gethostbyname = yes; then 5105 : 5106else 5107 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5108echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5109if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5110 echo $ECHO_N "(cached) $ECHO_C" >&6 5111else 5112 ac_check_lib_save_LIBS=$LIBS 5113LIBS="-lnsl $LIBS" 5114cat >conftest.$ac_ext <<_ACEOF 5115/* confdefs.h. */ 5116_ACEOF 5117cat confdefs.h >>conftest.$ac_ext 5118cat >>conftest.$ac_ext <<_ACEOF 5119/* end confdefs.h. */ 5120 5121/* Override any GCC internal prototype to avoid an error. 5122 Use char because int might match the return type of a GCC 5123 builtin and then its argument prototype would still apply. */ 5124#ifdef __cplusplus 5125extern "C" 5126#endif 5127char gethostbyname (); 5128int 5129main () 5130{ 5131return gethostbyname (); 5132 ; 5133 return 0; 5134} 5135_ACEOF 5136rm -f conftest.$ac_objext conftest$ac_exeext 5137if { (ac_try="$ac_link" 5138case "(($ac_try" in 5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5140 *) ac_try_echo=$ac_try;; 5141esac 5142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5143 (eval "$ac_link") 2>conftest.er1 5144 ac_status=$? 5145 grep -v '^ *+' conftest.er1 >conftest.err 5146 rm -f conftest.er1 5147 cat conftest.err >&5 5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5149 (exit $ac_status); } && { 5150 test -z "$ac_c_werror_flag" || 5151 test ! -s conftest.err 5152 } && test -s conftest$ac_exeext && 5153 $as_test_x conftest$ac_exeext; then 5154 ac_cv_lib_nsl_gethostbyname=yes 5155else 5156 echo "$as_me: failed program was:" >&5 5157sed 's/^/| /' conftest.$ac_ext >&5 5158 5159 ac_cv_lib_nsl_gethostbyname=no 5160fi 5161 5162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5163 conftest$ac_exeext conftest.$ac_ext 5164LIBS=$ac_check_lib_save_LIBS 5165fi 5166{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5167echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5168if test $ac_cv_lib_nsl_gethostbyname = yes; then 5169 LIBS="$LIBS -lnsl" 5170fi 5171 5172fi 5173 5174 5175 # TEA specific: Don't perform the eval of the libraries here because 5176 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5177 5178 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5179 5180 5181 5182 5183 { echo "$as_me:$LINENO: checking dirent.h" >&5 5184echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5185if test "${tcl_cv_dirent_h+set}" = set; then 5186 echo $ECHO_N "(cached) $ECHO_C" >&6 5187else 5188 5189 cat >conftest.$ac_ext <<_ACEOF 5190/* confdefs.h. */ 5191_ACEOF 5192cat confdefs.h >>conftest.$ac_ext 5193cat >>conftest.$ac_ext <<_ACEOF 5194/* end confdefs.h. */ 5195#include <sys/types.h> 5196#include <dirent.h> 5197int 5198main () 5199{ 5200 5201#ifndef _POSIX_SOURCE 5202# ifdef __Lynx__ 5203 /* 5204 * Generate compilation error to make the test fail: Lynx headers 5205 * are only valid if really in the POSIX environment. 5206 */ 5207 5208 missing_procedure(); 5209# endif 5210#endif 5211DIR *d; 5212struct dirent *entryPtr; 5213char *p; 5214d = opendir("foobar"); 5215entryPtr = readdir(d); 5216p = entryPtr->d_name; 5217closedir(d); 5218 5219 ; 5220 return 0; 5221} 5222_ACEOF 5223rm -f conftest.$ac_objext conftest$ac_exeext 5224if { (ac_try="$ac_link" 5225case "(($ac_try" in 5226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5227 *) ac_try_echo=$ac_try;; 5228esac 5229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5230 (eval "$ac_link") 2>conftest.er1 5231 ac_status=$? 5232 grep -v '^ *+' conftest.er1 >conftest.err 5233 rm -f conftest.er1 5234 cat conftest.err >&5 5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5236 (exit $ac_status); } && { 5237 test -z "$ac_c_werror_flag" || 5238 test ! -s conftest.err 5239 } && test -s conftest$ac_exeext && 5240 $as_test_x conftest$ac_exeext; then 5241 tcl_cv_dirent_h=yes 5242else 5243 echo "$as_me: failed program was:" >&5 5244sed 's/^/| /' conftest.$ac_ext >&5 5245 5246 tcl_cv_dirent_h=no 5247fi 5248 5249rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5250 conftest$ac_exeext conftest.$ac_ext 5251fi 5252{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5253echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5254 5255 if test $tcl_cv_dirent_h = no; then 5256 5257cat >>confdefs.h <<\_ACEOF 5258#define NO_DIRENT_H 1 5259_ACEOF 5260 5261 fi 5262 5263 # TEA specific: 5264 if test "${ac_cv_header_errno_h+set}" = set; then 5265 { echo "$as_me:$LINENO: checking for errno.h" >&5 5266echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5267if test "${ac_cv_header_errno_h+set}" = set; then 5268 echo $ECHO_N "(cached) $ECHO_C" >&6 5269fi 5270{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5271echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5272else 5273 # Is the header compilable? 5274{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5275echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5276cat >conftest.$ac_ext <<_ACEOF 5277/* confdefs.h. */ 5278_ACEOF 5279cat confdefs.h >>conftest.$ac_ext 5280cat >>conftest.$ac_ext <<_ACEOF 5281/* end confdefs.h. */ 5282$ac_includes_default 5283#include <errno.h> 5284_ACEOF 5285rm -f conftest.$ac_objext 5286if { (ac_try="$ac_compile" 5287case "(($ac_try" in 5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5289 *) ac_try_echo=$ac_try;; 5290esac 5291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5292 (eval "$ac_compile") 2>conftest.er1 5293 ac_status=$? 5294 grep -v '^ *+' conftest.er1 >conftest.err 5295 rm -f conftest.er1 5296 cat conftest.err >&5 5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5298 (exit $ac_status); } && { 5299 test -z "$ac_c_werror_flag" || 5300 test ! -s conftest.err 5301 } && test -s conftest.$ac_objext; then 5302 ac_header_compiler=yes 5303else 5304 echo "$as_me: failed program was:" >&5 5305sed 's/^/| /' conftest.$ac_ext >&5 5306 5307 ac_header_compiler=no 5308fi 5309 5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5311{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5312echo "${ECHO_T}$ac_header_compiler" >&6; } 5313 5314# Is the header present? 5315{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5316echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5317cat >conftest.$ac_ext <<_ACEOF 5318/* confdefs.h. */ 5319_ACEOF 5320cat confdefs.h >>conftest.$ac_ext 5321cat >>conftest.$ac_ext <<_ACEOF 5322/* end confdefs.h. */ 5323#include <errno.h> 5324_ACEOF 5325if { (ac_try="$ac_cpp conftest.$ac_ext" 5326case "(($ac_try" in 5327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5328 *) ac_try_echo=$ac_try;; 5329esac 5330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5332 ac_status=$? 5333 grep -v '^ *+' conftest.er1 >conftest.err 5334 rm -f conftest.er1 5335 cat conftest.err >&5 5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5337 (exit $ac_status); } >/dev/null && { 5338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5339 test ! -s conftest.err 5340 }; then 5341 ac_header_preproc=yes 5342else 5343 echo "$as_me: failed program was:" >&5 5344sed 's/^/| /' conftest.$ac_ext >&5 5345 5346 ac_header_preproc=no 5347fi 5348 5349rm -f conftest.err conftest.$ac_ext 5350{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5351echo "${ECHO_T}$ac_header_preproc" >&6; } 5352 5353# So? What about this header? 5354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5355 yes:no: ) 5356 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5357echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5358 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5359echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5360 ac_header_preproc=yes 5361 ;; 5362 no:yes:* ) 5363 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5364echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5365 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5366echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5367 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5368echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5369 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5370echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5371 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5372echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5373 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5374echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5375 5376 ;; 5377esac 5378{ echo "$as_me:$LINENO: checking for errno.h" >&5 5379echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5380if test "${ac_cv_header_errno_h+set}" = set; then 5381 echo $ECHO_N "(cached) $ECHO_C" >&6 5382else 5383 ac_cv_header_errno_h=$ac_header_preproc 5384fi 5385{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5386echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5387 5388fi 5389if test $ac_cv_header_errno_h = yes; then 5390 : 5391else 5392 5393cat >>confdefs.h <<\_ACEOF 5394#define NO_ERRNO_H 1 5395_ACEOF 5396 5397fi 5398 5399 5400 if test "${ac_cv_header_float_h+set}" = set; then 5401 { echo "$as_me:$LINENO: checking for float.h" >&5 5402echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5403if test "${ac_cv_header_float_h+set}" = set; then 5404 echo $ECHO_N "(cached) $ECHO_C" >&6 5405fi 5406{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5407echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5408else 5409 # Is the header compilable? 5410{ echo "$as_me:$LINENO: checking float.h usability" >&5 5411echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5412cat >conftest.$ac_ext <<_ACEOF 5413/* confdefs.h. */ 5414_ACEOF 5415cat confdefs.h >>conftest.$ac_ext 5416cat >>conftest.$ac_ext <<_ACEOF 5417/* end confdefs.h. */ 5418$ac_includes_default 5419#include <float.h> 5420_ACEOF 5421rm -f conftest.$ac_objext 5422if { (ac_try="$ac_compile" 5423case "(($ac_try" in 5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5425 *) ac_try_echo=$ac_try;; 5426esac 5427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5428 (eval "$ac_compile") 2>conftest.er1 5429 ac_status=$? 5430 grep -v '^ *+' conftest.er1 >conftest.err 5431 rm -f conftest.er1 5432 cat conftest.err >&5 5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5434 (exit $ac_status); } && { 5435 test -z "$ac_c_werror_flag" || 5436 test ! -s conftest.err 5437 } && test -s conftest.$ac_objext; then 5438 ac_header_compiler=yes 5439else 5440 echo "$as_me: failed program was:" >&5 5441sed 's/^/| /' conftest.$ac_ext >&5 5442 5443 ac_header_compiler=no 5444fi 5445 5446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5447{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5448echo "${ECHO_T}$ac_header_compiler" >&6; } 5449 5450# Is the header present? 5451{ echo "$as_me:$LINENO: checking float.h presence" >&5 5452echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5453cat >conftest.$ac_ext <<_ACEOF 5454/* confdefs.h. */ 5455_ACEOF 5456cat confdefs.h >>conftest.$ac_ext 5457cat >>conftest.$ac_ext <<_ACEOF 5458/* end confdefs.h. */ 5459#include <float.h> 5460_ACEOF 5461if { (ac_try="$ac_cpp conftest.$ac_ext" 5462case "(($ac_try" in 5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5464 *) ac_try_echo=$ac_try;; 5465esac 5466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5468 ac_status=$? 5469 grep -v '^ *+' conftest.er1 >conftest.err 5470 rm -f conftest.er1 5471 cat conftest.err >&5 5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5473 (exit $ac_status); } >/dev/null && { 5474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5475 test ! -s conftest.err 5476 }; then 5477 ac_header_preproc=yes 5478else 5479 echo "$as_me: failed program was:" >&5 5480sed 's/^/| /' conftest.$ac_ext >&5 5481 5482 ac_header_preproc=no 5483fi 5484 5485rm -f conftest.err conftest.$ac_ext 5486{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5487echo "${ECHO_T}$ac_header_preproc" >&6; } 5488 5489# So? What about this header? 5490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5491 yes:no: ) 5492 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5493echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5494 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5495echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5496 ac_header_preproc=yes 5497 ;; 5498 no:yes:* ) 5499 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5500echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5501 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5502echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5503 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5504echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5505 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5506echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5507 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5508echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5509 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5510echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5511 5512 ;; 5513esac 5514{ echo "$as_me:$LINENO: checking for float.h" >&5 5515echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5516if test "${ac_cv_header_float_h+set}" = set; then 5517 echo $ECHO_N "(cached) $ECHO_C" >&6 5518else 5519 ac_cv_header_float_h=$ac_header_preproc 5520fi 5521{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5522echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5523 5524fi 5525if test $ac_cv_header_float_h = yes; then 5526 : 5527else 5528 5529cat >>confdefs.h <<\_ACEOF 5530#define NO_FLOAT_H 1 5531_ACEOF 5532 5533fi 5534 5535 5536 if test "${ac_cv_header_values_h+set}" = set; then 5537 { echo "$as_me:$LINENO: checking for values.h" >&5 5538echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5539if test "${ac_cv_header_values_h+set}" = set; then 5540 echo $ECHO_N "(cached) $ECHO_C" >&6 5541fi 5542{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5543echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5544else 5545 # Is the header compilable? 5546{ echo "$as_me:$LINENO: checking values.h usability" >&5 5547echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5548cat >conftest.$ac_ext <<_ACEOF 5549/* confdefs.h. */ 5550_ACEOF 5551cat confdefs.h >>conftest.$ac_ext 5552cat >>conftest.$ac_ext <<_ACEOF 5553/* end confdefs.h. */ 5554$ac_includes_default 5555#include <values.h> 5556_ACEOF 5557rm -f conftest.$ac_objext 5558if { (ac_try="$ac_compile" 5559case "(($ac_try" in 5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5561 *) ac_try_echo=$ac_try;; 5562esac 5563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5564 (eval "$ac_compile") 2>conftest.er1 5565 ac_status=$? 5566 grep -v '^ *+' conftest.er1 >conftest.err 5567 rm -f conftest.er1 5568 cat conftest.err >&5 5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5570 (exit $ac_status); } && { 5571 test -z "$ac_c_werror_flag" || 5572 test ! -s conftest.err 5573 } && test -s conftest.$ac_objext; then 5574 ac_header_compiler=yes 5575else 5576 echo "$as_me: failed program was:" >&5 5577sed 's/^/| /' conftest.$ac_ext >&5 5578 5579 ac_header_compiler=no 5580fi 5581 5582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5583{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5584echo "${ECHO_T}$ac_header_compiler" >&6; } 5585 5586# Is the header present? 5587{ echo "$as_me:$LINENO: checking values.h presence" >&5 5588echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5589cat >conftest.$ac_ext <<_ACEOF 5590/* confdefs.h. */ 5591_ACEOF 5592cat confdefs.h >>conftest.$ac_ext 5593cat >>conftest.$ac_ext <<_ACEOF 5594/* end confdefs.h. */ 5595#include <values.h> 5596_ACEOF 5597if { (ac_try="$ac_cpp conftest.$ac_ext" 5598case "(($ac_try" in 5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5600 *) ac_try_echo=$ac_try;; 5601esac 5602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5604 ac_status=$? 5605 grep -v '^ *+' conftest.er1 >conftest.err 5606 rm -f conftest.er1 5607 cat conftest.err >&5 5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5609 (exit $ac_status); } >/dev/null && { 5610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5611 test ! -s conftest.err 5612 }; then 5613 ac_header_preproc=yes 5614else 5615 echo "$as_me: failed program was:" >&5 5616sed 's/^/| /' conftest.$ac_ext >&5 5617 5618 ac_header_preproc=no 5619fi 5620 5621rm -f conftest.err conftest.$ac_ext 5622{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5623echo "${ECHO_T}$ac_header_preproc" >&6; } 5624 5625# So? What about this header? 5626case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5627 yes:no: ) 5628 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5629echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5630 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5631echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5632 ac_header_preproc=yes 5633 ;; 5634 no:yes:* ) 5635 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5636echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5637 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5638echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5639 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5640echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5641 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5642echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5643 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5644echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5645 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5646echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5647 5648 ;; 5649esac 5650{ echo "$as_me:$LINENO: checking for values.h" >&5 5651echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5652if test "${ac_cv_header_values_h+set}" = set; then 5653 echo $ECHO_N "(cached) $ECHO_C" >&6 5654else 5655 ac_cv_header_values_h=$ac_header_preproc 5656fi 5657{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5658echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5659 5660fi 5661if test $ac_cv_header_values_h = yes; then 5662 : 5663else 5664 5665cat >>confdefs.h <<\_ACEOF 5666#define NO_VALUES_H 1 5667_ACEOF 5668 5669fi 5670 5671 5672 if test "${ac_cv_header_limits_h+set}" = set; then 5673 { echo "$as_me:$LINENO: checking for limits.h" >&5 5674echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5675if test "${ac_cv_header_limits_h+set}" = set; then 5676 echo $ECHO_N "(cached) $ECHO_C" >&6 5677fi 5678{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5679echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5680else 5681 # Is the header compilable? 5682{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5683echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5684cat >conftest.$ac_ext <<_ACEOF 5685/* confdefs.h. */ 5686_ACEOF 5687cat confdefs.h >>conftest.$ac_ext 5688cat >>conftest.$ac_ext <<_ACEOF 5689/* end confdefs.h. */ 5690$ac_includes_default 5691#include <limits.h> 5692_ACEOF 5693rm -f conftest.$ac_objext 5694if { (ac_try="$ac_compile" 5695case "(($ac_try" in 5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5697 *) ac_try_echo=$ac_try;; 5698esac 5699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5700 (eval "$ac_compile") 2>conftest.er1 5701 ac_status=$? 5702 grep -v '^ *+' conftest.er1 >conftest.err 5703 rm -f conftest.er1 5704 cat conftest.err >&5 5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5706 (exit $ac_status); } && { 5707 test -z "$ac_c_werror_flag" || 5708 test ! -s conftest.err 5709 } && test -s conftest.$ac_objext; then 5710 ac_header_compiler=yes 5711else 5712 echo "$as_me: failed program was:" >&5 5713sed 's/^/| /' conftest.$ac_ext >&5 5714 5715 ac_header_compiler=no 5716fi 5717 5718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5719{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5720echo "${ECHO_T}$ac_header_compiler" >&6; } 5721 5722# Is the header present? 5723{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5724echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5725cat >conftest.$ac_ext <<_ACEOF 5726/* confdefs.h. */ 5727_ACEOF 5728cat confdefs.h >>conftest.$ac_ext 5729cat >>conftest.$ac_ext <<_ACEOF 5730/* end confdefs.h. */ 5731#include <limits.h> 5732_ACEOF 5733if { (ac_try="$ac_cpp conftest.$ac_ext" 5734case "(($ac_try" in 5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5736 *) ac_try_echo=$ac_try;; 5737esac 5738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5740 ac_status=$? 5741 grep -v '^ *+' conftest.er1 >conftest.err 5742 rm -f conftest.er1 5743 cat conftest.err >&5 5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5745 (exit $ac_status); } >/dev/null && { 5746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5747 test ! -s conftest.err 5748 }; then 5749 ac_header_preproc=yes 5750else 5751 echo "$as_me: failed program was:" >&5 5752sed 's/^/| /' conftest.$ac_ext >&5 5753 5754 ac_header_preproc=no 5755fi 5756 5757rm -f conftest.err conftest.$ac_ext 5758{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5759echo "${ECHO_T}$ac_header_preproc" >&6; } 5760 5761# So? What about this header? 5762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5763 yes:no: ) 5764 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5765echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5766 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5767echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5768 ac_header_preproc=yes 5769 ;; 5770 no:yes:* ) 5771 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5772echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5773 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5774echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5775 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5776echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5777 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5778echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5779 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5780echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5781 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5782echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5783 5784 ;; 5785esac 5786{ echo "$as_me:$LINENO: checking for limits.h" >&5 5787echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5788if test "${ac_cv_header_limits_h+set}" = set; then 5789 echo $ECHO_N "(cached) $ECHO_C" >&6 5790else 5791 ac_cv_header_limits_h=$ac_header_preproc 5792fi 5793{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5794echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5795 5796fi 5797if test $ac_cv_header_limits_h = yes; then 5798 5799cat >>confdefs.h <<\_ACEOF 5800#define HAVE_LIMITS_H 1 5801_ACEOF 5802 5803else 5804 5805cat >>confdefs.h <<\_ACEOF 5806#define NO_LIMITS_H 1 5807_ACEOF 5808 5809fi 5810 5811 5812 if test "${ac_cv_header_stdlib_h+set}" = set; then 5813 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 5814echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5815if test "${ac_cv_header_stdlib_h+set}" = set; then 5816 echo $ECHO_N "(cached) $ECHO_C" >&6 5817fi 5818{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5819echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5820else 5821 # Is the header compilable? 5822{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5823echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 5824cat >conftest.$ac_ext <<_ACEOF 5825/* confdefs.h. */ 5826_ACEOF 5827cat confdefs.h >>conftest.$ac_ext 5828cat >>conftest.$ac_ext <<_ACEOF 5829/* end confdefs.h. */ 5830$ac_includes_default 5831#include <stdlib.h> 5832_ACEOF 5833rm -f conftest.$ac_objext 5834if { (ac_try="$ac_compile" 5835case "(($ac_try" in 5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5837 *) ac_try_echo=$ac_try;; 5838esac 5839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5840 (eval "$ac_compile") 2>conftest.er1 5841 ac_status=$? 5842 grep -v '^ *+' conftest.er1 >conftest.err 5843 rm -f conftest.er1 5844 cat conftest.err >&5 5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5846 (exit $ac_status); } && { 5847 test -z "$ac_c_werror_flag" || 5848 test ! -s conftest.err 5849 } && test -s conftest.$ac_objext; then 5850 ac_header_compiler=yes 5851else 5852 echo "$as_me: failed program was:" >&5 5853sed 's/^/| /' conftest.$ac_ext >&5 5854 5855 ac_header_compiler=no 5856fi 5857 5858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5859{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5860echo "${ECHO_T}$ac_header_compiler" >&6; } 5861 5862# Is the header present? 5863{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5864echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 5865cat >conftest.$ac_ext <<_ACEOF 5866/* confdefs.h. */ 5867_ACEOF 5868cat confdefs.h >>conftest.$ac_ext 5869cat >>conftest.$ac_ext <<_ACEOF 5870/* end confdefs.h. */ 5871#include <stdlib.h> 5872_ACEOF 5873if { (ac_try="$ac_cpp conftest.$ac_ext" 5874case "(($ac_try" in 5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5876 *) ac_try_echo=$ac_try;; 5877esac 5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5880 ac_status=$? 5881 grep -v '^ *+' conftest.er1 >conftest.err 5882 rm -f conftest.er1 5883 cat conftest.err >&5 5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5885 (exit $ac_status); } >/dev/null && { 5886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5887 test ! -s conftest.err 5888 }; then 5889 ac_header_preproc=yes 5890else 5891 echo "$as_me: failed program was:" >&5 5892sed 's/^/| /' conftest.$ac_ext >&5 5893 5894 ac_header_preproc=no 5895fi 5896 5897rm -f conftest.err conftest.$ac_ext 5898{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5899echo "${ECHO_T}$ac_header_preproc" >&6; } 5900 5901# So? What about this header? 5902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5903 yes:no: ) 5904 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5905echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5906 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5907echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5908 ac_header_preproc=yes 5909 ;; 5910 no:yes:* ) 5911 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5912echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5913 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5914echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5915 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5916echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5917 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5918echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5919 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5920echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5921 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5922echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5923 5924 ;; 5925esac 5926{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 5927echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5928if test "${ac_cv_header_stdlib_h+set}" = set; then 5929 echo $ECHO_N "(cached) $ECHO_C" >&6 5930else 5931 ac_cv_header_stdlib_h=$ac_header_preproc 5932fi 5933{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5934echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5935 5936fi 5937if test $ac_cv_header_stdlib_h = yes; then 5938 tcl_ok=1 5939else 5940 tcl_ok=0 5941fi 5942 5943 5944 cat >conftest.$ac_ext <<_ACEOF 5945/* confdefs.h. */ 5946_ACEOF 5947cat confdefs.h >>conftest.$ac_ext 5948cat >>conftest.$ac_ext <<_ACEOF 5949/* end confdefs.h. */ 5950#include <stdlib.h> 5951 5952_ACEOF 5953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5954 $EGREP "strtol" >/dev/null 2>&1; then 5955 : 5956else 5957 tcl_ok=0 5958fi 5959rm -f -r conftest* 5960 5961 cat >conftest.$ac_ext <<_ACEOF 5962/* confdefs.h. */ 5963_ACEOF 5964cat confdefs.h >>conftest.$ac_ext 5965cat >>conftest.$ac_ext <<_ACEOF 5966/* end confdefs.h. */ 5967#include <stdlib.h> 5968 5969_ACEOF 5970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5971 $EGREP "strtoul" >/dev/null 2>&1; then 5972 : 5973else 5974 tcl_ok=0 5975fi 5976rm -f -r conftest* 5977 5978 cat >conftest.$ac_ext <<_ACEOF 5979/* confdefs.h. */ 5980_ACEOF 5981cat confdefs.h >>conftest.$ac_ext 5982cat >>conftest.$ac_ext <<_ACEOF 5983/* end confdefs.h. */ 5984#include <stdlib.h> 5985 5986_ACEOF 5987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5988 $EGREP "strtod" >/dev/null 2>&1; then 5989 : 5990else 5991 tcl_ok=0 5992fi 5993rm -f -r conftest* 5994 5995 if test $tcl_ok = 0; then 5996 5997cat >>confdefs.h <<\_ACEOF 5998#define NO_STDLIB_H 1 5999_ACEOF 6000 6001 fi 6002 if test "${ac_cv_header_string_h+set}" = set; then 6003 { echo "$as_me:$LINENO: checking for string.h" >&5 6004echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6005if test "${ac_cv_header_string_h+set}" = set; then 6006 echo $ECHO_N "(cached) $ECHO_C" >&6 6007fi 6008{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6009echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6010else 6011 # Is the header compilable? 6012{ echo "$as_me:$LINENO: checking string.h usability" >&5 6013echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6014cat >conftest.$ac_ext <<_ACEOF 6015/* confdefs.h. */ 6016_ACEOF 6017cat confdefs.h >>conftest.$ac_ext 6018cat >>conftest.$ac_ext <<_ACEOF 6019/* end confdefs.h. */ 6020$ac_includes_default 6021#include <string.h> 6022_ACEOF 6023rm -f conftest.$ac_objext 6024if { (ac_try="$ac_compile" 6025case "(($ac_try" in 6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6027 *) ac_try_echo=$ac_try;; 6028esac 6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6030 (eval "$ac_compile") 2>conftest.er1 6031 ac_status=$? 6032 grep -v '^ *+' conftest.er1 >conftest.err 6033 rm -f conftest.er1 6034 cat conftest.err >&5 6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6036 (exit $ac_status); } && { 6037 test -z "$ac_c_werror_flag" || 6038 test ! -s conftest.err 6039 } && test -s conftest.$ac_objext; then 6040 ac_header_compiler=yes 6041else 6042 echo "$as_me: failed program was:" >&5 6043sed 's/^/| /' conftest.$ac_ext >&5 6044 6045 ac_header_compiler=no 6046fi 6047 6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6049{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6050echo "${ECHO_T}$ac_header_compiler" >&6; } 6051 6052# Is the header present? 6053{ echo "$as_me:$LINENO: checking string.h presence" >&5 6054echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6055cat >conftest.$ac_ext <<_ACEOF 6056/* confdefs.h. */ 6057_ACEOF 6058cat confdefs.h >>conftest.$ac_ext 6059cat >>conftest.$ac_ext <<_ACEOF 6060/* end confdefs.h. */ 6061#include <string.h> 6062_ACEOF 6063if { (ac_try="$ac_cpp conftest.$ac_ext" 6064case "(($ac_try" in 6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6066 *) ac_try_echo=$ac_try;; 6067esac 6068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6070 ac_status=$? 6071 grep -v '^ *+' conftest.er1 >conftest.err 6072 rm -f conftest.er1 6073 cat conftest.err >&5 6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6075 (exit $ac_status); } >/dev/null && { 6076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6077 test ! -s conftest.err 6078 }; then 6079 ac_header_preproc=yes 6080else 6081 echo "$as_me: failed program was:" >&5 6082sed 's/^/| /' conftest.$ac_ext >&5 6083 6084 ac_header_preproc=no 6085fi 6086 6087rm -f conftest.err conftest.$ac_ext 6088{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6089echo "${ECHO_T}$ac_header_preproc" >&6; } 6090 6091# So? What about this header? 6092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6093 yes:no: ) 6094 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6095echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6096 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6097echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6098 ac_header_preproc=yes 6099 ;; 6100 no:yes:* ) 6101 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6102echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6103 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6104echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6105 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6106echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6107 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6108echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6109 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6110echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6111 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6112echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6113 6114 ;; 6115esac 6116{ echo "$as_me:$LINENO: checking for string.h" >&5 6117echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6118if test "${ac_cv_header_string_h+set}" = set; then 6119 echo $ECHO_N "(cached) $ECHO_C" >&6 6120else 6121 ac_cv_header_string_h=$ac_header_preproc 6122fi 6123{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6124echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6125 6126fi 6127if test $ac_cv_header_string_h = yes; then 6128 tcl_ok=1 6129else 6130 tcl_ok=0 6131fi 6132 6133 6134 cat >conftest.$ac_ext <<_ACEOF 6135/* confdefs.h. */ 6136_ACEOF 6137cat confdefs.h >>conftest.$ac_ext 6138cat >>conftest.$ac_ext <<_ACEOF 6139/* end confdefs.h. */ 6140#include <string.h> 6141 6142_ACEOF 6143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6144 $EGREP "strstr" >/dev/null 2>&1; then 6145 : 6146else 6147 tcl_ok=0 6148fi 6149rm -f -r conftest* 6150 6151 cat >conftest.$ac_ext <<_ACEOF 6152/* confdefs.h. */ 6153_ACEOF 6154cat confdefs.h >>conftest.$ac_ext 6155cat >>conftest.$ac_ext <<_ACEOF 6156/* end confdefs.h. */ 6157#include <string.h> 6158 6159_ACEOF 6160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6161 $EGREP "strerror" >/dev/null 2>&1; then 6162 : 6163else 6164 tcl_ok=0 6165fi 6166rm -f -r conftest* 6167 6168 6169 # See also memmove check below for a place where NO_STRING_H can be 6170 # set and why. 6171 6172 if test $tcl_ok = 0; then 6173 6174cat >>confdefs.h <<\_ACEOF 6175#define NO_STRING_H 1 6176_ACEOF 6177 6178 fi 6179 6180 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6181 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6182echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6183if test "${ac_cv_header_sys_wait_h+set}" = set; then 6184 echo $ECHO_N "(cached) $ECHO_C" >&6 6185fi 6186{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6187echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6188else 6189 # Is the header compilable? 6190{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6191echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6192cat >conftest.$ac_ext <<_ACEOF 6193/* confdefs.h. */ 6194_ACEOF 6195cat confdefs.h >>conftest.$ac_ext 6196cat >>conftest.$ac_ext <<_ACEOF 6197/* end confdefs.h. */ 6198$ac_includes_default 6199#include <sys/wait.h> 6200_ACEOF 6201rm -f conftest.$ac_objext 6202if { (ac_try="$ac_compile" 6203case "(($ac_try" in 6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6205 *) ac_try_echo=$ac_try;; 6206esac 6207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6208 (eval "$ac_compile") 2>conftest.er1 6209 ac_status=$? 6210 grep -v '^ *+' conftest.er1 >conftest.err 6211 rm -f conftest.er1 6212 cat conftest.err >&5 6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6214 (exit $ac_status); } && { 6215 test -z "$ac_c_werror_flag" || 6216 test ! -s conftest.err 6217 } && test -s conftest.$ac_objext; then 6218 ac_header_compiler=yes 6219else 6220 echo "$as_me: failed program was:" >&5 6221sed 's/^/| /' conftest.$ac_ext >&5 6222 6223 ac_header_compiler=no 6224fi 6225 6226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6227{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6228echo "${ECHO_T}$ac_header_compiler" >&6; } 6229 6230# Is the header present? 6231{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6232echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6233cat >conftest.$ac_ext <<_ACEOF 6234/* confdefs.h. */ 6235_ACEOF 6236cat confdefs.h >>conftest.$ac_ext 6237cat >>conftest.$ac_ext <<_ACEOF 6238/* end confdefs.h. */ 6239#include <sys/wait.h> 6240_ACEOF 6241if { (ac_try="$ac_cpp conftest.$ac_ext" 6242case "(($ac_try" in 6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6244 *) ac_try_echo=$ac_try;; 6245esac 6246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6248 ac_status=$? 6249 grep -v '^ *+' conftest.er1 >conftest.err 6250 rm -f conftest.er1 6251 cat conftest.err >&5 6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6253 (exit $ac_status); } >/dev/null && { 6254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6255 test ! -s conftest.err 6256 }; then 6257 ac_header_preproc=yes 6258else 6259 echo "$as_me: failed program was:" >&5 6260sed 's/^/| /' conftest.$ac_ext >&5 6261 6262 ac_header_preproc=no 6263fi 6264 6265rm -f conftest.err conftest.$ac_ext 6266{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6267echo "${ECHO_T}$ac_header_preproc" >&6; } 6268 6269# So? What about this header? 6270case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6271 yes:no: ) 6272 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6273echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6274 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6275echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6276 ac_header_preproc=yes 6277 ;; 6278 no:yes:* ) 6279 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6280echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6281 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6282echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6283 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6284echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6285 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6286echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6287 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6288echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6289 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6290echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6291 6292 ;; 6293esac 6294{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6295echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6296if test "${ac_cv_header_sys_wait_h+set}" = set; then 6297 echo $ECHO_N "(cached) $ECHO_C" >&6 6298else 6299 ac_cv_header_sys_wait_h=$ac_header_preproc 6300fi 6301{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6302echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6303 6304fi 6305if test $ac_cv_header_sys_wait_h = yes; then 6306 : 6307else 6308 6309cat >>confdefs.h <<\_ACEOF 6310#define NO_SYS_WAIT_H 1 6311_ACEOF 6312 6313fi 6314 6315 6316 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6317 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6318echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6319if test "${ac_cv_header_dlfcn_h+set}" = set; then 6320 echo $ECHO_N "(cached) $ECHO_C" >&6 6321fi 6322{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6323echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6324else 6325 # Is the header compilable? 6326{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6327echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6328cat >conftest.$ac_ext <<_ACEOF 6329/* confdefs.h. */ 6330_ACEOF 6331cat confdefs.h >>conftest.$ac_ext 6332cat >>conftest.$ac_ext <<_ACEOF 6333/* end confdefs.h. */ 6334$ac_includes_default 6335#include <dlfcn.h> 6336_ACEOF 6337rm -f conftest.$ac_objext 6338if { (ac_try="$ac_compile" 6339case "(($ac_try" in 6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6341 *) ac_try_echo=$ac_try;; 6342esac 6343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6344 (eval "$ac_compile") 2>conftest.er1 6345 ac_status=$? 6346 grep -v '^ *+' conftest.er1 >conftest.err 6347 rm -f conftest.er1 6348 cat conftest.err >&5 6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6350 (exit $ac_status); } && { 6351 test -z "$ac_c_werror_flag" || 6352 test ! -s conftest.err 6353 } && test -s conftest.$ac_objext; then 6354 ac_header_compiler=yes 6355else 6356 echo "$as_me: failed program was:" >&5 6357sed 's/^/| /' conftest.$ac_ext >&5 6358 6359 ac_header_compiler=no 6360fi 6361 6362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6363{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6364echo "${ECHO_T}$ac_header_compiler" >&6; } 6365 6366# Is the header present? 6367{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6368echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6369cat >conftest.$ac_ext <<_ACEOF 6370/* confdefs.h. */ 6371_ACEOF 6372cat confdefs.h >>conftest.$ac_ext 6373cat >>conftest.$ac_ext <<_ACEOF 6374/* end confdefs.h. */ 6375#include <dlfcn.h> 6376_ACEOF 6377if { (ac_try="$ac_cpp conftest.$ac_ext" 6378case "(($ac_try" in 6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6380 *) ac_try_echo=$ac_try;; 6381esac 6382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6384 ac_status=$? 6385 grep -v '^ *+' conftest.er1 >conftest.err 6386 rm -f conftest.er1 6387 cat conftest.err >&5 6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6389 (exit $ac_status); } >/dev/null && { 6390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6391 test ! -s conftest.err 6392 }; then 6393 ac_header_preproc=yes 6394else 6395 echo "$as_me: failed program was:" >&5 6396sed 's/^/| /' conftest.$ac_ext >&5 6397 6398 ac_header_preproc=no 6399fi 6400 6401rm -f conftest.err conftest.$ac_ext 6402{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6403echo "${ECHO_T}$ac_header_preproc" >&6; } 6404 6405# So? What about this header? 6406case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6407 yes:no: ) 6408 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6409echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6410 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6411echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6412 ac_header_preproc=yes 6413 ;; 6414 no:yes:* ) 6415 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6416echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6417 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6418echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6419 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6420echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6421 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6422echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6423 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6424echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6425 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6426echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6427 6428 ;; 6429esac 6430{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6431echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6432if test "${ac_cv_header_dlfcn_h+set}" = set; then 6433 echo $ECHO_N "(cached) $ECHO_C" >&6 6434else 6435 ac_cv_header_dlfcn_h=$ac_header_preproc 6436fi 6437{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6438echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6439 6440fi 6441if test $ac_cv_header_dlfcn_h = yes; then 6442 : 6443else 6444 6445cat >>confdefs.h <<\_ACEOF 6446#define NO_DLFCN_H 1 6447_ACEOF 6448 6449fi 6450 6451 6452 6453 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6454 6455for ac_header in sys/param.h 6456do 6457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6459 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6462 echo $ECHO_N "(cached) $ECHO_C" >&6 6463fi 6464ac_res=`eval echo '${'$as_ac_Header'}'` 6465 { echo "$as_me:$LINENO: result: $ac_res" >&5 6466echo "${ECHO_T}$ac_res" >&6; } 6467else 6468 # Is the header compilable? 6469{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6471cat >conftest.$ac_ext <<_ACEOF 6472/* confdefs.h. */ 6473_ACEOF 6474cat confdefs.h >>conftest.$ac_ext 6475cat >>conftest.$ac_ext <<_ACEOF 6476/* end confdefs.h. */ 6477$ac_includes_default 6478#include <$ac_header> 6479_ACEOF 6480rm -f conftest.$ac_objext 6481if { (ac_try="$ac_compile" 6482case "(($ac_try" in 6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6484 *) ac_try_echo=$ac_try;; 6485esac 6486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6487 (eval "$ac_compile") 2>conftest.er1 6488 ac_status=$? 6489 grep -v '^ *+' conftest.er1 >conftest.err 6490 rm -f conftest.er1 6491 cat conftest.err >&5 6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6493 (exit $ac_status); } && { 6494 test -z "$ac_c_werror_flag" || 6495 test ! -s conftest.err 6496 } && test -s conftest.$ac_objext; then 6497 ac_header_compiler=yes 6498else 6499 echo "$as_me: failed program was:" >&5 6500sed 's/^/| /' conftest.$ac_ext >&5 6501 6502 ac_header_compiler=no 6503fi 6504 6505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6506{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6507echo "${ECHO_T}$ac_header_compiler" >&6; } 6508 6509# Is the header present? 6510{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6511echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6512cat >conftest.$ac_ext <<_ACEOF 6513/* confdefs.h. */ 6514_ACEOF 6515cat confdefs.h >>conftest.$ac_ext 6516cat >>conftest.$ac_ext <<_ACEOF 6517/* end confdefs.h. */ 6518#include <$ac_header> 6519_ACEOF 6520if { (ac_try="$ac_cpp conftest.$ac_ext" 6521case "(($ac_try" in 6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6523 *) ac_try_echo=$ac_try;; 6524esac 6525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6527 ac_status=$? 6528 grep -v '^ *+' conftest.er1 >conftest.err 6529 rm -f conftest.er1 6530 cat conftest.err >&5 6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6532 (exit $ac_status); } >/dev/null && { 6533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6534 test ! -s conftest.err 6535 }; then 6536 ac_header_preproc=yes 6537else 6538 echo "$as_me: failed program was:" >&5 6539sed 's/^/| /' conftest.$ac_ext >&5 6540 6541 ac_header_preproc=no 6542fi 6543 6544rm -f conftest.err conftest.$ac_ext 6545{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6546echo "${ECHO_T}$ac_header_preproc" >&6; } 6547 6548# So? What about this header? 6549case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6550 yes:no: ) 6551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6554echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6555 ac_header_preproc=yes 6556 ;; 6557 no:yes:* ) 6558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6559echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6561echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6563echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6565echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6569echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6570 6571 ;; 6572esac 6573{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6576 echo $ECHO_N "(cached) $ECHO_C" >&6 6577else 6578 eval "$as_ac_Header=\$ac_header_preproc" 6579fi 6580ac_res=`eval echo '${'$as_ac_Header'}'` 6581 { echo "$as_me:$LINENO: result: $ac_res" >&5 6582echo "${ECHO_T}$ac_res" >&6; } 6583 6584fi 6585if test `eval echo '${'$as_ac_Header'}'` = yes; then 6586 cat >>confdefs.h <<_ACEOF 6587#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6588_ACEOF 6589 6590fi 6591 6592done 6593 6594 6595 # Let the user call this, because if it triggers, they will 6596 # need a compat/strtod.c that is correct. Users can also 6597 # use Tcl_GetDouble(FromObj) instead. 6598 #TEA_BUGGY_STRTOD 6599 fi 6600 6601 6602 6603 vars=" 6604 tclXbsearch.c tclXchmod.c tclXcmdloop.c tclXdebug.c 6605 tclXdup.c tclXfcntl.c tclXfilecmds.c tclXfilescan.c 6606 tclXflock.c tclXfstat.c tclXgeneral.c tclXhandles.c 6607 tclXinit.c tclXkeylist.c tclXlib.c tclXlist.c 6608 tclXmath.c tclXmsgcat.c tclXprocess.c tclXprofile.c 6609 tclXselect.c tclXsignal.c tclXstring.c tclXsocket.c 6610 tclXutil.c tclXoscmds.c tclXlgets.c 6611" 6612 for i in $vars; do 6613 case $i in 6614 \$*) 6615 # allow $-var names 6616 PKG_SOURCES="$PKG_SOURCES $i" 6617 PKG_OBJECTS="$PKG_OBJECTS $i" 6618 ;; 6619 *) 6620 # check for existence - allows for generic/win/unix VPATH 6621 # To add more dirs here (like 'src'), you have to update VPATH 6622 # in Makefile.in as well 6623 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6624 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6625 -a ! -f "${srcdir}/macosx/$i" \ 6626 ; then 6627 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6628echo "$as_me: error: could not find source file '$i'" >&2;} 6629 { (exit 1); exit 1; }; } 6630 fi 6631 PKG_SOURCES="$PKG_SOURCES $i" 6632 # this assumes it is in a VPATH dir 6633 i=`basename $i` 6634 # handle user calling this before or after TEA_SETUP_COMPILER 6635 if test x"${OBJEXT}" != x ; then 6636 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6637 else 6638 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6639 fi 6640 PKG_OBJECTS="$PKG_OBJECTS $j" 6641 ;; 6642 esac 6643 done 6644 6645 6646 6647 6648 vars="generic/tclExtend.h" 6649 for i in $vars; do 6650 # check for existence, be strict because it is installed 6651 if test ! -f "${srcdir}/$i" ; then 6652 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6653echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6654 { (exit 1); exit 1; }; } 6655 fi 6656 PKG_HEADERS="$PKG_HEADERS $i" 6657 done 6658 6659 6660 6661 vars="-I\"`${CYGPATH} ${srcdir}/generic`\"" 6662 for i in $vars; do 6663 PKG_INCLUDES="$PKG_INCLUDES $i" 6664 done 6665 6666 6667 6668 vars="" 6669 for i in $vars; do 6670 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6671 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6672 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6673 fi 6674 PKG_LIBS="$PKG_LIBS $i" 6675 done 6676 6677 6678 6679 PKG_CFLAGS="$PKG_CFLAGS " 6680 6681 6682 6683 vars="" 6684 for i in $vars; do 6685 # check for existence - allows for generic/win/unix VPATH 6686 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6687 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6688 -a ! -f "${srcdir}/macosx/$i" \ 6689 ; then 6690 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6691echo "$as_me: error: could not find stub source file '$i'" >&2;} 6692 { (exit 1); exit 1; }; } 6693 fi 6694 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6695 # this assumes it is in a VPATH dir 6696 i=`basename $i` 6697 # handle user calling this before or after TEA_SETUP_COMPILER 6698 if test x"${OBJEXT}" != x ; then 6699 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6700 else 6701 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6702 fi 6703 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6704 done 6705 6706 6707 6708 6709 vars=" 6710 library/tclx.tcl library/autoload.tcl 6711 library/arrayprocs.tcl library/compat.tcl 6712 library/convlib.tcl library/edprocs.tcl 6713 library/events.tcl library/forfile.tcl 6714 library/globrecur.tcl library/help.tcl 6715 library/profrep.tcl library/pushd.tcl 6716 library/setfuncs.tcl library/showproc.tcl 6717 library/stringfile.tcl library/tcllib.tcl 6718 library/fmath.tcl library/buildhelp.tcl 6719" 6720 for i in $vars; do 6721 # check for existence, be strict because it is installed 6722 if test ! -f "${srcdir}/$i" ; then 6723 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6724echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6725 { (exit 1); exit 1; }; } 6726 fi 6727 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6728 done 6729 6730 6731 6732#-------------------------------------------------------------------- 6733# Choose which headers you need. Extension authors should try very 6734# hard to only rely on the Tcl public header files. Internal headers 6735# contain private data structures and are subject to change without 6736# notice. 6737# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 6738#-------------------------------------------------------------------- 6739 6740#TEA_PUBLIC_TCL_HEADERS 6741 6742 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6743echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6744 6745 6746# Check whether --with-tclinclude was given. 6747if test "${with_tclinclude+set}" = set; then 6748 withval=$with_tclinclude; with_tclinclude=${withval} 6749fi 6750 6751 6752 if test "${ac_cv_c_tclh+set}" = set; then 6753 echo $ECHO_N "(cached) $ECHO_C" >&6 6754else 6755 6756 # Use the value from --with-tclinclude, if it was given 6757 6758 if test x"${with_tclinclude}" != x ; then 6759 if test -f "${with_tclinclude}/tcl.h" ; then 6760 ac_cv_c_tclh=${with_tclinclude} 6761 else 6762 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6763echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6764 { (exit 1); exit 1; }; } 6765 fi 6766 else 6767 list="" 6768 if test "`uname -s`" = "Darwin"; then 6769 # If Tcl was built as a framework, attempt to use 6770 # the framework's Headers directory 6771 case ${TCL_DEFS} in 6772 *TCL_FRAMEWORK*) 6773 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 6774 ;; 6775 esac 6776 fi 6777 6778 # Look in the source dir only if Tcl is not installed, 6779 # and in that situation, look there before installed locations. 6780 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6781 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 6782 fi 6783 6784 # Check order: pkg --prefix location, Tcl's --prefix location, 6785 # relative to directory of tclConfig.sh. 6786 6787 eval "temp_includedir=${includedir}" 6788 list="$list \ 6789 `ls -d ${temp_includedir} 2>/dev/null` \ 6790 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 6791 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 6792 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 6793 list="$list /usr/local/include /usr/include" 6794 if test x"${TCL_INCLUDE_SPEC}" != x ; then 6795 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 6796 list="$list `ls -d ${d} 2>/dev/null`" 6797 fi 6798 fi 6799 for i in $list ; do 6800 if test -f "$i/tcl.h" ; then 6801 ac_cv_c_tclh=$i 6802 break 6803 fi 6804 done 6805 fi 6806 6807fi 6808 6809 6810 # Print a message based on how we determined the include path 6811 6812 if test x"${ac_cv_c_tclh}" = x ; then 6813 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 6814echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 6815 { (exit 1); exit 1; }; } 6816 else 6817 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 6818echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 6819 fi 6820 6821 # Convert to a native path and substitute into the output files. 6822 6823 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 6824 6825 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 6826 6827 6828 6829 6830 # Allow for --with-tclinclude to take effect and define ${ac_cv_c_tclh} 6831 6832 { echo "$as_me:$LINENO: checking for Tcl private include files" >&5 6833echo $ECHO_N "checking for Tcl private include files... $ECHO_C" >&6; } 6834 6835 TCL_SRC_DIR_NATIVE=`${CYGPATH} ${TCL_SRC_DIR}` 6836 TCL_TOP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}\" 6837 6838 # Check to see if tcl<Plat>Port.h isn't already with the public headers 6839 # Don't look for tclInt.h because that resides with tcl.h in the core 6840 # sources, but the <plat>Port headers are in a different directory 6841 if test "${TEA_PLATFORM}" = "windows" -a \ 6842 -f "${ac_cv_c_tclh}/tclWinPort.h"; then 6843 result="private headers found with public headers" 6844 elif test "${TEA_PLATFORM}" = "unix" -a \ 6845 -f "${ac_cv_c_tclh}/tclUnixPort.h"; then 6846 result="private headers found with public headers" 6847 else 6848 TCL_GENERIC_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/generic\" 6849 if test "${TEA_PLATFORM}" = "windows"; then 6850 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/win\" 6851 else 6852 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/unix\" 6853 fi 6854 # Overwrite the previous TCL_INCLUDES as this should capture both 6855 # public and private headers in the same set. 6856 # We want to ensure these are substituted so as not to require 6857 # any *_NATIVE vars be defined in the Makefile 6858 TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}" 6859 if test "`uname -s`" = "Darwin"; then 6860 # If Tcl was built as a framework, attempt to use 6861 # the framework's Headers and PrivateHeaders directories 6862 case ${TCL_DEFS} in 6863 *TCL_FRAMEWORK*) 6864 if test -d "${TCL_BIN_DIR}/Headers" -a \ 6865 -d "${TCL_BIN_DIR}/PrivateHeaders"; then 6866 TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}" 6867 else 6868 TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`" 6869 fi 6870 ;; 6871 esac 6872 result="Using ${TCL_INCLUDES}" 6873 else 6874 if test ! -f "${TCL_SRC_DIR}/generic/tclInt.h" ; then 6875 { { echo "$as_me:$LINENO: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&5 6876echo "$as_me: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&2;} 6877 { (exit 1); exit 1; }; } 6878 fi 6879 result="Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" 6880 fi 6881 fi 6882 6883 6884 6885 6886 { echo "$as_me:$LINENO: result: ${result}" >&5 6887echo "${ECHO_T}${result}" >&6; } 6888 6889 6890#-------------------------------------------------------------------- 6891# __CHANGE__ 6892# A few miscellaneous platform-specific items: 6893# 6894# Define a special symbol for Windows (BUILD_tclx in this case) so 6895# that we create the export library with the dll. See sha1.h on how 6896# to use this. 6897# 6898# Windows creates a few extra files that need to be cleaned up. 6899# You can add more files to clean if your extension creates any extra 6900# files. 6901# 6902# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 6903# These will be appended to the current set of compiler flags for 6904# your system. 6905#-------------------------------------------------------------------- 6906 6907if test "${TEA_PLATFORM}" = "windows" ; then 6908 cat >>confdefs.h <<\_ACEOF 6909#define BUILD_tclx 1 6910_ACEOF 6911 6912 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" 6913 6914 vars="tclXwinCmds.c tclXwinDup.c tclXwinId.c tclXwinOS.c" 6915 for i in $vars; do 6916 case $i in 6917 \$*) 6918 # allow $-var names 6919 PKG_SOURCES="$PKG_SOURCES $i" 6920 PKG_OBJECTS="$PKG_OBJECTS $i" 6921 ;; 6922 *) 6923 # check for existence - allows for generic/win/unix VPATH 6924 # To add more dirs here (like 'src'), you have to update VPATH 6925 # in Makefile.in as well 6926 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6927 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6928 -a ! -f "${srcdir}/macosx/$i" \ 6929 ; then 6930 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6931echo "$as_me: error: could not find source file '$i'" >&2;} 6932 { (exit 1); exit 1; }; } 6933 fi 6934 PKG_SOURCES="$PKG_SOURCES $i" 6935 # this assumes it is in a VPATH dir 6936 i=`basename $i` 6937 # handle user calling this before or after TEA_SETUP_COMPILER 6938 if test x"${OBJEXT}" != x ; then 6939 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6940 else 6941 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6942 fi 6943 PKG_OBJECTS="$PKG_OBJECTS $j" 6944 ;; 6945 esac 6946 done 6947 6948 6949 6950 6951 vars="wsock32.lib" 6952 for i in $vars; do 6953 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6954 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6955 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6956 fi 6957 PKG_LIBS="$PKG_LIBS $i" 6958 done 6959 6960 6961 6962 vars="-I\"`${CYGPATH} ${srcdir}/win`\"" 6963 for i in $vars; do 6964 PKG_INCLUDES="$PKG_INCLUDES $i" 6965 done 6966 6967 6968else 6969 CLEANFILES="pkgIndex.tcl" 6970 6971 vars="tclXunixCmds.c tclXunixDup.c tclXunixId.c tclXunixOS.c 6972 tclXunixSock.c" 6973 for i in $vars; do 6974 case $i in 6975 \$*) 6976 # allow $-var names 6977 PKG_SOURCES="$PKG_SOURCES $i" 6978 PKG_OBJECTS="$PKG_OBJECTS $i" 6979 ;; 6980 *) 6981 # check for existence - allows for generic/win/unix VPATH 6982 # To add more dirs here (like 'src'), you have to update VPATH 6983 # in Makefile.in as well 6984 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6985 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6986 -a ! -f "${srcdir}/macosx/$i" \ 6987 ; then 6988 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6989echo "$as_me: error: could not find source file '$i'" >&2;} 6990 { (exit 1); exit 1; }; } 6991 fi 6992 PKG_SOURCES="$PKG_SOURCES $i" 6993 # this assumes it is in a VPATH dir 6994 i=`basename $i` 6995 # handle user calling this before or after TEA_SETUP_COMPILER 6996 if test x"${OBJEXT}" != x ; then 6997 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6998 else 6999 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7000 fi 7001 PKG_OBJECTS="$PKG_OBJECTS $j" 7002 ;; 7003 esac 7004 done 7005 7006 7007 7008 7009 vars="${MATH_LIBS}" 7010 for i in $vars; do 7011 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7012 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7013 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7014 fi 7015 PKG_LIBS="$PKG_LIBS $i" 7016 done 7017 7018 7019 7020 vars="-I\"${srcdir}/unix\"" 7021 for i in $vars; do 7022 PKG_INCLUDES="$PKG_INCLUDES $i" 7023 done 7024 7025 7026fi 7027 7028 7029#-------------------------------------------------------------------- 7030# Check whether --enable-threads or --disable-threads was given. 7031#-------------------------------------------------------------------- 7032 7033 7034 # Check whether --enable-threads was given. 7035if test "${enable_threads+set}" = set; then 7036 enableval=$enable_threads; tcl_ok=$enableval 7037else 7038 tcl_ok=yes 7039fi 7040 7041 7042 if test "${enable_threads+set}" = set; then 7043 enableval="$enable_threads" 7044 tcl_ok=$enableval 7045 else 7046 tcl_ok=yes 7047 fi 7048 7049 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 7050 TCL_THREADS=1 7051 7052 if test "${TEA_PLATFORM}" != "windows" ; then 7053 # We are always OK on Windows, so check what this platform wants: 7054 7055 # USE_THREAD_ALLOC tells us to try the special thread-based 7056 # allocator that significantly reduces lock contention 7057 7058cat >>confdefs.h <<\_ACEOF 7059#define USE_THREAD_ALLOC 1 7060_ACEOF 7061 7062 7063cat >>confdefs.h <<\_ACEOF 7064#define _REENTRANT 1 7065_ACEOF 7066 7067 if test "`uname -s`" = "SunOS" ; then 7068 7069cat >>confdefs.h <<\_ACEOF 7070#define _POSIX_PTHREAD_SEMANTICS 1 7071_ACEOF 7072 7073 fi 7074 7075cat >>confdefs.h <<\_ACEOF 7076#define _THREAD_SAFE 1 7077_ACEOF 7078 7079 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 7080echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7081if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 7082 echo $ECHO_N "(cached) $ECHO_C" >&6 7083else 7084 ac_check_lib_save_LIBS=$LIBS 7085LIBS="-lpthread $LIBS" 7086cat >conftest.$ac_ext <<_ACEOF 7087/* confdefs.h. */ 7088_ACEOF 7089cat confdefs.h >>conftest.$ac_ext 7090cat >>conftest.$ac_ext <<_ACEOF 7091/* end confdefs.h. */ 7092 7093/* Override any GCC internal prototype to avoid an error. 7094 Use char because int might match the return type of a GCC 7095 builtin and then its argument prototype would still apply. */ 7096#ifdef __cplusplus 7097extern "C" 7098#endif 7099char pthread_mutex_init (); 7100int 7101main () 7102{ 7103return pthread_mutex_init (); 7104 ; 7105 return 0; 7106} 7107_ACEOF 7108rm -f conftest.$ac_objext conftest$ac_exeext 7109if { (ac_try="$ac_link" 7110case "(($ac_try" in 7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7112 *) ac_try_echo=$ac_try;; 7113esac 7114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7115 (eval "$ac_link") 2>conftest.er1 7116 ac_status=$? 7117 grep -v '^ *+' conftest.er1 >conftest.err 7118 rm -f conftest.er1 7119 cat conftest.err >&5 7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7121 (exit $ac_status); } && { 7122 test -z "$ac_c_werror_flag" || 7123 test ! -s conftest.err 7124 } && test -s conftest$ac_exeext && 7125 $as_test_x conftest$ac_exeext; then 7126 ac_cv_lib_pthread_pthread_mutex_init=yes 7127else 7128 echo "$as_me: failed program was:" >&5 7129sed 's/^/| /' conftest.$ac_ext >&5 7130 7131 ac_cv_lib_pthread_pthread_mutex_init=no 7132fi 7133 7134rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7135 conftest$ac_exeext conftest.$ac_ext 7136LIBS=$ac_check_lib_save_LIBS 7137fi 7138{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7139echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7140if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7141 tcl_ok=yes 7142else 7143 tcl_ok=no 7144fi 7145 7146 if test "$tcl_ok" = "no"; then 7147 # Check a little harder for __pthread_mutex_init in the same 7148 # library, as some systems hide it there until pthread.h is 7149 # defined. We could alternatively do an AC_TRY_COMPILE with 7150 # pthread.h, but that will work with libpthread really doesn't 7151 # exist, like AIX 4.2. [Bug: 4359] 7152 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7153echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7154if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7155 echo $ECHO_N "(cached) $ECHO_C" >&6 7156else 7157 ac_check_lib_save_LIBS=$LIBS 7158LIBS="-lpthread $LIBS" 7159cat >conftest.$ac_ext <<_ACEOF 7160/* confdefs.h. */ 7161_ACEOF 7162cat confdefs.h >>conftest.$ac_ext 7163cat >>conftest.$ac_ext <<_ACEOF 7164/* end confdefs.h. */ 7165 7166/* Override any GCC internal prototype to avoid an error. 7167 Use char because int might match the return type of a GCC 7168 builtin and then its argument prototype would still apply. */ 7169#ifdef __cplusplus 7170extern "C" 7171#endif 7172char __pthread_mutex_init (); 7173int 7174main () 7175{ 7176return __pthread_mutex_init (); 7177 ; 7178 return 0; 7179} 7180_ACEOF 7181rm -f conftest.$ac_objext conftest$ac_exeext 7182if { (ac_try="$ac_link" 7183case "(($ac_try" in 7184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7185 *) ac_try_echo=$ac_try;; 7186esac 7187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7188 (eval "$ac_link") 2>conftest.er1 7189 ac_status=$? 7190 grep -v '^ *+' conftest.er1 >conftest.err 7191 rm -f conftest.er1 7192 cat conftest.err >&5 7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7194 (exit $ac_status); } && { 7195 test -z "$ac_c_werror_flag" || 7196 test ! -s conftest.err 7197 } && test -s conftest$ac_exeext && 7198 $as_test_x conftest$ac_exeext; then 7199 ac_cv_lib_pthread___pthread_mutex_init=yes 7200else 7201 echo "$as_me: failed program was:" >&5 7202sed 's/^/| /' conftest.$ac_ext >&5 7203 7204 ac_cv_lib_pthread___pthread_mutex_init=no 7205fi 7206 7207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7208 conftest$ac_exeext conftest.$ac_ext 7209LIBS=$ac_check_lib_save_LIBS 7210fi 7211{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7212echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7213if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7214 tcl_ok=yes 7215else 7216 tcl_ok=no 7217fi 7218 7219 fi 7220 7221 if test "$tcl_ok" = "yes"; then 7222 # The space is needed 7223 THREADS_LIBS=" -lpthread" 7224 else 7225 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7226echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7227if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7228 echo $ECHO_N "(cached) $ECHO_C" >&6 7229else 7230 ac_check_lib_save_LIBS=$LIBS 7231LIBS="-lpthreads $LIBS" 7232cat >conftest.$ac_ext <<_ACEOF 7233/* confdefs.h. */ 7234_ACEOF 7235cat confdefs.h >>conftest.$ac_ext 7236cat >>conftest.$ac_ext <<_ACEOF 7237/* end confdefs.h. */ 7238 7239/* Override any GCC internal prototype to avoid an error. 7240 Use char because int might match the return type of a GCC 7241 builtin and then its argument prototype would still apply. */ 7242#ifdef __cplusplus 7243extern "C" 7244#endif 7245char pthread_mutex_init (); 7246int 7247main () 7248{ 7249return pthread_mutex_init (); 7250 ; 7251 return 0; 7252} 7253_ACEOF 7254rm -f conftest.$ac_objext conftest$ac_exeext 7255if { (ac_try="$ac_link" 7256case "(($ac_try" in 7257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7258 *) ac_try_echo=$ac_try;; 7259esac 7260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7261 (eval "$ac_link") 2>conftest.er1 7262 ac_status=$? 7263 grep -v '^ *+' conftest.er1 >conftest.err 7264 rm -f conftest.er1 7265 cat conftest.err >&5 7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7267 (exit $ac_status); } && { 7268 test -z "$ac_c_werror_flag" || 7269 test ! -s conftest.err 7270 } && test -s conftest$ac_exeext && 7271 $as_test_x conftest$ac_exeext; then 7272 ac_cv_lib_pthreads_pthread_mutex_init=yes 7273else 7274 echo "$as_me: failed program was:" >&5 7275sed 's/^/| /' conftest.$ac_ext >&5 7276 7277 ac_cv_lib_pthreads_pthread_mutex_init=no 7278fi 7279 7280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7281 conftest$ac_exeext conftest.$ac_ext 7282LIBS=$ac_check_lib_save_LIBS 7283fi 7284{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7285echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7286if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7287 tcl_ok=yes 7288else 7289 tcl_ok=no 7290fi 7291 7292 if test "$tcl_ok" = "yes"; then 7293 # The space is needed 7294 THREADS_LIBS=" -lpthreads" 7295 else 7296 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7297echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7298if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7299 echo $ECHO_N "(cached) $ECHO_C" >&6 7300else 7301 ac_check_lib_save_LIBS=$LIBS 7302LIBS="-lc $LIBS" 7303cat >conftest.$ac_ext <<_ACEOF 7304/* confdefs.h. */ 7305_ACEOF 7306cat confdefs.h >>conftest.$ac_ext 7307cat >>conftest.$ac_ext <<_ACEOF 7308/* end confdefs.h. */ 7309 7310/* Override any GCC internal prototype to avoid an error. 7311 Use char because int might match the return type of a GCC 7312 builtin and then its argument prototype would still apply. */ 7313#ifdef __cplusplus 7314extern "C" 7315#endif 7316char pthread_mutex_init (); 7317int 7318main () 7319{ 7320return pthread_mutex_init (); 7321 ; 7322 return 0; 7323} 7324_ACEOF 7325rm -f conftest.$ac_objext conftest$ac_exeext 7326if { (ac_try="$ac_link" 7327case "(($ac_try" in 7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7329 *) ac_try_echo=$ac_try;; 7330esac 7331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7332 (eval "$ac_link") 2>conftest.er1 7333 ac_status=$? 7334 grep -v '^ *+' conftest.er1 >conftest.err 7335 rm -f conftest.er1 7336 cat conftest.err >&5 7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7338 (exit $ac_status); } && { 7339 test -z "$ac_c_werror_flag" || 7340 test ! -s conftest.err 7341 } && test -s conftest$ac_exeext && 7342 $as_test_x conftest$ac_exeext; then 7343 ac_cv_lib_c_pthread_mutex_init=yes 7344else 7345 echo "$as_me: failed program was:" >&5 7346sed 's/^/| /' conftest.$ac_ext >&5 7347 7348 ac_cv_lib_c_pthread_mutex_init=no 7349fi 7350 7351rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7352 conftest$ac_exeext conftest.$ac_ext 7353LIBS=$ac_check_lib_save_LIBS 7354fi 7355{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7356echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7357if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7358 tcl_ok=yes 7359else 7360 tcl_ok=no 7361fi 7362 7363 if test "$tcl_ok" = "no"; then 7364 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7365echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7366if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7367 echo $ECHO_N "(cached) $ECHO_C" >&6 7368else 7369 ac_check_lib_save_LIBS=$LIBS 7370LIBS="-lc_r $LIBS" 7371cat >conftest.$ac_ext <<_ACEOF 7372/* confdefs.h. */ 7373_ACEOF 7374cat confdefs.h >>conftest.$ac_ext 7375cat >>conftest.$ac_ext <<_ACEOF 7376/* end confdefs.h. */ 7377 7378/* Override any GCC internal prototype to avoid an error. 7379 Use char because int might match the return type of a GCC 7380 builtin and then its argument prototype would still apply. */ 7381#ifdef __cplusplus 7382extern "C" 7383#endif 7384char pthread_mutex_init (); 7385int 7386main () 7387{ 7388return pthread_mutex_init (); 7389 ; 7390 return 0; 7391} 7392_ACEOF 7393rm -f conftest.$ac_objext conftest$ac_exeext 7394if { (ac_try="$ac_link" 7395case "(($ac_try" in 7396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7397 *) ac_try_echo=$ac_try;; 7398esac 7399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7400 (eval "$ac_link") 2>conftest.er1 7401 ac_status=$? 7402 grep -v '^ *+' conftest.er1 >conftest.err 7403 rm -f conftest.er1 7404 cat conftest.err >&5 7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7406 (exit $ac_status); } && { 7407 test -z "$ac_c_werror_flag" || 7408 test ! -s conftest.err 7409 } && test -s conftest$ac_exeext && 7410 $as_test_x conftest$ac_exeext; then 7411 ac_cv_lib_c_r_pthread_mutex_init=yes 7412else 7413 echo "$as_me: failed program was:" >&5 7414sed 's/^/| /' conftest.$ac_ext >&5 7415 7416 ac_cv_lib_c_r_pthread_mutex_init=no 7417fi 7418 7419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7420 conftest$ac_exeext conftest.$ac_ext 7421LIBS=$ac_check_lib_save_LIBS 7422fi 7423{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7424echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7425if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7426 tcl_ok=yes 7427else 7428 tcl_ok=no 7429fi 7430 7431 if test "$tcl_ok" = "yes"; then 7432 # The space is needed 7433 THREADS_LIBS=" -pthread" 7434 else 7435 TCL_THREADS=0 7436 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7437echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7438 fi 7439 fi 7440 fi 7441 fi 7442 fi 7443 else 7444 TCL_THREADS=0 7445 fi 7446 # Do checking message here to not mess up interleaved configure output 7447 { echo "$as_me:$LINENO: checking for building with threads" >&5 7448echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7449 if test "${TCL_THREADS}" = 1; then 7450 7451cat >>confdefs.h <<\_ACEOF 7452#define TCL_THREADS 1 7453_ACEOF 7454 7455 { echo "$as_me:$LINENO: result: yes (default)" >&5 7456echo "${ECHO_T}yes (default)" >&6; } 7457 else 7458 { echo "$as_me:$LINENO: result: no" >&5 7459echo "${ECHO_T}no" >&6; } 7460 fi 7461 # TCL_THREADS sanity checking. See if our request for building with 7462 # threads is the same as the way Tcl was built. If not, warn the user. 7463 case ${TCL_DEFS} in 7464 *THREADS=1*) 7465 if test "${TCL_THREADS}" = "0"; then 7466 { echo "$as_me:$LINENO: WARNING: 7467 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7468 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7469echo "$as_me: WARNING: 7470 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7471 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7472 fi 7473 ;; 7474 *) 7475 if test "${TCL_THREADS}" = "1"; then 7476 { echo "$as_me:$LINENO: WARNING: 7477 --enable-threads requested, but building against a Tcl that is NOT 7478 thread-enabled. This is an OK configuration that will also run in 7479 a thread-enabled core." >&5 7480echo "$as_me: WARNING: 7481 --enable-threads requested, but building against a Tcl that is NOT 7482 thread-enabled. This is an OK configuration that will also run in 7483 a thread-enabled core." >&2;} 7484 fi 7485 ;; 7486 esac 7487 7488 7489 7490#-------------------------------------------------------------------- 7491# The statement below defines a collection of symbols related to 7492# building as a shared library instead of a static library. 7493#-------------------------------------------------------------------- 7494 7495 7496 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7497echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7498 # Check whether --enable-shared was given. 7499if test "${enable_shared+set}" = set; then 7500 enableval=$enable_shared; tcl_ok=$enableval 7501else 7502 tcl_ok=yes 7503fi 7504 7505 7506 if test "${enable_shared+set}" = set; then 7507 enableval="$enable_shared" 7508 tcl_ok=$enableval 7509 else 7510 tcl_ok=yes 7511 fi 7512 7513 if test "$tcl_ok" = "yes" ; then 7514 { echo "$as_me:$LINENO: result: shared" >&5 7515echo "${ECHO_T}shared" >&6; } 7516 SHARED_BUILD=1 7517 else 7518 { echo "$as_me:$LINENO: result: static" >&5 7519echo "${ECHO_T}static" >&6; } 7520 SHARED_BUILD=0 7521 7522cat >>confdefs.h <<\_ACEOF 7523#define STATIC_BUILD 1 7524_ACEOF 7525 7526 fi 7527 7528 7529 7530#-------------------------------------------------------------------- 7531# This macro figures out what flags to use with the compiler/linker 7532# when building shared/static debug/optimized objects. This information 7533# can be taken from the tclConfig.sh file, but this figures it all out. 7534#-------------------------------------------------------------------- 7535 7536 7537 7538 7539 # Step 0.a: Enable 64 bit support? 7540 7541 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7542echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 7543 # Check whether --enable-64bit was given. 7544if test "${enable_64bit+set}" = set; then 7545 enableval=$enable_64bit; do64bit=$enableval 7546else 7547 do64bit=no 7548fi 7549 7550 { echo "$as_me:$LINENO: result: $do64bit" >&5 7551echo "${ECHO_T}$do64bit" >&6; } 7552 7553 # Step 0.b: Enable Solaris 64 bit VIS support? 7554 7555 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7556echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 7557 # Check whether --enable-64bit-vis was given. 7558if test "${enable_64bit_vis+set}" = set; then 7559 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7560else 7561 do64bitVIS=no 7562fi 7563 7564 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7565echo "${ECHO_T}$do64bitVIS" >&6; } 7566 # Force 64bit on with VIS 7567 if test "$do64bitVIS" = "yes"; then 7568 do64bit=yes 7569fi 7570 7571 7572 # Step 0.c: Check if visibility support is available. Do this here so 7573 # that platform specific alternatives can be used below if this fails. 7574 7575 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7576echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 7577if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7578 echo $ECHO_N "(cached) $ECHO_C" >&6 7579else 7580 7581 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7582 cat >conftest.$ac_ext <<_ACEOF 7583/* confdefs.h. */ 7584_ACEOF 7585cat confdefs.h >>conftest.$ac_ext 7586cat >>conftest.$ac_ext <<_ACEOF 7587/* end confdefs.h. */ 7588 7589 extern __attribute__((__visibility__("hidden"))) void f(void); 7590 void f(void) {} 7591int 7592main () 7593{ 7594f(); 7595 ; 7596 return 0; 7597} 7598_ACEOF 7599rm -f conftest.$ac_objext conftest$ac_exeext 7600if { (ac_try="$ac_link" 7601case "(($ac_try" in 7602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7603 *) ac_try_echo=$ac_try;; 7604esac 7605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7606 (eval "$ac_link") 2>conftest.er1 7607 ac_status=$? 7608 grep -v '^ *+' conftest.er1 >conftest.err 7609 rm -f conftest.er1 7610 cat conftest.err >&5 7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7612 (exit $ac_status); } && { 7613 test -z "$ac_c_werror_flag" || 7614 test ! -s conftest.err 7615 } && test -s conftest$ac_exeext && 7616 $as_test_x conftest$ac_exeext; then 7617 tcl_cv_cc_visibility_hidden=yes 7618else 7619 echo "$as_me: failed program was:" >&5 7620sed 's/^/| /' conftest.$ac_ext >&5 7621 7622 tcl_cv_cc_visibility_hidden=no 7623fi 7624 7625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7626 conftest$ac_exeext conftest.$ac_ext 7627 CFLAGS=$hold_cflags 7628fi 7629{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7630echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 7631 if test $tcl_cv_cc_visibility_hidden = yes; then 7632 7633 7634cat >>confdefs.h <<\_ACEOF 7635#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7636_ACEOF 7637 7638 7639fi 7640 7641 7642 # Step 0.d: Disable -rpath support? 7643 7644 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7645echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 7646 # Check whether --enable-rpath was given. 7647if test "${enable_rpath+set}" = set; then 7648 enableval=$enable_rpath; doRpath=$enableval 7649else 7650 doRpath=yes 7651fi 7652 7653 { echo "$as_me:$LINENO: result: $doRpath" >&5 7654echo "${ECHO_T}$doRpath" >&6; } 7655 7656 # TEA specific: Cross-compiling options for Windows/CE builds? 7657 7658 if test "${TEA_PLATFORM}" = windows; then 7659 7660 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7661echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 7662 # Check whether --enable-wince was given. 7663if test "${enable_wince+set}" = set; then 7664 enableval=$enable_wince; doWince=$enableval 7665else 7666 doWince=no 7667fi 7668 7669 { echo "$as_me:$LINENO: result: $doWince" >&5 7670echo "${ECHO_T}$doWince" >&6; } 7671 7672fi 7673 7674 7675 # Set the variable "system" to hold the name and version number 7676 # for the system. 7677 7678 7679 { echo "$as_me:$LINENO: checking system version" >&5 7680echo $ECHO_N "checking system version... $ECHO_C" >&6; } 7681if test "${tcl_cv_sys_version+set}" = set; then 7682 echo $ECHO_N "(cached) $ECHO_C" >&6 7683else 7684 7685 # TEA specific: 7686 if test "${TEA_PLATFORM}" = "windows" ; then 7687 tcl_cv_sys_version=windows 7688 else 7689 tcl_cv_sys_version=`uname -s`-`uname -r` 7690 if test "$?" -ne 0 ; then 7691 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7692echo "$as_me: WARNING: can't find uname command" >&2;} 7693 tcl_cv_sys_version=unknown 7694 else 7695 if test "`uname -s`" = "AIX" ; then 7696 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7697 fi 7698 fi 7699 fi 7700 7701fi 7702{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7703echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 7704 system=$tcl_cv_sys_version 7705 7706 7707 # Require ranlib early so we can override it in special cases below. 7708 7709 7710 7711 # Set configuration options based on system name and version. 7712 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7713 # "windows" case and removed some core-only vars. 7714 7715 do64bit_ok=no 7716 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7717 SHLIB_LD_LIBS='${LIBS}' 7718 # When ld needs options to work in 64-bit mode, put them in 7719 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7720 # is disabled by the user. [Bug 1016796] 7721 LDFLAGS_ARCH="" 7722 UNSHARED_LIB_SUFFIX="" 7723 # TEA specific: use PACKAGE_VERSION instead of VERSION 7724 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7725 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7726 TCL_LIB_VERSIONS_OK=ok 7727 CFLAGS_DEBUG=-g 7728 CFLAGS_OPTIMIZE=-O 7729 if test "$GCC" = yes; then 7730 7731 # TEA specific: 7732 CFLAGS_OPTIMIZE=-O2 7733 CFLAGS_WARNING="-Wall" 7734 7735else 7736 CFLAGS_WARNING="" 7737fi 7738 7739 # Extract the first word of "ar", so it can be a program name with args. 7740set dummy ar; ac_word=$2 7741{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7743if test "${ac_cv_prog_AR+set}" = set; then 7744 echo $ECHO_N "(cached) $ECHO_C" >&6 7745else 7746 if test -n "$AR"; then 7747 ac_cv_prog_AR="$AR" # Let the user override the test. 7748else 7749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7750for as_dir in $PATH 7751do 7752 IFS=$as_save_IFS 7753 test -z "$as_dir" && as_dir=. 7754 for ac_exec_ext in '' $ac_executable_extensions; do 7755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7756 ac_cv_prog_AR="ar" 7757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7758 break 2 7759 fi 7760done 7761done 7762IFS=$as_save_IFS 7763 7764fi 7765fi 7766AR=$ac_cv_prog_AR 7767if test -n "$AR"; then 7768 { echo "$as_me:$LINENO: result: $AR" >&5 7769echo "${ECHO_T}$AR" >&6; } 7770else 7771 { echo "$as_me:$LINENO: result: no" >&5 7772echo "${ECHO_T}no" >&6; } 7773fi 7774 7775 7776 STLIB_LD='${AR} cr' 7777 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7778 if test "x$SHLIB_VERSION" = x; then 7779 SHLIB_VERSION="1.0" 7780fi 7781 7782 case $system in 7783 # TEA specific: 7784 windows) 7785 # This is a 2-stage check to make sure we have the 64-bit SDK 7786 # We have to know where the SDK is installed. 7787 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7788 # MACHINE is IX86 for LINK, but this is used by the manifest, 7789 # which requires x86|amd64|ia64. 7790 MACHINE="X86" 7791 if test "$do64bit" != "no" ; then 7792 if test "x${MSSDK}x" = "xx" ; then 7793 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7794 fi 7795 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7796 PATH64="" 7797 case "$do64bit" in 7798 amd64|x64|yes) 7799 MACHINE="AMD64" ; # default to AMD64 64-bit build 7800 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7801 ;; 7802 ia64) 7803 MACHINE="IA64" 7804 PATH64="${MSSDK}/Bin/Win64" 7805 ;; 7806 esac 7807 if test ! -d "${PATH64}" ; then 7808 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7809echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7810 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7811echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7812 do64bit="no" 7813 else 7814 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7815echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 7816 do64bit_ok="yes" 7817 fi 7818 fi 7819 7820 if test "$doWince" != "no" ; then 7821 if test "$do64bit" != "no" ; then 7822 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7823echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7824 { (exit 1); exit 1; }; } 7825 fi 7826 if test "$GCC" = "yes" ; then 7827 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7828echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7829 { (exit 1); exit 1; }; } 7830 fi 7831 7832 # First, look for one uninstalled. 7833 # the alternative search directory is invoked by --with-celib 7834 7835 if test x"${no_celib}" = x ; then 7836 # we reset no_celib in case something fails here 7837 no_celib=true 7838 7839# Check whether --with-celib was given. 7840if test "${with_celib+set}" = set; then 7841 withval=$with_celib; with_celibconfig=${withval} 7842fi 7843 7844 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7845echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 7846 if test "${ac_cv_c_celibconfig+set}" = set; then 7847 echo $ECHO_N "(cached) $ECHO_C" >&6 7848else 7849 7850 # First check to see if --with-celibconfig was specified. 7851 if test x"${with_celibconfig}" != x ; then 7852 if test -d "${with_celibconfig}/inc" ; then 7853 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7854 else 7855 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7856echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7857 { (exit 1); exit 1; }; } 7858 fi 7859 fi 7860 7861 # then check for a celib library 7862 if test x"${ac_cv_c_celibconfig}" = x ; then 7863 for i in \ 7864 ../celib-palm-3.0 \ 7865 ../celib \ 7866 ../../celib-palm-3.0 \ 7867 ../../celib \ 7868 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7869 ${srcdir}/../celib-palm-3.0 \ 7870 ${srcdir}/../celib \ 7871 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7872 ; do 7873 if test -d "$i/inc" ; then 7874 ac_cv_c_celibconfig=`(cd $i; pwd)` 7875 break 7876 fi 7877 done 7878 fi 7879 7880fi 7881 7882 if test x"${ac_cv_c_celibconfig}" = x ; then 7883 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7884echo "$as_me: error: Cannot find celib support library directory" >&2;} 7885 { (exit 1); exit 1; }; } 7886 else 7887 no_celib= 7888 CELIB_DIR=${ac_cv_c_celibconfig} 7889 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7890 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7891echo "${ECHO_T}found $CELIB_DIR" >&6; } 7892 fi 7893 fi 7894 7895 # Set defaults for common evc4/PPC2003 setup 7896 # Currently Tcl requires 300+, possibly 420+ for sockets 7897 CEVERSION=420; # could be 211 300 301 400 420 ... 7898 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7899 ARCH=ARM; # could be ARM MIPS X86EM ... 7900 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7901 if test "$doWince" != "yes"; then 7902 # If !yes then the user specified something 7903 # Reset ARCH to allow user to skip specifying it 7904 ARCH= 7905 eval `echo $doWince | awk -F, '{ \ 7906 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7907 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7908 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7909 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7910 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7911 }'` 7912 if test "x${ARCH}" = "x" ; then 7913 ARCH=$TARGETCPU; 7914 fi 7915 fi 7916 OSVERSION=WCE$CEVERSION; 7917 if test "x${WCEROOT}" = "x" ; then 7918 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7919 if test ! -d "${WCEROOT}" ; then 7920 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7921 fi 7922 fi 7923 if test "x${SDKROOT}" = "x" ; then 7924 SDKROOT="C:/Program Files/Windows CE Tools" 7925 if test ! -d "${SDKROOT}" ; then 7926 SDKROOT="C:/Windows CE Tools" 7927 fi 7928 fi 7929 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7930 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7931 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7932 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7933 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7934echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7935 { (exit 1); exit 1; }; } 7936 doWince="no" 7937 else 7938 # We could PATH_NOSPACE these, but that's not important, 7939 # as long as we quote them when used. 7940 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7941 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7942 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7943 fi 7944 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7945 fi 7946 fi 7947 7948 if test "$GCC" != "yes" ; then 7949 if test "${SHARED_BUILD}" = "0" ; then 7950 runtime=-MT 7951 else 7952 runtime=-MD 7953 fi 7954 7955 if test "$do64bit" != "no" ; then 7956 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7957 CC="\"${PATH64}/cl.exe\"" 7958 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7959 RC="\"${MSSDK}/bin/rc.exe\"" 7960 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7961 LINKBIN="\"${PATH64}/link.exe\"" 7962 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7963 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7964 # Avoid 'unresolved external symbol __security_cookie' 7965 # errors, c.f. http://support.microsoft.com/?id=894573 7966 7967 vars="bufferoverflowU.lib" 7968 for i in $vars; do 7969 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7970 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7971 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7972 fi 7973 PKG_LIBS="$PKG_LIBS $i" 7974 done 7975 7976 7977 elif test "$doWince" != "no" ; then 7978 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7979 if test "${TARGETCPU}" = "X86"; then 7980 CC="\"${CEBINROOT}/cl.exe\"" 7981 else 7982 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 7983 fi 7984 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7985 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 7986 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 7987 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 7988 if test "${SHARED_BUILD}" = "1" ; then 7989 # Static CE builds require static celib as well 7990 defs="${defs} _DLL" 7991 fi 7992 for i in $defs ; do 7993 7994cat >>confdefs.h <<_ACEOF 7995#define $i 1 7996_ACEOF 7997 7998 done 7999 8000cat >>confdefs.h <<_ACEOF 8001#define _WIN32_WCE $CEVERSION 8002_ACEOF 8003 8004 8005cat >>confdefs.h <<_ACEOF 8006#define UNDER_CE $CEVERSION 8007_ACEOF 8008 8009 CFLAGS_DEBUG="-nologo -Zi -Od" 8010 CFLAGS_OPTIMIZE="-nologo -Ox" 8011 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 8012 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 8013 LINKBIN="\"${CEBINROOT}/link.exe\"" 8014 8015 else 8016 RC="rc" 8017 lflags="-nologo" 8018 LINKBIN="link" 8019 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 8020 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8021 fi 8022 fi 8023 8024 if test "$GCC" = "yes"; then 8025 # mingw gcc mode 8026 RC="windres" 8027 CFLAGS_DEBUG="-g" 8028 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8029 SHLIB_LD="$CC -shared" 8030 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8031 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 8032 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 8033 else 8034 SHLIB_LD="${LINKBIN} -dll ${lflags}" 8035 # link -lib only works when -lib is the first arg 8036 STLIB_LD="${LINKBIN} -lib ${lflags}" 8037 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 8038 PATHTYPE=-w 8039 # For information on what debugtype is most useful, see: 8040 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 8041 # and also 8042 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 8043 # This essentially turns it all on. 8044 LDFLAGS_DEBUG="-debug -debugtype:cv" 8045 LDFLAGS_OPTIMIZE="-release" 8046 if test "$doWince" != "no" ; then 8047 LDFLAGS_CONSOLE="-link ${lflags}" 8048 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 8049 else 8050 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 8051 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 8052 fi 8053 fi 8054 8055 SHLIB_SUFFIX=".dll" 8056 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 8057 8058 TCL_LIB_VERSIONS_OK=nodots 8059 ;; 8060 AIX-*) 8061 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 8062 8063 # AIX requires the _r compiler when gcc isn't being used 8064 case "${CC}" in 8065 *_r|*_r\ *) 8066 # ok ... 8067 ;; 8068 *) 8069 # Make sure only first arg gets _r 8070 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 8071 ;; 8072 esac 8073 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 8074echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 8075 8076fi 8077 8078 LIBS="$LIBS -lc" 8079 SHLIB_CFLAGS="" 8080 SHLIB_SUFFIX=".so" 8081 8082 LD_LIBRARY_PATH_VAR="LIBPATH" 8083 8084 # Check to enable 64-bit flags for compiler/linker 8085 if test "$do64bit" = yes; then 8086 8087 if test "$GCC" = yes; then 8088 8089 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8090echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8091 8092else 8093 8094 do64bit_ok=yes 8095 CFLAGS="$CFLAGS -q64" 8096 LDFLAGS_ARCH="-q64" 8097 RANLIB="${RANLIB} -X64" 8098 AR="${AR} -X64" 8099 SHLIB_LD_FLAGS="-b64" 8100 8101fi 8102 8103 8104fi 8105 8106 8107 if test "`uname -m`" = ia64; then 8108 8109 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8110 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8111 if test "$GCC" = yes; then 8112 8113 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8114 8115else 8116 8117 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8118 8119fi 8120 8121 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8122 8123else 8124 8125 if test "$GCC" = yes; then 8126 8127 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8128 8129else 8130 8131 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8132 LDFLAGS="$LDFLAGS -brtl" 8133 8134fi 8135 8136 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8137 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8138 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8139 8140fi 8141 8142 ;; 8143 BeOS*) 8144 SHLIB_CFLAGS="-fPIC" 8145 SHLIB_LD='${CC} -nostart' 8146 SHLIB_SUFFIX=".so" 8147 8148 #----------------------------------------------------------- 8149 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8150 # -lsocket, even if the network functions are in -lnet which 8151 # is always linked to, for compatibility. 8152 #----------------------------------------------------------- 8153 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8154echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8155if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8156 echo $ECHO_N "(cached) $ECHO_C" >&6 8157else 8158 ac_check_lib_save_LIBS=$LIBS 8159LIBS="-lbind $LIBS" 8160cat >conftest.$ac_ext <<_ACEOF 8161/* confdefs.h. */ 8162_ACEOF 8163cat confdefs.h >>conftest.$ac_ext 8164cat >>conftest.$ac_ext <<_ACEOF 8165/* end confdefs.h. */ 8166 8167/* Override any GCC internal prototype to avoid an error. 8168 Use char because int might match the return type of a GCC 8169 builtin and then its argument prototype would still apply. */ 8170#ifdef __cplusplus 8171extern "C" 8172#endif 8173char inet_ntoa (); 8174int 8175main () 8176{ 8177return inet_ntoa (); 8178 ; 8179 return 0; 8180} 8181_ACEOF 8182rm -f conftest.$ac_objext conftest$ac_exeext 8183if { (ac_try="$ac_link" 8184case "(($ac_try" in 8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8186 *) ac_try_echo=$ac_try;; 8187esac 8188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8189 (eval "$ac_link") 2>conftest.er1 8190 ac_status=$? 8191 grep -v '^ *+' conftest.er1 >conftest.err 8192 rm -f conftest.er1 8193 cat conftest.err >&5 8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8195 (exit $ac_status); } && { 8196 test -z "$ac_c_werror_flag" || 8197 test ! -s conftest.err 8198 } && test -s conftest$ac_exeext && 8199 $as_test_x conftest$ac_exeext; then 8200 ac_cv_lib_bind_inet_ntoa=yes 8201else 8202 echo "$as_me: failed program was:" >&5 8203sed 's/^/| /' conftest.$ac_ext >&5 8204 8205 ac_cv_lib_bind_inet_ntoa=no 8206fi 8207 8208rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8209 conftest$ac_exeext conftest.$ac_ext 8210LIBS=$ac_check_lib_save_LIBS 8211fi 8212{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8213echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8214if test $ac_cv_lib_bind_inet_ntoa = yes; then 8215 LIBS="$LIBS -lbind -lsocket" 8216fi 8217 8218 ;; 8219 BSD/OS-4.*) 8220 SHLIB_CFLAGS="-export-dynamic -fPIC" 8221 SHLIB_LD='${CC} -shared' 8222 SHLIB_SUFFIX=".so" 8223 LDFLAGS="$LDFLAGS -export-dynamic" 8224 CC_SEARCH_FLAGS="" 8225 LD_SEARCH_FLAGS="" 8226 ;; 8227 CYGWIN_*) 8228 SHLIB_CFLAGS="" 8229 SHLIB_LD='${CC} -shared' 8230 SHLIB_SUFFIX=".dll" 8231 EXE_SUFFIX=".exe" 8232 CC_SEARCH_FLAGS="" 8233 LD_SEARCH_FLAGS="" 8234 ;; 8235 Haiku*) 8236 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8237 SHLIB_CFLAGS="-fPIC" 8238 SHLIB_SUFFIX=".so" 8239 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8240 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8241echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8242if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8243 echo $ECHO_N "(cached) $ECHO_C" >&6 8244else 8245 ac_check_lib_save_LIBS=$LIBS 8246LIBS="-lnetwork $LIBS" 8247cat >conftest.$ac_ext <<_ACEOF 8248/* confdefs.h. */ 8249_ACEOF 8250cat confdefs.h >>conftest.$ac_ext 8251cat >>conftest.$ac_ext <<_ACEOF 8252/* end confdefs.h. */ 8253 8254/* Override any GCC internal prototype to avoid an error. 8255 Use char because int might match the return type of a GCC 8256 builtin and then its argument prototype would still apply. */ 8257#ifdef __cplusplus 8258extern "C" 8259#endif 8260char inet_ntoa (); 8261int 8262main () 8263{ 8264return inet_ntoa (); 8265 ; 8266 return 0; 8267} 8268_ACEOF 8269rm -f conftest.$ac_objext conftest$ac_exeext 8270if { (ac_try="$ac_link" 8271case "(($ac_try" in 8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8273 *) ac_try_echo=$ac_try;; 8274esac 8275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8276 (eval "$ac_link") 2>conftest.er1 8277 ac_status=$? 8278 grep -v '^ *+' conftest.er1 >conftest.err 8279 rm -f conftest.er1 8280 cat conftest.err >&5 8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8282 (exit $ac_status); } && { 8283 test -z "$ac_c_werror_flag" || 8284 test ! -s conftest.err 8285 } && test -s conftest$ac_exeext && 8286 $as_test_x conftest$ac_exeext; then 8287 ac_cv_lib_network_inet_ntoa=yes 8288else 8289 echo "$as_me: failed program was:" >&5 8290sed 's/^/| /' conftest.$ac_ext >&5 8291 8292 ac_cv_lib_network_inet_ntoa=no 8293fi 8294 8295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8296 conftest$ac_exeext conftest.$ac_ext 8297LIBS=$ac_check_lib_save_LIBS 8298fi 8299{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8300echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8301if test $ac_cv_lib_network_inet_ntoa = yes; then 8302 LIBS="$LIBS -lnetwork" 8303fi 8304 8305 ;; 8306 HP-UX-*.11.*) 8307 # Use updated header definitions where possible 8308 8309cat >>confdefs.h <<\_ACEOF 8310#define _XOPEN_SOURCE_EXTENDED 1 8311_ACEOF 8312 8313 # TEA specific: Needed by Tcl, but not most extensions 8314 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8315 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8316 8317 if test "`uname -m`" = ia64; then 8318 8319 SHLIB_SUFFIX=".so" 8320 # Use newer C++ library for C++ extensions 8321 #if test "$GCC" != "yes" ; then 8322 # CPPFLAGS="-AA" 8323 #fi 8324 8325else 8326 8327 SHLIB_SUFFIX=".sl" 8328 8329fi 8330 8331 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8332echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8333if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8334 echo $ECHO_N "(cached) $ECHO_C" >&6 8335else 8336 ac_check_lib_save_LIBS=$LIBS 8337LIBS="-ldld $LIBS" 8338cat >conftest.$ac_ext <<_ACEOF 8339/* confdefs.h. */ 8340_ACEOF 8341cat confdefs.h >>conftest.$ac_ext 8342cat >>conftest.$ac_ext <<_ACEOF 8343/* end confdefs.h. */ 8344 8345/* Override any GCC internal prototype to avoid an error. 8346 Use char because int might match the return type of a GCC 8347 builtin and then its argument prototype would still apply. */ 8348#ifdef __cplusplus 8349extern "C" 8350#endif 8351char shl_load (); 8352int 8353main () 8354{ 8355return shl_load (); 8356 ; 8357 return 0; 8358} 8359_ACEOF 8360rm -f conftest.$ac_objext conftest$ac_exeext 8361if { (ac_try="$ac_link" 8362case "(($ac_try" in 8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8364 *) ac_try_echo=$ac_try;; 8365esac 8366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8367 (eval "$ac_link") 2>conftest.er1 8368 ac_status=$? 8369 grep -v '^ *+' conftest.er1 >conftest.err 8370 rm -f conftest.er1 8371 cat conftest.err >&5 8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8373 (exit $ac_status); } && { 8374 test -z "$ac_c_werror_flag" || 8375 test ! -s conftest.err 8376 } && test -s conftest$ac_exeext && 8377 $as_test_x conftest$ac_exeext; then 8378 ac_cv_lib_dld_shl_load=yes 8379else 8380 echo "$as_me: failed program was:" >&5 8381sed 's/^/| /' conftest.$ac_ext >&5 8382 8383 ac_cv_lib_dld_shl_load=no 8384fi 8385 8386rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8387 conftest$ac_exeext conftest.$ac_ext 8388LIBS=$ac_check_lib_save_LIBS 8389fi 8390{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8391echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8392if test $ac_cv_lib_dld_shl_load = yes; then 8393 tcl_ok=yes 8394else 8395 tcl_ok=no 8396fi 8397 8398 if test "$tcl_ok" = yes; then 8399 8400 LDFLAGS="$LDFLAGS -E" 8401 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8402 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8403 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8404 8405fi 8406 8407 if test "$GCC" = yes; then 8408 8409 SHLIB_LD='${CC} -shared' 8410 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8411 8412else 8413 8414 CFLAGS="$CFLAGS -z" 8415 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8416 #CFLAGS="$CFLAGS +DAportable" 8417 SHLIB_CFLAGS="+z" 8418 SHLIB_LD="ld -b" 8419 8420fi 8421 8422 8423 # Check to enable 64-bit flags for compiler/linker 8424 if test "$do64bit" = "yes"; then 8425 8426 if test "$GCC" = yes; then 8427 8428 case `${CC} -dumpmachine` in 8429 hppa64*) 8430 # 64-bit gcc in use. Fix flags for GNU ld. 8431 do64bit_ok=yes 8432 SHLIB_LD='${CC} -shared' 8433 if test $doRpath = yes; then 8434 8435 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8436fi 8437 8438 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8439 ;; 8440 *) 8441 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8442echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8443 ;; 8444 esac 8445 8446else 8447 8448 do64bit_ok=yes 8449 CFLAGS="$CFLAGS +DD64" 8450 LDFLAGS_ARCH="+DD64" 8451 8452fi 8453 8454 8455fi 8456 ;; 8457 IRIX-6.*) 8458 SHLIB_CFLAGS="" 8459 SHLIB_LD="ld -n32 -shared -rdata_shared" 8460 SHLIB_SUFFIX=".so" 8461 if test $doRpath = yes; then 8462 8463 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8464 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8465fi 8466 8467 if test "$GCC" = yes; then 8468 8469 CFLAGS="$CFLAGS -mabi=n32" 8470 LDFLAGS="$LDFLAGS -mabi=n32" 8471 8472else 8473 8474 case $system in 8475 IRIX-6.3) 8476 # Use to build 6.2 compatible binaries on 6.3. 8477 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8478 ;; 8479 *) 8480 CFLAGS="$CFLAGS -n32" 8481 ;; 8482 esac 8483 LDFLAGS="$LDFLAGS -n32" 8484 8485fi 8486 8487 ;; 8488 IRIX64-6.*) 8489 SHLIB_CFLAGS="" 8490 SHLIB_LD="ld -n32 -shared -rdata_shared" 8491 SHLIB_SUFFIX=".so" 8492 if test $doRpath = yes; then 8493 8494 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8495 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8496fi 8497 8498 8499 # Check to enable 64-bit flags for compiler/linker 8500 8501 if test "$do64bit" = yes; then 8502 8503 if test "$GCC" = yes; then 8504 8505 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8506echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8507 8508else 8509 8510 do64bit_ok=yes 8511 SHLIB_LD="ld -64 -shared -rdata_shared" 8512 CFLAGS="$CFLAGS -64" 8513 LDFLAGS_ARCH="-64" 8514 8515fi 8516 8517 8518fi 8519 8520 ;; 8521 Linux*) 8522 SHLIB_CFLAGS="-fPIC" 8523 SHLIB_SUFFIX=".so" 8524 8525 # TEA specific: 8526 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8527 8528 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8529 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8530 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8531 if test $doRpath = yes; then 8532 8533 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8534fi 8535 8536 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8537 if test "`uname -m`" = "alpha"; then 8538 CFLAGS="$CFLAGS -mieee" 8539fi 8540 8541 if test $do64bit = yes; then 8542 8543 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8544echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 8545if test "${tcl_cv_cc_m64+set}" = set; then 8546 echo $ECHO_N "(cached) $ECHO_C" >&6 8547else 8548 8549 hold_cflags=$CFLAGS 8550 CFLAGS="$CFLAGS -m64" 8551 cat >conftest.$ac_ext <<_ACEOF 8552/* confdefs.h. */ 8553_ACEOF 8554cat confdefs.h >>conftest.$ac_ext 8555cat >>conftest.$ac_ext <<_ACEOF 8556/* end confdefs.h. */ 8557 8558int 8559main () 8560{ 8561 8562 ; 8563 return 0; 8564} 8565_ACEOF 8566rm -f conftest.$ac_objext conftest$ac_exeext 8567if { (ac_try="$ac_link" 8568case "(($ac_try" in 8569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8570 *) ac_try_echo=$ac_try;; 8571esac 8572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8573 (eval "$ac_link") 2>conftest.er1 8574 ac_status=$? 8575 grep -v '^ *+' conftest.er1 >conftest.err 8576 rm -f conftest.er1 8577 cat conftest.err >&5 8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8579 (exit $ac_status); } && { 8580 test -z "$ac_c_werror_flag" || 8581 test ! -s conftest.err 8582 } && test -s conftest$ac_exeext && 8583 $as_test_x conftest$ac_exeext; then 8584 tcl_cv_cc_m64=yes 8585else 8586 echo "$as_me: failed program was:" >&5 8587sed 's/^/| /' conftest.$ac_ext >&5 8588 8589 tcl_cv_cc_m64=no 8590fi 8591 8592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8593 conftest$ac_exeext conftest.$ac_ext 8594 CFLAGS=$hold_cflags 8595fi 8596{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8597echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 8598 if test $tcl_cv_cc_m64 = yes; then 8599 8600 CFLAGS="$CFLAGS -m64" 8601 do64bit_ok=yes 8602 8603fi 8604 8605 8606fi 8607 8608 8609 # The combo of gcc + glibc has a bug related to inlining of 8610 # functions like strtod(). The -fno-builtin flag should address 8611 # this problem but it does not work. The -fno-inline flag is kind 8612 # of overkill but it works. Disable inlining only when one of the 8613 # files in compat/*.c is being linked in. 8614 8615 if test x"${USE_COMPAT}" != x; then 8616 CFLAGS="$CFLAGS -fno-inline" 8617fi 8618 8619 8620 ;; 8621 GNU*) 8622 SHLIB_CFLAGS="-fPIC" 8623 SHLIB_SUFFIX=".so" 8624 8625 SHLIB_LD='${CC} -shared' 8626 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8627 CC_SEARCH_FLAGS="" 8628 LD_SEARCH_FLAGS="" 8629 if test "`uname -m`" = "alpha"; then 8630 CFLAGS="$CFLAGS -mieee" 8631fi 8632 8633 ;; 8634 Lynx*) 8635 SHLIB_CFLAGS="-fPIC" 8636 SHLIB_SUFFIX=".so" 8637 CFLAGS_OPTIMIZE=-02 8638 SHLIB_LD='${CC} -shared' 8639 LD_FLAGS="-Wl,--export-dynamic" 8640 if test $doRpath = yes; then 8641 8642 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8643 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8644fi 8645 8646 ;; 8647 OpenBSD-*) 8648 SHLIB_CFLAGS="-fPIC" 8649 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8650 SHLIB_SUFFIX=".so" 8651 if test $doRpath = yes; then 8652 8653 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8654fi 8655 8656 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8657 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8658 { echo "$as_me:$LINENO: checking for ELF" >&5 8659echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 8660if test "${tcl_cv_ld_elf+set}" = set; then 8661 echo $ECHO_N "(cached) $ECHO_C" >&6 8662else 8663 8664 cat >conftest.$ac_ext <<_ACEOF 8665/* confdefs.h. */ 8666_ACEOF 8667cat confdefs.h >>conftest.$ac_ext 8668cat >>conftest.$ac_ext <<_ACEOF 8669/* end confdefs.h. */ 8670 8671#ifdef __ELF__ 8672 yes 8673#endif 8674 8675_ACEOF 8676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8677 $EGREP "yes" >/dev/null 2>&1; then 8678 tcl_cv_ld_elf=yes 8679else 8680 tcl_cv_ld_elf=no 8681fi 8682rm -f -r conftest* 8683 8684fi 8685{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8686echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 8687 if test $tcl_cv_ld_elf = yes; then 8688 8689 LDFLAGS=-Wl,-export-dynamic 8690 8691else 8692 LDFLAGS="" 8693fi 8694 8695 if test "${TCL_THREADS}" = "1"; then 8696 8697 # OpenBSD builds and links with -pthread, never -lpthread. 8698 LIBS=`echo $LIBS | sed s/-lpthread//` 8699 CFLAGS="$CFLAGS -pthread" 8700 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8701 8702fi 8703 8704 # OpenBSD doesn't do version numbers with dots. 8705 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8706 TCL_LIB_VERSIONS_OK=nodots 8707 ;; 8708 NetBSD-*|FreeBSD-[3-4].*) 8709 # FreeBSD 3.* and greater have ELF. 8710 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8711 SHLIB_CFLAGS="-fPIC" 8712 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8713 SHLIB_SUFFIX=".so" 8714 LDFLAGS="$LDFLAGS -export-dynamic" 8715 if test $doRpath = yes; then 8716 8717 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8718fi 8719 8720 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8721 if test "${TCL_THREADS}" = "1"; then 8722 8723 # The -pthread needs to go in the CFLAGS, not LIBS 8724 LIBS=`echo $LIBS | sed s/-pthread//` 8725 CFLAGS="$CFLAGS -pthread" 8726 LDFLAGS="$LDFLAGS -pthread" 8727 8728fi 8729 8730 case $system in 8731 FreeBSD-3.*) 8732 # FreeBSD-3 doesn't handle version numbers with dots. 8733 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8734 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8735 TCL_LIB_VERSIONS_OK=nodots 8736 ;; 8737 esac 8738 ;; 8739 FreeBSD-*) 8740 # This configuration from FreeBSD Ports. 8741 SHLIB_CFLAGS="-fPIC" 8742 SHLIB_LD="${CC} -shared" 8743 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8744 SHLIB_SUFFIX=".so" 8745 LDFLAGS="" 8746 if test $doRpath = yes; then 8747 8748 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8749 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8750fi 8751 8752 if test "${TCL_THREADS}" = "1"; then 8753 8754 # The -pthread needs to go in the LDFLAGS, not LIBS 8755 LIBS=`echo $LIBS | sed s/-pthread//` 8756 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8757 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8758fi 8759 8760 # Version numbers are dot-stripped by system policy. 8761 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8762 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8763 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8764 TCL_LIB_VERSIONS_OK=nodots 8765 ;; 8766 Darwin-*) 8767 CFLAGS_OPTIMIZE="-Os" 8768 SHLIB_CFLAGS="-fno-common" 8769 # To avoid discrepancies between what headers configure sees during 8770 # preprocessing tests and compiling tests, move any -isysroot and 8771 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8772 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8773 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8774 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8775 CFLAGS="`echo " ${CFLAGS}" | \ 8776 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8777 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8778 if test $do64bit = yes; then 8779 8780 case `arch` in 8781 ppc) 8782 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8783echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 8784if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8785 echo $ECHO_N "(cached) $ECHO_C" >&6 8786else 8787 8788 hold_cflags=$CFLAGS 8789 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8790 cat >conftest.$ac_ext <<_ACEOF 8791/* confdefs.h. */ 8792_ACEOF 8793cat confdefs.h >>conftest.$ac_ext 8794cat >>conftest.$ac_ext <<_ACEOF 8795/* end confdefs.h. */ 8796 8797int 8798main () 8799{ 8800 8801 ; 8802 return 0; 8803} 8804_ACEOF 8805rm -f conftest.$ac_objext conftest$ac_exeext 8806if { (ac_try="$ac_link" 8807case "(($ac_try" in 8808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8809 *) ac_try_echo=$ac_try;; 8810esac 8811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8812 (eval "$ac_link") 2>conftest.er1 8813 ac_status=$? 8814 grep -v '^ *+' conftest.er1 >conftest.err 8815 rm -f conftest.er1 8816 cat conftest.err >&5 8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8818 (exit $ac_status); } && { 8819 test -z "$ac_c_werror_flag" || 8820 test ! -s conftest.err 8821 } && test -s conftest$ac_exeext && 8822 $as_test_x conftest$ac_exeext; then 8823 tcl_cv_cc_arch_ppc64=yes 8824else 8825 echo "$as_me: failed program was:" >&5 8826sed 's/^/| /' conftest.$ac_ext >&5 8827 8828 tcl_cv_cc_arch_ppc64=no 8829fi 8830 8831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8832 conftest$ac_exeext conftest.$ac_ext 8833 CFLAGS=$hold_cflags 8834fi 8835{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8836echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 8837 if test $tcl_cv_cc_arch_ppc64 = yes; then 8838 8839 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8840 do64bit_ok=yes 8841 8842fi 8843;; 8844 i386) 8845 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8846echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 8847if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8848 echo $ECHO_N "(cached) $ECHO_C" >&6 8849else 8850 8851 hold_cflags=$CFLAGS 8852 CFLAGS="$CFLAGS -arch x86_64" 8853 cat >conftest.$ac_ext <<_ACEOF 8854/* confdefs.h. */ 8855_ACEOF 8856cat confdefs.h >>conftest.$ac_ext 8857cat >>conftest.$ac_ext <<_ACEOF 8858/* end confdefs.h. */ 8859 8860int 8861main () 8862{ 8863 8864 ; 8865 return 0; 8866} 8867_ACEOF 8868rm -f conftest.$ac_objext conftest$ac_exeext 8869if { (ac_try="$ac_link" 8870case "(($ac_try" in 8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8872 *) ac_try_echo=$ac_try;; 8873esac 8874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8875 (eval "$ac_link") 2>conftest.er1 8876 ac_status=$? 8877 grep -v '^ *+' conftest.er1 >conftest.err 8878 rm -f conftest.er1 8879 cat conftest.err >&5 8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8881 (exit $ac_status); } && { 8882 test -z "$ac_c_werror_flag" || 8883 test ! -s conftest.err 8884 } && test -s conftest$ac_exeext && 8885 $as_test_x conftest$ac_exeext; then 8886 tcl_cv_cc_arch_x86_64=yes 8887else 8888 echo "$as_me: failed program was:" >&5 8889sed 's/^/| /' conftest.$ac_ext >&5 8890 8891 tcl_cv_cc_arch_x86_64=no 8892fi 8893 8894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8895 conftest$ac_exeext conftest.$ac_ext 8896 CFLAGS=$hold_cflags 8897fi 8898{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8899echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 8900 if test $tcl_cv_cc_arch_x86_64 = yes; then 8901 8902 CFLAGS="$CFLAGS -arch x86_64" 8903 do64bit_ok=yes 8904 8905fi 8906;; 8907 *) 8908 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8909echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8910 esac 8911 8912else 8913 8914 # Check for combined 32-bit and 64-bit fat build 8915 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8916 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 8917 8918 fat_32_64=yes 8919fi 8920 8921 8922fi 8923 8924 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8925 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8926 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8927echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 8928if test "${tcl_cv_ld_single_module+set}" = set; then 8929 echo $ECHO_N "(cached) $ECHO_C" >&6 8930else 8931 8932 hold_ldflags=$LDFLAGS 8933 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8934 cat >conftest.$ac_ext <<_ACEOF 8935/* confdefs.h. */ 8936_ACEOF 8937cat confdefs.h >>conftest.$ac_ext 8938cat >>conftest.$ac_ext <<_ACEOF 8939/* end confdefs.h. */ 8940 8941int 8942main () 8943{ 8944int i; 8945 ; 8946 return 0; 8947} 8948_ACEOF 8949rm -f conftest.$ac_objext conftest$ac_exeext 8950if { (ac_try="$ac_link" 8951case "(($ac_try" in 8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8953 *) ac_try_echo=$ac_try;; 8954esac 8955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8956 (eval "$ac_link") 2>conftest.er1 8957 ac_status=$? 8958 grep -v '^ *+' conftest.er1 >conftest.err 8959 rm -f conftest.er1 8960 cat conftest.err >&5 8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8962 (exit $ac_status); } && { 8963 test -z "$ac_c_werror_flag" || 8964 test ! -s conftest.err 8965 } && test -s conftest$ac_exeext && 8966 $as_test_x conftest$ac_exeext; then 8967 tcl_cv_ld_single_module=yes 8968else 8969 echo "$as_me: failed program was:" >&5 8970sed 's/^/| /' conftest.$ac_ext >&5 8971 8972 tcl_cv_ld_single_module=no 8973fi 8974 8975rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8976 conftest$ac_exeext conftest.$ac_ext 8977 LDFLAGS=$hold_ldflags 8978fi 8979{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 8980echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 8981 if test $tcl_cv_ld_single_module = yes; then 8982 8983 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 8984 8985fi 8986 8987 # TEA specific: link shlib with current and compatiblity version flags 8988 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 8989 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 8990 SHLIB_SUFFIX=".dylib" 8991 # Don't use -prebind when building for Mac OS X 10.4 or later only: 8992 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 8993 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 8994 8995 LDFLAGS="$LDFLAGS -prebind" 8996fi 8997 8998 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 8999 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 9000echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 9001if test "${tcl_cv_ld_search_paths_first+set}" = set; then 9002 echo $ECHO_N "(cached) $ECHO_C" >&6 9003else 9004 9005 hold_ldflags=$LDFLAGS 9006 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9007 cat >conftest.$ac_ext <<_ACEOF 9008/* confdefs.h. */ 9009_ACEOF 9010cat confdefs.h >>conftest.$ac_ext 9011cat >>conftest.$ac_ext <<_ACEOF 9012/* end confdefs.h. */ 9013 9014int 9015main () 9016{ 9017int i; 9018 ; 9019 return 0; 9020} 9021_ACEOF 9022rm -f conftest.$ac_objext conftest$ac_exeext 9023if { (ac_try="$ac_link" 9024case "(($ac_try" in 9025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9026 *) ac_try_echo=$ac_try;; 9027esac 9028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9029 (eval "$ac_link") 2>conftest.er1 9030 ac_status=$? 9031 grep -v '^ *+' conftest.er1 >conftest.err 9032 rm -f conftest.er1 9033 cat conftest.err >&5 9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9035 (exit $ac_status); } && { 9036 test -z "$ac_c_werror_flag" || 9037 test ! -s conftest.err 9038 } && test -s conftest$ac_exeext && 9039 $as_test_x conftest$ac_exeext; then 9040 tcl_cv_ld_search_paths_first=yes 9041else 9042 echo "$as_me: failed program was:" >&5 9043sed 's/^/| /' conftest.$ac_ext >&5 9044 9045 tcl_cv_ld_search_paths_first=no 9046fi 9047 9048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9049 conftest$ac_exeext conftest.$ac_ext 9050 LDFLAGS=$hold_ldflags 9051fi 9052{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9053echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 9054 if test $tcl_cv_ld_search_paths_first = yes; then 9055 9056 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9057 9058fi 9059 9060 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9061 9062 9063cat >>confdefs.h <<\_ACEOF 9064#define MODULE_SCOPE __private_extern__ 9065_ACEOF 9066 9067 tcl_cv_cc_visibility_hidden=yes 9068 9069fi 9070 9071 CC_SEARCH_FLAGS="" 9072 LD_SEARCH_FLAGS="" 9073 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9074 # TEA specific: for combined 32 & 64 bit fat builds of Tk 9075 # extensions, verify that 64-bit build is possible. 9076 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 9077 9078 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 9079 9080 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9081echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 9082if test "${tcl_cv_lib_x11_64+set}" = set; then 9083 echo $ECHO_N "(cached) $ECHO_C" >&6 9084else 9085 9086 for v in CFLAGS CPPFLAGS LDFLAGS; do 9087 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9088 done 9089 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9090 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9091 cat >conftest.$ac_ext <<_ACEOF 9092/* confdefs.h. */ 9093_ACEOF 9094cat confdefs.h >>conftest.$ac_ext 9095cat >>conftest.$ac_ext <<_ACEOF 9096/* end confdefs.h. */ 9097#include <X11/Xlib.h> 9098int 9099main () 9100{ 9101XrmInitialize(); 9102 ; 9103 return 0; 9104} 9105_ACEOF 9106rm -f conftest.$ac_objext conftest$ac_exeext 9107if { (ac_try="$ac_link" 9108case "(($ac_try" in 9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9110 *) ac_try_echo=$ac_try;; 9111esac 9112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9113 (eval "$ac_link") 2>conftest.er1 9114 ac_status=$? 9115 grep -v '^ *+' conftest.er1 >conftest.err 9116 rm -f conftest.er1 9117 cat conftest.err >&5 9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9119 (exit $ac_status); } && { 9120 test -z "$ac_c_werror_flag" || 9121 test ! -s conftest.err 9122 } && test -s conftest$ac_exeext && 9123 $as_test_x conftest$ac_exeext; then 9124 tcl_cv_lib_x11_64=yes 9125else 9126 echo "$as_me: failed program was:" >&5 9127sed 's/^/| /' conftest.$ac_ext >&5 9128 9129 tcl_cv_lib_x11_64=no 9130fi 9131 9132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9133 conftest$ac_exeext conftest.$ac_ext 9134 for v in CFLAGS CPPFLAGS LDFLAGS; do 9135 eval $v'="$hold_'$v'"' 9136 done 9137fi 9138{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9139echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9140 9141fi 9142 9143 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9144 9145 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9146echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9147if test "${tcl_cv_lib_tk_64+set}" = set; then 9148 echo $ECHO_N "(cached) $ECHO_C" >&6 9149else 9150 9151 for v in CFLAGS CPPFLAGS LDFLAGS; do 9152 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9153 done 9154 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9155 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9156 cat >conftest.$ac_ext <<_ACEOF 9157/* confdefs.h. */ 9158_ACEOF 9159cat confdefs.h >>conftest.$ac_ext 9160cat >>conftest.$ac_ext <<_ACEOF 9161/* end confdefs.h. */ 9162#include <tk.h> 9163int 9164main () 9165{ 9166Tk_InitStubs(NULL, "", 0); 9167 ; 9168 return 0; 9169} 9170_ACEOF 9171rm -f conftest.$ac_objext conftest$ac_exeext 9172if { (ac_try="$ac_link" 9173case "(($ac_try" in 9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9175 *) ac_try_echo=$ac_try;; 9176esac 9177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9178 (eval "$ac_link") 2>conftest.er1 9179 ac_status=$? 9180 grep -v '^ *+' conftest.er1 >conftest.err 9181 rm -f conftest.er1 9182 cat conftest.err >&5 9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9184 (exit $ac_status); } && { 9185 test -z "$ac_c_werror_flag" || 9186 test ! -s conftest.err 9187 } && test -s conftest$ac_exeext && 9188 $as_test_x conftest$ac_exeext; then 9189 tcl_cv_lib_tk_64=yes 9190else 9191 echo "$as_me: failed program was:" >&5 9192sed 's/^/| /' conftest.$ac_ext >&5 9193 9194 tcl_cv_lib_tk_64=no 9195fi 9196 9197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9198 conftest$ac_exeext conftest.$ac_ext 9199 for v in CFLAGS CPPFLAGS LDFLAGS; do 9200 eval $v'="$hold_'$v'"' 9201 done 9202fi 9203{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9204echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9205 9206fi 9207 9208 # remove 64-bit arch flags from CFLAGS et al. if configuration 9209 # does not support 64-bit. 9210 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9211 9212 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9213echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9214 for v in CFLAGS CPPFLAGS LDFLAGS; do 9215 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9216 done 9217fi 9218 9219 9220fi 9221 9222 ;; 9223 OS/390-*) 9224 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9225 9226cat >>confdefs.h <<\_ACEOF 9227#define _OE_SOCKETS 1 9228_ACEOF 9229 9230 ;; 9231 OSF1-V*) 9232 # Digital OSF/1 9233 SHLIB_CFLAGS="" 9234 if test "$SHARED_BUILD" = 1; then 9235 9236 SHLIB_LD='ld -shared -expect_unresolved "*"' 9237 9238else 9239 9240 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9241 9242fi 9243 9244 SHLIB_SUFFIX=".so" 9245 if test $doRpath = yes; then 9246 9247 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9248 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9249fi 9250 9251 if test "$GCC" = yes; then 9252 CFLAGS="$CFLAGS -mieee" 9253else 9254 9255 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9256fi 9257 9258 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9259 if test "${TCL_THREADS}" = 1; then 9260 9261 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9262 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9263 LIBS=`echo $LIBS | sed s/-lpthreads//` 9264 if test "$GCC" = yes; then 9265 9266 LIBS="$LIBS -lpthread -lmach -lexc" 9267 9268else 9269 9270 CFLAGS="$CFLAGS -pthread" 9271 LDFLAGS="$LDFLAGS -pthread" 9272 9273fi 9274 9275 9276fi 9277 9278 ;; 9279 QNX-6*) 9280 # QNX RTP 9281 # This may work for all QNX, but it was only reported for v6. 9282 SHLIB_CFLAGS="-fPIC" 9283 SHLIB_LD="ld -Bshareable -x" 9284 SHLIB_LD_LIBS="" 9285 SHLIB_SUFFIX=".so" 9286 CC_SEARCH_FLAGS="" 9287 LD_SEARCH_FLAGS="" 9288 ;; 9289 SCO_SV-3.2*) 9290 if test "$GCC" = yes; then 9291 9292 SHLIB_CFLAGS="-fPIC -melf" 9293 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9294 9295else 9296 9297 SHLIB_CFLAGS="-Kpic -belf" 9298 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9299 9300fi 9301 9302 SHLIB_LD="ld -G" 9303 SHLIB_LD_LIBS="" 9304 SHLIB_SUFFIX=".so" 9305 CC_SEARCH_FLAGS="" 9306 LD_SEARCH_FLAGS="" 9307 ;; 9308 SunOS-5.[0-6]) 9309 # Careful to not let 5.10+ fall into this case 9310 9311 # Note: If _REENTRANT isn't defined, then Solaris 9312 # won't define thread-safe library routines. 9313 9314 9315cat >>confdefs.h <<\_ACEOF 9316#define _REENTRANT 1 9317_ACEOF 9318 9319 9320cat >>confdefs.h <<\_ACEOF 9321#define _POSIX_PTHREAD_SEMANTICS 1 9322_ACEOF 9323 9324 9325 SHLIB_CFLAGS="-KPIC" 9326 SHLIB_SUFFIX=".so" 9327 if test "$GCC" = yes; then 9328 9329 SHLIB_LD='${CC} -shared' 9330 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9331 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9332 9333else 9334 9335 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9336 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9337 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9338 9339fi 9340 9341 ;; 9342 SunOS-5*) 9343 # Note: If _REENTRANT isn't defined, then Solaris 9344 # won't define thread-safe library routines. 9345 9346 9347cat >>confdefs.h <<\_ACEOF 9348#define _REENTRANT 1 9349_ACEOF 9350 9351 9352cat >>confdefs.h <<\_ACEOF 9353#define _POSIX_PTHREAD_SEMANTICS 1 9354_ACEOF 9355 9356 9357 SHLIB_CFLAGS="-KPIC" 9358 9359 # Check to enable 64-bit flags for compiler/linker 9360 if test "$do64bit" = yes; then 9361 9362 arch=`isainfo` 9363 if test "$arch" = "sparcv9 sparc"; then 9364 9365 if test "$GCC" = yes; then 9366 9367 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9368 9369 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9370echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9371 9372else 9373 9374 do64bit_ok=yes 9375 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9376 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9377 SHLIB_CFLAGS="-fPIC" 9378 9379fi 9380 9381 9382else 9383 9384 do64bit_ok=yes 9385 if test "$do64bitVIS" = yes; then 9386 9387 CFLAGS="$CFLAGS -xarch=v9a" 9388 LDFLAGS_ARCH="-xarch=v9a" 9389 9390else 9391 9392 CFLAGS="$CFLAGS -xarch=v9" 9393 LDFLAGS_ARCH="-xarch=v9" 9394 9395fi 9396 9397 # Solaris 64 uses this as well 9398 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9399 9400fi 9401 9402 9403else 9404 if test "$arch" = "amd64 i386"; then 9405 9406 if test "$GCC" = yes; then 9407 9408 case $system in 9409 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9410 do64bit_ok=yes 9411 CFLAGS="$CFLAGS -m64" 9412 LDFLAGS="$LDFLAGS -m64";; 9413 *) 9414 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9415echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9416 esac 9417 9418else 9419 9420 do64bit_ok=yes 9421 case $system in 9422 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9423 CFLAGS="$CFLAGS -m64" 9424 LDFLAGS="$LDFLAGS -m64";; 9425 *) 9426 CFLAGS="$CFLAGS -xarch=amd64" 9427 LDFLAGS="$LDFLAGS -xarch=amd64";; 9428 esac 9429 9430fi 9431 9432 9433else 9434 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9435echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9436fi 9437 9438fi 9439 9440 9441fi 9442 9443 9444 SHLIB_SUFFIX=".so" 9445 if test "$GCC" = yes; then 9446 9447 SHLIB_LD='${CC} -shared' 9448 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9449 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9450 if test "$do64bit_ok" = yes; then 9451 9452 if test "$arch" = "sparcv9 sparc"; then 9453 9454 # We need to specify -static-libgcc or we need to 9455 # add the path to the sparv9 libgcc. 9456 # JH: static-libgcc is necessary for core Tcl, but may 9457 # not be necessary for extensions. 9458 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9459 # for finding sparcv9 libgcc, get the regular libgcc 9460 # path, remove so name and append 'sparcv9' 9461 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9462 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9463 9464else 9465 if test "$arch" = "amd64 i386"; then 9466 9467 # JH: static-libgcc is necessary for core Tcl, but may 9468 # not be necessary for extensions. 9469 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9470 9471fi 9472 9473fi 9474 9475 9476fi 9477 9478 9479else 9480 9481 case $system in 9482 SunOS-5.[1-9][0-9]*) 9483 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9484 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9485 *) 9486 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9487 esac 9488 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9489 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9490 9491fi 9492 9493 ;; 9494 esac 9495 9496 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9497 9498 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9499echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9500 9501fi 9502 9503 9504 9505 9506 # Add in the arch flags late to ensure it wasn't removed. 9507 # Not necessary in TEA, but this is aligned with core 9508 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9509 9510 # If we're running gcc, then change the C flags for compiling shared 9511 # libraries to the right flags for gcc, instead of those for the 9512 # standard manufacturer compiler. 9513 9514 if test "$GCC" = yes; then 9515 9516 case $system in 9517 AIX-*) ;; 9518 BSD/OS*) ;; 9519 CYGWIN_*) ;; 9520 IRIX*) ;; 9521 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 9522 Darwin-*) ;; 9523 SCO_SV-3.2*) ;; 9524 windows) ;; 9525 *) SHLIB_CFLAGS="-fPIC" ;; 9526 esac 9527fi 9528 9529 9530 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9531 9532 9533cat >>confdefs.h <<\_ACEOF 9534#define MODULE_SCOPE extern 9535_ACEOF 9536 9537 9538cat >>confdefs.h <<\_ACEOF 9539#define NO_VIZ 9540_ACEOF 9541 9542 9543fi 9544 9545 9546 if test "$SHARED_LIB_SUFFIX" = ""; then 9547 9548 # TEA specific: use PACKAGE_VERSION instead of VERSION 9549 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9550fi 9551 9552 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9553 9554 # TEA specific: use PACKAGE_VERSION instead of VERSION 9555 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9556fi 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 # These must be called after we do the basic CFLAGS checks and 9572 # verify any possible 64-bit or similar switches are necessary 9573 9574 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9575echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 9576 tcl_flags="" 9577 9578 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9579 echo $ECHO_N "(cached) $ECHO_C" >&6 9580else 9581 cat >conftest.$ac_ext <<_ACEOF 9582/* confdefs.h. */ 9583_ACEOF 9584cat confdefs.h >>conftest.$ac_ext 9585cat >>conftest.$ac_ext <<_ACEOF 9586/* end confdefs.h. */ 9587#include <stdlib.h> 9588int 9589main () 9590{ 9591char *p = (char *)strtoll; char *q = (char *)strtoull; 9592 ; 9593 return 0; 9594} 9595_ACEOF 9596rm -f conftest.$ac_objext 9597if { (ac_try="$ac_compile" 9598case "(($ac_try" in 9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9600 *) ac_try_echo=$ac_try;; 9601esac 9602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9603 (eval "$ac_compile") 2>conftest.er1 9604 ac_status=$? 9605 grep -v '^ *+' conftest.er1 >conftest.err 9606 rm -f conftest.er1 9607 cat conftest.err >&5 9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9609 (exit $ac_status); } && { 9610 test -z "$ac_c_werror_flag" || 9611 test ! -s conftest.err 9612 } && test -s conftest.$ac_objext; then 9613 tcl_cv_flag__isoc99_source=no 9614else 9615 echo "$as_me: failed program was:" >&5 9616sed 's/^/| /' conftest.$ac_ext >&5 9617 9618 cat >conftest.$ac_ext <<_ACEOF 9619/* confdefs.h. */ 9620_ACEOF 9621cat confdefs.h >>conftest.$ac_ext 9622cat >>conftest.$ac_ext <<_ACEOF 9623/* end confdefs.h. */ 9624#define _ISOC99_SOURCE 1 9625#include <stdlib.h> 9626int 9627main () 9628{ 9629char *p = (char *)strtoll; char *q = (char *)strtoull; 9630 ; 9631 return 0; 9632} 9633_ACEOF 9634rm -f conftest.$ac_objext 9635if { (ac_try="$ac_compile" 9636case "(($ac_try" in 9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9638 *) ac_try_echo=$ac_try;; 9639esac 9640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9641 (eval "$ac_compile") 2>conftest.er1 9642 ac_status=$? 9643 grep -v '^ *+' conftest.er1 >conftest.err 9644 rm -f conftest.er1 9645 cat conftest.err >&5 9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9647 (exit $ac_status); } && { 9648 test -z "$ac_c_werror_flag" || 9649 test ! -s conftest.err 9650 } && test -s conftest.$ac_objext; then 9651 tcl_cv_flag__isoc99_source=yes 9652else 9653 echo "$as_me: failed program was:" >&5 9654sed 's/^/| /' conftest.$ac_ext >&5 9655 9656 tcl_cv_flag__isoc99_source=no 9657fi 9658 9659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9660fi 9661 9662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9663fi 9664 9665 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9666 9667cat >>confdefs.h <<\_ACEOF 9668#define _ISOC99_SOURCE 1 9669_ACEOF 9670 9671 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9672 fi 9673 9674 9675 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9676 echo $ECHO_N "(cached) $ECHO_C" >&6 9677else 9678 cat >conftest.$ac_ext <<_ACEOF 9679/* confdefs.h. */ 9680_ACEOF 9681cat confdefs.h >>conftest.$ac_ext 9682cat >>conftest.$ac_ext <<_ACEOF 9683/* end confdefs.h. */ 9684#include <sys/stat.h> 9685int 9686main () 9687{ 9688struct stat64 buf; int i = stat64("/", &buf); 9689 ; 9690 return 0; 9691} 9692_ACEOF 9693rm -f conftest.$ac_objext 9694if { (ac_try="$ac_compile" 9695case "(($ac_try" in 9696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9697 *) ac_try_echo=$ac_try;; 9698esac 9699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9700 (eval "$ac_compile") 2>conftest.er1 9701 ac_status=$? 9702 grep -v '^ *+' conftest.er1 >conftest.err 9703 rm -f conftest.er1 9704 cat conftest.err >&5 9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9706 (exit $ac_status); } && { 9707 test -z "$ac_c_werror_flag" || 9708 test ! -s conftest.err 9709 } && test -s conftest.$ac_objext; then 9710 tcl_cv_flag__largefile64_source=no 9711else 9712 echo "$as_me: failed program was:" >&5 9713sed 's/^/| /' conftest.$ac_ext >&5 9714 9715 cat >conftest.$ac_ext <<_ACEOF 9716/* confdefs.h. */ 9717_ACEOF 9718cat confdefs.h >>conftest.$ac_ext 9719cat >>conftest.$ac_ext <<_ACEOF 9720/* end confdefs.h. */ 9721#define _LARGEFILE64_SOURCE 1 9722#include <sys/stat.h> 9723int 9724main () 9725{ 9726struct stat64 buf; int i = stat64("/", &buf); 9727 ; 9728 return 0; 9729} 9730_ACEOF 9731rm -f conftest.$ac_objext 9732if { (ac_try="$ac_compile" 9733case "(($ac_try" in 9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9735 *) ac_try_echo=$ac_try;; 9736esac 9737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9738 (eval "$ac_compile") 2>conftest.er1 9739 ac_status=$? 9740 grep -v '^ *+' conftest.er1 >conftest.err 9741 rm -f conftest.er1 9742 cat conftest.err >&5 9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9744 (exit $ac_status); } && { 9745 test -z "$ac_c_werror_flag" || 9746 test ! -s conftest.err 9747 } && test -s conftest.$ac_objext; then 9748 tcl_cv_flag__largefile64_source=yes 9749else 9750 echo "$as_me: failed program was:" >&5 9751sed 's/^/| /' conftest.$ac_ext >&5 9752 9753 tcl_cv_flag__largefile64_source=no 9754fi 9755 9756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9757fi 9758 9759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9760fi 9761 9762 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9763 9764cat >>confdefs.h <<\_ACEOF 9765#define _LARGEFILE64_SOURCE 1 9766_ACEOF 9767 9768 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9769 fi 9770 9771 9772 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9773 echo $ECHO_N "(cached) $ECHO_C" >&6 9774else 9775 cat >conftest.$ac_ext <<_ACEOF 9776/* confdefs.h. */ 9777_ACEOF 9778cat confdefs.h >>conftest.$ac_ext 9779cat >>conftest.$ac_ext <<_ACEOF 9780/* end confdefs.h. */ 9781#include <sys/stat.h> 9782int 9783main () 9784{ 9785char *p = (char *)open64; 9786 ; 9787 return 0; 9788} 9789_ACEOF 9790rm -f conftest.$ac_objext 9791if { (ac_try="$ac_compile" 9792case "(($ac_try" in 9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9794 *) ac_try_echo=$ac_try;; 9795esac 9796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9797 (eval "$ac_compile") 2>conftest.er1 9798 ac_status=$? 9799 grep -v '^ *+' conftest.er1 >conftest.err 9800 rm -f conftest.er1 9801 cat conftest.err >&5 9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9803 (exit $ac_status); } && { 9804 test -z "$ac_c_werror_flag" || 9805 test ! -s conftest.err 9806 } && test -s conftest.$ac_objext; then 9807 tcl_cv_flag__largefile_source64=no 9808else 9809 echo "$as_me: failed program was:" >&5 9810sed 's/^/| /' conftest.$ac_ext >&5 9811 9812 cat >conftest.$ac_ext <<_ACEOF 9813/* confdefs.h. */ 9814_ACEOF 9815cat confdefs.h >>conftest.$ac_ext 9816cat >>conftest.$ac_ext <<_ACEOF 9817/* end confdefs.h. */ 9818#define _LARGEFILE_SOURCE64 1 9819#include <sys/stat.h> 9820int 9821main () 9822{ 9823char *p = (char *)open64; 9824 ; 9825 return 0; 9826} 9827_ACEOF 9828rm -f conftest.$ac_objext 9829if { (ac_try="$ac_compile" 9830case "(($ac_try" in 9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9832 *) ac_try_echo=$ac_try;; 9833esac 9834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9835 (eval "$ac_compile") 2>conftest.er1 9836 ac_status=$? 9837 grep -v '^ *+' conftest.er1 >conftest.err 9838 rm -f conftest.er1 9839 cat conftest.err >&5 9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9841 (exit $ac_status); } && { 9842 test -z "$ac_c_werror_flag" || 9843 test ! -s conftest.err 9844 } && test -s conftest.$ac_objext; then 9845 tcl_cv_flag__largefile_source64=yes 9846else 9847 echo "$as_me: failed program was:" >&5 9848sed 's/^/| /' conftest.$ac_ext >&5 9849 9850 tcl_cv_flag__largefile_source64=no 9851fi 9852 9853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9854fi 9855 9856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9857fi 9858 9859 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9860 9861cat >>confdefs.h <<\_ACEOF 9862#define _LARGEFILE_SOURCE64 1 9863_ACEOF 9864 9865 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9866 fi 9867 9868 if test "x${tcl_flags}" = "x" ; then 9869 { echo "$as_me:$LINENO: result: none" >&5 9870echo "${ECHO_T}none" >&6; } 9871 else 9872 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9873echo "${ECHO_T}${tcl_flags}" >&6; } 9874 fi 9875 9876 9877 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9878echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 9879 if test "${tcl_cv_type_64bit+set}" = set; then 9880 echo $ECHO_N "(cached) $ECHO_C" >&6 9881else 9882 9883 tcl_cv_type_64bit=none 9884 # See if the compiler knows natively about __int64 9885 cat >conftest.$ac_ext <<_ACEOF 9886/* confdefs.h. */ 9887_ACEOF 9888cat confdefs.h >>conftest.$ac_ext 9889cat >>conftest.$ac_ext <<_ACEOF 9890/* end confdefs.h. */ 9891 9892int 9893main () 9894{ 9895__int64 value = (__int64) 0; 9896 ; 9897 return 0; 9898} 9899_ACEOF 9900rm -f conftest.$ac_objext 9901if { (ac_try="$ac_compile" 9902case "(($ac_try" in 9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9904 *) ac_try_echo=$ac_try;; 9905esac 9906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9907 (eval "$ac_compile") 2>conftest.er1 9908 ac_status=$? 9909 grep -v '^ *+' conftest.er1 >conftest.err 9910 rm -f conftest.er1 9911 cat conftest.err >&5 9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9913 (exit $ac_status); } && { 9914 test -z "$ac_c_werror_flag" || 9915 test ! -s conftest.err 9916 } && test -s conftest.$ac_objext; then 9917 tcl_type_64bit=__int64 9918else 9919 echo "$as_me: failed program was:" >&5 9920sed 's/^/| /' conftest.$ac_ext >&5 9921 9922 tcl_type_64bit="long long" 9923fi 9924 9925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9926 # See if we should use long anyway Note that we substitute in the 9927 # type that is our current guess for a 64-bit type inside this check 9928 # program, so it should be modified only carefully... 9929 cat >conftest.$ac_ext <<_ACEOF 9930/* confdefs.h. */ 9931_ACEOF 9932cat confdefs.h >>conftest.$ac_ext 9933cat >>conftest.$ac_ext <<_ACEOF 9934/* end confdefs.h. */ 9935 9936int 9937main () 9938{ 9939switch (0) { 9940 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9941 } 9942 ; 9943 return 0; 9944} 9945_ACEOF 9946rm -f conftest.$ac_objext 9947if { (ac_try="$ac_compile" 9948case "(($ac_try" in 9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9950 *) ac_try_echo=$ac_try;; 9951esac 9952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9953 (eval "$ac_compile") 2>conftest.er1 9954 ac_status=$? 9955 grep -v '^ *+' conftest.er1 >conftest.err 9956 rm -f conftest.er1 9957 cat conftest.err >&5 9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9959 (exit $ac_status); } && { 9960 test -z "$ac_c_werror_flag" || 9961 test ! -s conftest.err 9962 } && test -s conftest.$ac_objext; then 9963 tcl_cv_type_64bit=${tcl_type_64bit} 9964else 9965 echo "$as_me: failed program was:" >&5 9966sed 's/^/| /' conftest.$ac_ext >&5 9967 9968 9969fi 9970 9971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9972fi 9973 9974 if test "${tcl_cv_type_64bit}" = none ; then 9975 9976cat >>confdefs.h <<\_ACEOF 9977#define TCL_WIDE_INT_IS_LONG 1 9978_ACEOF 9979 9980 { echo "$as_me:$LINENO: result: using long" >&5 9981echo "${ECHO_T}using long" >&6; } 9982 elif test "${tcl_cv_type_64bit}" = "__int64" \ 9983 -a "${TEA_PLATFORM}" = "windows" ; then 9984 # TEA specific: We actually want to use the default tcl.h checks in 9985 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 9986 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 9987echo "${ECHO_T}using Tcl header defaults" >&6; } 9988 else 9989 9990cat >>confdefs.h <<_ACEOF 9991#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 9992_ACEOF 9993 9994 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 9995echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 9996 9997 # Now check for auxiliary declarations 9998 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 9999echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 10000if test "${tcl_cv_struct_dirent64+set}" = set; then 10001 echo $ECHO_N "(cached) $ECHO_C" >&6 10002else 10003 10004 cat >conftest.$ac_ext <<_ACEOF 10005/* confdefs.h. */ 10006_ACEOF 10007cat confdefs.h >>conftest.$ac_ext 10008cat >>conftest.$ac_ext <<_ACEOF 10009/* end confdefs.h. */ 10010#include <sys/types.h> 10011#include <sys/dirent.h> 10012int 10013main () 10014{ 10015struct dirent64 p; 10016 ; 10017 return 0; 10018} 10019_ACEOF 10020rm -f conftest.$ac_objext 10021if { (ac_try="$ac_compile" 10022case "(($ac_try" in 10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10024 *) ac_try_echo=$ac_try;; 10025esac 10026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10027 (eval "$ac_compile") 2>conftest.er1 10028 ac_status=$? 10029 grep -v '^ *+' conftest.er1 >conftest.err 10030 rm -f conftest.er1 10031 cat conftest.err >&5 10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10033 (exit $ac_status); } && { 10034 test -z "$ac_c_werror_flag" || 10035 test ! -s conftest.err 10036 } && test -s conftest.$ac_objext; then 10037 tcl_cv_struct_dirent64=yes 10038else 10039 echo "$as_me: failed program was:" >&5 10040sed 's/^/| /' conftest.$ac_ext >&5 10041 10042 tcl_cv_struct_dirent64=no 10043fi 10044 10045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10046fi 10047{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10048echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 10049 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10050 10051cat >>confdefs.h <<\_ACEOF 10052#define HAVE_STRUCT_DIRENT64 1 10053_ACEOF 10054 10055 fi 10056 10057 { echo "$as_me:$LINENO: checking for struct stat64" >&5 10058echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 10059if test "${tcl_cv_struct_stat64+set}" = set; then 10060 echo $ECHO_N "(cached) $ECHO_C" >&6 10061else 10062 10063 cat >conftest.$ac_ext <<_ACEOF 10064/* confdefs.h. */ 10065_ACEOF 10066cat confdefs.h >>conftest.$ac_ext 10067cat >>conftest.$ac_ext <<_ACEOF 10068/* end confdefs.h. */ 10069#include <sys/stat.h> 10070int 10071main () 10072{ 10073struct stat64 p; 10074 10075 ; 10076 return 0; 10077} 10078_ACEOF 10079rm -f conftest.$ac_objext 10080if { (ac_try="$ac_compile" 10081case "(($ac_try" in 10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10083 *) ac_try_echo=$ac_try;; 10084esac 10085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10086 (eval "$ac_compile") 2>conftest.er1 10087 ac_status=$? 10088 grep -v '^ *+' conftest.er1 >conftest.err 10089 rm -f conftest.er1 10090 cat conftest.err >&5 10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10092 (exit $ac_status); } && { 10093 test -z "$ac_c_werror_flag" || 10094 test ! -s conftest.err 10095 } && test -s conftest.$ac_objext; then 10096 tcl_cv_struct_stat64=yes 10097else 10098 echo "$as_me: failed program was:" >&5 10099sed 's/^/| /' conftest.$ac_ext >&5 10100 10101 tcl_cv_struct_stat64=no 10102fi 10103 10104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10105fi 10106{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10107echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10108 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10109 10110cat >>confdefs.h <<\_ACEOF 10111#define HAVE_STRUCT_STAT64 1 10112_ACEOF 10113 10114 fi 10115 10116 10117 10118for ac_func in open64 lseek64 10119do 10120as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10121{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10122echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10123if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10124 echo $ECHO_N "(cached) $ECHO_C" >&6 10125else 10126 cat >conftest.$ac_ext <<_ACEOF 10127/* confdefs.h. */ 10128_ACEOF 10129cat confdefs.h >>conftest.$ac_ext 10130cat >>conftest.$ac_ext <<_ACEOF 10131/* end confdefs.h. */ 10132/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10133 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10134#define $ac_func innocuous_$ac_func 10135 10136/* System header to define __stub macros and hopefully few prototypes, 10137 which can conflict with char $ac_func (); below. 10138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10139 <limits.h> exists even on freestanding compilers. */ 10140 10141#ifdef __STDC__ 10142# include <limits.h> 10143#else 10144# include <assert.h> 10145#endif 10146 10147#undef $ac_func 10148 10149/* Override any GCC internal prototype to avoid an error. 10150 Use char because int might match the return type of a GCC 10151 builtin and then its argument prototype would still apply. */ 10152#ifdef __cplusplus 10153extern "C" 10154#endif 10155char $ac_func (); 10156/* The GNU C library defines this for functions which it implements 10157 to always fail with ENOSYS. Some functions are actually named 10158 something starting with __ and the normal name is an alias. */ 10159#if defined __stub_$ac_func || defined __stub___$ac_func 10160choke me 10161#endif 10162 10163int 10164main () 10165{ 10166return $ac_func (); 10167 ; 10168 return 0; 10169} 10170_ACEOF 10171rm -f conftest.$ac_objext conftest$ac_exeext 10172if { (ac_try="$ac_link" 10173case "(($ac_try" in 10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10175 *) ac_try_echo=$ac_try;; 10176esac 10177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10178 (eval "$ac_link") 2>conftest.er1 10179 ac_status=$? 10180 grep -v '^ *+' conftest.er1 >conftest.err 10181 rm -f conftest.er1 10182 cat conftest.err >&5 10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10184 (exit $ac_status); } && { 10185 test -z "$ac_c_werror_flag" || 10186 test ! -s conftest.err 10187 } && test -s conftest$ac_exeext && 10188 $as_test_x conftest$ac_exeext; then 10189 eval "$as_ac_var=yes" 10190else 10191 echo "$as_me: failed program was:" >&5 10192sed 's/^/| /' conftest.$ac_ext >&5 10193 10194 eval "$as_ac_var=no" 10195fi 10196 10197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10198 conftest$ac_exeext conftest.$ac_ext 10199fi 10200ac_res=`eval echo '${'$as_ac_var'}'` 10201 { echo "$as_me:$LINENO: result: $ac_res" >&5 10202echo "${ECHO_T}$ac_res" >&6; } 10203if test `eval echo '${'$as_ac_var'}'` = yes; then 10204 cat >>confdefs.h <<_ACEOF 10205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10206_ACEOF 10207 10208fi 10209done 10210 10211 { echo "$as_me:$LINENO: checking for off64_t" >&5 10212echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10213 if test "${tcl_cv_type_off64_t+set}" = set; then 10214 echo $ECHO_N "(cached) $ECHO_C" >&6 10215else 10216 10217 cat >conftest.$ac_ext <<_ACEOF 10218/* confdefs.h. */ 10219_ACEOF 10220cat confdefs.h >>conftest.$ac_ext 10221cat >>conftest.$ac_ext <<_ACEOF 10222/* end confdefs.h. */ 10223#include <sys/types.h> 10224int 10225main () 10226{ 10227off64_t offset; 10228 10229 ; 10230 return 0; 10231} 10232_ACEOF 10233rm -f conftest.$ac_objext 10234if { (ac_try="$ac_compile" 10235case "(($ac_try" in 10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10237 *) ac_try_echo=$ac_try;; 10238esac 10239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10240 (eval "$ac_compile") 2>conftest.er1 10241 ac_status=$? 10242 grep -v '^ *+' conftest.er1 >conftest.err 10243 rm -f conftest.er1 10244 cat conftest.err >&5 10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10246 (exit $ac_status); } && { 10247 test -z "$ac_c_werror_flag" || 10248 test ! -s conftest.err 10249 } && test -s conftest.$ac_objext; then 10250 tcl_cv_type_off64_t=yes 10251else 10252 echo "$as_me: failed program was:" >&5 10253sed 's/^/| /' conftest.$ac_ext >&5 10254 10255 tcl_cv_type_off64_t=no 10256fi 10257 10258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10259fi 10260 10261 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10262 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10263 test "x${ac_cv_func_open64}" = "xyes" ; then 10264 10265cat >>confdefs.h <<\_ACEOF 10266#define HAVE_TYPE_OFF64_T 1 10267_ACEOF 10268 10269 { echo "$as_me:$LINENO: result: yes" >&5 10270echo "${ECHO_T}yes" >&6; } 10271 else 10272 { echo "$as_me:$LINENO: result: no" >&5 10273echo "${ECHO_T}no" >&6; } 10274 fi 10275 fi 10276 10277 10278 10279#-------------------------------------------------------------------- 10280# Set the default compiler switches based on the --enable-symbols option. 10281#-------------------------------------------------------------------- 10282 10283 10284 10285 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10286echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10287 # Check whether --enable-symbols was given. 10288if test "${enable_symbols+set}" = set; then 10289 enableval=$enable_symbols; tcl_ok=$enableval 10290else 10291 tcl_ok=no 10292fi 10293 10294 DBGX="" 10295 if test "$tcl_ok" = "no"; then 10296 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10297 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10298 { echo "$as_me:$LINENO: result: no" >&5 10299echo "${ECHO_T}no" >&6; } 10300 else 10301 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10302 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10303 if test "$tcl_ok" = "yes"; then 10304 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10305echo "${ECHO_T}yes (standard debugging)" >&6; } 10306 fi 10307 fi 10308 # TEA specific: 10309 if test "${TEA_PLATFORM}" != "windows" ; then 10310 LDFLAGS_DEFAULT="${LDFLAGS}" 10311 fi 10312 10313 10314 10315 10316 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10317 10318cat >>confdefs.h <<\_ACEOF 10319#define TCL_MEM_DEBUG 1 10320_ACEOF 10321 10322 fi 10323 10324 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10325 if test "$tcl_ok" = "all"; then 10326 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10327echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10328 else 10329 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10330echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10331 fi 10332 fi 10333 10334 10335#-------------------------------------------------------------------- 10336# Everyone should be linking against the Tcl stub library. If you 10337# can't for some reason, remove this definition. If you aren't using 10338# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10339# link against the non-stubbed Tcl library. Add Tk too if necessary. 10340#-------------------------------------------------------------------- 10341 10342cat >>confdefs.h <<\_ACEOF 10343#define USE_TCL_STUBS 1 10344_ACEOF 10345 10346 10347#-------------------------------------------------------------------- 10348# START Special case checks 10349#-------------------------------------------------------------------- 10350 10351if test "${TEA_PLATFORM}" = "unix" ; then 10352 #------------------------------------------------------------------------- 10353 # Check for system header files. 10354 #------------------------------------------------------------------------- 10355 10356 if test "${ac_cv_header_sys_select_h+set}" = set; then 10357 { echo "$as_me:$LINENO: checking for sys/select.h" >&5 10358echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } 10359if test "${ac_cv_header_sys_select_h+set}" = set; then 10360 echo $ECHO_N "(cached) $ECHO_C" >&6 10361fi 10362{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 10363echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } 10364else 10365 # Is the header compilable? 10366{ echo "$as_me:$LINENO: checking sys/select.h usability" >&5 10367echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; } 10368cat >conftest.$ac_ext <<_ACEOF 10369/* confdefs.h. */ 10370_ACEOF 10371cat confdefs.h >>conftest.$ac_ext 10372cat >>conftest.$ac_ext <<_ACEOF 10373/* end confdefs.h. */ 10374$ac_includes_default 10375#include <sys/select.h> 10376_ACEOF 10377rm -f conftest.$ac_objext 10378if { (ac_try="$ac_compile" 10379case "(($ac_try" in 10380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10381 *) ac_try_echo=$ac_try;; 10382esac 10383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10384 (eval "$ac_compile") 2>conftest.er1 10385 ac_status=$? 10386 grep -v '^ *+' conftest.er1 >conftest.err 10387 rm -f conftest.er1 10388 cat conftest.err >&5 10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10390 (exit $ac_status); } && { 10391 test -z "$ac_c_werror_flag" || 10392 test ! -s conftest.err 10393 } && test -s conftest.$ac_objext; then 10394 ac_header_compiler=yes 10395else 10396 echo "$as_me: failed program was:" >&5 10397sed 's/^/| /' conftest.$ac_ext >&5 10398 10399 ac_header_compiler=no 10400fi 10401 10402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10403{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10404echo "${ECHO_T}$ac_header_compiler" >&6; } 10405 10406# Is the header present? 10407{ echo "$as_me:$LINENO: checking sys/select.h presence" >&5 10408echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; } 10409cat >conftest.$ac_ext <<_ACEOF 10410/* confdefs.h. */ 10411_ACEOF 10412cat confdefs.h >>conftest.$ac_ext 10413cat >>conftest.$ac_ext <<_ACEOF 10414/* end confdefs.h. */ 10415#include <sys/select.h> 10416_ACEOF 10417if { (ac_try="$ac_cpp conftest.$ac_ext" 10418case "(($ac_try" in 10419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10420 *) ac_try_echo=$ac_try;; 10421esac 10422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10424 ac_status=$? 10425 grep -v '^ *+' conftest.er1 >conftest.err 10426 rm -f conftest.er1 10427 cat conftest.err >&5 10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10429 (exit $ac_status); } >/dev/null && { 10430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10431 test ! -s conftest.err 10432 }; then 10433 ac_header_preproc=yes 10434else 10435 echo "$as_me: failed program was:" >&5 10436sed 's/^/| /' conftest.$ac_ext >&5 10437 10438 ac_header_preproc=no 10439fi 10440 10441rm -f conftest.err conftest.$ac_ext 10442{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10443echo "${ECHO_T}$ac_header_preproc" >&6; } 10444 10445# So? What about this header? 10446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10447 yes:no: ) 10448 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5 10449echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10450 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5 10451echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;} 10452 ac_header_preproc=yes 10453 ;; 10454 no:yes:* ) 10455 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5 10456echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;} 10457 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5 10458echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;} 10459 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5 10460echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;} 10461 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5 10462echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;} 10463 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5 10464echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;} 10465 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5 10466echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;} 10467 10468 ;; 10469esac 10470{ echo "$as_me:$LINENO: checking for sys/select.h" >&5 10471echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } 10472if test "${ac_cv_header_sys_select_h+set}" = set; then 10473 echo $ECHO_N "(cached) $ECHO_C" >&6 10474else 10475 ac_cv_header_sys_select_h=$ac_header_preproc 10476fi 10477{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 10478echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } 10479 10480fi 10481if test $ac_cv_header_sys_select_h = yes; then 10482 cat >>confdefs.h <<\_ACEOF 10483#define HAVE_SYS_SELECT_H 1 10484_ACEOF 10485 10486fi 10487 10488 10489 10490 #------------------------------------------------------------------------- 10491 # What type do signals return? 10492 #------------------------------------------------------------------------- 10493 10494 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 10495echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 10496if test "${ac_cv_type_signal+set}" = set; then 10497 echo $ECHO_N "(cached) $ECHO_C" >&6 10498else 10499 cat >conftest.$ac_ext <<_ACEOF 10500/* confdefs.h. */ 10501_ACEOF 10502cat confdefs.h >>conftest.$ac_ext 10503cat >>conftest.$ac_ext <<_ACEOF 10504/* end confdefs.h. */ 10505#include <sys/types.h> 10506#include <signal.h> 10507 10508int 10509main () 10510{ 10511return *(signal (0, 0)) (0) == 1; 10512 ; 10513 return 0; 10514} 10515_ACEOF 10516rm -f conftest.$ac_objext 10517if { (ac_try="$ac_compile" 10518case "(($ac_try" in 10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10520 *) ac_try_echo=$ac_try;; 10521esac 10522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10523 (eval "$ac_compile") 2>conftest.er1 10524 ac_status=$? 10525 grep -v '^ *+' conftest.er1 >conftest.err 10526 rm -f conftest.er1 10527 cat conftest.err >&5 10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10529 (exit $ac_status); } && { 10530 test -z "$ac_c_werror_flag" || 10531 test ! -s conftest.err 10532 } && test -s conftest.$ac_objext; then 10533 ac_cv_type_signal=int 10534else 10535 echo "$as_me: failed program was:" >&5 10536sed 's/^/| /' conftest.$ac_ext >&5 10537 10538 ac_cv_type_signal=void 10539fi 10540 10541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10542fi 10543{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 10544echo "${ECHO_T}$ac_cv_type_signal" >&6; } 10545 10546cat >>confdefs.h <<_ACEOF 10547#define RETSIGTYPE $ac_cv_type_signal 10548_ACEOF 10549 10550 10551 10552 #------------------------------------------------------------------------- 10553 # Find out all about time handling differences. 10554 #------------------------------------------------------------------------- 10555 10556 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 10557echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 10558if test "${ac_cv_struct_tm+set}" = set; then 10559 echo $ECHO_N "(cached) $ECHO_C" >&6 10560else 10561 cat >conftest.$ac_ext <<_ACEOF 10562/* confdefs.h. */ 10563_ACEOF 10564cat confdefs.h >>conftest.$ac_ext 10565cat >>conftest.$ac_ext <<_ACEOF 10566/* end confdefs.h. */ 10567#include <sys/types.h> 10568#include <time.h> 10569 10570int 10571main () 10572{ 10573struct tm tm; 10574 int *p = &tm.tm_sec; 10575 return !p; 10576 ; 10577 return 0; 10578} 10579_ACEOF 10580rm -f conftest.$ac_objext 10581if { (ac_try="$ac_compile" 10582case "(($ac_try" in 10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10584 *) ac_try_echo=$ac_try;; 10585esac 10586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10587 (eval "$ac_compile") 2>conftest.er1 10588 ac_status=$? 10589 grep -v '^ *+' conftest.er1 >conftest.err 10590 rm -f conftest.er1 10591 cat conftest.err >&5 10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10593 (exit $ac_status); } && { 10594 test -z "$ac_c_werror_flag" || 10595 test ! -s conftest.err 10596 } && test -s conftest.$ac_objext; then 10597 ac_cv_struct_tm=time.h 10598else 10599 echo "$as_me: failed program was:" >&5 10600sed 's/^/| /' conftest.$ac_ext >&5 10601 10602 ac_cv_struct_tm=sys/time.h 10603fi 10604 10605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10606fi 10607{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 10608echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 10609if test $ac_cv_struct_tm = sys/time.h; then 10610 10611cat >>confdefs.h <<\_ACEOF 10612#define TM_IN_SYS_TIME 1 10613_ACEOF 10614 10615fi 10616 10617 10618 10619for ac_header in sys/time.h 10620do 10621as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10623 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10624echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10625if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10626 echo $ECHO_N "(cached) $ECHO_C" >&6 10627fi 10628ac_res=`eval echo '${'$as_ac_Header'}'` 10629 { echo "$as_me:$LINENO: result: $ac_res" >&5 10630echo "${ECHO_T}$ac_res" >&6; } 10631else 10632 # Is the header compilable? 10633{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10634echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10635cat >conftest.$ac_ext <<_ACEOF 10636/* confdefs.h. */ 10637_ACEOF 10638cat confdefs.h >>conftest.$ac_ext 10639cat >>conftest.$ac_ext <<_ACEOF 10640/* end confdefs.h. */ 10641$ac_includes_default 10642#include <$ac_header> 10643_ACEOF 10644rm -f conftest.$ac_objext 10645if { (ac_try="$ac_compile" 10646case "(($ac_try" in 10647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10648 *) ac_try_echo=$ac_try;; 10649esac 10650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10651 (eval "$ac_compile") 2>conftest.er1 10652 ac_status=$? 10653 grep -v '^ *+' conftest.er1 >conftest.err 10654 rm -f conftest.er1 10655 cat conftest.err >&5 10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10657 (exit $ac_status); } && { 10658 test -z "$ac_c_werror_flag" || 10659 test ! -s conftest.err 10660 } && test -s conftest.$ac_objext; then 10661 ac_header_compiler=yes 10662else 10663 echo "$as_me: failed program was:" >&5 10664sed 's/^/| /' conftest.$ac_ext >&5 10665 10666 ac_header_compiler=no 10667fi 10668 10669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10670{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10671echo "${ECHO_T}$ac_header_compiler" >&6; } 10672 10673# Is the header present? 10674{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10675echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10676cat >conftest.$ac_ext <<_ACEOF 10677/* confdefs.h. */ 10678_ACEOF 10679cat confdefs.h >>conftest.$ac_ext 10680cat >>conftest.$ac_ext <<_ACEOF 10681/* end confdefs.h. */ 10682#include <$ac_header> 10683_ACEOF 10684if { (ac_try="$ac_cpp conftest.$ac_ext" 10685case "(($ac_try" in 10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10687 *) ac_try_echo=$ac_try;; 10688esac 10689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10691 ac_status=$? 10692 grep -v '^ *+' conftest.er1 >conftest.err 10693 rm -f conftest.er1 10694 cat conftest.err >&5 10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10696 (exit $ac_status); } >/dev/null && { 10697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10698 test ! -s conftest.err 10699 }; then 10700 ac_header_preproc=yes 10701else 10702 echo "$as_me: failed program was:" >&5 10703sed 's/^/| /' conftest.$ac_ext >&5 10704 10705 ac_header_preproc=no 10706fi 10707 10708rm -f conftest.err conftest.$ac_ext 10709{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10710echo "${ECHO_T}$ac_header_preproc" >&6; } 10711 10712# So? What about this header? 10713case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10714 yes:no: ) 10715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10716echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10718echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10719 ac_header_preproc=yes 10720 ;; 10721 no:yes:* ) 10722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10723echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10725echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10727echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10729echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10731echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10733echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10734 10735 ;; 10736esac 10737{ echo "$as_me:$LINENO: checking for $ac_header" >&5 10738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10740 echo $ECHO_N "(cached) $ECHO_C" >&6 10741else 10742 eval "$as_ac_Header=\$ac_header_preproc" 10743fi 10744ac_res=`eval echo '${'$as_ac_Header'}'` 10745 { echo "$as_me:$LINENO: result: $ac_res" >&5 10746echo "${ECHO_T}$ac_res" >&6; } 10747 10748fi 10749if test `eval echo '${'$as_ac_Header'}'` = yes; then 10750 cat >>confdefs.h <<_ACEOF 10751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10752_ACEOF 10753 10754fi 10755 10756done 10757 10758 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 10759echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 10760if test "${ac_cv_header_time+set}" = set; then 10761 echo $ECHO_N "(cached) $ECHO_C" >&6 10762else 10763 cat >conftest.$ac_ext <<_ACEOF 10764/* confdefs.h. */ 10765_ACEOF 10766cat confdefs.h >>conftest.$ac_ext 10767cat >>conftest.$ac_ext <<_ACEOF 10768/* end confdefs.h. */ 10769#include <sys/types.h> 10770#include <sys/time.h> 10771#include <time.h> 10772 10773int 10774main () 10775{ 10776if ((struct tm *) 0) 10777return 0; 10778 ; 10779 return 0; 10780} 10781_ACEOF 10782rm -f conftest.$ac_objext 10783if { (ac_try="$ac_compile" 10784case "(($ac_try" in 10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10786 *) ac_try_echo=$ac_try;; 10787esac 10788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10789 (eval "$ac_compile") 2>conftest.er1 10790 ac_status=$? 10791 grep -v '^ *+' conftest.er1 >conftest.err 10792 rm -f conftest.er1 10793 cat conftest.err >&5 10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10795 (exit $ac_status); } && { 10796 test -z "$ac_c_werror_flag" || 10797 test ! -s conftest.err 10798 } && test -s conftest.$ac_objext; then 10799 ac_cv_header_time=yes 10800else 10801 echo "$as_me: failed program was:" >&5 10802sed 's/^/| /' conftest.$ac_ext >&5 10803 10804 ac_cv_header_time=no 10805fi 10806 10807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10808fi 10809{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 10810echo "${ECHO_T}$ac_cv_header_time" >&6; } 10811if test $ac_cv_header_time = yes; then 10812 10813cat >>confdefs.h <<\_ACEOF 10814#define TIME_WITH_SYS_TIME 1 10815_ACEOF 10816 10817fi 10818 10819 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 10820echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } 10821if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then 10822 echo $ECHO_N "(cached) $ECHO_C" >&6 10823else 10824 cat >conftest.$ac_ext <<_ACEOF 10825/* confdefs.h. */ 10826_ACEOF 10827cat confdefs.h >>conftest.$ac_ext 10828cat >>conftest.$ac_ext <<_ACEOF 10829/* end confdefs.h. */ 10830#include <sys/types.h> 10831#include <$ac_cv_struct_tm> 10832 10833 10834int 10835main () 10836{ 10837static struct tm ac_aggr; 10838if (ac_aggr.tm_zone) 10839return 0; 10840 ; 10841 return 0; 10842} 10843_ACEOF 10844rm -f conftest.$ac_objext 10845if { (ac_try="$ac_compile" 10846case "(($ac_try" in 10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10848 *) ac_try_echo=$ac_try;; 10849esac 10850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10851 (eval "$ac_compile") 2>conftest.er1 10852 ac_status=$? 10853 grep -v '^ *+' conftest.er1 >conftest.err 10854 rm -f conftest.er1 10855 cat conftest.err >&5 10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10857 (exit $ac_status); } && { 10858 test -z "$ac_c_werror_flag" || 10859 test ! -s conftest.err 10860 } && test -s conftest.$ac_objext; then 10861 ac_cv_member_struct_tm_tm_zone=yes 10862else 10863 echo "$as_me: failed program was:" >&5 10864sed 's/^/| /' conftest.$ac_ext >&5 10865 10866 cat >conftest.$ac_ext <<_ACEOF 10867/* confdefs.h. */ 10868_ACEOF 10869cat confdefs.h >>conftest.$ac_ext 10870cat >>conftest.$ac_ext <<_ACEOF 10871/* end confdefs.h. */ 10872#include <sys/types.h> 10873#include <$ac_cv_struct_tm> 10874 10875 10876int 10877main () 10878{ 10879static struct tm ac_aggr; 10880if (sizeof ac_aggr.tm_zone) 10881return 0; 10882 ; 10883 return 0; 10884} 10885_ACEOF 10886rm -f conftest.$ac_objext 10887if { (ac_try="$ac_compile" 10888case "(($ac_try" in 10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10890 *) ac_try_echo=$ac_try;; 10891esac 10892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10893 (eval "$ac_compile") 2>conftest.er1 10894 ac_status=$? 10895 grep -v '^ *+' conftest.er1 >conftest.err 10896 rm -f conftest.er1 10897 cat conftest.err >&5 10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10899 (exit $ac_status); } && { 10900 test -z "$ac_c_werror_flag" || 10901 test ! -s conftest.err 10902 } && test -s conftest.$ac_objext; then 10903 ac_cv_member_struct_tm_tm_zone=yes 10904else 10905 echo "$as_me: failed program was:" >&5 10906sed 's/^/| /' conftest.$ac_ext >&5 10907 10908 ac_cv_member_struct_tm_tm_zone=no 10909fi 10910 10911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10912fi 10913 10914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10915fi 10916{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 10917echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } 10918if test $ac_cv_member_struct_tm_tm_zone = yes; then 10919 10920cat >>confdefs.h <<_ACEOF 10921#define HAVE_STRUCT_TM_TM_ZONE 1 10922_ACEOF 10923 10924 10925fi 10926 10927if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 10928 10929cat >>confdefs.h <<\_ACEOF 10930#define HAVE_TM_ZONE 1 10931_ACEOF 10932 10933else 10934 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 10935echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } 10936if test "${ac_cv_have_decl_tzname+set}" = set; then 10937 echo $ECHO_N "(cached) $ECHO_C" >&6 10938else 10939 cat >conftest.$ac_ext <<_ACEOF 10940/* confdefs.h. */ 10941_ACEOF 10942cat confdefs.h >>conftest.$ac_ext 10943cat >>conftest.$ac_ext <<_ACEOF 10944/* end confdefs.h. */ 10945#include <time.h> 10946 10947int 10948main () 10949{ 10950#ifndef tzname 10951 (void) tzname; 10952#endif 10953 10954 ; 10955 return 0; 10956} 10957_ACEOF 10958rm -f conftest.$ac_objext 10959if { (ac_try="$ac_compile" 10960case "(($ac_try" in 10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10962 *) ac_try_echo=$ac_try;; 10963esac 10964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10965 (eval "$ac_compile") 2>conftest.er1 10966 ac_status=$? 10967 grep -v '^ *+' conftest.er1 >conftest.err 10968 rm -f conftest.er1 10969 cat conftest.err >&5 10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10971 (exit $ac_status); } && { 10972 test -z "$ac_c_werror_flag" || 10973 test ! -s conftest.err 10974 } && test -s conftest.$ac_objext; then 10975 ac_cv_have_decl_tzname=yes 10976else 10977 echo "$as_me: failed program was:" >&5 10978sed 's/^/| /' conftest.$ac_ext >&5 10979 10980 ac_cv_have_decl_tzname=no 10981fi 10982 10983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10984fi 10985{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 10986echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } 10987if test $ac_cv_have_decl_tzname = yes; then 10988 10989cat >>confdefs.h <<_ACEOF 10990#define HAVE_DECL_TZNAME 1 10991_ACEOF 10992 10993 10994else 10995 cat >>confdefs.h <<_ACEOF 10996#define HAVE_DECL_TZNAME 0 10997_ACEOF 10998 10999 11000fi 11001 11002 11003 { echo "$as_me:$LINENO: checking for tzname" >&5 11004echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } 11005if test "${ac_cv_var_tzname+set}" = set; then 11006 echo $ECHO_N "(cached) $ECHO_C" >&6 11007else 11008 cat >conftest.$ac_ext <<_ACEOF 11009/* confdefs.h. */ 11010_ACEOF 11011cat confdefs.h >>conftest.$ac_ext 11012cat >>conftest.$ac_ext <<_ACEOF 11013/* end confdefs.h. */ 11014#include <time.h> 11015#if !HAVE_DECL_TZNAME 11016extern char *tzname[]; 11017#endif 11018 11019int 11020main () 11021{ 11022return tzname[0][0]; 11023 ; 11024 return 0; 11025} 11026_ACEOF 11027rm -f conftest.$ac_objext conftest$ac_exeext 11028if { (ac_try="$ac_link" 11029case "(($ac_try" in 11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11031 *) ac_try_echo=$ac_try;; 11032esac 11033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11034 (eval "$ac_link") 2>conftest.er1 11035 ac_status=$? 11036 grep -v '^ *+' conftest.er1 >conftest.err 11037 rm -f conftest.er1 11038 cat conftest.err >&5 11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11040 (exit $ac_status); } && { 11041 test -z "$ac_c_werror_flag" || 11042 test ! -s conftest.err 11043 } && test -s conftest$ac_exeext && 11044 $as_test_x conftest$ac_exeext; then 11045 ac_cv_var_tzname=yes 11046else 11047 echo "$as_me: failed program was:" >&5 11048sed 's/^/| /' conftest.$ac_ext >&5 11049 11050 ac_cv_var_tzname=no 11051fi 11052 11053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11054 conftest$ac_exeext conftest.$ac_ext 11055fi 11056{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 11057echo "${ECHO_T}$ac_cv_var_tzname" >&6; } 11058 if test $ac_cv_var_tzname = yes; then 11059 11060cat >>confdefs.h <<\_ACEOF 11061#define HAVE_TZNAME 1 11062_ACEOF 11063 11064 fi 11065fi 11066 11067 11068 11069 11070for ac_func in gmtime_r localtime_r 11071do 11072as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11073{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11074echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11075if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11076 echo $ECHO_N "(cached) $ECHO_C" >&6 11077else 11078 cat >conftest.$ac_ext <<_ACEOF 11079/* confdefs.h. */ 11080_ACEOF 11081cat confdefs.h >>conftest.$ac_ext 11082cat >>conftest.$ac_ext <<_ACEOF 11083/* end confdefs.h. */ 11084/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11085 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11086#define $ac_func innocuous_$ac_func 11087 11088/* System header to define __stub macros and hopefully few prototypes, 11089 which can conflict with char $ac_func (); below. 11090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11091 <limits.h> exists even on freestanding compilers. */ 11092 11093#ifdef __STDC__ 11094# include <limits.h> 11095#else 11096# include <assert.h> 11097#endif 11098 11099#undef $ac_func 11100 11101/* Override any GCC internal prototype to avoid an error. 11102 Use char because int might match the return type of a GCC 11103 builtin and then its argument prototype would still apply. */ 11104#ifdef __cplusplus 11105extern "C" 11106#endif 11107char $ac_func (); 11108/* The GNU C library defines this for functions which it implements 11109 to always fail with ENOSYS. Some functions are actually named 11110 something starting with __ and the normal name is an alias. */ 11111#if defined __stub_$ac_func || defined __stub___$ac_func 11112choke me 11113#endif 11114 11115int 11116main () 11117{ 11118return $ac_func (); 11119 ; 11120 return 0; 11121} 11122_ACEOF 11123rm -f conftest.$ac_objext conftest$ac_exeext 11124if { (ac_try="$ac_link" 11125case "(($ac_try" in 11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11127 *) ac_try_echo=$ac_try;; 11128esac 11129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11130 (eval "$ac_link") 2>conftest.er1 11131 ac_status=$? 11132 grep -v '^ *+' conftest.er1 >conftest.err 11133 rm -f conftest.er1 11134 cat conftest.err >&5 11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11136 (exit $ac_status); } && { 11137 test -z "$ac_c_werror_flag" || 11138 test ! -s conftest.err 11139 } && test -s conftest$ac_exeext && 11140 $as_test_x conftest$ac_exeext; then 11141 eval "$as_ac_var=yes" 11142else 11143 echo "$as_me: failed program was:" >&5 11144sed 's/^/| /' conftest.$ac_ext >&5 11145 11146 eval "$as_ac_var=no" 11147fi 11148 11149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11150 conftest$ac_exeext conftest.$ac_ext 11151fi 11152ac_res=`eval echo '${'$as_ac_var'}'` 11153 { echo "$as_me:$LINENO: result: $ac_res" >&5 11154echo "${ECHO_T}$ac_res" >&6; } 11155if test `eval echo '${'$as_ac_var'}'` = yes; then 11156 cat >>confdefs.h <<_ACEOF 11157#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11158_ACEOF 11159 11160fi 11161done 11162 11163 11164 { echo "$as_me:$LINENO: checking tm_tzadj in struct tm" >&5 11165echo $ECHO_N "checking tm_tzadj in struct tm... $ECHO_C" >&6; } 11166if test "${tcl_cv_member_tm_tzadj+set}" = set; then 11167 echo $ECHO_N "(cached) $ECHO_C" >&6 11168else 11169 11170 cat >conftest.$ac_ext <<_ACEOF 11171/* confdefs.h. */ 11172_ACEOF 11173cat confdefs.h >>conftest.$ac_ext 11174cat >>conftest.$ac_ext <<_ACEOF 11175/* end confdefs.h. */ 11176#include <time.h> 11177int 11178main () 11179{ 11180struct tm tm; tm.tm_tzadj; 11181 ; 11182 return 0; 11183} 11184_ACEOF 11185rm -f conftest.$ac_objext 11186if { (ac_try="$ac_compile" 11187case "(($ac_try" in 11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11189 *) ac_try_echo=$ac_try;; 11190esac 11191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11192 (eval "$ac_compile") 2>conftest.er1 11193 ac_status=$? 11194 grep -v '^ *+' conftest.er1 >conftest.err 11195 rm -f conftest.er1 11196 cat conftest.err >&5 11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11198 (exit $ac_status); } && { 11199 test -z "$ac_c_werror_flag" || 11200 test ! -s conftest.err 11201 } && test -s conftest.$ac_objext; then 11202 tcl_cv_member_tm_tzadj=yes 11203else 11204 echo "$as_me: failed program was:" >&5 11205sed 's/^/| /' conftest.$ac_ext >&5 11206 11207 tcl_cv_member_tm_tzadj=no 11208fi 11209 11210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11211fi 11212{ echo "$as_me:$LINENO: result: $tcl_cv_member_tm_tzadj" >&5 11213echo "${ECHO_T}$tcl_cv_member_tm_tzadj" >&6; } 11214 if test $tcl_cv_member_tm_tzadj = yes ; then 11215 11216cat >>confdefs.h <<\_ACEOF 11217#define HAVE_TM_TZADJ 1 11218_ACEOF 11219 11220 fi 11221 11222 { echo "$as_me:$LINENO: checking tm_gmtoff in struct tm" >&5 11223echo $ECHO_N "checking tm_gmtoff in struct tm... $ECHO_C" >&6; } 11224if test "${tcl_cv_member_tm_gmtoff+set}" = set; then 11225 echo $ECHO_N "(cached) $ECHO_C" >&6 11226else 11227 11228 cat >conftest.$ac_ext <<_ACEOF 11229/* confdefs.h. */ 11230_ACEOF 11231cat confdefs.h >>conftest.$ac_ext 11232cat >>conftest.$ac_ext <<_ACEOF 11233/* end confdefs.h. */ 11234#include <time.h> 11235int 11236main () 11237{ 11238struct tm tm; tm.tm_gmtoff; 11239 ; 11240 return 0; 11241} 11242_ACEOF 11243rm -f conftest.$ac_objext 11244if { (ac_try="$ac_compile" 11245case "(($ac_try" in 11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11247 *) ac_try_echo=$ac_try;; 11248esac 11249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11250 (eval "$ac_compile") 2>conftest.er1 11251 ac_status=$? 11252 grep -v '^ *+' conftest.er1 >conftest.err 11253 rm -f conftest.er1 11254 cat conftest.err >&5 11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11256 (exit $ac_status); } && { 11257 test -z "$ac_c_werror_flag" || 11258 test ! -s conftest.err 11259 } && test -s conftest.$ac_objext; then 11260 tcl_cv_member_tm_gmtoff=yes 11261else 11262 echo "$as_me: failed program was:" >&5 11263sed 's/^/| /' conftest.$ac_ext >&5 11264 11265 tcl_cv_member_tm_gmtoff=no 11266fi 11267 11268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11269fi 11270{ echo "$as_me:$LINENO: result: $tcl_cv_member_tm_gmtoff" >&5 11271echo "${ECHO_T}$tcl_cv_member_tm_gmtoff" >&6; } 11272 if test $tcl_cv_member_tm_gmtoff = yes ; then 11273 11274cat >>confdefs.h <<\_ACEOF 11275#define HAVE_TM_GMTOFF 1 11276_ACEOF 11277 11278 fi 11279 11280 # 11281 # Its important to include time.h in this check, as some systems 11282 # (like convex) have timezone functions, etc. 11283 # 11284 { echo "$as_me:$LINENO: checking long timezone variable" >&5 11285echo $ECHO_N "checking long timezone variable... $ECHO_C" >&6; } 11286if test "${tcl_cv_timezone_long+set}" = set; then 11287 echo $ECHO_N "(cached) $ECHO_C" >&6 11288else 11289 11290 cat >conftest.$ac_ext <<_ACEOF 11291/* confdefs.h. */ 11292_ACEOF 11293cat confdefs.h >>conftest.$ac_ext 11294cat >>conftest.$ac_ext <<_ACEOF 11295/* end confdefs.h. */ 11296#include <time.h> 11297int 11298main () 11299{ 11300extern long timezone; 11301 timezone += 1; 11302 exit (0); 11303 ; 11304 return 0; 11305} 11306_ACEOF 11307rm -f conftest.$ac_objext 11308if { (ac_try="$ac_compile" 11309case "(($ac_try" in 11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11311 *) ac_try_echo=$ac_try;; 11312esac 11313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11314 (eval "$ac_compile") 2>conftest.er1 11315 ac_status=$? 11316 grep -v '^ *+' conftest.er1 >conftest.err 11317 rm -f conftest.er1 11318 cat conftest.err >&5 11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11320 (exit $ac_status); } && { 11321 test -z "$ac_c_werror_flag" || 11322 test ! -s conftest.err 11323 } && test -s conftest.$ac_objext; then 11324 tcl_cv_timezone_long=yes 11325else 11326 echo "$as_me: failed program was:" >&5 11327sed 's/^/| /' conftest.$ac_ext >&5 11328 11329 tcl_cv_timezone_long=no 11330fi 11331 11332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11333fi 11334{ echo "$as_me:$LINENO: result: $tcl_cv_timezone_long" >&5 11335echo "${ECHO_T}$tcl_cv_timezone_long" >&6; } 11336 if test $tcl_cv_timezone_long = yes ; then 11337 11338cat >>confdefs.h <<\_ACEOF 11339#define HAVE_TIMEZONE_VAR 1 11340_ACEOF 11341 11342 else 11343 # 11344 # On some systems (eg IRIX 6.2), timezone is a time_t and not a long. 11345 # 11346 { echo "$as_me:$LINENO: checking time_t timezone variable" >&5 11347echo $ECHO_N "checking time_t timezone variable... $ECHO_C" >&6; } 11348if test "${tcl_cv_timezone_time+set}" = set; then 11349 echo $ECHO_N "(cached) $ECHO_C" >&6 11350else 11351 11352 cat >conftest.$ac_ext <<_ACEOF 11353/* confdefs.h. */ 11354_ACEOF 11355cat confdefs.h >>conftest.$ac_ext 11356cat >>conftest.$ac_ext <<_ACEOF 11357/* end confdefs.h. */ 11358#include <time.h> 11359int 11360main () 11361{ 11362extern time_t timezone; 11363 timezone += 1; 11364 exit (0); 11365 ; 11366 return 0; 11367} 11368_ACEOF 11369rm -f conftest.$ac_objext 11370if { (ac_try="$ac_compile" 11371case "(($ac_try" in 11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11373 *) ac_try_echo=$ac_try;; 11374esac 11375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11376 (eval "$ac_compile") 2>conftest.er1 11377 ac_status=$? 11378 grep -v '^ *+' conftest.er1 >conftest.err 11379 rm -f conftest.er1 11380 cat conftest.err >&5 11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11382 (exit $ac_status); } && { 11383 test -z "$ac_c_werror_flag" || 11384 test ! -s conftest.err 11385 } && test -s conftest.$ac_objext; then 11386 tcl_cv_timezone_time=yes 11387else 11388 echo "$as_me: failed program was:" >&5 11389sed 's/^/| /' conftest.$ac_ext >&5 11390 11391 tcl_cv_timezone_time=no 11392fi 11393 11394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11395fi 11396{ echo "$as_me:$LINENO: result: $tcl_cv_timezone_time" >&5 11397echo "${ECHO_T}$tcl_cv_timezone_time" >&6; } 11398 if test $tcl_cv_timezone_time = yes ; then 11399 11400cat >>confdefs.h <<\_ACEOF 11401#define HAVE_TIMEZONE_VAR 1 11402_ACEOF 11403 11404 fi 11405 fi 11406 11407 11408 #-------------------------------------------------------------------- 11409 # The check below checks whether <sys/wait.h> defines the type 11410 # "union wait" correctly. It's needed because of weirdness in 11411 # HP-UX where "union wait" is defined in both the BSD and SYS-V 11412 # environments. Checking the usability of WIFEXITED seems to do 11413 # the trick. 11414 #-------------------------------------------------------------------- 11415 11416 { echo "$as_me:$LINENO: checking union wait" >&5 11417echo $ECHO_N "checking union wait... $ECHO_C" >&6; } 11418 if test "${tcl_cv_union_wait+set}" = set; then 11419 echo $ECHO_N "(cached) $ECHO_C" >&6 11420else 11421 cat >conftest.$ac_ext <<_ACEOF 11422/* confdefs.h. */ 11423_ACEOF 11424cat confdefs.h >>conftest.$ac_ext 11425cat >>conftest.$ac_ext <<_ACEOF 11426/* end confdefs.h. */ 11427#include <sys/types.h> 11428#include <sys/wait.h> 11429int 11430main () 11431{ 11432 11433union wait x; 11434WIFEXITED(x); /* Generates compiler error if WIFEXITED uses an int. */ 11435 11436 ; 11437 return 0; 11438} 11439_ACEOF 11440rm -f conftest.$ac_objext conftest$ac_exeext 11441if { (ac_try="$ac_link" 11442case "(($ac_try" in 11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11444 *) ac_try_echo=$ac_try;; 11445esac 11446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11447 (eval "$ac_link") 2>conftest.er1 11448 ac_status=$? 11449 grep -v '^ *+' conftest.er1 >conftest.err 11450 rm -f conftest.er1 11451 cat conftest.err >&5 11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11453 (exit $ac_status); } && { 11454 test -z "$ac_c_werror_flag" || 11455 test ! -s conftest.err 11456 } && test -s conftest$ac_exeext && 11457 $as_test_x conftest$ac_exeext; then 11458 tcl_cv_union_wait=yes 11459else 11460 echo "$as_me: failed program was:" >&5 11461sed 's/^/| /' conftest.$ac_ext >&5 11462 11463 tcl_cv_union_wait=no 11464fi 11465 11466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11467 conftest$ac_exeext conftest.$ac_ext 11468fi 11469 11470 { echo "$as_me:$LINENO: result: $tcl_cv_union_wait" >&5 11471echo "${ECHO_T}$tcl_cv_union_wait" >&6; } 11472 if test $tcl_cv_union_wait = no; then 11473 cat >>confdefs.h <<\_ACEOF 11474#define NO_UNION_WAIT 1 11475_ACEOF 11476 11477 fi 11478 11479 #------------------------------------------------------------------------- 11480 # Test to see if "times" returns a status or the amount of elapsed real 11481 # time. 11482 #------------------------------------------------------------------------- 11483 11484 { echo "$as_me:$LINENO: checking checking to see what 'times' returns" >&5 11485echo $ECHO_N "checking checking to see what 'times' returns... $ECHO_C" >&6; } 11486 if test "$cross_compiling" = yes; then 11487 { { echo "$as_me:$LINENO: error: cross-compiling not supported" >&5 11488echo "$as_me: error: cross-compiling not supported" >&2;} 11489 { (exit 1); exit 1; }; } 11490else 11491 cat >conftest.$ac_ext <<_ACEOF 11492/* confdefs.h. */ 11493_ACEOF 11494cat confdefs.h >>conftest.$ac_ext 11495cat >>conftest.$ac_ext <<_ACEOF 11496/* end confdefs.h. */ 11497 11498#include <sys/types.h> 11499#include <sys/times.h> 11500main() { 11501 struct tms cpu; 11502 times(&cpu); 11503 sleep(2); 11504 exit ((times(&cpu) > 0) ? 0 : 1); 11505} 11506 11507_ACEOF 11508rm -f conftest$ac_exeext 11509if { (ac_try="$ac_link" 11510case "(($ac_try" in 11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11512 *) ac_try_echo=$ac_try;; 11513esac 11514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11515 (eval "$ac_link") 2>&5 11516 ac_status=$? 11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11519 { (case "(($ac_try" in 11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11521 *) ac_try_echo=$ac_try;; 11522esac 11523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11524 (eval "$ac_try") 2>&5 11525 ac_status=$? 11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11527 (exit $ac_status); }; }; then 11528 { echo "$as_me:$LINENO: result: elapsed real time" >&5 11529echo "${ECHO_T}elapsed real time" >&6; } 11530else 11531 echo "$as_me: program exited with status $ac_status" >&5 11532echo "$as_me: failed program was:" >&5 11533sed 's/^/| /' conftest.$ac_ext >&5 11534 11535( exit $ac_status ) 11536{ echo "$as_me:$LINENO: result: a status" >&5 11537echo "${ECHO_T}a status" >&6; } 11538 cat >>confdefs.h <<\_ACEOF 11539#define TIMES_RETS_STATUS 1 11540_ACEOF 11541 11542fi 11543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11544fi 11545 11546 11547 11548 #------------------------------------------------------------------------- 11549 # Check for missing typedefs. 11550 #------------------------------------------------------------------------- 11551 11552 #AC_CHECK_TYPE(clock_t, long) 11553 { echo "$as_me:$LINENO: checking for time_t" >&5 11554echo $ECHO_N "checking for time_t... $ECHO_C" >&6; } 11555if test "${ac_cv_type_time_t+set}" = set; then 11556 echo $ECHO_N "(cached) $ECHO_C" >&6 11557else 11558 cat >conftest.$ac_ext <<_ACEOF 11559/* confdefs.h. */ 11560_ACEOF 11561cat confdefs.h >>conftest.$ac_ext 11562cat >>conftest.$ac_ext <<_ACEOF 11563/* end confdefs.h. */ 11564$ac_includes_default 11565typedef time_t ac__type_new_; 11566int 11567main () 11568{ 11569if ((ac__type_new_ *) 0) 11570 return 0; 11571if (sizeof (ac__type_new_)) 11572 return 0; 11573 ; 11574 return 0; 11575} 11576_ACEOF 11577rm -f conftest.$ac_objext 11578if { (ac_try="$ac_compile" 11579case "(($ac_try" in 11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11581 *) ac_try_echo=$ac_try;; 11582esac 11583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11584 (eval "$ac_compile") 2>conftest.er1 11585 ac_status=$? 11586 grep -v '^ *+' conftest.er1 >conftest.err 11587 rm -f conftest.er1 11588 cat conftest.err >&5 11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11590 (exit $ac_status); } && { 11591 test -z "$ac_c_werror_flag" || 11592 test ! -s conftest.err 11593 } && test -s conftest.$ac_objext; then 11594 ac_cv_type_time_t=yes 11595else 11596 echo "$as_me: failed program was:" >&5 11597sed 's/^/| /' conftest.$ac_ext >&5 11598 11599 ac_cv_type_time_t=no 11600fi 11601 11602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11603fi 11604{ echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 11605echo "${ECHO_T}$ac_cv_type_time_t" >&6; } 11606if test $ac_cv_type_time_t = yes; then 11607 : 11608else 11609 11610cat >>confdefs.h <<_ACEOF 11611#define time_t long 11612_ACEOF 11613 11614fi 11615 11616 { echo "$as_me:$LINENO: checking for off_t" >&5 11617echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } 11618if test "${ac_cv_type_off_t+set}" = set; then 11619 echo $ECHO_N "(cached) $ECHO_C" >&6 11620else 11621 cat >conftest.$ac_ext <<_ACEOF 11622/* confdefs.h. */ 11623_ACEOF 11624cat confdefs.h >>conftest.$ac_ext 11625cat >>conftest.$ac_ext <<_ACEOF 11626/* end confdefs.h. */ 11627$ac_includes_default 11628typedef off_t ac__type_new_; 11629int 11630main () 11631{ 11632if ((ac__type_new_ *) 0) 11633 return 0; 11634if (sizeof (ac__type_new_)) 11635 return 0; 11636 ; 11637 return 0; 11638} 11639_ACEOF 11640rm -f conftest.$ac_objext 11641if { (ac_try="$ac_compile" 11642case "(($ac_try" in 11643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11644 *) ac_try_echo=$ac_try;; 11645esac 11646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11647 (eval "$ac_compile") 2>conftest.er1 11648 ac_status=$? 11649 grep -v '^ *+' conftest.er1 >conftest.err 11650 rm -f conftest.er1 11651 cat conftest.err >&5 11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11653 (exit $ac_status); } && { 11654 test -z "$ac_c_werror_flag" || 11655 test ! -s conftest.err 11656 } && test -s conftest.$ac_objext; then 11657 ac_cv_type_off_t=yes 11658else 11659 echo "$as_me: failed program was:" >&5 11660sed 's/^/| /' conftest.$ac_ext >&5 11661 11662 ac_cv_type_off_t=no 11663fi 11664 11665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11666fi 11667{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 11668echo "${ECHO_T}$ac_cv_type_off_t" >&6; } 11669if test $ac_cv_type_off_t = yes; then 11670 : 11671else 11672 11673cat >>confdefs.h <<_ACEOF 11674#define off_t long int 11675_ACEOF 11676 11677fi 11678 11679 11680 #------------------------------------------------------------------------- 11681 # Older SCO systems don't have ftruncate, but have chsize in libx. Newer 11682 # versions have both. Only check for chsize in libx if we don't have 11683 # truncate. 11684 #------------------------------------------------------------------------- 11685 11686 { echo "$as_me:$LINENO: checking for ftruncate" >&5 11687echo $ECHO_N "checking for ftruncate... $ECHO_C" >&6; } 11688if test "${ac_cv_func_ftruncate+set}" = set; then 11689 echo $ECHO_N "(cached) $ECHO_C" >&6 11690else 11691 cat >conftest.$ac_ext <<_ACEOF 11692/* confdefs.h. */ 11693_ACEOF 11694cat confdefs.h >>conftest.$ac_ext 11695cat >>conftest.$ac_ext <<_ACEOF 11696/* end confdefs.h. */ 11697/* Define ftruncate to an innocuous variant, in case <limits.h> declares ftruncate. 11698 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11699#define ftruncate innocuous_ftruncate 11700 11701/* System header to define __stub macros and hopefully few prototypes, 11702 which can conflict with char ftruncate (); below. 11703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11704 <limits.h> exists even on freestanding compilers. */ 11705 11706#ifdef __STDC__ 11707# include <limits.h> 11708#else 11709# include <assert.h> 11710#endif 11711 11712#undef ftruncate 11713 11714/* Override any GCC internal prototype to avoid an error. 11715 Use char because int might match the return type of a GCC 11716 builtin and then its argument prototype would still apply. */ 11717#ifdef __cplusplus 11718extern "C" 11719#endif 11720char ftruncate (); 11721/* The GNU C library defines this for functions which it implements 11722 to always fail with ENOSYS. Some functions are actually named 11723 something starting with __ and the normal name is an alias. */ 11724#if defined __stub_ftruncate || defined __stub___ftruncate 11725choke me 11726#endif 11727 11728int 11729main () 11730{ 11731return ftruncate (); 11732 ; 11733 return 0; 11734} 11735_ACEOF 11736rm -f conftest.$ac_objext conftest$ac_exeext 11737if { (ac_try="$ac_link" 11738case "(($ac_try" in 11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11740 *) ac_try_echo=$ac_try;; 11741esac 11742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11743 (eval "$ac_link") 2>conftest.er1 11744 ac_status=$? 11745 grep -v '^ *+' conftest.er1 >conftest.err 11746 rm -f conftest.er1 11747 cat conftest.err >&5 11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11749 (exit $ac_status); } && { 11750 test -z "$ac_c_werror_flag" || 11751 test ! -s conftest.err 11752 } && test -s conftest$ac_exeext && 11753 $as_test_x conftest$ac_exeext; then 11754 ac_cv_func_ftruncate=yes 11755else 11756 echo "$as_me: failed program was:" >&5 11757sed 's/^/| /' conftest.$ac_ext >&5 11758 11759 ac_cv_func_ftruncate=no 11760fi 11761 11762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11763 conftest$ac_exeext conftest.$ac_ext 11764fi 11765{ echo "$as_me:$LINENO: result: $ac_cv_func_ftruncate" >&5 11766echo "${ECHO_T}$ac_cv_func_ftruncate" >&6; } 11767if test $ac_cv_func_ftruncate = yes; then 11768 : 11769else 11770 cat >>confdefs.h <<\_ACEOF 11771#define NO_FTRUNCATE 1 11772_ACEOF 11773 11774 { echo "$as_me:$LINENO: checking for chsize in -lx" >&5 11775echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6; } 11776if test "${ac_cv_lib_x_chsize+set}" = set; then 11777 echo $ECHO_N "(cached) $ECHO_C" >&6 11778else 11779 ac_check_lib_save_LIBS=$LIBS 11780LIBS="-lx $LIBS" 11781cat >conftest.$ac_ext <<_ACEOF 11782/* confdefs.h. */ 11783_ACEOF 11784cat confdefs.h >>conftest.$ac_ext 11785cat >>conftest.$ac_ext <<_ACEOF 11786/* end confdefs.h. */ 11787 11788/* Override any GCC internal prototype to avoid an error. 11789 Use char because int might match the return type of a GCC 11790 builtin and then its argument prototype would still apply. */ 11791#ifdef __cplusplus 11792extern "C" 11793#endif 11794char chsize (); 11795int 11796main () 11797{ 11798return chsize (); 11799 ; 11800 return 0; 11801} 11802_ACEOF 11803rm -f conftest.$ac_objext conftest$ac_exeext 11804if { (ac_try="$ac_link" 11805case "(($ac_try" in 11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11807 *) ac_try_echo=$ac_try;; 11808esac 11809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11810 (eval "$ac_link") 2>conftest.er1 11811 ac_status=$? 11812 grep -v '^ *+' conftest.er1 >conftest.err 11813 rm -f conftest.er1 11814 cat conftest.err >&5 11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11816 (exit $ac_status); } && { 11817 test -z "$ac_c_werror_flag" || 11818 test ! -s conftest.err 11819 } && test -s conftest$ac_exeext && 11820 $as_test_x conftest$ac_exeext; then 11821 ac_cv_lib_x_chsize=yes 11822else 11823 echo "$as_me: failed program was:" >&5 11824sed 's/^/| /' conftest.$ac_ext >&5 11825 11826 ac_cv_lib_x_chsize=no 11827fi 11828 11829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11830 conftest$ac_exeext conftest.$ac_ext 11831LIBS=$ac_check_lib_save_LIBS 11832fi 11833{ echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5 11834echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6; } 11835if test $ac_cv_lib_x_chsize = yes; then 11836 cat >>confdefs.h <<\_ACEOF 11837#define HAVE_CHSIZE 1 11838_ACEOF 11839 11840 11841 vars="-lx" 11842 for i in $vars; do 11843 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 11844 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 11845 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 11846 fi 11847 PKG_LIBS="$PKG_LIBS $i" 11848 done 11849 11850 11851fi 11852 11853fi 11854 11855 11856 #------------------------------------------------------------------------- 11857 # Check for various Unix or library functions that can be used by TclX. 11858 # These must be after the library checks. 11859 #------------------------------------------------------------------------- 11860 11861 { echo "$as_me:$LINENO: checking for select" >&5 11862echo $ECHO_N "checking for select... $ECHO_C" >&6; } 11863if test "${ac_cv_func_select+set}" = set; then 11864 echo $ECHO_N "(cached) $ECHO_C" >&6 11865else 11866 cat >conftest.$ac_ext <<_ACEOF 11867/* confdefs.h. */ 11868_ACEOF 11869cat confdefs.h >>conftest.$ac_ext 11870cat >>conftest.$ac_ext <<_ACEOF 11871/* end confdefs.h. */ 11872/* Define select to an innocuous variant, in case <limits.h> declares select. 11873 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11874#define select innocuous_select 11875 11876/* System header to define __stub macros and hopefully few prototypes, 11877 which can conflict with char select (); below. 11878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11879 <limits.h> exists even on freestanding compilers. */ 11880 11881#ifdef __STDC__ 11882# include <limits.h> 11883#else 11884# include <assert.h> 11885#endif 11886 11887#undef select 11888 11889/* Override any GCC internal prototype to avoid an error. 11890 Use char because int might match the return type of a GCC 11891 builtin and then its argument prototype would still apply. */ 11892#ifdef __cplusplus 11893extern "C" 11894#endif 11895char select (); 11896/* The GNU C library defines this for functions which it implements 11897 to always fail with ENOSYS. Some functions are actually named 11898 something starting with __ and the normal name is an alias. */ 11899#if defined __stub_select || defined __stub___select 11900choke me 11901#endif 11902 11903int 11904main () 11905{ 11906return select (); 11907 ; 11908 return 0; 11909} 11910_ACEOF 11911rm -f conftest.$ac_objext conftest$ac_exeext 11912if { (ac_try="$ac_link" 11913case "(($ac_try" in 11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11915 *) ac_try_echo=$ac_try;; 11916esac 11917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11918 (eval "$ac_link") 2>conftest.er1 11919 ac_status=$? 11920 grep -v '^ *+' conftest.er1 >conftest.err 11921 rm -f conftest.er1 11922 cat conftest.err >&5 11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11924 (exit $ac_status); } && { 11925 test -z "$ac_c_werror_flag" || 11926 test ! -s conftest.err 11927 } && test -s conftest$ac_exeext && 11928 $as_test_x conftest$ac_exeext; then 11929 ac_cv_func_select=yes 11930else 11931 echo "$as_me: failed program was:" >&5 11932sed 's/^/| /' conftest.$ac_ext >&5 11933 11934 ac_cv_func_select=no 11935fi 11936 11937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11938 conftest$ac_exeext conftest.$ac_ext 11939fi 11940{ echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5 11941echo "${ECHO_T}$ac_cv_func_select" >&6; } 11942if test $ac_cv_func_select = yes; then 11943 : 11944else 11945 cat >>confdefs.h <<\_ACEOF 11946#define NO_SELECT 1 11947_ACEOF 11948 11949fi 11950 11951 { echo "$as_me:$LINENO: checking for setitimer" >&5 11952echo $ECHO_N "checking for setitimer... $ECHO_C" >&6; } 11953if test "${ac_cv_func_setitimer+set}" = set; then 11954 echo $ECHO_N "(cached) $ECHO_C" >&6 11955else 11956 cat >conftest.$ac_ext <<_ACEOF 11957/* confdefs.h. */ 11958_ACEOF 11959cat confdefs.h >>conftest.$ac_ext 11960cat >>conftest.$ac_ext <<_ACEOF 11961/* end confdefs.h. */ 11962/* Define setitimer to an innocuous variant, in case <limits.h> declares setitimer. 11963 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11964#define setitimer innocuous_setitimer 11965 11966/* System header to define __stub macros and hopefully few prototypes, 11967 which can conflict with char setitimer (); below. 11968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11969 <limits.h> exists even on freestanding compilers. */ 11970 11971#ifdef __STDC__ 11972# include <limits.h> 11973#else 11974# include <assert.h> 11975#endif 11976 11977#undef setitimer 11978 11979/* Override any GCC internal prototype to avoid an error. 11980 Use char because int might match the return type of a GCC 11981 builtin and then its argument prototype would still apply. */ 11982#ifdef __cplusplus 11983extern "C" 11984#endif 11985char setitimer (); 11986/* The GNU C library defines this for functions which it implements 11987 to always fail with ENOSYS. Some functions are actually named 11988 something starting with __ and the normal name is an alias. */ 11989#if defined __stub_setitimer || defined __stub___setitimer 11990choke me 11991#endif 11992 11993int 11994main () 11995{ 11996return setitimer (); 11997 ; 11998 return 0; 11999} 12000_ACEOF 12001rm -f conftest.$ac_objext conftest$ac_exeext 12002if { (ac_try="$ac_link" 12003case "(($ac_try" in 12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12005 *) ac_try_echo=$ac_try;; 12006esac 12007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12008 (eval "$ac_link") 2>conftest.er1 12009 ac_status=$? 12010 grep -v '^ *+' conftest.er1 >conftest.err 12011 rm -f conftest.er1 12012 cat conftest.err >&5 12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12014 (exit $ac_status); } && { 12015 test -z "$ac_c_werror_flag" || 12016 test ! -s conftest.err 12017 } && test -s conftest$ac_exeext && 12018 $as_test_x conftest$ac_exeext; then 12019 ac_cv_func_setitimer=yes 12020else 12021 echo "$as_me: failed program was:" >&5 12022sed 's/^/| /' conftest.$ac_ext >&5 12023 12024 ac_cv_func_setitimer=no 12025fi 12026 12027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12028 conftest$ac_exeext conftest.$ac_ext 12029fi 12030{ echo "$as_me:$LINENO: result: $ac_cv_func_setitimer" >&5 12031echo "${ECHO_T}$ac_cv_func_setitimer" >&6; } 12032if test $ac_cv_func_setitimer = yes; then 12033 : 12034else 12035 cat >>confdefs.h <<\_ACEOF 12036#define NO_SETITIMER 1 12037_ACEOF 12038 12039fi 12040 12041 { echo "$as_me:$LINENO: checking for sigaction" >&5 12042echo $ECHO_N "checking for sigaction... $ECHO_C" >&6; } 12043if test "${ac_cv_func_sigaction+set}" = set; then 12044 echo $ECHO_N "(cached) $ECHO_C" >&6 12045else 12046 cat >conftest.$ac_ext <<_ACEOF 12047/* confdefs.h. */ 12048_ACEOF 12049cat confdefs.h >>conftest.$ac_ext 12050cat >>conftest.$ac_ext <<_ACEOF 12051/* end confdefs.h. */ 12052/* Define sigaction to an innocuous variant, in case <limits.h> declares sigaction. 12053 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12054#define sigaction innocuous_sigaction 12055 12056/* System header to define __stub macros and hopefully few prototypes, 12057 which can conflict with char sigaction (); below. 12058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12059 <limits.h> exists even on freestanding compilers. */ 12060 12061#ifdef __STDC__ 12062# include <limits.h> 12063#else 12064# include <assert.h> 12065#endif 12066 12067#undef sigaction 12068 12069/* Override any GCC internal prototype to avoid an error. 12070 Use char because int might match the return type of a GCC 12071 builtin and then its argument prototype would still apply. */ 12072#ifdef __cplusplus 12073extern "C" 12074#endif 12075char sigaction (); 12076/* The GNU C library defines this for functions which it implements 12077 to always fail with ENOSYS. Some functions are actually named 12078 something starting with __ and the normal name is an alias. */ 12079#if defined __stub_sigaction || defined __stub___sigaction 12080choke me 12081#endif 12082 12083int 12084main () 12085{ 12086return sigaction (); 12087 ; 12088 return 0; 12089} 12090_ACEOF 12091rm -f conftest.$ac_objext conftest$ac_exeext 12092if { (ac_try="$ac_link" 12093case "(($ac_try" in 12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12095 *) ac_try_echo=$ac_try;; 12096esac 12097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12098 (eval "$ac_link") 2>conftest.er1 12099 ac_status=$? 12100 grep -v '^ *+' conftest.er1 >conftest.err 12101 rm -f conftest.er1 12102 cat conftest.err >&5 12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12104 (exit $ac_status); } && { 12105 test -z "$ac_c_werror_flag" || 12106 test ! -s conftest.err 12107 } && test -s conftest$ac_exeext && 12108 $as_test_x conftest$ac_exeext; then 12109 ac_cv_func_sigaction=yes 12110else 12111 echo "$as_me: failed program was:" >&5 12112sed 's/^/| /' conftest.$ac_ext >&5 12113 12114 ac_cv_func_sigaction=no 12115fi 12116 12117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12118 conftest$ac_exeext conftest.$ac_ext 12119fi 12120{ echo "$as_me:$LINENO: result: $ac_cv_func_sigaction" >&5 12121echo "${ECHO_T}$ac_cv_func_sigaction" >&6; } 12122if test $ac_cv_func_sigaction = yes; then 12123 : 12124else 12125 cat >>confdefs.h <<\_ACEOF 12126#define NO_SIGACTION 1 12127_ACEOF 12128 12129fi 12130 12131 { echo "$as_me:$LINENO: checking for setpgid" >&5 12132echo $ECHO_N "checking for setpgid... $ECHO_C" >&6; } 12133if test "${ac_cv_func_setpgid+set}" = set; then 12134 echo $ECHO_N "(cached) $ECHO_C" >&6 12135else 12136 cat >conftest.$ac_ext <<_ACEOF 12137/* confdefs.h. */ 12138_ACEOF 12139cat confdefs.h >>conftest.$ac_ext 12140cat >>conftest.$ac_ext <<_ACEOF 12141/* end confdefs.h. */ 12142/* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid. 12143 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12144#define setpgid innocuous_setpgid 12145 12146/* System header to define __stub macros and hopefully few prototypes, 12147 which can conflict with char setpgid (); below. 12148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12149 <limits.h> exists even on freestanding compilers. */ 12150 12151#ifdef __STDC__ 12152# include <limits.h> 12153#else 12154# include <assert.h> 12155#endif 12156 12157#undef setpgid 12158 12159/* Override any GCC internal prototype to avoid an error. 12160 Use char because int might match the return type of a GCC 12161 builtin and then its argument prototype would still apply. */ 12162#ifdef __cplusplus 12163extern "C" 12164#endif 12165char setpgid (); 12166/* The GNU C library defines this for functions which it implements 12167 to always fail with ENOSYS. Some functions are actually named 12168 something starting with __ and the normal name is an alias. */ 12169#if defined __stub_setpgid || defined __stub___setpgid 12170choke me 12171#endif 12172 12173int 12174main () 12175{ 12176return setpgid (); 12177 ; 12178 return 0; 12179} 12180_ACEOF 12181rm -f conftest.$ac_objext conftest$ac_exeext 12182if { (ac_try="$ac_link" 12183case "(($ac_try" in 12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12185 *) ac_try_echo=$ac_try;; 12186esac 12187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12188 (eval "$ac_link") 2>conftest.er1 12189 ac_status=$? 12190 grep -v '^ *+' conftest.er1 >conftest.err 12191 rm -f conftest.er1 12192 cat conftest.err >&5 12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12194 (exit $ac_status); } && { 12195 test -z "$ac_c_werror_flag" || 12196 test ! -s conftest.err 12197 } && test -s conftest$ac_exeext && 12198 $as_test_x conftest$ac_exeext; then 12199 ac_cv_func_setpgid=yes 12200else 12201 echo "$as_me: failed program was:" >&5 12202sed 's/^/| /' conftest.$ac_ext >&5 12203 12204 ac_cv_func_setpgid=no 12205fi 12206 12207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12208 conftest$ac_exeext conftest.$ac_ext 12209fi 12210{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5 12211echo "${ECHO_T}$ac_cv_func_setpgid" >&6; } 12212if test $ac_cv_func_setpgid = yes; then 12213 : 12214else 12215 cat >>confdefs.h <<\_ACEOF 12216#define NO_SETPGID 1 12217_ACEOF 12218 12219fi 12220 12221 { echo "$as_me:$LINENO: checking for getgroups" >&5 12222echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; } 12223if test "${ac_cv_func_getgroups+set}" = set; then 12224 echo $ECHO_N "(cached) $ECHO_C" >&6 12225else 12226 cat >conftest.$ac_ext <<_ACEOF 12227/* confdefs.h. */ 12228_ACEOF 12229cat confdefs.h >>conftest.$ac_ext 12230cat >>conftest.$ac_ext <<_ACEOF 12231/* end confdefs.h. */ 12232/* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups. 12233 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12234#define getgroups innocuous_getgroups 12235 12236/* System header to define __stub macros and hopefully few prototypes, 12237 which can conflict with char getgroups (); below. 12238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12239 <limits.h> exists even on freestanding compilers. */ 12240 12241#ifdef __STDC__ 12242# include <limits.h> 12243#else 12244# include <assert.h> 12245#endif 12246 12247#undef getgroups 12248 12249/* Override any GCC internal prototype to avoid an error. 12250 Use char because int might match the return type of a GCC 12251 builtin and then its argument prototype would still apply. */ 12252#ifdef __cplusplus 12253extern "C" 12254#endif 12255char getgroups (); 12256/* The GNU C library defines this for functions which it implements 12257 to always fail with ENOSYS. Some functions are actually named 12258 something starting with __ and the normal name is an alias. */ 12259#if defined __stub_getgroups || defined __stub___getgroups 12260choke me 12261#endif 12262 12263int 12264main () 12265{ 12266return getgroups (); 12267 ; 12268 return 0; 12269} 12270_ACEOF 12271rm -f conftest.$ac_objext conftest$ac_exeext 12272if { (ac_try="$ac_link" 12273case "(($ac_try" in 12274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12275 *) ac_try_echo=$ac_try;; 12276esac 12277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12278 (eval "$ac_link") 2>conftest.er1 12279 ac_status=$? 12280 grep -v '^ *+' conftest.er1 >conftest.err 12281 rm -f conftest.er1 12282 cat conftest.err >&5 12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12284 (exit $ac_status); } && { 12285 test -z "$ac_c_werror_flag" || 12286 test ! -s conftest.err 12287 } && test -s conftest$ac_exeext && 12288 $as_test_x conftest$ac_exeext; then 12289 ac_cv_func_getgroups=yes 12290else 12291 echo "$as_me: failed program was:" >&5 12292sed 's/^/| /' conftest.$ac_ext >&5 12293 12294 ac_cv_func_getgroups=no 12295fi 12296 12297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12298 conftest$ac_exeext conftest.$ac_ext 12299fi 12300{ echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5 12301echo "${ECHO_T}$ac_cv_func_getgroups" >&6; } 12302if test $ac_cv_func_getgroups = yes; then 12303 : 12304else 12305 cat >>confdefs.h <<\_ACEOF 12306#define NO_GETGROUPS 1 12307_ACEOF 12308 12309fi 12310 12311 { echo "$as_me:$LINENO: checking for bzero" >&5 12312echo $ECHO_N "checking for bzero... $ECHO_C" >&6; } 12313if test "${ac_cv_func_bzero+set}" = set; then 12314 echo $ECHO_N "(cached) $ECHO_C" >&6 12315else 12316 cat >conftest.$ac_ext <<_ACEOF 12317/* confdefs.h. */ 12318_ACEOF 12319cat confdefs.h >>conftest.$ac_ext 12320cat >>conftest.$ac_ext <<_ACEOF 12321/* end confdefs.h. */ 12322/* Define bzero to an innocuous variant, in case <limits.h> declares bzero. 12323 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12324#define bzero innocuous_bzero 12325 12326/* System header to define __stub macros and hopefully few prototypes, 12327 which can conflict with char bzero (); below. 12328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12329 <limits.h> exists even on freestanding compilers. */ 12330 12331#ifdef __STDC__ 12332# include <limits.h> 12333#else 12334# include <assert.h> 12335#endif 12336 12337#undef bzero 12338 12339/* Override any GCC internal prototype to avoid an error. 12340 Use char because int might match the return type of a GCC 12341 builtin and then its argument prototype would still apply. */ 12342#ifdef __cplusplus 12343extern "C" 12344#endif 12345char bzero (); 12346/* The GNU C library defines this for functions which it implements 12347 to always fail with ENOSYS. Some functions are actually named 12348 something starting with __ and the normal name is an alias. */ 12349#if defined __stub_bzero || defined __stub___bzero 12350choke me 12351#endif 12352 12353int 12354main () 12355{ 12356return bzero (); 12357 ; 12358 return 0; 12359} 12360_ACEOF 12361rm -f conftest.$ac_objext conftest$ac_exeext 12362if { (ac_try="$ac_link" 12363case "(($ac_try" in 12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12365 *) ac_try_echo=$ac_try;; 12366esac 12367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12368 (eval "$ac_link") 2>conftest.er1 12369 ac_status=$? 12370 grep -v '^ *+' conftest.er1 >conftest.err 12371 rm -f conftest.er1 12372 cat conftest.err >&5 12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12374 (exit $ac_status); } && { 12375 test -z "$ac_c_werror_flag" || 12376 test ! -s conftest.err 12377 } && test -s conftest$ac_exeext && 12378 $as_test_x conftest$ac_exeext; then 12379 ac_cv_func_bzero=yes 12380else 12381 echo "$as_me: failed program was:" >&5 12382sed 's/^/| /' conftest.$ac_ext >&5 12383 12384 ac_cv_func_bzero=no 12385fi 12386 12387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12388 conftest$ac_exeext conftest.$ac_ext 12389fi 12390{ echo "$as_me:$LINENO: result: $ac_cv_func_bzero" >&5 12391echo "${ECHO_T}$ac_cv_func_bzero" >&6; } 12392if test $ac_cv_func_bzero = yes; then 12393 : 12394else 12395 cat >>confdefs.h <<\_ACEOF 12396#define NO_BZERO 1 12397_ACEOF 12398 12399fi 12400 12401 { echo "$as_me:$LINENO: checking for bcopy" >&5 12402echo $ECHO_N "checking for bcopy... $ECHO_C" >&6; } 12403if test "${ac_cv_func_bcopy+set}" = set; then 12404 echo $ECHO_N "(cached) $ECHO_C" >&6 12405else 12406 cat >conftest.$ac_ext <<_ACEOF 12407/* confdefs.h. */ 12408_ACEOF 12409cat confdefs.h >>conftest.$ac_ext 12410cat >>conftest.$ac_ext <<_ACEOF 12411/* end confdefs.h. */ 12412/* Define bcopy to an innocuous variant, in case <limits.h> declares bcopy. 12413 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12414#define bcopy innocuous_bcopy 12415 12416/* System header to define __stub macros and hopefully few prototypes, 12417 which can conflict with char bcopy (); below. 12418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12419 <limits.h> exists even on freestanding compilers. */ 12420 12421#ifdef __STDC__ 12422# include <limits.h> 12423#else 12424# include <assert.h> 12425#endif 12426 12427#undef bcopy 12428 12429/* Override any GCC internal prototype to avoid an error. 12430 Use char because int might match the return type of a GCC 12431 builtin and then its argument prototype would still apply. */ 12432#ifdef __cplusplus 12433extern "C" 12434#endif 12435char bcopy (); 12436/* The GNU C library defines this for functions which it implements 12437 to always fail with ENOSYS. Some functions are actually named 12438 something starting with __ and the normal name is an alias. */ 12439#if defined __stub_bcopy || defined __stub___bcopy 12440choke me 12441#endif 12442 12443int 12444main () 12445{ 12446return bcopy (); 12447 ; 12448 return 0; 12449} 12450_ACEOF 12451rm -f conftest.$ac_objext conftest$ac_exeext 12452if { (ac_try="$ac_link" 12453case "(($ac_try" in 12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12455 *) ac_try_echo=$ac_try;; 12456esac 12457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12458 (eval "$ac_link") 2>conftest.er1 12459 ac_status=$? 12460 grep -v '^ *+' conftest.er1 >conftest.err 12461 rm -f conftest.er1 12462 cat conftest.err >&5 12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12464 (exit $ac_status); } && { 12465 test -z "$ac_c_werror_flag" || 12466 test ! -s conftest.err 12467 } && test -s conftest$ac_exeext && 12468 $as_test_x conftest$ac_exeext; then 12469 ac_cv_func_bcopy=yes 12470else 12471 echo "$as_me: failed program was:" >&5 12472sed 's/^/| /' conftest.$ac_ext >&5 12473 12474 ac_cv_func_bcopy=no 12475fi 12476 12477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12478 conftest$ac_exeext conftest.$ac_ext 12479fi 12480{ echo "$as_me:$LINENO: result: $ac_cv_func_bcopy" >&5 12481echo "${ECHO_T}$ac_cv_func_bcopy" >&6; } 12482if test $ac_cv_func_bcopy = yes; then 12483 : 12484else 12485 cat >>confdefs.h <<\_ACEOF 12486#define NO_BCOPY 1 12487_ACEOF 12488 12489fi 12490 12491 { echo "$as_me:$LINENO: checking for fsync" >&5 12492echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } 12493if test "${ac_cv_func_fsync+set}" = set; then 12494 echo $ECHO_N "(cached) $ECHO_C" >&6 12495else 12496 cat >conftest.$ac_ext <<_ACEOF 12497/* confdefs.h. */ 12498_ACEOF 12499cat confdefs.h >>conftest.$ac_ext 12500cat >>conftest.$ac_ext <<_ACEOF 12501/* end confdefs.h. */ 12502/* Define fsync to an innocuous variant, in case <limits.h> declares fsync. 12503 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12504#define fsync innocuous_fsync 12505 12506/* System header to define __stub macros and hopefully few prototypes, 12507 which can conflict with char fsync (); below. 12508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12509 <limits.h> exists even on freestanding compilers. */ 12510 12511#ifdef __STDC__ 12512# include <limits.h> 12513#else 12514# include <assert.h> 12515#endif 12516 12517#undef fsync 12518 12519/* Override any GCC internal prototype to avoid an error. 12520 Use char because int might match the return type of a GCC 12521 builtin and then its argument prototype would still apply. */ 12522#ifdef __cplusplus 12523extern "C" 12524#endif 12525char fsync (); 12526/* The GNU C library defines this for functions which it implements 12527 to always fail with ENOSYS. Some functions are actually named 12528 something starting with __ and the normal name is an alias. */ 12529#if defined __stub_fsync || defined __stub___fsync 12530choke me 12531#endif 12532 12533int 12534main () 12535{ 12536return fsync (); 12537 ; 12538 return 0; 12539} 12540_ACEOF 12541rm -f conftest.$ac_objext conftest$ac_exeext 12542if { (ac_try="$ac_link" 12543case "(($ac_try" in 12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12545 *) ac_try_echo=$ac_try;; 12546esac 12547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12548 (eval "$ac_link") 2>conftest.er1 12549 ac_status=$? 12550 grep -v '^ *+' conftest.er1 >conftest.err 12551 rm -f conftest.er1 12552 cat conftest.err >&5 12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12554 (exit $ac_status); } && { 12555 test -z "$ac_c_werror_flag" || 12556 test ! -s conftest.err 12557 } && test -s conftest$ac_exeext && 12558 $as_test_x conftest$ac_exeext; then 12559 ac_cv_func_fsync=yes 12560else 12561 echo "$as_me: failed program was:" >&5 12562sed 's/^/| /' conftest.$ac_ext >&5 12563 12564 ac_cv_func_fsync=no 12565fi 12566 12567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12568 conftest$ac_exeext conftest.$ac_ext 12569fi 12570{ echo "$as_me:$LINENO: result: $ac_cv_func_fsync" >&5 12571echo "${ECHO_T}$ac_cv_func_fsync" >&6; } 12572if test $ac_cv_func_fsync = yes; then 12573 : 12574else 12575 cat >>confdefs.h <<\_ACEOF 12576#define NO_FSYNC 1 12577_ACEOF 12578 12579fi 12580 12581 { echo "$as_me:$LINENO: checking for getpriority" >&5 12582echo $ECHO_N "checking for getpriority... $ECHO_C" >&6; } 12583if test "${ac_cv_func_getpriority+set}" = set; then 12584 echo $ECHO_N "(cached) $ECHO_C" >&6 12585else 12586 cat >conftest.$ac_ext <<_ACEOF 12587/* confdefs.h. */ 12588_ACEOF 12589cat confdefs.h >>conftest.$ac_ext 12590cat >>conftest.$ac_ext <<_ACEOF 12591/* end confdefs.h. */ 12592/* Define getpriority to an innocuous variant, in case <limits.h> declares getpriority. 12593 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12594#define getpriority innocuous_getpriority 12595 12596/* System header to define __stub macros and hopefully few prototypes, 12597 which can conflict with char getpriority (); below. 12598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12599 <limits.h> exists even on freestanding compilers. */ 12600 12601#ifdef __STDC__ 12602# include <limits.h> 12603#else 12604# include <assert.h> 12605#endif 12606 12607#undef getpriority 12608 12609/* Override any GCC internal prototype to avoid an error. 12610 Use char because int might match the return type of a GCC 12611 builtin and then its argument prototype would still apply. */ 12612#ifdef __cplusplus 12613extern "C" 12614#endif 12615char getpriority (); 12616/* The GNU C library defines this for functions which it implements 12617 to always fail with ENOSYS. Some functions are actually named 12618 something starting with __ and the normal name is an alias. */ 12619#if defined __stub_getpriority || defined __stub___getpriority 12620choke me 12621#endif 12622 12623int 12624main () 12625{ 12626return getpriority (); 12627 ; 12628 return 0; 12629} 12630_ACEOF 12631rm -f conftest.$ac_objext conftest$ac_exeext 12632if { (ac_try="$ac_link" 12633case "(($ac_try" in 12634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12635 *) ac_try_echo=$ac_try;; 12636esac 12637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12638 (eval "$ac_link") 2>conftest.er1 12639 ac_status=$? 12640 grep -v '^ *+' conftest.er1 >conftest.err 12641 rm -f conftest.er1 12642 cat conftest.err >&5 12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12644 (exit $ac_status); } && { 12645 test -z "$ac_c_werror_flag" || 12646 test ! -s conftest.err 12647 } && test -s conftest$ac_exeext && 12648 $as_test_x conftest$ac_exeext; then 12649 ac_cv_func_getpriority=yes 12650else 12651 echo "$as_me: failed program was:" >&5 12652sed 's/^/| /' conftest.$ac_ext >&5 12653 12654 ac_cv_func_getpriority=no 12655fi 12656 12657rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12658 conftest$ac_exeext conftest.$ac_ext 12659fi 12660{ echo "$as_me:$LINENO: result: $ac_cv_func_getpriority" >&5 12661echo "${ECHO_T}$ac_cv_func_getpriority" >&6; } 12662if test $ac_cv_func_getpriority = yes; then 12663 : 12664else 12665 cat >>confdefs.h <<\_ACEOF 12666#define NO_GETPRIORITY 1 12667_ACEOF 12668 12669fi 12670 12671 { echo "$as_me:$LINENO: checking for strcoll" >&5 12672echo $ECHO_N "checking for strcoll... $ECHO_C" >&6; } 12673if test "${ac_cv_func_strcoll+set}" = set; then 12674 echo $ECHO_N "(cached) $ECHO_C" >&6 12675else 12676 cat >conftest.$ac_ext <<_ACEOF 12677/* confdefs.h. */ 12678_ACEOF 12679cat confdefs.h >>conftest.$ac_ext 12680cat >>conftest.$ac_ext <<_ACEOF 12681/* end confdefs.h. */ 12682/* Define strcoll to an innocuous variant, in case <limits.h> declares strcoll. 12683 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12684#define strcoll innocuous_strcoll 12685 12686/* System header to define __stub macros and hopefully few prototypes, 12687 which can conflict with char strcoll (); below. 12688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12689 <limits.h> exists even on freestanding compilers. */ 12690 12691#ifdef __STDC__ 12692# include <limits.h> 12693#else 12694# include <assert.h> 12695#endif 12696 12697#undef strcoll 12698 12699/* Override any GCC internal prototype to avoid an error. 12700 Use char because int might match the return type of a GCC 12701 builtin and then its argument prototype would still apply. */ 12702#ifdef __cplusplus 12703extern "C" 12704#endif 12705char strcoll (); 12706/* The GNU C library defines this for functions which it implements 12707 to always fail with ENOSYS. Some functions are actually named 12708 something starting with __ and the normal name is an alias. */ 12709#if defined __stub_strcoll || defined __stub___strcoll 12710choke me 12711#endif 12712 12713int 12714main () 12715{ 12716return strcoll (); 12717 ; 12718 return 0; 12719} 12720_ACEOF 12721rm -f conftest.$ac_objext conftest$ac_exeext 12722if { (ac_try="$ac_link" 12723case "(($ac_try" in 12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12725 *) ac_try_echo=$ac_try;; 12726esac 12727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12728 (eval "$ac_link") 2>conftest.er1 12729 ac_status=$? 12730 grep -v '^ *+' conftest.er1 >conftest.err 12731 rm -f conftest.er1 12732 cat conftest.err >&5 12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12734 (exit $ac_status); } && { 12735 test -z "$ac_c_werror_flag" || 12736 test ! -s conftest.err 12737 } && test -s conftest$ac_exeext && 12738 $as_test_x conftest$ac_exeext; then 12739 ac_cv_func_strcoll=yes 12740else 12741 echo "$as_me: failed program was:" >&5 12742sed 's/^/| /' conftest.$ac_ext >&5 12743 12744 ac_cv_func_strcoll=no 12745fi 12746 12747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12748 conftest$ac_exeext conftest.$ac_ext 12749fi 12750{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll" >&5 12751echo "${ECHO_T}$ac_cv_func_strcoll" >&6; } 12752if test $ac_cv_func_strcoll = yes; then 12753 : 12754else 12755 cat >>confdefs.h <<\_ACEOF 12756#define NO_STRCOLL 1 12757_ACEOF 12758 12759fi 12760 12761 { echo "$as_me:$LINENO: checking for fchown" >&5 12762echo $ECHO_N "checking for fchown... $ECHO_C" >&6; } 12763if test "${ac_cv_func_fchown+set}" = set; then 12764 echo $ECHO_N "(cached) $ECHO_C" >&6 12765else 12766 cat >conftest.$ac_ext <<_ACEOF 12767/* confdefs.h. */ 12768_ACEOF 12769cat confdefs.h >>conftest.$ac_ext 12770cat >>conftest.$ac_ext <<_ACEOF 12771/* end confdefs.h. */ 12772/* Define fchown to an innocuous variant, in case <limits.h> declares fchown. 12773 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12774#define fchown innocuous_fchown 12775 12776/* System header to define __stub macros and hopefully few prototypes, 12777 which can conflict with char fchown (); below. 12778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12779 <limits.h> exists even on freestanding compilers. */ 12780 12781#ifdef __STDC__ 12782# include <limits.h> 12783#else 12784# include <assert.h> 12785#endif 12786 12787#undef fchown 12788 12789/* Override any GCC internal prototype to avoid an error. 12790 Use char because int might match the return type of a GCC 12791 builtin and then its argument prototype would still apply. */ 12792#ifdef __cplusplus 12793extern "C" 12794#endif 12795char fchown (); 12796/* The GNU C library defines this for functions which it implements 12797 to always fail with ENOSYS. Some functions are actually named 12798 something starting with __ and the normal name is an alias. */ 12799#if defined __stub_fchown || defined __stub___fchown 12800choke me 12801#endif 12802 12803int 12804main () 12805{ 12806return fchown (); 12807 ; 12808 return 0; 12809} 12810_ACEOF 12811rm -f conftest.$ac_objext conftest$ac_exeext 12812if { (ac_try="$ac_link" 12813case "(($ac_try" in 12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12815 *) ac_try_echo=$ac_try;; 12816esac 12817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12818 (eval "$ac_link") 2>conftest.er1 12819 ac_status=$? 12820 grep -v '^ *+' conftest.er1 >conftest.err 12821 rm -f conftest.er1 12822 cat conftest.err >&5 12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12824 (exit $ac_status); } && { 12825 test -z "$ac_c_werror_flag" || 12826 test ! -s conftest.err 12827 } && test -s conftest$ac_exeext && 12828 $as_test_x conftest$ac_exeext; then 12829 ac_cv_func_fchown=yes 12830else 12831 echo "$as_me: failed program was:" >&5 12832sed 's/^/| /' conftest.$ac_ext >&5 12833 12834 ac_cv_func_fchown=no 12835fi 12836 12837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12838 conftest$ac_exeext conftest.$ac_ext 12839fi 12840{ echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5 12841echo "${ECHO_T}$ac_cv_func_fchown" >&6; } 12842if test $ac_cv_func_fchown = yes; then 12843 : 12844else 12845 cat >>confdefs.h <<\_ACEOF 12846#define NO_FCHOWN 1 12847_ACEOF 12848 12849fi 12850 12851 { echo "$as_me:$LINENO: checking for fchmod" >&5 12852echo $ECHO_N "checking for fchmod... $ECHO_C" >&6; } 12853if test "${ac_cv_func_fchmod+set}" = set; then 12854 echo $ECHO_N "(cached) $ECHO_C" >&6 12855else 12856 cat >conftest.$ac_ext <<_ACEOF 12857/* confdefs.h. */ 12858_ACEOF 12859cat confdefs.h >>conftest.$ac_ext 12860cat >>conftest.$ac_ext <<_ACEOF 12861/* end confdefs.h. */ 12862/* Define fchmod to an innocuous variant, in case <limits.h> declares fchmod. 12863 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12864#define fchmod innocuous_fchmod 12865 12866/* System header to define __stub macros and hopefully few prototypes, 12867 which can conflict with char fchmod (); below. 12868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12869 <limits.h> exists even on freestanding compilers. */ 12870 12871#ifdef __STDC__ 12872# include <limits.h> 12873#else 12874# include <assert.h> 12875#endif 12876 12877#undef fchmod 12878 12879/* Override any GCC internal prototype to avoid an error. 12880 Use char because int might match the return type of a GCC 12881 builtin and then its argument prototype would still apply. */ 12882#ifdef __cplusplus 12883extern "C" 12884#endif 12885char fchmod (); 12886/* The GNU C library defines this for functions which it implements 12887 to always fail with ENOSYS. Some functions are actually named 12888 something starting with __ and the normal name is an alias. */ 12889#if defined __stub_fchmod || defined __stub___fchmod 12890choke me 12891#endif 12892 12893int 12894main () 12895{ 12896return fchmod (); 12897 ; 12898 return 0; 12899} 12900_ACEOF 12901rm -f conftest.$ac_objext conftest$ac_exeext 12902if { (ac_try="$ac_link" 12903case "(($ac_try" in 12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12905 *) ac_try_echo=$ac_try;; 12906esac 12907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12908 (eval "$ac_link") 2>conftest.er1 12909 ac_status=$? 12910 grep -v '^ *+' conftest.er1 >conftest.err 12911 rm -f conftest.er1 12912 cat conftest.err >&5 12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12914 (exit $ac_status); } && { 12915 test -z "$ac_c_werror_flag" || 12916 test ! -s conftest.err 12917 } && test -s conftest$ac_exeext && 12918 $as_test_x conftest$ac_exeext; then 12919 ac_cv_func_fchmod=yes 12920else 12921 echo "$as_me: failed program was:" >&5 12922sed 's/^/| /' conftest.$ac_ext >&5 12923 12924 ac_cv_func_fchmod=no 12925fi 12926 12927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12928 conftest$ac_exeext conftest.$ac_ext 12929fi 12930{ echo "$as_me:$LINENO: result: $ac_cv_func_fchmod" >&5 12931echo "${ECHO_T}$ac_cv_func_fchmod" >&6; } 12932if test $ac_cv_func_fchmod = yes; then 12933 : 12934else 12935 cat >>confdefs.h <<\_ACEOF 12936#define NO_FCHMOD 1 12937_ACEOF 12938 12939fi 12940 12941 { echo "$as_me:$LINENO: checking for truncate" >&5 12942echo $ECHO_N "checking for truncate... $ECHO_C" >&6; } 12943if test "${ac_cv_func_truncate+set}" = set; then 12944 echo $ECHO_N "(cached) $ECHO_C" >&6 12945else 12946 cat >conftest.$ac_ext <<_ACEOF 12947/* confdefs.h. */ 12948_ACEOF 12949cat confdefs.h >>conftest.$ac_ext 12950cat >>conftest.$ac_ext <<_ACEOF 12951/* end confdefs.h. */ 12952/* Define truncate to an innocuous variant, in case <limits.h> declares truncate. 12953 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12954#define truncate innocuous_truncate 12955 12956/* System header to define __stub macros and hopefully few prototypes, 12957 which can conflict with char truncate (); below. 12958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12959 <limits.h> exists even on freestanding compilers. */ 12960 12961#ifdef __STDC__ 12962# include <limits.h> 12963#else 12964# include <assert.h> 12965#endif 12966 12967#undef truncate 12968 12969/* Override any GCC internal prototype to avoid an error. 12970 Use char because int might match the return type of a GCC 12971 builtin and then its argument prototype would still apply. */ 12972#ifdef __cplusplus 12973extern "C" 12974#endif 12975char truncate (); 12976/* The GNU C library defines this for functions which it implements 12977 to always fail with ENOSYS. Some functions are actually named 12978 something starting with __ and the normal name is an alias. */ 12979#if defined __stub_truncate || defined __stub___truncate 12980choke me 12981#endif 12982 12983int 12984main () 12985{ 12986return truncate (); 12987 ; 12988 return 0; 12989} 12990_ACEOF 12991rm -f conftest.$ac_objext conftest$ac_exeext 12992if { (ac_try="$ac_link" 12993case "(($ac_try" in 12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12995 *) ac_try_echo=$ac_try;; 12996esac 12997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12998 (eval "$ac_link") 2>conftest.er1 12999 ac_status=$? 13000 grep -v '^ *+' conftest.er1 >conftest.err 13001 rm -f conftest.er1 13002 cat conftest.err >&5 13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13004 (exit $ac_status); } && { 13005 test -z "$ac_c_werror_flag" || 13006 test ! -s conftest.err 13007 } && test -s conftest$ac_exeext && 13008 $as_test_x conftest$ac_exeext; then 13009 ac_cv_func_truncate=yes 13010else 13011 echo "$as_me: failed program was:" >&5 13012sed 's/^/| /' conftest.$ac_ext >&5 13013 13014 ac_cv_func_truncate=no 13015fi 13016 13017rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13018 conftest$ac_exeext conftest.$ac_ext 13019fi 13020{ echo "$as_me:$LINENO: result: $ac_cv_func_truncate" >&5 13021echo "${ECHO_T}$ac_cv_func_truncate" >&6; } 13022if test $ac_cv_func_truncate = yes; then 13023 : 13024else 13025 cat >>confdefs.h <<\_ACEOF 13026#define NO_TRUNCATE 1 13027_ACEOF 13028 13029fi 13030 13031 { echo "$as_me:$LINENO: checking for waitpid" >&5 13032echo $ECHO_N "checking for waitpid... $ECHO_C" >&6; } 13033if test "${ac_cv_func_waitpid+set}" = set; then 13034 echo $ECHO_N "(cached) $ECHO_C" >&6 13035else 13036 cat >conftest.$ac_ext <<_ACEOF 13037/* confdefs.h. */ 13038_ACEOF 13039cat confdefs.h >>conftest.$ac_ext 13040cat >>conftest.$ac_ext <<_ACEOF 13041/* end confdefs.h. */ 13042/* Define waitpid to an innocuous variant, in case <limits.h> declares waitpid. 13043 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13044#define waitpid innocuous_waitpid 13045 13046/* System header to define __stub macros and hopefully few prototypes, 13047 which can conflict with char waitpid (); below. 13048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13049 <limits.h> exists even on freestanding compilers. */ 13050 13051#ifdef __STDC__ 13052# include <limits.h> 13053#else 13054# include <assert.h> 13055#endif 13056 13057#undef waitpid 13058 13059/* Override any GCC internal prototype to avoid an error. 13060 Use char because int might match the return type of a GCC 13061 builtin and then its argument prototype would still apply. */ 13062#ifdef __cplusplus 13063extern "C" 13064#endif 13065char waitpid (); 13066/* The GNU C library defines this for functions which it implements 13067 to always fail with ENOSYS. Some functions are actually named 13068 something starting with __ and the normal name is an alias. */ 13069#if defined __stub_waitpid || defined __stub___waitpid 13070choke me 13071#endif 13072 13073int 13074main () 13075{ 13076return waitpid (); 13077 ; 13078 return 0; 13079} 13080_ACEOF 13081rm -f conftest.$ac_objext conftest$ac_exeext 13082if { (ac_try="$ac_link" 13083case "(($ac_try" in 13084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13085 *) ac_try_echo=$ac_try;; 13086esac 13087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13088 (eval "$ac_link") 2>conftest.er1 13089 ac_status=$? 13090 grep -v '^ *+' conftest.er1 >conftest.err 13091 rm -f conftest.er1 13092 cat conftest.err >&5 13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13094 (exit $ac_status); } && { 13095 test -z "$ac_c_werror_flag" || 13096 test ! -s conftest.err 13097 } && test -s conftest$ac_exeext && 13098 $as_test_x conftest$ac_exeext; then 13099 ac_cv_func_waitpid=yes 13100else 13101 echo "$as_me: failed program was:" >&5 13102sed 's/^/| /' conftest.$ac_ext >&5 13103 13104 ac_cv_func_waitpid=no 13105fi 13106 13107rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13108 conftest$ac_exeext conftest.$ac_ext 13109fi 13110{ echo "$as_me:$LINENO: result: $ac_cv_func_waitpid" >&5 13111echo "${ECHO_T}$ac_cv_func_waitpid" >&6; } 13112if test $ac_cv_func_waitpid = yes; then 13113 : 13114else 13115 cat >>confdefs.h <<\_ACEOF 13116#define NO_WAITPID 1 13117_ACEOF 13118 13119fi 13120 13121 { echo "$as_me:$LINENO: checking for sysconf" >&5 13122echo $ECHO_N "checking for sysconf... $ECHO_C" >&6; } 13123if test "${ac_cv_func_sysconf+set}" = set; then 13124 echo $ECHO_N "(cached) $ECHO_C" >&6 13125else 13126 cat >conftest.$ac_ext <<_ACEOF 13127/* confdefs.h. */ 13128_ACEOF 13129cat confdefs.h >>conftest.$ac_ext 13130cat >>conftest.$ac_ext <<_ACEOF 13131/* end confdefs.h. */ 13132/* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf. 13133 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13134#define sysconf innocuous_sysconf 13135 13136/* System header to define __stub macros and hopefully few prototypes, 13137 which can conflict with char sysconf (); below. 13138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13139 <limits.h> exists even on freestanding compilers. */ 13140 13141#ifdef __STDC__ 13142# include <limits.h> 13143#else 13144# include <assert.h> 13145#endif 13146 13147#undef sysconf 13148 13149/* Override any GCC internal prototype to avoid an error. 13150 Use char because int might match the return type of a GCC 13151 builtin and then its argument prototype would still apply. */ 13152#ifdef __cplusplus 13153extern "C" 13154#endif 13155char sysconf (); 13156/* The GNU C library defines this for functions which it implements 13157 to always fail with ENOSYS. Some functions are actually named 13158 something starting with __ and the normal name is an alias. */ 13159#if defined __stub_sysconf || defined __stub___sysconf 13160choke me 13161#endif 13162 13163int 13164main () 13165{ 13166return sysconf (); 13167 ; 13168 return 0; 13169} 13170_ACEOF 13171rm -f conftest.$ac_objext conftest$ac_exeext 13172if { (ac_try="$ac_link" 13173case "(($ac_try" in 13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13175 *) ac_try_echo=$ac_try;; 13176esac 13177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13178 (eval "$ac_link") 2>conftest.er1 13179 ac_status=$? 13180 grep -v '^ *+' conftest.er1 >conftest.err 13181 rm -f conftest.er1 13182 cat conftest.err >&5 13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13184 (exit $ac_status); } && { 13185 test -z "$ac_c_werror_flag" || 13186 test ! -s conftest.err 13187 } && test -s conftest$ac_exeext && 13188 $as_test_x conftest$ac_exeext; then 13189 ac_cv_func_sysconf=yes 13190else 13191 echo "$as_me: failed program was:" >&5 13192sed 's/^/| /' conftest.$ac_ext >&5 13193 13194 ac_cv_func_sysconf=no 13195fi 13196 13197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13198 conftest$ac_exeext conftest.$ac_ext 13199fi 13200{ echo "$as_me:$LINENO: result: $ac_cv_func_sysconf" >&5 13201echo "${ECHO_T}$ac_cv_func_sysconf" >&6; } 13202if test $ac_cv_func_sysconf = yes; then 13203 : 13204else 13205 cat >>confdefs.h <<\_ACEOF 13206#define NO_SYSCONF 1 13207_ACEOF 13208 13209fi 13210 13211 13212 #------------------------------------------------------------------------- 13213 # Test for socket related functions. 13214 #------------------------------------------------------------------------- 13215 13216 { echo "$as_me:$LINENO: checking for inet_aton" >&5 13217echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } 13218if test "${ac_cv_func_inet_aton+set}" = set; then 13219 echo $ECHO_N "(cached) $ECHO_C" >&6 13220else 13221 cat >conftest.$ac_ext <<_ACEOF 13222/* confdefs.h. */ 13223_ACEOF 13224cat confdefs.h >>conftest.$ac_ext 13225cat >>conftest.$ac_ext <<_ACEOF 13226/* end confdefs.h. */ 13227/* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton. 13228 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13229#define inet_aton innocuous_inet_aton 13230 13231/* System header to define __stub macros and hopefully few prototypes, 13232 which can conflict with char inet_aton (); below. 13233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13234 <limits.h> exists even on freestanding compilers. */ 13235 13236#ifdef __STDC__ 13237# include <limits.h> 13238#else 13239# include <assert.h> 13240#endif 13241 13242#undef inet_aton 13243 13244/* Override any GCC internal prototype to avoid an error. 13245 Use char because int might match the return type of a GCC 13246 builtin and then its argument prototype would still apply. */ 13247#ifdef __cplusplus 13248extern "C" 13249#endif 13250char inet_aton (); 13251/* The GNU C library defines this for functions which it implements 13252 to always fail with ENOSYS. Some functions are actually named 13253 something starting with __ and the normal name is an alias. */ 13254#if defined __stub_inet_aton || defined __stub___inet_aton 13255choke me 13256#endif 13257 13258int 13259main () 13260{ 13261return inet_aton (); 13262 ; 13263 return 0; 13264} 13265_ACEOF 13266rm -f conftest.$ac_objext conftest$ac_exeext 13267if { (ac_try="$ac_link" 13268case "(($ac_try" in 13269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13270 *) ac_try_echo=$ac_try;; 13271esac 13272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13273 (eval "$ac_link") 2>conftest.er1 13274 ac_status=$? 13275 grep -v '^ *+' conftest.er1 >conftest.err 13276 rm -f conftest.er1 13277 cat conftest.err >&5 13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13279 (exit $ac_status); } && { 13280 test -z "$ac_c_werror_flag" || 13281 test ! -s conftest.err 13282 } && test -s conftest$ac_exeext && 13283 $as_test_x conftest$ac_exeext; then 13284 ac_cv_func_inet_aton=yes 13285else 13286 echo "$as_me: failed program was:" >&5 13287sed 's/^/| /' conftest.$ac_ext >&5 13288 13289 ac_cv_func_inet_aton=no 13290fi 13291 13292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13293 conftest$ac_exeext conftest.$ac_ext 13294fi 13295{ echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5 13296echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; } 13297if test $ac_cv_func_inet_aton = yes; then 13298 : 13299else 13300 cat >>confdefs.h <<\_ACEOF 13301#define NO_INET_ATON 1 13302_ACEOF 13303 13304fi 13305 13306 { echo "$as_me:$LINENO: checking for gethostname" >&5 13307echo $ECHO_N "checking for gethostname... $ECHO_C" >&6; } 13308if test "${ac_cv_func_gethostname+set}" = set; then 13309 echo $ECHO_N "(cached) $ECHO_C" >&6 13310else 13311 cat >conftest.$ac_ext <<_ACEOF 13312/* confdefs.h. */ 13313_ACEOF 13314cat confdefs.h >>conftest.$ac_ext 13315cat >>conftest.$ac_ext <<_ACEOF 13316/* end confdefs.h. */ 13317/* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname. 13318 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13319#define gethostname innocuous_gethostname 13320 13321/* System header to define __stub macros and hopefully few prototypes, 13322 which can conflict with char gethostname (); below. 13323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13324 <limits.h> exists even on freestanding compilers. */ 13325 13326#ifdef __STDC__ 13327# include <limits.h> 13328#else 13329# include <assert.h> 13330#endif 13331 13332#undef gethostname 13333 13334/* Override any GCC internal prototype to avoid an error. 13335 Use char because int might match the return type of a GCC 13336 builtin and then its argument prototype would still apply. */ 13337#ifdef __cplusplus 13338extern "C" 13339#endif 13340char gethostname (); 13341/* The GNU C library defines this for functions which it implements 13342 to always fail with ENOSYS. Some functions are actually named 13343 something starting with __ and the normal name is an alias. */ 13344#if defined __stub_gethostname || defined __stub___gethostname 13345choke me 13346#endif 13347 13348int 13349main () 13350{ 13351return gethostname (); 13352 ; 13353 return 0; 13354} 13355_ACEOF 13356rm -f conftest.$ac_objext conftest$ac_exeext 13357if { (ac_try="$ac_link" 13358case "(($ac_try" in 13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13360 *) ac_try_echo=$ac_try;; 13361esac 13362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13363 (eval "$ac_link") 2>conftest.er1 13364 ac_status=$? 13365 grep -v '^ *+' conftest.er1 >conftest.err 13366 rm -f conftest.er1 13367 cat conftest.err >&5 13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13369 (exit $ac_status); } && { 13370 test -z "$ac_c_werror_flag" || 13371 test ! -s conftest.err 13372 } && test -s conftest$ac_exeext && 13373 $as_test_x conftest$ac_exeext; then 13374 ac_cv_func_gethostname=yes 13375else 13376 echo "$as_me: failed program was:" >&5 13377sed 's/^/| /' conftest.$ac_ext >&5 13378 13379 ac_cv_func_gethostname=no 13380fi 13381 13382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13383 conftest$ac_exeext conftest.$ac_ext 13384fi 13385{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5 13386echo "${ECHO_T}$ac_cv_func_gethostname" >&6; } 13387if test $ac_cv_func_gethostname = yes; then 13388 : 13389else 13390 cat >>confdefs.h <<\_ACEOF 13391#define NO_GETHOSTNAME 1 13392_ACEOF 13393 13394fi 13395 13396 13397 #------------------------------------------------------------------------- 13398 # Check for additional libraries the Tcl/Tk does not check for. 13399 #------------------------------------------------------------------------- 13400 13401 # This is needed for DEC Alphas 13402 { echo "$as_me:$LINENO: checking for main in -ldnet_stub" >&5 13403echo $ECHO_N "checking for main in -ldnet_stub... $ECHO_C" >&6; } 13404if test "${ac_cv_lib_dnet_stub_main+set}" = set; then 13405 echo $ECHO_N "(cached) $ECHO_C" >&6 13406else 13407 ac_check_lib_save_LIBS=$LIBS 13408LIBS="-ldnet_stub $LIBS" 13409cat >conftest.$ac_ext <<_ACEOF 13410/* confdefs.h. */ 13411_ACEOF 13412cat confdefs.h >>conftest.$ac_ext 13413cat >>conftest.$ac_ext <<_ACEOF 13414/* end confdefs.h. */ 13415 13416 13417int 13418main () 13419{ 13420return main (); 13421 ; 13422 return 0; 13423} 13424_ACEOF 13425rm -f conftest.$ac_objext conftest$ac_exeext 13426if { (ac_try="$ac_link" 13427case "(($ac_try" in 13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13429 *) ac_try_echo=$ac_try;; 13430esac 13431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13432 (eval "$ac_link") 2>conftest.er1 13433 ac_status=$? 13434 grep -v '^ *+' conftest.er1 >conftest.err 13435 rm -f conftest.er1 13436 cat conftest.err >&5 13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13438 (exit $ac_status); } && { 13439 test -z "$ac_c_werror_flag" || 13440 test ! -s conftest.err 13441 } && test -s conftest$ac_exeext && 13442 $as_test_x conftest$ac_exeext; then 13443 ac_cv_lib_dnet_stub_main=yes 13444else 13445 echo "$as_me: failed program was:" >&5 13446sed 's/^/| /' conftest.$ac_ext >&5 13447 13448 ac_cv_lib_dnet_stub_main=no 13449fi 13450 13451rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13452 conftest$ac_exeext conftest.$ac_ext 13453LIBS=$ac_check_lib_save_LIBS 13454fi 13455{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_main" >&5 13456echo "${ECHO_T}$ac_cv_lib_dnet_stub_main" >&6; } 13457if test $ac_cv_lib_dnet_stub_main = yes; then 13458 13459 vars="-ldnet_stub" 13460 for i in $vars; do 13461 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 13462 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 13463 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 13464 fi 13465 PKG_LIBS="$PKG_LIBS $i" 13466 done 13467 13468 13469fi 13470 13471 13472 #------------------------------------------------------------------------- 13473 # Check for catgets. Not the some systems (NetBSD 1.0) have catclose 13474 # declared as type void rather than type int. 13475 #------------------------------------------------------------------------- 13476 13477 { echo "$as_me:$LINENO: checking for catgets" >&5 13478echo $ECHO_N "checking for catgets... $ECHO_C" >&6; } 13479if test "${ac_cv_func_catgets+set}" = set; then 13480 echo $ECHO_N "(cached) $ECHO_C" >&6 13481else 13482 cat >conftest.$ac_ext <<_ACEOF 13483/* confdefs.h. */ 13484_ACEOF 13485cat confdefs.h >>conftest.$ac_ext 13486cat >>conftest.$ac_ext <<_ACEOF 13487/* end confdefs.h. */ 13488/* Define catgets to an innocuous variant, in case <limits.h> declares catgets. 13489 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13490#define catgets innocuous_catgets 13491 13492/* System header to define __stub macros and hopefully few prototypes, 13493 which can conflict with char catgets (); below. 13494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13495 <limits.h> exists even on freestanding compilers. */ 13496 13497#ifdef __STDC__ 13498# include <limits.h> 13499#else 13500# include <assert.h> 13501#endif 13502 13503#undef catgets 13504 13505/* Override any GCC internal prototype to avoid an error. 13506 Use char because int might match the return type of a GCC 13507 builtin and then its argument prototype would still apply. */ 13508#ifdef __cplusplus 13509extern "C" 13510#endif 13511char catgets (); 13512/* The GNU C library defines this for functions which it implements 13513 to always fail with ENOSYS. Some functions are actually named 13514 something starting with __ and the normal name is an alias. */ 13515#if defined __stub_catgets || defined __stub___catgets 13516choke me 13517#endif 13518 13519int 13520main () 13521{ 13522return catgets (); 13523 ; 13524 return 0; 13525} 13526_ACEOF 13527rm -f conftest.$ac_objext conftest$ac_exeext 13528if { (ac_try="$ac_link" 13529case "(($ac_try" in 13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13531 *) ac_try_echo=$ac_try;; 13532esac 13533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13534 (eval "$ac_link") 2>conftest.er1 13535 ac_status=$? 13536 grep -v '^ *+' conftest.er1 >conftest.err 13537 rm -f conftest.er1 13538 cat conftest.err >&5 13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13540 (exit $ac_status); } && { 13541 test -z "$ac_c_werror_flag" || 13542 test ! -s conftest.err 13543 } && test -s conftest$ac_exeext && 13544 $as_test_x conftest$ac_exeext; then 13545 ac_cv_func_catgets=yes 13546else 13547 echo "$as_me: failed program was:" >&5 13548sed 's/^/| /' conftest.$ac_ext >&5 13549 13550 ac_cv_func_catgets=no 13551fi 13552 13553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13554 conftest$ac_exeext conftest.$ac_ext 13555fi 13556{ echo "$as_me:$LINENO: result: $ac_cv_func_catgets" >&5 13557echo "${ECHO_T}$ac_cv_func_catgets" >&6; } 13558if test $ac_cv_func_catgets = yes; then 13559 { echo "$as_me:$LINENO: checking catclose return value" >&5 13560echo $ECHO_N "checking catclose return value... $ECHO_C" >&6; } 13561 cat >conftest.$ac_ext <<_ACEOF 13562/* confdefs.h. */ 13563_ACEOF 13564cat confdefs.h >>conftest.$ac_ext 13565cat >>conftest.$ac_ext <<_ACEOF 13566/* end confdefs.h. */ 13567#include <nl_types.h> 13568int 13569main () 13570{ 13571 13572 if (catclose ((nl_catd) 0) == 0) exit (0); 13573 ; 13574 return 0; 13575} 13576_ACEOF 13577rm -f conftest.$ac_objext 13578if { (ac_try="$ac_compile" 13579case "(($ac_try" in 13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13581 *) ac_try_echo=$ac_try;; 13582esac 13583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13584 (eval "$ac_compile") 2>conftest.er1 13585 ac_status=$? 13586 grep -v '^ *+' conftest.er1 >conftest.err 13587 rm -f conftest.er1 13588 cat conftest.err >&5 13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13590 (exit $ac_status); } && { 13591 test -z "$ac_c_werror_flag" || 13592 test ! -s conftest.err 13593 } && test -s conftest.$ac_objext; then 13594 { echo "$as_me:$LINENO: result: ok" >&5 13595echo "${ECHO_T}ok" >&6; } 13596else 13597 echo "$as_me: failed program was:" >&5 13598sed 's/^/| /' conftest.$ac_ext >&5 13599 13600 13601 { echo "$as_me:$LINENO: result: broken catclose return type" >&5 13602echo "${ECHO_T}broken catclose return type" >&6; } 13603 cat >>confdefs.h <<\_ACEOF 13604#define BAD_CATCLOSE 1 13605_ACEOF 13606 13607fi 13608 13609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13610else 13611 cat >>confdefs.h <<\_ACEOF 13612#define NO_CATGETS 1 13613_ACEOF 13614 13615fi 13616 13617fi # end Unix only checks 13618 13619#------------------------------------------------------------------------------ 13620# Check for missing functions that we need. Must be done after library checks. 13621#------------------------------------------------------------------------------ 13622 13623 13624 13625{ echo "$as_me:$LINENO: checking for random" >&5 13626echo $ECHO_N "checking for random... $ECHO_C" >&6; } 13627if test "${ac_cv_func_random+set}" = set; then 13628 echo $ECHO_N "(cached) $ECHO_C" >&6 13629else 13630 cat >conftest.$ac_ext <<_ACEOF 13631/* confdefs.h. */ 13632_ACEOF 13633cat confdefs.h >>conftest.$ac_ext 13634cat >>conftest.$ac_ext <<_ACEOF 13635/* end confdefs.h. */ 13636/* Define random to an innocuous variant, in case <limits.h> declares random. 13637 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13638#define random innocuous_random 13639 13640/* System header to define __stub macros and hopefully few prototypes, 13641 which can conflict with char random (); below. 13642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13643 <limits.h> exists even on freestanding compilers. */ 13644 13645#ifdef __STDC__ 13646# include <limits.h> 13647#else 13648# include <assert.h> 13649#endif 13650 13651#undef random 13652 13653/* Override any GCC internal prototype to avoid an error. 13654 Use char because int might match the return type of a GCC 13655 builtin and then its argument prototype would still apply. */ 13656#ifdef __cplusplus 13657extern "C" 13658#endif 13659char random (); 13660/* The GNU C library defines this for functions which it implements 13661 to always fail with ENOSYS. Some functions are actually named 13662 something starting with __ and the normal name is an alias. */ 13663#if defined __stub_random || defined __stub___random 13664choke me 13665#endif 13666 13667int 13668main () 13669{ 13670return random (); 13671 ; 13672 return 0; 13673} 13674_ACEOF 13675rm -f conftest.$ac_objext conftest$ac_exeext 13676if { (ac_try="$ac_link" 13677case "(($ac_try" in 13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13679 *) ac_try_echo=$ac_try;; 13680esac 13681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13682 (eval "$ac_link") 2>conftest.er1 13683 ac_status=$? 13684 grep -v '^ *+' conftest.er1 >conftest.err 13685 rm -f conftest.er1 13686 cat conftest.err >&5 13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13688 (exit $ac_status); } && { 13689 test -z "$ac_c_werror_flag" || 13690 test ! -s conftest.err 13691 } && test -s conftest$ac_exeext && 13692 $as_test_x conftest$ac_exeext; then 13693 ac_cv_func_random=yes 13694else 13695 echo "$as_me: failed program was:" >&5 13696sed 's/^/| /' conftest.$ac_ext >&5 13697 13698 ac_cv_func_random=no 13699fi 13700 13701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13702 conftest$ac_exeext conftest.$ac_ext 13703fi 13704{ echo "$as_me:$LINENO: result: $ac_cv_func_random" >&5 13705echo "${ECHO_T}$ac_cv_func_random" >&6; } 13706if test $ac_cv_func_random = yes; then 13707 : 13708else 13709 case " $LIBOBJS " in 13710 *" random.$ac_objext "* ) ;; 13711 *) LIBOBJS="$LIBOBJS random.$ac_objext" 13712 ;; 13713esac 13714 13715 cat >>confdefs.h <<\_ACEOF 13716#define NO_RANDOM 1 13717_ACEOF 13718 13719fi 13720 13721 13722#------------------------------------------------------------------------------ 13723# Determine if random is declared in stdlib.h or math.h. If it is, we don't 13724# want to redeclare it. Some systems, such as the DEC Alpha, have random 13725# declared as returning int rather than long, since long is 64 bit. 13726#------------------------------------------------------------------------------ 13727 13728found_random=NO 13729cat >conftest.$ac_ext <<_ACEOF 13730/* confdefs.h. */ 13731_ACEOF 13732cat confdefs.h >>conftest.$ac_ext 13733cat >>conftest.$ac_ext <<_ACEOF 13734/* end confdefs.h. */ 13735#include <stdlib.h> 13736 13737_ACEOF 13738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13739 $EGREP ""random"" >/dev/null 2>&1; then 13740 found_random=YES 13741fi 13742rm -f -r conftest* 13743 13744cat >conftest.$ac_ext <<_ACEOF 13745/* confdefs.h. */ 13746_ACEOF 13747cat confdefs.h >>conftest.$ac_ext 13748cat >>conftest.$ac_ext <<_ACEOF 13749/* end confdefs.h. */ 13750#include <math.h> 13751 13752_ACEOF 13753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13754 $EGREP ""random"" >/dev/null 2>&1; then 13755 found_random=YES 13756fi 13757rm -f -r conftest* 13758 13759 13760if test "$found_random" = "NO"; then 13761 cat >>confdefs.h <<\_ACEOF 13762#define NO_RANDOM_PROTO 1 13763_ACEOF 13764 13765fi 13766 13767#------------------------------------------------------------------------- 13768# Allow --with-help to specify help file outputs 13769#------------------------------------------------------------------------- 13770{ echo "$as_me:$LINENO: checking where to place TclX help files" >&5 13771echo $ECHO_N "checking where to place TclX help files... $ECHO_C" >&6; } 13772 13773# Check whether --with-help was given. 13774if test "${with_help+set}" = set; then 13775 withval=$with_help; with_help=${withval} 13776else 13777 with_help=no 13778fi 13779 13780HELP_DIR=`pwd`/help 13781BUILDHELP= 13782if test x"${with_help}" = x"no" ; then 13783 { echo "$as_me:$LINENO: result: do not build help files" >&5 13784echo "${ECHO_T}do not build help files" >&6; } 13785else 13786 if test x"${with_help}" != x -a x"${with_help}" != x"yes" ; then 13787 # Ensure that we don't catch --with-help by itself 13788 HELP_DIR=${with_help} 13789 fi 13790 #------------------------------------------------------------------------- 13791 # Determine if we have enough tools to generate the help files. 13792 #------------------------------------------------------------------------- 13793 { echo "$as_me:$LINENO: result: ${HELP_DIR}" >&5 13794echo "${ECHO_T}${HELP_DIR}" >&6; } 13795 # Extract the first word of "nroff", so it can be a program name with args. 13796set dummy nroff; ac_word=$2 13797{ echo "$as_me:$LINENO: checking for $ac_word" >&5 13798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13799if test "${ac_cv_prog_NROFF+set}" = set; then 13800 echo $ECHO_N "(cached) $ECHO_C" >&6 13801else 13802 if test -n "$NROFF"; then 13803 ac_cv_prog_NROFF="$NROFF" # Let the user override the test. 13804else 13805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13806for as_dir in $PATH 13807do 13808 IFS=$as_save_IFS 13809 test -z "$as_dir" && as_dir=. 13810 for ac_exec_ext in '' $ac_executable_extensions; do 13811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13812 ac_cv_prog_NROFF="yes" 13813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13814 break 2 13815 fi 13816done 13817done 13818IFS=$as_save_IFS 13819 13820 test -z "$ac_cv_prog_NROFF" && ac_cv_prog_NROFF="no" 13821fi 13822fi 13823NROFF=$ac_cv_prog_NROFF 13824if test -n "$NROFF"; then 13825 { echo "$as_me:$LINENO: result: $NROFF" >&5 13826echo "${ECHO_T}$NROFF" >&6; } 13827else 13828 { echo "$as_me:$LINENO: result: no" >&5 13829echo "${ECHO_T}no" >&6; } 13830fi 13831 13832 13833 # Extract the first word of "col", so it can be a program name with args. 13834set dummy col; ac_word=$2 13835{ echo "$as_me:$LINENO: checking for $ac_word" >&5 13836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13837if test "${ac_cv_prog_COL+set}" = set; then 13838 echo $ECHO_N "(cached) $ECHO_C" >&6 13839else 13840 if test -n "$COL"; then 13841 ac_cv_prog_COL="$COL" # Let the user override the test. 13842else 13843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13844for as_dir in $PATH 13845do 13846 IFS=$as_save_IFS 13847 test -z "$as_dir" && as_dir=. 13848 for ac_exec_ext in '' $ac_executable_extensions; do 13849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13850 ac_cv_prog_COL="yes" 13851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13852 break 2 13853 fi 13854done 13855done 13856IFS=$as_save_IFS 13857 13858 test -z "$ac_cv_prog_COL" && ac_cv_prog_COL="no" 13859fi 13860fi 13861COL=$ac_cv_prog_COL 13862if test -n "$COL"; then 13863 { echo "$as_me:$LINENO: result: $COL" >&5 13864echo "${ECHO_T}$COL" >&6; } 13865else 13866 { echo "$as_me:$LINENO: result: no" >&5 13867echo "${ECHO_T}no" >&6; } 13868fi 13869 13870 13871 if test "x${NROFF}" = "xno" -o "x${COL}" = "xno" ; then 13872 { echo "$as_me:$LINENO: WARNING: nroff or col executable missing. Cannot build TclX help." >&5 13873echo "$as_me: WARNING: nroff or col executable missing. Cannot build TclX help." >&2;} 13874 else 13875 BUILDHELP=buildhelp 13876 fi 13877fi 13878 13879 13880 13881#-------------------------------------------------------------------- 13882# End of special case checks 13883#-------------------------------------------------------------------- 13884 13885#-------------------------------------------------------------------- 13886# This macro generates a line to use when building a library. It 13887# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 13888# and TEA_LOAD_TCLCONFIG macros above. 13889#-------------------------------------------------------------------- 13890 13891 13892 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 13893 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 13894 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 13895 cat >conftest.$ac_ext <<_ACEOF 13896/* confdefs.h. */ 13897_ACEOF 13898cat confdefs.h >>conftest.$ac_ext 13899cat >>conftest.$ac_ext <<_ACEOF 13900/* end confdefs.h. */ 13901 13902#if defined(_MSC_VER) && _MSC_VER >= 1400 13903print("manifest needed") 13904#endif 13905 13906_ACEOF 13907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13908 $EGREP "manifest needed" >/dev/null 2>&1; then 13909 13910 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 13911 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 13912 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 13913 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 13914 13915 CLEANFILES="$CLEANFILES *.manifest" 13916 13917 13918fi 13919rm -f -r conftest* 13920 13921 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 13922 else 13923 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 13924 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 13925 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 13926 fi 13927 13928 if test "${SHARED_BUILD}" = "1" ; then 13929 MAKE_LIB="${MAKE_SHARED_LIB} " 13930 else 13931 MAKE_LIB="${MAKE_STATIC_LIB} " 13932 fi 13933 13934 #-------------------------------------------------------------------- 13935 # Shared libraries and static libraries have different names. 13936 # Use the double eval to make sure any variables in the suffix is 13937 # substituted. (@@@ Might not be necessary anymore) 13938 #-------------------------------------------------------------------- 13939 13940 if test "${TEA_PLATFORM}" = "windows" ; then 13941 if test "${SHARED_BUILD}" = "1" ; then 13942 # We force the unresolved linking of symbols that are really in 13943 # the private libraries of Tcl and Tk. 13944 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 13945 if test x"${TK_BIN_DIR}" != x ; then 13946 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 13947 fi 13948 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 13949 else 13950 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 13951 fi 13952 # Some packages build their own stubs libraries 13953 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 13954 if test "$GCC" = "yes"; then 13955 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 13956 fi 13957 # These aren't needed on Windows (either MSVC or gcc) 13958 RANLIB=: 13959 RANLIB_STUB=: 13960 else 13961 RANLIB_STUB="${RANLIB}" 13962 if test "${SHARED_BUILD}" = "1" ; then 13963 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 13964 if test x"${TK_BIN_DIR}" != x ; then 13965 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 13966 fi 13967 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 13968 RANLIB=: 13969 else 13970 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 13971 fi 13972 # Some packages build their own stubs libraries 13973 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 13974 fi 13975 13976 # These are escaped so that only CFLAGS is picked up at configure time. 13977 # The other values will be substituted at make time. 13978 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 13979 if test "${SHARED_BUILD}" = "1" ; then 13980 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 13981 fi 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992#-------------------------------------------------------------------- 13993# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 13994# file during the install process. Don't run the TCLSH_PROG through 13995# ${CYGPATH} because it's being used directly by make. 13996# Require that we use a tclsh shell version 8.2 or later since earlier 13997# versions have bugs in the pkg_mkIndex routine. 13998# Add WISH as well if this is a Tk extension. 13999#-------------------------------------------------------------------- 14000 14001 14002 { echo "$as_me:$LINENO: checking for tclsh" >&5 14003echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 14004 if test -f "${TCL_BIN_DIR}/Makefile" ; then 14005 # tclConfig.sh is in Tcl build directory 14006 if test "${TEA_PLATFORM}" = "windows"; then 14007 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 14008 else 14009 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 14010 fi 14011 else 14012 # tclConfig.sh is in install location 14013 if test "${TEA_PLATFORM}" = "windows"; then 14014 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 14015 else 14016 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 14017 fi 14018 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 14019 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 14020 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 14021 for i in $list ; do 14022 if test -f "$i/${TCLSH_PROG}" ; then 14023 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 14024 break 14025 fi 14026 done 14027 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 14028 fi 14029 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 14030echo "${ECHO_T}${TCLSH_PROG}" >&6; } 14031 14032 14033 14034#-------------------------------------------------------------------- 14035# Finally, substitute all of the various values into the Makefile. 14036#-------------------------------------------------------------------- 14037 14038ac_config_files="$ac_config_files Makefile" 14039 14040cat >confcache <<\_ACEOF 14041# This file is a shell script that caches the results of configure 14042# tests run on this system so they can be shared between configure 14043# scripts and configure runs, see configure's option --config-cache. 14044# It is not useful on other systems. If it contains results you don't 14045# want to keep, you may remove or edit it. 14046# 14047# config.status only pays attention to the cache file if you give it 14048# the --recheck option to rerun configure. 14049# 14050# `ac_cv_env_foo' variables (set or unset) will be overridden when 14051# loading this file, other *unset* `ac_cv_foo' will be assigned the 14052# following values. 14053 14054_ACEOF 14055 14056# The following way of writing the cache mishandles newlines in values, 14057# but we know of no workaround that is simple, portable, and efficient. 14058# So, we kill variables containing newlines. 14059# Ultrix sh set writes to stderr and can't be redirected directly, 14060# and sets the high bit in the cache file unless we assign to the vars. 14061( 14062 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14063 eval ac_val=\$$ac_var 14064 case $ac_val in #( 14065 *${as_nl}*) 14066 case $ac_var in #( 14067 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 14068echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 14069 esac 14070 case $ac_var in #( 14071 _ | IFS | as_nl) ;; #( 14072 *) $as_unset $ac_var ;; 14073 esac ;; 14074 esac 14075 done 14076 14077 (set) 2>&1 | 14078 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14079 *${as_nl}ac_space=\ *) 14080 # `set' does not quote correctly, so add quotes (double-quote 14081 # substitution turns \\\\ into \\, and sed turns \\ into \). 14082 sed -n \ 14083 "s/'/'\\\\''/g; 14084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14085 ;; #( 14086 *) 14087 # `set' quotes correctly as required by POSIX, so do not add quotes. 14088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14089 ;; 14090 esac | 14091 sort 14092) | 14093 sed ' 14094 /^ac_cv_env_/b end 14095 t clear 14096 :clear 14097 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14098 t end 14099 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14100 :end' >>confcache 14101if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14102 if test -w "$cache_file"; then 14103 test "x$cache_file" != "x/dev/null" && 14104 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 14105echo "$as_me: updating cache $cache_file" >&6;} 14106 cat confcache >$cache_file 14107 else 14108 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 14109echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14110 fi 14111fi 14112rm -f confcache 14113 14114test "x$prefix" = xNONE && prefix=$ac_default_prefix 14115# Let make expand exec_prefix. 14116test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14117 14118# Transform confdefs.h into DEFS. 14119# Protect against shell expansion while executing Makefile rules. 14120# Protect against Makefile macro expansion. 14121# 14122# If the first sed substitution is executed (which looks for macros that 14123# take arguments), then branch to the quote section. Otherwise, 14124# look for a macro that doesn't take arguments. 14125ac_script=' 14126t clear 14127:clear 14128s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 14129t quote 14130s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 14131t quote 14132b any 14133:quote 14134s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 14135s/\[/\\&/g 14136s/\]/\\&/g 14137s/\$/$$/g 14138H 14139:any 14140${ 14141 g 14142 s/^\n// 14143 s/\n/ /g 14144 p 14145} 14146' 14147DEFS=`sed -n "$ac_script" confdefs.h` 14148 14149 14150 14151CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 14152 14153: ${CONFIG_STATUS=./config.status} 14154ac_clean_files_save=$ac_clean_files 14155ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14156{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 14157echo "$as_me: creating $CONFIG_STATUS" >&6;} 14158cat >$CONFIG_STATUS <<_ACEOF 14159#! $SHELL 14160# Generated by $as_me. 14161# Run this file to recreate the current configuration. 14162# Compiler output produced by configure, useful for debugging 14163# configure, is in config.log if it exists. 14164 14165debug=false 14166ac_cs_recheck=false 14167ac_cs_silent=false 14168SHELL=\${CONFIG_SHELL-$SHELL} 14169_ACEOF 14170 14171cat >>$CONFIG_STATUS <<\_ACEOF 14172## --------------------- ## 14173## M4sh Initialization. ## 14174## --------------------- ## 14175 14176# Be more Bourne compatible 14177DUALCASE=1; export DUALCASE # for MKS sh 14178if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14179 emulate sh 14180 NULLCMD=: 14181 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 14182 # is contrary to our usage. Disable this feature. 14183 alias -g '${1+"$@"}'='"$@"' 14184 setopt NO_GLOB_SUBST 14185else 14186 case `(set -o) 2>/dev/null` in 14187 *posix*) set -o posix ;; 14188esac 14189 14190fi 14191 14192 14193 14194 14195# PATH needs CR 14196# Avoid depending upon Character Ranges. 14197as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14198as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14199as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14200as_cr_digits='0123456789' 14201as_cr_alnum=$as_cr_Letters$as_cr_digits 14202 14203# The user is always right. 14204if test "${PATH_SEPARATOR+set}" != set; then 14205 echo "#! /bin/sh" >conf$$.sh 14206 echo "exit 0" >>conf$$.sh 14207 chmod +x conf$$.sh 14208 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 14209 PATH_SEPARATOR=';' 14210 else 14211 PATH_SEPARATOR=: 14212 fi 14213 rm -f conf$$.sh 14214fi 14215 14216# Support unset when possible. 14217if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14218 as_unset=unset 14219else 14220 as_unset=false 14221fi 14222 14223 14224# IFS 14225# We need space, tab and new line, in precisely that order. Quoting is 14226# there to prevent editors from complaining about space-tab. 14227# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14228# splitting by setting IFS to empty value.) 14229as_nl=' 14230' 14231IFS=" "" $as_nl" 14232 14233# Find who we are. Look in the path if we contain no directory separator. 14234case $0 in 14235 *[\\/]* ) as_myself=$0 ;; 14236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14237for as_dir in $PATH 14238do 14239 IFS=$as_save_IFS 14240 test -z "$as_dir" && as_dir=. 14241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14242done 14243IFS=$as_save_IFS 14244 14245 ;; 14246esac 14247# We did not find ourselves, most probably we were run as `sh COMMAND' 14248# in which case we are not to be found in the path. 14249if test "x$as_myself" = x; then 14250 as_myself=$0 14251fi 14252if test ! -f "$as_myself"; then 14253 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14254 { (exit 1); exit 1; } 14255fi 14256 14257# Work around bugs in pre-3.0 UWIN ksh. 14258for as_var in ENV MAIL MAILPATH 14259do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 14260done 14261PS1='$ ' 14262PS2='> ' 14263PS4='+ ' 14264 14265# NLS nuisances. 14266for as_var in \ 14267 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 14268 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 14269 LC_TELEPHONE LC_TIME 14270do 14271 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 14272 eval $as_var=C; export $as_var 14273 else 14274 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 14275 fi 14276done 14277 14278# Required to use basename. 14279if expr a : '\(a\)' >/dev/null 2>&1 && 14280 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14281 as_expr=expr 14282else 14283 as_expr=false 14284fi 14285 14286if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14287 as_basename=basename 14288else 14289 as_basename=false 14290fi 14291 14292 14293# Name of the executable. 14294as_me=`$as_basename -- "$0" || 14295$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14296 X"$0" : 'X\(//\)$' \| \ 14297 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14298echo X/"$0" | 14299 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14300 s//\1/ 14301 q 14302 } 14303 /^X\/\(\/\/\)$/{ 14304 s//\1/ 14305 q 14306 } 14307 /^X\/\(\/\).*/{ 14308 s//\1/ 14309 q 14310 } 14311 s/.*/./; q'` 14312 14313# CDPATH. 14314$as_unset CDPATH 14315 14316 14317 14318 as_lineno_1=$LINENO 14319 as_lineno_2=$LINENO 14320 test "x$as_lineno_1" != "x$as_lineno_2" && 14321 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 14322 14323 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 14324 # uniformly replaced by the line number. The first 'sed' inserts a 14325 # line-number line after each line using $LINENO; the second 'sed' 14326 # does the real work. The second script uses 'N' to pair each 14327 # line-number line with the line containing $LINENO, and appends 14328 # trailing '-' during substitution so that $LINENO is not a special 14329 # case at line end. 14330 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 14331 # scripts with optimization help from Paolo Bonzini. Blame Lee 14332 # E. McMahon (1931-1989) for sed's syntax. :-) 14333 sed -n ' 14334 p 14335 /[$]LINENO/= 14336 ' <$as_myself | 14337 sed ' 14338 s/[$]LINENO.*/&-/ 14339 t lineno 14340 b 14341 :lineno 14342 N 14343 :loop 14344 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 14345 t loop 14346 s/-\n.*// 14347 ' >$as_me.lineno && 14348 chmod +x "$as_me.lineno" || 14349 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 14350 { (exit 1); exit 1; }; } 14351 14352 # Don't try to exec as it changes $[0], causing all sort of problems 14353 # (the dirname of $[0] is not the place where we might find the 14354 # original and so on. Autoconf is especially sensitive to this). 14355 . "./$as_me.lineno" 14356 # Exit status is that of the last command. 14357 exit 14358} 14359 14360 14361if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14362 as_dirname=dirname 14363else 14364 as_dirname=false 14365fi 14366 14367ECHO_C= ECHO_N= ECHO_T= 14368case `echo -n x` in 14369-n*) 14370 case `echo 'x\c'` in 14371 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14372 *) ECHO_C='\c';; 14373 esac;; 14374*) 14375 ECHO_N='-n';; 14376esac 14377 14378if expr a : '\(a\)' >/dev/null 2>&1 && 14379 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14380 as_expr=expr 14381else 14382 as_expr=false 14383fi 14384 14385rm -f conf$$ conf$$.exe conf$$.file 14386if test -d conf$$.dir; then 14387 rm -f conf$$.dir/conf$$.file 14388else 14389 rm -f conf$$.dir 14390 mkdir conf$$.dir 14391fi 14392echo >conf$$.file 14393if ln -s conf$$.file conf$$ 2>/dev/null; then 14394 as_ln_s='ln -s' 14395 # ... but there are two gotchas: 14396 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14397 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14398 # In both cases, we have to default to `cp -p'. 14399 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14400 as_ln_s='cp -p' 14401elif ln conf$$.file conf$$ 2>/dev/null; then 14402 as_ln_s=ln 14403else 14404 as_ln_s='cp -p' 14405fi 14406rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14407rmdir conf$$.dir 2>/dev/null 14408 14409if mkdir -p . 2>/dev/null; then 14410 as_mkdir_p=: 14411else 14412 test -d ./-p && rmdir ./-p 14413 as_mkdir_p=false 14414fi 14415 14416if test -x / >/dev/null 2>&1; then 14417 as_test_x='test -x' 14418else 14419 if ls -dL / >/dev/null 2>&1; then 14420 as_ls_L_option=L 14421 else 14422 as_ls_L_option= 14423 fi 14424 as_test_x=' 14425 eval sh -c '\'' 14426 if test -d "$1"; then 14427 test -d "$1/."; 14428 else 14429 case $1 in 14430 -*)set "./$1";; 14431 esac; 14432 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 14433 ???[sx]*):;;*)false;;esac;fi 14434 '\'' sh 14435 ' 14436fi 14437as_executable_p=$as_test_x 14438 14439# Sed expression to map a string onto a valid CPP name. 14440as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14441 14442# Sed expression to map a string onto a valid variable name. 14443as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14444 14445 14446exec 6>&1 14447 14448# Save the log message, to keep $[0] and so on meaningful, and to 14449# report actual input values of CONFIG_FILES etc. instead of their 14450# values after options handling. 14451ac_log=" 14452This file was extended by tclx $as_me 8.4, which was 14453generated by GNU Autoconf 2.61. Invocation command line was 14454 14455 CONFIG_FILES = $CONFIG_FILES 14456 CONFIG_HEADERS = $CONFIG_HEADERS 14457 CONFIG_LINKS = $CONFIG_LINKS 14458 CONFIG_COMMANDS = $CONFIG_COMMANDS 14459 $ $0 $@ 14460 14461on `(hostname || uname -n) 2>/dev/null | sed 1q` 14462" 14463 14464_ACEOF 14465 14466cat >>$CONFIG_STATUS <<_ACEOF 14467# Files that config.status was made for. 14468config_files="$ac_config_files" 14469 14470_ACEOF 14471 14472cat >>$CONFIG_STATUS <<\_ACEOF 14473ac_cs_usage="\ 14474\`$as_me' instantiates files from templates according to the 14475current configuration. 14476 14477Usage: $0 [OPTIONS] [FILE]... 14478 14479 -h, --help print this help, then exit 14480 -V, --version print version number and configuration settings, then exit 14481 -q, --quiet do not print progress messages 14482 -d, --debug don't remove temporary files 14483 --recheck update $as_me by reconfiguring in the same conditions 14484 --file=FILE[:TEMPLATE] 14485 instantiate the configuration file FILE 14486 14487Configuration files: 14488$config_files 14489 14490Report bugs to <bug-autoconf@gnu.org>." 14491 14492_ACEOF 14493cat >>$CONFIG_STATUS <<_ACEOF 14494ac_cs_version="\\ 14495tclx config.status 8.4 14496configured by $0, generated by GNU Autoconf 2.61, 14497 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14498 14499Copyright (C) 2006 Free Software Foundation, Inc. 14500This config.status script is free software; the Free Software Foundation 14501gives unlimited permission to copy, distribute and modify it." 14502 14503ac_pwd='$ac_pwd' 14504srcdir='$srcdir' 14505INSTALL='$INSTALL' 14506_ACEOF 14507 14508cat >>$CONFIG_STATUS <<\_ACEOF 14509# If no file are specified by the user, then we need to provide default 14510# value. By we need to know if files were specified by the user. 14511ac_need_defaults=: 14512while test $# != 0 14513do 14514 case $1 in 14515 --*=*) 14516 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14517 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14518 ac_shift=: 14519 ;; 14520 *) 14521 ac_option=$1 14522 ac_optarg=$2 14523 ac_shift=shift 14524 ;; 14525 esac 14526 14527 case $ac_option in 14528 # Handling of the options. 14529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14530 ac_cs_recheck=: ;; 14531 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14532 echo "$ac_cs_version"; exit ;; 14533 --debug | --debu | --deb | --de | --d | -d ) 14534 debug=: ;; 14535 --file | --fil | --fi | --f ) 14536 $ac_shift 14537 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 14538 ac_need_defaults=false;; 14539 --he | --h | --help | --hel | -h ) 14540 echo "$ac_cs_usage"; exit ;; 14541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14542 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14543 ac_cs_silent=: ;; 14544 14545 # This is an error. 14546 -*) { echo "$as_me: error: unrecognized option: $1 14547Try \`$0 --help' for more information." >&2 14548 { (exit 1); exit 1; }; } ;; 14549 14550 *) ac_config_targets="$ac_config_targets $1" 14551 ac_need_defaults=false ;; 14552 14553 esac 14554 shift 14555done 14556 14557ac_configure_extra_args= 14558 14559if $ac_cs_silent; then 14560 exec 6>/dev/null 14561 ac_configure_extra_args="$ac_configure_extra_args --silent" 14562fi 14563 14564_ACEOF 14565cat >>$CONFIG_STATUS <<_ACEOF 14566if \$ac_cs_recheck; then 14567 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 14568 CONFIG_SHELL=$SHELL 14569 export CONFIG_SHELL 14570 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14571fi 14572 14573_ACEOF 14574cat >>$CONFIG_STATUS <<\_ACEOF 14575exec 5>>config.log 14576{ 14577 echo 14578 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14579## Running $as_me. ## 14580_ASBOX 14581 echo "$ac_log" 14582} >&5 14583 14584_ACEOF 14585cat >>$CONFIG_STATUS <<_ACEOF 14586_ACEOF 14587 14588cat >>$CONFIG_STATUS <<\_ACEOF 14589 14590# Handling of arguments. 14591for ac_config_target in $ac_config_targets 14592do 14593 case $ac_config_target in 14594 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14595 14596 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14597echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14598 { (exit 1); exit 1; }; };; 14599 esac 14600done 14601 14602 14603# If the user did not use the arguments to specify the items to instantiate, 14604# then the envvar interface is used. Set only those that are not. 14605# We use the long form for the default assignment because of an extremely 14606# bizarre bug on SunOS 4.1.3. 14607if $ac_need_defaults; then 14608 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14609fi 14610 14611# Have a temporary directory for convenience. Make it in the build tree 14612# simply because there is no reason against having it here, and in addition, 14613# creating and moving files from /tmp can sometimes cause problems. 14614# Hook for its removal unless debugging. 14615# Note that there is a small window in which the directory will not be cleaned: 14616# after its creation but before its name has been assigned to `$tmp'. 14617$debug || 14618{ 14619 tmp= 14620 trap 'exit_status=$? 14621 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14622' 0 14623 trap '{ (exit 1); exit 1; }' 1 2 13 15 14624} 14625# Create a (secure) tmp directory for tmp files. 14626 14627{ 14628 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14629 test -n "$tmp" && test -d "$tmp" 14630} || 14631{ 14632 tmp=./conf$$-$RANDOM 14633 (umask 077 && mkdir "$tmp") 14634} || 14635{ 14636 echo "$me: cannot create a temporary directory in ." >&2 14637 { (exit 1); exit 1; } 14638} 14639 14640# 14641# Set up the sed scripts for CONFIG_FILES section. 14642# 14643 14644# No need to generate the scripts if there are no CONFIG_FILES. 14645# This happens for instance when ./config.status config.h 14646if test -n "$CONFIG_FILES"; then 14647 14648_ACEOF 14649 14650 14651 14652ac_delim='%!_!# ' 14653for ac_last_try in false false false false false :; do 14654 cat >conf$$subs.sed <<_ACEOF 14655SHELL!$SHELL$ac_delim 14656PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 14657PACKAGE_NAME!$PACKAGE_NAME$ac_delim 14658PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 14659PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 14660PACKAGE_STRING!$PACKAGE_STRING$ac_delim 14661PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 14662exec_prefix!$exec_prefix$ac_delim 14663prefix!$prefix$ac_delim 14664program_transform_name!$program_transform_name$ac_delim 14665bindir!$bindir$ac_delim 14666sbindir!$sbindir$ac_delim 14667libexecdir!$libexecdir$ac_delim 14668datarootdir!$datarootdir$ac_delim 14669datadir!$datadir$ac_delim 14670sysconfdir!$sysconfdir$ac_delim 14671sharedstatedir!$sharedstatedir$ac_delim 14672localstatedir!$localstatedir$ac_delim 14673includedir!$includedir$ac_delim 14674oldincludedir!$oldincludedir$ac_delim 14675docdir!$docdir$ac_delim 14676infodir!$infodir$ac_delim 14677htmldir!$htmldir$ac_delim 14678dvidir!$dvidir$ac_delim 14679pdfdir!$pdfdir$ac_delim 14680psdir!$psdir$ac_delim 14681libdir!$libdir$ac_delim 14682localedir!$localedir$ac_delim 14683mandir!$mandir$ac_delim 14684DEFS!$DEFS$ac_delim 14685ECHO_C!$ECHO_C$ac_delim 14686ECHO_N!$ECHO_N$ac_delim 14687ECHO_T!$ECHO_T$ac_delim 14688LIBS!$LIBS$ac_delim 14689build_alias!$build_alias$ac_delim 14690host_alias!$host_alias$ac_delim 14691target_alias!$target_alias$ac_delim 14692CYGPATH!$CYGPATH$ac_delim 14693EXEEXT!$EXEEXT$ac_delim 14694PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 14695PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 14696PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 14697PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 14698PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 14699PKG_HEADERS!$PKG_HEADERS$ac_delim 14700PKG_INCLUDES!$PKG_INCLUDES$ac_delim 14701PKG_LIBS!$PKG_LIBS$ac_delim 14702PKG_CFLAGS!$PKG_CFLAGS$ac_delim 14703TCL_VERSION!$TCL_VERSION$ac_delim 14704TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 14705TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 14706TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 14707TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 14708TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 14709TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 14710TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 14711TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 14712TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 14713CLEANFILES!$CLEANFILES$ac_delim 14714TCL_LIBS!$TCL_LIBS$ac_delim 14715TCL_DEFS!$TCL_DEFS$ac_delim 14716TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 14717TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 14718TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 14719CC!$CC$ac_delim 14720CFLAGS!$CFLAGS$ac_delim 14721LDFLAGS!$LDFLAGS$ac_delim 14722CPPFLAGS!$CPPFLAGS$ac_delim 14723ac_ct_CC!$ac_ct_CC$ac_delim 14724OBJEXT!$OBJEXT$ac_delim 14725CPP!$CPP$ac_delim 14726INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 14727INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 14728INSTALL_DATA!$INSTALL_DATA$ac_delim 14729SET_MAKE!$SET_MAKE$ac_delim 14730RANLIB!$RANLIB$ac_delim 14731GREP!$GREP$ac_delim 14732EGREP!$EGREP$ac_delim 14733MATH_LIBS!$MATH_LIBS$ac_delim 14734PKG_SOURCES!$PKG_SOURCES$ac_delim 14735PKG_OBJECTS!$PKG_OBJECTS$ac_delim 14736TCL_INCLUDES!$TCL_INCLUDES$ac_delim 14737TCL_TOP_DIR_NATIVE!$TCL_TOP_DIR_NATIVE$ac_delim 14738TCL_THREADS!$TCL_THREADS$ac_delim 14739SHARED_BUILD!$SHARED_BUILD$ac_delim 14740AR!$AR$ac_delim 14741CELIB_DIR!$CELIB_DIR$ac_delim 14742CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 14743CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 14744CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 14745STLIB_LD!$STLIB_LD$ac_delim 14746SHLIB_LD!$SHLIB_LD$ac_delim 14747SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 14748SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 14749LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 14750CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 14751LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 14752_ACEOF 14753 14754 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 14755 break 14756 elif $ac_last_try; then 14757 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14758echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14759 { (exit 1); exit 1; }; } 14760 else 14761 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14762 fi 14763done 14764 14765ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 14766if test -n "$ac_eof"; then 14767 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 14768 ac_eof=`expr $ac_eof + 1` 14769fi 14770 14771cat >>$CONFIG_STATUS <<_ACEOF 14772cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 14773/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14774_ACEOF 14775sed ' 14776s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 14777s/^/s,@/; s/!/@,|#_!!_#|/ 14778:n 14779t n 14780s/'"$ac_delim"'$/,g/; t 14781s/$/\\/; p 14782N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 14783' >>$CONFIG_STATUS <conf$$subs.sed 14784rm -f conf$$subs.sed 14785cat >>$CONFIG_STATUS <<_ACEOF 14786CEOF$ac_eof 14787_ACEOF 14788 14789 14790ac_delim='%!_!# ' 14791for ac_last_try in false false false false false :; do 14792 cat >conf$$subs.sed <<_ACEOF 14793TCL_DBGX!$TCL_DBGX$ac_delim 14794LIBOBJS!$LIBOBJS$ac_delim 14795NROFF!$NROFF$ac_delim 14796COL!$COL$ac_delim 14797BUILDHELP!$BUILDHELP$ac_delim 14798HELP_DIR!$HELP_DIR$ac_delim 14799MAKE_LIB!$MAKE_LIB$ac_delim 14800MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 14801MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 14802MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 14803RANLIB_STUB!$RANLIB_STUB$ac_delim 14804VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 14805VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 14806TCLSH_PROG!$TCLSH_PROG$ac_delim 14807_ACEOF 14808 14809 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then 14810 break 14811 elif $ac_last_try; then 14812 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14813echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14814 { (exit 1); exit 1; }; } 14815 else 14816 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14817 fi 14818done 14819 14820ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 14821if test -n "$ac_eof"; then 14822 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 14823 ac_eof=`expr $ac_eof + 1` 14824fi 14825 14826cat >>$CONFIG_STATUS <<_ACEOF 14827cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 14828/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 14829_ACEOF 14830sed ' 14831s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 14832s/^/s,@/; s/!/@,|#_!!_#|/ 14833:n 14834t n 14835s/'"$ac_delim"'$/,g/; t 14836s/$/\\/; p 14837N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 14838' >>$CONFIG_STATUS <conf$$subs.sed 14839rm -f conf$$subs.sed 14840cat >>$CONFIG_STATUS <<_ACEOF 14841:end 14842s/|#_!!_#|//g 14843CEOF$ac_eof 14844_ACEOF 14845 14846 14847# VPATH may cause trouble with some makes, so we remove $(srcdir), 14848# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14849# trailing colons and then remove the whole line if VPATH becomes empty 14850# (actually we leave an empty line to preserve line numbers). 14851if test "x$srcdir" = x.; then 14852 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14853s/:*\$(srcdir):*/:/ 14854s/:*\${srcdir}:*/:/ 14855s/:*@srcdir@:*/:/ 14856s/^\([^=]*=[ ]*\):*/\1/ 14857s/:*$// 14858s/^[^=]*=[ ]*$// 14859}' 14860fi 14861 14862cat >>$CONFIG_STATUS <<\_ACEOF 14863fi # test -n "$CONFIG_FILES" 14864 14865 14866for ac_tag in :F $CONFIG_FILES 14867do 14868 case $ac_tag in 14869 :[FHLC]) ac_mode=$ac_tag; continue;; 14870 esac 14871 case $ac_mode$ac_tag in 14872 :[FHL]*:*);; 14873 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 14874echo "$as_me: error: Invalid tag $ac_tag." >&2;} 14875 { (exit 1); exit 1; }; };; 14876 :[FH]-) ac_tag=-:-;; 14877 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14878 esac 14879 ac_save_IFS=$IFS 14880 IFS=: 14881 set x $ac_tag 14882 IFS=$ac_save_IFS 14883 shift 14884 ac_file=$1 14885 shift 14886 14887 case $ac_mode in 14888 :L) ac_source=$1;; 14889 :[FH]) 14890 ac_file_inputs= 14891 for ac_f 14892 do 14893 case $ac_f in 14894 -) ac_f="$tmp/stdin";; 14895 *) # Look for the file first in the build tree, then in the source tree 14896 # (if the path is not absolute). The absolute path cannot be DOS-style, 14897 # because $ac_f cannot contain `:'. 14898 test -f "$ac_f" || 14899 case $ac_f in 14900 [\\/$]*) false;; 14901 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14902 esac || 14903 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14904echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14905 { (exit 1); exit 1; }; };; 14906 esac 14907 ac_file_inputs="$ac_file_inputs $ac_f" 14908 done 14909 14910 # Let's still pretend it is `configure' which instantiates (i.e., don't 14911 # use $as_me), people would be surprised to read: 14912 # /* config.h. Generated by config.status. */ 14913 configure_input="Generated from "`IFS=: 14914 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 14915 if test x"$ac_file" != x-; then 14916 configure_input="$ac_file. $configure_input" 14917 { echo "$as_me:$LINENO: creating $ac_file" >&5 14918echo "$as_me: creating $ac_file" >&6;} 14919 fi 14920 14921 case $ac_tag in 14922 *:-:* | *:-) cat >"$tmp/stdin";; 14923 esac 14924 ;; 14925 esac 14926 14927 ac_dir=`$as_dirname -- "$ac_file" || 14928$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14929 X"$ac_file" : 'X\(//\)[^/]' \| \ 14930 X"$ac_file" : 'X\(//\)$' \| \ 14931 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14932echo X"$ac_file" | 14933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14934 s//\1/ 14935 q 14936 } 14937 /^X\(\/\/\)[^/].*/{ 14938 s//\1/ 14939 q 14940 } 14941 /^X\(\/\/\)$/{ 14942 s//\1/ 14943 q 14944 } 14945 /^X\(\/\).*/{ 14946 s//\1/ 14947 q 14948 } 14949 s/.*/./; q'` 14950 { as_dir="$ac_dir" 14951 case $as_dir in #( 14952 -*) as_dir=./$as_dir;; 14953 esac 14954 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14955 as_dirs= 14956 while :; do 14957 case $as_dir in #( 14958 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 14959 *) as_qdir=$as_dir;; 14960 esac 14961 as_dirs="'$as_qdir' $as_dirs" 14962 as_dir=`$as_dirname -- "$as_dir" || 14963$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14964 X"$as_dir" : 'X\(//\)[^/]' \| \ 14965 X"$as_dir" : 'X\(//\)$' \| \ 14966 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14967echo X"$as_dir" | 14968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14969 s//\1/ 14970 q 14971 } 14972 /^X\(\/\/\)[^/].*/{ 14973 s//\1/ 14974 q 14975 } 14976 /^X\(\/\/\)$/{ 14977 s//\1/ 14978 q 14979 } 14980 /^X\(\/\).*/{ 14981 s//\1/ 14982 q 14983 } 14984 s/.*/./; q'` 14985 test -d "$as_dir" && break 14986 done 14987 test -z "$as_dirs" || eval "mkdir $as_dirs" 14988 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14989echo "$as_me: error: cannot create directory $as_dir" >&2;} 14990 { (exit 1); exit 1; }; }; } 14991 ac_builddir=. 14992 14993case "$ac_dir" in 14994.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14995*) 14996 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14997 # A ".." for each directory in $ac_dir_suffix. 14998 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 14999 case $ac_top_builddir_sub in 15000 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15001 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15002 esac ;; 15003esac 15004ac_abs_top_builddir=$ac_pwd 15005ac_abs_builddir=$ac_pwd$ac_dir_suffix 15006# for backward compatibility: 15007ac_top_builddir=$ac_top_build_prefix 15008 15009case $srcdir in 15010 .) # We are building in place. 15011 ac_srcdir=. 15012 ac_top_srcdir=$ac_top_builddir_sub 15013 ac_abs_top_srcdir=$ac_pwd ;; 15014 [\\/]* | ?:[\\/]* ) # Absolute name. 15015 ac_srcdir=$srcdir$ac_dir_suffix; 15016 ac_top_srcdir=$srcdir 15017 ac_abs_top_srcdir=$srcdir ;; 15018 *) # Relative name. 15019 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15020 ac_top_srcdir=$ac_top_build_prefix$srcdir 15021 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15022esac 15023ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15024 15025 15026 case $ac_mode in 15027 :F) 15028 # 15029 # CONFIG_FILE 15030 # 15031 15032 case $INSTALL in 15033 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15034 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15035 esac 15036_ACEOF 15037 15038cat >>$CONFIG_STATUS <<\_ACEOF 15039# If the template does not know about datarootdir, expand it. 15040# FIXME: This hack should be removed a few years after 2.60. 15041ac_datarootdir_hack=; ac_datarootdir_seen= 15042 15043case `sed -n '/datarootdir/ { 15044 p 15045 q 15046} 15047/@datadir@/p 15048/@docdir@/p 15049/@infodir@/p 15050/@localedir@/p 15051/@mandir@/p 15052' $ac_file_inputs` in 15053*datarootdir*) ac_datarootdir_seen=yes;; 15054*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15055 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15056echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15057_ACEOF 15058cat >>$CONFIG_STATUS <<_ACEOF 15059 ac_datarootdir_hack=' 15060 s&@datadir@&$datadir&g 15061 s&@docdir@&$docdir&g 15062 s&@infodir@&$infodir&g 15063 s&@localedir@&$localedir&g 15064 s&@mandir@&$mandir&g 15065 s&\\\${datarootdir}&$datarootdir&g' ;; 15066esac 15067_ACEOF 15068 15069# Neutralize VPATH when `$srcdir' = `.'. 15070# Shell code in configure.ac might set extrasub. 15071# FIXME: do we really want to maintain this feature? 15072cat >>$CONFIG_STATUS <<_ACEOF 15073 sed "$ac_vpsub 15074$extrasub 15075_ACEOF 15076cat >>$CONFIG_STATUS <<\_ACEOF 15077:t 15078/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15079s&@configure_input@&$configure_input&;t t 15080s&@top_builddir@&$ac_top_builddir_sub&;t t 15081s&@srcdir@&$ac_srcdir&;t t 15082s&@abs_srcdir@&$ac_abs_srcdir&;t t 15083s&@top_srcdir@&$ac_top_srcdir&;t t 15084s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15085s&@builddir@&$ac_builddir&;t t 15086s&@abs_builddir@&$ac_abs_builddir&;t t 15087s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15088s&@INSTALL@&$ac_INSTALL&;t t 15089$ac_datarootdir_hack 15090" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 15091 15092test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15093 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 15094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 15095 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15096which seems to be undefined. Please make sure it is defined." >&5 15097echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15098which seems to be undefined. Please make sure it is defined." >&2;} 15099 15100 rm -f "$tmp/stdin" 15101 case $ac_file in 15102 -) cat "$tmp/out"; rm -f "$tmp/out";; 15103 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 15104 esac 15105 ;; 15106 15107 15108 15109 esac 15110 15111done # for ac_tag 15112 15113 15114{ (exit 0); exit 0; } 15115_ACEOF 15116chmod +x $CONFIG_STATUS 15117ac_clean_files=$ac_clean_files_save 15118 15119 15120# configure is writing to config.log, and then calls config.status. 15121# config.status does its own redirection, appending to config.log. 15122# Unfortunately, on DOS this fails, as config.log is still kept open 15123# by configure, so config.status won't be able to write to it; its 15124# output is simply discarded. So we exec the FD to /dev/null, 15125# effectively closing config.log, so it can be properly (re)opened and 15126# appended to by config.status. When coming back to configure, we 15127# need to make the FD available again. 15128if test "$no_create" != yes; then 15129 ac_cs_success=: 15130 ac_config_status_args= 15131 test "$silent" = yes && 15132 ac_config_status_args="$ac_config_status_args --quiet" 15133 exec 5>/dev/null 15134 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15135 exec 5>>config.log 15136 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15137 # would make configure fail if this is the last instruction. 15138 $ac_cs_success || { (exit 1); exit 1; } 15139fi 15140 15141