1#! /bin/sh 2# From configure.in Id: configure.in 267 2010-06-04 09:58:55Z nijtmans . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61 for tkimggif 1.4. 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be more Bourne compatible 15DUALCASE=1; export DUALCASE # for MKS sh 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23else 24 case `(set -o) 2>/dev/null` in 25 *posix*) set -o posix ;; 26esac 27 28fi 29 30 31 32 33# PATH needs CR 34# Avoid depending upon Character Ranges. 35as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37as_cr_Letters=$as_cr_letters$as_cr_LETTERS 38as_cr_digits='0123456789' 39as_cr_alnum=$as_cr_Letters$as_cr_digits 40 41# The user is always right. 42if test "${PATH_SEPARATOR+set}" != set; then 43 echo "#! /bin/sh" >conf$$.sh 44 echo "exit 0" >>conf$$.sh 45 chmod +x conf$$.sh 46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 47 PATH_SEPARATOR=';' 48 else 49 PATH_SEPARATOR=: 50 fi 51 rm -f conf$$.sh 52fi 53 54# Support unset when possible. 55if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 56 as_unset=unset 57else 58 as_unset=false 59fi 60 61 62# IFS 63# We need space, tab and new line, in precisely that order. Quoting is 64# there to prevent editors from complaining about space-tab. 65# (If _AS_PATH_WALK were called with IFS unset, it would disable word 66# splitting by setting IFS to empty value.) 67as_nl=' 68' 69IFS=" "" $as_nl" 70 71# Find who we are. Look in the path if we contain no directory separator. 72case $0 in 73 *[\\/]* ) as_myself=$0 ;; 74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 75for as_dir in $PATH 76do 77 IFS=$as_save_IFS 78 test -z "$as_dir" && as_dir=. 79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 80done 81IFS=$as_save_IFS 82 83 ;; 84esac 85# We did not find ourselves, most probably we were run as `sh COMMAND' 86# in which case we are not to be found in the path. 87if test "x$as_myself" = x; then 88 as_myself=$0 89fi 90if test ! -f "$as_myself"; then 91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 92 { (exit 1); exit 1; } 93fi 94 95# Work around bugs in pre-3.0 UWIN ksh. 96for as_var in ENV MAIL MAILPATH 97do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 98done 99PS1='$ ' 100PS2='> ' 101PS4='+ ' 102 103# NLS nuisances. 104for as_var in \ 105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 107 LC_TELEPHONE LC_TIME 108do 109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 110 eval $as_var=C; export $as_var 111 else 112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 113 fi 114done 115 116# Required to use basename. 117if expr a : '\(a\)' >/dev/null 2>&1 && 118 test "X`expr 00001 : '.*\(...\)'`" = X001; then 119 as_expr=expr 120else 121 as_expr=false 122fi 123 124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 125 as_basename=basename 126else 127 as_basename=false 128fi 129 130 131# Name of the executable. 132as_me=`$as_basename -- "$0" || 133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 134 X"$0" : 'X\(//\)$' \| \ 135 X"$0" : 'X\(/\)' \| . 2>/dev/null || 136echo X/"$0" | 137 sed '/^.*\/\([^/][^/]*\)\/*$/{ 138 s//\1/ 139 q 140 } 141 /^X\/\(\/\/\)$/{ 142 s//\1/ 143 q 144 } 145 /^X\/\(\/\).*/{ 146 s//\1/ 147 q 148 } 149 s/.*/./; q'` 150 151# CDPATH. 152$as_unset CDPATH 153 154 155if test "x$CONFIG_SHELL" = x; then 156 if (eval ":") 2>/dev/null; then 157 as_have_required=yes 158else 159 as_have_required=no 160fi 161 162 if test $as_have_required = yes && (eval ": 163(as_func_return () { 164 (exit \$1) 165} 166as_func_success () { 167 as_func_return 0 168} 169as_func_failure () { 170 as_func_return 1 171} 172as_func_ret_success () { 173 return 0 174} 175as_func_ret_failure () { 176 return 1 177} 178 179exitcode=0 180if as_func_success; then 181 : 182else 183 exitcode=1 184 echo as_func_success failed. 185fi 186 187if as_func_failure; then 188 exitcode=1 189 echo as_func_failure succeeded. 190fi 191 192if as_func_ret_success; then 193 : 194else 195 exitcode=1 196 echo as_func_ret_success failed. 197fi 198 199if as_func_ret_failure; then 200 exitcode=1 201 echo as_func_ret_failure succeeded. 202fi 203 204if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 205 : 206else 207 exitcode=1 208 echo positional parameters were not saved. 209fi 210 211test \$exitcode = 0) || { (exit 1); exit 1; } 212 213( 214 as_lineno_1=\$LINENO 215 as_lineno_2=\$LINENO 216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 218") 2> /dev/null; then 219 : 220else 221 as_candidate_shells= 222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 223for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 224do 225 IFS=$as_save_IFS 226 test -z "$as_dir" && as_dir=. 227 case $as_dir in 228 /*) 229 for as_base in sh bash ksh sh5; do 230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 231 done;; 232 esac 233done 234IFS=$as_save_IFS 235 236 237 for as_shell in $as_candidate_shells $SHELL; do 238 # Try only shells that exist, to save several forks. 239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 240 { ("$as_shell") 2> /dev/null <<\_ASEOF 241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 242 emulate sh 243 NULLCMD=: 244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 245 # is contrary to our usage. Disable this feature. 246 alias -g '${1+"$@"}'='"$@"' 247 setopt NO_GLOB_SUBST 248else 249 case `(set -o) 2>/dev/null` in 250 *posix*) set -o posix ;; 251esac 252 253fi 254 255 256: 257_ASEOF 258}; then 259 CONFIG_SHELL=$as_shell 260 as_have_required=yes 261 if { "$as_shell" 2> /dev/null <<\_ASEOF 262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 263 emulate sh 264 NULLCMD=: 265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 266 # is contrary to our usage. Disable this feature. 267 alias -g '${1+"$@"}'='"$@"' 268 setopt NO_GLOB_SUBST 269else 270 case `(set -o) 2>/dev/null` in 271 *posix*) set -o posix ;; 272esac 273 274fi 275 276 277: 278(as_func_return () { 279 (exit $1) 280} 281as_func_success () { 282 as_func_return 0 283} 284as_func_failure () { 285 as_func_return 1 286} 287as_func_ret_success () { 288 return 0 289} 290as_func_ret_failure () { 291 return 1 292} 293 294exitcode=0 295if as_func_success; then 296 : 297else 298 exitcode=1 299 echo as_func_success failed. 300fi 301 302if as_func_failure; then 303 exitcode=1 304 echo as_func_failure succeeded. 305fi 306 307if as_func_ret_success; then 308 : 309else 310 exitcode=1 311 echo as_func_ret_success failed. 312fi 313 314if as_func_ret_failure; then 315 exitcode=1 316 echo as_func_ret_failure succeeded. 317fi 318 319if ( set x; as_func_ret_success y && test x = "$1" ); then 320 : 321else 322 exitcode=1 323 echo positional parameters were not saved. 324fi 325 326test $exitcode = 0) || { (exit 1); exit 1; } 327 328( 329 as_lineno_1=$LINENO 330 as_lineno_2=$LINENO 331 test "x$as_lineno_1" != "x$as_lineno_2" && 332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 333 334_ASEOF 335}; then 336 break 337fi 338 339fi 340 341 done 342 343 if test "x$CONFIG_SHELL" != x; then 344 for as_var in BASH_ENV ENV 345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 346 done 347 export CONFIG_SHELL 348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 349fi 350 351 352 if test $as_have_required = no; then 353 echo This script requires a shell more modern than all the 354 echo shells that I found on your system. Please install a 355 echo modern shell, or manually run the script under such a 356 echo shell if you do have one. 357 { (exit 1); exit 1; } 358fi 359 360 361fi 362 363fi 364 365 366 367(eval "as_func_return () { 368 (exit \$1) 369} 370as_func_success () { 371 as_func_return 0 372} 373as_func_failure () { 374 as_func_return 1 375} 376as_func_ret_success () { 377 return 0 378} 379as_func_ret_failure () { 380 return 1 381} 382 383exitcode=0 384if as_func_success; then 385 : 386else 387 exitcode=1 388 echo as_func_success failed. 389fi 390 391if as_func_failure; then 392 exitcode=1 393 echo as_func_failure succeeded. 394fi 395 396if as_func_ret_success; then 397 : 398else 399 exitcode=1 400 echo as_func_ret_success failed. 401fi 402 403if as_func_ret_failure; then 404 exitcode=1 405 echo as_func_ret_failure succeeded. 406fi 407 408if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 409 : 410else 411 exitcode=1 412 echo positional parameters were not saved. 413fi 414 415test \$exitcode = 0") || { 416 echo No shell found that supports shell functions. 417 echo Please tell autoconf@gnu.org about your system, 418 echo including any error possibly output before this 419 echo message 420} 421 422 423 424 as_lineno_1=$LINENO 425 as_lineno_2=$LINENO 426 test "x$as_lineno_1" != "x$as_lineno_2" && 427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 428 429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 430 # uniformly replaced by the line number. The first 'sed' inserts a 431 # line-number line after each line using $LINENO; the second 'sed' 432 # does the real work. The second script uses 'N' to pair each 433 # line-number line with the line containing $LINENO, and appends 434 # trailing '-' during substitution so that $LINENO is not a special 435 # case at line end. 436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 437 # scripts with optimization help from Paolo Bonzini. Blame Lee 438 # E. McMahon (1931-1989) for sed's syntax. :-) 439 sed -n ' 440 p 441 /[$]LINENO/= 442 ' <$as_myself | 443 sed ' 444 s/[$]LINENO.*/&-/ 445 t lineno 446 b 447 :lineno 448 N 449 :loop 450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 451 t loop 452 s/-\n.*// 453 ' >$as_me.lineno && 454 chmod +x "$as_me.lineno" || 455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 456 { (exit 1); exit 1; }; } 457 458 # Don't try to exec as it changes $[0], causing all sort of problems 459 # (the dirname of $[0] is not the place where we might find the 460 # original and so on. Autoconf is especially sensitive to this). 461 . "./$as_me.lineno" 462 # Exit status is that of the last command. 463 exit 464} 465 466 467if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 468 as_dirname=dirname 469else 470 as_dirname=false 471fi 472 473ECHO_C= ECHO_N= ECHO_T= 474case `echo -n x` in 475-n*) 476 case `echo 'x\c'` in 477 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 478 *) ECHO_C='\c';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484if expr a : '\(a\)' >/dev/null 2>&1 && 485 test "X`expr 00001 : '.*\(...\)'`" = X001; then 486 as_expr=expr 487else 488 as_expr=false 489fi 490 491rm -f conf$$ conf$$.exe conf$$.file 492if test -d conf$$.dir; then 493 rm -f conf$$.dir/conf$$.file 494else 495 rm -f conf$$.dir 496 mkdir conf$$.dir 497fi 498echo >conf$$.file 499if ln -s conf$$.file conf$$ 2>/dev/null; then 500 as_ln_s='ln -s' 501 # ... but there are two gotchas: 502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 504 # In both cases, we have to default to `cp -p'. 505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 506 as_ln_s='cp -p' 507elif ln conf$$.file conf$$ 2>/dev/null; then 508 as_ln_s=ln 509else 510 as_ln_s='cp -p' 511fi 512rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 513rmdir conf$$.dir 2>/dev/null 514 515if mkdir -p . 2>/dev/null; then 516 as_mkdir_p=: 517else 518 test -d ./-p && rmdir ./-p 519 as_mkdir_p=false 520fi 521 522if test -x / >/dev/null 2>&1; then 523 as_test_x='test -x' 524else 525 if ls -dL / >/dev/null 2>&1; then 526 as_ls_L_option=L 527 else 528 as_ls_L_option= 529 fi 530 as_test_x=' 531 eval sh -c '\'' 532 if test -d "$1"; then 533 test -d "$1/."; 534 else 535 case $1 in 536 -*)set "./$1";; 537 esac; 538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 539 ???[sx]*):;;*)false;;esac;fi 540 '\'' sh 541 ' 542fi 543as_executable_p=$as_test_x 544 545# Sed expression to map a string onto a valid CPP name. 546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 547 548# Sed expression to map a string onto a valid variable name. 549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 550 551 552 553exec 7<&0 </dev/null 6>&1 554 555# Name of the host. 556# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 557# so uname gets run too. 558ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 559 560# 561# Initializations. 562# 563ac_default_prefix=/usr/local 564ac_clean_files= 565ac_config_libobj_dir=. 566LIBOBJS= 567cross_compiling=no 568subdirs= 569MFLAGS= 570MAKEFLAGS= 571SHELL=${CONFIG_SHELL-/bin/sh} 572 573# Identity of this package. 574PACKAGE_NAME='tkimggif' 575PACKAGE_TARNAME='tkimggif' 576PACKAGE_VERSION='1.4' 577PACKAGE_STRING='tkimggif 1.4' 578PACKAGE_BUGREPORT='' 579 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='SHELL 617PATH_SEPARATOR 618PACKAGE_NAME 619PACKAGE_TARNAME 620PACKAGE_VERSION 621PACKAGE_STRING 622PACKAGE_BUGREPORT 623exec_prefix 624prefix 625program_transform_name 626bindir 627sbindir 628libexecdir 629datarootdir 630datadir 631sysconfdir 632sharedstatedir 633localstatedir 634includedir 635oldincludedir 636docdir 637infodir 638htmldir 639dvidir 640pdfdir 641psdir 642libdir 643localedir 644mandir 645DEFS 646ECHO_C 647ECHO_N 648ECHO_T 649LIBS 650build_alias 651host_alias 652target_alias 653CYGPATH 654EXEEXT 655PKG_LIB_FILE 656PKG_STUB_LIB_FILE 657PKG_STUB_SOURCES 658PKG_STUB_OBJECTS 659PKG_TCL_SOURCES 660PKG_HEADERS 661PKG_INCLUDES 662PKG_LIBS 663PKG_CFLAGS 664PACKAGE_TCLNAME 665TCL_VERSION 666TCL_PATCH_LEVEL 667TCL_BIN_DIR 668TCL_SRC_DIR 669TCL_LIB_FILE 670TCL_LIB_FLAG 671TCL_LIB_SPEC 672TCL_STUB_LIB_FILE 673TCL_STUB_LIB_FLAG 674TCL_STUB_LIB_SPEC 675CLEANFILES 676TCL_LIBS 677TCL_DEFS 678TCL_EXTRA_CFLAGS 679TCL_LD_FLAGS 680TCL_SHLIB_LD_LIBS 681TK_VERSION 682TK_BIN_DIR 683TK_SRC_DIR 684TK_LIB_FILE 685TK_LIB_FLAG 686TK_LIB_SPEC 687TK_STUB_LIB_FILE 688TK_STUB_LIB_FLAG 689TK_STUB_LIB_SPEC 690TK_LIBS 691TK_XINCLUDES 692CC 693CFLAGS 694LDFLAGS 695CPPFLAGS 696ac_ct_CC 697OBJEXT 698CPP 699INSTALL_PROGRAM 700INSTALL_SCRIPT 701INSTALL_DATA 702SET_MAKE 703RANLIB 704GREP 705EGREP 706MATH_LIBS 707tkimg_VERSION 708tkimg_BIN_DIR 709tkimg_SRC_DIR 710tkimg_LIB_FILE 711tkimg_LIB_SPEC 712tkimg_STUB_LIB_FILE 713tkimg_STUB_LIB_SPEC 714tkimg_STUB_LIB_PATH 715tkimg_SRC_PATH 716tkimg_BUILD_PATH 717PKG_SOURCES 718PKG_OBJECTS 719TCL_INCLUDES 720TK_INCLUDES 721TCL_THREADS 722SHARED_BUILD 723AR 724CELIB_DIR 725CFLAGS_DEBUG 726CFLAGS_OPTIMIZE 727CFLAGS_WARNING 728STLIB_LD 729SHLIB_LD 730SHLIB_LD_LIBS 731SHLIB_CFLAGS 732LD_LIBRARY_PATH_VAR 733CFLAGS_DEFAULT 734LDFLAGS_DEFAULT 735TCL_DBGX 736XMKMF 737MAKE_LIB 738MAKE_SHARED_LIB 739MAKE_STATIC_LIB 740MAKE_STUB_LIB 741RANLIB_STUB 742VC_MANIFEST_EMBED_DLL 743VC_MANIFEST_EMBED_EXE 744TCLSH_PROG 745WISH_PROG 746LIBOBJS 747LTLIBOBJS' 748ac_subst_files='' 749 ac_precious_vars='build_alias 750host_alias 751target_alias 752CC 753CFLAGS 754LDFLAGS 755LIBS 756CPPFLAGS 757CPP 758XMKMF' 759 760 761# Initialize some variables set by options. 762ac_init_help= 763ac_init_version=false 764# The variables have the same names as the options, with 765# dashes changed to underlines. 766cache_file=/dev/null 767exec_prefix=NONE 768no_create= 769no_recursion= 770prefix=NONE 771program_prefix=NONE 772program_suffix=NONE 773program_transform_name=s,x,x, 774silent= 775site= 776srcdir= 777verbose= 778x_includes=NONE 779x_libraries=NONE 780 781# Installation directory options. 782# These are left unexpanded so users can "make install exec_prefix=/foo" 783# and all the variables that are supposed to be based on exec_prefix 784# by default will actually change. 785# Use braces instead of parens because sh, perl, etc. also accept them. 786# (The list follows the same order as the GNU Coding Standards.) 787bindir='${exec_prefix}/bin' 788sbindir='${exec_prefix}/sbin' 789libexecdir='${exec_prefix}/libexec' 790datarootdir='${prefix}/share' 791datadir='${datarootdir}' 792sysconfdir='${prefix}/etc' 793sharedstatedir='${prefix}/com' 794localstatedir='${prefix}/var' 795includedir='${prefix}/include' 796oldincludedir='/usr/include' 797docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 798infodir='${datarootdir}/info' 799htmldir='${docdir}' 800dvidir='${docdir}' 801pdfdir='${docdir}' 802psdir='${docdir}' 803libdir='${exec_prefix}/lib' 804localedir='${datarootdir}/locale' 805mandir='${datarootdir}/man' 806 807ac_prev= 808ac_dashdash= 809for ac_option 810do 811 # If the previous option needs an argument, assign it. 812 if test -n "$ac_prev"; then 813 eval $ac_prev=\$ac_option 814 ac_prev= 815 continue 816 fi 817 818 case $ac_option in 819 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 820 *) ac_optarg=yes ;; 821 esac 822 823 # Accept the important Cygnus configure options, so we can diagnose typos. 824 825 case $ac_dashdash$ac_option in 826 --) 827 ac_dashdash=yes ;; 828 829 -bindir | --bindir | --bindi | --bind | --bin | --bi) 830 ac_prev=bindir ;; 831 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 832 bindir=$ac_optarg ;; 833 834 -build | --build | --buil | --bui | --bu) 835 ac_prev=build_alias ;; 836 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 837 build_alias=$ac_optarg ;; 838 839 -cache-file | --cache-file | --cache-fil | --cache-fi \ 840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 841 ac_prev=cache_file ;; 842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 844 cache_file=$ac_optarg ;; 845 846 --config-cache | -C) 847 cache_file=config.cache ;; 848 849 -datadir | --datadir | --datadi | --datad) 850 ac_prev=datadir ;; 851 -datadir=* | --datadir=* | --datadi=* | --datad=*) 852 datadir=$ac_optarg ;; 853 854 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 855 | --dataroo | --dataro | --datar) 856 ac_prev=datarootdir ;; 857 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 858 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 859 datarootdir=$ac_optarg ;; 860 861 -disable-* | --disable-*) 862 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 863 # Reject names that are not valid shell variable names. 864 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 865 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 866 { (exit 1); exit 1; }; } 867 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 868 eval enable_$ac_feature=no ;; 869 870 -docdir | --docdir | --docdi | --doc | --do) 871 ac_prev=docdir ;; 872 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 873 docdir=$ac_optarg ;; 874 875 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 876 ac_prev=dvidir ;; 877 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 878 dvidir=$ac_optarg ;; 879 880 -enable-* | --enable-*) 881 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 882 # Reject names that are not valid shell variable names. 883 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 884 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 885 { (exit 1); exit 1; }; } 886 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 887 eval enable_$ac_feature=\$ac_optarg ;; 888 889 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 890 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 891 | --exec | --exe | --ex) 892 ac_prev=exec_prefix ;; 893 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 894 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 895 | --exec=* | --exe=* | --ex=*) 896 exec_prefix=$ac_optarg ;; 897 898 -gas | --gas | --ga | --g) 899 # Obsolete; use --with-gas. 900 with_gas=yes ;; 901 902 -help | --help | --hel | --he | -h) 903 ac_init_help=long ;; 904 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 905 ac_init_help=recursive ;; 906 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 907 ac_init_help=short ;; 908 909 -host | --host | --hos | --ho) 910 ac_prev=host_alias ;; 911 -host=* | --host=* | --hos=* | --ho=*) 912 host_alias=$ac_optarg ;; 913 914 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 915 ac_prev=htmldir ;; 916 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 917 | --ht=*) 918 htmldir=$ac_optarg ;; 919 920 -includedir | --includedir | --includedi | --included | --include \ 921 | --includ | --inclu | --incl | --inc) 922 ac_prev=includedir ;; 923 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 924 | --includ=* | --inclu=* | --incl=* | --inc=*) 925 includedir=$ac_optarg ;; 926 927 -infodir | --infodir | --infodi | --infod | --info | --inf) 928 ac_prev=infodir ;; 929 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 930 infodir=$ac_optarg ;; 931 932 -libdir | --libdir | --libdi | --libd) 933 ac_prev=libdir ;; 934 -libdir=* | --libdir=* | --libdi=* | --libd=*) 935 libdir=$ac_optarg ;; 936 937 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 938 | --libexe | --libex | --libe) 939 ac_prev=libexecdir ;; 940 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 941 | --libexe=* | --libex=* | --libe=*) 942 libexecdir=$ac_optarg ;; 943 944 -localedir | --localedir | --localedi | --localed | --locale) 945 ac_prev=localedir ;; 946 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 947 localedir=$ac_optarg ;; 948 949 -localstatedir | --localstatedir | --localstatedi | --localstated \ 950 | --localstate | --localstat | --localsta | --localst | --locals) 951 ac_prev=localstatedir ;; 952 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 953 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 954 localstatedir=$ac_optarg ;; 955 956 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 957 ac_prev=mandir ;; 958 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 959 mandir=$ac_optarg ;; 960 961 -nfp | --nfp | --nf) 962 # Obsolete; use --without-fp. 963 with_fp=no ;; 964 965 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 966 | --no-cr | --no-c | -n) 967 no_create=yes ;; 968 969 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 970 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 971 no_recursion=yes ;; 972 973 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 974 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 975 | --oldin | --oldi | --old | --ol | --o) 976 ac_prev=oldincludedir ;; 977 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 978 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 979 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 980 oldincludedir=$ac_optarg ;; 981 982 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 983 ac_prev=prefix ;; 984 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 985 prefix=$ac_optarg ;; 986 987 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 988 | --program-pre | --program-pr | --program-p) 989 ac_prev=program_prefix ;; 990 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 991 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 992 program_prefix=$ac_optarg ;; 993 994 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 995 | --program-suf | --program-su | --program-s) 996 ac_prev=program_suffix ;; 997 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 998 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 999 program_suffix=$ac_optarg ;; 1000 1001 -program-transform-name | --program-transform-name \ 1002 | --program-transform-nam | --program-transform-na \ 1003 | --program-transform-n | --program-transform- \ 1004 | --program-transform | --program-transfor \ 1005 | --program-transfo | --program-transf \ 1006 | --program-trans | --program-tran \ 1007 | --progr-tra | --program-tr | --program-t) 1008 ac_prev=program_transform_name ;; 1009 -program-transform-name=* | --program-transform-name=* \ 1010 | --program-transform-nam=* | --program-transform-na=* \ 1011 | --program-transform-n=* | --program-transform-=* \ 1012 | --program-transform=* | --program-transfor=* \ 1013 | --program-transfo=* | --program-transf=* \ 1014 | --program-trans=* | --program-tran=* \ 1015 | --progr-tra=* | --program-tr=* | --program-t=*) 1016 program_transform_name=$ac_optarg ;; 1017 1018 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1019 ac_prev=pdfdir ;; 1020 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1021 pdfdir=$ac_optarg ;; 1022 1023 -psdir | --psdir | --psdi | --psd | --ps) 1024 ac_prev=psdir ;; 1025 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1026 psdir=$ac_optarg ;; 1027 1028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1029 | -silent | --silent | --silen | --sile | --sil) 1030 silent=yes ;; 1031 1032 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1033 ac_prev=sbindir ;; 1034 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1035 | --sbi=* | --sb=*) 1036 sbindir=$ac_optarg ;; 1037 1038 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1039 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1040 | --sharedst | --shareds | --shared | --share | --shar \ 1041 | --sha | --sh) 1042 ac_prev=sharedstatedir ;; 1043 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1044 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1045 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1046 | --sha=* | --sh=*) 1047 sharedstatedir=$ac_optarg ;; 1048 1049 -site | --site | --sit) 1050 ac_prev=site ;; 1051 -site=* | --site=* | --sit=*) 1052 site=$ac_optarg ;; 1053 1054 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1055 ac_prev=srcdir ;; 1056 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1057 srcdir=$ac_optarg ;; 1058 1059 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1060 | --syscon | --sysco | --sysc | --sys | --sy) 1061 ac_prev=sysconfdir ;; 1062 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1063 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1064 sysconfdir=$ac_optarg ;; 1065 1066 -target | --target | --targe | --targ | --tar | --ta | --t) 1067 ac_prev=target_alias ;; 1068 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1069 target_alias=$ac_optarg ;; 1070 1071 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1072 verbose=yes ;; 1073 1074 -version | --version | --versio | --versi | --vers | -V) 1075 ac_init_version=: ;; 1076 1077 -with-* | --with-*) 1078 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1079 # Reject names that are not valid shell variable names. 1080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1081 { echo "$as_me: error: invalid package name: $ac_package" >&2 1082 { (exit 1); exit 1; }; } 1083 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1084 eval with_$ac_package=\$ac_optarg ;; 1085 1086 -without-* | --without-*) 1087 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1088 # Reject names that are not valid shell variable names. 1089 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1090 { echo "$as_me: error: invalid package name: $ac_package" >&2 1091 { (exit 1); exit 1; }; } 1092 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1093 eval with_$ac_package=no ;; 1094 1095 --x) 1096 # Obsolete; use --with-x. 1097 with_x=yes ;; 1098 1099 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1100 | --x-incl | --x-inc | --x-in | --x-i) 1101 ac_prev=x_includes ;; 1102 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1103 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1104 x_includes=$ac_optarg ;; 1105 1106 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1107 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1108 ac_prev=x_libraries ;; 1109 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1110 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1111 x_libraries=$ac_optarg ;; 1112 1113 -*) { echo "$as_me: error: unrecognized option: $ac_option 1114Try \`$0 --help' for more information." >&2 1115 { (exit 1); exit 1; }; } 1116 ;; 1117 1118 *=*) 1119 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1120 # Reject names that are not valid shell variable names. 1121 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1122 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1123 { (exit 1); exit 1; }; } 1124 eval $ac_envvar=\$ac_optarg 1125 export $ac_envvar ;; 1126 1127 *) 1128 # FIXME: should be removed in autoconf 3.0. 1129 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1130 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1131 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1132 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1133 ;; 1134 1135 esac 1136done 1137 1138if test -n "$ac_prev"; then 1139 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1140 { echo "$as_me: error: missing argument to $ac_option" >&2 1141 { (exit 1); exit 1; }; } 1142fi 1143 1144# Be sure to have absolute directory names. 1145for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1146 datadir sysconfdir sharedstatedir localstatedir includedir \ 1147 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1148 libdir localedir mandir 1149do 1150 eval ac_val=\$$ac_var 1151 case $ac_val in 1152 [\\/$]* | ?:[\\/]* ) continue;; 1153 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1154 esac 1155 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1156 { (exit 1); exit 1; }; } 1157done 1158 1159# There might be people who depend on the old broken behavior: `$host' 1160# used to hold the argument of --host etc. 1161# FIXME: To remove some day. 1162build=$build_alias 1163host=$host_alias 1164target=$target_alias 1165 1166# FIXME: To remove some day. 1167if test "x$host_alias" != x; then 1168 if test "x$build_alias" = x; then 1169 cross_compiling=maybe 1170 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1171 If a cross compiler is detected then cross compile mode will be used." >&2 1172 elif test "x$build_alias" != "x$host_alias"; then 1173 cross_compiling=yes 1174 fi 1175fi 1176 1177ac_tool_prefix= 1178test -n "$host_alias" && ac_tool_prefix=$host_alias- 1179 1180test "$silent" = yes && exec 6>/dev/null 1181 1182 1183ac_pwd=`pwd` && test -n "$ac_pwd" && 1184ac_ls_di=`ls -di .` && 1185ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1186 { echo "$as_me: error: Working directory cannot be determined" >&2 1187 { (exit 1); exit 1; }; } 1188test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1189 { echo "$as_me: error: pwd does not report name of working directory" >&2 1190 { (exit 1); exit 1; }; } 1191 1192 1193# Find the source files, if location was not specified. 1194if test -z "$srcdir"; then 1195 ac_srcdir_defaulted=yes 1196 # Try the directory containing this script, then the parent directory. 1197 ac_confdir=`$as_dirname -- "$0" || 1198$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1199 X"$0" : 'X\(//\)[^/]' \| \ 1200 X"$0" : 'X\(//\)$' \| \ 1201 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1202echo X"$0" | 1203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1204 s//\1/ 1205 q 1206 } 1207 /^X\(\/\/\)[^/].*/{ 1208 s//\1/ 1209 q 1210 } 1211 /^X\(\/\/\)$/{ 1212 s//\1/ 1213 q 1214 } 1215 /^X\(\/\).*/{ 1216 s//\1/ 1217 q 1218 } 1219 s/.*/./; q'` 1220 srcdir=$ac_confdir 1221 if test ! -r "$srcdir/$ac_unique_file"; then 1222 srcdir=.. 1223 fi 1224else 1225 ac_srcdir_defaulted=no 1226fi 1227if test ! -r "$srcdir/$ac_unique_file"; then 1228 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1229 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1230 { (exit 1); exit 1; }; } 1231fi 1232ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1233ac_abs_confdir=`( 1234 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1235 { (exit 1); exit 1; }; } 1236 pwd)` 1237# When building in place, set srcdir=. 1238if test "$ac_abs_confdir" = "$ac_pwd"; then 1239 srcdir=. 1240fi 1241# Remove unnecessary trailing slashes from srcdir. 1242# Double slashes in file names in object file debugging info 1243# mess up M-x gdb in Emacs. 1244case $srcdir in 1245*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1246esac 1247for ac_var in $ac_precious_vars; do 1248 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1249 eval ac_env_${ac_var}_value=\$${ac_var} 1250 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1251 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1252done 1253 1254# 1255# Report the --help message. 1256# 1257if test "$ac_init_help" = "long"; then 1258 # Omit some internal or obsolete options to make the list less imposing. 1259 # This message is too long to be a string in the A/UX 3.1 sh. 1260 cat <<_ACEOF 1261\`configure' configures tkimggif 1.4 to adapt to many kinds of systems. 1262 1263Usage: $0 [OPTION]... [VAR=VALUE]... 1264 1265To assign environment variables (e.g., CC, CFLAGS...), specify them as 1266VAR=VALUE. See below for descriptions of some of the useful variables. 1267 1268Defaults for the options are specified in brackets. 1269 1270Configuration: 1271 -h, --help display this help and exit 1272 --help=short display options specific to this package 1273 --help=recursive display the short help of all the included packages 1274 -V, --version display version information and exit 1275 -q, --quiet, --silent do not print \`checking...' messages 1276 --cache-file=FILE cache test results in FILE [disabled] 1277 -C, --config-cache alias for \`--cache-file=config.cache' 1278 -n, --no-create do not create output files 1279 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1280 1281Installation directories: 1282 --prefix=PREFIX install architecture-independent files in PREFIX 1283 [$ac_default_prefix] 1284 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1285 [PREFIX] 1286 1287By default, \`make install' will install all the files in 1288\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1289an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1290for instance \`--prefix=\$HOME'. 1291 1292For better control, use the options below. 1293 1294Fine tuning of the installation directories: 1295 --bindir=DIR user executables [EPREFIX/bin] 1296 --sbindir=DIR system admin executables [EPREFIX/sbin] 1297 --libexecdir=DIR program executables [EPREFIX/libexec] 1298 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1299 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1300 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1301 --libdir=DIR object code libraries [EPREFIX/lib] 1302 --includedir=DIR C header files [PREFIX/include] 1303 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1304 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1305 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1306 --infodir=DIR info documentation [DATAROOTDIR/info] 1307 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1308 --mandir=DIR man documentation [DATAROOTDIR/man] 1309 --docdir=DIR documentation root [DATAROOTDIR/doc/tkimggif] 1310 --htmldir=DIR html documentation [DOCDIR] 1311 --dvidir=DIR dvi documentation [DOCDIR] 1312 --pdfdir=DIR pdf documentation [DOCDIR] 1313 --psdir=DIR ps documentation [DOCDIR] 1314_ACEOF 1315 1316 cat <<\_ACEOF 1317 1318X features: 1319 --x-includes=DIR X include files are in DIR 1320 --x-libraries=DIR X library files are in DIR 1321_ACEOF 1322fi 1323 1324if test -n "$ac_init_help"; then 1325 case $ac_init_help in 1326 short | recursive ) echo "Configuration of tkimggif 1.4:";; 1327 esac 1328 cat <<\_ACEOF 1329 1330Optional Features: 1331 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1332 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1333 --enable-threads build with threads 1334 --enable-shared build and link with shared libraries (default: on) 1335 --enable-64bit enable 64bit support (default: off) 1336 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1337 --disable-rpath disable rpath support (default: on) 1338 --enable-wince enable Win/CE support (where applicable) 1339 --enable-symbols build with debugging symbols (default: off) 1340 1341Optional Packages: 1342 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1343 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1344 --with-tcl directory containing tcl configuration 1345 (tclConfig.sh) 1346 --with-tk directory containing tk configuration (tkConfig.sh) 1347 --with-tkimg directory containing tkimg configuration (tkimgConfig.sh) 1348 --with-tclinclude directory containing the public Tcl header files 1349 --with-tkinclude directory containing the public Tk header files 1350 --with-celib=DIR use Windows/CE support library from DIR 1351 --with-x use the X Window System 1352 1353Some influential environment variables: 1354 CC C compiler command 1355 CFLAGS C compiler flags 1356 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1357 nonstandard directory <lib dir> 1358 LIBS libraries to pass to the linker, e.g. -l<library> 1359 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1360 you have headers in a nonstandard directory <include dir> 1361 CPP C preprocessor 1362 XMKMF Path to xmkmf, Makefile generator for X Window System 1363 1364Use these variables to override the choices made by `configure' or to help 1365it to find libraries and programs with nonstandard names/locations. 1366 1367_ACEOF 1368ac_status=$? 1369fi 1370 1371if test "$ac_init_help" = "recursive"; then 1372 # If there are subdirs, report their specific --help. 1373 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1374 test -d "$ac_dir" || continue 1375 ac_builddir=. 1376 1377case "$ac_dir" in 1378.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1379*) 1380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1381 # A ".." for each directory in $ac_dir_suffix. 1382 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1383 case $ac_top_builddir_sub in 1384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1386 esac ;; 1387esac 1388ac_abs_top_builddir=$ac_pwd 1389ac_abs_builddir=$ac_pwd$ac_dir_suffix 1390# for backward compatibility: 1391ac_top_builddir=$ac_top_build_prefix 1392 1393case $srcdir in 1394 .) # We are building in place. 1395 ac_srcdir=. 1396 ac_top_srcdir=$ac_top_builddir_sub 1397 ac_abs_top_srcdir=$ac_pwd ;; 1398 [\\/]* | ?:[\\/]* ) # Absolute name. 1399 ac_srcdir=$srcdir$ac_dir_suffix; 1400 ac_top_srcdir=$srcdir 1401 ac_abs_top_srcdir=$srcdir ;; 1402 *) # Relative name. 1403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1404 ac_top_srcdir=$ac_top_build_prefix$srcdir 1405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1406esac 1407ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1408 1409 cd "$ac_dir" || { ac_status=$?; continue; } 1410 # Check for guested configure. 1411 if test -f "$ac_srcdir/configure.gnu"; then 1412 echo && 1413 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1414 elif test -f "$ac_srcdir/configure"; then 1415 echo && 1416 $SHELL "$ac_srcdir/configure" --help=recursive 1417 else 1418 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1419 fi || ac_status=$? 1420 cd "$ac_pwd" || { ac_status=$?; break; } 1421 done 1422fi 1423 1424test -n "$ac_init_help" && exit $ac_status 1425if $ac_init_version; then 1426 cat <<\_ACEOF 1427tkimggif configure 1.4 1428generated by GNU Autoconf 2.61 1429 1430Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14312002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1432This configure script is free software; the Free Software Foundation 1433gives unlimited permission to copy, distribute and modify it. 1434_ACEOF 1435 exit 1436fi 1437cat >config.log <<_ACEOF 1438This file contains any messages produced by compilers while 1439running configure, to aid debugging if configure makes a mistake. 1440 1441It was created by tkimggif $as_me 1.4, which was 1442generated by GNU Autoconf 2.61. Invocation command line was 1443 1444 $ $0 $@ 1445 1446_ACEOF 1447exec 5>>config.log 1448{ 1449cat <<_ASUNAME 1450## --------- ## 1451## Platform. ## 1452## --------- ## 1453 1454hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1455uname -m = `(uname -m) 2>/dev/null || echo unknown` 1456uname -r = `(uname -r) 2>/dev/null || echo unknown` 1457uname -s = `(uname -s) 2>/dev/null || echo unknown` 1458uname -v = `(uname -v) 2>/dev/null || echo unknown` 1459 1460/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1461/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1462 1463/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1464/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1465/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1466/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1467/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1468/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1469/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1470 1471_ASUNAME 1472 1473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1474for as_dir in $PATH 1475do 1476 IFS=$as_save_IFS 1477 test -z "$as_dir" && as_dir=. 1478 echo "PATH: $as_dir" 1479done 1480IFS=$as_save_IFS 1481 1482} >&5 1483 1484cat >&5 <<_ACEOF 1485 1486 1487## ----------- ## 1488## Core tests. ## 1489## ----------- ## 1490 1491_ACEOF 1492 1493 1494# Keep a trace of the command line. 1495# Strip out --no-create and --no-recursion so they do not pile up. 1496# Strip out --silent because we don't want to record it for future runs. 1497# Also quote any args containing shell meta-characters. 1498# Make two passes to allow for proper duplicate-argument suppression. 1499ac_configure_args= 1500ac_configure_args0= 1501ac_configure_args1= 1502ac_must_keep_next=false 1503for ac_pass in 1 2 1504do 1505 for ac_arg 1506 do 1507 case $ac_arg in 1508 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1510 | -silent | --silent | --silen | --sile | --sil) 1511 continue ;; 1512 *\'*) 1513 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1514 esac 1515 case $ac_pass in 1516 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1517 2) 1518 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1519 if test $ac_must_keep_next = true; then 1520 ac_must_keep_next=false # Got value, back to normal. 1521 else 1522 case $ac_arg in 1523 *=* | --config-cache | -C | -disable-* | --disable-* \ 1524 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1525 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1526 | -with-* | --with-* | -without-* | --without-* | --x) 1527 case "$ac_configure_args0 " in 1528 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1529 esac 1530 ;; 1531 -* ) ac_must_keep_next=true ;; 1532 esac 1533 fi 1534 ac_configure_args="$ac_configure_args '$ac_arg'" 1535 ;; 1536 esac 1537 done 1538done 1539$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1540$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1541 1542# When interrupted or exit'd, cleanup temporary files, and complete 1543# config.log. We remove comments because anyway the quotes in there 1544# would cause problems or look ugly. 1545# WARNING: Use '\'' to represent an apostrophe within the trap. 1546# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1547trap 'exit_status=$? 1548 # Save into config.log some information that might help in debugging. 1549 { 1550 echo 1551 1552 cat <<\_ASBOX 1553## ---------------- ## 1554## Cache variables. ## 1555## ---------------- ## 1556_ASBOX 1557 echo 1558 # The following way of writing the cache mishandles newlines in values, 1559( 1560 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1561 eval ac_val=\$$ac_var 1562 case $ac_val in #( 1563 *${as_nl}*) 1564 case $ac_var in #( 1565 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1566echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1567 esac 1568 case $ac_var in #( 1569 _ | IFS | as_nl) ;; #( 1570 *) $as_unset $ac_var ;; 1571 esac ;; 1572 esac 1573 done 1574 (set) 2>&1 | 1575 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1576 *${as_nl}ac_space=\ *) 1577 sed -n \ 1578 "s/'\''/'\''\\\\'\'''\''/g; 1579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1580 ;; #( 1581 *) 1582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1583 ;; 1584 esac | 1585 sort 1586) 1587 echo 1588 1589 cat <<\_ASBOX 1590## ----------------- ## 1591## Output variables. ## 1592## ----------------- ## 1593_ASBOX 1594 echo 1595 for ac_var in $ac_subst_vars 1596 do 1597 eval ac_val=\$$ac_var 1598 case $ac_val in 1599 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1600 esac 1601 echo "$ac_var='\''$ac_val'\''" 1602 done | sort 1603 echo 1604 1605 if test -n "$ac_subst_files"; then 1606 cat <<\_ASBOX 1607## ------------------- ## 1608## File substitutions. ## 1609## ------------------- ## 1610_ASBOX 1611 echo 1612 for ac_var in $ac_subst_files 1613 do 1614 eval ac_val=\$$ac_var 1615 case $ac_val in 1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1617 esac 1618 echo "$ac_var='\''$ac_val'\''" 1619 done | sort 1620 echo 1621 fi 1622 1623 if test -s confdefs.h; then 1624 cat <<\_ASBOX 1625## ----------- ## 1626## confdefs.h. ## 1627## ----------- ## 1628_ASBOX 1629 echo 1630 cat confdefs.h 1631 echo 1632 fi 1633 test "$ac_signal" != 0 && 1634 echo "$as_me: caught signal $ac_signal" 1635 echo "$as_me: exit $exit_status" 1636 } >&5 1637 rm -f core *.core core.conftest.* && 1638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1639 exit $exit_status 1640' 0 1641for ac_signal in 1 2 13 15; do 1642 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1643done 1644ac_signal=0 1645 1646# confdefs.h avoids OS command line length limits that DEFS can exceed. 1647rm -f -r conftest* confdefs.h 1648 1649# Predefined preprocessor variables. 1650 1651cat >>confdefs.h <<_ACEOF 1652#define PACKAGE_NAME "$PACKAGE_NAME" 1653_ACEOF 1654 1655 1656cat >>confdefs.h <<_ACEOF 1657#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1658_ACEOF 1659 1660 1661cat >>confdefs.h <<_ACEOF 1662#define PACKAGE_VERSION "$PACKAGE_VERSION" 1663_ACEOF 1664 1665 1666cat >>confdefs.h <<_ACEOF 1667#define PACKAGE_STRING "$PACKAGE_STRING" 1668_ACEOF 1669 1670 1671cat >>confdefs.h <<_ACEOF 1672#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1673_ACEOF 1674 1675 1676# Let the site file select an alternate cache file if it wants to. 1677# Prefer explicitly selected file to automatically selected ones. 1678if test -n "$CONFIG_SITE"; then 1679 set x "$CONFIG_SITE" 1680elif test "x$prefix" != xNONE; then 1681 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1682else 1683 set x "$ac_default_prefix/share/config.site" \ 1684 "$ac_default_prefix/etc/config.site" 1685fi 1686shift 1687for ac_site_file 1688do 1689 if test -r "$ac_site_file"; then 1690 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1691echo "$as_me: loading site script $ac_site_file" >&6;} 1692 sed 's/^/| /' "$ac_site_file" >&5 1693 . "$ac_site_file" 1694 fi 1695done 1696 1697if test -r "$cache_file"; then 1698 # Some versions of bash will fail to source /dev/null (special 1699 # files actually), so we avoid doing that. 1700 if test -f "$cache_file"; then 1701 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1702echo "$as_me: loading cache $cache_file" >&6;} 1703 case $cache_file in 1704 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1705 *) . "./$cache_file";; 1706 esac 1707 fi 1708else 1709 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1710echo "$as_me: creating cache $cache_file" >&6;} 1711 >$cache_file 1712fi 1713 1714# Check that the precious variables saved in the cache have kept the same 1715# value. 1716ac_cache_corrupted=false 1717for ac_var in $ac_precious_vars; do 1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1719 eval ac_new_set=\$ac_env_${ac_var}_set 1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1721 eval ac_new_val=\$ac_env_${ac_var}_value 1722 case $ac_old_set,$ac_new_set in 1723 set,) 1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1725echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1726 ac_cache_corrupted=: ;; 1727 ,set) 1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1729echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1730 ac_cache_corrupted=: ;; 1731 ,);; 1732 *) 1733 if test "x$ac_old_val" != "x$ac_new_val"; then 1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1735echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1736 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1737echo "$as_me: former value: $ac_old_val" >&2;} 1738 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1739echo "$as_me: current value: $ac_new_val" >&2;} 1740 ac_cache_corrupted=: 1741 fi;; 1742 esac 1743 # Pass precious variables to config.status. 1744 if test "$ac_new_set" = set; then 1745 case $ac_new_val in 1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1747 *) ac_arg=$ac_var=$ac_new_val ;; 1748 esac 1749 case " $ac_configure_args " in 1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1752 esac 1753 fi 1754done 1755if $ac_cache_corrupted; then 1756 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1757echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1758 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1759echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1760 { (exit 1); exit 1; }; } 1761fi 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787ac_ext=c 1788ac_cpp='$CPP $CPPFLAGS' 1789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1791ac_compiler_gnu=$ac_cv_c_compiler_gnu 1792 1793 1794 1795 1796 # TEA extensions pass this us the version of TEA they think they 1797 # are compatible with. 1798 TEA_VERSION="3.9" 1799 1800 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1801echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1802 if test x"${PACKAGE_NAME}" = x ; then 1803 { { echo "$as_me:$LINENO: error: 1804The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1805echo "$as_me: error: 1806The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1807 { (exit 1); exit 1; }; } 1808 fi 1809 if test x"3.9" = x ; then 1810 { { echo "$as_me:$LINENO: error: 1811TEA version not specified." >&5 1812echo "$as_me: error: 1813TEA version not specified." >&2;} 1814 { (exit 1); exit 1; }; } 1815 elif test "3.9" != "${TEA_VERSION}" ; then 1816 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1817echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1818 else 1819 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1820echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1821 fi 1822 case "`uname -s`" in 1823 *win32*|*WIN32*|*MINGW32_*) 1824 # Extract the first word of "cygpath", so it can be a program name with args. 1825set dummy cygpath; ac_word=$2 1826{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1828if test "${ac_cv_prog_CYGPATH+set}" = set; then 1829 echo $ECHO_N "(cached) $ECHO_C" >&6 1830else 1831 if test -n "$CYGPATH"; then 1832 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1833else 1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1835for as_dir in $PATH 1836do 1837 IFS=$as_save_IFS 1838 test -z "$as_dir" && as_dir=. 1839 for ac_exec_ext in '' $ac_executable_extensions; do 1840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1841 ac_cv_prog_CYGPATH="cygpath -w" 1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1843 break 2 1844 fi 1845done 1846done 1847IFS=$as_save_IFS 1848 1849 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1850fi 1851fi 1852CYGPATH=$ac_cv_prog_CYGPATH 1853if test -n "$CYGPATH"; then 1854 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1855echo "${ECHO_T}$CYGPATH" >&6; } 1856else 1857 { echo "$as_me:$LINENO: result: no" >&5 1858echo "${ECHO_T}no" >&6; } 1859fi 1860 1861 1862 EXEEXT=".exe" 1863 TEA_PLATFORM="windows" 1864 ;; 1865 *CYGWIN_*) 1866 CYGPATH=echo 1867 EXEEXT=".exe" 1868 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1869 ;; 1870 *) 1871 CYGPATH=echo 1872 EXEEXT="" 1873 TEA_PLATFORM="unix" 1874 ;; 1875 esac 1876 1877 # Check if exec_prefix is set. If not use fall back to prefix. 1878 # Note when adjusted, so that TEA_PREFIX can correct for this. 1879 # This is needed for recursive configures, since autoconf propagates 1880 # $prefix, but not $exec_prefix (doh!). 1881 if test x$exec_prefix = xNONE ; then 1882 exec_prefix_default=yes 1883 exec_prefix=$prefix 1884 fi 1885 1886 1887 1888 1889 # This package name must be replaced statically for AC_SUBST to work 1890 1891 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1892 1893 1894 # We AC_SUBST these here to ensure they are subst'ed, 1895 # in case the user doesn't call TEA_ADD_... 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905ac_aux_dir= 1906for ac_dir in ../tclconfig "$srcdir"/../tclconfig; do 1907 if test -f "$ac_dir/install-sh"; then 1908 ac_aux_dir=$ac_dir 1909 ac_install_sh="$ac_aux_dir/install-sh -c" 1910 break 1911 elif test -f "$ac_dir/install.sh"; then 1912 ac_aux_dir=$ac_dir 1913 ac_install_sh="$ac_aux_dir/install.sh -c" 1914 break 1915 elif test -f "$ac_dir/shtool"; then 1916 ac_aux_dir=$ac_dir 1917 ac_install_sh="$ac_aux_dir/shtool install -c" 1918 break 1919 fi 1920done 1921if test -z "$ac_aux_dir"; then 1922 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&5 1923echo "$as_me: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&2;} 1924 { (exit 1); exit 1; }; } 1925fi 1926 1927# These three variables are undocumented and unsupported, 1928# and are intended to be withdrawn in a future Autoconf release. 1929# They can cause serious problems if a builder's source tree is in a directory 1930# whose full name contains unusual characters. 1931ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1932ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1933ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1934 1935 1936 1937PHIMGTYPE="gif" 1938CPACKAGE="Tkimggif" 1939PACKAGE_TCLNAME="img::gif" 1940 1941 1942#-------------------------------------------------------------------- 1943# Load the tclConfig.sh file 1944# Load the tkConfig.sh file 1945#-------------------------------------------------------------------- 1946 1947 1948 1949 # 1950 # Ok, lets find the tcl configuration 1951 # First, look for one uninstalled. 1952 # the alternative search directory is invoked by --with-tcl 1953 # 1954 1955 if test x"${no_tcl}" = x ; then 1956 # we reset no_tcl in case something fails here 1957 no_tcl=true 1958 1959# Check whether --with-tcl was given. 1960if test "${with_tcl+set}" = set; then 1961 withval=$with_tcl; with_tclconfig="${withval}" 1962fi 1963 1964 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1965echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1966 if test "${ac_cv_c_tclconfig+set}" = set; then 1967 echo $ECHO_N "(cached) $ECHO_C" >&6 1968else 1969 1970 1971 # First check to see if --with-tcl was specified. 1972 if test x"${with_tclconfig}" != x ; then 1973 case "${with_tclconfig}" in 1974 */tclConfig.sh ) 1975 if test -f "${with_tclconfig}"; then 1976 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1977echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1978 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1979 fi ;; 1980 esac 1981 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1982 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1983 else 1984 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1985echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1986 { (exit 1); exit 1; }; } 1987 fi 1988 fi 1989 1990 # then check for a private Tcl installation 1991 if test x"${ac_cv_c_tclconfig}" = x ; then 1992 for i in \ 1993 ../tcl \ 1994 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1995 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1996 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1997 ../../tcl \ 1998 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1999 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 2000 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 2001 ../../../tcl \ 2002 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2003 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2004 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2005 if test "${TEA_PLATFORM}" = "windows" \ 2006 -a -f "$i/win/tclConfig.sh" ; then 2007 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2008 break 2009 fi 2010 if test -f "$i/unix/tclConfig.sh" ; then 2011 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2012 break 2013 fi 2014 done 2015 fi 2016 2017 # on Darwin, check in Framework installation locations 2018 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2019 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2020 `ls -d /Library/Frameworks 2>/dev/null` \ 2021 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2022 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2023 ; do 2024 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2025 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2026 break 2027 fi 2028 done 2029 fi 2030 2031 # TEA specific: on Windows, check in common installation locations 2032 if test "${TEA_PLATFORM}" = "windows" \ 2033 -a x"${ac_cv_c_tclconfig}" = x ; then 2034 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2035 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2036 ; do 2037 if test -f "$i/tclConfig.sh" ; then 2038 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2039 break 2040 fi 2041 done 2042 fi 2043 2044 # check in a few common install locations 2045 if test x"${ac_cv_c_tclconfig}" = x ; then 2046 for i in `ls -d ${libdir} 2>/dev/null` \ 2047 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2048 `ls -d ${prefix}/lib 2>/dev/null` \ 2049 `ls -d /usr/local/lib 2>/dev/null` \ 2050 `ls -d /usr/contrib/lib 2>/dev/null` \ 2051 `ls -d /usr/lib 2>/dev/null` \ 2052 `ls -d /usr/lib64 2>/dev/null` \ 2053 ; do 2054 if test -f "$i/tclConfig.sh" ; then 2055 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2056 break 2057 fi 2058 done 2059 fi 2060 2061 # check in a few other private locations 2062 if test x"${ac_cv_c_tclconfig}" = x ; then 2063 for i in \ 2064 ${srcdir}/../tcl \ 2065 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2066 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2067 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2068 if test "${TEA_PLATFORM}" = "windows" \ 2069 -a -f "$i/win/tclConfig.sh" ; then 2070 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2071 break 2072 fi 2073 if test -f "$i/unix/tclConfig.sh" ; then 2074 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2075 break 2076 fi 2077 done 2078 fi 2079 2080fi 2081 2082 2083 if test x"${ac_cv_c_tclconfig}" = x ; then 2084 TCL_BIN_DIR="# no Tcl configs found" 2085 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2086echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2087 { (exit 1); exit 1; }; } 2088 else 2089 no_tcl= 2090 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2091 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2092echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2093 fi 2094 fi 2095 2096 2097 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2098echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2099 2100 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2101 { echo "$as_me:$LINENO: result: loading" >&5 2102echo "${ECHO_T}loading" >&6; } 2103 . "${TCL_BIN_DIR}/tclConfig.sh" 2104 else 2105 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2106echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2107 fi 2108 2109 # eval is required to do the TCL_DBGX substitution 2110 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2111 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2112 2113 # If the TCL_BIN_DIR is the build directory (not the install directory), 2114 # then set the common variable name to the value of the build variables. 2115 # For example, the variable TCL_LIB_SPEC will be set to the value 2116 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2117 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2118 # installed and uninstalled version of Tcl. 2119 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2120 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2121 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2122 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2123 elif test "`uname -s`" = "Darwin"; then 2124 # If Tcl was built as a framework, attempt to use the libraries 2125 # from the framework at the given location so that linking works 2126 # against Tcl.framework installed in an arbitrary location. 2127 case ${TCL_DEFS} in 2128 *TCL_FRAMEWORK*) 2129 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2130 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2131 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2132 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2133 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2134 break 2135 fi 2136 done 2137 fi 2138 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2139 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2140 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2141 fi 2142 ;; 2143 esac 2144 fi 2145 2146 # eval is required to do the TCL_DBGX substitution 2147 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2148 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2149 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2150 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 case "`uname -s`" in 2166 *CYGWIN_*) 2167 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2168echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2169 case ${TCL_EXTRA_CFLAGS} in 2170 *-mwin32*|*-mno-cygwin*) 2171 TEA_PLATFORM="windows" 2172 CFLAGS="$CFLAGS -mwin32" 2173 { echo "$as_me:$LINENO: result: win32" >&5 2174echo "${ECHO_T}win32" >&6; } 2175 ;; 2176 *) 2177 TEA_PLATFORM="unix" 2178 { echo "$as_me:$LINENO: result: unix" >&5 2179echo "${ECHO_T}unix" >&6; } 2180 ;; 2181 esac 2182 EXEEXT=".exe" 2183 ;; 2184 *) 2185 ;; 2186 esac 2187 2188 # Do this here as we have fully defined TEA_PLATFORM now 2189 if test "${TEA_PLATFORM}" = "windows" ; then 2190 # The BUILD_$pkg is to define the correct extern storage class 2191 # handling when making this package 2192 2193cat >>confdefs.h <<_ACEOF 2194#define BUILD_${PACKAGE_NAME} 2195_ACEOF 2196 2197 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2198 fi 2199 2200 # TEA specific: 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 # 2211 # Ok, lets find the tk configuration 2212 # First, look for one uninstalled. 2213 # the alternative search directory is invoked by --with-tk 2214 # 2215 2216 if test x"${no_tk}" = x ; then 2217 # we reset no_tk in case something fails here 2218 no_tk=true 2219 2220# Check whether --with-tk was given. 2221if test "${with_tk+set}" = set; then 2222 withval=$with_tk; with_tkconfig="${withval}" 2223fi 2224 2225 { echo "$as_me:$LINENO: checking for Tk configuration" >&5 2226echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6; } 2227 if test "${ac_cv_c_tkconfig+set}" = set; then 2228 echo $ECHO_N "(cached) $ECHO_C" >&6 2229else 2230 2231 2232 # First check to see if --with-tkconfig was specified. 2233 if test x"${with_tkconfig}" != x ; then 2234 case "${with_tkconfig}" in 2235 */tkConfig.sh ) 2236 if test -f "${with_tkconfig}"; then 2237 { echo "$as_me:$LINENO: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5 2238echo "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;} 2239 with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`" 2240 fi ;; 2241 esac 2242 if test -f "${with_tkconfig}/tkConfig.sh" ; then 2243 ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`" 2244 else 2245 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 2246echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} 2247 { (exit 1); exit 1; }; } 2248 fi 2249 fi 2250 2251 # then check for a private Tk library 2252 if test x"${ac_cv_c_tkconfig}" = x ; then 2253 for i in \ 2254 ../tk \ 2255 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2256 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ 2257 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ 2258 ../../tk \ 2259 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2260 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ 2261 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ 2262 ../../../tk \ 2263 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2264 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ 2265 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do 2266 if test "${TEA_PLATFORM}" = "windows" \ 2267 -a -f "$i/win/tkConfig.sh" ; then 2268 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2269 break 2270 fi 2271 if test -f "$i/unix/tkConfig.sh" ; then 2272 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2273 break 2274 fi 2275 done 2276 fi 2277 2278 # on Darwin, check in Framework installation locations 2279 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then 2280 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2281 `ls -d /Library/Frameworks 2>/dev/null` \ 2282 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2283 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2284 ; do 2285 if test -f "$i/Tk.framework/tkConfig.sh" ; then 2286 ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`" 2287 break 2288 fi 2289 done 2290 fi 2291 2292 # check in a few common install locations 2293 if test x"${ac_cv_c_tkconfig}" = x ; then 2294 for i in `ls -d ${libdir} 2>/dev/null` \ 2295 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2296 `ls -d ${prefix}/lib 2>/dev/null` \ 2297 `ls -d /usr/local/lib 2>/dev/null` \ 2298 `ls -d /usr/contrib/lib 2>/dev/null` \ 2299 `ls -d /usr/lib 2>/dev/null` \ 2300 `ls -d /usr/lib64 2>/dev/null` \ 2301 ; do 2302 if test -f "$i/tkConfig.sh" ; then 2303 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2304 break 2305 fi 2306 done 2307 fi 2308 2309 # TEA specific: on Windows, check in common installation locations 2310 if test "${TEA_PLATFORM}" = "windows" \ 2311 -a x"${ac_cv_c_tkconfig}" = x ; then 2312 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2313 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2314 ; do 2315 if test -f "$i/tkConfig.sh" ; then 2316 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2317 break 2318 fi 2319 done 2320 fi 2321 2322 # check in a few other private locations 2323 if test x"${ac_cv_c_tkconfig}" = x ; then 2324 for i in \ 2325 ${srcdir}/../tk \ 2326 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2327 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ 2328 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do 2329 if test "${TEA_PLATFORM}" = "windows" \ 2330 -a -f "$i/win/tkConfig.sh" ; then 2331 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2332 break 2333 fi 2334 if test -f "$i/unix/tkConfig.sh" ; then 2335 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2336 break 2337 fi 2338 done 2339 fi 2340 2341fi 2342 2343 2344 if test x"${ac_cv_c_tkconfig}" = x ; then 2345 TK_BIN_DIR="# no Tk configs found" 2346 { { echo "$as_me:$LINENO: error: Can't find Tk configuration definitions" >&5 2347echo "$as_me: error: Can't find Tk configuration definitions" >&2;} 2348 { (exit 1); exit 1; }; } 2349 else 2350 no_tk= 2351 TK_BIN_DIR="${ac_cv_c_tkconfig}" 2352 { echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 2353echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2354 fi 2355 fi 2356 2357 2358 { echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 2359echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6; } 2360 2361 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then 2362 { echo "$as_me:$LINENO: result: loading" >&5 2363echo "${ECHO_T}loading" >&6; } 2364 . "${TK_BIN_DIR}/tkConfig.sh" 2365 else 2366 { echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 2367echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2368 fi 2369 2370 # eval is required to do the TK_DBGX substitution 2371 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" 2372 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" 2373 2374 # If the TK_BIN_DIR is the build directory (not the install directory), 2375 # then set the common variable name to the value of the build variables. 2376 # For example, the variable TK_LIB_SPEC will be set to the value 2377 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC 2378 # instead of TK_BUILD_LIB_SPEC since it will work with both an 2379 # installed and uninstalled version of Tcl. 2380 if test -f "${TK_BIN_DIR}/Makefile" ; then 2381 TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}" 2382 TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}" 2383 TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}" 2384 elif test "`uname -s`" = "Darwin"; then 2385 # If Tk was built as a framework, attempt to use the libraries 2386 # from the framework at the given location so that linking works 2387 # against Tk.framework installed in an arbitrary location. 2388 case ${TK_DEFS} in 2389 *TK_FRAMEWORK*) 2390 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then 2391 for i in "`cd "${TK_BIN_DIR}"; pwd`" \ 2392 "`cd "${TK_BIN_DIR}"/../..; pwd`"; do 2393 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then 2394 TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}" 2395 break 2396 fi 2397 done 2398 fi 2399 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then 2400 TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}" 2401 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" 2402 fi 2403 ;; 2404 esac 2405 fi 2406 2407 # eval is required to do the TK_DBGX substitution 2408 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" 2409 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" 2410 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" 2411 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" 2412 2413 # TEA specific: Ensure windowingsystem is defined 2414 if test "${TEA_PLATFORM}" = "unix" ; then 2415 case ${TK_DEFS} in 2416 *MAC_OSX_TK*) 2417 2418cat >>confdefs.h <<\_ACEOF 2419#define MAC_OSX_TK 1 2420_ACEOF 2421 2422 TEA_WINDOWINGSYSTEM="aqua" 2423 ;; 2424 *) 2425 TEA_WINDOWINGSYSTEM="x11" 2426 ;; 2427 esac 2428 elif test "${TEA_PLATFORM}" = "windows" ; then 2429 TEA_WINDOWINGSYSTEM="win32" 2430 fi 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 # TEA specific: 2445 2446 2447 2448 2449#----------------------------------------------------------------------- 2450# Handle the --prefix=... option by defaulting to what Tcl gave. 2451# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2452#----------------------------------------------------------------------- 2453 2454 2455 if test "${prefix}" = "NONE"; then 2456 prefix_default=yes 2457 if test x"${TCL_PREFIX}" != x; then 2458 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2459echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2460 prefix=${TCL_PREFIX} 2461 else 2462 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2463echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2464 prefix=/usr/local 2465 fi 2466 fi 2467 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2468 -o x"${exec_prefix_default}" = x"yes" ; then 2469 if test x"${TCL_EXEC_PREFIX}" != x; then 2470 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2471echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2472 exec_prefix=${TCL_EXEC_PREFIX} 2473 else 2474 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2475echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2476 exec_prefix=$prefix 2477 fi 2478 fi 2479 2480 2481#----------------------------------------------------------------------- 2482# Standard compiler checks. 2483# This sets up CC by using the CC env var, or looks for gcc otherwise. 2484# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2485# the basic setup necessary to compile executables. 2486#----------------------------------------------------------------------- 2487 2488 2489 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2490 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2491 2492 # If the user did not set CFLAGS, set it now to keep 2493 # the AC_PROG_CC macro from adding "-g -O2". 2494 if test "${CFLAGS+set}" != "set" ; then 2495 CFLAGS="" 2496 fi 2497 2498 ac_ext=c 2499ac_cpp='$CPP $CPPFLAGS' 2500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2502ac_compiler_gnu=$ac_cv_c_compiler_gnu 2503if test -n "$ac_tool_prefix"; then 2504 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2505set dummy ${ac_tool_prefix}gcc; ac_word=$2 2506{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2508if test "${ac_cv_prog_CC+set}" = set; then 2509 echo $ECHO_N "(cached) $ECHO_C" >&6 2510else 2511 if test -n "$CC"; then 2512 ac_cv_prog_CC="$CC" # Let the user override the test. 2513else 2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2515for as_dir in $PATH 2516do 2517 IFS=$as_save_IFS 2518 test -z "$as_dir" && as_dir=. 2519 for ac_exec_ext in '' $ac_executable_extensions; do 2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2521 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2523 break 2 2524 fi 2525done 2526done 2527IFS=$as_save_IFS 2528 2529fi 2530fi 2531CC=$ac_cv_prog_CC 2532if test -n "$CC"; then 2533 { echo "$as_me:$LINENO: result: $CC" >&5 2534echo "${ECHO_T}$CC" >&6; } 2535else 2536 { echo "$as_me:$LINENO: result: no" >&5 2537echo "${ECHO_T}no" >&6; } 2538fi 2539 2540 2541fi 2542if test -z "$ac_cv_prog_CC"; then 2543 ac_ct_CC=$CC 2544 # Extract the first word of "gcc", so it can be a program name with args. 2545set dummy gcc; ac_word=$2 2546{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2548if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2549 echo $ECHO_N "(cached) $ECHO_C" >&6 2550else 2551 if test -n "$ac_ct_CC"; then 2552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2553else 2554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2555for as_dir in $PATH 2556do 2557 IFS=$as_save_IFS 2558 test -z "$as_dir" && as_dir=. 2559 for ac_exec_ext in '' $ac_executable_extensions; do 2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2561 ac_cv_prog_ac_ct_CC="gcc" 2562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2563 break 2 2564 fi 2565done 2566done 2567IFS=$as_save_IFS 2568 2569fi 2570fi 2571ac_ct_CC=$ac_cv_prog_ac_ct_CC 2572if test -n "$ac_ct_CC"; then 2573 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2574echo "${ECHO_T}$ac_ct_CC" >&6; } 2575else 2576 { echo "$as_me:$LINENO: result: no" >&5 2577echo "${ECHO_T}no" >&6; } 2578fi 2579 2580 if test "x$ac_ct_CC" = x; then 2581 CC="" 2582 else 2583 case $cross_compiling:$ac_tool_warned in 2584yes:) 2585{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2586whose name does not start with the host triplet. If you think this 2587configuration is useful to you, please write to autoconf@gnu.org." >&5 2588echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2589whose name does not start with the host triplet. If you think this 2590configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2591ac_tool_warned=yes ;; 2592esac 2593 CC=$ac_ct_CC 2594 fi 2595else 2596 CC="$ac_cv_prog_CC" 2597fi 2598 2599if test -z "$CC"; then 2600 if test -n "$ac_tool_prefix"; then 2601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2602set dummy ${ac_tool_prefix}cc; ac_word=$2 2603{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2605if test "${ac_cv_prog_CC+set}" = set; then 2606 echo $ECHO_N "(cached) $ECHO_C" >&6 2607else 2608 if test -n "$CC"; then 2609 ac_cv_prog_CC="$CC" # Let the user override the test. 2610else 2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2612for as_dir in $PATH 2613do 2614 IFS=$as_save_IFS 2615 test -z "$as_dir" && as_dir=. 2616 for ac_exec_ext in '' $ac_executable_extensions; do 2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2618 ac_cv_prog_CC="${ac_tool_prefix}cc" 2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2620 break 2 2621 fi 2622done 2623done 2624IFS=$as_save_IFS 2625 2626fi 2627fi 2628CC=$ac_cv_prog_CC 2629if test -n "$CC"; then 2630 { echo "$as_me:$LINENO: result: $CC" >&5 2631echo "${ECHO_T}$CC" >&6; } 2632else 2633 { echo "$as_me:$LINENO: result: no" >&5 2634echo "${ECHO_T}no" >&6; } 2635fi 2636 2637 2638 fi 2639fi 2640if test -z "$CC"; then 2641 # Extract the first word of "cc", so it can be a program name with args. 2642set dummy cc; ac_word=$2 2643{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2645if test "${ac_cv_prog_CC+set}" = set; then 2646 echo $ECHO_N "(cached) $ECHO_C" >&6 2647else 2648 if test -n "$CC"; then 2649 ac_cv_prog_CC="$CC" # Let the user override the test. 2650else 2651 ac_prog_rejected=no 2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2653for as_dir in $PATH 2654do 2655 IFS=$as_save_IFS 2656 test -z "$as_dir" && as_dir=. 2657 for ac_exec_ext in '' $ac_executable_extensions; do 2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2659 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2660 ac_prog_rejected=yes 2661 continue 2662 fi 2663 ac_cv_prog_CC="cc" 2664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2665 break 2 2666 fi 2667done 2668done 2669IFS=$as_save_IFS 2670 2671if test $ac_prog_rejected = yes; then 2672 # We found a bogon in the path, so make sure we never use it. 2673 set dummy $ac_cv_prog_CC 2674 shift 2675 if test $# != 0; then 2676 # We chose a different compiler from the bogus one. 2677 # However, it has the same basename, so the bogon will be chosen 2678 # first if we set CC to just the basename; use the full file name. 2679 shift 2680 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2681 fi 2682fi 2683fi 2684fi 2685CC=$ac_cv_prog_CC 2686if test -n "$CC"; then 2687 { echo "$as_me:$LINENO: result: $CC" >&5 2688echo "${ECHO_T}$CC" >&6; } 2689else 2690 { echo "$as_me:$LINENO: result: no" >&5 2691echo "${ECHO_T}no" >&6; } 2692fi 2693 2694 2695fi 2696if test -z "$CC"; then 2697 if test -n "$ac_tool_prefix"; then 2698 for ac_prog in cl.exe 2699 do 2700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2701set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2702{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2704if test "${ac_cv_prog_CC+set}" = set; then 2705 echo $ECHO_N "(cached) $ECHO_C" >&6 2706else 2707 if test -n "$CC"; then 2708 ac_cv_prog_CC="$CC" # Let the user override the test. 2709else 2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2711for as_dir in $PATH 2712do 2713 IFS=$as_save_IFS 2714 test -z "$as_dir" && as_dir=. 2715 for ac_exec_ext in '' $ac_executable_extensions; do 2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2717 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2719 break 2 2720 fi 2721done 2722done 2723IFS=$as_save_IFS 2724 2725fi 2726fi 2727CC=$ac_cv_prog_CC 2728if test -n "$CC"; then 2729 { echo "$as_me:$LINENO: result: $CC" >&5 2730echo "${ECHO_T}$CC" >&6; } 2731else 2732 { echo "$as_me:$LINENO: result: no" >&5 2733echo "${ECHO_T}no" >&6; } 2734fi 2735 2736 2737 test -n "$CC" && break 2738 done 2739fi 2740if test -z "$CC"; then 2741 ac_ct_CC=$CC 2742 for ac_prog in cl.exe 2743do 2744 # Extract the first word of "$ac_prog", so it can be a program name with args. 2745set dummy $ac_prog; ac_word=$2 2746{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2748if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2749 echo $ECHO_N "(cached) $ECHO_C" >&6 2750else 2751 if test -n "$ac_ct_CC"; then 2752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2753else 2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2755for as_dir in $PATH 2756do 2757 IFS=$as_save_IFS 2758 test -z "$as_dir" && as_dir=. 2759 for ac_exec_ext in '' $ac_executable_extensions; do 2760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2761 ac_cv_prog_ac_ct_CC="$ac_prog" 2762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2763 break 2 2764 fi 2765done 2766done 2767IFS=$as_save_IFS 2768 2769fi 2770fi 2771ac_ct_CC=$ac_cv_prog_ac_ct_CC 2772if test -n "$ac_ct_CC"; then 2773 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2774echo "${ECHO_T}$ac_ct_CC" >&6; } 2775else 2776 { echo "$as_me:$LINENO: result: no" >&5 2777echo "${ECHO_T}no" >&6; } 2778fi 2779 2780 2781 test -n "$ac_ct_CC" && break 2782done 2783 2784 if test "x$ac_ct_CC" = x; then 2785 CC="" 2786 else 2787 case $cross_compiling:$ac_tool_warned in 2788yes:) 2789{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2790whose name does not start with the host triplet. If you think this 2791configuration is useful to you, please write to autoconf@gnu.org." >&5 2792echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2793whose name does not start with the host triplet. If you think this 2794configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2795ac_tool_warned=yes ;; 2796esac 2797 CC=$ac_ct_CC 2798 fi 2799fi 2800 2801fi 2802 2803 2804test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2805See \`config.log' for more details." >&5 2806echo "$as_me: error: no acceptable C compiler found in \$PATH 2807See \`config.log' for more details." >&2;} 2808 { (exit 1); exit 1; }; } 2809 2810# Provide some information about the compiler. 2811echo "$as_me:$LINENO: checking for C compiler version" >&5 2812ac_compiler=`set X $ac_compile; echo $2` 2813{ (ac_try="$ac_compiler --version >&5" 2814case "(($ac_try" in 2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2816 *) ac_try_echo=$ac_try;; 2817esac 2818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2819 (eval "$ac_compiler --version >&5") 2>&5 2820 ac_status=$? 2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2822 (exit $ac_status); } 2823{ (ac_try="$ac_compiler -v >&5" 2824case "(($ac_try" in 2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2826 *) ac_try_echo=$ac_try;; 2827esac 2828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2829 (eval "$ac_compiler -v >&5") 2>&5 2830 ac_status=$? 2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2832 (exit $ac_status); } 2833{ (ac_try="$ac_compiler -V >&5" 2834case "(($ac_try" in 2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2836 *) ac_try_echo=$ac_try;; 2837esac 2838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2839 (eval "$ac_compiler -V >&5") 2>&5 2840 ac_status=$? 2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2842 (exit $ac_status); } 2843 2844cat >conftest.$ac_ext <<_ACEOF 2845/* confdefs.h. */ 2846_ACEOF 2847cat confdefs.h >>conftest.$ac_ext 2848cat >>conftest.$ac_ext <<_ACEOF 2849/* end confdefs.h. */ 2850 2851int 2852main () 2853{ 2854 2855 ; 2856 return 0; 2857} 2858_ACEOF 2859ac_clean_files_save=$ac_clean_files 2860ac_clean_files="$ac_clean_files a.out a.exe b.out" 2861# Try to create an executable without -o first, disregard a.out. 2862# It will help us diagnose broken compilers, and finding out an intuition 2863# of exeext. 2864{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2865echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2866ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2867# 2868# List of possible output files, starting from the most likely. 2869# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2870# only as a last resort. b.out is created by i960 compilers. 2871ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2872# 2873# The IRIX 6 linker writes into existing files which may not be 2874# executable, retaining their permissions. Remove them first so a 2875# subsequent execution test works. 2876ac_rmfiles= 2877for ac_file in $ac_files 2878do 2879 case $ac_file in 2880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2881 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2882 esac 2883done 2884rm -f $ac_rmfiles 2885 2886if { (ac_try="$ac_link_default" 2887case "(($ac_try" in 2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2889 *) ac_try_echo=$ac_try;; 2890esac 2891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2892 (eval "$ac_link_default") 2>&5 2893 ac_status=$? 2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2895 (exit $ac_status); }; then 2896 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2897# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2898# in a Makefile. We should not override ac_cv_exeext if it was cached, 2899# so that the user can short-circuit this test for compilers unknown to 2900# Autoconf. 2901for ac_file in $ac_files '' 2902do 2903 test -f "$ac_file" || continue 2904 case $ac_file in 2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2906 ;; 2907 [ab].out ) 2908 # We found the default executable, but exeext='' is most 2909 # certainly right. 2910 break;; 2911 *.* ) 2912 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2913 then :; else 2914 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2915 fi 2916 # We set ac_cv_exeext here because the later test for it is not 2917 # safe: cross compilers may not add the suffix if given an `-o' 2918 # argument, so we may need to know it at that point already. 2919 # Even if this section looks crufty: it has the advantage of 2920 # actually working. 2921 break;; 2922 * ) 2923 break;; 2924 esac 2925done 2926test "$ac_cv_exeext" = no && ac_cv_exeext= 2927 2928else 2929 ac_file='' 2930fi 2931 2932{ echo "$as_me:$LINENO: result: $ac_file" >&5 2933echo "${ECHO_T}$ac_file" >&6; } 2934if test -z "$ac_file"; then 2935 echo "$as_me: failed program was:" >&5 2936sed 's/^/| /' conftest.$ac_ext >&5 2937 2938{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2939See \`config.log' for more details." >&5 2940echo "$as_me: error: C compiler cannot create executables 2941See \`config.log' for more details." >&2;} 2942 { (exit 77); exit 77; }; } 2943fi 2944 2945ac_exeext=$ac_cv_exeext 2946 2947# Check that the compiler produces executables we can run. If not, either 2948# the compiler is broken, or we cross compile. 2949{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2950echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2951# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2952# If not cross compiling, check that we can run a simple program. 2953if test "$cross_compiling" != yes; then 2954 if { ac_try='./$ac_file' 2955 { (case "(($ac_try" in 2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2957 *) ac_try_echo=$ac_try;; 2958esac 2959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2960 (eval "$ac_try") 2>&5 2961 ac_status=$? 2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2963 (exit $ac_status); }; }; then 2964 cross_compiling=no 2965 else 2966 if test "$cross_compiling" = maybe; then 2967 cross_compiling=yes 2968 else 2969 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2970If you meant to cross compile, use \`--host'. 2971See \`config.log' for more details." >&5 2972echo "$as_me: error: cannot run C compiled programs. 2973If you meant to cross compile, use \`--host'. 2974See \`config.log' for more details." >&2;} 2975 { (exit 1); exit 1; }; } 2976 fi 2977 fi 2978fi 2979{ echo "$as_me:$LINENO: result: yes" >&5 2980echo "${ECHO_T}yes" >&6; } 2981 2982rm -f a.out a.exe conftest$ac_cv_exeext b.out 2983ac_clean_files=$ac_clean_files_save 2984# Check that the compiler produces executables we can run. If not, either 2985# the compiler is broken, or we cross compile. 2986{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2987echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2988{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2989echo "${ECHO_T}$cross_compiling" >&6; } 2990 2991{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2992echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2993if { (ac_try="$ac_link" 2994case "(($ac_try" in 2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2996 *) ac_try_echo=$ac_try;; 2997esac 2998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2999 (eval "$ac_link") 2>&5 3000 ac_status=$? 3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3002 (exit $ac_status); }; then 3003 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3004# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3005# work properly (i.e., refer to `conftest.exe'), while it won't with 3006# `rm'. 3007for ac_file in conftest.exe conftest conftest.*; do 3008 test -f "$ac_file" || continue 3009 case $ac_file in 3010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3011 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3012 break;; 3013 * ) break;; 3014 esac 3015done 3016else 3017 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3018See \`config.log' for more details." >&5 3019echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3020See \`config.log' for more details." >&2;} 3021 { (exit 1); exit 1; }; } 3022fi 3023 3024rm -f conftest$ac_cv_exeext 3025{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3026echo "${ECHO_T}$ac_cv_exeext" >&6; } 3027 3028rm -f conftest.$ac_ext 3029EXEEXT=$ac_cv_exeext 3030ac_exeext=$EXEEXT 3031{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3032echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3033if test "${ac_cv_objext+set}" = set; then 3034 echo $ECHO_N "(cached) $ECHO_C" >&6 3035else 3036 cat >conftest.$ac_ext <<_ACEOF 3037/* confdefs.h. */ 3038_ACEOF 3039cat confdefs.h >>conftest.$ac_ext 3040cat >>conftest.$ac_ext <<_ACEOF 3041/* end confdefs.h. */ 3042 3043int 3044main () 3045{ 3046 3047 ; 3048 return 0; 3049} 3050_ACEOF 3051rm -f conftest.o conftest.obj 3052if { (ac_try="$ac_compile" 3053case "(($ac_try" in 3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3055 *) ac_try_echo=$ac_try;; 3056esac 3057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3058 (eval "$ac_compile") 2>&5 3059 ac_status=$? 3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3061 (exit $ac_status); }; then 3062 for ac_file in conftest.o conftest.obj conftest.*; do 3063 test -f "$ac_file" || continue; 3064 case $ac_file in 3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3066 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3067 break;; 3068 esac 3069done 3070else 3071 echo "$as_me: failed program was:" >&5 3072sed 's/^/| /' conftest.$ac_ext >&5 3073 3074{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3075See \`config.log' for more details." >&5 3076echo "$as_me: error: cannot compute suffix of object files: cannot compile 3077See \`config.log' for more details." >&2;} 3078 { (exit 1); exit 1; }; } 3079fi 3080 3081rm -f conftest.$ac_cv_objext conftest.$ac_ext 3082fi 3083{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3084echo "${ECHO_T}$ac_cv_objext" >&6; } 3085OBJEXT=$ac_cv_objext 3086ac_objext=$OBJEXT 3087{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3088echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3089if test "${ac_cv_c_compiler_gnu+set}" = set; then 3090 echo $ECHO_N "(cached) $ECHO_C" >&6 3091else 3092 cat >conftest.$ac_ext <<_ACEOF 3093/* confdefs.h. */ 3094_ACEOF 3095cat confdefs.h >>conftest.$ac_ext 3096cat >>conftest.$ac_ext <<_ACEOF 3097/* end confdefs.h. */ 3098 3099int 3100main () 3101{ 3102#ifndef __GNUC__ 3103 choke me 3104#endif 3105 3106 ; 3107 return 0; 3108} 3109_ACEOF 3110rm -f conftest.$ac_objext 3111if { (ac_try="$ac_compile" 3112case "(($ac_try" in 3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3114 *) ac_try_echo=$ac_try;; 3115esac 3116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3117 (eval "$ac_compile") 2>conftest.er1 3118 ac_status=$? 3119 grep -v '^ *+' conftest.er1 >conftest.err 3120 rm -f conftest.er1 3121 cat conftest.err >&5 3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3123 (exit $ac_status); } && { 3124 test -z "$ac_c_werror_flag" || 3125 test ! -s conftest.err 3126 } && test -s conftest.$ac_objext; then 3127 ac_compiler_gnu=yes 3128else 3129 echo "$as_me: failed program was:" >&5 3130sed 's/^/| /' conftest.$ac_ext >&5 3131 3132 ac_compiler_gnu=no 3133fi 3134 3135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3136ac_cv_c_compiler_gnu=$ac_compiler_gnu 3137 3138fi 3139{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3140echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3141GCC=`test $ac_compiler_gnu = yes && echo yes` 3142ac_test_CFLAGS=${CFLAGS+set} 3143ac_save_CFLAGS=$CFLAGS 3144{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3145echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3146if test "${ac_cv_prog_cc_g+set}" = set; then 3147 echo $ECHO_N "(cached) $ECHO_C" >&6 3148else 3149 ac_save_c_werror_flag=$ac_c_werror_flag 3150 ac_c_werror_flag=yes 3151 ac_cv_prog_cc_g=no 3152 CFLAGS="-g" 3153 cat >conftest.$ac_ext <<_ACEOF 3154/* confdefs.h. */ 3155_ACEOF 3156cat confdefs.h >>conftest.$ac_ext 3157cat >>conftest.$ac_ext <<_ACEOF 3158/* end confdefs.h. */ 3159 3160int 3161main () 3162{ 3163 3164 ; 3165 return 0; 3166} 3167_ACEOF 3168rm -f conftest.$ac_objext 3169if { (ac_try="$ac_compile" 3170case "(($ac_try" in 3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3172 *) ac_try_echo=$ac_try;; 3173esac 3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3175 (eval "$ac_compile") 2>conftest.er1 3176 ac_status=$? 3177 grep -v '^ *+' conftest.er1 >conftest.err 3178 rm -f conftest.er1 3179 cat conftest.err >&5 3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 (exit $ac_status); } && { 3182 test -z "$ac_c_werror_flag" || 3183 test ! -s conftest.err 3184 } && test -s conftest.$ac_objext; then 3185 ac_cv_prog_cc_g=yes 3186else 3187 echo "$as_me: failed program was:" >&5 3188sed 's/^/| /' conftest.$ac_ext >&5 3189 3190 CFLAGS="" 3191 cat >conftest.$ac_ext <<_ACEOF 3192/* confdefs.h. */ 3193_ACEOF 3194cat confdefs.h >>conftest.$ac_ext 3195cat >>conftest.$ac_ext <<_ACEOF 3196/* end confdefs.h. */ 3197 3198int 3199main () 3200{ 3201 3202 ; 3203 return 0; 3204} 3205_ACEOF 3206rm -f conftest.$ac_objext 3207if { (ac_try="$ac_compile" 3208case "(($ac_try" in 3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3210 *) ac_try_echo=$ac_try;; 3211esac 3212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3213 (eval "$ac_compile") 2>conftest.er1 3214 ac_status=$? 3215 grep -v '^ *+' conftest.er1 >conftest.err 3216 rm -f conftest.er1 3217 cat conftest.err >&5 3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3219 (exit $ac_status); } && { 3220 test -z "$ac_c_werror_flag" || 3221 test ! -s conftest.err 3222 } && test -s conftest.$ac_objext; then 3223 : 3224else 3225 echo "$as_me: failed program was:" >&5 3226sed 's/^/| /' conftest.$ac_ext >&5 3227 3228 ac_c_werror_flag=$ac_save_c_werror_flag 3229 CFLAGS="-g" 3230 cat >conftest.$ac_ext <<_ACEOF 3231/* confdefs.h. */ 3232_ACEOF 3233cat confdefs.h >>conftest.$ac_ext 3234cat >>conftest.$ac_ext <<_ACEOF 3235/* end confdefs.h. */ 3236 3237int 3238main () 3239{ 3240 3241 ; 3242 return 0; 3243} 3244_ACEOF 3245rm -f conftest.$ac_objext 3246if { (ac_try="$ac_compile" 3247case "(($ac_try" in 3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *) ac_try_echo=$ac_try;; 3250esac 3251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3252 (eval "$ac_compile") 2>conftest.er1 3253 ac_status=$? 3254 grep -v '^ *+' conftest.er1 >conftest.err 3255 rm -f conftest.er1 3256 cat conftest.err >&5 3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3258 (exit $ac_status); } && { 3259 test -z "$ac_c_werror_flag" || 3260 test ! -s conftest.err 3261 } && test -s conftest.$ac_objext; then 3262 ac_cv_prog_cc_g=yes 3263else 3264 echo "$as_me: failed program was:" >&5 3265sed 's/^/| /' conftest.$ac_ext >&5 3266 3267 3268fi 3269 3270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3271fi 3272 3273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3274fi 3275 3276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3277 ac_c_werror_flag=$ac_save_c_werror_flag 3278fi 3279{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3280echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3281if test "$ac_test_CFLAGS" = set; then 3282 CFLAGS=$ac_save_CFLAGS 3283elif test $ac_cv_prog_cc_g = yes; then 3284 if test "$GCC" = yes; then 3285 CFLAGS="-g -O2" 3286 else 3287 CFLAGS="-g" 3288 fi 3289else 3290 if test "$GCC" = yes; then 3291 CFLAGS="-O2" 3292 else 3293 CFLAGS= 3294 fi 3295fi 3296{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3297echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3298if test "${ac_cv_prog_cc_c89+set}" = set; then 3299 echo $ECHO_N "(cached) $ECHO_C" >&6 3300else 3301 ac_cv_prog_cc_c89=no 3302ac_save_CC=$CC 3303cat >conftest.$ac_ext <<_ACEOF 3304/* confdefs.h. */ 3305_ACEOF 3306cat confdefs.h >>conftest.$ac_ext 3307cat >>conftest.$ac_ext <<_ACEOF 3308/* end confdefs.h. */ 3309#include <stdarg.h> 3310#include <stdio.h> 3311#include <sys/types.h> 3312#include <sys/stat.h> 3313/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3314struct buf { int x; }; 3315FILE * (*rcsopen) (struct buf *, struct stat *, int); 3316static char *e (p, i) 3317 char **p; 3318 int i; 3319{ 3320 return p[i]; 3321} 3322static char *f (char * (*g) (char **, int), char **p, ...) 3323{ 3324 char *s; 3325 va_list v; 3326 va_start (v,p); 3327 s = g (p, va_arg (v,int)); 3328 va_end (v); 3329 return s; 3330} 3331 3332/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3333 function prototypes and stuff, but not '\xHH' hex character constants. 3334 These don't provoke an error unfortunately, instead are silently treated 3335 as 'x'. The following induces an error, until -std is added to get 3336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3337 array size at least. It's necessary to write '\x00'==0 to get something 3338 that's true only with -std. */ 3339int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3340 3341/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3342 inside strings and character constants. */ 3343#define FOO(x) 'x' 3344int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3345 3346int test (int i, double x); 3347struct s1 {int (*f) (int a);}; 3348struct s2 {int (*f) (double a);}; 3349int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3350int argc; 3351char **argv; 3352int 3353main () 3354{ 3355return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3356 ; 3357 return 0; 3358} 3359_ACEOF 3360for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3362do 3363 CC="$ac_save_CC $ac_arg" 3364 rm -f conftest.$ac_objext 3365if { (ac_try="$ac_compile" 3366case "(($ac_try" in 3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3368 *) ac_try_echo=$ac_try;; 3369esac 3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3371 (eval "$ac_compile") 2>conftest.er1 3372 ac_status=$? 3373 grep -v '^ *+' conftest.er1 >conftest.err 3374 rm -f conftest.er1 3375 cat conftest.err >&5 3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3377 (exit $ac_status); } && { 3378 test -z "$ac_c_werror_flag" || 3379 test ! -s conftest.err 3380 } && test -s conftest.$ac_objext; then 3381 ac_cv_prog_cc_c89=$ac_arg 3382else 3383 echo "$as_me: failed program was:" >&5 3384sed 's/^/| /' conftest.$ac_ext >&5 3385 3386 3387fi 3388 3389rm -f core conftest.err conftest.$ac_objext 3390 test "x$ac_cv_prog_cc_c89" != "xno" && break 3391done 3392rm -f conftest.$ac_ext 3393CC=$ac_save_CC 3394 3395fi 3396# AC_CACHE_VAL 3397case "x$ac_cv_prog_cc_c89" in 3398 x) 3399 { echo "$as_me:$LINENO: result: none needed" >&5 3400echo "${ECHO_T}none needed" >&6; } ;; 3401 xno) 3402 { echo "$as_me:$LINENO: result: unsupported" >&5 3403echo "${ECHO_T}unsupported" >&6; } ;; 3404 *) 3405 CC="$CC $ac_cv_prog_cc_c89" 3406 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3407echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3408esac 3409 3410 3411ac_ext=c 3412ac_cpp='$CPP $CPPFLAGS' 3413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3415ac_compiler_gnu=$ac_cv_c_compiler_gnu 3416 3417 ac_ext=c 3418ac_cpp='$CPP $CPPFLAGS' 3419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3421ac_compiler_gnu=$ac_cv_c_compiler_gnu 3422{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3423echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3424# On Suns, sometimes $CPP names a directory. 3425if test -n "$CPP" && test -d "$CPP"; then 3426 CPP= 3427fi 3428if test -z "$CPP"; then 3429 if test "${ac_cv_prog_CPP+set}" = set; then 3430 echo $ECHO_N "(cached) $ECHO_C" >&6 3431else 3432 # Double quotes because CPP needs to be expanded 3433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3434 do 3435 ac_preproc_ok=false 3436for ac_c_preproc_warn_flag in '' yes 3437do 3438 # Use a header file that comes with gcc, so configuring glibc 3439 # with a fresh cross-compiler works. 3440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3441 # <limits.h> exists even on freestanding compilers. 3442 # On the NeXT, cc -E runs the code through the compiler's parser, 3443 # not just through cpp. "Syntax error" is here to catch this case. 3444 cat >conftest.$ac_ext <<_ACEOF 3445/* confdefs.h. */ 3446_ACEOF 3447cat confdefs.h >>conftest.$ac_ext 3448cat >>conftest.$ac_ext <<_ACEOF 3449/* end confdefs.h. */ 3450#ifdef __STDC__ 3451# include <limits.h> 3452#else 3453# include <assert.h> 3454#endif 3455 Syntax error 3456_ACEOF 3457if { (ac_try="$ac_cpp conftest.$ac_ext" 3458case "(($ac_try" in 3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3460 *) ac_try_echo=$ac_try;; 3461esac 3462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3464 ac_status=$? 3465 grep -v '^ *+' conftest.er1 >conftest.err 3466 rm -f conftest.er1 3467 cat conftest.err >&5 3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3469 (exit $ac_status); } >/dev/null && { 3470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3471 test ! -s conftest.err 3472 }; then 3473 : 3474else 3475 echo "$as_me: failed program was:" >&5 3476sed 's/^/| /' conftest.$ac_ext >&5 3477 3478 # Broken: fails on valid input. 3479continue 3480fi 3481 3482rm -f conftest.err conftest.$ac_ext 3483 3484 # OK, works on sane cases. Now check whether nonexistent headers 3485 # can be detected and how. 3486 cat >conftest.$ac_ext <<_ACEOF 3487/* confdefs.h. */ 3488_ACEOF 3489cat confdefs.h >>conftest.$ac_ext 3490cat >>conftest.$ac_ext <<_ACEOF 3491/* end confdefs.h. */ 3492#include <ac_nonexistent.h> 3493_ACEOF 3494if { (ac_try="$ac_cpp conftest.$ac_ext" 3495case "(($ac_try" in 3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3497 *) ac_try_echo=$ac_try;; 3498esac 3499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3501 ac_status=$? 3502 grep -v '^ *+' conftest.er1 >conftest.err 3503 rm -f conftest.er1 3504 cat conftest.err >&5 3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3506 (exit $ac_status); } >/dev/null && { 3507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3508 test ! -s conftest.err 3509 }; then 3510 # Broken: success on invalid input. 3511continue 3512else 3513 echo "$as_me: failed program was:" >&5 3514sed 's/^/| /' conftest.$ac_ext >&5 3515 3516 # Passes both tests. 3517ac_preproc_ok=: 3518break 3519fi 3520 3521rm -f conftest.err conftest.$ac_ext 3522 3523done 3524# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3525rm -f conftest.err conftest.$ac_ext 3526if $ac_preproc_ok; then 3527 break 3528fi 3529 3530 done 3531 ac_cv_prog_CPP=$CPP 3532 3533fi 3534 CPP=$ac_cv_prog_CPP 3535else 3536 ac_cv_prog_CPP=$CPP 3537fi 3538{ echo "$as_me:$LINENO: result: $CPP" >&5 3539echo "${ECHO_T}$CPP" >&6; } 3540ac_preproc_ok=false 3541for ac_c_preproc_warn_flag in '' yes 3542do 3543 # Use a header file that comes with gcc, so configuring glibc 3544 # with a fresh cross-compiler works. 3545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3546 # <limits.h> exists even on freestanding compilers. 3547 # On the NeXT, cc -E runs the code through the compiler's parser, 3548 # not just through cpp. "Syntax error" is here to catch this case. 3549 cat >conftest.$ac_ext <<_ACEOF 3550/* confdefs.h. */ 3551_ACEOF 3552cat confdefs.h >>conftest.$ac_ext 3553cat >>conftest.$ac_ext <<_ACEOF 3554/* end confdefs.h. */ 3555#ifdef __STDC__ 3556# include <limits.h> 3557#else 3558# include <assert.h> 3559#endif 3560 Syntax error 3561_ACEOF 3562if { (ac_try="$ac_cpp conftest.$ac_ext" 3563case "(($ac_try" in 3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3565 *) ac_try_echo=$ac_try;; 3566esac 3567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3569 ac_status=$? 3570 grep -v '^ *+' conftest.er1 >conftest.err 3571 rm -f conftest.er1 3572 cat conftest.err >&5 3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3574 (exit $ac_status); } >/dev/null && { 3575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3576 test ! -s conftest.err 3577 }; then 3578 : 3579else 3580 echo "$as_me: failed program was:" >&5 3581sed 's/^/| /' conftest.$ac_ext >&5 3582 3583 # Broken: fails on valid input. 3584continue 3585fi 3586 3587rm -f conftest.err conftest.$ac_ext 3588 3589 # OK, works on sane cases. Now check whether nonexistent headers 3590 # can be detected and how. 3591 cat >conftest.$ac_ext <<_ACEOF 3592/* confdefs.h. */ 3593_ACEOF 3594cat confdefs.h >>conftest.$ac_ext 3595cat >>conftest.$ac_ext <<_ACEOF 3596/* end confdefs.h. */ 3597#include <ac_nonexistent.h> 3598_ACEOF 3599if { (ac_try="$ac_cpp conftest.$ac_ext" 3600case "(($ac_try" in 3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3602 *) ac_try_echo=$ac_try;; 3603esac 3604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3606 ac_status=$? 3607 grep -v '^ *+' conftest.er1 >conftest.err 3608 rm -f conftest.er1 3609 cat conftest.err >&5 3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3611 (exit $ac_status); } >/dev/null && { 3612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3613 test ! -s conftest.err 3614 }; then 3615 # Broken: success on invalid input. 3616continue 3617else 3618 echo "$as_me: failed program was:" >&5 3619sed 's/^/| /' conftest.$ac_ext >&5 3620 3621 # Passes both tests. 3622ac_preproc_ok=: 3623break 3624fi 3625 3626rm -f conftest.err conftest.$ac_ext 3627 3628done 3629# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3630rm -f conftest.err conftest.$ac_ext 3631if $ac_preproc_ok; then 3632 : 3633else 3634 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3635See \`config.log' for more details." >&5 3636echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3637See \`config.log' for more details." >&2;} 3638 { (exit 1); exit 1; }; } 3639fi 3640 3641ac_ext=c 3642ac_cpp='$CPP $CPPFLAGS' 3643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3645ac_compiler_gnu=$ac_cv_c_compiler_gnu 3646 3647 3648 # Find a good install program. We prefer a C program (faster), 3649# so one script is as good as another. But avoid the broken or 3650# incompatible versions: 3651# SysV /etc/install, /usr/sbin/install 3652# SunOS /usr/etc/install 3653# IRIX /sbin/install 3654# AIX /bin/install 3655# AmigaOS /C/install, which installs bootblocks on floppy discs 3656# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3657# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3658# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3659# OS/2's system install, which has a completely different semantic 3660# ./install, which can be erroneously created by make from ./install.sh. 3661{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3662echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3663if test -z "$INSTALL"; then 3664if test "${ac_cv_path_install+set}" = set; then 3665 echo $ECHO_N "(cached) $ECHO_C" >&6 3666else 3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3668for as_dir in $PATH 3669do 3670 IFS=$as_save_IFS 3671 test -z "$as_dir" && as_dir=. 3672 # Account for people who put trailing slashes in PATH elements. 3673case $as_dir/ in 3674 ./ | .// | /cC/* | \ 3675 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3676 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3677 /usr/ucb/* ) ;; 3678 *) 3679 # OSF1 and SCO ODT 3.0 have their own names for install. 3680 # Don't use installbsd from OSF since it installs stuff as root 3681 # by default. 3682 for ac_prog in ginstall scoinst install; do 3683 for ac_exec_ext in '' $ac_executable_extensions; do 3684 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3685 if test $ac_prog = install && 3686 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3687 # AIX install. It has an incompatible calling convention. 3688 : 3689 elif test $ac_prog = install && 3690 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3691 # program-specific install script used by HP pwplus--don't use. 3692 : 3693 else 3694 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3695 break 3 3696 fi 3697 fi 3698 done 3699 done 3700 ;; 3701esac 3702done 3703IFS=$as_save_IFS 3704 3705 3706fi 3707 if test "${ac_cv_path_install+set}" = set; then 3708 INSTALL=$ac_cv_path_install 3709 else 3710 # As a last resort, use the slow shell script. Don't cache a 3711 # value for INSTALL within a source directory, because that will 3712 # break other packages using the cache if that directory is 3713 # removed, or if the value is a relative name. 3714 INSTALL=$ac_install_sh 3715 fi 3716fi 3717{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3718echo "${ECHO_T}$INSTALL" >&6; } 3719 3720# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3721# It thinks the first close brace ends the variable substitution. 3722test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3723 3724test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3725 3726test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3727 3728 3729 #-------------------------------------------------------------------- 3730 # Checks to see if the make program sets the $MAKE variable. 3731 #-------------------------------------------------------------------- 3732 3733 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3734echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3735set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3736if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3737 echo $ECHO_N "(cached) $ECHO_C" >&6 3738else 3739 cat >conftest.make <<\_ACEOF 3740SHELL = /bin/sh 3741all: 3742 @echo '@@@%%%=$(MAKE)=@@@%%%' 3743_ACEOF 3744# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3745case `${MAKE-make} -f conftest.make 2>/dev/null` in 3746 *@@@%%%=?*=@@@%%%*) 3747 eval ac_cv_prog_make_${ac_make}_set=yes;; 3748 *) 3749 eval ac_cv_prog_make_${ac_make}_set=no;; 3750esac 3751rm -f conftest.make 3752fi 3753if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3754 { echo "$as_me:$LINENO: result: yes" >&5 3755echo "${ECHO_T}yes" >&6; } 3756 SET_MAKE= 3757else 3758 { echo "$as_me:$LINENO: result: no" >&5 3759echo "${ECHO_T}no" >&6; } 3760 SET_MAKE="MAKE=${MAKE-make}" 3761fi 3762 3763 3764 #-------------------------------------------------------------------- 3765 # Find ranlib 3766 #-------------------------------------------------------------------- 3767 3768 if test -n "$ac_tool_prefix"; then 3769 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3770set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3771{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3773if test "${ac_cv_prog_RANLIB+set}" = set; then 3774 echo $ECHO_N "(cached) $ECHO_C" >&6 3775else 3776 if test -n "$RANLIB"; then 3777 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3778else 3779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3780for as_dir in $PATH 3781do 3782 IFS=$as_save_IFS 3783 test -z "$as_dir" && as_dir=. 3784 for ac_exec_ext in '' $ac_executable_extensions; do 3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3786 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3788 break 2 3789 fi 3790done 3791done 3792IFS=$as_save_IFS 3793 3794fi 3795fi 3796RANLIB=$ac_cv_prog_RANLIB 3797if test -n "$RANLIB"; then 3798 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3799echo "${ECHO_T}$RANLIB" >&6; } 3800else 3801 { echo "$as_me:$LINENO: result: no" >&5 3802echo "${ECHO_T}no" >&6; } 3803fi 3804 3805 3806fi 3807if test -z "$ac_cv_prog_RANLIB"; then 3808 ac_ct_RANLIB=$RANLIB 3809 # Extract the first word of "ranlib", so it can be a program name with args. 3810set dummy ranlib; ac_word=$2 3811{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3813if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3814 echo $ECHO_N "(cached) $ECHO_C" >&6 3815else 3816 if test -n "$ac_ct_RANLIB"; then 3817 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3818else 3819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3820for as_dir in $PATH 3821do 3822 IFS=$as_save_IFS 3823 test -z "$as_dir" && as_dir=. 3824 for ac_exec_ext in '' $ac_executable_extensions; do 3825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3826 ac_cv_prog_ac_ct_RANLIB="ranlib" 3827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3828 break 2 3829 fi 3830done 3831done 3832IFS=$as_save_IFS 3833 3834fi 3835fi 3836ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3837if test -n "$ac_ct_RANLIB"; then 3838 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3839echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3840else 3841 { echo "$as_me:$LINENO: result: no" >&5 3842echo "${ECHO_T}no" >&6; } 3843fi 3844 3845 if test "x$ac_ct_RANLIB" = x; then 3846 RANLIB=":" 3847 else 3848 case $cross_compiling:$ac_tool_warned in 3849yes:) 3850{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3851whose name does not start with the host triplet. If you think this 3852configuration is useful to you, please write to autoconf@gnu.org." >&5 3853echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3854whose name does not start with the host triplet. If you think this 3855configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3856ac_tool_warned=yes ;; 3857esac 3858 RANLIB=$ac_ct_RANLIB 3859 fi 3860else 3861 RANLIB="$ac_cv_prog_RANLIB" 3862fi 3863 3864 3865 #-------------------------------------------------------------------- 3866 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3867 #-------------------------------------------------------------------- 3868 3869 3870 3871 3872 3873 3874{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3875echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3876if test "${ac_cv_path_GREP+set}" = set; then 3877 echo $ECHO_N "(cached) $ECHO_C" >&6 3878else 3879 # Extract the first word of "grep ggrep" to use in msg output 3880if test -z "$GREP"; then 3881set dummy grep ggrep; ac_prog_name=$2 3882if test "${ac_cv_path_GREP+set}" = set; then 3883 echo $ECHO_N "(cached) $ECHO_C" >&6 3884else 3885 ac_path_GREP_found=false 3886# Loop through the user's path and test for each of PROGNAME-LIST 3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3888for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3889do 3890 IFS=$as_save_IFS 3891 test -z "$as_dir" && as_dir=. 3892 for ac_prog in grep ggrep; do 3893 for ac_exec_ext in '' $ac_executable_extensions; do 3894 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3895 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3896 # Check for GNU ac_path_GREP and select it if it is found. 3897 # Check for GNU $ac_path_GREP 3898case `"$ac_path_GREP" --version 2>&1` in 3899*GNU*) 3900 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3901*) 3902 ac_count=0 3903 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3904 while : 3905 do 3906 cat "conftest.in" "conftest.in" >"conftest.tmp" 3907 mv "conftest.tmp" "conftest.in" 3908 cp "conftest.in" "conftest.nl" 3909 echo 'GREP' >> "conftest.nl" 3910 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3912 ac_count=`expr $ac_count + 1` 3913 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3914 # Best one so far, save it but keep looking for a better one 3915 ac_cv_path_GREP="$ac_path_GREP" 3916 ac_path_GREP_max=$ac_count 3917 fi 3918 # 10*(2^10) chars as input seems more than enough 3919 test $ac_count -gt 10 && break 3920 done 3921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3922esac 3923 3924 3925 $ac_path_GREP_found && break 3 3926 done 3927done 3928 3929done 3930IFS=$as_save_IFS 3931 3932 3933fi 3934 3935GREP="$ac_cv_path_GREP" 3936if test -z "$GREP"; then 3937 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3938echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3939 { (exit 1); exit 1; }; } 3940fi 3941 3942else 3943 ac_cv_path_GREP=$GREP 3944fi 3945 3946 3947fi 3948{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3949echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3950 GREP="$ac_cv_path_GREP" 3951 3952 3953{ echo "$as_me:$LINENO: checking for egrep" >&5 3954echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3955if test "${ac_cv_path_EGREP+set}" = set; then 3956 echo $ECHO_N "(cached) $ECHO_C" >&6 3957else 3958 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3959 then ac_cv_path_EGREP="$GREP -E" 3960 else 3961 # Extract the first word of "egrep" to use in msg output 3962if test -z "$EGREP"; then 3963set dummy egrep; ac_prog_name=$2 3964if test "${ac_cv_path_EGREP+set}" = set; then 3965 echo $ECHO_N "(cached) $ECHO_C" >&6 3966else 3967 ac_path_EGREP_found=false 3968# Loop through the user's path and test for each of PROGNAME-LIST 3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3970for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3971do 3972 IFS=$as_save_IFS 3973 test -z "$as_dir" && as_dir=. 3974 for ac_prog in egrep; do 3975 for ac_exec_ext in '' $ac_executable_extensions; do 3976 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3977 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3978 # Check for GNU ac_path_EGREP and select it if it is found. 3979 # Check for GNU $ac_path_EGREP 3980case `"$ac_path_EGREP" --version 2>&1` in 3981*GNU*) 3982 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3983*) 3984 ac_count=0 3985 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3986 while : 3987 do 3988 cat "conftest.in" "conftest.in" >"conftest.tmp" 3989 mv "conftest.tmp" "conftest.in" 3990 cp "conftest.in" "conftest.nl" 3991 echo 'EGREP' >> "conftest.nl" 3992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3994 ac_count=`expr $ac_count + 1` 3995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3996 # Best one so far, save it but keep looking for a better one 3997 ac_cv_path_EGREP="$ac_path_EGREP" 3998 ac_path_EGREP_max=$ac_count 3999 fi 4000 # 10*(2^10) chars as input seems more than enough 4001 test $ac_count -gt 10 && break 4002 done 4003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4004esac 4005 4006 4007 $ac_path_EGREP_found && break 3 4008 done 4009done 4010 4011done 4012IFS=$as_save_IFS 4013 4014 4015fi 4016 4017EGREP="$ac_cv_path_EGREP" 4018if test -z "$EGREP"; then 4019 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4020echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4021 { (exit 1); exit 1; }; } 4022fi 4023 4024else 4025 ac_cv_path_EGREP=$EGREP 4026fi 4027 4028 4029 fi 4030fi 4031{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4032echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4033 EGREP="$ac_cv_path_EGREP" 4034 4035 4036{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4037echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4038if test "${ac_cv_header_stdc+set}" = set; then 4039 echo $ECHO_N "(cached) $ECHO_C" >&6 4040else 4041 cat >conftest.$ac_ext <<_ACEOF 4042/* confdefs.h. */ 4043_ACEOF 4044cat confdefs.h >>conftest.$ac_ext 4045cat >>conftest.$ac_ext <<_ACEOF 4046/* end confdefs.h. */ 4047#include <stdlib.h> 4048#include <stdarg.h> 4049#include <string.h> 4050#include <float.h> 4051 4052int 4053main () 4054{ 4055 4056 ; 4057 return 0; 4058} 4059_ACEOF 4060rm -f conftest.$ac_objext 4061if { (ac_try="$ac_compile" 4062case "(($ac_try" in 4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4064 *) ac_try_echo=$ac_try;; 4065esac 4066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4067 (eval "$ac_compile") 2>conftest.er1 4068 ac_status=$? 4069 grep -v '^ *+' conftest.er1 >conftest.err 4070 rm -f conftest.er1 4071 cat conftest.err >&5 4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4073 (exit $ac_status); } && { 4074 test -z "$ac_c_werror_flag" || 4075 test ! -s conftest.err 4076 } && test -s conftest.$ac_objext; then 4077 ac_cv_header_stdc=yes 4078else 4079 echo "$as_me: failed program was:" >&5 4080sed 's/^/| /' conftest.$ac_ext >&5 4081 4082 ac_cv_header_stdc=no 4083fi 4084 4085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4086 4087if test $ac_cv_header_stdc = yes; then 4088 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4089 cat >conftest.$ac_ext <<_ACEOF 4090/* confdefs.h. */ 4091_ACEOF 4092cat confdefs.h >>conftest.$ac_ext 4093cat >>conftest.$ac_ext <<_ACEOF 4094/* end confdefs.h. */ 4095#include <string.h> 4096 4097_ACEOF 4098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4099 $EGREP "memchr" >/dev/null 2>&1; then 4100 : 4101else 4102 ac_cv_header_stdc=no 4103fi 4104rm -f -r conftest* 4105 4106fi 4107 4108if test $ac_cv_header_stdc = yes; then 4109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4110 cat >conftest.$ac_ext <<_ACEOF 4111/* confdefs.h. */ 4112_ACEOF 4113cat confdefs.h >>conftest.$ac_ext 4114cat >>conftest.$ac_ext <<_ACEOF 4115/* end confdefs.h. */ 4116#include <stdlib.h> 4117 4118_ACEOF 4119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4120 $EGREP "free" >/dev/null 2>&1; then 4121 : 4122else 4123 ac_cv_header_stdc=no 4124fi 4125rm -f -r conftest* 4126 4127fi 4128 4129if test $ac_cv_header_stdc = yes; then 4130 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4131 if test "$cross_compiling" = yes; then 4132 : 4133else 4134 cat >conftest.$ac_ext <<_ACEOF 4135/* confdefs.h. */ 4136_ACEOF 4137cat confdefs.h >>conftest.$ac_ext 4138cat >>conftest.$ac_ext <<_ACEOF 4139/* end confdefs.h. */ 4140#include <ctype.h> 4141#include <stdlib.h> 4142#if ((' ' & 0x0FF) == 0x020) 4143# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4144# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4145#else 4146# define ISLOWER(c) \ 4147 (('a' <= (c) && (c) <= 'i') \ 4148 || ('j' <= (c) && (c) <= 'r') \ 4149 || ('s' <= (c) && (c) <= 'z')) 4150# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4151#endif 4152 4153#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4154int 4155main () 4156{ 4157 int i; 4158 for (i = 0; i < 256; i++) 4159 if (XOR (islower (i), ISLOWER (i)) 4160 || toupper (i) != TOUPPER (i)) 4161 return 2; 4162 return 0; 4163} 4164_ACEOF 4165rm -f conftest$ac_exeext 4166if { (ac_try="$ac_link" 4167case "(($ac_try" in 4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4169 *) ac_try_echo=$ac_try;; 4170esac 4171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4172 (eval "$ac_link") 2>&5 4173 ac_status=$? 4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4176 { (case "(($ac_try" in 4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4178 *) ac_try_echo=$ac_try;; 4179esac 4180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4181 (eval "$ac_try") 2>&5 4182 ac_status=$? 4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4184 (exit $ac_status); }; }; then 4185 : 4186else 4187 echo "$as_me: program exited with status $ac_status" >&5 4188echo "$as_me: failed program was:" >&5 4189sed 's/^/| /' conftest.$ac_ext >&5 4190 4191( exit $ac_status ) 4192ac_cv_header_stdc=no 4193fi 4194rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4195fi 4196 4197 4198fi 4199fi 4200{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4201echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4202if test $ac_cv_header_stdc = yes; then 4203 4204cat >>confdefs.h <<\_ACEOF 4205#define STDC_HEADERS 1 4206_ACEOF 4207 4208fi 4209 4210# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4221 inttypes.h stdint.h unistd.h 4222do 4223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4224{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4227 echo $ECHO_N "(cached) $ECHO_C" >&6 4228else 4229 cat >conftest.$ac_ext <<_ACEOF 4230/* confdefs.h. */ 4231_ACEOF 4232cat confdefs.h >>conftest.$ac_ext 4233cat >>conftest.$ac_ext <<_ACEOF 4234/* end confdefs.h. */ 4235$ac_includes_default 4236 4237#include <$ac_header> 4238_ACEOF 4239rm -f conftest.$ac_objext 4240if { (ac_try="$ac_compile" 4241case "(($ac_try" in 4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4243 *) ac_try_echo=$ac_try;; 4244esac 4245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4246 (eval "$ac_compile") 2>conftest.er1 4247 ac_status=$? 4248 grep -v '^ *+' conftest.er1 >conftest.err 4249 rm -f conftest.er1 4250 cat conftest.err >&5 4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4252 (exit $ac_status); } && { 4253 test -z "$ac_c_werror_flag" || 4254 test ! -s conftest.err 4255 } && test -s conftest.$ac_objext; then 4256 eval "$as_ac_Header=yes" 4257else 4258 echo "$as_me: failed program was:" >&5 4259sed 's/^/| /' conftest.$ac_ext >&5 4260 4261 eval "$as_ac_Header=no" 4262fi 4263 4264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4265fi 4266ac_res=`eval echo '${'$as_ac_Header'}'` 4267 { echo "$as_me:$LINENO: result: $ac_res" >&5 4268echo "${ECHO_T}$ac_res" >&6; } 4269if test `eval echo '${'$as_ac_Header'}'` = yes; then 4270 cat >>confdefs.h <<_ACEOF 4271#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4272_ACEOF 4273 4274fi 4275 4276done 4277 4278 4279 4280 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4281 4282 4283 #------------------------------------------------------------------------ 4284 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4285 # It makes compiling go faster. (This is only a performance feature.) 4286 #------------------------------------------------------------------------ 4287 4288 if test -z "$no_pipe" -a -n "$GCC"; then 4289 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4290echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4291if test "${tcl_cv_cc_pipe+set}" = set; then 4292 echo $ECHO_N "(cached) $ECHO_C" >&6 4293else 4294 4295 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4296 cat >conftest.$ac_ext <<_ACEOF 4297/* confdefs.h. */ 4298_ACEOF 4299cat confdefs.h >>conftest.$ac_ext 4300cat >>conftest.$ac_ext <<_ACEOF 4301/* end confdefs.h. */ 4302 4303int 4304main () 4305{ 4306 4307 ; 4308 return 0; 4309} 4310_ACEOF 4311rm -f conftest.$ac_objext 4312if { (ac_try="$ac_compile" 4313case "(($ac_try" in 4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4315 *) ac_try_echo=$ac_try;; 4316esac 4317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4318 (eval "$ac_compile") 2>conftest.er1 4319 ac_status=$? 4320 grep -v '^ *+' conftest.er1 >conftest.err 4321 rm -f conftest.er1 4322 cat conftest.err >&5 4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4324 (exit $ac_status); } && { 4325 test -z "$ac_c_werror_flag" || 4326 test ! -s conftest.err 4327 } && test -s conftest.$ac_objext; then 4328 tcl_cv_cc_pipe=yes 4329else 4330 echo "$as_me: failed program was:" >&5 4331sed 's/^/| /' conftest.$ac_ext >&5 4332 4333 tcl_cv_cc_pipe=no 4334fi 4335 4336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4337 CFLAGS=$hold_cflags 4338fi 4339{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4340echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4341 if test $tcl_cv_cc_pipe = yes; then 4342 CFLAGS="$CFLAGS -pipe" 4343 fi 4344 fi 4345 4346 #-------------------------------------------------------------------- 4347 # Common compiler flag setup 4348 #-------------------------------------------------------------------- 4349 4350 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4351echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4352if test "${ac_cv_c_bigendian+set}" = set; then 4353 echo $ECHO_N "(cached) $ECHO_C" >&6 4354else 4355 # See if sys/param.h defines the BYTE_ORDER macro. 4356cat >conftest.$ac_ext <<_ACEOF 4357/* confdefs.h. */ 4358_ACEOF 4359cat confdefs.h >>conftest.$ac_ext 4360cat >>conftest.$ac_ext <<_ACEOF 4361/* end confdefs.h. */ 4362#include <sys/types.h> 4363#include <sys/param.h> 4364 4365int 4366main () 4367{ 4368#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4369 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4370 bogus endian macros 4371#endif 4372 4373 ; 4374 return 0; 4375} 4376_ACEOF 4377rm -f conftest.$ac_objext 4378if { (ac_try="$ac_compile" 4379case "(($ac_try" in 4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4381 *) ac_try_echo=$ac_try;; 4382esac 4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4384 (eval "$ac_compile") 2>conftest.er1 4385 ac_status=$? 4386 grep -v '^ *+' conftest.er1 >conftest.err 4387 rm -f conftest.er1 4388 cat conftest.err >&5 4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4390 (exit $ac_status); } && { 4391 test -z "$ac_c_werror_flag" || 4392 test ! -s conftest.err 4393 } && test -s conftest.$ac_objext; then 4394 # It does; now see whether it defined to BIG_ENDIAN or not. 4395cat >conftest.$ac_ext <<_ACEOF 4396/* confdefs.h. */ 4397_ACEOF 4398cat confdefs.h >>conftest.$ac_ext 4399cat >>conftest.$ac_ext <<_ACEOF 4400/* end confdefs.h. */ 4401#include <sys/types.h> 4402#include <sys/param.h> 4403 4404int 4405main () 4406{ 4407#if BYTE_ORDER != BIG_ENDIAN 4408 not big endian 4409#endif 4410 4411 ; 4412 return 0; 4413} 4414_ACEOF 4415rm -f conftest.$ac_objext 4416if { (ac_try="$ac_compile" 4417case "(($ac_try" in 4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4419 *) ac_try_echo=$ac_try;; 4420esac 4421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4422 (eval "$ac_compile") 2>conftest.er1 4423 ac_status=$? 4424 grep -v '^ *+' conftest.er1 >conftest.err 4425 rm -f conftest.er1 4426 cat conftest.err >&5 4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4428 (exit $ac_status); } && { 4429 test -z "$ac_c_werror_flag" || 4430 test ! -s conftest.err 4431 } && test -s conftest.$ac_objext; then 4432 ac_cv_c_bigendian=yes 4433else 4434 echo "$as_me: failed program was:" >&5 4435sed 's/^/| /' conftest.$ac_ext >&5 4436 4437 ac_cv_c_bigendian=no 4438fi 4439 4440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4441else 4442 echo "$as_me: failed program was:" >&5 4443sed 's/^/| /' conftest.$ac_ext >&5 4444 4445 # It does not; compile a test program. 4446if test "$cross_compiling" = yes; then 4447 # try to guess the endianness by grepping values into an object file 4448 ac_cv_c_bigendian=unknown 4449 cat >conftest.$ac_ext <<_ACEOF 4450/* confdefs.h. */ 4451_ACEOF 4452cat confdefs.h >>conftest.$ac_ext 4453cat >>conftest.$ac_ext <<_ACEOF 4454/* end confdefs.h. */ 4455short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4456short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4457void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4458short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4459short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4460void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4461int 4462main () 4463{ 4464 _ascii (); _ebcdic (); 4465 ; 4466 return 0; 4467} 4468_ACEOF 4469rm -f conftest.$ac_objext 4470if { (ac_try="$ac_compile" 4471case "(($ac_try" in 4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4473 *) ac_try_echo=$ac_try;; 4474esac 4475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4476 (eval "$ac_compile") 2>conftest.er1 4477 ac_status=$? 4478 grep -v '^ *+' conftest.er1 >conftest.err 4479 rm -f conftest.er1 4480 cat conftest.err >&5 4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4482 (exit $ac_status); } && { 4483 test -z "$ac_c_werror_flag" || 4484 test ! -s conftest.err 4485 } && test -s conftest.$ac_objext; then 4486 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4487 ac_cv_c_bigendian=yes 4488fi 4489if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4490 if test "$ac_cv_c_bigendian" = unknown; then 4491 ac_cv_c_bigendian=no 4492 else 4493 # finding both strings is unlikely to happen, but who knows? 4494 ac_cv_c_bigendian=unknown 4495 fi 4496fi 4497else 4498 echo "$as_me: failed program was:" >&5 4499sed 's/^/| /' conftest.$ac_ext >&5 4500 4501 4502fi 4503 4504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4505else 4506 cat >conftest.$ac_ext <<_ACEOF 4507/* confdefs.h. */ 4508_ACEOF 4509cat confdefs.h >>conftest.$ac_ext 4510cat >>conftest.$ac_ext <<_ACEOF 4511/* end confdefs.h. */ 4512$ac_includes_default 4513int 4514main () 4515{ 4516 4517 /* Are we little or big endian? From Harbison&Steele. */ 4518 union 4519 { 4520 long int l; 4521 char c[sizeof (long int)]; 4522 } u; 4523 u.l = 1; 4524 return u.c[sizeof (long int) - 1] == 1; 4525 4526 ; 4527 return 0; 4528} 4529_ACEOF 4530rm -f conftest$ac_exeext 4531if { (ac_try="$ac_link" 4532case "(($ac_try" in 4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4534 *) ac_try_echo=$ac_try;; 4535esac 4536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4537 (eval "$ac_link") 2>&5 4538 ac_status=$? 4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4541 { (case "(($ac_try" in 4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4543 *) ac_try_echo=$ac_try;; 4544esac 4545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4546 (eval "$ac_try") 2>&5 4547 ac_status=$? 4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4549 (exit $ac_status); }; }; then 4550 ac_cv_c_bigendian=no 4551else 4552 echo "$as_me: program exited with status $ac_status" >&5 4553echo "$as_me: failed program was:" >&5 4554sed 's/^/| /' conftest.$ac_ext >&5 4555 4556( exit $ac_status ) 4557ac_cv_c_bigendian=yes 4558fi 4559rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4560fi 4561 4562 4563fi 4564 4565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4566fi 4567{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4568echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4569case $ac_cv_c_bigendian in 4570 yes) 4571 4572cat >>confdefs.h <<\_ACEOF 4573#define WORDS_BIGENDIAN 1 4574_ACEOF 4575 ;; 4576 no) 4577 ;; 4578 *) 4579 { { echo "$as_me:$LINENO: error: unknown endianness 4580presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4581echo "$as_me: error: unknown endianness 4582presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4583 { (exit 1); exit 1; }; } ;; 4584esac 4585 4586 if test "${TEA_PLATFORM}" = "unix" ; then 4587 4588 #-------------------------------------------------------------------- 4589 # On a few very rare systems, all of the libm.a stuff is 4590 # already in libc.a. Set compiler flags accordingly. 4591 # Also, Linux requires the "ieee" library for math to work 4592 # right (and it must appear before "-lm"). 4593 #-------------------------------------------------------------------- 4594 4595 { echo "$as_me:$LINENO: checking for sin" >&5 4596echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4597if test "${ac_cv_func_sin+set}" = set; then 4598 echo $ECHO_N "(cached) $ECHO_C" >&6 4599else 4600 cat >conftest.$ac_ext <<_ACEOF 4601/* confdefs.h. */ 4602_ACEOF 4603cat confdefs.h >>conftest.$ac_ext 4604cat >>conftest.$ac_ext <<_ACEOF 4605/* end confdefs.h. */ 4606/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4607 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4608#define sin innocuous_sin 4609 4610/* System header to define __stub macros and hopefully few prototypes, 4611 which can conflict with char sin (); below. 4612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4613 <limits.h> exists even on freestanding compilers. */ 4614 4615#ifdef __STDC__ 4616# include <limits.h> 4617#else 4618# include <assert.h> 4619#endif 4620 4621#undef sin 4622 4623/* Override any GCC internal prototype to avoid an error. 4624 Use char because int might match the return type of a GCC 4625 builtin and then its argument prototype would still apply. */ 4626#ifdef __cplusplus 4627extern "C" 4628#endif 4629char sin (); 4630/* The GNU C library defines this for functions which it implements 4631 to always fail with ENOSYS. Some functions are actually named 4632 something starting with __ and the normal name is an alias. */ 4633#if defined __stub_sin || defined __stub___sin 4634choke me 4635#endif 4636 4637int 4638main () 4639{ 4640return sin (); 4641 ; 4642 return 0; 4643} 4644_ACEOF 4645rm -f conftest.$ac_objext conftest$ac_exeext 4646if { (ac_try="$ac_link" 4647case "(($ac_try" in 4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4649 *) ac_try_echo=$ac_try;; 4650esac 4651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4652 (eval "$ac_link") 2>conftest.er1 4653 ac_status=$? 4654 grep -v '^ *+' conftest.er1 >conftest.err 4655 rm -f conftest.er1 4656 cat conftest.err >&5 4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4658 (exit $ac_status); } && { 4659 test -z "$ac_c_werror_flag" || 4660 test ! -s conftest.err 4661 } && test -s conftest$ac_exeext && 4662 $as_test_x conftest$ac_exeext; then 4663 ac_cv_func_sin=yes 4664else 4665 echo "$as_me: failed program was:" >&5 4666sed 's/^/| /' conftest.$ac_ext >&5 4667 4668 ac_cv_func_sin=no 4669fi 4670 4671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4672 conftest$ac_exeext conftest.$ac_ext 4673fi 4674{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4675echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4676if test $ac_cv_func_sin = yes; then 4677 MATH_LIBS="" 4678else 4679 MATH_LIBS="-lm" 4680fi 4681 4682 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4683echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4684if test "${ac_cv_lib_ieee_main+set}" = set; then 4685 echo $ECHO_N "(cached) $ECHO_C" >&6 4686else 4687 ac_check_lib_save_LIBS=$LIBS 4688LIBS="-lieee $LIBS" 4689cat >conftest.$ac_ext <<_ACEOF 4690/* confdefs.h. */ 4691_ACEOF 4692cat confdefs.h >>conftest.$ac_ext 4693cat >>conftest.$ac_ext <<_ACEOF 4694/* end confdefs.h. */ 4695 4696 4697int 4698main () 4699{ 4700return main (); 4701 ; 4702 return 0; 4703} 4704_ACEOF 4705rm -f conftest.$ac_objext conftest$ac_exeext 4706if { (ac_try="$ac_link" 4707case "(($ac_try" in 4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4709 *) ac_try_echo=$ac_try;; 4710esac 4711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4712 (eval "$ac_link") 2>conftest.er1 4713 ac_status=$? 4714 grep -v '^ *+' conftest.er1 >conftest.err 4715 rm -f conftest.er1 4716 cat conftest.err >&5 4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4718 (exit $ac_status); } && { 4719 test -z "$ac_c_werror_flag" || 4720 test ! -s conftest.err 4721 } && test -s conftest$ac_exeext && 4722 $as_test_x conftest$ac_exeext; then 4723 ac_cv_lib_ieee_main=yes 4724else 4725 echo "$as_me: failed program was:" >&5 4726sed 's/^/| /' conftest.$ac_ext >&5 4727 4728 ac_cv_lib_ieee_main=no 4729fi 4730 4731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4732 conftest$ac_exeext conftest.$ac_ext 4733LIBS=$ac_check_lib_save_LIBS 4734fi 4735{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4736echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4737if test $ac_cv_lib_ieee_main = yes; then 4738 MATH_LIBS="-lieee $MATH_LIBS" 4739fi 4740 4741 4742 #-------------------------------------------------------------------- 4743 # Interactive UNIX requires -linet instead of -lsocket, plus it 4744 # needs net/errno.h to define the socket-related error codes. 4745 #-------------------------------------------------------------------- 4746 4747 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4748echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4749if test "${ac_cv_lib_inet_main+set}" = set; then 4750 echo $ECHO_N "(cached) $ECHO_C" >&6 4751else 4752 ac_check_lib_save_LIBS=$LIBS 4753LIBS="-linet $LIBS" 4754cat >conftest.$ac_ext <<_ACEOF 4755/* confdefs.h. */ 4756_ACEOF 4757cat confdefs.h >>conftest.$ac_ext 4758cat >>conftest.$ac_ext <<_ACEOF 4759/* end confdefs.h. */ 4760 4761 4762int 4763main () 4764{ 4765return main (); 4766 ; 4767 return 0; 4768} 4769_ACEOF 4770rm -f conftest.$ac_objext conftest$ac_exeext 4771if { (ac_try="$ac_link" 4772case "(($ac_try" in 4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4774 *) ac_try_echo=$ac_try;; 4775esac 4776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4777 (eval "$ac_link") 2>conftest.er1 4778 ac_status=$? 4779 grep -v '^ *+' conftest.er1 >conftest.err 4780 rm -f conftest.er1 4781 cat conftest.err >&5 4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4783 (exit $ac_status); } && { 4784 test -z "$ac_c_werror_flag" || 4785 test ! -s conftest.err 4786 } && test -s conftest$ac_exeext && 4787 $as_test_x conftest$ac_exeext; then 4788 ac_cv_lib_inet_main=yes 4789else 4790 echo "$as_me: failed program was:" >&5 4791sed 's/^/| /' conftest.$ac_ext >&5 4792 4793 ac_cv_lib_inet_main=no 4794fi 4795 4796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4797 conftest$ac_exeext conftest.$ac_ext 4798LIBS=$ac_check_lib_save_LIBS 4799fi 4800{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4801echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4802if test $ac_cv_lib_inet_main = yes; then 4803 LIBS="$LIBS -linet" 4804fi 4805 4806 if test "${ac_cv_header_net_errno_h+set}" = set; then 4807 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4808echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4809if test "${ac_cv_header_net_errno_h+set}" = set; then 4810 echo $ECHO_N "(cached) $ECHO_C" >&6 4811fi 4812{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4813echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4814else 4815 # Is the header compilable? 4816{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4817echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4818cat >conftest.$ac_ext <<_ACEOF 4819/* confdefs.h. */ 4820_ACEOF 4821cat confdefs.h >>conftest.$ac_ext 4822cat >>conftest.$ac_ext <<_ACEOF 4823/* end confdefs.h. */ 4824$ac_includes_default 4825#include <net/errno.h> 4826_ACEOF 4827rm -f conftest.$ac_objext 4828if { (ac_try="$ac_compile" 4829case "(($ac_try" in 4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4831 *) ac_try_echo=$ac_try;; 4832esac 4833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4834 (eval "$ac_compile") 2>conftest.er1 4835 ac_status=$? 4836 grep -v '^ *+' conftest.er1 >conftest.err 4837 rm -f conftest.er1 4838 cat conftest.err >&5 4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4840 (exit $ac_status); } && { 4841 test -z "$ac_c_werror_flag" || 4842 test ! -s conftest.err 4843 } && test -s conftest.$ac_objext; then 4844 ac_header_compiler=yes 4845else 4846 echo "$as_me: failed program was:" >&5 4847sed 's/^/| /' conftest.$ac_ext >&5 4848 4849 ac_header_compiler=no 4850fi 4851 4852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4853{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4854echo "${ECHO_T}$ac_header_compiler" >&6; } 4855 4856# Is the header present? 4857{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4858echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4859cat >conftest.$ac_ext <<_ACEOF 4860/* confdefs.h. */ 4861_ACEOF 4862cat confdefs.h >>conftest.$ac_ext 4863cat >>conftest.$ac_ext <<_ACEOF 4864/* end confdefs.h. */ 4865#include <net/errno.h> 4866_ACEOF 4867if { (ac_try="$ac_cpp conftest.$ac_ext" 4868case "(($ac_try" in 4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4870 *) ac_try_echo=$ac_try;; 4871esac 4872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4874 ac_status=$? 4875 grep -v '^ *+' conftest.er1 >conftest.err 4876 rm -f conftest.er1 4877 cat conftest.err >&5 4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4879 (exit $ac_status); } >/dev/null && { 4880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4881 test ! -s conftest.err 4882 }; then 4883 ac_header_preproc=yes 4884else 4885 echo "$as_me: failed program was:" >&5 4886sed 's/^/| /' conftest.$ac_ext >&5 4887 4888 ac_header_preproc=no 4889fi 4890 4891rm -f conftest.err conftest.$ac_ext 4892{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4893echo "${ECHO_T}$ac_header_preproc" >&6; } 4894 4895# So? What about this header? 4896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4897 yes:no: ) 4898 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4899echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4900 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4901echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4902 ac_header_preproc=yes 4903 ;; 4904 no:yes:* ) 4905 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4906echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4907 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4908echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4909 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4910echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4911 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4912echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4913 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4914echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4915 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4916echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4917 4918 ;; 4919esac 4920{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4921echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4922if test "${ac_cv_header_net_errno_h+set}" = set; then 4923 echo $ECHO_N "(cached) $ECHO_C" >&6 4924else 4925 ac_cv_header_net_errno_h=$ac_header_preproc 4926fi 4927{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4928echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4929 4930fi 4931if test $ac_cv_header_net_errno_h = yes; then 4932 4933 4934cat >>confdefs.h <<\_ACEOF 4935#define HAVE_NET_ERRNO_H 1 4936_ACEOF 4937 4938fi 4939 4940 4941 4942 #-------------------------------------------------------------------- 4943 # Check for the existence of the -lsocket and -lnsl libraries. 4944 # The order here is important, so that they end up in the right 4945 # order in the command line generated by make. Here are some 4946 # special considerations: 4947 # 1. Use "connect" and "accept" to check for -lsocket, and 4948 # "gethostbyname" to check for -lnsl. 4949 # 2. Use each function name only once: can't redo a check because 4950 # autoconf caches the results of the last check and won't redo it. 4951 # 3. Use -lnsl and -lsocket only if they supply procedures that 4952 # aren't already present in the normal libraries. This is because 4953 # IRIX 5.2 has libraries, but they aren't needed and they're 4954 # bogus: they goof up name resolution if used. 4955 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4956 # To get around this problem, check for both libraries together 4957 # if -lsocket doesn't work by itself. 4958 #-------------------------------------------------------------------- 4959 4960 tcl_checkBoth=0 4961 { echo "$as_me:$LINENO: checking for connect" >&5 4962echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4963if test "${ac_cv_func_connect+set}" = set; then 4964 echo $ECHO_N "(cached) $ECHO_C" >&6 4965else 4966 cat >conftest.$ac_ext <<_ACEOF 4967/* confdefs.h. */ 4968_ACEOF 4969cat confdefs.h >>conftest.$ac_ext 4970cat >>conftest.$ac_ext <<_ACEOF 4971/* end confdefs.h. */ 4972/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4973 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4974#define connect innocuous_connect 4975 4976/* System header to define __stub macros and hopefully few prototypes, 4977 which can conflict with char connect (); below. 4978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4979 <limits.h> exists even on freestanding compilers. */ 4980 4981#ifdef __STDC__ 4982# include <limits.h> 4983#else 4984# include <assert.h> 4985#endif 4986 4987#undef connect 4988 4989/* Override any GCC internal prototype to avoid an error. 4990 Use char because int might match the return type of a GCC 4991 builtin and then its argument prototype would still apply. */ 4992#ifdef __cplusplus 4993extern "C" 4994#endif 4995char connect (); 4996/* The GNU C library defines this for functions which it implements 4997 to always fail with ENOSYS. Some functions are actually named 4998 something starting with __ and the normal name is an alias. */ 4999#if defined __stub_connect || defined __stub___connect 5000choke me 5001#endif 5002 5003int 5004main () 5005{ 5006return connect (); 5007 ; 5008 return 0; 5009} 5010_ACEOF 5011rm -f conftest.$ac_objext conftest$ac_exeext 5012if { (ac_try="$ac_link" 5013case "(($ac_try" in 5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5015 *) ac_try_echo=$ac_try;; 5016esac 5017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5018 (eval "$ac_link") 2>conftest.er1 5019 ac_status=$? 5020 grep -v '^ *+' conftest.er1 >conftest.err 5021 rm -f conftest.er1 5022 cat conftest.err >&5 5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5024 (exit $ac_status); } && { 5025 test -z "$ac_c_werror_flag" || 5026 test ! -s conftest.err 5027 } && test -s conftest$ac_exeext && 5028 $as_test_x conftest$ac_exeext; then 5029 ac_cv_func_connect=yes 5030else 5031 echo "$as_me: failed program was:" >&5 5032sed 's/^/| /' conftest.$ac_ext >&5 5033 5034 ac_cv_func_connect=no 5035fi 5036 5037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5038 conftest$ac_exeext conftest.$ac_ext 5039fi 5040{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 5041echo "${ECHO_T}$ac_cv_func_connect" >&6; } 5042if test $ac_cv_func_connect = yes; then 5043 tcl_checkSocket=0 5044else 5045 tcl_checkSocket=1 5046fi 5047 5048 if test "$tcl_checkSocket" = 1; then 5049 { echo "$as_me:$LINENO: checking for setsockopt" >&5 5050echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 5051if test "${ac_cv_func_setsockopt+set}" = set; then 5052 echo $ECHO_N "(cached) $ECHO_C" >&6 5053else 5054 cat >conftest.$ac_ext <<_ACEOF 5055/* confdefs.h. */ 5056_ACEOF 5057cat confdefs.h >>conftest.$ac_ext 5058cat >>conftest.$ac_ext <<_ACEOF 5059/* end confdefs.h. */ 5060/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 5061 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5062#define setsockopt innocuous_setsockopt 5063 5064/* System header to define __stub macros and hopefully few prototypes, 5065 which can conflict with char setsockopt (); below. 5066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5067 <limits.h> exists even on freestanding compilers. */ 5068 5069#ifdef __STDC__ 5070# include <limits.h> 5071#else 5072# include <assert.h> 5073#endif 5074 5075#undef setsockopt 5076 5077/* Override any GCC internal prototype to avoid an error. 5078 Use char because int might match the return type of a GCC 5079 builtin and then its argument prototype would still apply. */ 5080#ifdef __cplusplus 5081extern "C" 5082#endif 5083char setsockopt (); 5084/* The GNU C library defines this for functions which it implements 5085 to always fail with ENOSYS. Some functions are actually named 5086 something starting with __ and the normal name is an alias. */ 5087#if defined __stub_setsockopt || defined __stub___setsockopt 5088choke me 5089#endif 5090 5091int 5092main () 5093{ 5094return setsockopt (); 5095 ; 5096 return 0; 5097} 5098_ACEOF 5099rm -f conftest.$ac_objext conftest$ac_exeext 5100if { (ac_try="$ac_link" 5101case "(($ac_try" in 5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5103 *) ac_try_echo=$ac_try;; 5104esac 5105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5106 (eval "$ac_link") 2>conftest.er1 5107 ac_status=$? 5108 grep -v '^ *+' conftest.er1 >conftest.err 5109 rm -f conftest.er1 5110 cat conftest.err >&5 5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5112 (exit $ac_status); } && { 5113 test -z "$ac_c_werror_flag" || 5114 test ! -s conftest.err 5115 } && test -s conftest$ac_exeext && 5116 $as_test_x conftest$ac_exeext; then 5117 ac_cv_func_setsockopt=yes 5118else 5119 echo "$as_me: failed program was:" >&5 5120sed 's/^/| /' conftest.$ac_ext >&5 5121 5122 ac_cv_func_setsockopt=no 5123fi 5124 5125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5126 conftest$ac_exeext conftest.$ac_ext 5127fi 5128{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 5129echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 5130if test $ac_cv_func_setsockopt = yes; then 5131 : 5132else 5133 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 5134echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 5135if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 5136 echo $ECHO_N "(cached) $ECHO_C" >&6 5137else 5138 ac_check_lib_save_LIBS=$LIBS 5139LIBS="-lsocket $LIBS" 5140cat >conftest.$ac_ext <<_ACEOF 5141/* confdefs.h. */ 5142_ACEOF 5143cat confdefs.h >>conftest.$ac_ext 5144cat >>conftest.$ac_ext <<_ACEOF 5145/* end confdefs.h. */ 5146 5147/* Override any GCC internal prototype to avoid an error. 5148 Use char because int might match the return type of a GCC 5149 builtin and then its argument prototype would still apply. */ 5150#ifdef __cplusplus 5151extern "C" 5152#endif 5153char setsockopt (); 5154int 5155main () 5156{ 5157return setsockopt (); 5158 ; 5159 return 0; 5160} 5161_ACEOF 5162rm -f conftest.$ac_objext conftest$ac_exeext 5163if { (ac_try="$ac_link" 5164case "(($ac_try" in 5165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5166 *) ac_try_echo=$ac_try;; 5167esac 5168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5169 (eval "$ac_link") 2>conftest.er1 5170 ac_status=$? 5171 grep -v '^ *+' conftest.er1 >conftest.err 5172 rm -f conftest.er1 5173 cat conftest.err >&5 5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5175 (exit $ac_status); } && { 5176 test -z "$ac_c_werror_flag" || 5177 test ! -s conftest.err 5178 } && test -s conftest$ac_exeext && 5179 $as_test_x conftest$ac_exeext; then 5180 ac_cv_lib_socket_setsockopt=yes 5181else 5182 echo "$as_me: failed program was:" >&5 5183sed 's/^/| /' conftest.$ac_ext >&5 5184 5185 ac_cv_lib_socket_setsockopt=no 5186fi 5187 5188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5189 conftest$ac_exeext conftest.$ac_ext 5190LIBS=$ac_check_lib_save_LIBS 5191fi 5192{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 5193echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 5194if test $ac_cv_lib_socket_setsockopt = yes; then 5195 LIBS="$LIBS -lsocket" 5196else 5197 tcl_checkBoth=1 5198fi 5199 5200fi 5201 5202 fi 5203 if test "$tcl_checkBoth" = 1; then 5204 tk_oldLibs=$LIBS 5205 LIBS="$LIBS -lsocket -lnsl" 5206 { echo "$as_me:$LINENO: checking for accept" >&5 5207echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 5208if test "${ac_cv_func_accept+set}" = set; then 5209 echo $ECHO_N "(cached) $ECHO_C" >&6 5210else 5211 cat >conftest.$ac_ext <<_ACEOF 5212/* confdefs.h. */ 5213_ACEOF 5214cat confdefs.h >>conftest.$ac_ext 5215cat >>conftest.$ac_ext <<_ACEOF 5216/* end confdefs.h. */ 5217/* Define accept to an innocuous variant, in case <limits.h> declares accept. 5218 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5219#define accept innocuous_accept 5220 5221/* System header to define __stub macros and hopefully few prototypes, 5222 which can conflict with char accept (); below. 5223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5224 <limits.h> exists even on freestanding compilers. */ 5225 5226#ifdef __STDC__ 5227# include <limits.h> 5228#else 5229# include <assert.h> 5230#endif 5231 5232#undef accept 5233 5234/* Override any GCC internal prototype to avoid an error. 5235 Use char because int might match the return type of a GCC 5236 builtin and then its argument prototype would still apply. */ 5237#ifdef __cplusplus 5238extern "C" 5239#endif 5240char accept (); 5241/* The GNU C library defines this for functions which it implements 5242 to always fail with ENOSYS. Some functions are actually named 5243 something starting with __ and the normal name is an alias. */ 5244#if defined __stub_accept || defined __stub___accept 5245choke me 5246#endif 5247 5248int 5249main () 5250{ 5251return accept (); 5252 ; 5253 return 0; 5254} 5255_ACEOF 5256rm -f conftest.$ac_objext conftest$ac_exeext 5257if { (ac_try="$ac_link" 5258case "(($ac_try" in 5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5260 *) ac_try_echo=$ac_try;; 5261esac 5262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5263 (eval "$ac_link") 2>conftest.er1 5264 ac_status=$? 5265 grep -v '^ *+' conftest.er1 >conftest.err 5266 rm -f conftest.er1 5267 cat conftest.err >&5 5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5269 (exit $ac_status); } && { 5270 test -z "$ac_c_werror_flag" || 5271 test ! -s conftest.err 5272 } && test -s conftest$ac_exeext && 5273 $as_test_x conftest$ac_exeext; then 5274 ac_cv_func_accept=yes 5275else 5276 echo "$as_me: failed program was:" >&5 5277sed 's/^/| /' conftest.$ac_ext >&5 5278 5279 ac_cv_func_accept=no 5280fi 5281 5282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5283 conftest$ac_exeext conftest.$ac_ext 5284fi 5285{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5286echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5287if test $ac_cv_func_accept = yes; then 5288 tcl_checkNsl=0 5289else 5290 LIBS=$tk_oldLibs 5291fi 5292 5293 fi 5294 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5295echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5296if test "${ac_cv_func_gethostbyname+set}" = set; then 5297 echo $ECHO_N "(cached) $ECHO_C" >&6 5298else 5299 cat >conftest.$ac_ext <<_ACEOF 5300/* confdefs.h. */ 5301_ACEOF 5302cat confdefs.h >>conftest.$ac_ext 5303cat >>conftest.$ac_ext <<_ACEOF 5304/* end confdefs.h. */ 5305/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5306 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5307#define gethostbyname innocuous_gethostbyname 5308 5309/* System header to define __stub macros and hopefully few prototypes, 5310 which can conflict with char gethostbyname (); below. 5311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5312 <limits.h> exists even on freestanding compilers. */ 5313 5314#ifdef __STDC__ 5315# include <limits.h> 5316#else 5317# include <assert.h> 5318#endif 5319 5320#undef gethostbyname 5321 5322/* Override any GCC internal prototype to avoid an error. 5323 Use char because int might match the return type of a GCC 5324 builtin and then its argument prototype would still apply. */ 5325#ifdef __cplusplus 5326extern "C" 5327#endif 5328char gethostbyname (); 5329/* The GNU C library defines this for functions which it implements 5330 to always fail with ENOSYS. Some functions are actually named 5331 something starting with __ and the normal name is an alias. */ 5332#if defined __stub_gethostbyname || defined __stub___gethostbyname 5333choke me 5334#endif 5335 5336int 5337main () 5338{ 5339return gethostbyname (); 5340 ; 5341 return 0; 5342} 5343_ACEOF 5344rm -f conftest.$ac_objext conftest$ac_exeext 5345if { (ac_try="$ac_link" 5346case "(($ac_try" in 5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5348 *) ac_try_echo=$ac_try;; 5349esac 5350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5351 (eval "$ac_link") 2>conftest.er1 5352 ac_status=$? 5353 grep -v '^ *+' conftest.er1 >conftest.err 5354 rm -f conftest.er1 5355 cat conftest.err >&5 5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5357 (exit $ac_status); } && { 5358 test -z "$ac_c_werror_flag" || 5359 test ! -s conftest.err 5360 } && test -s conftest$ac_exeext && 5361 $as_test_x conftest$ac_exeext; then 5362 ac_cv_func_gethostbyname=yes 5363else 5364 echo "$as_me: failed program was:" >&5 5365sed 's/^/| /' conftest.$ac_ext >&5 5366 5367 ac_cv_func_gethostbyname=no 5368fi 5369 5370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5371 conftest$ac_exeext conftest.$ac_ext 5372fi 5373{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5374echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5375if test $ac_cv_func_gethostbyname = yes; then 5376 : 5377else 5378 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5379echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5380if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5381 echo $ECHO_N "(cached) $ECHO_C" >&6 5382else 5383 ac_check_lib_save_LIBS=$LIBS 5384LIBS="-lnsl $LIBS" 5385cat >conftest.$ac_ext <<_ACEOF 5386/* confdefs.h. */ 5387_ACEOF 5388cat confdefs.h >>conftest.$ac_ext 5389cat >>conftest.$ac_ext <<_ACEOF 5390/* end confdefs.h. */ 5391 5392/* Override any GCC internal prototype to avoid an error. 5393 Use char because int might match the return type of a GCC 5394 builtin and then its argument prototype would still apply. */ 5395#ifdef __cplusplus 5396extern "C" 5397#endif 5398char gethostbyname (); 5399int 5400main () 5401{ 5402return gethostbyname (); 5403 ; 5404 return 0; 5405} 5406_ACEOF 5407rm -f conftest.$ac_objext conftest$ac_exeext 5408if { (ac_try="$ac_link" 5409case "(($ac_try" in 5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5411 *) ac_try_echo=$ac_try;; 5412esac 5413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5414 (eval "$ac_link") 2>conftest.er1 5415 ac_status=$? 5416 grep -v '^ *+' conftest.er1 >conftest.err 5417 rm -f conftest.er1 5418 cat conftest.err >&5 5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5420 (exit $ac_status); } && { 5421 test -z "$ac_c_werror_flag" || 5422 test ! -s conftest.err 5423 } && test -s conftest$ac_exeext && 5424 $as_test_x conftest$ac_exeext; then 5425 ac_cv_lib_nsl_gethostbyname=yes 5426else 5427 echo "$as_me: failed program was:" >&5 5428sed 's/^/| /' conftest.$ac_ext >&5 5429 5430 ac_cv_lib_nsl_gethostbyname=no 5431fi 5432 5433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5434 conftest$ac_exeext conftest.$ac_ext 5435LIBS=$ac_check_lib_save_LIBS 5436fi 5437{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5438echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5439if test $ac_cv_lib_nsl_gethostbyname = yes; then 5440 LIBS="$LIBS -lnsl" 5441fi 5442 5443fi 5444 5445 5446 # TEA specific: Don't perform the eval of the libraries here because 5447 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5448 5449 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5450 5451 5452 5453 5454 { echo "$as_me:$LINENO: checking dirent.h" >&5 5455echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5456if test "${tcl_cv_dirent_h+set}" = set; then 5457 echo $ECHO_N "(cached) $ECHO_C" >&6 5458else 5459 5460 cat >conftest.$ac_ext <<_ACEOF 5461/* confdefs.h. */ 5462_ACEOF 5463cat confdefs.h >>conftest.$ac_ext 5464cat >>conftest.$ac_ext <<_ACEOF 5465/* end confdefs.h. */ 5466#include <sys/types.h> 5467#include <dirent.h> 5468int 5469main () 5470{ 5471 5472#ifndef _POSIX_SOURCE 5473# ifdef __Lynx__ 5474 /* 5475 * Generate compilation error to make the test fail: Lynx headers 5476 * are only valid if really in the POSIX environment. 5477 */ 5478 5479 missing_procedure(); 5480# endif 5481#endif 5482DIR *d; 5483struct dirent *entryPtr; 5484char *p; 5485d = opendir("foobar"); 5486entryPtr = readdir(d); 5487p = entryPtr->d_name; 5488closedir(d); 5489 5490 ; 5491 return 0; 5492} 5493_ACEOF 5494rm -f conftest.$ac_objext conftest$ac_exeext 5495if { (ac_try="$ac_link" 5496case "(($ac_try" in 5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5498 *) ac_try_echo=$ac_try;; 5499esac 5500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5501 (eval "$ac_link") 2>conftest.er1 5502 ac_status=$? 5503 grep -v '^ *+' conftest.er1 >conftest.err 5504 rm -f conftest.er1 5505 cat conftest.err >&5 5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5507 (exit $ac_status); } && { 5508 test -z "$ac_c_werror_flag" || 5509 test ! -s conftest.err 5510 } && test -s conftest$ac_exeext && 5511 $as_test_x conftest$ac_exeext; then 5512 tcl_cv_dirent_h=yes 5513else 5514 echo "$as_me: failed program was:" >&5 5515sed 's/^/| /' conftest.$ac_ext >&5 5516 5517 tcl_cv_dirent_h=no 5518fi 5519 5520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5521 conftest$ac_exeext conftest.$ac_ext 5522fi 5523{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5524echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5525 5526 if test $tcl_cv_dirent_h = no; then 5527 5528cat >>confdefs.h <<\_ACEOF 5529#define NO_DIRENT_H 1 5530_ACEOF 5531 5532 fi 5533 5534 # TEA specific: 5535 if test "${ac_cv_header_errno_h+set}" = set; then 5536 { echo "$as_me:$LINENO: checking for errno.h" >&5 5537echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5538if test "${ac_cv_header_errno_h+set}" = set; then 5539 echo $ECHO_N "(cached) $ECHO_C" >&6 5540fi 5541{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5542echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5543else 5544 # Is the header compilable? 5545{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5546echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5547cat >conftest.$ac_ext <<_ACEOF 5548/* confdefs.h. */ 5549_ACEOF 5550cat confdefs.h >>conftest.$ac_ext 5551cat >>conftest.$ac_ext <<_ACEOF 5552/* end confdefs.h. */ 5553$ac_includes_default 5554#include <errno.h> 5555_ACEOF 5556rm -f conftest.$ac_objext 5557if { (ac_try="$ac_compile" 5558case "(($ac_try" in 5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5560 *) ac_try_echo=$ac_try;; 5561esac 5562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5563 (eval "$ac_compile") 2>conftest.er1 5564 ac_status=$? 5565 grep -v '^ *+' conftest.er1 >conftest.err 5566 rm -f conftest.er1 5567 cat conftest.err >&5 5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5569 (exit $ac_status); } && { 5570 test -z "$ac_c_werror_flag" || 5571 test ! -s conftest.err 5572 } && test -s conftest.$ac_objext; then 5573 ac_header_compiler=yes 5574else 5575 echo "$as_me: failed program was:" >&5 5576sed 's/^/| /' conftest.$ac_ext >&5 5577 5578 ac_header_compiler=no 5579fi 5580 5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5582{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5583echo "${ECHO_T}$ac_header_compiler" >&6; } 5584 5585# Is the header present? 5586{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5587echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5588cat >conftest.$ac_ext <<_ACEOF 5589/* confdefs.h. */ 5590_ACEOF 5591cat confdefs.h >>conftest.$ac_ext 5592cat >>conftest.$ac_ext <<_ACEOF 5593/* end confdefs.h. */ 5594#include <errno.h> 5595_ACEOF 5596if { (ac_try="$ac_cpp conftest.$ac_ext" 5597case "(($ac_try" in 5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5599 *) ac_try_echo=$ac_try;; 5600esac 5601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5603 ac_status=$? 5604 grep -v '^ *+' conftest.er1 >conftest.err 5605 rm -f conftest.er1 5606 cat conftest.err >&5 5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5608 (exit $ac_status); } >/dev/null && { 5609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5610 test ! -s conftest.err 5611 }; then 5612 ac_header_preproc=yes 5613else 5614 echo "$as_me: failed program was:" >&5 5615sed 's/^/| /' conftest.$ac_ext >&5 5616 5617 ac_header_preproc=no 5618fi 5619 5620rm -f conftest.err conftest.$ac_ext 5621{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5622echo "${ECHO_T}$ac_header_preproc" >&6; } 5623 5624# So? What about this header? 5625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5626 yes:no: ) 5627 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5628echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5629 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5630echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5631 ac_header_preproc=yes 5632 ;; 5633 no:yes:* ) 5634 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5635echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5636 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5637echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5638 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5639echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5640 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5641echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5642 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5643echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5644 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5645echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5646 5647 ;; 5648esac 5649{ echo "$as_me:$LINENO: checking for errno.h" >&5 5650echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5651if test "${ac_cv_header_errno_h+set}" = set; then 5652 echo $ECHO_N "(cached) $ECHO_C" >&6 5653else 5654 ac_cv_header_errno_h=$ac_header_preproc 5655fi 5656{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5657echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5658 5659fi 5660if test $ac_cv_header_errno_h = yes; then 5661 : 5662else 5663 5664cat >>confdefs.h <<\_ACEOF 5665#define NO_ERRNO_H 1 5666_ACEOF 5667 5668fi 5669 5670 5671 if test "${ac_cv_header_float_h+set}" = set; then 5672 { echo "$as_me:$LINENO: checking for float.h" >&5 5673echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5674if test "${ac_cv_header_float_h+set}" = set; then 5675 echo $ECHO_N "(cached) $ECHO_C" >&6 5676fi 5677{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5678echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5679else 5680 # Is the header compilable? 5681{ echo "$as_me:$LINENO: checking float.h usability" >&5 5682echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5683cat >conftest.$ac_ext <<_ACEOF 5684/* confdefs.h. */ 5685_ACEOF 5686cat confdefs.h >>conftest.$ac_ext 5687cat >>conftest.$ac_ext <<_ACEOF 5688/* end confdefs.h. */ 5689$ac_includes_default 5690#include <float.h> 5691_ACEOF 5692rm -f conftest.$ac_objext 5693if { (ac_try="$ac_compile" 5694case "(($ac_try" in 5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5696 *) ac_try_echo=$ac_try;; 5697esac 5698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5699 (eval "$ac_compile") 2>conftest.er1 5700 ac_status=$? 5701 grep -v '^ *+' conftest.er1 >conftest.err 5702 rm -f conftest.er1 5703 cat conftest.err >&5 5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5705 (exit $ac_status); } && { 5706 test -z "$ac_c_werror_flag" || 5707 test ! -s conftest.err 5708 } && test -s conftest.$ac_objext; then 5709 ac_header_compiler=yes 5710else 5711 echo "$as_me: failed program was:" >&5 5712sed 's/^/| /' conftest.$ac_ext >&5 5713 5714 ac_header_compiler=no 5715fi 5716 5717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5718{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5719echo "${ECHO_T}$ac_header_compiler" >&6; } 5720 5721# Is the header present? 5722{ echo "$as_me:$LINENO: checking float.h presence" >&5 5723echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5724cat >conftest.$ac_ext <<_ACEOF 5725/* confdefs.h. */ 5726_ACEOF 5727cat confdefs.h >>conftest.$ac_ext 5728cat >>conftest.$ac_ext <<_ACEOF 5729/* end confdefs.h. */ 5730#include <float.h> 5731_ACEOF 5732if { (ac_try="$ac_cpp conftest.$ac_ext" 5733case "(($ac_try" in 5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5735 *) ac_try_echo=$ac_try;; 5736esac 5737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5739 ac_status=$? 5740 grep -v '^ *+' conftest.er1 >conftest.err 5741 rm -f conftest.er1 5742 cat conftest.err >&5 5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5744 (exit $ac_status); } >/dev/null && { 5745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5746 test ! -s conftest.err 5747 }; then 5748 ac_header_preproc=yes 5749else 5750 echo "$as_me: failed program was:" >&5 5751sed 's/^/| /' conftest.$ac_ext >&5 5752 5753 ac_header_preproc=no 5754fi 5755 5756rm -f conftest.err conftest.$ac_ext 5757{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5758echo "${ECHO_T}$ac_header_preproc" >&6; } 5759 5760# So? What about this header? 5761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5762 yes:no: ) 5763 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5764echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5765 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5766echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5767 ac_header_preproc=yes 5768 ;; 5769 no:yes:* ) 5770 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5771echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5772 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5773echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5774 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5775echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5776 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5777echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5778 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5779echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5780 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5781echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5782 5783 ;; 5784esac 5785{ echo "$as_me:$LINENO: checking for float.h" >&5 5786echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5787if test "${ac_cv_header_float_h+set}" = set; then 5788 echo $ECHO_N "(cached) $ECHO_C" >&6 5789else 5790 ac_cv_header_float_h=$ac_header_preproc 5791fi 5792{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5793echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5794 5795fi 5796if test $ac_cv_header_float_h = yes; then 5797 : 5798else 5799 5800cat >>confdefs.h <<\_ACEOF 5801#define NO_FLOAT_H 1 5802_ACEOF 5803 5804fi 5805 5806 5807 if test "${ac_cv_header_values_h+set}" = set; then 5808 { echo "$as_me:$LINENO: checking for values.h" >&5 5809echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5810if test "${ac_cv_header_values_h+set}" = set; then 5811 echo $ECHO_N "(cached) $ECHO_C" >&6 5812fi 5813{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5814echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5815else 5816 # Is the header compilable? 5817{ echo "$as_me:$LINENO: checking values.h usability" >&5 5818echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5819cat >conftest.$ac_ext <<_ACEOF 5820/* confdefs.h. */ 5821_ACEOF 5822cat confdefs.h >>conftest.$ac_ext 5823cat >>conftest.$ac_ext <<_ACEOF 5824/* end confdefs.h. */ 5825$ac_includes_default 5826#include <values.h> 5827_ACEOF 5828rm -f conftest.$ac_objext 5829if { (ac_try="$ac_compile" 5830case "(($ac_try" in 5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5832 *) ac_try_echo=$ac_try;; 5833esac 5834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5835 (eval "$ac_compile") 2>conftest.er1 5836 ac_status=$? 5837 grep -v '^ *+' conftest.er1 >conftest.err 5838 rm -f conftest.er1 5839 cat conftest.err >&5 5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5841 (exit $ac_status); } && { 5842 test -z "$ac_c_werror_flag" || 5843 test ! -s conftest.err 5844 } && test -s conftest.$ac_objext; then 5845 ac_header_compiler=yes 5846else 5847 echo "$as_me: failed program was:" >&5 5848sed 's/^/| /' conftest.$ac_ext >&5 5849 5850 ac_header_compiler=no 5851fi 5852 5853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5854{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5855echo "${ECHO_T}$ac_header_compiler" >&6; } 5856 5857# Is the header present? 5858{ echo "$as_me:$LINENO: checking values.h presence" >&5 5859echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5860cat >conftest.$ac_ext <<_ACEOF 5861/* confdefs.h. */ 5862_ACEOF 5863cat confdefs.h >>conftest.$ac_ext 5864cat >>conftest.$ac_ext <<_ACEOF 5865/* end confdefs.h. */ 5866#include <values.h> 5867_ACEOF 5868if { (ac_try="$ac_cpp conftest.$ac_ext" 5869case "(($ac_try" in 5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5871 *) ac_try_echo=$ac_try;; 5872esac 5873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5875 ac_status=$? 5876 grep -v '^ *+' conftest.er1 >conftest.err 5877 rm -f conftest.er1 5878 cat conftest.err >&5 5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5880 (exit $ac_status); } >/dev/null && { 5881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5882 test ! -s conftest.err 5883 }; then 5884 ac_header_preproc=yes 5885else 5886 echo "$as_me: failed program was:" >&5 5887sed 's/^/| /' conftest.$ac_ext >&5 5888 5889 ac_header_preproc=no 5890fi 5891 5892rm -f conftest.err conftest.$ac_ext 5893{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5894echo "${ECHO_T}$ac_header_preproc" >&6; } 5895 5896# So? What about this header? 5897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5898 yes:no: ) 5899 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5900echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5901 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5902echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5903 ac_header_preproc=yes 5904 ;; 5905 no:yes:* ) 5906 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5907echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5908 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5909echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5910 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5911echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5912 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5913echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5914 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5915echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5916 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5917echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5918 5919 ;; 5920esac 5921{ echo "$as_me:$LINENO: checking for values.h" >&5 5922echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5923if test "${ac_cv_header_values_h+set}" = set; then 5924 echo $ECHO_N "(cached) $ECHO_C" >&6 5925else 5926 ac_cv_header_values_h=$ac_header_preproc 5927fi 5928{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5929echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5930 5931fi 5932if test $ac_cv_header_values_h = yes; then 5933 : 5934else 5935 5936cat >>confdefs.h <<\_ACEOF 5937#define NO_VALUES_H 1 5938_ACEOF 5939 5940fi 5941 5942 5943 if test "${ac_cv_header_limits_h+set}" = set; then 5944 { echo "$as_me:$LINENO: checking for limits.h" >&5 5945echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5946if test "${ac_cv_header_limits_h+set}" = set; then 5947 echo $ECHO_N "(cached) $ECHO_C" >&6 5948fi 5949{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5950echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5951else 5952 # Is the header compilable? 5953{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5954echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5955cat >conftest.$ac_ext <<_ACEOF 5956/* confdefs.h. */ 5957_ACEOF 5958cat confdefs.h >>conftest.$ac_ext 5959cat >>conftest.$ac_ext <<_ACEOF 5960/* end confdefs.h. */ 5961$ac_includes_default 5962#include <limits.h> 5963_ACEOF 5964rm -f conftest.$ac_objext 5965if { (ac_try="$ac_compile" 5966case "(($ac_try" in 5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5968 *) ac_try_echo=$ac_try;; 5969esac 5970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5971 (eval "$ac_compile") 2>conftest.er1 5972 ac_status=$? 5973 grep -v '^ *+' conftest.er1 >conftest.err 5974 rm -f conftest.er1 5975 cat conftest.err >&5 5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5977 (exit $ac_status); } && { 5978 test -z "$ac_c_werror_flag" || 5979 test ! -s conftest.err 5980 } && test -s conftest.$ac_objext; then 5981 ac_header_compiler=yes 5982else 5983 echo "$as_me: failed program was:" >&5 5984sed 's/^/| /' conftest.$ac_ext >&5 5985 5986 ac_header_compiler=no 5987fi 5988 5989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5990{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5991echo "${ECHO_T}$ac_header_compiler" >&6; } 5992 5993# Is the header present? 5994{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5995echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5996cat >conftest.$ac_ext <<_ACEOF 5997/* confdefs.h. */ 5998_ACEOF 5999cat confdefs.h >>conftest.$ac_ext 6000cat >>conftest.$ac_ext <<_ACEOF 6001/* end confdefs.h. */ 6002#include <limits.h> 6003_ACEOF 6004if { (ac_try="$ac_cpp conftest.$ac_ext" 6005case "(($ac_try" in 6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6007 *) ac_try_echo=$ac_try;; 6008esac 6009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6011 ac_status=$? 6012 grep -v '^ *+' conftest.er1 >conftest.err 6013 rm -f conftest.er1 6014 cat conftest.err >&5 6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6016 (exit $ac_status); } >/dev/null && { 6017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6018 test ! -s conftest.err 6019 }; then 6020 ac_header_preproc=yes 6021else 6022 echo "$as_me: failed program was:" >&5 6023sed 's/^/| /' conftest.$ac_ext >&5 6024 6025 ac_header_preproc=no 6026fi 6027 6028rm -f conftest.err conftest.$ac_ext 6029{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6030echo "${ECHO_T}$ac_header_preproc" >&6; } 6031 6032# So? What about this header? 6033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6034 yes:no: ) 6035 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 6036echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6037 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 6038echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 6039 ac_header_preproc=yes 6040 ;; 6041 no:yes:* ) 6042 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 6043echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 6044 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 6045echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 6046 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 6047echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 6048 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 6049echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 6050 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 6051echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 6052 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 6053echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 6054 6055 ;; 6056esac 6057{ echo "$as_me:$LINENO: checking for limits.h" >&5 6058echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 6059if test "${ac_cv_header_limits_h+set}" = set; then 6060 echo $ECHO_N "(cached) $ECHO_C" >&6 6061else 6062 ac_cv_header_limits_h=$ac_header_preproc 6063fi 6064{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 6065echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 6066 6067fi 6068if test $ac_cv_header_limits_h = yes; then 6069 6070cat >>confdefs.h <<\_ACEOF 6071#define HAVE_LIMITS_H 1 6072_ACEOF 6073 6074else 6075 6076cat >>confdefs.h <<\_ACEOF 6077#define NO_LIMITS_H 1 6078_ACEOF 6079 6080fi 6081 6082 6083 if test "${ac_cv_header_stdlib_h+set}" = set; then 6084 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 6085echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6086if test "${ac_cv_header_stdlib_h+set}" = set; then 6087 echo $ECHO_N "(cached) $ECHO_C" >&6 6088fi 6089{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6090echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6091else 6092 # Is the header compilable? 6093{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 6094echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 6095cat >conftest.$ac_ext <<_ACEOF 6096/* confdefs.h. */ 6097_ACEOF 6098cat confdefs.h >>conftest.$ac_ext 6099cat >>conftest.$ac_ext <<_ACEOF 6100/* end confdefs.h. */ 6101$ac_includes_default 6102#include <stdlib.h> 6103_ACEOF 6104rm -f conftest.$ac_objext 6105if { (ac_try="$ac_compile" 6106case "(($ac_try" in 6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6108 *) ac_try_echo=$ac_try;; 6109esac 6110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6111 (eval "$ac_compile") 2>conftest.er1 6112 ac_status=$? 6113 grep -v '^ *+' conftest.er1 >conftest.err 6114 rm -f conftest.er1 6115 cat conftest.err >&5 6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6117 (exit $ac_status); } && { 6118 test -z "$ac_c_werror_flag" || 6119 test ! -s conftest.err 6120 } && test -s conftest.$ac_objext; then 6121 ac_header_compiler=yes 6122else 6123 echo "$as_me: failed program was:" >&5 6124sed 's/^/| /' conftest.$ac_ext >&5 6125 6126 ac_header_compiler=no 6127fi 6128 6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6130{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6131echo "${ECHO_T}$ac_header_compiler" >&6; } 6132 6133# Is the header present? 6134{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 6135echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 6136cat >conftest.$ac_ext <<_ACEOF 6137/* confdefs.h. */ 6138_ACEOF 6139cat confdefs.h >>conftest.$ac_ext 6140cat >>conftest.$ac_ext <<_ACEOF 6141/* end confdefs.h. */ 6142#include <stdlib.h> 6143_ACEOF 6144if { (ac_try="$ac_cpp conftest.$ac_ext" 6145case "(($ac_try" in 6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6147 *) ac_try_echo=$ac_try;; 6148esac 6149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6151 ac_status=$? 6152 grep -v '^ *+' conftest.er1 >conftest.err 6153 rm -f conftest.er1 6154 cat conftest.err >&5 6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6156 (exit $ac_status); } >/dev/null && { 6157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6158 test ! -s conftest.err 6159 }; then 6160 ac_header_preproc=yes 6161else 6162 echo "$as_me: failed program was:" >&5 6163sed 's/^/| /' conftest.$ac_ext >&5 6164 6165 ac_header_preproc=no 6166fi 6167 6168rm -f conftest.err conftest.$ac_ext 6169{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6170echo "${ECHO_T}$ac_header_preproc" >&6; } 6171 6172# So? What about this header? 6173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6174 yes:no: ) 6175 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 6176echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6177 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 6178echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 6179 ac_header_preproc=yes 6180 ;; 6181 no:yes:* ) 6182 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 6183echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 6184 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 6185echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 6186 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 6187echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 6188 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 6189echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 6190 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 6191echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 6192 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 6193echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 6194 6195 ;; 6196esac 6197{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 6198echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6199if test "${ac_cv_header_stdlib_h+set}" = set; then 6200 echo $ECHO_N "(cached) $ECHO_C" >&6 6201else 6202 ac_cv_header_stdlib_h=$ac_header_preproc 6203fi 6204{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6205echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6206 6207fi 6208if test $ac_cv_header_stdlib_h = yes; then 6209 tcl_ok=1 6210else 6211 tcl_ok=0 6212fi 6213 6214 6215 cat >conftest.$ac_ext <<_ACEOF 6216/* confdefs.h. */ 6217_ACEOF 6218cat confdefs.h >>conftest.$ac_ext 6219cat >>conftest.$ac_ext <<_ACEOF 6220/* end confdefs.h. */ 6221#include <stdlib.h> 6222 6223_ACEOF 6224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6225 $EGREP "strtol" >/dev/null 2>&1; then 6226 : 6227else 6228 tcl_ok=0 6229fi 6230rm -f -r conftest* 6231 6232 cat >conftest.$ac_ext <<_ACEOF 6233/* confdefs.h. */ 6234_ACEOF 6235cat confdefs.h >>conftest.$ac_ext 6236cat >>conftest.$ac_ext <<_ACEOF 6237/* end confdefs.h. */ 6238#include <stdlib.h> 6239 6240_ACEOF 6241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6242 $EGREP "strtoul" >/dev/null 2>&1; then 6243 : 6244else 6245 tcl_ok=0 6246fi 6247rm -f -r conftest* 6248 6249 cat >conftest.$ac_ext <<_ACEOF 6250/* confdefs.h. */ 6251_ACEOF 6252cat confdefs.h >>conftest.$ac_ext 6253cat >>conftest.$ac_ext <<_ACEOF 6254/* end confdefs.h. */ 6255#include <stdlib.h> 6256 6257_ACEOF 6258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6259 $EGREP "strtod" >/dev/null 2>&1; then 6260 : 6261else 6262 tcl_ok=0 6263fi 6264rm -f -r conftest* 6265 6266 if test $tcl_ok = 0; then 6267 6268cat >>confdefs.h <<\_ACEOF 6269#define NO_STDLIB_H 1 6270_ACEOF 6271 6272 fi 6273 if test "${ac_cv_header_string_h+set}" = set; then 6274 { echo "$as_me:$LINENO: checking for string.h" >&5 6275echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6276if test "${ac_cv_header_string_h+set}" = set; then 6277 echo $ECHO_N "(cached) $ECHO_C" >&6 6278fi 6279{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6280echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6281else 6282 # Is the header compilable? 6283{ echo "$as_me:$LINENO: checking string.h usability" >&5 6284echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6285cat >conftest.$ac_ext <<_ACEOF 6286/* confdefs.h. */ 6287_ACEOF 6288cat confdefs.h >>conftest.$ac_ext 6289cat >>conftest.$ac_ext <<_ACEOF 6290/* end confdefs.h. */ 6291$ac_includes_default 6292#include <string.h> 6293_ACEOF 6294rm -f conftest.$ac_objext 6295if { (ac_try="$ac_compile" 6296case "(($ac_try" in 6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6298 *) ac_try_echo=$ac_try;; 6299esac 6300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6301 (eval "$ac_compile") 2>conftest.er1 6302 ac_status=$? 6303 grep -v '^ *+' conftest.er1 >conftest.err 6304 rm -f conftest.er1 6305 cat conftest.err >&5 6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6307 (exit $ac_status); } && { 6308 test -z "$ac_c_werror_flag" || 6309 test ! -s conftest.err 6310 } && test -s conftest.$ac_objext; then 6311 ac_header_compiler=yes 6312else 6313 echo "$as_me: failed program was:" >&5 6314sed 's/^/| /' conftest.$ac_ext >&5 6315 6316 ac_header_compiler=no 6317fi 6318 6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6320{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6321echo "${ECHO_T}$ac_header_compiler" >&6; } 6322 6323# Is the header present? 6324{ echo "$as_me:$LINENO: checking string.h presence" >&5 6325echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6326cat >conftest.$ac_ext <<_ACEOF 6327/* confdefs.h. */ 6328_ACEOF 6329cat confdefs.h >>conftest.$ac_ext 6330cat >>conftest.$ac_ext <<_ACEOF 6331/* end confdefs.h. */ 6332#include <string.h> 6333_ACEOF 6334if { (ac_try="$ac_cpp conftest.$ac_ext" 6335case "(($ac_try" in 6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6337 *) ac_try_echo=$ac_try;; 6338esac 6339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6341 ac_status=$? 6342 grep -v '^ *+' conftest.er1 >conftest.err 6343 rm -f conftest.er1 6344 cat conftest.err >&5 6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6346 (exit $ac_status); } >/dev/null && { 6347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6348 test ! -s conftest.err 6349 }; then 6350 ac_header_preproc=yes 6351else 6352 echo "$as_me: failed program was:" >&5 6353sed 's/^/| /' conftest.$ac_ext >&5 6354 6355 ac_header_preproc=no 6356fi 6357 6358rm -f conftest.err conftest.$ac_ext 6359{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6360echo "${ECHO_T}$ac_header_preproc" >&6; } 6361 6362# So? What about this header? 6363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6364 yes:no: ) 6365 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6366echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6367 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6368echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6369 ac_header_preproc=yes 6370 ;; 6371 no:yes:* ) 6372 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6373echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6374 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6375echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6376 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6377echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6378 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6379echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6380 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6381echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6382 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6383echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6384 6385 ;; 6386esac 6387{ echo "$as_me:$LINENO: checking for string.h" >&5 6388echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6389if test "${ac_cv_header_string_h+set}" = set; then 6390 echo $ECHO_N "(cached) $ECHO_C" >&6 6391else 6392 ac_cv_header_string_h=$ac_header_preproc 6393fi 6394{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6395echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6396 6397fi 6398if test $ac_cv_header_string_h = yes; then 6399 tcl_ok=1 6400else 6401 tcl_ok=0 6402fi 6403 6404 6405 cat >conftest.$ac_ext <<_ACEOF 6406/* confdefs.h. */ 6407_ACEOF 6408cat confdefs.h >>conftest.$ac_ext 6409cat >>conftest.$ac_ext <<_ACEOF 6410/* end confdefs.h. */ 6411#include <string.h> 6412 6413_ACEOF 6414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6415 $EGREP "strstr" >/dev/null 2>&1; then 6416 : 6417else 6418 tcl_ok=0 6419fi 6420rm -f -r conftest* 6421 6422 cat >conftest.$ac_ext <<_ACEOF 6423/* confdefs.h. */ 6424_ACEOF 6425cat confdefs.h >>conftest.$ac_ext 6426cat >>conftest.$ac_ext <<_ACEOF 6427/* end confdefs.h. */ 6428#include <string.h> 6429 6430_ACEOF 6431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6432 $EGREP "strerror" >/dev/null 2>&1; then 6433 : 6434else 6435 tcl_ok=0 6436fi 6437rm -f -r conftest* 6438 6439 6440 # See also memmove check below for a place where NO_STRING_H can be 6441 # set and why. 6442 6443 if test $tcl_ok = 0; then 6444 6445cat >>confdefs.h <<\_ACEOF 6446#define NO_STRING_H 1 6447_ACEOF 6448 6449 fi 6450 6451 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6452 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6453echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6454if test "${ac_cv_header_sys_wait_h+set}" = set; then 6455 echo $ECHO_N "(cached) $ECHO_C" >&6 6456fi 6457{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6458echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6459else 6460 # Is the header compilable? 6461{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6462echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6463cat >conftest.$ac_ext <<_ACEOF 6464/* confdefs.h. */ 6465_ACEOF 6466cat confdefs.h >>conftest.$ac_ext 6467cat >>conftest.$ac_ext <<_ACEOF 6468/* end confdefs.h. */ 6469$ac_includes_default 6470#include <sys/wait.h> 6471_ACEOF 6472rm -f conftest.$ac_objext 6473if { (ac_try="$ac_compile" 6474case "(($ac_try" in 6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6476 *) ac_try_echo=$ac_try;; 6477esac 6478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6479 (eval "$ac_compile") 2>conftest.er1 6480 ac_status=$? 6481 grep -v '^ *+' conftest.er1 >conftest.err 6482 rm -f conftest.er1 6483 cat conftest.err >&5 6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6485 (exit $ac_status); } && { 6486 test -z "$ac_c_werror_flag" || 6487 test ! -s conftest.err 6488 } && test -s conftest.$ac_objext; then 6489 ac_header_compiler=yes 6490else 6491 echo "$as_me: failed program was:" >&5 6492sed 's/^/| /' conftest.$ac_ext >&5 6493 6494 ac_header_compiler=no 6495fi 6496 6497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6498{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6499echo "${ECHO_T}$ac_header_compiler" >&6; } 6500 6501# Is the header present? 6502{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6503echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6504cat >conftest.$ac_ext <<_ACEOF 6505/* confdefs.h. */ 6506_ACEOF 6507cat confdefs.h >>conftest.$ac_ext 6508cat >>conftest.$ac_ext <<_ACEOF 6509/* end confdefs.h. */ 6510#include <sys/wait.h> 6511_ACEOF 6512if { (ac_try="$ac_cpp conftest.$ac_ext" 6513case "(($ac_try" in 6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6515 *) ac_try_echo=$ac_try;; 6516esac 6517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6519 ac_status=$? 6520 grep -v '^ *+' conftest.er1 >conftest.err 6521 rm -f conftest.er1 6522 cat conftest.err >&5 6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6524 (exit $ac_status); } >/dev/null && { 6525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6526 test ! -s conftest.err 6527 }; then 6528 ac_header_preproc=yes 6529else 6530 echo "$as_me: failed program was:" >&5 6531sed 's/^/| /' conftest.$ac_ext >&5 6532 6533 ac_header_preproc=no 6534fi 6535 6536rm -f conftest.err conftest.$ac_ext 6537{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6538echo "${ECHO_T}$ac_header_preproc" >&6; } 6539 6540# So? What about this header? 6541case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6542 yes:no: ) 6543 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6544echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6545 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6546echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6547 ac_header_preproc=yes 6548 ;; 6549 no:yes:* ) 6550 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6551echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6552 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6553echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6554 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6555echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6556 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6557echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6558 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6559echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6560 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6561echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6562 6563 ;; 6564esac 6565{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6566echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6567if test "${ac_cv_header_sys_wait_h+set}" = set; then 6568 echo $ECHO_N "(cached) $ECHO_C" >&6 6569else 6570 ac_cv_header_sys_wait_h=$ac_header_preproc 6571fi 6572{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6573echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6574 6575fi 6576if test $ac_cv_header_sys_wait_h = yes; then 6577 : 6578else 6579 6580cat >>confdefs.h <<\_ACEOF 6581#define NO_SYS_WAIT_H 1 6582_ACEOF 6583 6584fi 6585 6586 6587 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6588 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6589echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6590if test "${ac_cv_header_dlfcn_h+set}" = set; then 6591 echo $ECHO_N "(cached) $ECHO_C" >&6 6592fi 6593{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6594echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6595else 6596 # Is the header compilable? 6597{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6598echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6599cat >conftest.$ac_ext <<_ACEOF 6600/* confdefs.h. */ 6601_ACEOF 6602cat confdefs.h >>conftest.$ac_ext 6603cat >>conftest.$ac_ext <<_ACEOF 6604/* end confdefs.h. */ 6605$ac_includes_default 6606#include <dlfcn.h> 6607_ACEOF 6608rm -f conftest.$ac_objext 6609if { (ac_try="$ac_compile" 6610case "(($ac_try" in 6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6612 *) ac_try_echo=$ac_try;; 6613esac 6614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6615 (eval "$ac_compile") 2>conftest.er1 6616 ac_status=$? 6617 grep -v '^ *+' conftest.er1 >conftest.err 6618 rm -f conftest.er1 6619 cat conftest.err >&5 6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6621 (exit $ac_status); } && { 6622 test -z "$ac_c_werror_flag" || 6623 test ! -s conftest.err 6624 } && test -s conftest.$ac_objext; then 6625 ac_header_compiler=yes 6626else 6627 echo "$as_me: failed program was:" >&5 6628sed 's/^/| /' conftest.$ac_ext >&5 6629 6630 ac_header_compiler=no 6631fi 6632 6633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6634{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6635echo "${ECHO_T}$ac_header_compiler" >&6; } 6636 6637# Is the header present? 6638{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6639echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6640cat >conftest.$ac_ext <<_ACEOF 6641/* confdefs.h. */ 6642_ACEOF 6643cat confdefs.h >>conftest.$ac_ext 6644cat >>conftest.$ac_ext <<_ACEOF 6645/* end confdefs.h. */ 6646#include <dlfcn.h> 6647_ACEOF 6648if { (ac_try="$ac_cpp conftest.$ac_ext" 6649case "(($ac_try" in 6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6651 *) ac_try_echo=$ac_try;; 6652esac 6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6655 ac_status=$? 6656 grep -v '^ *+' conftest.er1 >conftest.err 6657 rm -f conftest.er1 6658 cat conftest.err >&5 6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6660 (exit $ac_status); } >/dev/null && { 6661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6662 test ! -s conftest.err 6663 }; then 6664 ac_header_preproc=yes 6665else 6666 echo "$as_me: failed program was:" >&5 6667sed 's/^/| /' conftest.$ac_ext >&5 6668 6669 ac_header_preproc=no 6670fi 6671 6672rm -f conftest.err conftest.$ac_ext 6673{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6674echo "${ECHO_T}$ac_header_preproc" >&6; } 6675 6676# So? What about this header? 6677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6678 yes:no: ) 6679 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6680echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6681 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6682echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6683 ac_header_preproc=yes 6684 ;; 6685 no:yes:* ) 6686 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6687echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6688 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6689echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6690 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6691echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6692 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6693echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6694 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6695echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6696 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6697echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6698 6699 ;; 6700esac 6701{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6702echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6703if test "${ac_cv_header_dlfcn_h+set}" = set; then 6704 echo $ECHO_N "(cached) $ECHO_C" >&6 6705else 6706 ac_cv_header_dlfcn_h=$ac_header_preproc 6707fi 6708{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6709echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6710 6711fi 6712if test $ac_cv_header_dlfcn_h = yes; then 6713 : 6714else 6715 6716cat >>confdefs.h <<\_ACEOF 6717#define NO_DLFCN_H 1 6718_ACEOF 6719 6720fi 6721 6722 6723 6724 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6725 6726for ac_header in sys/param.h 6727do 6728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6730 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6733 echo $ECHO_N "(cached) $ECHO_C" >&6 6734fi 6735ac_res=`eval echo '${'$as_ac_Header'}'` 6736 { echo "$as_me:$LINENO: result: $ac_res" >&5 6737echo "${ECHO_T}$ac_res" >&6; } 6738else 6739 # Is the header compilable? 6740{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6741echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6742cat >conftest.$ac_ext <<_ACEOF 6743/* confdefs.h. */ 6744_ACEOF 6745cat confdefs.h >>conftest.$ac_ext 6746cat >>conftest.$ac_ext <<_ACEOF 6747/* end confdefs.h. */ 6748$ac_includes_default 6749#include <$ac_header> 6750_ACEOF 6751rm -f conftest.$ac_objext 6752if { (ac_try="$ac_compile" 6753case "(($ac_try" in 6754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6755 *) ac_try_echo=$ac_try;; 6756esac 6757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6758 (eval "$ac_compile") 2>conftest.er1 6759 ac_status=$? 6760 grep -v '^ *+' conftest.er1 >conftest.err 6761 rm -f conftest.er1 6762 cat conftest.err >&5 6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6764 (exit $ac_status); } && { 6765 test -z "$ac_c_werror_flag" || 6766 test ! -s conftest.err 6767 } && test -s conftest.$ac_objext; then 6768 ac_header_compiler=yes 6769else 6770 echo "$as_me: failed program was:" >&5 6771sed 's/^/| /' conftest.$ac_ext >&5 6772 6773 ac_header_compiler=no 6774fi 6775 6776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6777{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6778echo "${ECHO_T}$ac_header_compiler" >&6; } 6779 6780# Is the header present? 6781{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6782echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6783cat >conftest.$ac_ext <<_ACEOF 6784/* confdefs.h. */ 6785_ACEOF 6786cat confdefs.h >>conftest.$ac_ext 6787cat >>conftest.$ac_ext <<_ACEOF 6788/* end confdefs.h. */ 6789#include <$ac_header> 6790_ACEOF 6791if { (ac_try="$ac_cpp conftest.$ac_ext" 6792case "(($ac_try" in 6793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6794 *) ac_try_echo=$ac_try;; 6795esac 6796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6798 ac_status=$? 6799 grep -v '^ *+' conftest.er1 >conftest.err 6800 rm -f conftest.er1 6801 cat conftest.err >&5 6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6803 (exit $ac_status); } >/dev/null && { 6804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6805 test ! -s conftest.err 6806 }; then 6807 ac_header_preproc=yes 6808else 6809 echo "$as_me: failed program was:" >&5 6810sed 's/^/| /' conftest.$ac_ext >&5 6811 6812 ac_header_preproc=no 6813fi 6814 6815rm -f conftest.err conftest.$ac_ext 6816{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6817echo "${ECHO_T}$ac_header_preproc" >&6; } 6818 6819# So? What about this header? 6820case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6821 yes:no: ) 6822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6823echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6825echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6826 ac_header_preproc=yes 6827 ;; 6828 no:yes:* ) 6829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6830echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6832echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6834echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6836echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6838echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6840echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6841 6842 ;; 6843esac 6844{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6847 echo $ECHO_N "(cached) $ECHO_C" >&6 6848else 6849 eval "$as_ac_Header=\$ac_header_preproc" 6850fi 6851ac_res=`eval echo '${'$as_ac_Header'}'` 6852 { echo "$as_me:$LINENO: result: $ac_res" >&5 6853echo "${ECHO_T}$ac_res" >&6; } 6854 6855fi 6856if test `eval echo '${'$as_ac_Header'}'` = yes; then 6857 cat >>confdefs.h <<_ACEOF 6858#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6859_ACEOF 6860 6861fi 6862 6863done 6864 6865 6866 # Let the user call this, because if it triggers, they will 6867 # need a compat/strtod.c that is correct. Users can also 6868 # use Tcl_GetDouble(FromObj) instead. 6869 #TEA_BUGGY_STRTOD 6870 fi 6871 6872 6873 6874 # 6875 # Ok, lets find the tkimg configuration 6876 # First, look for one uninstalled. 6877 # the alternative search directory is invoked by --with-tkimg 6878 # 6879 6880 if test x"${no_tkimg}" = x ; then 6881 # we reset no_tkimg in case something fails here 6882 no_tkimg=true 6883 6884# Check whether --with-tkimg was given. 6885if test "${with_tkimg+set}" = set; then 6886 withval=$with_tkimg; with_tkimgconfig=${withval} 6887fi 6888 6889 { echo "$as_me:$LINENO: checking for tkimg configuration" >&5 6890echo $ECHO_N "checking for tkimg configuration... $ECHO_C" >&6; } 6891 if test "${ac_cv_c_tkimgconfig+set}" = set; then 6892 echo $ECHO_N "(cached) $ECHO_C" >&6 6893else 6894 6895 6896 # First check to see if --with-tkimg was specified. 6897 if test x"${with_tkimgconfig}" != x ; then 6898 case ${with_tkimgconfig} in 6899 */tkimgConfig.sh ) 6900 if test -f ${with_tkimgconfig}; then 6901 { echo "$as_me:$LINENO: WARNING: --with-tkimg argument should refer to directory containing tkimgConfig.sh, not to tkimgConfig.sh itself" >&5 6902echo "$as_me: WARNING: --with-tkimg argument should refer to directory containing tkimgConfig.sh, not to tkimgConfig.sh itself" >&2;} 6903 with_tkimgconfig=`echo ${with_tkimgconfig} | sed 's!/tkimgConfig\.sh$!!'` 6904 fi;; 6905 esac 6906 if test -f "${with_tkimgconfig}/tkimgConfig.sh" ; then 6907 ac_cv_c_tkimgconfig=`(cd ${with_tkimgconfig}; pwd)` 6908 else 6909 { { echo "$as_me:$LINENO: error: ${with_tkimgconfig} directory doesn't contain tkimgConfig.sh" >&5 6910echo "$as_me: error: ${with_tkimgconfig} directory doesn't contain tkimgConfig.sh" >&2;} 6911 { (exit 1); exit 1; }; } 6912 fi 6913 fi 6914 6915 # then check for a private tkimg installation 6916 if test x"${ac_cv_c_tkimgconfig}" = x ; then 6917 for i in \ 6918 ../tkimg \ 6919 `ls -dr ../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6920 `ls -dr ../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6921 `ls -dr ../tkimg*[0-9].[0-9] 2>/dev/null` \ 6922 `ls -dr ../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6923 ../../tkimg \ 6924 `ls -dr ../../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6925 `ls -dr ../../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6926 `ls -dr ../../tkimg*[0-9].[0-9] 2>/dev/null` \ 6927 `ls -dr ../../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6928 ../../../tkimg \ 6929 `ls -dr ../../../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6930 `ls -dr ../../../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6931 `ls -dr ../../../tkimg*[0-9].[0-9] 2>/dev/null` \ 6932 `ls -dr ../../../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6933 ${srcdir}/../tkimg \ 6934 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6935 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6936 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9] 2>/dev/null` \ 6937 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6938 ; do 6939 if test -f "$i/tkimgConfig.sh" ; then 6940 ac_cv_c_tkimgconfig=`(cd $i; pwd)` 6941 break 6942 fi 6943 if test -f "$i/unix/tkimgConfig.sh" ; then 6944 ac_cv_c_tkimgconfig=`(cd $i/unix; pwd)` 6945 break 6946 fi 6947 done 6948 fi 6949 6950 # check in a few common install locations 6951 if test x"${ac_cv_c_tkimgconfig}" = x ; then 6952 for i in `ls -d ${libdir} 2>/dev/null` \ 6953 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 6954 `ls -d ${prefix}/lib 2>/dev/null` \ 6955 `ls -d /usr/local/lib 2>/dev/null` \ 6956 `ls -d /usr/contrib/lib 2>/dev/null` \ 6957 `ls -d /usr/lib 2>/dev/null` \ 6958 `ls -d /usr/lib64 2>/dev/null` \ 6959 ; do 6960 if test -f "$i/tkimgConfig.sh" ; then 6961 ac_cv_c_tkimgconfig=`(cd $i; pwd)` 6962 break 6963 fi 6964 done 6965 fi 6966 6967fi 6968 6969 6970 if test x"${ac_cv_c_tkimgconfig}" = x ; then 6971 tkimg_BIN_DIR="# no tkimg configs found" 6972 { echo "$as_me:$LINENO: WARNING: Cannot find tkimg configuration definitions" >&5 6973echo "$as_me: WARNING: Cannot find tkimg configuration definitions" >&2;} 6974 exit 0 6975 else 6976 no_tkimg= 6977 tkimg_BIN_DIR=${ac_cv_c_tkimgconfig} 6978 { echo "$as_me:$LINENO: result: found $tkimg_BIN_DIR/tkimgConfig.sh" >&5 6979echo "${ECHO_T}found $tkimg_BIN_DIR/tkimgConfig.sh" >&6; } 6980 fi 6981 fi 6982 6983 6984 { echo "$as_me:$LINENO: checking for existence of ${tkimg_BIN_DIR}/tkimgConfig.sh" >&5 6985echo $ECHO_N "checking for existence of ${tkimg_BIN_DIR}/tkimgConfig.sh... $ECHO_C" >&6; } 6986 6987 if test -f "${tkimg_BIN_DIR}/tkimgConfig.sh" ; then 6988 { echo "$as_me:$LINENO: result: loading" >&5 6989echo "${ECHO_T}loading" >&6; } 6990 . "${tkimg_BIN_DIR}/tkimgConfig.sh" 6991 else 6992 { echo "$as_me:$LINENO: result: file not found" >&5 6993echo "${ECHO_T}file not found" >&6; } 6994 fi 6995 6996 # 6997 # If the tkimg_BIN_DIR is the build directory (not the install directory), 6998 # then set the common variable name to the value of the build variables. 6999 # For example, the variable tkimg_LIB_SPEC will be set to the value 7000 # of tkimg_BUILD_LIB_SPEC. An extension should make use of tkimg_LIB_SPEC 7001 # instead of tkimg_BUILD_LIB_SPEC since it will work with both an 7002 # installed and uninstalled version of Tcl. 7003 # 7004 7005 if test -f "${tkimg_BIN_DIR}/Makefile" ; then 7006 { echo "$as_me:$LINENO: WARNING: Found Makefile - using build library specs for tkimg" >&5 7007echo "$as_me: WARNING: Found Makefile - using build library specs for tkimg" >&2;} 7008 tkimg_LIB_SPEC=${tkimg_BUILD_LIB_SPEC} 7009 tkimg_STUB_LIB_SPEC=${tkimg_BUILD_STUB_LIB_SPEC} 7010 tkimg_STUB_LIB_PATH=${tkimg_BUILD_STUB_LIB_PATH} 7011 fi 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 # Allow the caller to prevent this auto-check by specifying any 2nd arg 7025 if test "x" = x; then 7026 7027 # Check both upper and lower-case variants 7028 # If a dev wanted non-stubs libs, this function could take an option 7029 # to not use _STUB in the paths below 7030 if test "x${tkimg_STUB_LIB_SPEC}" = x; then 7031 7032 { echo "$as_me:$LINENO: checking For TKIMG_STUB library for LIBS" >&5 7033echo $ECHO_N "checking For TKIMG_STUB library for LIBS... $ECHO_C" >&6; } 7034 # This simplifies the use of stub libraries by automatically adding 7035 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7036 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7037 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7038 if test "x${TKIMG_STUB_LIB_SPEC}" != "x" ; then 7039 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7040 7041 vars="\"`${CYGPATH} ${TKIMG_STUB_LIB_PATH}`\"" 7042 for i in $vars; do 7043 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7044 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7045 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7046 fi 7047 PKG_LIBS="$PKG_LIBS $i" 7048 done 7049 7050 7051 { echo "$as_me:$LINENO: result: using TKIMG_STUB_LIB_PATH ${TKIMG_STUB_LIB_PATH}" >&5 7052echo "${ECHO_T}using TKIMG_STUB_LIB_PATH ${TKIMG_STUB_LIB_PATH}" >&6; } 7053 else 7054 7055 vars="${TKIMG_STUB_LIB_SPEC}" 7056 for i in $vars; do 7057 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7058 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7059 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7060 fi 7061 PKG_LIBS="$PKG_LIBS $i" 7062 done 7063 7064 7065 { echo "$as_me:$LINENO: result: using TKIMG_STUB_LIB_SPEC ${TKIMG_STUB_LIB_SPEC}" >&5 7066echo "${ECHO_T}using TKIMG_STUB_LIB_SPEC ${TKIMG_STUB_LIB_SPEC}" >&6; } 7067 fi 7068 else 7069 { echo "$as_me:$LINENO: result: file not found" >&5 7070echo "${ECHO_T}file not found" >&6; } 7071 fi 7072 7073else 7074 7075 { echo "$as_me:$LINENO: checking For tkimg_STUB library for LIBS" >&5 7076echo $ECHO_N "checking For tkimg_STUB library for LIBS... $ECHO_C" >&6; } 7077 # This simplifies the use of stub libraries by automatically adding 7078 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7079 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7080 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7081 if test "x${tkimg_STUB_LIB_SPEC}" != "x" ; then 7082 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7083 7084 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\"" 7085 for i in $vars; do 7086 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7087 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7088 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7089 fi 7090 PKG_LIBS="$PKG_LIBS $i" 7091 done 7092 7093 7094 { echo "$as_me:$LINENO: result: using tkimg_STUB_LIB_PATH ${tkimg_STUB_LIB_PATH}" >&5 7095echo "${ECHO_T}using tkimg_STUB_LIB_PATH ${tkimg_STUB_LIB_PATH}" >&6; } 7096 else 7097 7098 vars="${tkimg_STUB_LIB_SPEC}" 7099 for i in $vars; do 7100 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7101 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7102 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7103 fi 7104 PKG_LIBS="$PKG_LIBS $i" 7105 done 7106 7107 7108 { echo "$as_me:$LINENO: result: using tkimg_STUB_LIB_SPEC ${tkimg_STUB_LIB_SPEC}" >&5 7109echo "${ECHO_T}using tkimg_STUB_LIB_SPEC ${tkimg_STUB_LIB_SPEC}" >&6; } 7110 fi 7111 else 7112 { echo "$as_me:$LINENO: result: file not found" >&5 7113echo "${ECHO_T}file not found" >&6; } 7114 fi 7115 7116fi 7117 7118 7119fi 7120 7121 7122 7123 7124#-------------------------------------------------------------------- 7125# Compute an absolute path to the src directory of module 'tkimg' so 7126# that we are able to find its headers even if they are not installed. 7127#-------------------------------------------------------------------- 7128 7129case $tkimg_SRC_DIR in 7130/*) tkimg_SRC_PATH=$tkimg_SRC_DIR 7131 ;; 7132*) # SRC_DIR relative, splice with BUILD_PATH 7133 tkimg_SRC_PATH="`dirname $tkimg_BUILD_STUB_LIB_PATH`/$tkimg_SRC_DIR" 7134esac 7135 7136tkimg_BUILD_PATH="`dirname $tkimg_BUILD_STUB_LIB_PATH`" 7137 7138if test "${TEA_PLATFORM}" = "windows" ; then 7139 tkimg_SRC_PATH="`$CYGPATH $tkimg_SRC_PATH`" 7140 tkimg_BUILD_PATH="`$CYGPATH $tkimg_BUILD_PATH`" 7141fi 7142 7143 7144 7145 7146 7147#----------------------------------------------------------------------- 7148# Specify the C source files to compile in TEA_ADD_SOURCES, 7149# public headers that need to be installed in TEA_ADD_HEADERS, 7150# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 7151# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 7152# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 7153# and PKG_TCL_SOURCES. 7154#----------------------------------------------------------------------- 7155 7156 7157 vars="gif.c" 7158 for i in $vars; do 7159 case $i in 7160 \$*) 7161 # allow $-var names 7162 PKG_SOURCES="$PKG_SOURCES $i" 7163 PKG_OBJECTS="$PKG_OBJECTS $i" 7164 ;; 7165 *) 7166 # check for existence - allows for generic/win/unix VPATH 7167 # To add more dirs here (like 'src'), you have to update VPATH 7168 # in Makefile.in as well 7169 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7170 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7171 -a ! -f "${srcdir}/macosx/$i" \ 7172 ; then 7173 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7174echo "$as_me: error: could not find source file '$i'" >&2;} 7175 { (exit 1); exit 1; }; } 7176 fi 7177 PKG_SOURCES="$PKG_SOURCES $i" 7178 # this assumes it is in a VPATH dir 7179 i=`basename $i` 7180 # handle user calling this before or after TEA_SETUP_COMPILER 7181 if test x"${OBJEXT}" != x ; then 7182 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7183 else 7184 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7185 fi 7186 PKG_OBJECTS="$PKG_OBJECTS $j" 7187 ;; 7188 esac 7189 done 7190 7191 7192 7193 7194 vars="" 7195 for i in $vars; do 7196 # check for existence, be strict because it is installed 7197 if test ! -f "${srcdir}/$i" ; then 7198 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 7199echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 7200 { (exit 1); exit 1; }; } 7201 fi 7202 PKG_HEADERS="$PKG_HEADERS $i" 7203 done 7204 7205 7206 7207 vars="-I\"`\${CYGPATH} \${tkimg_SRC_PATH}`\"" 7208 for i in $vars; do 7209 PKG_INCLUDES="$PKG_INCLUDES $i" 7210 done 7211 7212 7213 7214 vars="-I." 7215 for i in $vars; do 7216 PKG_INCLUDES="$PKG_INCLUDES $i" 7217 done 7218 7219 7220 7221 vars="" 7222 for i in $vars; do 7223 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7224 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7225 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7226 fi 7227 PKG_LIBS="$PKG_LIBS $i" 7228 done 7229 7230 7231 7232 PKG_CFLAGS="$PKG_CFLAGS " 7233 7234 7235 7236 PKG_CFLAGS="$PKG_CFLAGS -DTKIMG_VERSION=\\\"\${tkimg_VERSION}\\\"" 7237 7238 7239 7240 vars="" 7241 for i in $vars; do 7242 # check for existence - allows for generic/win/unix VPATH 7243 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7244 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7245 -a ! -f "${srcdir}/macosx/$i" \ 7246 ; then 7247 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 7248echo "$as_me: error: could not find stub source file '$i'" >&2;} 7249 { (exit 1); exit 1; }; } 7250 fi 7251 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 7252 # this assumes it is in a VPATH dir 7253 i=`basename $i` 7254 # handle user calling this before or after TEA_SETUP_COMPILER 7255 if test x"${OBJEXT}" != x ; then 7256 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7257 else 7258 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7259 fi 7260 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 7261 done 7262 7263 7264 7265 7266 vars="" 7267 for i in $vars; do 7268 # check for existence, be strict because it is installed 7269 if test ! -f "${srcdir}/$i" ; then 7270 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 7271echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 7272 { (exit 1); exit 1; }; } 7273 fi 7274 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 7275 done 7276 7277 7278 7279PUP="`echo ${PACKAGE_NAME}| tr 'a-z' 'A-Z'`" 7280 7281sed < "`${CYGPATH} ${srcdir}/../init.c`" > "init.c" \ 7282 -e "s/@CPACKAGE@/${CPACKAGE}/" \ 7283 -e "s/%PACKAGE%/${PACKAGE_NAME}/" \ 7284 -e "s/%PACKAGE_UP%/${PUP}/" \ 7285 -e "s/%PHIMGTYPE%/${PHIMGTYPE}/" 7286 7287# init.c is an included source file, not a source by itself 7288# FUTURE: Do this through AC_OUTPUT!! 7289 7290#-------------------------------------------------------------------- 7291# __CHANGE__ 7292# Choose which headers you need. Extension authors should try very 7293# hard to only rely on the Tcl public header files. Internal headers 7294# contain private data structures and are subject to change without 7295# notice. 7296# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 7297#-------------------------------------------------------------------- 7298 7299 7300 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 7301echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 7302 7303 7304# Check whether --with-tclinclude was given. 7305if test "${with_tclinclude+set}" = set; then 7306 withval=$with_tclinclude; with_tclinclude=${withval} 7307fi 7308 7309 7310 if test "${ac_cv_c_tclh+set}" = set; then 7311 echo $ECHO_N "(cached) $ECHO_C" >&6 7312else 7313 7314 # Use the value from --with-tclinclude, if it was given 7315 7316 if test x"${with_tclinclude}" != x ; then 7317 if test -f "${with_tclinclude}/tcl.h" ; then 7318 ac_cv_c_tclh=${with_tclinclude} 7319 else 7320 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 7321echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 7322 { (exit 1); exit 1; }; } 7323 fi 7324 else 7325 list="" 7326 if test "`uname -s`" = "Darwin"; then 7327 # If Tcl was built as a framework, attempt to use 7328 # the framework's Headers directory 7329 case ${TCL_DEFS} in 7330 *TCL_FRAMEWORK*) 7331 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 7332 ;; 7333 esac 7334 fi 7335 7336 # Look in the source dir only if Tcl is not installed, 7337 # and in that situation, look there before installed locations. 7338 if test -f "${TCL_BIN_DIR}/Makefile" ; then 7339 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 7340 fi 7341 7342 # Check order: pkg --prefix location, Tcl's --prefix location, 7343 # relative to directory of tclConfig.sh. 7344 7345 eval "temp_includedir=${includedir}" 7346 list="$list \ 7347 `ls -d ${temp_includedir} 2>/dev/null` \ 7348 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7349 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7350 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7351 list="$list /usr/local/include /usr/include" 7352 if test x"${TCL_INCLUDE_SPEC}" != x ; then 7353 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7354 list="$list `ls -d ${d} 2>/dev/null`" 7355 fi 7356 fi 7357 for i in $list ; do 7358 if test -f "$i/tcl.h" ; then 7359 ac_cv_c_tclh=$i 7360 break 7361 fi 7362 done 7363 fi 7364 7365fi 7366 7367 7368 # Print a message based on how we determined the include path 7369 7370 if test x"${ac_cv_c_tclh}" = x ; then 7371 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 7372echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 7373 { (exit 1); exit 1; }; } 7374 else 7375 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 7376echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 7377 fi 7378 7379 # Convert to a native path and substitute into the output files. 7380 7381 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 7382 7383 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7384 7385 7386 7387 7388 { echo "$as_me:$LINENO: checking for Tk public headers" >&5 7389echo $ECHO_N "checking for Tk public headers... $ECHO_C" >&6; } 7390 7391 7392# Check whether --with-tkinclude was given. 7393if test "${with_tkinclude+set}" = set; then 7394 withval=$with_tkinclude; with_tkinclude=${withval} 7395fi 7396 7397 7398 if test "${ac_cv_c_tkh+set}" = set; then 7399 echo $ECHO_N "(cached) $ECHO_C" >&6 7400else 7401 7402 # Use the value from --with-tkinclude, if it was given 7403 7404 if test x"${with_tkinclude}" != x ; then 7405 if test -f "${with_tkinclude}/tk.h" ; then 7406 ac_cv_c_tkh=${with_tkinclude} 7407 else 7408 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory does not contain tk.h" >&5 7409echo "$as_me: error: ${with_tkinclude} directory does not contain tk.h" >&2;} 7410 { (exit 1); exit 1; }; } 7411 fi 7412 else 7413 list="" 7414 if test "`uname -s`" = "Darwin"; then 7415 # If Tk was built as a framework, attempt to use 7416 # the framework's Headers directory. 7417 case ${TK_DEFS} in 7418 *TK_FRAMEWORK*) 7419 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`" 7420 ;; 7421 esac 7422 fi 7423 7424 # Look in the source dir only if Tk is not installed, 7425 # and in that situation, look there before installed locations. 7426 if test -f "${TK_BIN_DIR}/Makefile" ; then 7427 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`" 7428 fi 7429 7430 # Check order: pkg --prefix location, Tk's --prefix location, 7431 # relative to directory of tkConfig.sh, Tcl's --prefix location, 7432 # relative to directory of tclConfig.sh. 7433 7434 eval "temp_includedir=${includedir}" 7435 list="$list \ 7436 `ls -d ${temp_includedir} 2>/dev/null` \ 7437 `ls -d ${TK_PREFIX}/include 2>/dev/null` \ 7438 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \ 7439 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7440 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7441 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7442 list="$list /usr/local/include /usr/include" 7443 if test x"${TK_INCLUDE_SPEC}" != x ; then 7444 d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7445 list="$list `ls -d ${d} 2>/dev/null`" 7446 fi 7447 fi 7448 for i in $list ; do 7449 if test -f "$i/tk.h" ; then 7450 ac_cv_c_tkh=$i 7451 break 7452 fi 7453 done 7454 fi 7455 7456fi 7457 7458 7459 # Print a message based on how we determined the include path 7460 7461 if test x"${ac_cv_c_tkh}" = x ; then 7462 { { echo "$as_me:$LINENO: error: tk.h not found. Please specify its location with --with-tkinclude" >&5 7463echo "$as_me: error: tk.h not found. Please specify its location with --with-tkinclude" >&2;} 7464 { (exit 1); exit 1; }; } 7465 else 7466 { echo "$as_me:$LINENO: result: ${ac_cv_c_tkh}" >&5 7467echo "${ECHO_T}${ac_cv_c_tkh}" >&6; } 7468 fi 7469 7470 # Convert to a native path and substitute into the output files. 7471 7472 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}` 7473 7474 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7475 7476 7477 7478 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then 7479 # On Windows and Aqua, we need the X compat headers 7480 { echo "$as_me:$LINENO: checking for X11 header files" >&5 7481echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 7482 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then 7483 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`" 7484 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7485 7486 fi 7487 { echo "$as_me:$LINENO: result: ${INCLUDE_DIR_NATIVE}" >&5 7488echo "${ECHO_T}${INCLUDE_DIR_NATIVE}" >&6; } 7489 fi 7490 7491 7492#-------------------------------------------------------------------- 7493# A few miscellaneous platform-specific items: 7494# 7495# Windows creates a few extra files that need to be cleaned up. 7496# We can add more files to clean if our extension creates any extra 7497# files in the future. 7498# 7499# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 7500# These will be appended to the current set of compiler flags for 7501# your system. 7502#-------------------------------------------------------------------- 7503 7504if test "${TEA_PLATFORM}" = "windows" ; then 7505 CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch init.c" 7506else 7507 CLEANFILES="init.c" 7508fi 7509 7510 7511#-------------------------------------------------------------------- 7512# Check whether --enable-threads or --disable-threads was given. 7513# So far only Tcl responds to this one. 7514#-------------------------------------------------------------------- 7515 7516 7517 # Check whether --enable-threads was given. 7518if test "${enable_threads+set}" = set; then 7519 enableval=$enable_threads; tcl_ok=$enableval 7520else 7521 tcl_ok=yes 7522fi 7523 7524 7525 if test "${enable_threads+set}" = set; then 7526 enableval="$enable_threads" 7527 tcl_ok=$enableval 7528 else 7529 tcl_ok=yes 7530 fi 7531 7532 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 7533 TCL_THREADS=1 7534 7535 if test "${TEA_PLATFORM}" != "windows" ; then 7536 # We are always OK on Windows, so check what this platform wants: 7537 7538 # USE_THREAD_ALLOC tells us to try the special thread-based 7539 # allocator that significantly reduces lock contention 7540 7541cat >>confdefs.h <<\_ACEOF 7542#define USE_THREAD_ALLOC 1 7543_ACEOF 7544 7545 7546cat >>confdefs.h <<\_ACEOF 7547#define _REENTRANT 1 7548_ACEOF 7549 7550 if test "`uname -s`" = "SunOS" ; then 7551 7552cat >>confdefs.h <<\_ACEOF 7553#define _POSIX_PTHREAD_SEMANTICS 1 7554_ACEOF 7555 7556 fi 7557 7558cat >>confdefs.h <<\_ACEOF 7559#define _THREAD_SAFE 1 7560_ACEOF 7561 7562 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 7563echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7564if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 7565 echo $ECHO_N "(cached) $ECHO_C" >&6 7566else 7567 ac_check_lib_save_LIBS=$LIBS 7568LIBS="-lpthread $LIBS" 7569cat >conftest.$ac_ext <<_ACEOF 7570/* confdefs.h. */ 7571_ACEOF 7572cat confdefs.h >>conftest.$ac_ext 7573cat >>conftest.$ac_ext <<_ACEOF 7574/* end confdefs.h. */ 7575 7576/* Override any GCC internal prototype to avoid an error. 7577 Use char because int might match the return type of a GCC 7578 builtin and then its argument prototype would still apply. */ 7579#ifdef __cplusplus 7580extern "C" 7581#endif 7582char pthread_mutex_init (); 7583int 7584main () 7585{ 7586return pthread_mutex_init (); 7587 ; 7588 return 0; 7589} 7590_ACEOF 7591rm -f conftest.$ac_objext conftest$ac_exeext 7592if { (ac_try="$ac_link" 7593case "(($ac_try" in 7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7595 *) ac_try_echo=$ac_try;; 7596esac 7597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7598 (eval "$ac_link") 2>conftest.er1 7599 ac_status=$? 7600 grep -v '^ *+' conftest.er1 >conftest.err 7601 rm -f conftest.er1 7602 cat conftest.err >&5 7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7604 (exit $ac_status); } && { 7605 test -z "$ac_c_werror_flag" || 7606 test ! -s conftest.err 7607 } && test -s conftest$ac_exeext && 7608 $as_test_x conftest$ac_exeext; then 7609 ac_cv_lib_pthread_pthread_mutex_init=yes 7610else 7611 echo "$as_me: failed program was:" >&5 7612sed 's/^/| /' conftest.$ac_ext >&5 7613 7614 ac_cv_lib_pthread_pthread_mutex_init=no 7615fi 7616 7617rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7618 conftest$ac_exeext conftest.$ac_ext 7619LIBS=$ac_check_lib_save_LIBS 7620fi 7621{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7622echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7623if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7624 tcl_ok=yes 7625else 7626 tcl_ok=no 7627fi 7628 7629 if test "$tcl_ok" = "no"; then 7630 # Check a little harder for __pthread_mutex_init in the same 7631 # library, as some systems hide it there until pthread.h is 7632 # defined. We could alternatively do an AC_TRY_COMPILE with 7633 # pthread.h, but that will work with libpthread really doesn't 7634 # exist, like AIX 4.2. [Bug: 4359] 7635 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7636echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7637if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7638 echo $ECHO_N "(cached) $ECHO_C" >&6 7639else 7640 ac_check_lib_save_LIBS=$LIBS 7641LIBS="-lpthread $LIBS" 7642cat >conftest.$ac_ext <<_ACEOF 7643/* confdefs.h. */ 7644_ACEOF 7645cat confdefs.h >>conftest.$ac_ext 7646cat >>conftest.$ac_ext <<_ACEOF 7647/* end confdefs.h. */ 7648 7649/* Override any GCC internal prototype to avoid an error. 7650 Use char because int might match the return type of a GCC 7651 builtin and then its argument prototype would still apply. */ 7652#ifdef __cplusplus 7653extern "C" 7654#endif 7655char __pthread_mutex_init (); 7656int 7657main () 7658{ 7659return __pthread_mutex_init (); 7660 ; 7661 return 0; 7662} 7663_ACEOF 7664rm -f conftest.$ac_objext conftest$ac_exeext 7665if { (ac_try="$ac_link" 7666case "(($ac_try" in 7667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7668 *) ac_try_echo=$ac_try;; 7669esac 7670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7671 (eval "$ac_link") 2>conftest.er1 7672 ac_status=$? 7673 grep -v '^ *+' conftest.er1 >conftest.err 7674 rm -f conftest.er1 7675 cat conftest.err >&5 7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7677 (exit $ac_status); } && { 7678 test -z "$ac_c_werror_flag" || 7679 test ! -s conftest.err 7680 } && test -s conftest$ac_exeext && 7681 $as_test_x conftest$ac_exeext; then 7682 ac_cv_lib_pthread___pthread_mutex_init=yes 7683else 7684 echo "$as_me: failed program was:" >&5 7685sed 's/^/| /' conftest.$ac_ext >&5 7686 7687 ac_cv_lib_pthread___pthread_mutex_init=no 7688fi 7689 7690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7691 conftest$ac_exeext conftest.$ac_ext 7692LIBS=$ac_check_lib_save_LIBS 7693fi 7694{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7695echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7696if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7697 tcl_ok=yes 7698else 7699 tcl_ok=no 7700fi 7701 7702 fi 7703 7704 if test "$tcl_ok" = "yes"; then 7705 # The space is needed 7706 THREADS_LIBS=" -lpthread" 7707 else 7708 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7709echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7710if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7711 echo $ECHO_N "(cached) $ECHO_C" >&6 7712else 7713 ac_check_lib_save_LIBS=$LIBS 7714LIBS="-lpthreads $LIBS" 7715cat >conftest.$ac_ext <<_ACEOF 7716/* confdefs.h. */ 7717_ACEOF 7718cat confdefs.h >>conftest.$ac_ext 7719cat >>conftest.$ac_ext <<_ACEOF 7720/* end confdefs.h. */ 7721 7722/* Override any GCC internal prototype to avoid an error. 7723 Use char because int might match the return type of a GCC 7724 builtin and then its argument prototype would still apply. */ 7725#ifdef __cplusplus 7726extern "C" 7727#endif 7728char pthread_mutex_init (); 7729int 7730main () 7731{ 7732return pthread_mutex_init (); 7733 ; 7734 return 0; 7735} 7736_ACEOF 7737rm -f conftest.$ac_objext conftest$ac_exeext 7738if { (ac_try="$ac_link" 7739case "(($ac_try" in 7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7741 *) ac_try_echo=$ac_try;; 7742esac 7743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7744 (eval "$ac_link") 2>conftest.er1 7745 ac_status=$? 7746 grep -v '^ *+' conftest.er1 >conftest.err 7747 rm -f conftest.er1 7748 cat conftest.err >&5 7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7750 (exit $ac_status); } && { 7751 test -z "$ac_c_werror_flag" || 7752 test ! -s conftest.err 7753 } && test -s conftest$ac_exeext && 7754 $as_test_x conftest$ac_exeext; then 7755 ac_cv_lib_pthreads_pthread_mutex_init=yes 7756else 7757 echo "$as_me: failed program was:" >&5 7758sed 's/^/| /' conftest.$ac_ext >&5 7759 7760 ac_cv_lib_pthreads_pthread_mutex_init=no 7761fi 7762 7763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7764 conftest$ac_exeext conftest.$ac_ext 7765LIBS=$ac_check_lib_save_LIBS 7766fi 7767{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7768echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7769if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7770 tcl_ok=yes 7771else 7772 tcl_ok=no 7773fi 7774 7775 if test "$tcl_ok" = "yes"; then 7776 # The space is needed 7777 THREADS_LIBS=" -lpthreads" 7778 else 7779 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7780echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7781if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7782 echo $ECHO_N "(cached) $ECHO_C" >&6 7783else 7784 ac_check_lib_save_LIBS=$LIBS 7785LIBS="-lc $LIBS" 7786cat >conftest.$ac_ext <<_ACEOF 7787/* confdefs.h. */ 7788_ACEOF 7789cat confdefs.h >>conftest.$ac_ext 7790cat >>conftest.$ac_ext <<_ACEOF 7791/* end confdefs.h. */ 7792 7793/* Override any GCC internal prototype to avoid an error. 7794 Use char because int might match the return type of a GCC 7795 builtin and then its argument prototype would still apply. */ 7796#ifdef __cplusplus 7797extern "C" 7798#endif 7799char pthread_mutex_init (); 7800int 7801main () 7802{ 7803return pthread_mutex_init (); 7804 ; 7805 return 0; 7806} 7807_ACEOF 7808rm -f conftest.$ac_objext conftest$ac_exeext 7809if { (ac_try="$ac_link" 7810case "(($ac_try" in 7811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7812 *) ac_try_echo=$ac_try;; 7813esac 7814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7815 (eval "$ac_link") 2>conftest.er1 7816 ac_status=$? 7817 grep -v '^ *+' conftest.er1 >conftest.err 7818 rm -f conftest.er1 7819 cat conftest.err >&5 7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7821 (exit $ac_status); } && { 7822 test -z "$ac_c_werror_flag" || 7823 test ! -s conftest.err 7824 } && test -s conftest$ac_exeext && 7825 $as_test_x conftest$ac_exeext; then 7826 ac_cv_lib_c_pthread_mutex_init=yes 7827else 7828 echo "$as_me: failed program was:" >&5 7829sed 's/^/| /' conftest.$ac_ext >&5 7830 7831 ac_cv_lib_c_pthread_mutex_init=no 7832fi 7833 7834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7835 conftest$ac_exeext conftest.$ac_ext 7836LIBS=$ac_check_lib_save_LIBS 7837fi 7838{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7839echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7840if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7841 tcl_ok=yes 7842else 7843 tcl_ok=no 7844fi 7845 7846 if test "$tcl_ok" = "no"; then 7847 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7848echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7849if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7850 echo $ECHO_N "(cached) $ECHO_C" >&6 7851else 7852 ac_check_lib_save_LIBS=$LIBS 7853LIBS="-lc_r $LIBS" 7854cat >conftest.$ac_ext <<_ACEOF 7855/* confdefs.h. */ 7856_ACEOF 7857cat confdefs.h >>conftest.$ac_ext 7858cat >>conftest.$ac_ext <<_ACEOF 7859/* end confdefs.h. */ 7860 7861/* Override any GCC internal prototype to avoid an error. 7862 Use char because int might match the return type of a GCC 7863 builtin and then its argument prototype would still apply. */ 7864#ifdef __cplusplus 7865extern "C" 7866#endif 7867char pthread_mutex_init (); 7868int 7869main () 7870{ 7871return pthread_mutex_init (); 7872 ; 7873 return 0; 7874} 7875_ACEOF 7876rm -f conftest.$ac_objext conftest$ac_exeext 7877if { (ac_try="$ac_link" 7878case "(($ac_try" in 7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7880 *) ac_try_echo=$ac_try;; 7881esac 7882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7883 (eval "$ac_link") 2>conftest.er1 7884 ac_status=$? 7885 grep -v '^ *+' conftest.er1 >conftest.err 7886 rm -f conftest.er1 7887 cat conftest.err >&5 7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7889 (exit $ac_status); } && { 7890 test -z "$ac_c_werror_flag" || 7891 test ! -s conftest.err 7892 } && test -s conftest$ac_exeext && 7893 $as_test_x conftest$ac_exeext; then 7894 ac_cv_lib_c_r_pthread_mutex_init=yes 7895else 7896 echo "$as_me: failed program was:" >&5 7897sed 's/^/| /' conftest.$ac_ext >&5 7898 7899 ac_cv_lib_c_r_pthread_mutex_init=no 7900fi 7901 7902rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7903 conftest$ac_exeext conftest.$ac_ext 7904LIBS=$ac_check_lib_save_LIBS 7905fi 7906{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7907echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7908if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7909 tcl_ok=yes 7910else 7911 tcl_ok=no 7912fi 7913 7914 if test "$tcl_ok" = "yes"; then 7915 # The space is needed 7916 THREADS_LIBS=" -pthread" 7917 else 7918 TCL_THREADS=0 7919 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7920echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7921 fi 7922 fi 7923 fi 7924 fi 7925 fi 7926 else 7927 TCL_THREADS=0 7928 fi 7929 # Do checking message here to not mess up interleaved configure output 7930 { echo "$as_me:$LINENO: checking for building with threads" >&5 7931echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7932 if test "${TCL_THREADS}" = 1; then 7933 7934cat >>confdefs.h <<\_ACEOF 7935#define TCL_THREADS 1 7936_ACEOF 7937 7938 { echo "$as_me:$LINENO: result: yes (default)" >&5 7939echo "${ECHO_T}yes (default)" >&6; } 7940 else 7941 { echo "$as_me:$LINENO: result: no" >&5 7942echo "${ECHO_T}no" >&6; } 7943 fi 7944 # TCL_THREADS sanity checking. See if our request for building with 7945 # threads is the same as the way Tcl was built. If not, warn the user. 7946 case ${TCL_DEFS} in 7947 *THREADS=1*) 7948 if test "${TCL_THREADS}" = "0"; then 7949 { echo "$as_me:$LINENO: WARNING: 7950 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7951 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7952echo "$as_me: WARNING: 7953 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7954 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7955 fi 7956 ;; 7957 *) 7958 if test "${TCL_THREADS}" = "1"; then 7959 { echo "$as_me:$LINENO: WARNING: 7960 --enable-threads requested, but building against a Tcl that is NOT 7961 thread-enabled. This is an OK configuration that will also run in 7962 a thread-enabled core." >&5 7963echo "$as_me: WARNING: 7964 --enable-threads requested, but building against a Tcl that is NOT 7965 thread-enabled. This is an OK configuration that will also run in 7966 a thread-enabled core." >&2;} 7967 fi 7968 ;; 7969 esac 7970 7971 7972 7973#-------------------------------------------------------------------- 7974# The statement below defines a collection of symbols related to 7975# building as a shared library instead of a static library. 7976#-------------------------------------------------------------------- 7977 7978 7979 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7980echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7981 # Check whether --enable-shared was given. 7982if test "${enable_shared+set}" = set; then 7983 enableval=$enable_shared; tcl_ok=$enableval 7984else 7985 tcl_ok=yes 7986fi 7987 7988 7989 if test "${enable_shared+set}" = set; then 7990 enableval="$enable_shared" 7991 tcl_ok=$enableval 7992 else 7993 tcl_ok=yes 7994 fi 7995 7996 if test "$tcl_ok" = "yes" ; then 7997 { echo "$as_me:$LINENO: result: shared" >&5 7998echo "${ECHO_T}shared" >&6; } 7999 SHARED_BUILD=1 8000 else 8001 { echo "$as_me:$LINENO: result: static" >&5 8002echo "${ECHO_T}static" >&6; } 8003 SHARED_BUILD=0 8004 8005cat >>confdefs.h <<\_ACEOF 8006#define STATIC_BUILD 1 8007_ACEOF 8008 8009 fi 8010 8011 8012 8013#-------------------------------------------------------------------- 8014# This macro figures out what flags to use with the compiler/linker 8015# when building shared/static debug/optimized objects. This information 8016# can be taken from the tclConfig.sh file, but this figures it all out. 8017#-------------------------------------------------------------------- 8018 8019 8020 8021 8022 # Step 0.a: Enable 64 bit support? 8023 8024 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 8025echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 8026 # Check whether --enable-64bit was given. 8027if test "${enable_64bit+set}" = set; then 8028 enableval=$enable_64bit; do64bit=$enableval 8029else 8030 do64bit=no 8031fi 8032 8033 { echo "$as_me:$LINENO: result: $do64bit" >&5 8034echo "${ECHO_T}$do64bit" >&6; } 8035 8036 # Step 0.b: Enable Solaris 64 bit VIS support? 8037 8038 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 8039echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 8040 # Check whether --enable-64bit-vis was given. 8041if test "${enable_64bit_vis+set}" = set; then 8042 enableval=$enable_64bit_vis; do64bitVIS=$enableval 8043else 8044 do64bitVIS=no 8045fi 8046 8047 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 8048echo "${ECHO_T}$do64bitVIS" >&6; } 8049 # Force 64bit on with VIS 8050 if test "$do64bitVIS" = "yes"; then 8051 do64bit=yes 8052fi 8053 8054 8055 # Step 0.c: Check if visibility support is available. Do this here so 8056 # that platform specific alternatives can be used below if this fails. 8057 8058 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 8059echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 8060if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 8061 echo $ECHO_N "(cached) $ECHO_C" >&6 8062else 8063 8064 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 8065 cat >conftest.$ac_ext <<_ACEOF 8066/* confdefs.h. */ 8067_ACEOF 8068cat confdefs.h >>conftest.$ac_ext 8069cat >>conftest.$ac_ext <<_ACEOF 8070/* end confdefs.h. */ 8071 8072 extern __attribute__((__visibility__("hidden"))) void f(void); 8073 void f(void) {} 8074int 8075main () 8076{ 8077f(); 8078 ; 8079 return 0; 8080} 8081_ACEOF 8082rm -f conftest.$ac_objext conftest$ac_exeext 8083if { (ac_try="$ac_link" 8084case "(($ac_try" in 8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8086 *) ac_try_echo=$ac_try;; 8087esac 8088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8089 (eval "$ac_link") 2>conftest.er1 8090 ac_status=$? 8091 grep -v '^ *+' conftest.er1 >conftest.err 8092 rm -f conftest.er1 8093 cat conftest.err >&5 8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8095 (exit $ac_status); } && { 8096 test -z "$ac_c_werror_flag" || 8097 test ! -s conftest.err 8098 } && test -s conftest$ac_exeext && 8099 $as_test_x conftest$ac_exeext; then 8100 tcl_cv_cc_visibility_hidden=yes 8101else 8102 echo "$as_me: failed program was:" >&5 8103sed 's/^/| /' conftest.$ac_ext >&5 8104 8105 tcl_cv_cc_visibility_hidden=no 8106fi 8107 8108rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8109 conftest$ac_exeext conftest.$ac_ext 8110 CFLAGS=$hold_cflags 8111fi 8112{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 8113echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 8114 if test $tcl_cv_cc_visibility_hidden = yes; then 8115 8116 8117cat >>confdefs.h <<\_ACEOF 8118#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 8119_ACEOF 8120 8121 8122fi 8123 8124 8125 # Step 0.d: Disable -rpath support? 8126 8127 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 8128echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 8129 # Check whether --enable-rpath was given. 8130if test "${enable_rpath+set}" = set; then 8131 enableval=$enable_rpath; doRpath=$enableval 8132else 8133 doRpath=yes 8134fi 8135 8136 { echo "$as_me:$LINENO: result: $doRpath" >&5 8137echo "${ECHO_T}$doRpath" >&6; } 8138 8139 # TEA specific: Cross-compiling options for Windows/CE builds? 8140 8141 if test "${TEA_PLATFORM}" = windows; then 8142 8143 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 8144echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 8145 # Check whether --enable-wince was given. 8146if test "${enable_wince+set}" = set; then 8147 enableval=$enable_wince; doWince=$enableval 8148else 8149 doWince=no 8150fi 8151 8152 { echo "$as_me:$LINENO: result: $doWince" >&5 8153echo "${ECHO_T}$doWince" >&6; } 8154 8155fi 8156 8157 8158 # Set the variable "system" to hold the name and version number 8159 # for the system. 8160 8161 8162 { echo "$as_me:$LINENO: checking system version" >&5 8163echo $ECHO_N "checking system version... $ECHO_C" >&6; } 8164if test "${tcl_cv_sys_version+set}" = set; then 8165 echo $ECHO_N "(cached) $ECHO_C" >&6 8166else 8167 8168 # TEA specific: 8169 if test "${TEA_PLATFORM}" = "windows" ; then 8170 tcl_cv_sys_version=windows 8171 else 8172 tcl_cv_sys_version=`uname -s`-`uname -r` 8173 if test "$?" -ne 0 ; then 8174 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 8175echo "$as_me: WARNING: can't find uname command" >&2;} 8176 tcl_cv_sys_version=unknown 8177 else 8178 if test "`uname -s`" = "AIX" ; then 8179 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 8180 fi 8181 fi 8182 fi 8183 8184fi 8185{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 8186echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 8187 system=$tcl_cv_sys_version 8188 8189 8190 # Require ranlib early so we can override it in special cases below. 8191 8192 8193 8194 # Set configuration options based on system name and version. 8195 # This is similar to Tcl's unix/tcl.m4 except that we've added a 8196 # "windows" case and removed some core-only vars. 8197 8198 do64bit_ok=no 8199 # default to '{$LIBS}' and set to "" on per-platform necessary basis 8200 SHLIB_LD_LIBS='${LIBS}' 8201 # When ld needs options to work in 64-bit mode, put them in 8202 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 8203 # is disabled by the user. [Bug 1016796] 8204 LDFLAGS_ARCH="" 8205 UNSHARED_LIB_SUFFIX="" 8206 # TEA specific: use PACKAGE_VERSION instead of VERSION 8207 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 8208 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 8209 TCL_LIB_VERSIONS_OK=ok 8210 CFLAGS_DEBUG=-g 8211 CFLAGS_OPTIMIZE=-O 8212 if test "$GCC" = yes; then 8213 8214 # TEA specific: 8215 CFLAGS_OPTIMIZE=-O2 8216 CFLAGS_WARNING="-Wall" 8217 8218else 8219 CFLAGS_WARNING="" 8220fi 8221 8222 # Extract the first word of "ar", so it can be a program name with args. 8223set dummy ar; ac_word=$2 8224{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8226if test "${ac_cv_prog_AR+set}" = set; then 8227 echo $ECHO_N "(cached) $ECHO_C" >&6 8228else 8229 if test -n "$AR"; then 8230 ac_cv_prog_AR="$AR" # Let the user override the test. 8231else 8232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8233for as_dir in $PATH 8234do 8235 IFS=$as_save_IFS 8236 test -z "$as_dir" && as_dir=. 8237 for ac_exec_ext in '' $ac_executable_extensions; do 8238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8239 ac_cv_prog_AR="ar" 8240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8241 break 2 8242 fi 8243done 8244done 8245IFS=$as_save_IFS 8246 8247fi 8248fi 8249AR=$ac_cv_prog_AR 8250if test -n "$AR"; then 8251 { echo "$as_me:$LINENO: result: $AR" >&5 8252echo "${ECHO_T}$AR" >&6; } 8253else 8254 { echo "$as_me:$LINENO: result: no" >&5 8255echo "${ECHO_T}no" >&6; } 8256fi 8257 8258 8259 STLIB_LD='${AR} cr' 8260 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 8261 if test "x$SHLIB_VERSION" = x; then 8262 SHLIB_VERSION="1.0" 8263fi 8264 8265 case $system in 8266 # TEA specific: 8267 windows) 8268 # This is a 2-stage check to make sure we have the 64-bit SDK 8269 # We have to know where the SDK is installed. 8270 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 8271 # MACHINE is IX86 for LINK, but this is used by the manifest, 8272 # which requires x86|amd64|ia64. 8273 MACHINE="X86" 8274 if test "$do64bit" != "no" ; then 8275 if test "x${MSSDK}x" = "xx" ; then 8276 MSSDK="C:/Progra~1/Microsoft Platform SDK" 8277 fi 8278 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 8279 PATH64="" 8280 case "$do64bit" in 8281 amd64|x64|yes) 8282 MACHINE="AMD64" ; # default to AMD64 64-bit build 8283 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 8284 ;; 8285 ia64) 8286 MACHINE="IA64" 8287 PATH64="${MSSDK}/Bin/Win64" 8288 ;; 8289 esac 8290 if test ! -d "${PATH64}" ; then 8291 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 8292echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 8293 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 8294echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 8295 do64bit="no" 8296 else 8297 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 8298echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 8299 do64bit_ok="yes" 8300 fi 8301 fi 8302 8303 if test "$doWince" != "no" ; then 8304 if test "$do64bit" != "no" ; then 8305 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 8306echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 8307 { (exit 1); exit 1; }; } 8308 fi 8309 if test "$GCC" = "yes" ; then 8310 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 8311echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 8312 { (exit 1); exit 1; }; } 8313 fi 8314 8315 # First, look for one uninstalled. 8316 # the alternative search directory is invoked by --with-celib 8317 8318 if test x"${no_celib}" = x ; then 8319 # we reset no_celib in case something fails here 8320 no_celib=true 8321 8322# Check whether --with-celib was given. 8323if test "${with_celib+set}" = set; then 8324 withval=$with_celib; with_celibconfig=${withval} 8325fi 8326 8327 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 8328echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 8329 if test "${ac_cv_c_celibconfig+set}" = set; then 8330 echo $ECHO_N "(cached) $ECHO_C" >&6 8331else 8332 8333 # First check to see if --with-celibconfig was specified. 8334 if test x"${with_celibconfig}" != x ; then 8335 if test -d "${with_celibconfig}/inc" ; then 8336 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 8337 else 8338 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 8339echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 8340 { (exit 1); exit 1; }; } 8341 fi 8342 fi 8343 8344 # then check for a celib library 8345 if test x"${ac_cv_c_celibconfig}" = x ; then 8346 for i in \ 8347 ../celib-palm-3.0 \ 8348 ../celib \ 8349 ../../celib-palm-3.0 \ 8350 ../../celib \ 8351 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 8352 ${srcdir}/../celib-palm-3.0 \ 8353 ${srcdir}/../celib \ 8354 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 8355 ; do 8356 if test -d "$i/inc" ; then 8357 ac_cv_c_celibconfig=`(cd $i; pwd)` 8358 break 8359 fi 8360 done 8361 fi 8362 8363fi 8364 8365 if test x"${ac_cv_c_celibconfig}" = x ; then 8366 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 8367echo "$as_me: error: Cannot find celib support library directory" >&2;} 8368 { (exit 1); exit 1; }; } 8369 else 8370 no_celib= 8371 CELIB_DIR=${ac_cv_c_celibconfig} 8372 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 8373 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 8374echo "${ECHO_T}found $CELIB_DIR" >&6; } 8375 fi 8376 fi 8377 8378 # Set defaults for common evc4/PPC2003 setup 8379 # Currently Tcl requires 300+, possibly 420+ for sockets 8380 CEVERSION=420; # could be 211 300 301 400 420 ... 8381 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 8382 ARCH=ARM; # could be ARM MIPS X86EM ... 8383 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 8384 if test "$doWince" != "yes"; then 8385 # If !yes then the user specified something 8386 # Reset ARCH to allow user to skip specifying it 8387 ARCH= 8388 eval `echo $doWince | awk -F, '{ \ 8389 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 8390 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 8391 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 8392 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 8393 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 8394 }'` 8395 if test "x${ARCH}" = "x" ; then 8396 ARCH=$TARGETCPU; 8397 fi 8398 fi 8399 OSVERSION=WCE$CEVERSION; 8400 if test "x${WCEROOT}" = "x" ; then 8401 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 8402 if test ! -d "${WCEROOT}" ; then 8403 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 8404 fi 8405 fi 8406 if test "x${SDKROOT}" = "x" ; then 8407 SDKROOT="C:/Program Files/Windows CE Tools" 8408 if test ! -d "${SDKROOT}" ; then 8409 SDKROOT="C:/Windows CE Tools" 8410 fi 8411 fi 8412 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 8413 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 8414 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 8415 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 8416 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 8417echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 8418 { (exit 1); exit 1; }; } 8419 doWince="no" 8420 else 8421 # We could PATH_NOSPACE these, but that's not important, 8422 # as long as we quote them when used. 8423 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 8424 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 8425 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 8426 fi 8427 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 8428 fi 8429 fi 8430 8431 if test "$GCC" != "yes" ; then 8432 if test "${SHARED_BUILD}" = "0" ; then 8433 runtime=-MT 8434 else 8435 runtime=-MD 8436 fi 8437 8438 if test "$do64bit" != "no" ; then 8439 # All this magic is necessary for the Win64 SDK RC1 - hobbs 8440 CC="\"${PATH64}/cl.exe\"" 8441 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 8442 RC="\"${MSSDK}/bin/rc.exe\"" 8443 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 8444 LINKBIN="\"${PATH64}/link.exe\"" 8445 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 8446 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8447 # Avoid 'unresolved external symbol __security_cookie' 8448 # errors, c.f. http://support.microsoft.com/?id=894573 8449 8450 vars="bufferoverflowU.lib" 8451 for i in $vars; do 8452 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 8453 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 8454 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 8455 fi 8456 PKG_LIBS="$PKG_LIBS $i" 8457 done 8458 8459 8460 elif test "$doWince" != "no" ; then 8461 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 8462 if test "${TARGETCPU}" = "X86"; then 8463 CC="\"${CEBINROOT}/cl.exe\"" 8464 else 8465 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 8466 fi 8467 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 8468 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 8469 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 8470 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 8471 if test "${SHARED_BUILD}" = "1" ; then 8472 # Static CE builds require static celib as well 8473 defs="${defs} _DLL" 8474 fi 8475 for i in $defs ; do 8476 8477cat >>confdefs.h <<_ACEOF 8478#define $i 1 8479_ACEOF 8480 8481 done 8482 8483cat >>confdefs.h <<_ACEOF 8484#define _WIN32_WCE $CEVERSION 8485_ACEOF 8486 8487 8488cat >>confdefs.h <<_ACEOF 8489#define UNDER_CE $CEVERSION 8490_ACEOF 8491 8492 CFLAGS_DEBUG="-nologo -Zi -Od" 8493 CFLAGS_OPTIMIZE="-nologo -Ox" 8494 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 8495 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 8496 LINKBIN="\"${CEBINROOT}/link.exe\"" 8497 8498 else 8499 RC="rc" 8500 lflags="-nologo" 8501 LINKBIN="link" 8502 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 8503 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8504 fi 8505 fi 8506 8507 if test "$GCC" = "yes"; then 8508 # mingw gcc mode 8509 RC="windres" 8510 CFLAGS_DEBUG="-g" 8511 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8512 SHLIB_LD="$CC -shared" 8513 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8514 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 8515 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 8516 else 8517 SHLIB_LD="${LINKBIN} -dll ${lflags}" 8518 # link -lib only works when -lib is the first arg 8519 STLIB_LD="${LINKBIN} -lib ${lflags}" 8520 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 8521 PATHTYPE=-w 8522 # For information on what debugtype is most useful, see: 8523 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 8524 # and also 8525 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 8526 # This essentially turns it all on. 8527 LDFLAGS_DEBUG="-debug -debugtype:cv" 8528 LDFLAGS_OPTIMIZE="-release" 8529 if test "$doWince" != "no" ; then 8530 LDFLAGS_CONSOLE="-link ${lflags}" 8531 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 8532 else 8533 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 8534 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 8535 fi 8536 fi 8537 8538 SHLIB_SUFFIX=".dll" 8539 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 8540 8541 TCL_LIB_VERSIONS_OK=nodots 8542 ;; 8543 AIX-*) 8544 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 8545 8546 # AIX requires the _r compiler when gcc isn't being used 8547 case "${CC}" in 8548 *_r|*_r\ *) 8549 # ok ... 8550 ;; 8551 *) 8552 # Make sure only first arg gets _r 8553 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 8554 ;; 8555 esac 8556 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 8557echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 8558 8559fi 8560 8561 LIBS="$LIBS -lc" 8562 SHLIB_CFLAGS="" 8563 SHLIB_SUFFIX=".so" 8564 8565 LD_LIBRARY_PATH_VAR="LIBPATH" 8566 8567 # Check to enable 64-bit flags for compiler/linker 8568 if test "$do64bit" = yes; then 8569 8570 if test "$GCC" = yes; then 8571 8572 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8573echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8574 8575else 8576 8577 do64bit_ok=yes 8578 CFLAGS="$CFLAGS -q64" 8579 LDFLAGS_ARCH="-q64" 8580 RANLIB="${RANLIB} -X64" 8581 AR="${AR} -X64" 8582 SHLIB_LD_FLAGS="-b64" 8583 8584fi 8585 8586 8587fi 8588 8589 8590 if test "`uname -m`" = ia64; then 8591 8592 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8593 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8594 if test "$GCC" = yes; then 8595 8596 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8597 8598else 8599 8600 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8601 8602fi 8603 8604 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8605 8606else 8607 8608 if test "$GCC" = yes; then 8609 8610 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8611 8612else 8613 8614 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8615 LDFLAGS="$LDFLAGS -brtl" 8616 8617fi 8618 8619 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8620 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8621 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8622 8623fi 8624 8625 ;; 8626 BeOS*) 8627 SHLIB_CFLAGS="-fPIC" 8628 SHLIB_LD='${CC} -nostart' 8629 SHLIB_SUFFIX=".so" 8630 8631 #----------------------------------------------------------- 8632 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8633 # -lsocket, even if the network functions are in -lnet which 8634 # is always linked to, for compatibility. 8635 #----------------------------------------------------------- 8636 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8637echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8638if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8639 echo $ECHO_N "(cached) $ECHO_C" >&6 8640else 8641 ac_check_lib_save_LIBS=$LIBS 8642LIBS="-lbind $LIBS" 8643cat >conftest.$ac_ext <<_ACEOF 8644/* confdefs.h. */ 8645_ACEOF 8646cat confdefs.h >>conftest.$ac_ext 8647cat >>conftest.$ac_ext <<_ACEOF 8648/* end confdefs.h. */ 8649 8650/* Override any GCC internal prototype to avoid an error. 8651 Use char because int might match the return type of a GCC 8652 builtin and then its argument prototype would still apply. */ 8653#ifdef __cplusplus 8654extern "C" 8655#endif 8656char inet_ntoa (); 8657int 8658main () 8659{ 8660return inet_ntoa (); 8661 ; 8662 return 0; 8663} 8664_ACEOF 8665rm -f conftest.$ac_objext conftest$ac_exeext 8666if { (ac_try="$ac_link" 8667case "(($ac_try" in 8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8669 *) ac_try_echo=$ac_try;; 8670esac 8671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8672 (eval "$ac_link") 2>conftest.er1 8673 ac_status=$? 8674 grep -v '^ *+' conftest.er1 >conftest.err 8675 rm -f conftest.er1 8676 cat conftest.err >&5 8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8678 (exit $ac_status); } && { 8679 test -z "$ac_c_werror_flag" || 8680 test ! -s conftest.err 8681 } && test -s conftest$ac_exeext && 8682 $as_test_x conftest$ac_exeext; then 8683 ac_cv_lib_bind_inet_ntoa=yes 8684else 8685 echo "$as_me: failed program was:" >&5 8686sed 's/^/| /' conftest.$ac_ext >&5 8687 8688 ac_cv_lib_bind_inet_ntoa=no 8689fi 8690 8691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8692 conftest$ac_exeext conftest.$ac_ext 8693LIBS=$ac_check_lib_save_LIBS 8694fi 8695{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8696echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8697if test $ac_cv_lib_bind_inet_ntoa = yes; then 8698 LIBS="$LIBS -lbind -lsocket" 8699fi 8700 8701 ;; 8702 BSD/OS-4.*) 8703 SHLIB_CFLAGS="-export-dynamic -fPIC" 8704 SHLIB_LD='${CC} -shared' 8705 SHLIB_SUFFIX=".so" 8706 LDFLAGS="$LDFLAGS -export-dynamic" 8707 CC_SEARCH_FLAGS="" 8708 LD_SEARCH_FLAGS="" 8709 ;; 8710 CYGWIN_*) 8711 SHLIB_CFLAGS="" 8712 SHLIB_LD='${CC} -shared' 8713 SHLIB_SUFFIX=".dll" 8714 EXE_SUFFIX=".exe" 8715 CC_SEARCH_FLAGS="" 8716 LD_SEARCH_FLAGS="" 8717 ;; 8718 Haiku*) 8719 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8720 SHLIB_CFLAGS="-fPIC" 8721 SHLIB_SUFFIX=".so" 8722 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8723 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8724echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8725if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8726 echo $ECHO_N "(cached) $ECHO_C" >&6 8727else 8728 ac_check_lib_save_LIBS=$LIBS 8729LIBS="-lnetwork $LIBS" 8730cat >conftest.$ac_ext <<_ACEOF 8731/* confdefs.h. */ 8732_ACEOF 8733cat confdefs.h >>conftest.$ac_ext 8734cat >>conftest.$ac_ext <<_ACEOF 8735/* end confdefs.h. */ 8736 8737/* Override any GCC internal prototype to avoid an error. 8738 Use char because int might match the return type of a GCC 8739 builtin and then its argument prototype would still apply. */ 8740#ifdef __cplusplus 8741extern "C" 8742#endif 8743char inet_ntoa (); 8744int 8745main () 8746{ 8747return inet_ntoa (); 8748 ; 8749 return 0; 8750} 8751_ACEOF 8752rm -f conftest.$ac_objext conftest$ac_exeext 8753if { (ac_try="$ac_link" 8754case "(($ac_try" in 8755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8756 *) ac_try_echo=$ac_try;; 8757esac 8758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8759 (eval "$ac_link") 2>conftest.er1 8760 ac_status=$? 8761 grep -v '^ *+' conftest.er1 >conftest.err 8762 rm -f conftest.er1 8763 cat conftest.err >&5 8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8765 (exit $ac_status); } && { 8766 test -z "$ac_c_werror_flag" || 8767 test ! -s conftest.err 8768 } && test -s conftest$ac_exeext && 8769 $as_test_x conftest$ac_exeext; then 8770 ac_cv_lib_network_inet_ntoa=yes 8771else 8772 echo "$as_me: failed program was:" >&5 8773sed 's/^/| /' conftest.$ac_ext >&5 8774 8775 ac_cv_lib_network_inet_ntoa=no 8776fi 8777 8778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8779 conftest$ac_exeext conftest.$ac_ext 8780LIBS=$ac_check_lib_save_LIBS 8781fi 8782{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8783echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8784if test $ac_cv_lib_network_inet_ntoa = yes; then 8785 LIBS="$LIBS -lnetwork" 8786fi 8787 8788 ;; 8789 HP-UX-*.11.*) 8790 # Use updated header definitions where possible 8791 8792cat >>confdefs.h <<\_ACEOF 8793#define _XOPEN_SOURCE_EXTENDED 1 8794_ACEOF 8795 8796 # TEA specific: Needed by Tcl, but not most extensions 8797 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8798 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8799 8800 if test "`uname -m`" = ia64; then 8801 8802 SHLIB_SUFFIX=".so" 8803 # Use newer C++ library for C++ extensions 8804 #if test "$GCC" != "yes" ; then 8805 # CPPFLAGS="-AA" 8806 #fi 8807 8808else 8809 8810 SHLIB_SUFFIX=".sl" 8811 8812fi 8813 8814 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8815echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8816if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8817 echo $ECHO_N "(cached) $ECHO_C" >&6 8818else 8819 ac_check_lib_save_LIBS=$LIBS 8820LIBS="-ldld $LIBS" 8821cat >conftest.$ac_ext <<_ACEOF 8822/* confdefs.h. */ 8823_ACEOF 8824cat confdefs.h >>conftest.$ac_ext 8825cat >>conftest.$ac_ext <<_ACEOF 8826/* end confdefs.h. */ 8827 8828/* Override any GCC internal prototype to avoid an error. 8829 Use char because int might match the return type of a GCC 8830 builtin and then its argument prototype would still apply. */ 8831#ifdef __cplusplus 8832extern "C" 8833#endif 8834char shl_load (); 8835int 8836main () 8837{ 8838return shl_load (); 8839 ; 8840 return 0; 8841} 8842_ACEOF 8843rm -f conftest.$ac_objext conftest$ac_exeext 8844if { (ac_try="$ac_link" 8845case "(($ac_try" in 8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8847 *) ac_try_echo=$ac_try;; 8848esac 8849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8850 (eval "$ac_link") 2>conftest.er1 8851 ac_status=$? 8852 grep -v '^ *+' conftest.er1 >conftest.err 8853 rm -f conftest.er1 8854 cat conftest.err >&5 8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8856 (exit $ac_status); } && { 8857 test -z "$ac_c_werror_flag" || 8858 test ! -s conftest.err 8859 } && test -s conftest$ac_exeext && 8860 $as_test_x conftest$ac_exeext; then 8861 ac_cv_lib_dld_shl_load=yes 8862else 8863 echo "$as_me: failed program was:" >&5 8864sed 's/^/| /' conftest.$ac_ext >&5 8865 8866 ac_cv_lib_dld_shl_load=no 8867fi 8868 8869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8870 conftest$ac_exeext conftest.$ac_ext 8871LIBS=$ac_check_lib_save_LIBS 8872fi 8873{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8874echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8875if test $ac_cv_lib_dld_shl_load = yes; then 8876 tcl_ok=yes 8877else 8878 tcl_ok=no 8879fi 8880 8881 if test "$tcl_ok" = yes; then 8882 8883 LDFLAGS="$LDFLAGS -E" 8884 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8885 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8886 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8887 8888fi 8889 8890 if test "$GCC" = yes; then 8891 8892 SHLIB_LD='${CC} -shared' 8893 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8894 8895else 8896 8897 CFLAGS="$CFLAGS -z" 8898 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8899 #CFLAGS="$CFLAGS +DAportable" 8900 SHLIB_CFLAGS="+z" 8901 SHLIB_LD="ld -b" 8902 8903fi 8904 8905 8906 # Check to enable 64-bit flags for compiler/linker 8907 if test "$do64bit" = "yes"; then 8908 8909 if test "$GCC" = yes; then 8910 8911 case `${CC} -dumpmachine` in 8912 hppa64*) 8913 # 64-bit gcc in use. Fix flags for GNU ld. 8914 do64bit_ok=yes 8915 SHLIB_LD='${CC} -shared' 8916 if test $doRpath = yes; then 8917 8918 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8919fi 8920 8921 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8922 ;; 8923 *) 8924 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8925echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8926 ;; 8927 esac 8928 8929else 8930 8931 do64bit_ok=yes 8932 CFLAGS="$CFLAGS +DD64" 8933 LDFLAGS_ARCH="+DD64" 8934 8935fi 8936 8937 8938fi 8939 ;; 8940 IRIX-6.*) 8941 SHLIB_CFLAGS="" 8942 SHLIB_LD="ld -n32 -shared -rdata_shared" 8943 SHLIB_SUFFIX=".so" 8944 if test $doRpath = yes; then 8945 8946 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8947 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8948fi 8949 8950 if test "$GCC" = yes; then 8951 8952 CFLAGS="$CFLAGS -mabi=n32" 8953 LDFLAGS="$LDFLAGS -mabi=n32" 8954 8955else 8956 8957 case $system in 8958 IRIX-6.3) 8959 # Use to build 6.2 compatible binaries on 6.3. 8960 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8961 ;; 8962 *) 8963 CFLAGS="$CFLAGS -n32" 8964 ;; 8965 esac 8966 LDFLAGS="$LDFLAGS -n32" 8967 8968fi 8969 8970 ;; 8971 IRIX64-6.*) 8972 SHLIB_CFLAGS="" 8973 SHLIB_LD="ld -n32 -shared -rdata_shared" 8974 SHLIB_SUFFIX=".so" 8975 if test $doRpath = yes; then 8976 8977 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8978 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8979fi 8980 8981 8982 # Check to enable 64-bit flags for compiler/linker 8983 8984 if test "$do64bit" = yes; then 8985 8986 if test "$GCC" = yes; then 8987 8988 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8989echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8990 8991else 8992 8993 do64bit_ok=yes 8994 SHLIB_LD="ld -64 -shared -rdata_shared" 8995 CFLAGS="$CFLAGS -64" 8996 LDFLAGS_ARCH="-64" 8997 8998fi 8999 9000 9001fi 9002 9003 ;; 9004 Linux*) 9005 SHLIB_CFLAGS="-fPIC" 9006 SHLIB_SUFFIX=".so" 9007 9008 # TEA specific: 9009 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 9010 9011 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9012 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 9013 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9014 if test $doRpath = yes; then 9015 9016 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9017fi 9018 9019 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9020 if test "`uname -m`" = "alpha"; then 9021 CFLAGS="$CFLAGS -mieee" 9022fi 9023 9024 if test $do64bit = yes; then 9025 9026 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 9027echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 9028if test "${tcl_cv_cc_m64+set}" = set; then 9029 echo $ECHO_N "(cached) $ECHO_C" >&6 9030else 9031 9032 hold_cflags=$CFLAGS 9033 CFLAGS="$CFLAGS -m64" 9034 cat >conftest.$ac_ext <<_ACEOF 9035/* confdefs.h. */ 9036_ACEOF 9037cat confdefs.h >>conftest.$ac_ext 9038cat >>conftest.$ac_ext <<_ACEOF 9039/* end confdefs.h. */ 9040 9041int 9042main () 9043{ 9044 9045 ; 9046 return 0; 9047} 9048_ACEOF 9049rm -f conftest.$ac_objext conftest$ac_exeext 9050if { (ac_try="$ac_link" 9051case "(($ac_try" in 9052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9053 *) ac_try_echo=$ac_try;; 9054esac 9055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9056 (eval "$ac_link") 2>conftest.er1 9057 ac_status=$? 9058 grep -v '^ *+' conftest.er1 >conftest.err 9059 rm -f conftest.er1 9060 cat conftest.err >&5 9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9062 (exit $ac_status); } && { 9063 test -z "$ac_c_werror_flag" || 9064 test ! -s conftest.err 9065 } && test -s conftest$ac_exeext && 9066 $as_test_x conftest$ac_exeext; then 9067 tcl_cv_cc_m64=yes 9068else 9069 echo "$as_me: failed program was:" >&5 9070sed 's/^/| /' conftest.$ac_ext >&5 9071 9072 tcl_cv_cc_m64=no 9073fi 9074 9075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9076 conftest$ac_exeext conftest.$ac_ext 9077 CFLAGS=$hold_cflags 9078fi 9079{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 9080echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 9081 if test $tcl_cv_cc_m64 = yes; then 9082 9083 CFLAGS="$CFLAGS -m64" 9084 do64bit_ok=yes 9085 9086fi 9087 9088 9089fi 9090 9091 9092 # The combo of gcc + glibc has a bug related to inlining of 9093 # functions like strtod(). The -fno-builtin flag should address 9094 # this problem but it does not work. The -fno-inline flag is kind 9095 # of overkill but it works. Disable inlining only when one of the 9096 # files in compat/*.c is being linked in. 9097 9098 if test x"${USE_COMPAT}" != x; then 9099 CFLAGS="$CFLAGS -fno-inline" 9100fi 9101 9102 9103 ;; 9104 GNU*) 9105 SHLIB_CFLAGS="-fPIC" 9106 SHLIB_SUFFIX=".so" 9107 9108 SHLIB_LD='${CC} -shared' 9109 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9110 CC_SEARCH_FLAGS="" 9111 LD_SEARCH_FLAGS="" 9112 if test "`uname -m`" = "alpha"; then 9113 CFLAGS="$CFLAGS -mieee" 9114fi 9115 9116 ;; 9117 Lynx*) 9118 SHLIB_CFLAGS="-fPIC" 9119 SHLIB_SUFFIX=".so" 9120 CFLAGS_OPTIMIZE=-02 9121 SHLIB_LD='${CC} -shared' 9122 LD_FLAGS="-Wl,--export-dynamic" 9123 if test $doRpath = yes; then 9124 9125 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9126 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9127fi 9128 9129 ;; 9130 OpenBSD-*) 9131 SHLIB_CFLAGS="-fPIC" 9132 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 9133 SHLIB_SUFFIX=".so" 9134 if test $doRpath = yes; then 9135 9136 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9137fi 9138 9139 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9140 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 9141 { echo "$as_me:$LINENO: checking for ELF" >&5 9142echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 9143if test "${tcl_cv_ld_elf+set}" = set; then 9144 echo $ECHO_N "(cached) $ECHO_C" >&6 9145else 9146 9147 cat >conftest.$ac_ext <<_ACEOF 9148/* confdefs.h. */ 9149_ACEOF 9150cat confdefs.h >>conftest.$ac_ext 9151cat >>conftest.$ac_ext <<_ACEOF 9152/* end confdefs.h. */ 9153 9154#ifdef __ELF__ 9155 yes 9156#endif 9157 9158_ACEOF 9159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9160 $EGREP "yes" >/dev/null 2>&1; then 9161 tcl_cv_ld_elf=yes 9162else 9163 tcl_cv_ld_elf=no 9164fi 9165rm -f -r conftest* 9166 9167fi 9168{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 9169echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 9170 if test $tcl_cv_ld_elf = yes; then 9171 9172 LDFLAGS=-Wl,-export-dynamic 9173 9174else 9175 LDFLAGS="" 9176fi 9177 9178 if test "${TCL_THREADS}" = "1"; then 9179 9180 # OpenBSD builds and links with -pthread, never -lpthread. 9181 LIBS=`echo $LIBS | sed s/-lpthread//` 9182 CFLAGS="$CFLAGS -pthread" 9183 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 9184 9185fi 9186 9187 # OpenBSD doesn't do version numbers with dots. 9188 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9189 TCL_LIB_VERSIONS_OK=nodots 9190 ;; 9191 NetBSD-*|FreeBSD-[3-4].*) 9192 # FreeBSD 3.* and greater have ELF. 9193 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 9194 SHLIB_CFLAGS="-fPIC" 9195 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 9196 SHLIB_SUFFIX=".so" 9197 LDFLAGS="$LDFLAGS -export-dynamic" 9198 if test $doRpath = yes; then 9199 9200 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9201fi 9202 9203 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9204 if test "${TCL_THREADS}" = "1"; then 9205 9206 # The -pthread needs to go in the CFLAGS, not LIBS 9207 LIBS=`echo $LIBS | sed s/-pthread//` 9208 CFLAGS="$CFLAGS -pthread" 9209 LDFLAGS="$LDFLAGS -pthread" 9210 9211fi 9212 9213 case $system in 9214 FreeBSD-3.*) 9215 # FreeBSD-3 doesn't handle version numbers with dots. 9216 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9217 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 9218 TCL_LIB_VERSIONS_OK=nodots 9219 ;; 9220 esac 9221 ;; 9222 FreeBSD-*) 9223 # This configuration from FreeBSD Ports. 9224 SHLIB_CFLAGS="-fPIC" 9225 SHLIB_LD="${CC} -shared" 9226 TCL_SHLIB_LD_EXTRAS="-soname \$@" 9227 SHLIB_SUFFIX=".so" 9228 LDFLAGS="" 9229 if test $doRpath = yes; then 9230 9231 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9232 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9233fi 9234 9235 if test "${TCL_THREADS}" = "1"; then 9236 9237 # The -pthread needs to go in the LDFLAGS, not LIBS 9238 LIBS=`echo $LIBS | sed s/-pthread//` 9239 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9240 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 9241fi 9242 9243 # Version numbers are dot-stripped by system policy. 9244 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 9245 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9246 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 9247 TCL_LIB_VERSIONS_OK=nodots 9248 ;; 9249 Darwin-*) 9250 CFLAGS_OPTIMIZE="-Os" 9251 SHLIB_CFLAGS="-fno-common" 9252 # To avoid discrepancies between what headers configure sees during 9253 # preprocessing tests and compiling tests, move any -isysroot and 9254 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 9255 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 9256 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 9257 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 9258 CFLAGS="`echo " ${CFLAGS}" | \ 9259 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 9260 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 9261 if test $do64bit = yes; then 9262 9263 case `arch` in 9264 ppc) 9265 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 9266echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 9267if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 9268 echo $ECHO_N "(cached) $ECHO_C" >&6 9269else 9270 9271 hold_cflags=$CFLAGS 9272 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9273 cat >conftest.$ac_ext <<_ACEOF 9274/* confdefs.h. */ 9275_ACEOF 9276cat confdefs.h >>conftest.$ac_ext 9277cat >>conftest.$ac_ext <<_ACEOF 9278/* end confdefs.h. */ 9279 9280int 9281main () 9282{ 9283 9284 ; 9285 return 0; 9286} 9287_ACEOF 9288rm -f conftest.$ac_objext conftest$ac_exeext 9289if { (ac_try="$ac_link" 9290case "(($ac_try" in 9291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9292 *) ac_try_echo=$ac_try;; 9293esac 9294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9295 (eval "$ac_link") 2>conftest.er1 9296 ac_status=$? 9297 grep -v '^ *+' conftest.er1 >conftest.err 9298 rm -f conftest.er1 9299 cat conftest.err >&5 9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9301 (exit $ac_status); } && { 9302 test -z "$ac_c_werror_flag" || 9303 test ! -s conftest.err 9304 } && test -s conftest$ac_exeext && 9305 $as_test_x conftest$ac_exeext; then 9306 tcl_cv_cc_arch_ppc64=yes 9307else 9308 echo "$as_me: failed program was:" >&5 9309sed 's/^/| /' conftest.$ac_ext >&5 9310 9311 tcl_cv_cc_arch_ppc64=no 9312fi 9313 9314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9315 conftest$ac_exeext conftest.$ac_ext 9316 CFLAGS=$hold_cflags 9317fi 9318{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 9319echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 9320 if test $tcl_cv_cc_arch_ppc64 = yes; then 9321 9322 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9323 do64bit_ok=yes 9324 9325fi 9326;; 9327 i386) 9328 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 9329echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 9330if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 9331 echo $ECHO_N "(cached) $ECHO_C" >&6 9332else 9333 9334 hold_cflags=$CFLAGS 9335 CFLAGS="$CFLAGS -arch x86_64" 9336 cat >conftest.$ac_ext <<_ACEOF 9337/* confdefs.h. */ 9338_ACEOF 9339cat confdefs.h >>conftest.$ac_ext 9340cat >>conftest.$ac_ext <<_ACEOF 9341/* end confdefs.h. */ 9342 9343int 9344main () 9345{ 9346 9347 ; 9348 return 0; 9349} 9350_ACEOF 9351rm -f conftest.$ac_objext conftest$ac_exeext 9352if { (ac_try="$ac_link" 9353case "(($ac_try" in 9354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9355 *) ac_try_echo=$ac_try;; 9356esac 9357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9358 (eval "$ac_link") 2>conftest.er1 9359 ac_status=$? 9360 grep -v '^ *+' conftest.er1 >conftest.err 9361 rm -f conftest.er1 9362 cat conftest.err >&5 9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9364 (exit $ac_status); } && { 9365 test -z "$ac_c_werror_flag" || 9366 test ! -s conftest.err 9367 } && test -s conftest$ac_exeext && 9368 $as_test_x conftest$ac_exeext; then 9369 tcl_cv_cc_arch_x86_64=yes 9370else 9371 echo "$as_me: failed program was:" >&5 9372sed 's/^/| /' conftest.$ac_ext >&5 9373 9374 tcl_cv_cc_arch_x86_64=no 9375fi 9376 9377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9378 conftest$ac_exeext conftest.$ac_ext 9379 CFLAGS=$hold_cflags 9380fi 9381{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 9382echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 9383 if test $tcl_cv_cc_arch_x86_64 = yes; then 9384 9385 CFLAGS="$CFLAGS -arch x86_64" 9386 do64bit_ok=yes 9387 9388fi 9389;; 9390 *) 9391 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 9392echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 9393 esac 9394 9395else 9396 9397 # Check for combined 32-bit and 64-bit fat build 9398 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 9399 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 9400 9401 fat_32_64=yes 9402fi 9403 9404 9405fi 9406 9407 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9408 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 9409 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 9410echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 9411if test "${tcl_cv_ld_single_module+set}" = set; then 9412 echo $ECHO_N "(cached) $ECHO_C" >&6 9413else 9414 9415 hold_ldflags=$LDFLAGS 9416 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 9417 cat >conftest.$ac_ext <<_ACEOF 9418/* confdefs.h. */ 9419_ACEOF 9420cat confdefs.h >>conftest.$ac_ext 9421cat >>conftest.$ac_ext <<_ACEOF 9422/* end confdefs.h. */ 9423 9424int 9425main () 9426{ 9427int i; 9428 ; 9429 return 0; 9430} 9431_ACEOF 9432rm -f conftest.$ac_objext conftest$ac_exeext 9433if { (ac_try="$ac_link" 9434case "(($ac_try" in 9435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9436 *) ac_try_echo=$ac_try;; 9437esac 9438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9439 (eval "$ac_link") 2>conftest.er1 9440 ac_status=$? 9441 grep -v '^ *+' conftest.er1 >conftest.err 9442 rm -f conftest.er1 9443 cat conftest.err >&5 9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9445 (exit $ac_status); } && { 9446 test -z "$ac_c_werror_flag" || 9447 test ! -s conftest.err 9448 } && test -s conftest$ac_exeext && 9449 $as_test_x conftest$ac_exeext; then 9450 tcl_cv_ld_single_module=yes 9451else 9452 echo "$as_me: failed program was:" >&5 9453sed 's/^/| /' conftest.$ac_ext >&5 9454 9455 tcl_cv_ld_single_module=no 9456fi 9457 9458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9459 conftest$ac_exeext conftest.$ac_ext 9460 LDFLAGS=$hold_ldflags 9461fi 9462{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 9463echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 9464 if test $tcl_cv_ld_single_module = yes; then 9465 9466 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 9467 9468fi 9469 9470 # TEA specific: link shlib with current and compatiblity version flags 9471 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 9472 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 9473 SHLIB_SUFFIX=".dylib" 9474 # Don't use -prebind when building for Mac OS X 10.4 or later only: 9475 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 9476 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 9477 9478 LDFLAGS="$LDFLAGS -prebind" 9479fi 9480 9481 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 9482 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 9483echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 9484if test "${tcl_cv_ld_search_paths_first+set}" = set; then 9485 echo $ECHO_N "(cached) $ECHO_C" >&6 9486else 9487 9488 hold_ldflags=$LDFLAGS 9489 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9490 cat >conftest.$ac_ext <<_ACEOF 9491/* confdefs.h. */ 9492_ACEOF 9493cat confdefs.h >>conftest.$ac_ext 9494cat >>conftest.$ac_ext <<_ACEOF 9495/* end confdefs.h. */ 9496 9497int 9498main () 9499{ 9500int i; 9501 ; 9502 return 0; 9503} 9504_ACEOF 9505rm -f conftest.$ac_objext conftest$ac_exeext 9506if { (ac_try="$ac_link" 9507case "(($ac_try" in 9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9509 *) ac_try_echo=$ac_try;; 9510esac 9511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9512 (eval "$ac_link") 2>conftest.er1 9513 ac_status=$? 9514 grep -v '^ *+' conftest.er1 >conftest.err 9515 rm -f conftest.er1 9516 cat conftest.err >&5 9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9518 (exit $ac_status); } && { 9519 test -z "$ac_c_werror_flag" || 9520 test ! -s conftest.err 9521 } && test -s conftest$ac_exeext && 9522 $as_test_x conftest$ac_exeext; then 9523 tcl_cv_ld_search_paths_first=yes 9524else 9525 echo "$as_me: failed program was:" >&5 9526sed 's/^/| /' conftest.$ac_ext >&5 9527 9528 tcl_cv_ld_search_paths_first=no 9529fi 9530 9531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9532 conftest$ac_exeext conftest.$ac_ext 9533 LDFLAGS=$hold_ldflags 9534fi 9535{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9536echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 9537 if test $tcl_cv_ld_search_paths_first = yes; then 9538 9539 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9540 9541fi 9542 9543 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9544 9545 9546cat >>confdefs.h <<\_ACEOF 9547#define MODULE_SCOPE __private_extern__ 9548_ACEOF 9549 9550 tcl_cv_cc_visibility_hidden=yes 9551 9552fi 9553 9554 CC_SEARCH_FLAGS="" 9555 LD_SEARCH_FLAGS="" 9556 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9557 # TEA specific: for combined 32 & 64 bit fat builds of Tk 9558 # extensions, verify that 64-bit build is possible. 9559 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 9560 9561 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 9562 9563 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9564echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 9565if test "${tcl_cv_lib_x11_64+set}" = set; then 9566 echo $ECHO_N "(cached) $ECHO_C" >&6 9567else 9568 9569 for v in CFLAGS CPPFLAGS LDFLAGS; do 9570 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9571 done 9572 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9573 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9574 cat >conftest.$ac_ext <<_ACEOF 9575/* confdefs.h. */ 9576_ACEOF 9577cat confdefs.h >>conftest.$ac_ext 9578cat >>conftest.$ac_ext <<_ACEOF 9579/* end confdefs.h. */ 9580#include <X11/Xlib.h> 9581int 9582main () 9583{ 9584XrmInitialize(); 9585 ; 9586 return 0; 9587} 9588_ACEOF 9589rm -f conftest.$ac_objext conftest$ac_exeext 9590if { (ac_try="$ac_link" 9591case "(($ac_try" in 9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9593 *) ac_try_echo=$ac_try;; 9594esac 9595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9596 (eval "$ac_link") 2>conftest.er1 9597 ac_status=$? 9598 grep -v '^ *+' conftest.er1 >conftest.err 9599 rm -f conftest.er1 9600 cat conftest.err >&5 9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9602 (exit $ac_status); } && { 9603 test -z "$ac_c_werror_flag" || 9604 test ! -s conftest.err 9605 } && test -s conftest$ac_exeext && 9606 $as_test_x conftest$ac_exeext; then 9607 tcl_cv_lib_x11_64=yes 9608else 9609 echo "$as_me: failed program was:" >&5 9610sed 's/^/| /' conftest.$ac_ext >&5 9611 9612 tcl_cv_lib_x11_64=no 9613fi 9614 9615rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9616 conftest$ac_exeext conftest.$ac_ext 9617 for v in CFLAGS CPPFLAGS LDFLAGS; do 9618 eval $v'="$hold_'$v'"' 9619 done 9620fi 9621{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9622echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9623 9624fi 9625 9626 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9627 9628 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9629echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9630if test "${tcl_cv_lib_tk_64+set}" = set; then 9631 echo $ECHO_N "(cached) $ECHO_C" >&6 9632else 9633 9634 for v in CFLAGS CPPFLAGS LDFLAGS; do 9635 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9636 done 9637 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9638 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9639 cat >conftest.$ac_ext <<_ACEOF 9640/* confdefs.h. */ 9641_ACEOF 9642cat confdefs.h >>conftest.$ac_ext 9643cat >>conftest.$ac_ext <<_ACEOF 9644/* end confdefs.h. */ 9645#include <tk.h> 9646int 9647main () 9648{ 9649Tk_InitStubs(NULL, "", 0); 9650 ; 9651 return 0; 9652} 9653_ACEOF 9654rm -f conftest.$ac_objext conftest$ac_exeext 9655if { (ac_try="$ac_link" 9656case "(($ac_try" in 9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9658 *) ac_try_echo=$ac_try;; 9659esac 9660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9661 (eval "$ac_link") 2>conftest.er1 9662 ac_status=$? 9663 grep -v '^ *+' conftest.er1 >conftest.err 9664 rm -f conftest.er1 9665 cat conftest.err >&5 9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9667 (exit $ac_status); } && { 9668 test -z "$ac_c_werror_flag" || 9669 test ! -s conftest.err 9670 } && test -s conftest$ac_exeext && 9671 $as_test_x conftest$ac_exeext; then 9672 tcl_cv_lib_tk_64=yes 9673else 9674 echo "$as_me: failed program was:" >&5 9675sed 's/^/| /' conftest.$ac_ext >&5 9676 9677 tcl_cv_lib_tk_64=no 9678fi 9679 9680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9681 conftest$ac_exeext conftest.$ac_ext 9682 for v in CFLAGS CPPFLAGS LDFLAGS; do 9683 eval $v'="$hold_'$v'"' 9684 done 9685fi 9686{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9687echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9688 9689fi 9690 9691 # remove 64-bit arch flags from CFLAGS et al. if configuration 9692 # does not support 64-bit. 9693 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9694 9695 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9696echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9697 for v in CFLAGS CPPFLAGS LDFLAGS; do 9698 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9699 done 9700fi 9701 9702 9703fi 9704 9705 ;; 9706 OS/390-*) 9707 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9708 9709cat >>confdefs.h <<\_ACEOF 9710#define _OE_SOCKETS 1 9711_ACEOF 9712 9713 ;; 9714 OSF1-V*) 9715 # Digital OSF/1 9716 SHLIB_CFLAGS="" 9717 if test "$SHARED_BUILD" = 1; then 9718 9719 SHLIB_LD='ld -shared -expect_unresolved "*"' 9720 9721else 9722 9723 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9724 9725fi 9726 9727 SHLIB_SUFFIX=".so" 9728 if test $doRpath = yes; then 9729 9730 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9731 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9732fi 9733 9734 if test "$GCC" = yes; then 9735 CFLAGS="$CFLAGS -mieee" 9736else 9737 9738 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9739fi 9740 9741 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9742 if test "${TCL_THREADS}" = 1; then 9743 9744 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9745 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9746 LIBS=`echo $LIBS | sed s/-lpthreads//` 9747 if test "$GCC" = yes; then 9748 9749 LIBS="$LIBS -lpthread -lmach -lexc" 9750 9751else 9752 9753 CFLAGS="$CFLAGS -pthread" 9754 LDFLAGS="$LDFLAGS -pthread" 9755 9756fi 9757 9758 9759fi 9760 9761 ;; 9762 QNX-6*) 9763 # QNX RTP 9764 # This may work for all QNX, but it was only reported for v6. 9765 SHLIB_CFLAGS="-fPIC" 9766 SHLIB_LD="ld -Bshareable -x" 9767 SHLIB_LD_LIBS="" 9768 SHLIB_SUFFIX=".so" 9769 CC_SEARCH_FLAGS="" 9770 LD_SEARCH_FLAGS="" 9771 ;; 9772 SCO_SV-3.2*) 9773 if test "$GCC" = yes; then 9774 9775 SHLIB_CFLAGS="-fPIC -melf" 9776 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9777 9778else 9779 9780 SHLIB_CFLAGS="-Kpic -belf" 9781 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9782 9783fi 9784 9785 SHLIB_LD="ld -G" 9786 SHLIB_LD_LIBS="" 9787 SHLIB_SUFFIX=".so" 9788 CC_SEARCH_FLAGS="" 9789 LD_SEARCH_FLAGS="" 9790 ;; 9791 SunOS-5.[0-6]) 9792 # Careful to not let 5.10+ fall into this case 9793 9794 # Note: If _REENTRANT isn't defined, then Solaris 9795 # won't define thread-safe library routines. 9796 9797 9798cat >>confdefs.h <<\_ACEOF 9799#define _REENTRANT 1 9800_ACEOF 9801 9802 9803cat >>confdefs.h <<\_ACEOF 9804#define _POSIX_PTHREAD_SEMANTICS 1 9805_ACEOF 9806 9807 9808 SHLIB_CFLAGS="-KPIC" 9809 SHLIB_SUFFIX=".so" 9810 if test "$GCC" = yes; then 9811 9812 SHLIB_LD='${CC} -shared' 9813 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9814 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9815 9816else 9817 9818 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9819 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9820 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9821 9822fi 9823 9824 ;; 9825 SunOS-5*) 9826 # Note: If _REENTRANT isn't defined, then Solaris 9827 # won't define thread-safe library routines. 9828 9829 9830cat >>confdefs.h <<\_ACEOF 9831#define _REENTRANT 1 9832_ACEOF 9833 9834 9835cat >>confdefs.h <<\_ACEOF 9836#define _POSIX_PTHREAD_SEMANTICS 1 9837_ACEOF 9838 9839 9840 SHLIB_CFLAGS="-KPIC" 9841 9842 # Check to enable 64-bit flags for compiler/linker 9843 if test "$do64bit" = yes; then 9844 9845 arch=`isainfo` 9846 if test "$arch" = "sparcv9 sparc"; then 9847 9848 if test "$GCC" = yes; then 9849 9850 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9851 9852 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9853echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9854 9855else 9856 9857 do64bit_ok=yes 9858 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9859 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9860 SHLIB_CFLAGS="-fPIC" 9861 9862fi 9863 9864 9865else 9866 9867 do64bit_ok=yes 9868 if test "$do64bitVIS" = yes; then 9869 9870 CFLAGS="$CFLAGS -xarch=v9a" 9871 LDFLAGS_ARCH="-xarch=v9a" 9872 9873else 9874 9875 CFLAGS="$CFLAGS -xarch=v9" 9876 LDFLAGS_ARCH="-xarch=v9" 9877 9878fi 9879 9880 # Solaris 64 uses this as well 9881 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9882 9883fi 9884 9885 9886else 9887 if test "$arch" = "amd64 i386"; then 9888 9889 if test "$GCC" = yes; then 9890 9891 case $system in 9892 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9893 do64bit_ok=yes 9894 CFLAGS="$CFLAGS -m64" 9895 LDFLAGS="$LDFLAGS -m64";; 9896 *) 9897 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9898echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9899 esac 9900 9901else 9902 9903 do64bit_ok=yes 9904 case $system in 9905 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9906 CFLAGS="$CFLAGS -m64" 9907 LDFLAGS="$LDFLAGS -m64";; 9908 *) 9909 CFLAGS="$CFLAGS -xarch=amd64" 9910 LDFLAGS="$LDFLAGS -xarch=amd64";; 9911 esac 9912 9913fi 9914 9915 9916else 9917 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9918echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9919fi 9920 9921fi 9922 9923 9924fi 9925 9926 9927 SHLIB_SUFFIX=".so" 9928 if test "$GCC" = yes; then 9929 9930 SHLIB_LD='${CC} -shared' 9931 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9932 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9933 if test "$do64bit_ok" = yes; then 9934 9935 if test "$arch" = "sparcv9 sparc"; then 9936 9937 # We need to specify -static-libgcc or we need to 9938 # add the path to the sparv9 libgcc. 9939 # JH: static-libgcc is necessary for core Tcl, but may 9940 # not be necessary for extensions. 9941 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9942 # for finding sparcv9 libgcc, get the regular libgcc 9943 # path, remove so name and append 'sparcv9' 9944 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9945 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9946 9947else 9948 if test "$arch" = "amd64 i386"; then 9949 9950 # JH: static-libgcc is necessary for core Tcl, but may 9951 # not be necessary for extensions. 9952 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9953 9954fi 9955 9956fi 9957 9958 9959fi 9960 9961 9962else 9963 9964 case $system in 9965 SunOS-5.[1-9][0-9]*) 9966 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9967 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9968 *) 9969 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9970 esac 9971 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9972 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9973 9974fi 9975 9976 ;; 9977 esac 9978 9979 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9980 9981 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9982echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9983 9984fi 9985 9986 9987 9988 9989 # Add in the arch flags late to ensure it wasn't removed. 9990 # Not necessary in TEA, but this is aligned with core 9991 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9992 9993 # If we're running gcc, then change the C flags for compiling shared 9994 # libraries to the right flags for gcc, instead of those for the 9995 # standard manufacturer compiler. 9996 9997 if test "$GCC" = yes; then 9998 9999 case $system in 10000 AIX-*) ;; 10001 BSD/OS*) ;; 10002 CYGWIN_*) ;; 10003 IRIX*) ;; 10004 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 10005 Darwin-*) ;; 10006 SCO_SV-3.2*) ;; 10007 windows) ;; 10008 *) SHLIB_CFLAGS="-fPIC" ;; 10009 esac 10010fi 10011 10012 10013 if test "$tcl_cv_cc_visibility_hidden" != yes; then 10014 10015 10016cat >>confdefs.h <<\_ACEOF 10017#define MODULE_SCOPE extern 10018_ACEOF 10019 10020 10021cat >>confdefs.h <<\_ACEOF 10022#define NO_VIZ 10023_ACEOF 10024 10025 10026fi 10027 10028 10029 if test "$SHARED_LIB_SUFFIX" = ""; then 10030 10031 # TEA specific: use PACKAGE_VERSION instead of VERSION 10032 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 10033fi 10034 10035 if test "$UNSHARED_LIB_SUFFIX" = ""; then 10036 10037 # TEA specific: use PACKAGE_VERSION instead of VERSION 10038 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 10039fi 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 # These must be called after we do the basic CFLAGS checks and 10055 # verify any possible 64-bit or similar switches are necessary 10056 10057 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 10058echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 10059 tcl_flags="" 10060 10061 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 10062 echo $ECHO_N "(cached) $ECHO_C" >&6 10063else 10064 cat >conftest.$ac_ext <<_ACEOF 10065/* confdefs.h. */ 10066_ACEOF 10067cat confdefs.h >>conftest.$ac_ext 10068cat >>conftest.$ac_ext <<_ACEOF 10069/* end confdefs.h. */ 10070#include <stdlib.h> 10071int 10072main () 10073{ 10074char *p = (char *)strtoll; char *q = (char *)strtoull; 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_flag__isoc99_source=no 10097else 10098 echo "$as_me: failed program was:" >&5 10099sed 's/^/| /' conftest.$ac_ext >&5 10100 10101 cat >conftest.$ac_ext <<_ACEOF 10102/* confdefs.h. */ 10103_ACEOF 10104cat confdefs.h >>conftest.$ac_ext 10105cat >>conftest.$ac_ext <<_ACEOF 10106/* end confdefs.h. */ 10107#define _ISOC99_SOURCE 1 10108#include <stdlib.h> 10109int 10110main () 10111{ 10112char *p = (char *)strtoll; char *q = (char *)strtoull; 10113 ; 10114 return 0; 10115} 10116_ACEOF 10117rm -f conftest.$ac_objext 10118if { (ac_try="$ac_compile" 10119case "(($ac_try" in 10120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10121 *) ac_try_echo=$ac_try;; 10122esac 10123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10124 (eval "$ac_compile") 2>conftest.er1 10125 ac_status=$? 10126 grep -v '^ *+' conftest.er1 >conftest.err 10127 rm -f conftest.er1 10128 cat conftest.err >&5 10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10130 (exit $ac_status); } && { 10131 test -z "$ac_c_werror_flag" || 10132 test ! -s conftest.err 10133 } && test -s conftest.$ac_objext; then 10134 tcl_cv_flag__isoc99_source=yes 10135else 10136 echo "$as_me: failed program was:" >&5 10137sed 's/^/| /' conftest.$ac_ext >&5 10138 10139 tcl_cv_flag__isoc99_source=no 10140fi 10141 10142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10143fi 10144 10145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10146fi 10147 10148 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 10149 10150cat >>confdefs.h <<\_ACEOF 10151#define _ISOC99_SOURCE 1 10152_ACEOF 10153 10154 tcl_flags="$tcl_flags _ISOC99_SOURCE" 10155 fi 10156 10157 10158 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 10159 echo $ECHO_N "(cached) $ECHO_C" >&6 10160else 10161 cat >conftest.$ac_ext <<_ACEOF 10162/* confdefs.h. */ 10163_ACEOF 10164cat confdefs.h >>conftest.$ac_ext 10165cat >>conftest.$ac_ext <<_ACEOF 10166/* end confdefs.h. */ 10167#include <sys/stat.h> 10168int 10169main () 10170{ 10171struct stat64 buf; int i = stat64("/", &buf); 10172 ; 10173 return 0; 10174} 10175_ACEOF 10176rm -f conftest.$ac_objext 10177if { (ac_try="$ac_compile" 10178case "(($ac_try" in 10179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10180 *) ac_try_echo=$ac_try;; 10181esac 10182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10183 (eval "$ac_compile") 2>conftest.er1 10184 ac_status=$? 10185 grep -v '^ *+' conftest.er1 >conftest.err 10186 rm -f conftest.er1 10187 cat conftest.err >&5 10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10189 (exit $ac_status); } && { 10190 test -z "$ac_c_werror_flag" || 10191 test ! -s conftest.err 10192 } && test -s conftest.$ac_objext; then 10193 tcl_cv_flag__largefile64_source=no 10194else 10195 echo "$as_me: failed program was:" >&5 10196sed 's/^/| /' conftest.$ac_ext >&5 10197 10198 cat >conftest.$ac_ext <<_ACEOF 10199/* confdefs.h. */ 10200_ACEOF 10201cat confdefs.h >>conftest.$ac_ext 10202cat >>conftest.$ac_ext <<_ACEOF 10203/* end confdefs.h. */ 10204#define _LARGEFILE64_SOURCE 1 10205#include <sys/stat.h> 10206int 10207main () 10208{ 10209struct stat64 buf; int i = stat64("/", &buf); 10210 ; 10211 return 0; 10212} 10213_ACEOF 10214rm -f conftest.$ac_objext 10215if { (ac_try="$ac_compile" 10216case "(($ac_try" in 10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10218 *) ac_try_echo=$ac_try;; 10219esac 10220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10221 (eval "$ac_compile") 2>conftest.er1 10222 ac_status=$? 10223 grep -v '^ *+' conftest.er1 >conftest.err 10224 rm -f conftest.er1 10225 cat conftest.err >&5 10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10227 (exit $ac_status); } && { 10228 test -z "$ac_c_werror_flag" || 10229 test ! -s conftest.err 10230 } && test -s conftest.$ac_objext; then 10231 tcl_cv_flag__largefile64_source=yes 10232else 10233 echo "$as_me: failed program was:" >&5 10234sed 's/^/| /' conftest.$ac_ext >&5 10235 10236 tcl_cv_flag__largefile64_source=no 10237fi 10238 10239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10240fi 10241 10242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10243fi 10244 10245 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 10246 10247cat >>confdefs.h <<\_ACEOF 10248#define _LARGEFILE64_SOURCE 1 10249_ACEOF 10250 10251 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 10252 fi 10253 10254 10255 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 10256 echo $ECHO_N "(cached) $ECHO_C" >&6 10257else 10258 cat >conftest.$ac_ext <<_ACEOF 10259/* confdefs.h. */ 10260_ACEOF 10261cat confdefs.h >>conftest.$ac_ext 10262cat >>conftest.$ac_ext <<_ACEOF 10263/* end confdefs.h. */ 10264#include <sys/stat.h> 10265int 10266main () 10267{ 10268char *p = (char *)open64; 10269 ; 10270 return 0; 10271} 10272_ACEOF 10273rm -f conftest.$ac_objext 10274if { (ac_try="$ac_compile" 10275case "(($ac_try" in 10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10277 *) ac_try_echo=$ac_try;; 10278esac 10279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10280 (eval "$ac_compile") 2>conftest.er1 10281 ac_status=$? 10282 grep -v '^ *+' conftest.er1 >conftest.err 10283 rm -f conftest.er1 10284 cat conftest.err >&5 10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10286 (exit $ac_status); } && { 10287 test -z "$ac_c_werror_flag" || 10288 test ! -s conftest.err 10289 } && test -s conftest.$ac_objext; then 10290 tcl_cv_flag__largefile_source64=no 10291else 10292 echo "$as_me: failed program was:" >&5 10293sed 's/^/| /' conftest.$ac_ext >&5 10294 10295 cat >conftest.$ac_ext <<_ACEOF 10296/* confdefs.h. */ 10297_ACEOF 10298cat confdefs.h >>conftest.$ac_ext 10299cat >>conftest.$ac_ext <<_ACEOF 10300/* end confdefs.h. */ 10301#define _LARGEFILE_SOURCE64 1 10302#include <sys/stat.h> 10303int 10304main () 10305{ 10306char *p = (char *)open64; 10307 ; 10308 return 0; 10309} 10310_ACEOF 10311rm -f conftest.$ac_objext 10312if { (ac_try="$ac_compile" 10313case "(($ac_try" in 10314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10315 *) ac_try_echo=$ac_try;; 10316esac 10317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10318 (eval "$ac_compile") 2>conftest.er1 10319 ac_status=$? 10320 grep -v '^ *+' conftest.er1 >conftest.err 10321 rm -f conftest.er1 10322 cat conftest.err >&5 10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10324 (exit $ac_status); } && { 10325 test -z "$ac_c_werror_flag" || 10326 test ! -s conftest.err 10327 } && test -s conftest.$ac_objext; then 10328 tcl_cv_flag__largefile_source64=yes 10329else 10330 echo "$as_me: failed program was:" >&5 10331sed 's/^/| /' conftest.$ac_ext >&5 10332 10333 tcl_cv_flag__largefile_source64=no 10334fi 10335 10336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10337fi 10338 10339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10340fi 10341 10342 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 10343 10344cat >>confdefs.h <<\_ACEOF 10345#define _LARGEFILE_SOURCE64 1 10346_ACEOF 10347 10348 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 10349 fi 10350 10351 if test "x${tcl_flags}" = "x" ; then 10352 { echo "$as_me:$LINENO: result: none" >&5 10353echo "${ECHO_T}none" >&6; } 10354 else 10355 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 10356echo "${ECHO_T}${tcl_flags}" >&6; } 10357 fi 10358 10359 10360 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 10361echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 10362 if test "${tcl_cv_type_64bit+set}" = set; then 10363 echo $ECHO_N "(cached) $ECHO_C" >&6 10364else 10365 10366 tcl_cv_type_64bit=none 10367 # See if the compiler knows natively about __int64 10368 cat >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 10375int 10376main () 10377{ 10378__int64 value = (__int64) 0; 10379 ; 10380 return 0; 10381} 10382_ACEOF 10383rm -f conftest.$ac_objext 10384if { (ac_try="$ac_compile" 10385case "(($ac_try" in 10386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10387 *) ac_try_echo=$ac_try;; 10388esac 10389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10390 (eval "$ac_compile") 2>conftest.er1 10391 ac_status=$? 10392 grep -v '^ *+' conftest.er1 >conftest.err 10393 rm -f conftest.er1 10394 cat conftest.err >&5 10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10396 (exit $ac_status); } && { 10397 test -z "$ac_c_werror_flag" || 10398 test ! -s conftest.err 10399 } && test -s conftest.$ac_objext; then 10400 tcl_type_64bit=__int64 10401else 10402 echo "$as_me: failed program was:" >&5 10403sed 's/^/| /' conftest.$ac_ext >&5 10404 10405 tcl_type_64bit="long long" 10406fi 10407 10408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10409 # See if we should use long anyway Note that we substitute in the 10410 # type that is our current guess for a 64-bit type inside this check 10411 # program, so it should be modified only carefully... 10412 cat >conftest.$ac_ext <<_ACEOF 10413/* confdefs.h. */ 10414_ACEOF 10415cat confdefs.h >>conftest.$ac_ext 10416cat >>conftest.$ac_ext <<_ACEOF 10417/* end confdefs.h. */ 10418 10419int 10420main () 10421{ 10422switch (0) { 10423 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 10424 } 10425 ; 10426 return 0; 10427} 10428_ACEOF 10429rm -f conftest.$ac_objext 10430if { (ac_try="$ac_compile" 10431case "(($ac_try" in 10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10433 *) ac_try_echo=$ac_try;; 10434esac 10435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10436 (eval "$ac_compile") 2>conftest.er1 10437 ac_status=$? 10438 grep -v '^ *+' conftest.er1 >conftest.err 10439 rm -f conftest.er1 10440 cat conftest.err >&5 10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10442 (exit $ac_status); } && { 10443 test -z "$ac_c_werror_flag" || 10444 test ! -s conftest.err 10445 } && test -s conftest.$ac_objext; then 10446 tcl_cv_type_64bit=${tcl_type_64bit} 10447else 10448 echo "$as_me: failed program was:" >&5 10449sed 's/^/| /' conftest.$ac_ext >&5 10450 10451 10452fi 10453 10454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10455fi 10456 10457 if test "${tcl_cv_type_64bit}" = none ; then 10458 10459cat >>confdefs.h <<\_ACEOF 10460#define TCL_WIDE_INT_IS_LONG 1 10461_ACEOF 10462 10463 { echo "$as_me:$LINENO: result: using long" >&5 10464echo "${ECHO_T}using long" >&6; } 10465 elif test "${tcl_cv_type_64bit}" = "__int64" \ 10466 -a "${TEA_PLATFORM}" = "windows" ; then 10467 # TEA specific: We actually want to use the default tcl.h checks in 10468 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 10469 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 10470echo "${ECHO_T}using Tcl header defaults" >&6; } 10471 else 10472 10473cat >>confdefs.h <<_ACEOF 10474#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 10475_ACEOF 10476 10477 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 10478echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 10479 10480 # Now check for auxiliary declarations 10481 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 10482echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 10483if test "${tcl_cv_struct_dirent64+set}" = set; then 10484 echo $ECHO_N "(cached) $ECHO_C" >&6 10485else 10486 10487 cat >conftest.$ac_ext <<_ACEOF 10488/* confdefs.h. */ 10489_ACEOF 10490cat confdefs.h >>conftest.$ac_ext 10491cat >>conftest.$ac_ext <<_ACEOF 10492/* end confdefs.h. */ 10493#include <sys/types.h> 10494#include <sys/dirent.h> 10495int 10496main () 10497{ 10498struct dirent64 p; 10499 ; 10500 return 0; 10501} 10502_ACEOF 10503rm -f conftest.$ac_objext 10504if { (ac_try="$ac_compile" 10505case "(($ac_try" in 10506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10507 *) ac_try_echo=$ac_try;; 10508esac 10509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10510 (eval "$ac_compile") 2>conftest.er1 10511 ac_status=$? 10512 grep -v '^ *+' conftest.er1 >conftest.err 10513 rm -f conftest.er1 10514 cat conftest.err >&5 10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10516 (exit $ac_status); } && { 10517 test -z "$ac_c_werror_flag" || 10518 test ! -s conftest.err 10519 } && test -s conftest.$ac_objext; then 10520 tcl_cv_struct_dirent64=yes 10521else 10522 echo "$as_me: failed program was:" >&5 10523sed 's/^/| /' conftest.$ac_ext >&5 10524 10525 tcl_cv_struct_dirent64=no 10526fi 10527 10528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10529fi 10530{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10531echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 10532 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10533 10534cat >>confdefs.h <<\_ACEOF 10535#define HAVE_STRUCT_DIRENT64 1 10536_ACEOF 10537 10538 fi 10539 10540 { echo "$as_me:$LINENO: checking for struct stat64" >&5 10541echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 10542if test "${tcl_cv_struct_stat64+set}" = set; then 10543 echo $ECHO_N "(cached) $ECHO_C" >&6 10544else 10545 10546 cat >conftest.$ac_ext <<_ACEOF 10547/* confdefs.h. */ 10548_ACEOF 10549cat confdefs.h >>conftest.$ac_ext 10550cat >>conftest.$ac_ext <<_ACEOF 10551/* end confdefs.h. */ 10552#include <sys/stat.h> 10553int 10554main () 10555{ 10556struct stat64 p; 10557 10558 ; 10559 return 0; 10560} 10561_ACEOF 10562rm -f conftest.$ac_objext 10563if { (ac_try="$ac_compile" 10564case "(($ac_try" in 10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10566 *) ac_try_echo=$ac_try;; 10567esac 10568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10569 (eval "$ac_compile") 2>conftest.er1 10570 ac_status=$? 10571 grep -v '^ *+' conftest.er1 >conftest.err 10572 rm -f conftest.er1 10573 cat conftest.err >&5 10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10575 (exit $ac_status); } && { 10576 test -z "$ac_c_werror_flag" || 10577 test ! -s conftest.err 10578 } && test -s conftest.$ac_objext; then 10579 tcl_cv_struct_stat64=yes 10580else 10581 echo "$as_me: failed program was:" >&5 10582sed 's/^/| /' conftest.$ac_ext >&5 10583 10584 tcl_cv_struct_stat64=no 10585fi 10586 10587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10588fi 10589{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10590echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10591 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10592 10593cat >>confdefs.h <<\_ACEOF 10594#define HAVE_STRUCT_STAT64 1 10595_ACEOF 10596 10597 fi 10598 10599 10600 10601for ac_func in open64 lseek64 10602do 10603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10604{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10606if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10607 echo $ECHO_N "(cached) $ECHO_C" >&6 10608else 10609 cat >conftest.$ac_ext <<_ACEOF 10610/* confdefs.h. */ 10611_ACEOF 10612cat confdefs.h >>conftest.$ac_ext 10613cat >>conftest.$ac_ext <<_ACEOF 10614/* end confdefs.h. */ 10615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10616 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10617#define $ac_func innocuous_$ac_func 10618 10619/* System header to define __stub macros and hopefully few prototypes, 10620 which can conflict with char $ac_func (); below. 10621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10622 <limits.h> exists even on freestanding compilers. */ 10623 10624#ifdef __STDC__ 10625# include <limits.h> 10626#else 10627# include <assert.h> 10628#endif 10629 10630#undef $ac_func 10631 10632/* Override any GCC internal prototype to avoid an error. 10633 Use char because int might match the return type of a GCC 10634 builtin and then its argument prototype would still apply. */ 10635#ifdef __cplusplus 10636extern "C" 10637#endif 10638char $ac_func (); 10639/* The GNU C library defines this for functions which it implements 10640 to always fail with ENOSYS. Some functions are actually named 10641 something starting with __ and the normal name is an alias. */ 10642#if defined __stub_$ac_func || defined __stub___$ac_func 10643choke me 10644#endif 10645 10646int 10647main () 10648{ 10649return $ac_func (); 10650 ; 10651 return 0; 10652} 10653_ACEOF 10654rm -f conftest.$ac_objext conftest$ac_exeext 10655if { (ac_try="$ac_link" 10656case "(($ac_try" in 10657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10658 *) ac_try_echo=$ac_try;; 10659esac 10660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10661 (eval "$ac_link") 2>conftest.er1 10662 ac_status=$? 10663 grep -v '^ *+' conftest.er1 >conftest.err 10664 rm -f conftest.er1 10665 cat conftest.err >&5 10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10667 (exit $ac_status); } && { 10668 test -z "$ac_c_werror_flag" || 10669 test ! -s conftest.err 10670 } && test -s conftest$ac_exeext && 10671 $as_test_x conftest$ac_exeext; then 10672 eval "$as_ac_var=yes" 10673else 10674 echo "$as_me: failed program was:" >&5 10675sed 's/^/| /' conftest.$ac_ext >&5 10676 10677 eval "$as_ac_var=no" 10678fi 10679 10680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10681 conftest$ac_exeext conftest.$ac_ext 10682fi 10683ac_res=`eval echo '${'$as_ac_var'}'` 10684 { echo "$as_me:$LINENO: result: $ac_res" >&5 10685echo "${ECHO_T}$ac_res" >&6; } 10686if test `eval echo '${'$as_ac_var'}'` = yes; then 10687 cat >>confdefs.h <<_ACEOF 10688#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10689_ACEOF 10690 10691fi 10692done 10693 10694 { echo "$as_me:$LINENO: checking for off64_t" >&5 10695echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10696 if test "${tcl_cv_type_off64_t+set}" = set; then 10697 echo $ECHO_N "(cached) $ECHO_C" >&6 10698else 10699 10700 cat >conftest.$ac_ext <<_ACEOF 10701/* confdefs.h. */ 10702_ACEOF 10703cat confdefs.h >>conftest.$ac_ext 10704cat >>conftest.$ac_ext <<_ACEOF 10705/* end confdefs.h. */ 10706#include <sys/types.h> 10707int 10708main () 10709{ 10710off64_t offset; 10711 10712 ; 10713 return 0; 10714} 10715_ACEOF 10716rm -f conftest.$ac_objext 10717if { (ac_try="$ac_compile" 10718case "(($ac_try" in 10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10720 *) ac_try_echo=$ac_try;; 10721esac 10722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10723 (eval "$ac_compile") 2>conftest.er1 10724 ac_status=$? 10725 grep -v '^ *+' conftest.er1 >conftest.err 10726 rm -f conftest.er1 10727 cat conftest.err >&5 10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10729 (exit $ac_status); } && { 10730 test -z "$ac_c_werror_flag" || 10731 test ! -s conftest.err 10732 } && test -s conftest.$ac_objext; then 10733 tcl_cv_type_off64_t=yes 10734else 10735 echo "$as_me: failed program was:" >&5 10736sed 's/^/| /' conftest.$ac_ext >&5 10737 10738 tcl_cv_type_off64_t=no 10739fi 10740 10741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10742fi 10743 10744 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10745 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10746 test "x${ac_cv_func_open64}" = "xyes" ; then 10747 10748cat >>confdefs.h <<\_ACEOF 10749#define HAVE_TYPE_OFF64_T 1 10750_ACEOF 10751 10752 { echo "$as_me:$LINENO: result: yes" >&5 10753echo "${ECHO_T}yes" >&6; } 10754 else 10755 { echo "$as_me:$LINENO: result: no" >&5 10756echo "${ECHO_T}no" >&6; } 10757 fi 10758 fi 10759 10760 10761 10762#-------------------------------------------------------------------- 10763# Set the default compiler switches based on the --enable-symbols option. 10764#-------------------------------------------------------------------- 10765 10766 10767 10768 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10769echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10770 # Check whether --enable-symbols was given. 10771if test "${enable_symbols+set}" = set; then 10772 enableval=$enable_symbols; tcl_ok=$enableval 10773else 10774 tcl_ok=no 10775fi 10776 10777 DBGX="" 10778 if test "$tcl_ok" = "no"; then 10779 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10780 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10781 { echo "$as_me:$LINENO: result: no" >&5 10782echo "${ECHO_T}no" >&6; } 10783 else 10784 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10785 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10786 if test "$tcl_ok" = "yes"; then 10787 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10788echo "${ECHO_T}yes (standard debugging)" >&6; } 10789 fi 10790 fi 10791 # TEA specific: 10792 if test "${TEA_PLATFORM}" != "windows" ; then 10793 LDFLAGS_DEFAULT="${LDFLAGS}" 10794 fi 10795 10796 10797 10798 10799 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10800 10801cat >>confdefs.h <<\_ACEOF 10802#define TCL_MEM_DEBUG 1 10803_ACEOF 10804 10805 fi 10806 10807 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10808 if test "$tcl_ok" = "all"; then 10809 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10810echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10811 else 10812 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10813echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10814 fi 10815 fi 10816 10817 10818#-------------------------------------------------------------------- 10819# For Unix/Tk builds, make sure that the X libraries/headers are found. 10820# This must be called after TEA_CONFIG_CFLAGS as it adjusts LIBS. 10821#-------------------------------------------------------------------- 10822 10823 10824 if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then 10825 10826 { echo "$as_me:$LINENO: checking for X" >&5 10827echo $ECHO_N "checking for X... $ECHO_C" >&6; } 10828 10829 10830# Check whether --with-x was given. 10831if test "${with_x+set}" = set; then 10832 withval=$with_x; 10833fi 10834 10835# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 10836if test "x$with_x" = xno; then 10837 # The user explicitly disabled X. 10838 have_x=disabled 10839else 10840 case $x_includes,$x_libraries in #( 10841 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 10842echo "$as_me: error: Cannot use X directory names containing '" >&2;} 10843 { (exit 1); exit 1; }; };; #( 10844 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 10845 echo $ECHO_N "(cached) $ECHO_C" >&6 10846else 10847 # One or both of the vars are not set, and there is no cached value. 10848ac_x_includes=no ac_x_libraries=no 10849rm -f -r conftest.dir 10850if mkdir conftest.dir; then 10851 cd conftest.dir 10852 cat >Imakefile <<'_ACEOF' 10853incroot: 10854 @echo incroot='${INCROOT}' 10855usrlibdir: 10856 @echo usrlibdir='${USRLIBDIR}' 10857libdir: 10858 @echo libdir='${LIBDIR}' 10859_ACEOF 10860 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 10861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 10862 for ac_var in incroot usrlibdir libdir; do 10863 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 10864 done 10865 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 10866 for ac_extension in a so sl dylib la dll; do 10867 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 10868 test -f "$ac_im_libdir/libX11.$ac_extension"; then 10869 ac_im_usrlibdir=$ac_im_libdir; break 10870 fi 10871 done 10872 # Screen out bogus values from the imake configuration. They are 10873 # bogus both because they are the default anyway, and because 10874 # using them would break gcc on systems where it needs fixed includes. 10875 case $ac_im_incroot in 10876 /usr/include) ac_x_includes= ;; 10877 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 10878 esac 10879 case $ac_im_usrlibdir in 10880 /usr/lib | /lib) ;; 10881 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 10882 esac 10883 fi 10884 cd .. 10885 rm -f -r conftest.dir 10886fi 10887 10888# Standard set of common directories for X headers. 10889# Check X11 before X11Rn because it is often a symlink to the current release. 10890ac_x_header_dirs=' 10891/usr/X11/include 10892/usr/X11R6/include 10893/usr/X11R5/include 10894/usr/X11R4/include 10895 10896/usr/include/X11 10897/usr/include/X11R6 10898/usr/include/X11R5 10899/usr/include/X11R4 10900 10901/usr/local/X11/include 10902/usr/local/X11R6/include 10903/usr/local/X11R5/include 10904/usr/local/X11R4/include 10905 10906/usr/local/include/X11 10907/usr/local/include/X11R6 10908/usr/local/include/X11R5 10909/usr/local/include/X11R4 10910 10911/usr/X386/include 10912/usr/x386/include 10913/usr/XFree86/include/X11 10914 10915/usr/include 10916/usr/local/include 10917/usr/unsupported/include 10918/usr/athena/include 10919/usr/local/x11r5/include 10920/usr/lpp/Xamples/include 10921 10922/usr/openwin/include 10923/usr/openwin/share/include' 10924 10925if test "$ac_x_includes" = no; then 10926 # Guess where to find include files, by looking for Xlib.h. 10927 # First, try using that file with no special directory specified. 10928 cat >conftest.$ac_ext <<_ACEOF 10929/* confdefs.h. */ 10930_ACEOF 10931cat confdefs.h >>conftest.$ac_ext 10932cat >>conftest.$ac_ext <<_ACEOF 10933/* end confdefs.h. */ 10934#include <X11/Xlib.h> 10935_ACEOF 10936if { (ac_try="$ac_cpp conftest.$ac_ext" 10937case "(($ac_try" in 10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10939 *) ac_try_echo=$ac_try;; 10940esac 10941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10943 ac_status=$? 10944 grep -v '^ *+' conftest.er1 >conftest.err 10945 rm -f conftest.er1 10946 cat conftest.err >&5 10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10948 (exit $ac_status); } >/dev/null && { 10949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10950 test ! -s conftest.err 10951 }; then 10952 # We can compile using X headers with no special include directory. 10953ac_x_includes= 10954else 10955 echo "$as_me: failed program was:" >&5 10956sed 's/^/| /' conftest.$ac_ext >&5 10957 10958 for ac_dir in $ac_x_header_dirs; do 10959 if test -r "$ac_dir/X11/Xlib.h"; then 10960 ac_x_includes=$ac_dir 10961 break 10962 fi 10963done 10964fi 10965 10966rm -f conftest.err conftest.$ac_ext 10967fi # $ac_x_includes = no 10968 10969if test "$ac_x_libraries" = no; then 10970 # Check for the libraries. 10971 # See if we find them without any special options. 10972 # Don't add to $LIBS permanently. 10973 ac_save_LIBS=$LIBS 10974 LIBS="-lX11 $LIBS" 10975 cat >conftest.$ac_ext <<_ACEOF 10976/* confdefs.h. */ 10977_ACEOF 10978cat confdefs.h >>conftest.$ac_ext 10979cat >>conftest.$ac_ext <<_ACEOF 10980/* end confdefs.h. */ 10981#include <X11/Xlib.h> 10982int 10983main () 10984{ 10985XrmInitialize () 10986 ; 10987 return 0; 10988} 10989_ACEOF 10990rm -f conftest.$ac_objext conftest$ac_exeext 10991if { (ac_try="$ac_link" 10992case "(($ac_try" in 10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10994 *) ac_try_echo=$ac_try;; 10995esac 10996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10997 (eval "$ac_link") 2>conftest.er1 10998 ac_status=$? 10999 grep -v '^ *+' conftest.er1 >conftest.err 11000 rm -f conftest.er1 11001 cat conftest.err >&5 11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11003 (exit $ac_status); } && { 11004 test -z "$ac_c_werror_flag" || 11005 test ! -s conftest.err 11006 } && test -s conftest$ac_exeext && 11007 $as_test_x conftest$ac_exeext; then 11008 LIBS=$ac_save_LIBS 11009# We can link X programs with no special library path. 11010ac_x_libraries= 11011else 11012 echo "$as_me: failed program was:" >&5 11013sed 's/^/| /' conftest.$ac_ext >&5 11014 11015 LIBS=$ac_save_LIBS 11016for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 11017do 11018 # Don't even attempt the hair of trying to link an X program! 11019 for ac_extension in a so sl dylib la dll; do 11020 if test -r "$ac_dir/libX11.$ac_extension"; then 11021 ac_x_libraries=$ac_dir 11022 break 2 11023 fi 11024 done 11025done 11026fi 11027 11028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11029 conftest$ac_exeext conftest.$ac_ext 11030fi # $ac_x_libraries = no 11031 11032case $ac_x_includes,$ac_x_libraries in #( 11033 no,* | *,no | *\'*) 11034 # Didn't find X, or a directory has "'" in its name. 11035 ac_cv_have_x="have_x=no";; #( 11036 *) 11037 # Record where we found X for the cache. 11038 ac_cv_have_x="have_x=yes\ 11039 ac_x_includes='$ac_x_includes'\ 11040 ac_x_libraries='$ac_x_libraries'" 11041esac 11042fi 11043;; #( 11044 *) have_x=yes;; 11045 esac 11046 eval "$ac_cv_have_x" 11047fi # $with_x != no 11048 11049if test "$have_x" != yes; then 11050 { echo "$as_me:$LINENO: result: $have_x" >&5 11051echo "${ECHO_T}$have_x" >&6; } 11052 no_x=yes 11053else 11054 # If each of the values was on the command line, it overrides each guess. 11055 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 11056 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 11057 # Update the cache value to reflect the command line values. 11058 ac_cv_have_x="have_x=yes\ 11059 ac_x_includes='$x_includes'\ 11060 ac_x_libraries='$x_libraries'" 11061 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 11062echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 11063fi 11064 11065 not_really_there="" 11066 if test "$no_x" = ""; then 11067 if test "$x_includes" = ""; then 11068 cat >conftest.$ac_ext <<_ACEOF 11069/* confdefs.h. */ 11070_ACEOF 11071cat confdefs.h >>conftest.$ac_ext 11072cat >>conftest.$ac_ext <<_ACEOF 11073/* end confdefs.h. */ 11074#include <X11/XIntrinsic.h> 11075_ACEOF 11076if { (ac_try="$ac_cpp conftest.$ac_ext" 11077case "(($ac_try" in 11078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11079 *) ac_try_echo=$ac_try;; 11080esac 11081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11083 ac_status=$? 11084 grep -v '^ *+' conftest.er1 >conftest.err 11085 rm -f conftest.er1 11086 cat conftest.err >&5 11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11088 (exit $ac_status); } >/dev/null && { 11089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11090 test ! -s conftest.err 11091 }; then 11092 : 11093else 11094 echo "$as_me: failed program was:" >&5 11095sed 's/^/| /' conftest.$ac_ext >&5 11096 11097 not_really_there="yes" 11098fi 11099 11100rm -f conftest.err conftest.$ac_ext 11101 else 11102 if test ! -r $x_includes/X11/Intrinsic.h; then 11103 not_really_there="yes" 11104 fi 11105 fi 11106 fi 11107 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then 11108 { echo "$as_me:$LINENO: checking for X11 header files" >&5 11109echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 11110 found_xincludes="no" 11111 cat >conftest.$ac_ext <<_ACEOF 11112/* confdefs.h. */ 11113_ACEOF 11114cat confdefs.h >>conftest.$ac_ext 11115cat >>conftest.$ac_ext <<_ACEOF 11116/* end confdefs.h. */ 11117#include <X11/Intrinsic.h> 11118_ACEOF 11119if { (ac_try="$ac_cpp conftest.$ac_ext" 11120case "(($ac_try" in 11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11122 *) ac_try_echo=$ac_try;; 11123esac 11124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11126 ac_status=$? 11127 grep -v '^ *+' conftest.er1 >conftest.err 11128 rm -f conftest.er1 11129 cat conftest.err >&5 11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11131 (exit $ac_status); } >/dev/null && { 11132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11133 test ! -s conftest.err 11134 }; then 11135 found_xincludes="yes" 11136else 11137 echo "$as_me: failed program was:" >&5 11138sed 's/^/| /' conftest.$ac_ext >&5 11139 11140 found_xincludes="no" 11141fi 11142 11143rm -f conftest.err conftest.$ac_ext 11144 if test "$found_xincludes" = "no"; then 11145 dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/X11R6/include /usr/X11R5/include /usr/include/X11R5 /usr/include/X11R4 /usr/openwin/include /usr/X11/include /usr/sww/include" 11146 for i in $dirs ; do 11147 if test -r $i/X11/Intrinsic.h; then 11148 { echo "$as_me:$LINENO: result: $i" >&5 11149echo "${ECHO_T}$i" >&6; } 11150 XINCLUDES=" -I$i" 11151 found_xincludes="yes" 11152 break 11153 fi 11154 done 11155 fi 11156 else 11157 if test "$x_includes" != ""; then 11158 XINCLUDES="-I$x_includes" 11159 found_xincludes="yes" 11160 fi 11161 fi 11162 if test "$found_xincludes" = "no"; then 11163 { echo "$as_me:$LINENO: result: couldn't find any!" >&5 11164echo "${ECHO_T}couldn't find any!" >&6; } 11165 fi 11166 11167 if test "$no_x" = yes; then 11168 { echo "$as_me:$LINENO: checking for X11 libraries" >&5 11169echo $ECHO_N "checking for X11 libraries... $ECHO_C" >&6; } 11170 XLIBSW=nope 11171 dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/X11R6/lib /usr/X11R5/lib /usr/lib/X11R5 /usr/lib/X11R4 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib" 11172 for i in $dirs ; do 11173 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then 11174 { echo "$as_me:$LINENO: result: $i" >&5 11175echo "${ECHO_T}$i" >&6; } 11176 XLIBSW="-L$i -lX11" 11177 x_libraries="$i" 11178 break 11179 fi 11180 done 11181 else 11182 if test "$x_libraries" = ""; then 11183 XLIBSW=-lX11 11184 else 11185 XLIBSW="-L$x_libraries -lX11" 11186 fi 11187 fi 11188 if test "$XLIBSW" = nope ; then 11189 { echo "$as_me:$LINENO: checking for XCreateWindow in -lXwindow" >&5 11190echo $ECHO_N "checking for XCreateWindow in -lXwindow... $ECHO_C" >&6; } 11191if test "${ac_cv_lib_Xwindow_XCreateWindow+set}" = set; then 11192 echo $ECHO_N "(cached) $ECHO_C" >&6 11193else 11194 ac_check_lib_save_LIBS=$LIBS 11195LIBS="-lXwindow $LIBS" 11196cat >conftest.$ac_ext <<_ACEOF 11197/* confdefs.h. */ 11198_ACEOF 11199cat confdefs.h >>conftest.$ac_ext 11200cat >>conftest.$ac_ext <<_ACEOF 11201/* end confdefs.h. */ 11202 11203/* Override any GCC internal prototype to avoid an error. 11204 Use char because int might match the return type of a GCC 11205 builtin and then its argument prototype would still apply. */ 11206#ifdef __cplusplus 11207extern "C" 11208#endif 11209char XCreateWindow (); 11210int 11211main () 11212{ 11213return XCreateWindow (); 11214 ; 11215 return 0; 11216} 11217_ACEOF 11218rm -f conftest.$ac_objext conftest$ac_exeext 11219if { (ac_try="$ac_link" 11220case "(($ac_try" in 11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11222 *) ac_try_echo=$ac_try;; 11223esac 11224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11225 (eval "$ac_link") 2>conftest.er1 11226 ac_status=$? 11227 grep -v '^ *+' conftest.er1 >conftest.err 11228 rm -f conftest.er1 11229 cat conftest.err >&5 11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11231 (exit $ac_status); } && { 11232 test -z "$ac_c_werror_flag" || 11233 test ! -s conftest.err 11234 } && test -s conftest$ac_exeext && 11235 $as_test_x conftest$ac_exeext; then 11236 ac_cv_lib_Xwindow_XCreateWindow=yes 11237else 11238 echo "$as_me: failed program was:" >&5 11239sed 's/^/| /' conftest.$ac_ext >&5 11240 11241 ac_cv_lib_Xwindow_XCreateWindow=no 11242fi 11243 11244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11245 conftest$ac_exeext conftest.$ac_ext 11246LIBS=$ac_check_lib_save_LIBS 11247fi 11248{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5 11249echo "${ECHO_T}$ac_cv_lib_Xwindow_XCreateWindow" >&6; } 11250if test $ac_cv_lib_Xwindow_XCreateWindow = yes; then 11251 XLIBSW=-lXwindow 11252fi 11253 11254 fi 11255 if test "$XLIBSW" = nope ; then 11256 { echo "$as_me:$LINENO: result: could not find any! Using -lX11." >&5 11257echo "${ECHO_T}could not find any! Using -lX11." >&6; } 11258 XLIBSW=-lX11 11259 fi 11260 # TEA specific: 11261 if test x"${XLIBSW}" != x ; then 11262 PKG_LIBS="${PKG_LIBS} ${XLIBSW}" 11263 fi 11264 11265 fi 11266 11267 11268#-------------------------------------------------------------------- 11269# Everyone should be linking against the Tcl stub library. If you 11270# can't for some reason, remove this definition. If you aren't using 11271# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 11272# link against the non-stubbed Tcl library. 11273#-------------------------------------------------------------------- 11274 11275cat >>confdefs.h <<\_ACEOF 11276#define USE_TCL_STUBS 1 11277_ACEOF 11278 11279cat >>confdefs.h <<\_ACEOF 11280#define USE_TK_STUBS 1 11281_ACEOF 11282 11283 11284#-------------------------------------------------------------------- 11285# This macro generates a line to use when building a library. It 11286# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 11287# and TEA_LOAD_TCLCONFIG macros above. 11288#-------------------------------------------------------------------- 11289 11290 11291 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 11292 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 11293 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 11294 cat >conftest.$ac_ext <<_ACEOF 11295/* confdefs.h. */ 11296_ACEOF 11297cat confdefs.h >>conftest.$ac_ext 11298cat >>conftest.$ac_ext <<_ACEOF 11299/* end confdefs.h. */ 11300 11301#if defined(_MSC_VER) && _MSC_VER >= 1400 11302print("manifest needed") 11303#endif 11304 11305_ACEOF 11306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11307 $EGREP "manifest needed" >/dev/null 2>&1; then 11308 11309 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 11310 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 11311 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 11312 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 11313 11314 CLEANFILES="$CLEANFILES *.manifest" 11315 11316 11317fi 11318rm -f -r conftest* 11319 11320 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 11321 else 11322 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 11323 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 11324 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 11325 fi 11326 11327 if test "${SHARED_BUILD}" = "1" ; then 11328 MAKE_LIB="${MAKE_SHARED_LIB} " 11329 else 11330 MAKE_LIB="${MAKE_STATIC_LIB} " 11331 fi 11332 11333 #-------------------------------------------------------------------- 11334 # Shared libraries and static libraries have different names. 11335 # Use the double eval to make sure any variables in the suffix is 11336 # substituted. (@@@ Might not be necessary anymore) 11337 #-------------------------------------------------------------------- 11338 11339 if test "${TEA_PLATFORM}" = "windows" ; then 11340 if test "${SHARED_BUILD}" = "1" ; then 11341 # We force the unresolved linking of symbols that are really in 11342 # the private libraries of Tcl and Tk. 11343 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 11344 if test x"${TK_BIN_DIR}" != x ; then 11345 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 11346 fi 11347 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 11348 else 11349 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 11350 fi 11351 # Some packages build their own stubs libraries 11352 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 11353 if test "$GCC" = "yes"; then 11354 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 11355 fi 11356 # These aren't needed on Windows (either MSVC or gcc) 11357 RANLIB=: 11358 RANLIB_STUB=: 11359 else 11360 RANLIB_STUB="${RANLIB}" 11361 if test "${SHARED_BUILD}" = "1" ; then 11362 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 11363 if test x"${TK_BIN_DIR}" != x ; then 11364 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 11365 fi 11366 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 11367 RANLIB=: 11368 else 11369 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 11370 fi 11371 # Some packages build their own stubs libraries 11372 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 11373 fi 11374 11375 # These are escaped so that only CFLAGS is picked up at configure time. 11376 # The other values will be substituted at make time. 11377 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 11378 if test "${SHARED_BUILD}" = "1" ; then 11379 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 11380 fi 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391#-------------------------------------------------------------------- 11392# __CHANGE__ 11393# Add platform libs to LIBS or SHLIB_LD_LIBS as necessary. 11394#-------------------------------------------------------------------- 11395 11396if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 11397 11398 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\"" 11399 for i in $vars; do 11400 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 11401 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 11402 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 11403 fi 11404 PKG_LIBS="$PKG_LIBS $i" 11405 done 11406 11407 11408else 11409 11410 vars="${tkimg_STUB_LIB_SPEC}" 11411 for i in $vars; do 11412 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 11413 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 11414 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 11415 fi 11416 PKG_LIBS="$PKG_LIBS $i" 11417 done 11418 11419 11420fi 11421 11422#-------------------------------------------------------------------- 11423# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 11424# file during the install process. Don't run the TCLSH_PROG through 11425# ${CYGPATH} because it's being used directly by make. 11426# Require that we use a tclsh shell version 8.2 or later since earlier 11427# versions have bugs in the pkg_mkIndex routine. 11428# Add WISH as well if this is a Tk extension. 11429#-------------------------------------------------------------------- 11430 11431 11432 { echo "$as_me:$LINENO: checking for tclsh" >&5 11433echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 11434 if test -f "${TCL_BIN_DIR}/Makefile" ; then 11435 # tclConfig.sh is in Tcl build directory 11436 if test "${TEA_PLATFORM}" = "windows"; then 11437 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 11438 else 11439 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 11440 fi 11441 else 11442 # tclConfig.sh is in install location 11443 if test "${TEA_PLATFORM}" = "windows"; then 11444 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 11445 else 11446 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 11447 fi 11448 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 11449 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 11450 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 11451 for i in $list ; do 11452 if test -f "$i/${TCLSH_PROG}" ; then 11453 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 11454 break 11455 fi 11456 done 11457 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 11458 fi 11459 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 11460echo "${ECHO_T}${TCLSH_PROG}" >&6; } 11461 11462 11463 11464 { echo "$as_me:$LINENO: checking for wish" >&5 11465echo $ECHO_N "checking for wish... $ECHO_C" >&6; } 11466 if test -f "${TK_BIN_DIR}/Makefile" ; then 11467 # tkConfig.sh is in Tk build directory 11468 if test "${TEA_PLATFORM}" = "windows"; then 11469 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 11470 else 11471 WISH_PROG="${TK_BIN_DIR}/wish" 11472 fi 11473 else 11474 # tkConfig.sh is in install location 11475 if test "${TEA_PLATFORM}" = "windows"; then 11476 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 11477 else 11478 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}" 11479 fi 11480 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \ 11481 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \ 11482 `ls -d ${TK_PREFIX}/bin 2>/dev/null`" 11483 for i in $list ; do 11484 if test -f "$i/${WISH_PROG}" ; then 11485 REAL_TK_BIN_DIR="`cd "$i"; pwd`/" 11486 break 11487 fi 11488 done 11489 WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}" 11490 fi 11491 { echo "$as_me:$LINENO: result: ${WISH_PROG}" >&5 11492echo "${ECHO_T}${WISH_PROG}" >&6; } 11493 11494 11495 11496#-------------------------------------------------------------------- 11497# Finally, substitute all of the various values into the Makefile. 11498# You may alternatively have a special pkgIndex.tcl.in or other files 11499# which require substituting th AC variables in. Include these here. 11500#-------------------------------------------------------------------- 11501 11502ac_config_files="$ac_config_files Makefile" 11503 11504cat >confcache <<\_ACEOF 11505# This file is a shell script that caches the results of configure 11506# tests run on this system so they can be shared between configure 11507# scripts and configure runs, see configure's option --config-cache. 11508# It is not useful on other systems. If it contains results you don't 11509# want to keep, you may remove or edit it. 11510# 11511# config.status only pays attention to the cache file if you give it 11512# the --recheck option to rerun configure. 11513# 11514# `ac_cv_env_foo' variables (set or unset) will be overridden when 11515# loading this file, other *unset* `ac_cv_foo' will be assigned the 11516# following values. 11517 11518_ACEOF 11519 11520# The following way of writing the cache mishandles newlines in values, 11521# but we know of no workaround that is simple, portable, and efficient. 11522# So, we kill variables containing newlines. 11523# Ultrix sh set writes to stderr and can't be redirected directly, 11524# and sets the high bit in the cache file unless we assign to the vars. 11525( 11526 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11527 eval ac_val=\$$ac_var 11528 case $ac_val in #( 11529 *${as_nl}*) 11530 case $ac_var in #( 11531 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 11532echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 11533 esac 11534 case $ac_var in #( 11535 _ | IFS | as_nl) ;; #( 11536 *) $as_unset $ac_var ;; 11537 esac ;; 11538 esac 11539 done 11540 11541 (set) 2>&1 | 11542 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11543 *${as_nl}ac_space=\ *) 11544 # `set' does not quote correctly, so add quotes (double-quote 11545 # substitution turns \\\\ into \\, and sed turns \\ into \). 11546 sed -n \ 11547 "s/'/'\\\\''/g; 11548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11549 ;; #( 11550 *) 11551 # `set' quotes correctly as required by POSIX, so do not add quotes. 11552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11553 ;; 11554 esac | 11555 sort 11556) | 11557 sed ' 11558 /^ac_cv_env_/b end 11559 t clear 11560 :clear 11561 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11562 t end 11563 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11564 :end' >>confcache 11565if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11566 if test -w "$cache_file"; then 11567 test "x$cache_file" != "x/dev/null" && 11568 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 11569echo "$as_me: updating cache $cache_file" >&6;} 11570 cat confcache >$cache_file 11571 else 11572 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 11573echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11574 fi 11575fi 11576rm -f confcache 11577 11578test "x$prefix" = xNONE && prefix=$ac_default_prefix 11579# Let make expand exec_prefix. 11580test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11581 11582# Transform confdefs.h into DEFS. 11583# Protect against shell expansion while executing Makefile rules. 11584# Protect against Makefile macro expansion. 11585# 11586# If the first sed substitution is executed (which looks for macros that 11587# take arguments), then branch to the quote section. Otherwise, 11588# look for a macro that doesn't take arguments. 11589ac_script=' 11590t clear 11591:clear 11592s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11593t quote 11594s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11595t quote 11596b any 11597:quote 11598s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11599s/\[/\\&/g 11600s/\]/\\&/g 11601s/\$/$$/g 11602H 11603:any 11604${ 11605 g 11606 s/^\n// 11607 s/\n/ /g 11608 p 11609} 11610' 11611DEFS=`sed -n "$ac_script" confdefs.h` 11612 11613 11614ac_libobjs= 11615ac_ltlibobjs= 11616for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11617 # 1. Remove the extension, and $U if already installed. 11618 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11619 ac_i=`echo "$ac_i" | sed "$ac_script"` 11620 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11621 # will be set to the directory where LIBOBJS objects are built. 11622 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11623 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 11624done 11625LIBOBJS=$ac_libobjs 11626 11627LTLIBOBJS=$ac_ltlibobjs 11628 11629 11630CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 11631 11632: ${CONFIG_STATUS=./config.status} 11633ac_clean_files_save=$ac_clean_files 11634ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11635{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11636echo "$as_me: creating $CONFIG_STATUS" >&6;} 11637cat >$CONFIG_STATUS <<_ACEOF 11638#! $SHELL 11639# Generated by $as_me. 11640# Run this file to recreate the current configuration. 11641# Compiler output produced by configure, useful for debugging 11642# configure, is in config.log if it exists. 11643 11644debug=false 11645ac_cs_recheck=false 11646ac_cs_silent=false 11647SHELL=\${CONFIG_SHELL-$SHELL} 11648_ACEOF 11649 11650cat >>$CONFIG_STATUS <<\_ACEOF 11651## --------------------- ## 11652## M4sh Initialization. ## 11653## --------------------- ## 11654 11655# Be more Bourne compatible 11656DUALCASE=1; export DUALCASE # for MKS sh 11657if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11658 emulate sh 11659 NULLCMD=: 11660 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11661 # is contrary to our usage. Disable this feature. 11662 alias -g '${1+"$@"}'='"$@"' 11663 setopt NO_GLOB_SUBST 11664else 11665 case `(set -o) 2>/dev/null` in 11666 *posix*) set -o posix ;; 11667esac 11668 11669fi 11670 11671 11672 11673 11674# PATH needs CR 11675# Avoid depending upon Character Ranges. 11676as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11677as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11678as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11679as_cr_digits='0123456789' 11680as_cr_alnum=$as_cr_Letters$as_cr_digits 11681 11682# The user is always right. 11683if test "${PATH_SEPARATOR+set}" != set; then 11684 echo "#! /bin/sh" >conf$$.sh 11685 echo "exit 0" >>conf$$.sh 11686 chmod +x conf$$.sh 11687 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11688 PATH_SEPARATOR=';' 11689 else 11690 PATH_SEPARATOR=: 11691 fi 11692 rm -f conf$$.sh 11693fi 11694 11695# Support unset when possible. 11696if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11697 as_unset=unset 11698else 11699 as_unset=false 11700fi 11701 11702 11703# IFS 11704# We need space, tab and new line, in precisely that order. Quoting is 11705# there to prevent editors from complaining about space-tab. 11706# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11707# splitting by setting IFS to empty value.) 11708as_nl=' 11709' 11710IFS=" "" $as_nl" 11711 11712# Find who we are. Look in the path if we contain no directory separator. 11713case $0 in 11714 *[\\/]* ) as_myself=$0 ;; 11715 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11716for as_dir in $PATH 11717do 11718 IFS=$as_save_IFS 11719 test -z "$as_dir" && as_dir=. 11720 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11721done 11722IFS=$as_save_IFS 11723 11724 ;; 11725esac 11726# We did not find ourselves, most probably we were run as `sh COMMAND' 11727# in which case we are not to be found in the path. 11728if test "x$as_myself" = x; then 11729 as_myself=$0 11730fi 11731if test ! -f "$as_myself"; then 11732 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11733 { (exit 1); exit 1; } 11734fi 11735 11736# Work around bugs in pre-3.0 UWIN ksh. 11737for as_var in ENV MAIL MAILPATH 11738do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11739done 11740PS1='$ ' 11741PS2='> ' 11742PS4='+ ' 11743 11744# NLS nuisances. 11745for as_var in \ 11746 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11747 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11748 LC_TELEPHONE LC_TIME 11749do 11750 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11751 eval $as_var=C; export $as_var 11752 else 11753 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11754 fi 11755done 11756 11757# Required to use basename. 11758if expr a : '\(a\)' >/dev/null 2>&1 && 11759 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11760 as_expr=expr 11761else 11762 as_expr=false 11763fi 11764 11765if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11766 as_basename=basename 11767else 11768 as_basename=false 11769fi 11770 11771 11772# Name of the executable. 11773as_me=`$as_basename -- "$0" || 11774$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11775 X"$0" : 'X\(//\)$' \| \ 11776 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11777echo X/"$0" | 11778 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11779 s//\1/ 11780 q 11781 } 11782 /^X\/\(\/\/\)$/{ 11783 s//\1/ 11784 q 11785 } 11786 /^X\/\(\/\).*/{ 11787 s//\1/ 11788 q 11789 } 11790 s/.*/./; q'` 11791 11792# CDPATH. 11793$as_unset CDPATH 11794 11795 11796 11797 as_lineno_1=$LINENO 11798 as_lineno_2=$LINENO 11799 test "x$as_lineno_1" != "x$as_lineno_2" && 11800 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 11801 11802 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11803 # uniformly replaced by the line number. The first 'sed' inserts a 11804 # line-number line after each line using $LINENO; the second 'sed' 11805 # does the real work. The second script uses 'N' to pair each 11806 # line-number line with the line containing $LINENO, and appends 11807 # trailing '-' during substitution so that $LINENO is not a special 11808 # case at line end. 11809 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11810 # scripts with optimization help from Paolo Bonzini. Blame Lee 11811 # E. McMahon (1931-1989) for sed's syntax. :-) 11812 sed -n ' 11813 p 11814 /[$]LINENO/= 11815 ' <$as_myself | 11816 sed ' 11817 s/[$]LINENO.*/&-/ 11818 t lineno 11819 b 11820 :lineno 11821 N 11822 :loop 11823 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 11824 t loop 11825 s/-\n.*// 11826 ' >$as_me.lineno && 11827 chmod +x "$as_me.lineno" || 11828 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 11829 { (exit 1); exit 1; }; } 11830 11831 # Don't try to exec as it changes $[0], causing all sort of problems 11832 # (the dirname of $[0] is not the place where we might find the 11833 # original and so on. Autoconf is especially sensitive to this). 11834 . "./$as_me.lineno" 11835 # Exit status is that of the last command. 11836 exit 11837} 11838 11839 11840if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11841 as_dirname=dirname 11842else 11843 as_dirname=false 11844fi 11845 11846ECHO_C= ECHO_N= ECHO_T= 11847case `echo -n x` in 11848-n*) 11849 case `echo 'x\c'` in 11850 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11851 *) ECHO_C='\c';; 11852 esac;; 11853*) 11854 ECHO_N='-n';; 11855esac 11856 11857if expr a : '\(a\)' >/dev/null 2>&1 && 11858 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11859 as_expr=expr 11860else 11861 as_expr=false 11862fi 11863 11864rm -f conf$$ conf$$.exe conf$$.file 11865if test -d conf$$.dir; then 11866 rm -f conf$$.dir/conf$$.file 11867else 11868 rm -f conf$$.dir 11869 mkdir conf$$.dir 11870fi 11871echo >conf$$.file 11872if ln -s conf$$.file conf$$ 2>/dev/null; then 11873 as_ln_s='ln -s' 11874 # ... but there are two gotchas: 11875 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11876 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11877 # In both cases, we have to default to `cp -p'. 11878 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11879 as_ln_s='cp -p' 11880elif ln conf$$.file conf$$ 2>/dev/null; then 11881 as_ln_s=ln 11882else 11883 as_ln_s='cp -p' 11884fi 11885rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11886rmdir conf$$.dir 2>/dev/null 11887 11888if mkdir -p . 2>/dev/null; then 11889 as_mkdir_p=: 11890else 11891 test -d ./-p && rmdir ./-p 11892 as_mkdir_p=false 11893fi 11894 11895if test -x / >/dev/null 2>&1; then 11896 as_test_x='test -x' 11897else 11898 if ls -dL / >/dev/null 2>&1; then 11899 as_ls_L_option=L 11900 else 11901 as_ls_L_option= 11902 fi 11903 as_test_x=' 11904 eval sh -c '\'' 11905 if test -d "$1"; then 11906 test -d "$1/."; 11907 else 11908 case $1 in 11909 -*)set "./$1";; 11910 esac; 11911 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 11912 ???[sx]*):;;*)false;;esac;fi 11913 '\'' sh 11914 ' 11915fi 11916as_executable_p=$as_test_x 11917 11918# Sed expression to map a string onto a valid CPP name. 11919as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11920 11921# Sed expression to map a string onto a valid variable name. 11922as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11923 11924 11925exec 6>&1 11926 11927# Save the log message, to keep $[0] and so on meaningful, and to 11928# report actual input values of CONFIG_FILES etc. instead of their 11929# values after options handling. 11930ac_log=" 11931This file was extended by tkimggif $as_me 1.4, which was 11932generated by GNU Autoconf 2.61. Invocation command line was 11933 11934 CONFIG_FILES = $CONFIG_FILES 11935 CONFIG_HEADERS = $CONFIG_HEADERS 11936 CONFIG_LINKS = $CONFIG_LINKS 11937 CONFIG_COMMANDS = $CONFIG_COMMANDS 11938 $ $0 $@ 11939 11940on `(hostname || uname -n) 2>/dev/null | sed 1q` 11941" 11942 11943_ACEOF 11944 11945cat >>$CONFIG_STATUS <<_ACEOF 11946# Files that config.status was made for. 11947config_files="$ac_config_files" 11948 11949_ACEOF 11950 11951cat >>$CONFIG_STATUS <<\_ACEOF 11952ac_cs_usage="\ 11953\`$as_me' instantiates files from templates according to the 11954current configuration. 11955 11956Usage: $0 [OPTIONS] [FILE]... 11957 11958 -h, --help print this help, then exit 11959 -V, --version print version number and configuration settings, then exit 11960 -q, --quiet do not print progress messages 11961 -d, --debug don't remove temporary files 11962 --recheck update $as_me by reconfiguring in the same conditions 11963 --file=FILE[:TEMPLATE] 11964 instantiate the configuration file FILE 11965 11966Configuration files: 11967$config_files 11968 11969Report bugs to <bug-autoconf@gnu.org>." 11970 11971_ACEOF 11972cat >>$CONFIG_STATUS <<_ACEOF 11973ac_cs_version="\\ 11974tkimggif config.status 1.4 11975configured by $0, generated by GNU Autoconf 2.61, 11976 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11977 11978Copyright (C) 2006 Free Software Foundation, Inc. 11979This config.status script is free software; the Free Software Foundation 11980gives unlimited permission to copy, distribute and modify it." 11981 11982ac_pwd='$ac_pwd' 11983srcdir='$srcdir' 11984INSTALL='$INSTALL' 11985_ACEOF 11986 11987cat >>$CONFIG_STATUS <<\_ACEOF 11988# If no file are specified by the user, then we need to provide default 11989# value. By we need to know if files were specified by the user. 11990ac_need_defaults=: 11991while test $# != 0 11992do 11993 case $1 in 11994 --*=*) 11995 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11996 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11997 ac_shift=: 11998 ;; 11999 *) 12000 ac_option=$1 12001 ac_optarg=$2 12002 ac_shift=shift 12003 ;; 12004 esac 12005 12006 case $ac_option in 12007 # Handling of the options. 12008 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12009 ac_cs_recheck=: ;; 12010 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12011 echo "$ac_cs_version"; exit ;; 12012 --debug | --debu | --deb | --de | --d | -d ) 12013 debug=: ;; 12014 --file | --fil | --fi | --f ) 12015 $ac_shift 12016 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 12017 ac_need_defaults=false;; 12018 --he | --h | --help | --hel | -h ) 12019 echo "$ac_cs_usage"; exit ;; 12020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12021 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12022 ac_cs_silent=: ;; 12023 12024 # This is an error. 12025 -*) { echo "$as_me: error: unrecognized option: $1 12026Try \`$0 --help' for more information." >&2 12027 { (exit 1); exit 1; }; } ;; 12028 12029 *) ac_config_targets="$ac_config_targets $1" 12030 ac_need_defaults=false ;; 12031 12032 esac 12033 shift 12034done 12035 12036ac_configure_extra_args= 12037 12038if $ac_cs_silent; then 12039 exec 6>/dev/null 12040 ac_configure_extra_args="$ac_configure_extra_args --silent" 12041fi 12042 12043_ACEOF 12044cat >>$CONFIG_STATUS <<_ACEOF 12045if \$ac_cs_recheck; then 12046 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 12047 CONFIG_SHELL=$SHELL 12048 export CONFIG_SHELL 12049 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12050fi 12051 12052_ACEOF 12053cat >>$CONFIG_STATUS <<\_ACEOF 12054exec 5>>config.log 12055{ 12056 echo 12057 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12058## Running $as_me. ## 12059_ASBOX 12060 echo "$ac_log" 12061} >&5 12062 12063_ACEOF 12064cat >>$CONFIG_STATUS <<_ACEOF 12065_ACEOF 12066 12067cat >>$CONFIG_STATUS <<\_ACEOF 12068 12069# Handling of arguments. 12070for ac_config_target in $ac_config_targets 12071do 12072 case $ac_config_target in 12073 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12074 12075 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12076echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12077 { (exit 1); exit 1; }; };; 12078 esac 12079done 12080 12081 12082# If the user did not use the arguments to specify the items to instantiate, 12083# then the envvar interface is used. Set only those that are not. 12084# We use the long form for the default assignment because of an extremely 12085# bizarre bug on SunOS 4.1.3. 12086if $ac_need_defaults; then 12087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12088fi 12089 12090# Have a temporary directory for convenience. Make it in the build tree 12091# simply because there is no reason against having it here, and in addition, 12092# creating and moving files from /tmp can sometimes cause problems. 12093# Hook for its removal unless debugging. 12094# Note that there is a small window in which the directory will not be cleaned: 12095# after its creation but before its name has been assigned to `$tmp'. 12096$debug || 12097{ 12098 tmp= 12099 trap 'exit_status=$? 12100 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12101' 0 12102 trap '{ (exit 1); exit 1; }' 1 2 13 15 12103} 12104# Create a (secure) tmp directory for tmp files. 12105 12106{ 12107 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12108 test -n "$tmp" && test -d "$tmp" 12109} || 12110{ 12111 tmp=./conf$$-$RANDOM 12112 (umask 077 && mkdir "$tmp") 12113} || 12114{ 12115 echo "$me: cannot create a temporary directory in ." >&2 12116 { (exit 1); exit 1; } 12117} 12118 12119# 12120# Set up the sed scripts for CONFIG_FILES section. 12121# 12122 12123# No need to generate the scripts if there are no CONFIG_FILES. 12124# This happens for instance when ./config.status config.h 12125if test -n "$CONFIG_FILES"; then 12126 12127_ACEOF 12128 12129 12130 12131ac_delim='%!_!# ' 12132for ac_last_try in false false false false false :; do 12133 cat >conf$$subs.sed <<_ACEOF 12134SHELL!$SHELL$ac_delim 12135PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 12136PACKAGE_NAME!$PACKAGE_NAME$ac_delim 12137PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 12138PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 12139PACKAGE_STRING!$PACKAGE_STRING$ac_delim 12140PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 12141exec_prefix!$exec_prefix$ac_delim 12142prefix!$prefix$ac_delim 12143program_transform_name!$program_transform_name$ac_delim 12144bindir!$bindir$ac_delim 12145sbindir!$sbindir$ac_delim 12146libexecdir!$libexecdir$ac_delim 12147datarootdir!$datarootdir$ac_delim 12148datadir!$datadir$ac_delim 12149sysconfdir!$sysconfdir$ac_delim 12150sharedstatedir!$sharedstatedir$ac_delim 12151localstatedir!$localstatedir$ac_delim 12152includedir!$includedir$ac_delim 12153oldincludedir!$oldincludedir$ac_delim 12154docdir!$docdir$ac_delim 12155infodir!$infodir$ac_delim 12156htmldir!$htmldir$ac_delim 12157dvidir!$dvidir$ac_delim 12158pdfdir!$pdfdir$ac_delim 12159psdir!$psdir$ac_delim 12160libdir!$libdir$ac_delim 12161localedir!$localedir$ac_delim 12162mandir!$mandir$ac_delim 12163DEFS!$DEFS$ac_delim 12164ECHO_C!$ECHO_C$ac_delim 12165ECHO_N!$ECHO_N$ac_delim 12166ECHO_T!$ECHO_T$ac_delim 12167LIBS!$LIBS$ac_delim 12168build_alias!$build_alias$ac_delim 12169host_alias!$host_alias$ac_delim 12170target_alias!$target_alias$ac_delim 12171CYGPATH!$CYGPATH$ac_delim 12172EXEEXT!$EXEEXT$ac_delim 12173PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 12174PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 12175PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 12176PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 12177PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 12178PKG_HEADERS!$PKG_HEADERS$ac_delim 12179PKG_INCLUDES!$PKG_INCLUDES$ac_delim 12180PKG_LIBS!$PKG_LIBS$ac_delim 12181PKG_CFLAGS!$PKG_CFLAGS$ac_delim 12182PACKAGE_TCLNAME!$PACKAGE_TCLNAME$ac_delim 12183TCL_VERSION!$TCL_VERSION$ac_delim 12184TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 12185TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 12186TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 12187TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 12188TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 12189TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 12190TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 12191TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 12192TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 12193CLEANFILES!$CLEANFILES$ac_delim 12194TCL_LIBS!$TCL_LIBS$ac_delim 12195TCL_DEFS!$TCL_DEFS$ac_delim 12196TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 12197TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 12198TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 12199TK_VERSION!$TK_VERSION$ac_delim 12200TK_BIN_DIR!$TK_BIN_DIR$ac_delim 12201TK_SRC_DIR!$TK_SRC_DIR$ac_delim 12202TK_LIB_FILE!$TK_LIB_FILE$ac_delim 12203TK_LIB_FLAG!$TK_LIB_FLAG$ac_delim 12204TK_LIB_SPEC!$TK_LIB_SPEC$ac_delim 12205TK_STUB_LIB_FILE!$TK_STUB_LIB_FILE$ac_delim 12206TK_STUB_LIB_FLAG!$TK_STUB_LIB_FLAG$ac_delim 12207TK_STUB_LIB_SPEC!$TK_STUB_LIB_SPEC$ac_delim 12208TK_LIBS!$TK_LIBS$ac_delim 12209TK_XINCLUDES!$TK_XINCLUDES$ac_delim 12210CC!$CC$ac_delim 12211CFLAGS!$CFLAGS$ac_delim 12212LDFLAGS!$LDFLAGS$ac_delim 12213CPPFLAGS!$CPPFLAGS$ac_delim 12214ac_ct_CC!$ac_ct_CC$ac_delim 12215OBJEXT!$OBJEXT$ac_delim 12216CPP!$CPP$ac_delim 12217INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 12218INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12219INSTALL_DATA!$INSTALL_DATA$ac_delim 12220SET_MAKE!$SET_MAKE$ac_delim 12221RANLIB!$RANLIB$ac_delim 12222GREP!$GREP$ac_delim 12223EGREP!$EGREP$ac_delim 12224MATH_LIBS!$MATH_LIBS$ac_delim 12225tkimg_VERSION!$tkimg_VERSION$ac_delim 12226tkimg_BIN_DIR!$tkimg_BIN_DIR$ac_delim 12227tkimg_SRC_DIR!$tkimg_SRC_DIR$ac_delim 12228tkimg_LIB_FILE!$tkimg_LIB_FILE$ac_delim 12229tkimg_LIB_SPEC!$tkimg_LIB_SPEC$ac_delim 12230tkimg_STUB_LIB_FILE!$tkimg_STUB_LIB_FILE$ac_delim 12231_ACEOF 12232 12233 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12234 break 12235 elif $ac_last_try; then 12236 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12237echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12238 { (exit 1); exit 1; }; } 12239 else 12240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12241 fi 12242done 12243 12244ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 12245if test -n "$ac_eof"; then 12246 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 12247 ac_eof=`expr $ac_eof + 1` 12248fi 12249 12250cat >>$CONFIG_STATUS <<_ACEOF 12251cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12252/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12253_ACEOF 12254sed ' 12255s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12256s/^/s,@/; s/!/@,|#_!!_#|/ 12257:n 12258t n 12259s/'"$ac_delim"'$/,g/; t 12260s/$/\\/; p 12261N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 12262' >>$CONFIG_STATUS <conf$$subs.sed 12263rm -f conf$$subs.sed 12264cat >>$CONFIG_STATUS <<_ACEOF 12265CEOF$ac_eof 12266_ACEOF 12267 12268 12269ac_delim='%!_!# ' 12270for ac_last_try in false false false false false :; do 12271 cat >conf$$subs.sed <<_ACEOF 12272tkimg_STUB_LIB_SPEC!$tkimg_STUB_LIB_SPEC$ac_delim 12273tkimg_STUB_LIB_PATH!$tkimg_STUB_LIB_PATH$ac_delim 12274tkimg_SRC_PATH!$tkimg_SRC_PATH$ac_delim 12275tkimg_BUILD_PATH!$tkimg_BUILD_PATH$ac_delim 12276PKG_SOURCES!$PKG_SOURCES$ac_delim 12277PKG_OBJECTS!$PKG_OBJECTS$ac_delim 12278TCL_INCLUDES!$TCL_INCLUDES$ac_delim 12279TK_INCLUDES!$TK_INCLUDES$ac_delim 12280TCL_THREADS!$TCL_THREADS$ac_delim 12281SHARED_BUILD!$SHARED_BUILD$ac_delim 12282AR!$AR$ac_delim 12283CELIB_DIR!$CELIB_DIR$ac_delim 12284CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 12285CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 12286CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 12287STLIB_LD!$STLIB_LD$ac_delim 12288SHLIB_LD!$SHLIB_LD$ac_delim 12289SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 12290SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 12291LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 12292CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 12293LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 12294TCL_DBGX!$TCL_DBGX$ac_delim 12295XMKMF!$XMKMF$ac_delim 12296MAKE_LIB!$MAKE_LIB$ac_delim 12297MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 12298MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 12299MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 12300RANLIB_STUB!$RANLIB_STUB$ac_delim 12301VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 12302VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 12303TCLSH_PROG!$TCLSH_PROG$ac_delim 12304WISH_PROG!$WISH_PROG$ac_delim 12305LIBOBJS!$LIBOBJS$ac_delim 12306LTLIBOBJS!$LTLIBOBJS$ac_delim 12307_ACEOF 12308 12309 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then 12310 break 12311 elif $ac_last_try; then 12312 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12313echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12314 { (exit 1); exit 1; }; } 12315 else 12316 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12317 fi 12318done 12319 12320ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 12321if test -n "$ac_eof"; then 12322 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 12323 ac_eof=`expr $ac_eof + 1` 12324fi 12325 12326cat >>$CONFIG_STATUS <<_ACEOF 12327cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 12328/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12329_ACEOF 12330sed ' 12331s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12332s/^/s,@/; s/!/@,|#_!!_#|/ 12333:n 12334t n 12335s/'"$ac_delim"'$/,g/; t 12336s/$/\\/; p 12337N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 12338' >>$CONFIG_STATUS <conf$$subs.sed 12339rm -f conf$$subs.sed 12340cat >>$CONFIG_STATUS <<_ACEOF 12341:end 12342s/|#_!!_#|//g 12343CEOF$ac_eof 12344_ACEOF 12345 12346 12347# VPATH may cause trouble with some makes, so we remove $(srcdir), 12348# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12349# trailing colons and then remove the whole line if VPATH becomes empty 12350# (actually we leave an empty line to preserve line numbers). 12351if test "x$srcdir" = x.; then 12352 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12353s/:*\$(srcdir):*/:/ 12354s/:*\${srcdir}:*/:/ 12355s/:*@srcdir@:*/:/ 12356s/^\([^=]*=[ ]*\):*/\1/ 12357s/:*$// 12358s/^[^=]*=[ ]*$// 12359}' 12360fi 12361 12362cat >>$CONFIG_STATUS <<\_ACEOF 12363fi # test -n "$CONFIG_FILES" 12364 12365 12366for ac_tag in :F $CONFIG_FILES 12367do 12368 case $ac_tag in 12369 :[FHLC]) ac_mode=$ac_tag; continue;; 12370 esac 12371 case $ac_mode$ac_tag in 12372 :[FHL]*:*);; 12373 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 12374echo "$as_me: error: Invalid tag $ac_tag." >&2;} 12375 { (exit 1); exit 1; }; };; 12376 :[FH]-) ac_tag=-:-;; 12377 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12378 esac 12379 ac_save_IFS=$IFS 12380 IFS=: 12381 set x $ac_tag 12382 IFS=$ac_save_IFS 12383 shift 12384 ac_file=$1 12385 shift 12386 12387 case $ac_mode in 12388 :L) ac_source=$1;; 12389 :[FH]) 12390 ac_file_inputs= 12391 for ac_f 12392 do 12393 case $ac_f in 12394 -) ac_f="$tmp/stdin";; 12395 *) # Look for the file first in the build tree, then in the source tree 12396 # (if the path is not absolute). The absolute path cannot be DOS-style, 12397 # because $ac_f cannot contain `:'. 12398 test -f "$ac_f" || 12399 case $ac_f in 12400 [\\/$]*) false;; 12401 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12402 esac || 12403 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 12404echo "$as_me: error: cannot find input file: $ac_f" >&2;} 12405 { (exit 1); exit 1; }; };; 12406 esac 12407 ac_file_inputs="$ac_file_inputs $ac_f" 12408 done 12409 12410 # Let's still pretend it is `configure' which instantiates (i.e., don't 12411 # use $as_me), people would be surprised to read: 12412 # /* config.h. Generated by config.status. */ 12413 configure_input="Generated from "`IFS=: 12414 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 12415 if test x"$ac_file" != x-; then 12416 configure_input="$ac_file. $configure_input" 12417 { echo "$as_me:$LINENO: creating $ac_file" >&5 12418echo "$as_me: creating $ac_file" >&6;} 12419 fi 12420 12421 case $ac_tag in 12422 *:-:* | *:-) cat >"$tmp/stdin";; 12423 esac 12424 ;; 12425 esac 12426 12427 ac_dir=`$as_dirname -- "$ac_file" || 12428$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12429 X"$ac_file" : 'X\(//\)[^/]' \| \ 12430 X"$ac_file" : 'X\(//\)$' \| \ 12431 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12432echo X"$ac_file" | 12433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12434 s//\1/ 12435 q 12436 } 12437 /^X\(\/\/\)[^/].*/{ 12438 s//\1/ 12439 q 12440 } 12441 /^X\(\/\/\)$/{ 12442 s//\1/ 12443 q 12444 } 12445 /^X\(\/\).*/{ 12446 s//\1/ 12447 q 12448 } 12449 s/.*/./; q'` 12450 { as_dir="$ac_dir" 12451 case $as_dir in #( 12452 -*) as_dir=./$as_dir;; 12453 esac 12454 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 12455 as_dirs= 12456 while :; do 12457 case $as_dir in #( 12458 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 12459 *) as_qdir=$as_dir;; 12460 esac 12461 as_dirs="'$as_qdir' $as_dirs" 12462 as_dir=`$as_dirname -- "$as_dir" || 12463$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12464 X"$as_dir" : 'X\(//\)[^/]' \| \ 12465 X"$as_dir" : 'X\(//\)$' \| \ 12466 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12467echo X"$as_dir" | 12468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12469 s//\1/ 12470 q 12471 } 12472 /^X\(\/\/\)[^/].*/{ 12473 s//\1/ 12474 q 12475 } 12476 /^X\(\/\/\)$/{ 12477 s//\1/ 12478 q 12479 } 12480 /^X\(\/\).*/{ 12481 s//\1/ 12482 q 12483 } 12484 s/.*/./; q'` 12485 test -d "$as_dir" && break 12486 done 12487 test -z "$as_dirs" || eval "mkdir $as_dirs" 12488 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 12489echo "$as_me: error: cannot create directory $as_dir" >&2;} 12490 { (exit 1); exit 1; }; }; } 12491 ac_builddir=. 12492 12493case "$ac_dir" in 12494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12495*) 12496 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12497 # A ".." for each directory in $ac_dir_suffix. 12498 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 12499 case $ac_top_builddir_sub in 12500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12502 esac ;; 12503esac 12504ac_abs_top_builddir=$ac_pwd 12505ac_abs_builddir=$ac_pwd$ac_dir_suffix 12506# for backward compatibility: 12507ac_top_builddir=$ac_top_build_prefix 12508 12509case $srcdir in 12510 .) # We are building in place. 12511 ac_srcdir=. 12512 ac_top_srcdir=$ac_top_builddir_sub 12513 ac_abs_top_srcdir=$ac_pwd ;; 12514 [\\/]* | ?:[\\/]* ) # Absolute name. 12515 ac_srcdir=$srcdir$ac_dir_suffix; 12516 ac_top_srcdir=$srcdir 12517 ac_abs_top_srcdir=$srcdir ;; 12518 *) # Relative name. 12519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12520 ac_top_srcdir=$ac_top_build_prefix$srcdir 12521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12522esac 12523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12524 12525 12526 case $ac_mode in 12527 :F) 12528 # 12529 # CONFIG_FILE 12530 # 12531 12532 case $INSTALL in 12533 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12534 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12535 esac 12536_ACEOF 12537 12538cat >>$CONFIG_STATUS <<\_ACEOF 12539# If the template does not know about datarootdir, expand it. 12540# FIXME: This hack should be removed a few years after 2.60. 12541ac_datarootdir_hack=; ac_datarootdir_seen= 12542 12543case `sed -n '/datarootdir/ { 12544 p 12545 q 12546} 12547/@datadir@/p 12548/@docdir@/p 12549/@infodir@/p 12550/@localedir@/p 12551/@mandir@/p 12552' $ac_file_inputs` in 12553*datarootdir*) ac_datarootdir_seen=yes;; 12554*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12555 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12556echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12557_ACEOF 12558cat >>$CONFIG_STATUS <<_ACEOF 12559 ac_datarootdir_hack=' 12560 s&@datadir@&$datadir&g 12561 s&@docdir@&$docdir&g 12562 s&@infodir@&$infodir&g 12563 s&@localedir@&$localedir&g 12564 s&@mandir@&$mandir&g 12565 s&\\\${datarootdir}&$datarootdir&g' ;; 12566esac 12567_ACEOF 12568 12569# Neutralize VPATH when `$srcdir' = `.'. 12570# Shell code in configure.ac might set extrasub. 12571# FIXME: do we really want to maintain this feature? 12572cat >>$CONFIG_STATUS <<_ACEOF 12573 sed "$ac_vpsub 12574$extrasub 12575_ACEOF 12576cat >>$CONFIG_STATUS <<\_ACEOF 12577:t 12578/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12579s&@configure_input@&$configure_input&;t t 12580s&@top_builddir@&$ac_top_builddir_sub&;t t 12581s&@srcdir@&$ac_srcdir&;t t 12582s&@abs_srcdir@&$ac_abs_srcdir&;t t 12583s&@top_srcdir@&$ac_top_srcdir&;t t 12584s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12585s&@builddir@&$ac_builddir&;t t 12586s&@abs_builddir@&$ac_abs_builddir&;t t 12587s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12588s&@INSTALL@&$ac_INSTALL&;t t 12589$ac_datarootdir_hack 12590" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12591 12592test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12593 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12594 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12595 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12596which seems to be undefined. Please make sure it is defined." >&5 12597echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12598which seems to be undefined. Please make sure it is defined." >&2;} 12599 12600 rm -f "$tmp/stdin" 12601 case $ac_file in 12602 -) cat "$tmp/out"; rm -f "$tmp/out";; 12603 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 12604 esac 12605 ;; 12606 12607 12608 12609 esac 12610 12611done # for ac_tag 12612 12613 12614{ (exit 0); exit 0; } 12615_ACEOF 12616chmod +x $CONFIG_STATUS 12617ac_clean_files=$ac_clean_files_save 12618 12619 12620# configure is writing to config.log, and then calls config.status. 12621# config.status does its own redirection, appending to config.log. 12622# Unfortunately, on DOS this fails, as config.log is still kept open 12623# by configure, so config.status won't be able to write to it; its 12624# output is simply discarded. So we exec the FD to /dev/null, 12625# effectively closing config.log, so it can be properly (re)opened and 12626# appended to by config.status. When coming back to configure, we 12627# need to make the FD available again. 12628if test "$no_create" != yes; then 12629 ac_cs_success=: 12630 ac_config_status_args= 12631 test "$silent" = yes && 12632 ac_config_status_args="$ac_config_status_args --quiet" 12633 exec 5>/dev/null 12634 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12635 exec 5>>config.log 12636 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12637 # would make configure fail if this is the last instruction. 12638 $ac_cs_success || { (exit 1); exit 1; } 12639fi 12640 12641 12642#-------------------------------------------------------------------- 12643