1#! /bin/sh 2# From configure.in Id: configure.in 287 2010-07-07 11:54:54Z nijtmans . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61 for tkimgtiff 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='tkimgtiff' 575PACKAGE_TARNAME='tkimgtiff' 576PACKAGE_VERSION='1.4' 577PACKAGE_STRING='tkimgtiff 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 715tifftcl_VERSION 716tifftcl_BIN_DIR 717tifftcl_SRC_DIR 718tifftcl_LIB_FILE 719tifftcl_LIB_SPEC 720tifftcl_STUB_LIB_FILE 721tifftcl_STUB_LIB_SPEC 722tifftcl_STUB_LIB_PATH 723jpegtcl_VERSION 724jpegtcl_BIN_DIR 725jpegtcl_SRC_DIR 726jpegtcl_LIB_FILE 727jpegtcl_LIB_SPEC 728jpegtcl_STUB_LIB_FILE 729jpegtcl_STUB_LIB_SPEC 730jpegtcl_STUB_LIB_PATH 731zlibtcl_VERSION 732zlibtcl_BIN_DIR 733zlibtcl_SRC_DIR 734zlibtcl_LIB_FILE 735zlibtcl_LIB_SPEC 736zlibtcl_STUB_LIB_FILE 737zlibtcl_STUB_LIB_SPEC 738zlibtcl_STUB_LIB_PATH 739tkimg_SRC_PATH 740tkimg_BUILD_PATH 741tifftcl_SRC_PATH 742tifftcl_BUILD_PATH 743jpegtcl_SRC_PATH 744jpegtcl_BUILD_PATH 745zlibtcl_SRC_PATH 746zlibtcl_BUILD_PATH 747PKG_SOURCES 748PKG_OBJECTS 749TCL_INCLUDES 750TK_INCLUDES 751TCL_THREADS 752SHARED_BUILD 753AR 754CELIB_DIR 755CFLAGS_DEBUG 756CFLAGS_OPTIMIZE 757CFLAGS_WARNING 758STLIB_LD 759SHLIB_LD 760SHLIB_LD_LIBS 761SHLIB_CFLAGS 762LD_LIBRARY_PATH_VAR 763CFLAGS_DEFAULT 764LDFLAGS_DEFAULT 765TCL_DBGX 766XMKMF 767MAKE_LIB 768MAKE_SHARED_LIB 769MAKE_STATIC_LIB 770MAKE_STUB_LIB 771RANLIB_STUB 772VC_MANIFEST_EMBED_DLL 773VC_MANIFEST_EMBED_EXE 774TCLSH_PROG 775WISH_PROG 776LIBOBJS 777LTLIBOBJS' 778ac_subst_files='' 779 ac_precious_vars='build_alias 780host_alias 781target_alias 782CC 783CFLAGS 784LDFLAGS 785LIBS 786CPPFLAGS 787CPP 788XMKMF' 789 790 791# Initialize some variables set by options. 792ac_init_help= 793ac_init_version=false 794# The variables have the same names as the options, with 795# dashes changed to underlines. 796cache_file=/dev/null 797exec_prefix=NONE 798no_create= 799no_recursion= 800prefix=NONE 801program_prefix=NONE 802program_suffix=NONE 803program_transform_name=s,x,x, 804silent= 805site= 806srcdir= 807verbose= 808x_includes=NONE 809x_libraries=NONE 810 811# Installation directory options. 812# These are left unexpanded so users can "make install exec_prefix=/foo" 813# and all the variables that are supposed to be based on exec_prefix 814# by default will actually change. 815# Use braces instead of parens because sh, perl, etc. also accept them. 816# (The list follows the same order as the GNU Coding Standards.) 817bindir='${exec_prefix}/bin' 818sbindir='${exec_prefix}/sbin' 819libexecdir='${exec_prefix}/libexec' 820datarootdir='${prefix}/share' 821datadir='${datarootdir}' 822sysconfdir='${prefix}/etc' 823sharedstatedir='${prefix}/com' 824localstatedir='${prefix}/var' 825includedir='${prefix}/include' 826oldincludedir='/usr/include' 827docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 828infodir='${datarootdir}/info' 829htmldir='${docdir}' 830dvidir='${docdir}' 831pdfdir='${docdir}' 832psdir='${docdir}' 833libdir='${exec_prefix}/lib' 834localedir='${datarootdir}/locale' 835mandir='${datarootdir}/man' 836 837ac_prev= 838ac_dashdash= 839for ac_option 840do 841 # If the previous option needs an argument, assign it. 842 if test -n "$ac_prev"; then 843 eval $ac_prev=\$ac_option 844 ac_prev= 845 continue 846 fi 847 848 case $ac_option in 849 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 850 *) ac_optarg=yes ;; 851 esac 852 853 # Accept the important Cygnus configure options, so we can diagnose typos. 854 855 case $ac_dashdash$ac_option in 856 --) 857 ac_dashdash=yes ;; 858 859 -bindir | --bindir | --bindi | --bind | --bin | --bi) 860 ac_prev=bindir ;; 861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 862 bindir=$ac_optarg ;; 863 864 -build | --build | --buil | --bui | --bu) 865 ac_prev=build_alias ;; 866 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 867 build_alias=$ac_optarg ;; 868 869 -cache-file | --cache-file | --cache-fil | --cache-fi \ 870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 871 ac_prev=cache_file ;; 872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 874 cache_file=$ac_optarg ;; 875 876 --config-cache | -C) 877 cache_file=config.cache ;; 878 879 -datadir | --datadir | --datadi | --datad) 880 ac_prev=datadir ;; 881 -datadir=* | --datadir=* | --datadi=* | --datad=*) 882 datadir=$ac_optarg ;; 883 884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 885 | --dataroo | --dataro | --datar) 886 ac_prev=datarootdir ;; 887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 889 datarootdir=$ac_optarg ;; 890 891 -disable-* | --disable-*) 892 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 893 # Reject names that are not valid shell variable names. 894 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 895 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 896 { (exit 1); exit 1; }; } 897 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 898 eval enable_$ac_feature=no ;; 899 900 -docdir | --docdir | --docdi | --doc | --do) 901 ac_prev=docdir ;; 902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 903 docdir=$ac_optarg ;; 904 905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 906 ac_prev=dvidir ;; 907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 908 dvidir=$ac_optarg ;; 909 910 -enable-* | --enable-*) 911 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 912 # Reject names that are not valid shell variable names. 913 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 914 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 915 { (exit 1); exit 1; }; } 916 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 917 eval enable_$ac_feature=\$ac_optarg ;; 918 919 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 920 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 921 | --exec | --exe | --ex) 922 ac_prev=exec_prefix ;; 923 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 924 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 925 | --exec=* | --exe=* | --ex=*) 926 exec_prefix=$ac_optarg ;; 927 928 -gas | --gas | --ga | --g) 929 # Obsolete; use --with-gas. 930 with_gas=yes ;; 931 932 -help | --help | --hel | --he | -h) 933 ac_init_help=long ;; 934 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 935 ac_init_help=recursive ;; 936 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 937 ac_init_help=short ;; 938 939 -host | --host | --hos | --ho) 940 ac_prev=host_alias ;; 941 -host=* | --host=* | --hos=* | --ho=*) 942 host_alias=$ac_optarg ;; 943 944 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 945 ac_prev=htmldir ;; 946 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 947 | --ht=*) 948 htmldir=$ac_optarg ;; 949 950 -includedir | --includedir | --includedi | --included | --include \ 951 | --includ | --inclu | --incl | --inc) 952 ac_prev=includedir ;; 953 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 954 | --includ=* | --inclu=* | --incl=* | --inc=*) 955 includedir=$ac_optarg ;; 956 957 -infodir | --infodir | --infodi | --infod | --info | --inf) 958 ac_prev=infodir ;; 959 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 960 infodir=$ac_optarg ;; 961 962 -libdir | --libdir | --libdi | --libd) 963 ac_prev=libdir ;; 964 -libdir=* | --libdir=* | --libdi=* | --libd=*) 965 libdir=$ac_optarg ;; 966 967 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 968 | --libexe | --libex | --libe) 969 ac_prev=libexecdir ;; 970 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 971 | --libexe=* | --libex=* | --libe=*) 972 libexecdir=$ac_optarg ;; 973 974 -localedir | --localedir | --localedi | --localed | --locale) 975 ac_prev=localedir ;; 976 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 977 localedir=$ac_optarg ;; 978 979 -localstatedir | --localstatedir | --localstatedi | --localstated \ 980 | --localstate | --localstat | --localsta | --localst | --locals) 981 ac_prev=localstatedir ;; 982 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 983 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 984 localstatedir=$ac_optarg ;; 985 986 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 987 ac_prev=mandir ;; 988 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 989 mandir=$ac_optarg ;; 990 991 -nfp | --nfp | --nf) 992 # Obsolete; use --without-fp. 993 with_fp=no ;; 994 995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 996 | --no-cr | --no-c | -n) 997 no_create=yes ;; 998 999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1001 no_recursion=yes ;; 1002 1003 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1004 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1005 | --oldin | --oldi | --old | --ol | --o) 1006 ac_prev=oldincludedir ;; 1007 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1008 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1009 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1010 oldincludedir=$ac_optarg ;; 1011 1012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1013 ac_prev=prefix ;; 1014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1015 prefix=$ac_optarg ;; 1016 1017 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1018 | --program-pre | --program-pr | --program-p) 1019 ac_prev=program_prefix ;; 1020 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1021 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1022 program_prefix=$ac_optarg ;; 1023 1024 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1025 | --program-suf | --program-su | --program-s) 1026 ac_prev=program_suffix ;; 1027 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1028 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1029 program_suffix=$ac_optarg ;; 1030 1031 -program-transform-name | --program-transform-name \ 1032 | --program-transform-nam | --program-transform-na \ 1033 | --program-transform-n | --program-transform- \ 1034 | --program-transform | --program-transfor \ 1035 | --program-transfo | --program-transf \ 1036 | --program-trans | --program-tran \ 1037 | --progr-tra | --program-tr | --program-t) 1038 ac_prev=program_transform_name ;; 1039 -program-transform-name=* | --program-transform-name=* \ 1040 | --program-transform-nam=* | --program-transform-na=* \ 1041 | --program-transform-n=* | --program-transform-=* \ 1042 | --program-transform=* | --program-transfor=* \ 1043 | --program-transfo=* | --program-transf=* \ 1044 | --program-trans=* | --program-tran=* \ 1045 | --progr-tra=* | --program-tr=* | --program-t=*) 1046 program_transform_name=$ac_optarg ;; 1047 1048 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1049 ac_prev=pdfdir ;; 1050 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1051 pdfdir=$ac_optarg ;; 1052 1053 -psdir | --psdir | --psdi | --psd | --ps) 1054 ac_prev=psdir ;; 1055 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1056 psdir=$ac_optarg ;; 1057 1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1059 | -silent | --silent | --silen | --sile | --sil) 1060 silent=yes ;; 1061 1062 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1063 ac_prev=sbindir ;; 1064 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1065 | --sbi=* | --sb=*) 1066 sbindir=$ac_optarg ;; 1067 1068 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1069 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1070 | --sharedst | --shareds | --shared | --share | --shar \ 1071 | --sha | --sh) 1072 ac_prev=sharedstatedir ;; 1073 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1074 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1075 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1076 | --sha=* | --sh=*) 1077 sharedstatedir=$ac_optarg ;; 1078 1079 -site | --site | --sit) 1080 ac_prev=site ;; 1081 -site=* | --site=* | --sit=*) 1082 site=$ac_optarg ;; 1083 1084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1085 ac_prev=srcdir ;; 1086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1087 srcdir=$ac_optarg ;; 1088 1089 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1090 | --syscon | --sysco | --sysc | --sys | --sy) 1091 ac_prev=sysconfdir ;; 1092 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1093 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1094 sysconfdir=$ac_optarg ;; 1095 1096 -target | --target | --targe | --targ | --tar | --ta | --t) 1097 ac_prev=target_alias ;; 1098 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1099 target_alias=$ac_optarg ;; 1100 1101 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1102 verbose=yes ;; 1103 1104 -version | --version | --versio | --versi | --vers | -V) 1105 ac_init_version=: ;; 1106 1107 -with-* | --with-*) 1108 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1109 # Reject names that are not valid shell variable names. 1110 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1111 { echo "$as_me: error: invalid package name: $ac_package" >&2 1112 { (exit 1); exit 1; }; } 1113 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1114 eval with_$ac_package=\$ac_optarg ;; 1115 1116 -without-* | --without-*) 1117 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1118 # Reject names that are not valid shell variable names. 1119 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1120 { echo "$as_me: error: invalid package name: $ac_package" >&2 1121 { (exit 1); exit 1; }; } 1122 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1123 eval with_$ac_package=no ;; 1124 1125 --x) 1126 # Obsolete; use --with-x. 1127 with_x=yes ;; 1128 1129 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1130 | --x-incl | --x-inc | --x-in | --x-i) 1131 ac_prev=x_includes ;; 1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1134 x_includes=$ac_optarg ;; 1135 1136 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1137 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1138 ac_prev=x_libraries ;; 1139 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1140 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1141 x_libraries=$ac_optarg ;; 1142 1143 -*) { echo "$as_me: error: unrecognized option: $ac_option 1144Try \`$0 --help' for more information." >&2 1145 { (exit 1); exit 1; }; } 1146 ;; 1147 1148 *=*) 1149 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1150 # Reject names that are not valid shell variable names. 1151 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1152 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1153 { (exit 1); exit 1; }; } 1154 eval $ac_envvar=\$ac_optarg 1155 export $ac_envvar ;; 1156 1157 *) 1158 # FIXME: should be removed in autoconf 3.0. 1159 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1161 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1162 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1163 ;; 1164 1165 esac 1166done 1167 1168if test -n "$ac_prev"; then 1169 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1170 { echo "$as_me: error: missing argument to $ac_option" >&2 1171 { (exit 1); exit 1; }; } 1172fi 1173 1174# Be sure to have absolute directory names. 1175for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1176 datadir sysconfdir sharedstatedir localstatedir includedir \ 1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1178 libdir localedir mandir 1179do 1180 eval ac_val=\$$ac_var 1181 case $ac_val in 1182 [\\/$]* | ?:[\\/]* ) continue;; 1183 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1184 esac 1185 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1186 { (exit 1); exit 1; }; } 1187done 1188 1189# There might be people who depend on the old broken behavior: `$host' 1190# used to hold the argument of --host etc. 1191# FIXME: To remove some day. 1192build=$build_alias 1193host=$host_alias 1194target=$target_alias 1195 1196# FIXME: To remove some day. 1197if test "x$host_alias" != x; then 1198 if test "x$build_alias" = x; then 1199 cross_compiling=maybe 1200 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1201 If a cross compiler is detected then cross compile mode will be used." >&2 1202 elif test "x$build_alias" != "x$host_alias"; then 1203 cross_compiling=yes 1204 fi 1205fi 1206 1207ac_tool_prefix= 1208test -n "$host_alias" && ac_tool_prefix=$host_alias- 1209 1210test "$silent" = yes && exec 6>/dev/null 1211 1212 1213ac_pwd=`pwd` && test -n "$ac_pwd" && 1214ac_ls_di=`ls -di .` && 1215ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1216 { echo "$as_me: error: Working directory cannot be determined" >&2 1217 { (exit 1); exit 1; }; } 1218test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1219 { echo "$as_me: error: pwd does not report name of working directory" >&2 1220 { (exit 1); exit 1; }; } 1221 1222 1223# Find the source files, if location was not specified. 1224if test -z "$srcdir"; then 1225 ac_srcdir_defaulted=yes 1226 # Try the directory containing this script, then the parent directory. 1227 ac_confdir=`$as_dirname -- "$0" || 1228$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1229 X"$0" : 'X\(//\)[^/]' \| \ 1230 X"$0" : 'X\(//\)$' \| \ 1231 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1232echo X"$0" | 1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1234 s//\1/ 1235 q 1236 } 1237 /^X\(\/\/\)[^/].*/{ 1238 s//\1/ 1239 q 1240 } 1241 /^X\(\/\/\)$/{ 1242 s//\1/ 1243 q 1244 } 1245 /^X\(\/\).*/{ 1246 s//\1/ 1247 q 1248 } 1249 s/.*/./; q'` 1250 srcdir=$ac_confdir 1251 if test ! -r "$srcdir/$ac_unique_file"; then 1252 srcdir=.. 1253 fi 1254else 1255 ac_srcdir_defaulted=no 1256fi 1257if test ! -r "$srcdir/$ac_unique_file"; then 1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1259 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1260 { (exit 1); exit 1; }; } 1261fi 1262ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1263ac_abs_confdir=`( 1264 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1265 { (exit 1); exit 1; }; } 1266 pwd)` 1267# When building in place, set srcdir=. 1268if test "$ac_abs_confdir" = "$ac_pwd"; then 1269 srcdir=. 1270fi 1271# Remove unnecessary trailing slashes from srcdir. 1272# Double slashes in file names in object file debugging info 1273# mess up M-x gdb in Emacs. 1274case $srcdir in 1275*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1276esac 1277for ac_var in $ac_precious_vars; do 1278 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1279 eval ac_env_${ac_var}_value=\$${ac_var} 1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1281 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1282done 1283 1284# 1285# Report the --help message. 1286# 1287if test "$ac_init_help" = "long"; then 1288 # Omit some internal or obsolete options to make the list less imposing. 1289 # This message is too long to be a string in the A/UX 3.1 sh. 1290 cat <<_ACEOF 1291\`configure' configures tkimgtiff 1.4 to adapt to many kinds of systems. 1292 1293Usage: $0 [OPTION]... [VAR=VALUE]... 1294 1295To assign environment variables (e.g., CC, CFLAGS...), specify them as 1296VAR=VALUE. See below for descriptions of some of the useful variables. 1297 1298Defaults for the options are specified in brackets. 1299 1300Configuration: 1301 -h, --help display this help and exit 1302 --help=short display options specific to this package 1303 --help=recursive display the short help of all the included packages 1304 -V, --version display version information and exit 1305 -q, --quiet, --silent do not print \`checking...' messages 1306 --cache-file=FILE cache test results in FILE [disabled] 1307 -C, --config-cache alias for \`--cache-file=config.cache' 1308 -n, --no-create do not create output files 1309 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1310 1311Installation directories: 1312 --prefix=PREFIX install architecture-independent files in PREFIX 1313 [$ac_default_prefix] 1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1315 [PREFIX] 1316 1317By default, \`make install' will install all the files in 1318\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1319an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1320for instance \`--prefix=\$HOME'. 1321 1322For better control, use the options below. 1323 1324Fine tuning of the installation directories: 1325 --bindir=DIR user executables [EPREFIX/bin] 1326 --sbindir=DIR system admin executables [EPREFIX/sbin] 1327 --libexecdir=DIR program executables [EPREFIX/libexec] 1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1331 --libdir=DIR object code libraries [EPREFIX/lib] 1332 --includedir=DIR C header files [PREFIX/include] 1333 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1336 --infodir=DIR info documentation [DATAROOTDIR/info] 1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1338 --mandir=DIR man documentation [DATAROOTDIR/man] 1339 --docdir=DIR documentation root [DATAROOTDIR/doc/tkimgtiff] 1340 --htmldir=DIR html documentation [DOCDIR] 1341 --dvidir=DIR dvi documentation [DOCDIR] 1342 --pdfdir=DIR pdf documentation [DOCDIR] 1343 --psdir=DIR ps documentation [DOCDIR] 1344_ACEOF 1345 1346 cat <<\_ACEOF 1347 1348X features: 1349 --x-includes=DIR X include files are in DIR 1350 --x-libraries=DIR X library files are in DIR 1351_ACEOF 1352fi 1353 1354if test -n "$ac_init_help"; then 1355 case $ac_init_help in 1356 short | recursive ) echo "Configuration of tkimgtiff 1.4:";; 1357 esac 1358 cat <<\_ACEOF 1359 1360Optional Features: 1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1363 --enable-threads build with threads 1364 --enable-shared build and link with shared libraries (default: on) 1365 --enable-64bit enable 64bit support (default: off) 1366 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1367 --disable-rpath disable rpath support (default: on) 1368 --enable-wince enable Win/CE support (where applicable) 1369 --enable-symbols build with debugging symbols (default: off) 1370 1371Optional Packages: 1372 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1373 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1374 --with-tcl directory containing tcl configuration 1375 (tclConfig.sh) 1376 --with-tk directory containing tk configuration (tkConfig.sh) 1377 --with-tkimg directory containing tkimg configuration (tkimgConfig.sh) 1378 --with-tifftcl directory containing tifftcl configuration (tifftclConfig.sh) 1379 --with-jpegtcl directory containing jpegtcl configuration (jpegtclConfig.sh) 1380 --with-zlibtcl directory containing zlibtcl configuration (zlibtclConfig.sh) 1381 --with-tclinclude directory containing the public Tcl header files 1382 --with-tkinclude directory containing the public Tk header files 1383 --with-celib=DIR use Windows/CE support library from DIR 1384 --with-x use the X Window System 1385 1386Some influential environment variables: 1387 CC C compiler command 1388 CFLAGS C compiler flags 1389 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1390 nonstandard directory <lib dir> 1391 LIBS libraries to pass to the linker, e.g. -l<library> 1392 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1393 you have headers in a nonstandard directory <include dir> 1394 CPP C preprocessor 1395 XMKMF Path to xmkmf, Makefile generator for X Window System 1396 1397Use these variables to override the choices made by `configure' or to help 1398it to find libraries and programs with nonstandard names/locations. 1399 1400_ACEOF 1401ac_status=$? 1402fi 1403 1404if test "$ac_init_help" = "recursive"; then 1405 # If there are subdirs, report their specific --help. 1406 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1407 test -d "$ac_dir" || continue 1408 ac_builddir=. 1409 1410case "$ac_dir" in 1411.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1412*) 1413 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1414 # A ".." for each directory in $ac_dir_suffix. 1415 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1416 case $ac_top_builddir_sub in 1417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1419 esac ;; 1420esac 1421ac_abs_top_builddir=$ac_pwd 1422ac_abs_builddir=$ac_pwd$ac_dir_suffix 1423# for backward compatibility: 1424ac_top_builddir=$ac_top_build_prefix 1425 1426case $srcdir in 1427 .) # We are building in place. 1428 ac_srcdir=. 1429 ac_top_srcdir=$ac_top_builddir_sub 1430 ac_abs_top_srcdir=$ac_pwd ;; 1431 [\\/]* | ?:[\\/]* ) # Absolute name. 1432 ac_srcdir=$srcdir$ac_dir_suffix; 1433 ac_top_srcdir=$srcdir 1434 ac_abs_top_srcdir=$srcdir ;; 1435 *) # Relative name. 1436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1437 ac_top_srcdir=$ac_top_build_prefix$srcdir 1438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1439esac 1440ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1441 1442 cd "$ac_dir" || { ac_status=$?; continue; } 1443 # Check for guested configure. 1444 if test -f "$ac_srcdir/configure.gnu"; then 1445 echo && 1446 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1447 elif test -f "$ac_srcdir/configure"; then 1448 echo && 1449 $SHELL "$ac_srcdir/configure" --help=recursive 1450 else 1451 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1452 fi || ac_status=$? 1453 cd "$ac_pwd" || { ac_status=$?; break; } 1454 done 1455fi 1456 1457test -n "$ac_init_help" && exit $ac_status 1458if $ac_init_version; then 1459 cat <<\_ACEOF 1460tkimgtiff configure 1.4 1461generated by GNU Autoconf 2.61 1462 1463Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14642002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1465This configure script is free software; the Free Software Foundation 1466gives unlimited permission to copy, distribute and modify it. 1467_ACEOF 1468 exit 1469fi 1470cat >config.log <<_ACEOF 1471This file contains any messages produced by compilers while 1472running configure, to aid debugging if configure makes a mistake. 1473 1474It was created by tkimgtiff $as_me 1.4, which was 1475generated by GNU Autoconf 2.61. Invocation command line was 1476 1477 $ $0 $@ 1478 1479_ACEOF 1480exec 5>>config.log 1481{ 1482cat <<_ASUNAME 1483## --------- ## 1484## Platform. ## 1485## --------- ## 1486 1487hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1488uname -m = `(uname -m) 2>/dev/null || echo unknown` 1489uname -r = `(uname -r) 2>/dev/null || echo unknown` 1490uname -s = `(uname -s) 2>/dev/null || echo unknown` 1491uname -v = `(uname -v) 2>/dev/null || echo unknown` 1492 1493/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1494/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1495 1496/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1497/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1498/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1499/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1500/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1501/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1502/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1503 1504_ASUNAME 1505 1506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1507for as_dir in $PATH 1508do 1509 IFS=$as_save_IFS 1510 test -z "$as_dir" && as_dir=. 1511 echo "PATH: $as_dir" 1512done 1513IFS=$as_save_IFS 1514 1515} >&5 1516 1517cat >&5 <<_ACEOF 1518 1519 1520## ----------- ## 1521## Core tests. ## 1522## ----------- ## 1523 1524_ACEOF 1525 1526 1527# Keep a trace of the command line. 1528# Strip out --no-create and --no-recursion so they do not pile up. 1529# Strip out --silent because we don't want to record it for future runs. 1530# Also quote any args containing shell meta-characters. 1531# Make two passes to allow for proper duplicate-argument suppression. 1532ac_configure_args= 1533ac_configure_args0= 1534ac_configure_args1= 1535ac_must_keep_next=false 1536for ac_pass in 1 2 1537do 1538 for ac_arg 1539 do 1540 case $ac_arg in 1541 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1543 | -silent | --silent | --silen | --sile | --sil) 1544 continue ;; 1545 *\'*) 1546 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1547 esac 1548 case $ac_pass in 1549 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1550 2) 1551 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1552 if test $ac_must_keep_next = true; then 1553 ac_must_keep_next=false # Got value, back to normal. 1554 else 1555 case $ac_arg in 1556 *=* | --config-cache | -C | -disable-* | --disable-* \ 1557 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1558 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1559 | -with-* | --with-* | -without-* | --without-* | --x) 1560 case "$ac_configure_args0 " in 1561 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1562 esac 1563 ;; 1564 -* ) ac_must_keep_next=true ;; 1565 esac 1566 fi 1567 ac_configure_args="$ac_configure_args '$ac_arg'" 1568 ;; 1569 esac 1570 done 1571done 1572$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1573$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1574 1575# When interrupted or exit'd, cleanup temporary files, and complete 1576# config.log. We remove comments because anyway the quotes in there 1577# would cause problems or look ugly. 1578# WARNING: Use '\'' to represent an apostrophe within the trap. 1579# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1580trap 'exit_status=$? 1581 # Save into config.log some information that might help in debugging. 1582 { 1583 echo 1584 1585 cat <<\_ASBOX 1586## ---------------- ## 1587## Cache variables. ## 1588## ---------------- ## 1589_ASBOX 1590 echo 1591 # The following way of writing the cache mishandles newlines in values, 1592( 1593 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1594 eval ac_val=\$$ac_var 1595 case $ac_val in #( 1596 *${as_nl}*) 1597 case $ac_var in #( 1598 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1599echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1600 esac 1601 case $ac_var in #( 1602 _ | IFS | as_nl) ;; #( 1603 *) $as_unset $ac_var ;; 1604 esac ;; 1605 esac 1606 done 1607 (set) 2>&1 | 1608 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1609 *${as_nl}ac_space=\ *) 1610 sed -n \ 1611 "s/'\''/'\''\\\\'\'''\''/g; 1612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1613 ;; #( 1614 *) 1615 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1616 ;; 1617 esac | 1618 sort 1619) 1620 echo 1621 1622 cat <<\_ASBOX 1623## ----------------- ## 1624## Output variables. ## 1625## ----------------- ## 1626_ASBOX 1627 echo 1628 for ac_var in $ac_subst_vars 1629 do 1630 eval ac_val=\$$ac_var 1631 case $ac_val in 1632 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1633 esac 1634 echo "$ac_var='\''$ac_val'\''" 1635 done | sort 1636 echo 1637 1638 if test -n "$ac_subst_files"; then 1639 cat <<\_ASBOX 1640## ------------------- ## 1641## File substitutions. ## 1642## ------------------- ## 1643_ASBOX 1644 echo 1645 for ac_var in $ac_subst_files 1646 do 1647 eval ac_val=\$$ac_var 1648 case $ac_val in 1649 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1650 esac 1651 echo "$ac_var='\''$ac_val'\''" 1652 done | sort 1653 echo 1654 fi 1655 1656 if test -s confdefs.h; then 1657 cat <<\_ASBOX 1658## ----------- ## 1659## confdefs.h. ## 1660## ----------- ## 1661_ASBOX 1662 echo 1663 cat confdefs.h 1664 echo 1665 fi 1666 test "$ac_signal" != 0 && 1667 echo "$as_me: caught signal $ac_signal" 1668 echo "$as_me: exit $exit_status" 1669 } >&5 1670 rm -f core *.core core.conftest.* && 1671 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1672 exit $exit_status 1673' 0 1674for ac_signal in 1 2 13 15; do 1675 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1676done 1677ac_signal=0 1678 1679# confdefs.h avoids OS command line length limits that DEFS can exceed. 1680rm -f -r conftest* confdefs.h 1681 1682# Predefined preprocessor variables. 1683 1684cat >>confdefs.h <<_ACEOF 1685#define PACKAGE_NAME "$PACKAGE_NAME" 1686_ACEOF 1687 1688 1689cat >>confdefs.h <<_ACEOF 1690#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1691_ACEOF 1692 1693 1694cat >>confdefs.h <<_ACEOF 1695#define PACKAGE_VERSION "$PACKAGE_VERSION" 1696_ACEOF 1697 1698 1699cat >>confdefs.h <<_ACEOF 1700#define PACKAGE_STRING "$PACKAGE_STRING" 1701_ACEOF 1702 1703 1704cat >>confdefs.h <<_ACEOF 1705#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1706_ACEOF 1707 1708 1709# Let the site file select an alternate cache file if it wants to. 1710# Prefer explicitly selected file to automatically selected ones. 1711if test -n "$CONFIG_SITE"; then 1712 set x "$CONFIG_SITE" 1713elif test "x$prefix" != xNONE; then 1714 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1715else 1716 set x "$ac_default_prefix/share/config.site" \ 1717 "$ac_default_prefix/etc/config.site" 1718fi 1719shift 1720for ac_site_file 1721do 1722 if test -r "$ac_site_file"; then 1723 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1724echo "$as_me: loading site script $ac_site_file" >&6;} 1725 sed 's/^/| /' "$ac_site_file" >&5 1726 . "$ac_site_file" 1727 fi 1728done 1729 1730if test -r "$cache_file"; then 1731 # Some versions of bash will fail to source /dev/null (special 1732 # files actually), so we avoid doing that. 1733 if test -f "$cache_file"; then 1734 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1735echo "$as_me: loading cache $cache_file" >&6;} 1736 case $cache_file in 1737 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1738 *) . "./$cache_file";; 1739 esac 1740 fi 1741else 1742 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1743echo "$as_me: creating cache $cache_file" >&6;} 1744 >$cache_file 1745fi 1746 1747# Check that the precious variables saved in the cache have kept the same 1748# value. 1749ac_cache_corrupted=false 1750for ac_var in $ac_precious_vars; do 1751 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1752 eval ac_new_set=\$ac_env_${ac_var}_set 1753 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1754 eval ac_new_val=\$ac_env_${ac_var}_value 1755 case $ac_old_set,$ac_new_set in 1756 set,) 1757 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1758echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1759 ac_cache_corrupted=: ;; 1760 ,set) 1761 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1762echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1763 ac_cache_corrupted=: ;; 1764 ,);; 1765 *) 1766 if test "x$ac_old_val" != "x$ac_new_val"; then 1767 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1768echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1769 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1770echo "$as_me: former value: $ac_old_val" >&2;} 1771 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1772echo "$as_me: current value: $ac_new_val" >&2;} 1773 ac_cache_corrupted=: 1774 fi;; 1775 esac 1776 # Pass precious variables to config.status. 1777 if test "$ac_new_set" = set; then 1778 case $ac_new_val in 1779 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1780 *) ac_arg=$ac_var=$ac_new_val ;; 1781 esac 1782 case " $ac_configure_args " in 1783 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1784 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1785 esac 1786 fi 1787done 1788if $ac_cache_corrupted; then 1789 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1790echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1791 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1792echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1793 { (exit 1); exit 1; }; } 1794fi 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820ac_ext=c 1821ac_cpp='$CPP $CPPFLAGS' 1822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1824ac_compiler_gnu=$ac_cv_c_compiler_gnu 1825 1826 1827 1828 1829 # TEA extensions pass this us the version of TEA they think they 1830 # are compatible with. 1831 TEA_VERSION="3.9" 1832 1833 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1834echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1835 if test x"${PACKAGE_NAME}" = x ; then 1836 { { echo "$as_me:$LINENO: error: 1837The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1838echo "$as_me: error: 1839The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1840 { (exit 1); exit 1; }; } 1841 fi 1842 if test x"3.9" = x ; then 1843 { { echo "$as_me:$LINENO: error: 1844TEA version not specified." >&5 1845echo "$as_me: error: 1846TEA version not specified." >&2;} 1847 { (exit 1); exit 1; }; } 1848 elif test "3.9" != "${TEA_VERSION}" ; then 1849 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1850echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1851 else 1852 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1853echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1854 fi 1855 case "`uname -s`" in 1856 *win32*|*WIN32*|*MINGW32_*) 1857 # Extract the first word of "cygpath", so it can be a program name with args. 1858set dummy cygpath; ac_word=$2 1859{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1861if test "${ac_cv_prog_CYGPATH+set}" = set; then 1862 echo $ECHO_N "(cached) $ECHO_C" >&6 1863else 1864 if test -n "$CYGPATH"; then 1865 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1866else 1867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1868for as_dir in $PATH 1869do 1870 IFS=$as_save_IFS 1871 test -z "$as_dir" && as_dir=. 1872 for ac_exec_ext in '' $ac_executable_extensions; do 1873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1874 ac_cv_prog_CYGPATH="cygpath -w" 1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1876 break 2 1877 fi 1878done 1879done 1880IFS=$as_save_IFS 1881 1882 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1883fi 1884fi 1885CYGPATH=$ac_cv_prog_CYGPATH 1886if test -n "$CYGPATH"; then 1887 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1888echo "${ECHO_T}$CYGPATH" >&6; } 1889else 1890 { echo "$as_me:$LINENO: result: no" >&5 1891echo "${ECHO_T}no" >&6; } 1892fi 1893 1894 1895 EXEEXT=".exe" 1896 TEA_PLATFORM="windows" 1897 ;; 1898 *CYGWIN_*) 1899 CYGPATH=echo 1900 EXEEXT=".exe" 1901 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1902 ;; 1903 *) 1904 CYGPATH=echo 1905 EXEEXT="" 1906 TEA_PLATFORM="unix" 1907 ;; 1908 esac 1909 1910 # Check if exec_prefix is set. If not use fall back to prefix. 1911 # Note when adjusted, so that TEA_PREFIX can correct for this. 1912 # This is needed for recursive configures, since autoconf propagates 1913 # $prefix, but not $exec_prefix (doh!). 1914 if test x$exec_prefix = xNONE ; then 1915 exec_prefix_default=yes 1916 exec_prefix=$prefix 1917 fi 1918 1919 1920 1921 1922 # This package name must be replaced statically for AC_SUBST to work 1923 1924 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1925 1926 1927 # We AC_SUBST these here to ensure they are subst'ed, 1928 # in case the user doesn't call TEA_ADD_... 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938ac_aux_dir= 1939for ac_dir in ../tclconfig "$srcdir"/../tclconfig; do 1940 if test -f "$ac_dir/install-sh"; then 1941 ac_aux_dir=$ac_dir 1942 ac_install_sh="$ac_aux_dir/install-sh -c" 1943 break 1944 elif test -f "$ac_dir/install.sh"; then 1945 ac_aux_dir=$ac_dir 1946 ac_install_sh="$ac_aux_dir/install.sh -c" 1947 break 1948 elif test -f "$ac_dir/shtool"; then 1949 ac_aux_dir=$ac_dir 1950 ac_install_sh="$ac_aux_dir/shtool install -c" 1951 break 1952 fi 1953done 1954if test -z "$ac_aux_dir"; then 1955 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&5 1956echo "$as_me: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&2;} 1957 { (exit 1); exit 1; }; } 1958fi 1959 1960# These three variables are undocumented and unsupported, 1961# and are intended to be withdrawn in a future Autoconf release. 1962# They can cause serious problems if a builder's source tree is in a directory 1963# whose full name contains unusual characters. 1964ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1965ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1966ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1967 1968 1969 1970PHIMGTYPE="tiff" 1971CPACKAGE="Tkimgtiff" 1972PACKAGE_TCLNAME="img::tiff" 1973 1974 1975#-------------------------------------------------------------------- 1976# Load the tclConfig.sh file 1977# Load the tkConfig.sh file 1978#-------------------------------------------------------------------- 1979 1980 1981 1982 # 1983 # Ok, lets find the tcl configuration 1984 # First, look for one uninstalled. 1985 # the alternative search directory is invoked by --with-tcl 1986 # 1987 1988 if test x"${no_tcl}" = x ; then 1989 # we reset no_tcl in case something fails here 1990 no_tcl=true 1991 1992# Check whether --with-tcl was given. 1993if test "${with_tcl+set}" = set; then 1994 withval=$with_tcl; with_tclconfig="${withval}" 1995fi 1996 1997 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1998echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1999 if test "${ac_cv_c_tclconfig+set}" = set; then 2000 echo $ECHO_N "(cached) $ECHO_C" >&6 2001else 2002 2003 2004 # First check to see if --with-tcl was specified. 2005 if test x"${with_tclconfig}" != x ; then 2006 case "${with_tclconfig}" in 2007 */tclConfig.sh ) 2008 if test -f "${with_tclconfig}"; then 2009 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 2010echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 2011 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 2012 fi ;; 2013 esac 2014 if test -f "${with_tclconfig}/tclConfig.sh" ; then 2015 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 2016 else 2017 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 2018echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 2019 { (exit 1); exit 1; }; } 2020 fi 2021 fi 2022 2023 # then check for a private Tcl installation 2024 if test x"${ac_cv_c_tclconfig}" = x ; then 2025 for i in \ 2026 ../tcl \ 2027 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2028 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 2029 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 2030 ../../tcl \ 2031 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2032 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 2033 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 2034 ../../../tcl \ 2035 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2036 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2037 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2038 if test "${TEA_PLATFORM}" = "windows" \ 2039 -a -f "$i/win/tclConfig.sh" ; then 2040 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2041 break 2042 fi 2043 if test -f "$i/unix/tclConfig.sh" ; then 2044 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2045 break 2046 fi 2047 done 2048 fi 2049 2050 # on Darwin, check in Framework installation locations 2051 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2052 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2053 `ls -d /Library/Frameworks 2>/dev/null` \ 2054 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2055 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2056 ; do 2057 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2058 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2059 break 2060 fi 2061 done 2062 fi 2063 2064 # TEA specific: on Windows, check in common installation locations 2065 if test "${TEA_PLATFORM}" = "windows" \ 2066 -a x"${ac_cv_c_tclconfig}" = x ; then 2067 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2068 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2069 ; do 2070 if test -f "$i/tclConfig.sh" ; then 2071 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2072 break 2073 fi 2074 done 2075 fi 2076 2077 # check in a few common install locations 2078 if test x"${ac_cv_c_tclconfig}" = x ; then 2079 for i in `ls -d ${libdir} 2>/dev/null` \ 2080 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2081 `ls -d ${prefix}/lib 2>/dev/null` \ 2082 `ls -d /usr/local/lib 2>/dev/null` \ 2083 `ls -d /usr/contrib/lib 2>/dev/null` \ 2084 `ls -d /usr/lib 2>/dev/null` \ 2085 `ls -d /usr/lib64 2>/dev/null` \ 2086 ; do 2087 if test -f "$i/tclConfig.sh" ; then 2088 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2089 break 2090 fi 2091 done 2092 fi 2093 2094 # check in a few other private locations 2095 if test x"${ac_cv_c_tclconfig}" = x ; then 2096 for i in \ 2097 ${srcdir}/../tcl \ 2098 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2099 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2100 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2101 if test "${TEA_PLATFORM}" = "windows" \ 2102 -a -f "$i/win/tclConfig.sh" ; then 2103 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2104 break 2105 fi 2106 if test -f "$i/unix/tclConfig.sh" ; then 2107 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2108 break 2109 fi 2110 done 2111 fi 2112 2113fi 2114 2115 2116 if test x"${ac_cv_c_tclconfig}" = x ; then 2117 TCL_BIN_DIR="# no Tcl configs found" 2118 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2119echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2120 { (exit 1); exit 1; }; } 2121 else 2122 no_tcl= 2123 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2124 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2125echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2126 fi 2127 fi 2128 2129 2130 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2131echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2132 2133 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2134 { echo "$as_me:$LINENO: result: loading" >&5 2135echo "${ECHO_T}loading" >&6; } 2136 . "${TCL_BIN_DIR}/tclConfig.sh" 2137 else 2138 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2139echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2140 fi 2141 2142 # eval is required to do the TCL_DBGX substitution 2143 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2144 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2145 2146 # If the TCL_BIN_DIR is the build directory (not the install directory), 2147 # then set the common variable name to the value of the build variables. 2148 # For example, the variable TCL_LIB_SPEC will be set to the value 2149 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2150 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2151 # installed and uninstalled version of Tcl. 2152 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2153 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2154 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2155 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2156 elif test "`uname -s`" = "Darwin"; then 2157 # If Tcl was built as a framework, attempt to use the libraries 2158 # from the framework at the given location so that linking works 2159 # against Tcl.framework installed in an arbitrary location. 2160 case ${TCL_DEFS} in 2161 *TCL_FRAMEWORK*) 2162 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2163 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2164 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2165 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2166 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2167 break 2168 fi 2169 done 2170 fi 2171 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2172 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2173 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2174 fi 2175 ;; 2176 esac 2177 fi 2178 2179 # eval is required to do the TCL_DBGX substitution 2180 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2181 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2182 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2183 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 case "`uname -s`" in 2199 *CYGWIN_*) 2200 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2201echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2202 case ${TCL_EXTRA_CFLAGS} in 2203 *-mwin32*|*-mno-cygwin*) 2204 TEA_PLATFORM="windows" 2205 CFLAGS="$CFLAGS -mwin32" 2206 { echo "$as_me:$LINENO: result: win32" >&5 2207echo "${ECHO_T}win32" >&6; } 2208 ;; 2209 *) 2210 TEA_PLATFORM="unix" 2211 { echo "$as_me:$LINENO: result: unix" >&5 2212echo "${ECHO_T}unix" >&6; } 2213 ;; 2214 esac 2215 EXEEXT=".exe" 2216 ;; 2217 *) 2218 ;; 2219 esac 2220 2221 # Do this here as we have fully defined TEA_PLATFORM now 2222 if test "${TEA_PLATFORM}" = "windows" ; then 2223 # The BUILD_$pkg is to define the correct extern storage class 2224 # handling when making this package 2225 2226cat >>confdefs.h <<_ACEOF 2227#define BUILD_${PACKAGE_NAME} 2228_ACEOF 2229 2230 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2231 fi 2232 2233 # TEA specific: 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 # 2244 # Ok, lets find the tk configuration 2245 # First, look for one uninstalled. 2246 # the alternative search directory is invoked by --with-tk 2247 # 2248 2249 if test x"${no_tk}" = x ; then 2250 # we reset no_tk in case something fails here 2251 no_tk=true 2252 2253# Check whether --with-tk was given. 2254if test "${with_tk+set}" = set; then 2255 withval=$with_tk; with_tkconfig="${withval}" 2256fi 2257 2258 { echo "$as_me:$LINENO: checking for Tk configuration" >&5 2259echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6; } 2260 if test "${ac_cv_c_tkconfig+set}" = set; then 2261 echo $ECHO_N "(cached) $ECHO_C" >&6 2262else 2263 2264 2265 # First check to see if --with-tkconfig was specified. 2266 if test x"${with_tkconfig}" != x ; then 2267 case "${with_tkconfig}" in 2268 */tkConfig.sh ) 2269 if test -f "${with_tkconfig}"; then 2270 { echo "$as_me:$LINENO: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5 2271echo "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;} 2272 with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`" 2273 fi ;; 2274 esac 2275 if test -f "${with_tkconfig}/tkConfig.sh" ; then 2276 ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`" 2277 else 2278 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 2279echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} 2280 { (exit 1); exit 1; }; } 2281 fi 2282 fi 2283 2284 # then check for a private Tk library 2285 if test x"${ac_cv_c_tkconfig}" = x ; then 2286 for i in \ 2287 ../tk \ 2288 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2289 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ 2290 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ 2291 ../../tk \ 2292 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2293 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ 2294 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ 2295 ../../../tk \ 2296 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2297 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ 2298 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do 2299 if test "${TEA_PLATFORM}" = "windows" \ 2300 -a -f "$i/win/tkConfig.sh" ; then 2301 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2302 break 2303 fi 2304 if test -f "$i/unix/tkConfig.sh" ; then 2305 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2306 break 2307 fi 2308 done 2309 fi 2310 2311 # on Darwin, check in Framework installation locations 2312 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then 2313 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2314 `ls -d /Library/Frameworks 2>/dev/null` \ 2315 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2316 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2317 ; do 2318 if test -f "$i/Tk.framework/tkConfig.sh" ; then 2319 ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`" 2320 break 2321 fi 2322 done 2323 fi 2324 2325 # check in a few common install locations 2326 if test x"${ac_cv_c_tkconfig}" = x ; then 2327 for i in `ls -d ${libdir} 2>/dev/null` \ 2328 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2329 `ls -d ${prefix}/lib 2>/dev/null` \ 2330 `ls -d /usr/local/lib 2>/dev/null` \ 2331 `ls -d /usr/contrib/lib 2>/dev/null` \ 2332 `ls -d /usr/lib 2>/dev/null` \ 2333 `ls -d /usr/lib64 2>/dev/null` \ 2334 ; do 2335 if test -f "$i/tkConfig.sh" ; then 2336 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2337 break 2338 fi 2339 done 2340 fi 2341 2342 # TEA specific: on Windows, check in common installation locations 2343 if test "${TEA_PLATFORM}" = "windows" \ 2344 -a x"${ac_cv_c_tkconfig}" = x ; then 2345 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2346 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2347 ; do 2348 if test -f "$i/tkConfig.sh" ; then 2349 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2350 break 2351 fi 2352 done 2353 fi 2354 2355 # check in a few other private locations 2356 if test x"${ac_cv_c_tkconfig}" = x ; then 2357 for i in \ 2358 ${srcdir}/../tk \ 2359 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2360 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ 2361 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do 2362 if test "${TEA_PLATFORM}" = "windows" \ 2363 -a -f "$i/win/tkConfig.sh" ; then 2364 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2365 break 2366 fi 2367 if test -f "$i/unix/tkConfig.sh" ; then 2368 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2369 break 2370 fi 2371 done 2372 fi 2373 2374fi 2375 2376 2377 if test x"${ac_cv_c_tkconfig}" = x ; then 2378 TK_BIN_DIR="# no Tk configs found" 2379 { { echo "$as_me:$LINENO: error: Can't find Tk configuration definitions" >&5 2380echo "$as_me: error: Can't find Tk configuration definitions" >&2;} 2381 { (exit 1); exit 1; }; } 2382 else 2383 no_tk= 2384 TK_BIN_DIR="${ac_cv_c_tkconfig}" 2385 { echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 2386echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2387 fi 2388 fi 2389 2390 2391 { echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 2392echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6; } 2393 2394 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then 2395 { echo "$as_me:$LINENO: result: loading" >&5 2396echo "${ECHO_T}loading" >&6; } 2397 . "${TK_BIN_DIR}/tkConfig.sh" 2398 else 2399 { echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 2400echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2401 fi 2402 2403 # eval is required to do the TK_DBGX substitution 2404 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" 2405 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" 2406 2407 # If the TK_BIN_DIR is the build directory (not the install directory), 2408 # then set the common variable name to the value of the build variables. 2409 # For example, the variable TK_LIB_SPEC will be set to the value 2410 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC 2411 # instead of TK_BUILD_LIB_SPEC since it will work with both an 2412 # installed and uninstalled version of Tcl. 2413 if test -f "${TK_BIN_DIR}/Makefile" ; then 2414 TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}" 2415 TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}" 2416 TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}" 2417 elif test "`uname -s`" = "Darwin"; then 2418 # If Tk was built as a framework, attempt to use the libraries 2419 # from the framework at the given location so that linking works 2420 # against Tk.framework installed in an arbitrary location. 2421 case ${TK_DEFS} in 2422 *TK_FRAMEWORK*) 2423 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then 2424 for i in "`cd "${TK_BIN_DIR}"; pwd`" \ 2425 "`cd "${TK_BIN_DIR}"/../..; pwd`"; do 2426 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then 2427 TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}" 2428 break 2429 fi 2430 done 2431 fi 2432 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then 2433 TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}" 2434 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" 2435 fi 2436 ;; 2437 esac 2438 fi 2439 2440 # eval is required to do the TK_DBGX substitution 2441 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" 2442 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" 2443 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" 2444 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" 2445 2446 # TEA specific: Ensure windowingsystem is defined 2447 if test "${TEA_PLATFORM}" = "unix" ; then 2448 case ${TK_DEFS} in 2449 *MAC_OSX_TK*) 2450 2451cat >>confdefs.h <<\_ACEOF 2452#define MAC_OSX_TK 1 2453_ACEOF 2454 2455 TEA_WINDOWINGSYSTEM="aqua" 2456 ;; 2457 *) 2458 TEA_WINDOWINGSYSTEM="x11" 2459 ;; 2460 esac 2461 elif test "${TEA_PLATFORM}" = "windows" ; then 2462 TEA_WINDOWINGSYSTEM="win32" 2463 fi 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 # TEA specific: 2478 2479 2480 2481 2482#----------------------------------------------------------------------- 2483# Handle the --prefix=... option by defaulting to what Tcl gave. 2484# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2485#----------------------------------------------------------------------- 2486 2487 2488 if test "${prefix}" = "NONE"; then 2489 prefix_default=yes 2490 if test x"${TCL_PREFIX}" != x; then 2491 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2492echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2493 prefix=${TCL_PREFIX} 2494 else 2495 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2496echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2497 prefix=/usr/local 2498 fi 2499 fi 2500 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2501 -o x"${exec_prefix_default}" = x"yes" ; then 2502 if test x"${TCL_EXEC_PREFIX}" != x; then 2503 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2504echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2505 exec_prefix=${TCL_EXEC_PREFIX} 2506 else 2507 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2508echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2509 exec_prefix=$prefix 2510 fi 2511 fi 2512 2513 2514#----------------------------------------------------------------------- 2515# Standard compiler checks. 2516# This sets up CC by using the CC env var, or looks for gcc otherwise. 2517# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2518# the basic setup necessary to compile executables. 2519#----------------------------------------------------------------------- 2520 2521 2522 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2523 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2524 2525 # If the user did not set CFLAGS, set it now to keep 2526 # the AC_PROG_CC macro from adding "-g -O2". 2527 if test "${CFLAGS+set}" != "set" ; then 2528 CFLAGS="" 2529 fi 2530 2531 ac_ext=c 2532ac_cpp='$CPP $CPPFLAGS' 2533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2535ac_compiler_gnu=$ac_cv_c_compiler_gnu 2536if test -n "$ac_tool_prefix"; then 2537 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2538set dummy ${ac_tool_prefix}gcc; ac_word=$2 2539{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2541if test "${ac_cv_prog_CC+set}" = set; then 2542 echo $ECHO_N "(cached) $ECHO_C" >&6 2543else 2544 if test -n "$CC"; then 2545 ac_cv_prog_CC="$CC" # Let the user override the test. 2546else 2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2548for as_dir in $PATH 2549do 2550 IFS=$as_save_IFS 2551 test -z "$as_dir" && as_dir=. 2552 for ac_exec_ext in '' $ac_executable_extensions; do 2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2554 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2556 break 2 2557 fi 2558done 2559done 2560IFS=$as_save_IFS 2561 2562fi 2563fi 2564CC=$ac_cv_prog_CC 2565if test -n "$CC"; then 2566 { echo "$as_me:$LINENO: result: $CC" >&5 2567echo "${ECHO_T}$CC" >&6; } 2568else 2569 { echo "$as_me:$LINENO: result: no" >&5 2570echo "${ECHO_T}no" >&6; } 2571fi 2572 2573 2574fi 2575if test -z "$ac_cv_prog_CC"; then 2576 ac_ct_CC=$CC 2577 # Extract the first word of "gcc", so it can be a program name with args. 2578set dummy gcc; ac_word=$2 2579{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2581if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2582 echo $ECHO_N "(cached) $ECHO_C" >&6 2583else 2584 if test -n "$ac_ct_CC"; then 2585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2586else 2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2588for as_dir in $PATH 2589do 2590 IFS=$as_save_IFS 2591 test -z "$as_dir" && as_dir=. 2592 for ac_exec_ext in '' $ac_executable_extensions; do 2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2594 ac_cv_prog_ac_ct_CC="gcc" 2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2596 break 2 2597 fi 2598done 2599done 2600IFS=$as_save_IFS 2601 2602fi 2603fi 2604ac_ct_CC=$ac_cv_prog_ac_ct_CC 2605if test -n "$ac_ct_CC"; then 2606 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2607echo "${ECHO_T}$ac_ct_CC" >&6; } 2608else 2609 { echo "$as_me:$LINENO: result: no" >&5 2610echo "${ECHO_T}no" >&6; } 2611fi 2612 2613 if test "x$ac_ct_CC" = x; then 2614 CC="" 2615 else 2616 case $cross_compiling:$ac_tool_warned in 2617yes:) 2618{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2619whose name does not start with the host triplet. If you think this 2620configuration is useful to you, please write to autoconf@gnu.org." >&5 2621echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2622whose name does not start with the host triplet. If you think this 2623configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2624ac_tool_warned=yes ;; 2625esac 2626 CC=$ac_ct_CC 2627 fi 2628else 2629 CC="$ac_cv_prog_CC" 2630fi 2631 2632if test -z "$CC"; then 2633 if test -n "$ac_tool_prefix"; then 2634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2635set dummy ${ac_tool_prefix}cc; ac_word=$2 2636{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2638if test "${ac_cv_prog_CC+set}" = set; then 2639 echo $ECHO_N "(cached) $ECHO_C" >&6 2640else 2641 if test -n "$CC"; then 2642 ac_cv_prog_CC="$CC" # Let the user override the test. 2643else 2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2645for as_dir in $PATH 2646do 2647 IFS=$as_save_IFS 2648 test -z "$as_dir" && as_dir=. 2649 for ac_exec_ext in '' $ac_executable_extensions; do 2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2651 ac_cv_prog_CC="${ac_tool_prefix}cc" 2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2653 break 2 2654 fi 2655done 2656done 2657IFS=$as_save_IFS 2658 2659fi 2660fi 2661CC=$ac_cv_prog_CC 2662if test -n "$CC"; then 2663 { echo "$as_me:$LINENO: result: $CC" >&5 2664echo "${ECHO_T}$CC" >&6; } 2665else 2666 { echo "$as_me:$LINENO: result: no" >&5 2667echo "${ECHO_T}no" >&6; } 2668fi 2669 2670 2671 fi 2672fi 2673if test -z "$CC"; then 2674 # Extract the first word of "cc", so it can be a program name with args. 2675set dummy cc; ac_word=$2 2676{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2678if test "${ac_cv_prog_CC+set}" = set; then 2679 echo $ECHO_N "(cached) $ECHO_C" >&6 2680else 2681 if test -n "$CC"; then 2682 ac_cv_prog_CC="$CC" # Let the user override the test. 2683else 2684 ac_prog_rejected=no 2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2686for as_dir in $PATH 2687do 2688 IFS=$as_save_IFS 2689 test -z "$as_dir" && as_dir=. 2690 for ac_exec_ext in '' $ac_executable_extensions; do 2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2693 ac_prog_rejected=yes 2694 continue 2695 fi 2696 ac_cv_prog_CC="cc" 2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2698 break 2 2699 fi 2700done 2701done 2702IFS=$as_save_IFS 2703 2704if test $ac_prog_rejected = yes; then 2705 # We found a bogon in the path, so make sure we never use it. 2706 set dummy $ac_cv_prog_CC 2707 shift 2708 if test $# != 0; then 2709 # We chose a different compiler from the bogus one. 2710 # However, it has the same basename, so the bogon will be chosen 2711 # first if we set CC to just the basename; use the full file name. 2712 shift 2713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2714 fi 2715fi 2716fi 2717fi 2718CC=$ac_cv_prog_CC 2719if test -n "$CC"; then 2720 { echo "$as_me:$LINENO: result: $CC" >&5 2721echo "${ECHO_T}$CC" >&6; } 2722else 2723 { echo "$as_me:$LINENO: result: no" >&5 2724echo "${ECHO_T}no" >&6; } 2725fi 2726 2727 2728fi 2729if test -z "$CC"; then 2730 if test -n "$ac_tool_prefix"; then 2731 for ac_prog in cl.exe 2732 do 2733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2734set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2735{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2737if test "${ac_cv_prog_CC+set}" = set; then 2738 echo $ECHO_N "(cached) $ECHO_C" >&6 2739else 2740 if test -n "$CC"; then 2741 ac_cv_prog_CC="$CC" # Let the user override the test. 2742else 2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2744for as_dir in $PATH 2745do 2746 IFS=$as_save_IFS 2747 test -z "$as_dir" && as_dir=. 2748 for ac_exec_ext in '' $ac_executable_extensions; do 2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2752 break 2 2753 fi 2754done 2755done 2756IFS=$as_save_IFS 2757 2758fi 2759fi 2760CC=$ac_cv_prog_CC 2761if test -n "$CC"; then 2762 { echo "$as_me:$LINENO: result: $CC" >&5 2763echo "${ECHO_T}$CC" >&6; } 2764else 2765 { echo "$as_me:$LINENO: result: no" >&5 2766echo "${ECHO_T}no" >&6; } 2767fi 2768 2769 2770 test -n "$CC" && break 2771 done 2772fi 2773if test -z "$CC"; then 2774 ac_ct_CC=$CC 2775 for ac_prog in cl.exe 2776do 2777 # Extract the first word of "$ac_prog", so it can be a program name with args. 2778set dummy $ac_prog; ac_word=$2 2779{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2781if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2782 echo $ECHO_N "(cached) $ECHO_C" >&6 2783else 2784 if test -n "$ac_ct_CC"; then 2785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2786else 2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2788for as_dir in $PATH 2789do 2790 IFS=$as_save_IFS 2791 test -z "$as_dir" && as_dir=. 2792 for ac_exec_ext in '' $ac_executable_extensions; do 2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2794 ac_cv_prog_ac_ct_CC="$ac_prog" 2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2796 break 2 2797 fi 2798done 2799done 2800IFS=$as_save_IFS 2801 2802fi 2803fi 2804ac_ct_CC=$ac_cv_prog_ac_ct_CC 2805if test -n "$ac_ct_CC"; then 2806 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2807echo "${ECHO_T}$ac_ct_CC" >&6; } 2808else 2809 { echo "$as_me:$LINENO: result: no" >&5 2810echo "${ECHO_T}no" >&6; } 2811fi 2812 2813 2814 test -n "$ac_ct_CC" && break 2815done 2816 2817 if test "x$ac_ct_CC" = x; then 2818 CC="" 2819 else 2820 case $cross_compiling:$ac_tool_warned in 2821yes:) 2822{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2823whose name does not start with the host triplet. If you think this 2824configuration is useful to you, please write to autoconf@gnu.org." >&5 2825echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2826whose name does not start with the host triplet. If you think this 2827configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2828ac_tool_warned=yes ;; 2829esac 2830 CC=$ac_ct_CC 2831 fi 2832fi 2833 2834fi 2835 2836 2837test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2838See \`config.log' for more details." >&5 2839echo "$as_me: error: no acceptable C compiler found in \$PATH 2840See \`config.log' for more details." >&2;} 2841 { (exit 1); exit 1; }; } 2842 2843# Provide some information about the compiler. 2844echo "$as_me:$LINENO: checking for C compiler version" >&5 2845ac_compiler=`set X $ac_compile; echo $2` 2846{ (ac_try="$ac_compiler --version >&5" 2847case "(($ac_try" in 2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2849 *) ac_try_echo=$ac_try;; 2850esac 2851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2852 (eval "$ac_compiler --version >&5") 2>&5 2853 ac_status=$? 2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2855 (exit $ac_status); } 2856{ (ac_try="$ac_compiler -v >&5" 2857case "(($ac_try" in 2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2859 *) ac_try_echo=$ac_try;; 2860esac 2861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2862 (eval "$ac_compiler -v >&5") 2>&5 2863 ac_status=$? 2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2865 (exit $ac_status); } 2866{ (ac_try="$ac_compiler -V >&5" 2867case "(($ac_try" in 2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2869 *) ac_try_echo=$ac_try;; 2870esac 2871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2872 (eval "$ac_compiler -V >&5") 2>&5 2873 ac_status=$? 2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2875 (exit $ac_status); } 2876 2877cat >conftest.$ac_ext <<_ACEOF 2878/* confdefs.h. */ 2879_ACEOF 2880cat confdefs.h >>conftest.$ac_ext 2881cat >>conftest.$ac_ext <<_ACEOF 2882/* end confdefs.h. */ 2883 2884int 2885main () 2886{ 2887 2888 ; 2889 return 0; 2890} 2891_ACEOF 2892ac_clean_files_save=$ac_clean_files 2893ac_clean_files="$ac_clean_files a.out a.exe b.out" 2894# Try to create an executable without -o first, disregard a.out. 2895# It will help us diagnose broken compilers, and finding out an intuition 2896# of exeext. 2897{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2898echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2899ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2900# 2901# List of possible output files, starting from the most likely. 2902# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2903# only as a last resort. b.out is created by i960 compilers. 2904ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2905# 2906# The IRIX 6 linker writes into existing files which may not be 2907# executable, retaining their permissions. Remove them first so a 2908# subsequent execution test works. 2909ac_rmfiles= 2910for ac_file in $ac_files 2911do 2912 case $ac_file in 2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2914 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2915 esac 2916done 2917rm -f $ac_rmfiles 2918 2919if { (ac_try="$ac_link_default" 2920case "(($ac_try" in 2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2922 *) ac_try_echo=$ac_try;; 2923esac 2924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2925 (eval "$ac_link_default") 2>&5 2926 ac_status=$? 2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2928 (exit $ac_status); }; then 2929 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2930# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2931# in a Makefile. We should not override ac_cv_exeext if it was cached, 2932# so that the user can short-circuit this test for compilers unknown to 2933# Autoconf. 2934for ac_file in $ac_files '' 2935do 2936 test -f "$ac_file" || continue 2937 case $ac_file in 2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2939 ;; 2940 [ab].out ) 2941 # We found the default executable, but exeext='' is most 2942 # certainly right. 2943 break;; 2944 *.* ) 2945 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2946 then :; else 2947 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2948 fi 2949 # We set ac_cv_exeext here because the later test for it is not 2950 # safe: cross compilers may not add the suffix if given an `-o' 2951 # argument, so we may need to know it at that point already. 2952 # Even if this section looks crufty: it has the advantage of 2953 # actually working. 2954 break;; 2955 * ) 2956 break;; 2957 esac 2958done 2959test "$ac_cv_exeext" = no && ac_cv_exeext= 2960 2961else 2962 ac_file='' 2963fi 2964 2965{ echo "$as_me:$LINENO: result: $ac_file" >&5 2966echo "${ECHO_T}$ac_file" >&6; } 2967if test -z "$ac_file"; then 2968 echo "$as_me: failed program was:" >&5 2969sed 's/^/| /' conftest.$ac_ext >&5 2970 2971{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2972See \`config.log' for more details." >&5 2973echo "$as_me: error: C compiler cannot create executables 2974See \`config.log' for more details." >&2;} 2975 { (exit 77); exit 77; }; } 2976fi 2977 2978ac_exeext=$ac_cv_exeext 2979 2980# Check that the compiler produces executables we can run. If not, either 2981# the compiler is broken, or we cross compile. 2982{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2983echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2984# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2985# If not cross compiling, check that we can run a simple program. 2986if test "$cross_compiling" != yes; then 2987 if { ac_try='./$ac_file' 2988 { (case "(($ac_try" in 2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2990 *) ac_try_echo=$ac_try;; 2991esac 2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2993 (eval "$ac_try") 2>&5 2994 ac_status=$? 2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2996 (exit $ac_status); }; }; then 2997 cross_compiling=no 2998 else 2999 if test "$cross_compiling" = maybe; then 3000 cross_compiling=yes 3001 else 3002 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3003If you meant to cross compile, use \`--host'. 3004See \`config.log' for more details." >&5 3005echo "$as_me: error: cannot run C compiled programs. 3006If you meant to cross compile, use \`--host'. 3007See \`config.log' for more details." >&2;} 3008 { (exit 1); exit 1; }; } 3009 fi 3010 fi 3011fi 3012{ echo "$as_me:$LINENO: result: yes" >&5 3013echo "${ECHO_T}yes" >&6; } 3014 3015rm -f a.out a.exe conftest$ac_cv_exeext b.out 3016ac_clean_files=$ac_clean_files_save 3017# Check that the compiler produces executables we can run. If not, either 3018# the compiler is broken, or we cross compile. 3019{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3020echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3021{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3022echo "${ECHO_T}$cross_compiling" >&6; } 3023 3024{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3025echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3026if { (ac_try="$ac_link" 3027case "(($ac_try" in 3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3029 *) ac_try_echo=$ac_try;; 3030esac 3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3032 (eval "$ac_link") 2>&5 3033 ac_status=$? 3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3035 (exit $ac_status); }; then 3036 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3037# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3038# work properly (i.e., refer to `conftest.exe'), while it won't with 3039# `rm'. 3040for ac_file in conftest.exe conftest conftest.*; do 3041 test -f "$ac_file" || continue 3042 case $ac_file in 3043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3044 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3045 break;; 3046 * ) break;; 3047 esac 3048done 3049else 3050 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3051See \`config.log' for more details." >&5 3052echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3053See \`config.log' for more details." >&2;} 3054 { (exit 1); exit 1; }; } 3055fi 3056 3057rm -f conftest$ac_cv_exeext 3058{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3059echo "${ECHO_T}$ac_cv_exeext" >&6; } 3060 3061rm -f conftest.$ac_ext 3062EXEEXT=$ac_cv_exeext 3063ac_exeext=$EXEEXT 3064{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3065echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3066if test "${ac_cv_objext+set}" = set; then 3067 echo $ECHO_N "(cached) $ECHO_C" >&6 3068else 3069 cat >conftest.$ac_ext <<_ACEOF 3070/* confdefs.h. */ 3071_ACEOF 3072cat confdefs.h >>conftest.$ac_ext 3073cat >>conftest.$ac_ext <<_ACEOF 3074/* end confdefs.h. */ 3075 3076int 3077main () 3078{ 3079 3080 ; 3081 return 0; 3082} 3083_ACEOF 3084rm -f conftest.o conftest.obj 3085if { (ac_try="$ac_compile" 3086case "(($ac_try" in 3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3088 *) ac_try_echo=$ac_try;; 3089esac 3090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3091 (eval "$ac_compile") 2>&5 3092 ac_status=$? 3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3094 (exit $ac_status); }; then 3095 for ac_file in conftest.o conftest.obj conftest.*; do 3096 test -f "$ac_file" || continue; 3097 case $ac_file in 3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3099 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3100 break;; 3101 esac 3102done 3103else 3104 echo "$as_me: failed program was:" >&5 3105sed 's/^/| /' conftest.$ac_ext >&5 3106 3107{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3108See \`config.log' for more details." >&5 3109echo "$as_me: error: cannot compute suffix of object files: cannot compile 3110See \`config.log' for more details." >&2;} 3111 { (exit 1); exit 1; }; } 3112fi 3113 3114rm -f conftest.$ac_cv_objext conftest.$ac_ext 3115fi 3116{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3117echo "${ECHO_T}$ac_cv_objext" >&6; } 3118OBJEXT=$ac_cv_objext 3119ac_objext=$OBJEXT 3120{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3121echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3122if test "${ac_cv_c_compiler_gnu+set}" = set; then 3123 echo $ECHO_N "(cached) $ECHO_C" >&6 3124else 3125 cat >conftest.$ac_ext <<_ACEOF 3126/* confdefs.h. */ 3127_ACEOF 3128cat confdefs.h >>conftest.$ac_ext 3129cat >>conftest.$ac_ext <<_ACEOF 3130/* end confdefs.h. */ 3131 3132int 3133main () 3134{ 3135#ifndef __GNUC__ 3136 choke me 3137#endif 3138 3139 ; 3140 return 0; 3141} 3142_ACEOF 3143rm -f conftest.$ac_objext 3144if { (ac_try="$ac_compile" 3145case "(($ac_try" in 3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3147 *) ac_try_echo=$ac_try;; 3148esac 3149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3150 (eval "$ac_compile") 2>conftest.er1 3151 ac_status=$? 3152 grep -v '^ *+' conftest.er1 >conftest.err 3153 rm -f conftest.er1 3154 cat conftest.err >&5 3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3156 (exit $ac_status); } && { 3157 test -z "$ac_c_werror_flag" || 3158 test ! -s conftest.err 3159 } && test -s conftest.$ac_objext; then 3160 ac_compiler_gnu=yes 3161else 3162 echo "$as_me: failed program was:" >&5 3163sed 's/^/| /' conftest.$ac_ext >&5 3164 3165 ac_compiler_gnu=no 3166fi 3167 3168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3169ac_cv_c_compiler_gnu=$ac_compiler_gnu 3170 3171fi 3172{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3173echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3174GCC=`test $ac_compiler_gnu = yes && echo yes` 3175ac_test_CFLAGS=${CFLAGS+set} 3176ac_save_CFLAGS=$CFLAGS 3177{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3178echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3179if test "${ac_cv_prog_cc_g+set}" = set; then 3180 echo $ECHO_N "(cached) $ECHO_C" >&6 3181else 3182 ac_save_c_werror_flag=$ac_c_werror_flag 3183 ac_c_werror_flag=yes 3184 ac_cv_prog_cc_g=no 3185 CFLAGS="-g" 3186 cat >conftest.$ac_ext <<_ACEOF 3187/* confdefs.h. */ 3188_ACEOF 3189cat confdefs.h >>conftest.$ac_ext 3190cat >>conftest.$ac_ext <<_ACEOF 3191/* end confdefs.h. */ 3192 3193int 3194main () 3195{ 3196 3197 ; 3198 return 0; 3199} 3200_ACEOF 3201rm -f conftest.$ac_objext 3202if { (ac_try="$ac_compile" 3203case "(($ac_try" in 3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3205 *) ac_try_echo=$ac_try;; 3206esac 3207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3208 (eval "$ac_compile") 2>conftest.er1 3209 ac_status=$? 3210 grep -v '^ *+' conftest.er1 >conftest.err 3211 rm -f conftest.er1 3212 cat conftest.err >&5 3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3214 (exit $ac_status); } && { 3215 test -z "$ac_c_werror_flag" || 3216 test ! -s conftest.err 3217 } && test -s conftest.$ac_objext; then 3218 ac_cv_prog_cc_g=yes 3219else 3220 echo "$as_me: failed program was:" >&5 3221sed 's/^/| /' conftest.$ac_ext >&5 3222 3223 CFLAGS="" 3224 cat >conftest.$ac_ext <<_ACEOF 3225/* confdefs.h. */ 3226_ACEOF 3227cat confdefs.h >>conftest.$ac_ext 3228cat >>conftest.$ac_ext <<_ACEOF 3229/* end confdefs.h. */ 3230 3231int 3232main () 3233{ 3234 3235 ; 3236 return 0; 3237} 3238_ACEOF 3239rm -f conftest.$ac_objext 3240if { (ac_try="$ac_compile" 3241case "(($ac_try" in 3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3243 *) ac_try_echo=$ac_try;; 3244esac 3245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3246 (eval "$ac_compile") 2>conftest.er1 3247 ac_status=$? 3248 grep -v '^ *+' conftest.er1 >conftest.err 3249 rm -f conftest.er1 3250 cat conftest.err >&5 3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3252 (exit $ac_status); } && { 3253 test -z "$ac_c_werror_flag" || 3254 test ! -s conftest.err 3255 } && test -s conftest.$ac_objext; then 3256 : 3257else 3258 echo "$as_me: failed program was:" >&5 3259sed 's/^/| /' conftest.$ac_ext >&5 3260 3261 ac_c_werror_flag=$ac_save_c_werror_flag 3262 CFLAGS="-g" 3263 cat >conftest.$ac_ext <<_ACEOF 3264/* confdefs.h. */ 3265_ACEOF 3266cat confdefs.h >>conftest.$ac_ext 3267cat >>conftest.$ac_ext <<_ACEOF 3268/* end confdefs.h. */ 3269 3270int 3271main () 3272{ 3273 3274 ; 3275 return 0; 3276} 3277_ACEOF 3278rm -f conftest.$ac_objext 3279if { (ac_try="$ac_compile" 3280case "(($ac_try" in 3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3282 *) ac_try_echo=$ac_try;; 3283esac 3284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3285 (eval "$ac_compile") 2>conftest.er1 3286 ac_status=$? 3287 grep -v '^ *+' conftest.er1 >conftest.err 3288 rm -f conftest.er1 3289 cat conftest.err >&5 3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3291 (exit $ac_status); } && { 3292 test -z "$ac_c_werror_flag" || 3293 test ! -s conftest.err 3294 } && test -s conftest.$ac_objext; then 3295 ac_cv_prog_cc_g=yes 3296else 3297 echo "$as_me: failed program was:" >&5 3298sed 's/^/| /' conftest.$ac_ext >&5 3299 3300 3301fi 3302 3303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3304fi 3305 3306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3307fi 3308 3309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3310 ac_c_werror_flag=$ac_save_c_werror_flag 3311fi 3312{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3313echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3314if test "$ac_test_CFLAGS" = set; then 3315 CFLAGS=$ac_save_CFLAGS 3316elif test $ac_cv_prog_cc_g = yes; then 3317 if test "$GCC" = yes; then 3318 CFLAGS="-g -O2" 3319 else 3320 CFLAGS="-g" 3321 fi 3322else 3323 if test "$GCC" = yes; then 3324 CFLAGS="-O2" 3325 else 3326 CFLAGS= 3327 fi 3328fi 3329{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3330echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3331if test "${ac_cv_prog_cc_c89+set}" = set; then 3332 echo $ECHO_N "(cached) $ECHO_C" >&6 3333else 3334 ac_cv_prog_cc_c89=no 3335ac_save_CC=$CC 3336cat >conftest.$ac_ext <<_ACEOF 3337/* confdefs.h. */ 3338_ACEOF 3339cat confdefs.h >>conftest.$ac_ext 3340cat >>conftest.$ac_ext <<_ACEOF 3341/* end confdefs.h. */ 3342#include <stdarg.h> 3343#include <stdio.h> 3344#include <sys/types.h> 3345#include <sys/stat.h> 3346/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3347struct buf { int x; }; 3348FILE * (*rcsopen) (struct buf *, struct stat *, int); 3349static char *e (p, i) 3350 char **p; 3351 int i; 3352{ 3353 return p[i]; 3354} 3355static char *f (char * (*g) (char **, int), char **p, ...) 3356{ 3357 char *s; 3358 va_list v; 3359 va_start (v,p); 3360 s = g (p, va_arg (v,int)); 3361 va_end (v); 3362 return s; 3363} 3364 3365/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3366 function prototypes and stuff, but not '\xHH' hex character constants. 3367 These don't provoke an error unfortunately, instead are silently treated 3368 as 'x'. The following induces an error, until -std is added to get 3369 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3370 array size at least. It's necessary to write '\x00'==0 to get something 3371 that's true only with -std. */ 3372int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3373 3374/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3375 inside strings and character constants. */ 3376#define FOO(x) 'x' 3377int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3378 3379int test (int i, double x); 3380struct s1 {int (*f) (int a);}; 3381struct s2 {int (*f) (double a);}; 3382int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3383int argc; 3384char **argv; 3385int 3386main () 3387{ 3388return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3389 ; 3390 return 0; 3391} 3392_ACEOF 3393for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3394 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3395do 3396 CC="$ac_save_CC $ac_arg" 3397 rm -f conftest.$ac_objext 3398if { (ac_try="$ac_compile" 3399case "(($ac_try" in 3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3401 *) ac_try_echo=$ac_try;; 3402esac 3403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3404 (eval "$ac_compile") 2>conftest.er1 3405 ac_status=$? 3406 grep -v '^ *+' conftest.er1 >conftest.err 3407 rm -f conftest.er1 3408 cat conftest.err >&5 3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3410 (exit $ac_status); } && { 3411 test -z "$ac_c_werror_flag" || 3412 test ! -s conftest.err 3413 } && test -s conftest.$ac_objext; then 3414 ac_cv_prog_cc_c89=$ac_arg 3415else 3416 echo "$as_me: failed program was:" >&5 3417sed 's/^/| /' conftest.$ac_ext >&5 3418 3419 3420fi 3421 3422rm -f core conftest.err conftest.$ac_objext 3423 test "x$ac_cv_prog_cc_c89" != "xno" && break 3424done 3425rm -f conftest.$ac_ext 3426CC=$ac_save_CC 3427 3428fi 3429# AC_CACHE_VAL 3430case "x$ac_cv_prog_cc_c89" in 3431 x) 3432 { echo "$as_me:$LINENO: result: none needed" >&5 3433echo "${ECHO_T}none needed" >&6; } ;; 3434 xno) 3435 { echo "$as_me:$LINENO: result: unsupported" >&5 3436echo "${ECHO_T}unsupported" >&6; } ;; 3437 *) 3438 CC="$CC $ac_cv_prog_cc_c89" 3439 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3440echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3441esac 3442 3443 3444ac_ext=c 3445ac_cpp='$CPP $CPPFLAGS' 3446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3448ac_compiler_gnu=$ac_cv_c_compiler_gnu 3449 3450 ac_ext=c 3451ac_cpp='$CPP $CPPFLAGS' 3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3454ac_compiler_gnu=$ac_cv_c_compiler_gnu 3455{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3456echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3457# On Suns, sometimes $CPP names a directory. 3458if test -n "$CPP" && test -d "$CPP"; then 3459 CPP= 3460fi 3461if test -z "$CPP"; then 3462 if test "${ac_cv_prog_CPP+set}" = set; then 3463 echo $ECHO_N "(cached) $ECHO_C" >&6 3464else 3465 # Double quotes because CPP needs to be expanded 3466 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3467 do 3468 ac_preproc_ok=false 3469for ac_c_preproc_warn_flag in '' yes 3470do 3471 # Use a header file that comes with gcc, so configuring glibc 3472 # with a fresh cross-compiler works. 3473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3474 # <limits.h> exists even on freestanding compilers. 3475 # On the NeXT, cc -E runs the code through the compiler's parser, 3476 # not just through cpp. "Syntax error" is here to catch this case. 3477 cat >conftest.$ac_ext <<_ACEOF 3478/* confdefs.h. */ 3479_ACEOF 3480cat confdefs.h >>conftest.$ac_ext 3481cat >>conftest.$ac_ext <<_ACEOF 3482/* end confdefs.h. */ 3483#ifdef __STDC__ 3484# include <limits.h> 3485#else 3486# include <assert.h> 3487#endif 3488 Syntax error 3489_ACEOF 3490if { (ac_try="$ac_cpp conftest.$ac_ext" 3491case "(($ac_try" in 3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3493 *) ac_try_echo=$ac_try;; 3494esac 3495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3497 ac_status=$? 3498 grep -v '^ *+' conftest.er1 >conftest.err 3499 rm -f conftest.er1 3500 cat conftest.err >&5 3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3502 (exit $ac_status); } >/dev/null && { 3503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3504 test ! -s conftest.err 3505 }; then 3506 : 3507else 3508 echo "$as_me: failed program was:" >&5 3509sed 's/^/| /' conftest.$ac_ext >&5 3510 3511 # Broken: fails on valid input. 3512continue 3513fi 3514 3515rm -f conftest.err conftest.$ac_ext 3516 3517 # OK, works on sane cases. Now check whether nonexistent headers 3518 # can be detected and how. 3519 cat >conftest.$ac_ext <<_ACEOF 3520/* confdefs.h. */ 3521_ACEOF 3522cat confdefs.h >>conftest.$ac_ext 3523cat >>conftest.$ac_ext <<_ACEOF 3524/* end confdefs.h. */ 3525#include <ac_nonexistent.h> 3526_ACEOF 3527if { (ac_try="$ac_cpp conftest.$ac_ext" 3528case "(($ac_try" in 3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3530 *) ac_try_echo=$ac_try;; 3531esac 3532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3534 ac_status=$? 3535 grep -v '^ *+' conftest.er1 >conftest.err 3536 rm -f conftest.er1 3537 cat conftest.err >&5 3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3539 (exit $ac_status); } >/dev/null && { 3540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3541 test ! -s conftest.err 3542 }; then 3543 # Broken: success on invalid input. 3544continue 3545else 3546 echo "$as_me: failed program was:" >&5 3547sed 's/^/| /' conftest.$ac_ext >&5 3548 3549 # Passes both tests. 3550ac_preproc_ok=: 3551break 3552fi 3553 3554rm -f conftest.err conftest.$ac_ext 3555 3556done 3557# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3558rm -f conftest.err conftest.$ac_ext 3559if $ac_preproc_ok; then 3560 break 3561fi 3562 3563 done 3564 ac_cv_prog_CPP=$CPP 3565 3566fi 3567 CPP=$ac_cv_prog_CPP 3568else 3569 ac_cv_prog_CPP=$CPP 3570fi 3571{ echo "$as_me:$LINENO: result: $CPP" >&5 3572echo "${ECHO_T}$CPP" >&6; } 3573ac_preproc_ok=false 3574for ac_c_preproc_warn_flag in '' yes 3575do 3576 # Use a header file that comes with gcc, so configuring glibc 3577 # with a fresh cross-compiler works. 3578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3579 # <limits.h> exists even on freestanding compilers. 3580 # On the NeXT, cc -E runs the code through the compiler's parser, 3581 # not just through cpp. "Syntax error" is here to catch this case. 3582 cat >conftest.$ac_ext <<_ACEOF 3583/* confdefs.h. */ 3584_ACEOF 3585cat confdefs.h >>conftest.$ac_ext 3586cat >>conftest.$ac_ext <<_ACEOF 3587/* end confdefs.h. */ 3588#ifdef __STDC__ 3589# include <limits.h> 3590#else 3591# include <assert.h> 3592#endif 3593 Syntax error 3594_ACEOF 3595if { (ac_try="$ac_cpp conftest.$ac_ext" 3596case "(($ac_try" in 3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3598 *) ac_try_echo=$ac_try;; 3599esac 3600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3602 ac_status=$? 3603 grep -v '^ *+' conftest.er1 >conftest.err 3604 rm -f conftest.er1 3605 cat conftest.err >&5 3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3607 (exit $ac_status); } >/dev/null && { 3608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3609 test ! -s conftest.err 3610 }; then 3611 : 3612else 3613 echo "$as_me: failed program was:" >&5 3614sed 's/^/| /' conftest.$ac_ext >&5 3615 3616 # Broken: fails on valid input. 3617continue 3618fi 3619 3620rm -f conftest.err conftest.$ac_ext 3621 3622 # OK, works on sane cases. Now check whether nonexistent headers 3623 # can be detected and how. 3624 cat >conftest.$ac_ext <<_ACEOF 3625/* confdefs.h. */ 3626_ACEOF 3627cat confdefs.h >>conftest.$ac_ext 3628cat >>conftest.$ac_ext <<_ACEOF 3629/* end confdefs.h. */ 3630#include <ac_nonexistent.h> 3631_ACEOF 3632if { (ac_try="$ac_cpp conftest.$ac_ext" 3633case "(($ac_try" in 3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3635 *) ac_try_echo=$ac_try;; 3636esac 3637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3639 ac_status=$? 3640 grep -v '^ *+' conftest.er1 >conftest.err 3641 rm -f conftest.er1 3642 cat conftest.err >&5 3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3644 (exit $ac_status); } >/dev/null && { 3645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3646 test ! -s conftest.err 3647 }; then 3648 # Broken: success on invalid input. 3649continue 3650else 3651 echo "$as_me: failed program was:" >&5 3652sed 's/^/| /' conftest.$ac_ext >&5 3653 3654 # Passes both tests. 3655ac_preproc_ok=: 3656break 3657fi 3658 3659rm -f conftest.err conftest.$ac_ext 3660 3661done 3662# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3663rm -f conftest.err conftest.$ac_ext 3664if $ac_preproc_ok; then 3665 : 3666else 3667 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3668See \`config.log' for more details." >&5 3669echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3670See \`config.log' for more details." >&2;} 3671 { (exit 1); exit 1; }; } 3672fi 3673 3674ac_ext=c 3675ac_cpp='$CPP $CPPFLAGS' 3676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3678ac_compiler_gnu=$ac_cv_c_compiler_gnu 3679 3680 3681 # Find a good install program. We prefer a C program (faster), 3682# so one script is as good as another. But avoid the broken or 3683# incompatible versions: 3684# SysV /etc/install, /usr/sbin/install 3685# SunOS /usr/etc/install 3686# IRIX /sbin/install 3687# AIX /bin/install 3688# AmigaOS /C/install, which installs bootblocks on floppy discs 3689# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3690# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3691# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3692# OS/2's system install, which has a completely different semantic 3693# ./install, which can be erroneously created by make from ./install.sh. 3694{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3695echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3696if test -z "$INSTALL"; then 3697if test "${ac_cv_path_install+set}" = set; then 3698 echo $ECHO_N "(cached) $ECHO_C" >&6 3699else 3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3701for as_dir in $PATH 3702do 3703 IFS=$as_save_IFS 3704 test -z "$as_dir" && as_dir=. 3705 # Account for people who put trailing slashes in PATH elements. 3706case $as_dir/ in 3707 ./ | .// | /cC/* | \ 3708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3709 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3710 /usr/ucb/* ) ;; 3711 *) 3712 # OSF1 and SCO ODT 3.0 have their own names for install. 3713 # Don't use installbsd from OSF since it installs stuff as root 3714 # by default. 3715 for ac_prog in ginstall scoinst install; do 3716 for ac_exec_ext in '' $ac_executable_extensions; do 3717 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3718 if test $ac_prog = install && 3719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3720 # AIX install. It has an incompatible calling convention. 3721 : 3722 elif test $ac_prog = install && 3723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3724 # program-specific install script used by HP pwplus--don't use. 3725 : 3726 else 3727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3728 break 3 3729 fi 3730 fi 3731 done 3732 done 3733 ;; 3734esac 3735done 3736IFS=$as_save_IFS 3737 3738 3739fi 3740 if test "${ac_cv_path_install+set}" = set; then 3741 INSTALL=$ac_cv_path_install 3742 else 3743 # As a last resort, use the slow shell script. Don't cache a 3744 # value for INSTALL within a source directory, because that will 3745 # break other packages using the cache if that directory is 3746 # removed, or if the value is a relative name. 3747 INSTALL=$ac_install_sh 3748 fi 3749fi 3750{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3751echo "${ECHO_T}$INSTALL" >&6; } 3752 3753# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3754# It thinks the first close brace ends the variable substitution. 3755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3756 3757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3758 3759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3760 3761 3762 #-------------------------------------------------------------------- 3763 # Checks to see if the make program sets the $MAKE variable. 3764 #-------------------------------------------------------------------- 3765 3766 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3767echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3768set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3769if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3770 echo $ECHO_N "(cached) $ECHO_C" >&6 3771else 3772 cat >conftest.make <<\_ACEOF 3773SHELL = /bin/sh 3774all: 3775 @echo '@@@%%%=$(MAKE)=@@@%%%' 3776_ACEOF 3777# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3778case `${MAKE-make} -f conftest.make 2>/dev/null` in 3779 *@@@%%%=?*=@@@%%%*) 3780 eval ac_cv_prog_make_${ac_make}_set=yes;; 3781 *) 3782 eval ac_cv_prog_make_${ac_make}_set=no;; 3783esac 3784rm -f conftest.make 3785fi 3786if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3787 { echo "$as_me:$LINENO: result: yes" >&5 3788echo "${ECHO_T}yes" >&6; } 3789 SET_MAKE= 3790else 3791 { echo "$as_me:$LINENO: result: no" >&5 3792echo "${ECHO_T}no" >&6; } 3793 SET_MAKE="MAKE=${MAKE-make}" 3794fi 3795 3796 3797 #-------------------------------------------------------------------- 3798 # Find ranlib 3799 #-------------------------------------------------------------------- 3800 3801 if test -n "$ac_tool_prefix"; then 3802 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3803set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3804{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3806if test "${ac_cv_prog_RANLIB+set}" = set; then 3807 echo $ECHO_N "(cached) $ECHO_C" >&6 3808else 3809 if test -n "$RANLIB"; then 3810 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3811else 3812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3813for as_dir in $PATH 3814do 3815 IFS=$as_save_IFS 3816 test -z "$as_dir" && as_dir=. 3817 for ac_exec_ext in '' $ac_executable_extensions; do 3818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3819 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3821 break 2 3822 fi 3823done 3824done 3825IFS=$as_save_IFS 3826 3827fi 3828fi 3829RANLIB=$ac_cv_prog_RANLIB 3830if test -n "$RANLIB"; then 3831 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3832echo "${ECHO_T}$RANLIB" >&6; } 3833else 3834 { echo "$as_me:$LINENO: result: no" >&5 3835echo "${ECHO_T}no" >&6; } 3836fi 3837 3838 3839fi 3840if test -z "$ac_cv_prog_RANLIB"; then 3841 ac_ct_RANLIB=$RANLIB 3842 # Extract the first word of "ranlib", so it can be a program name with args. 3843set dummy ranlib; ac_word=$2 3844{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3846if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3847 echo $ECHO_N "(cached) $ECHO_C" >&6 3848else 3849 if test -n "$ac_ct_RANLIB"; then 3850 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3851else 3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3853for as_dir in $PATH 3854do 3855 IFS=$as_save_IFS 3856 test -z "$as_dir" && as_dir=. 3857 for ac_exec_ext in '' $ac_executable_extensions; do 3858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3859 ac_cv_prog_ac_ct_RANLIB="ranlib" 3860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3861 break 2 3862 fi 3863done 3864done 3865IFS=$as_save_IFS 3866 3867fi 3868fi 3869ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3870if test -n "$ac_ct_RANLIB"; then 3871 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3872echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3873else 3874 { echo "$as_me:$LINENO: result: no" >&5 3875echo "${ECHO_T}no" >&6; } 3876fi 3877 3878 if test "x$ac_ct_RANLIB" = x; then 3879 RANLIB=":" 3880 else 3881 case $cross_compiling:$ac_tool_warned in 3882yes:) 3883{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3884whose name does not start with the host triplet. If you think this 3885configuration is useful to you, please write to autoconf@gnu.org." >&5 3886echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3887whose name does not start with the host triplet. If you think this 3888configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3889ac_tool_warned=yes ;; 3890esac 3891 RANLIB=$ac_ct_RANLIB 3892 fi 3893else 3894 RANLIB="$ac_cv_prog_RANLIB" 3895fi 3896 3897 3898 #-------------------------------------------------------------------- 3899 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3900 #-------------------------------------------------------------------- 3901 3902 3903 3904 3905 3906 3907{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3908echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3909if test "${ac_cv_path_GREP+set}" = set; then 3910 echo $ECHO_N "(cached) $ECHO_C" >&6 3911else 3912 # Extract the first word of "grep ggrep" to use in msg output 3913if test -z "$GREP"; then 3914set dummy grep ggrep; ac_prog_name=$2 3915if test "${ac_cv_path_GREP+set}" = set; then 3916 echo $ECHO_N "(cached) $ECHO_C" >&6 3917else 3918 ac_path_GREP_found=false 3919# Loop through the user's path and test for each of PROGNAME-LIST 3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3921for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3922do 3923 IFS=$as_save_IFS 3924 test -z "$as_dir" && as_dir=. 3925 for ac_prog in grep ggrep; do 3926 for ac_exec_ext in '' $ac_executable_extensions; do 3927 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3928 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3929 # Check for GNU ac_path_GREP and select it if it is found. 3930 # Check for GNU $ac_path_GREP 3931case `"$ac_path_GREP" --version 2>&1` in 3932*GNU*) 3933 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3934*) 3935 ac_count=0 3936 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3937 while : 3938 do 3939 cat "conftest.in" "conftest.in" >"conftest.tmp" 3940 mv "conftest.tmp" "conftest.in" 3941 cp "conftest.in" "conftest.nl" 3942 echo 'GREP' >> "conftest.nl" 3943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3945 ac_count=`expr $ac_count + 1` 3946 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3947 # Best one so far, save it but keep looking for a better one 3948 ac_cv_path_GREP="$ac_path_GREP" 3949 ac_path_GREP_max=$ac_count 3950 fi 3951 # 10*(2^10) chars as input seems more than enough 3952 test $ac_count -gt 10 && break 3953 done 3954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3955esac 3956 3957 3958 $ac_path_GREP_found && break 3 3959 done 3960done 3961 3962done 3963IFS=$as_save_IFS 3964 3965 3966fi 3967 3968GREP="$ac_cv_path_GREP" 3969if test -z "$GREP"; then 3970 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3971echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3972 { (exit 1); exit 1; }; } 3973fi 3974 3975else 3976 ac_cv_path_GREP=$GREP 3977fi 3978 3979 3980fi 3981{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3982echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3983 GREP="$ac_cv_path_GREP" 3984 3985 3986{ echo "$as_me:$LINENO: checking for egrep" >&5 3987echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3988if test "${ac_cv_path_EGREP+set}" = set; then 3989 echo $ECHO_N "(cached) $ECHO_C" >&6 3990else 3991 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3992 then ac_cv_path_EGREP="$GREP -E" 3993 else 3994 # Extract the first word of "egrep" to use in msg output 3995if test -z "$EGREP"; then 3996set dummy egrep; ac_prog_name=$2 3997if test "${ac_cv_path_EGREP+set}" = set; then 3998 echo $ECHO_N "(cached) $ECHO_C" >&6 3999else 4000 ac_path_EGREP_found=false 4001# Loop through the user's path and test for each of PROGNAME-LIST 4002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4003for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4004do 4005 IFS=$as_save_IFS 4006 test -z "$as_dir" && as_dir=. 4007 for ac_prog in egrep; do 4008 for ac_exec_ext in '' $ac_executable_extensions; do 4009 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4010 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4011 # Check for GNU ac_path_EGREP and select it if it is found. 4012 # Check for GNU $ac_path_EGREP 4013case `"$ac_path_EGREP" --version 2>&1` in 4014*GNU*) 4015 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4016*) 4017 ac_count=0 4018 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4019 while : 4020 do 4021 cat "conftest.in" "conftest.in" >"conftest.tmp" 4022 mv "conftest.tmp" "conftest.in" 4023 cp "conftest.in" "conftest.nl" 4024 echo 'EGREP' >> "conftest.nl" 4025 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4027 ac_count=`expr $ac_count + 1` 4028 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4029 # Best one so far, save it but keep looking for a better one 4030 ac_cv_path_EGREP="$ac_path_EGREP" 4031 ac_path_EGREP_max=$ac_count 4032 fi 4033 # 10*(2^10) chars as input seems more than enough 4034 test $ac_count -gt 10 && break 4035 done 4036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4037esac 4038 4039 4040 $ac_path_EGREP_found && break 3 4041 done 4042done 4043 4044done 4045IFS=$as_save_IFS 4046 4047 4048fi 4049 4050EGREP="$ac_cv_path_EGREP" 4051if test -z "$EGREP"; then 4052 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4053echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4054 { (exit 1); exit 1; }; } 4055fi 4056 4057else 4058 ac_cv_path_EGREP=$EGREP 4059fi 4060 4061 4062 fi 4063fi 4064{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4065echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4066 EGREP="$ac_cv_path_EGREP" 4067 4068 4069{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4070echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4071if test "${ac_cv_header_stdc+set}" = set; then 4072 echo $ECHO_N "(cached) $ECHO_C" >&6 4073else 4074 cat >conftest.$ac_ext <<_ACEOF 4075/* confdefs.h. */ 4076_ACEOF 4077cat confdefs.h >>conftest.$ac_ext 4078cat >>conftest.$ac_ext <<_ACEOF 4079/* end confdefs.h. */ 4080#include <stdlib.h> 4081#include <stdarg.h> 4082#include <string.h> 4083#include <float.h> 4084 4085int 4086main () 4087{ 4088 4089 ; 4090 return 0; 4091} 4092_ACEOF 4093rm -f conftest.$ac_objext 4094if { (ac_try="$ac_compile" 4095case "(($ac_try" in 4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4097 *) ac_try_echo=$ac_try;; 4098esac 4099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4100 (eval "$ac_compile") 2>conftest.er1 4101 ac_status=$? 4102 grep -v '^ *+' conftest.er1 >conftest.err 4103 rm -f conftest.er1 4104 cat conftest.err >&5 4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4106 (exit $ac_status); } && { 4107 test -z "$ac_c_werror_flag" || 4108 test ! -s conftest.err 4109 } && test -s conftest.$ac_objext; then 4110 ac_cv_header_stdc=yes 4111else 4112 echo "$as_me: failed program was:" >&5 4113sed 's/^/| /' conftest.$ac_ext >&5 4114 4115 ac_cv_header_stdc=no 4116fi 4117 4118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4119 4120if test $ac_cv_header_stdc = yes; then 4121 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4122 cat >conftest.$ac_ext <<_ACEOF 4123/* confdefs.h. */ 4124_ACEOF 4125cat confdefs.h >>conftest.$ac_ext 4126cat >>conftest.$ac_ext <<_ACEOF 4127/* end confdefs.h. */ 4128#include <string.h> 4129 4130_ACEOF 4131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4132 $EGREP "memchr" >/dev/null 2>&1; then 4133 : 4134else 4135 ac_cv_header_stdc=no 4136fi 4137rm -f -r conftest* 4138 4139fi 4140 4141if test $ac_cv_header_stdc = yes; then 4142 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4143 cat >conftest.$ac_ext <<_ACEOF 4144/* confdefs.h. */ 4145_ACEOF 4146cat confdefs.h >>conftest.$ac_ext 4147cat >>conftest.$ac_ext <<_ACEOF 4148/* end confdefs.h. */ 4149#include <stdlib.h> 4150 4151_ACEOF 4152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4153 $EGREP "free" >/dev/null 2>&1; then 4154 : 4155else 4156 ac_cv_header_stdc=no 4157fi 4158rm -f -r conftest* 4159 4160fi 4161 4162if test $ac_cv_header_stdc = yes; then 4163 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4164 if test "$cross_compiling" = yes; then 4165 : 4166else 4167 cat >conftest.$ac_ext <<_ACEOF 4168/* confdefs.h. */ 4169_ACEOF 4170cat confdefs.h >>conftest.$ac_ext 4171cat >>conftest.$ac_ext <<_ACEOF 4172/* end confdefs.h. */ 4173#include <ctype.h> 4174#include <stdlib.h> 4175#if ((' ' & 0x0FF) == 0x020) 4176# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4177# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4178#else 4179# define ISLOWER(c) \ 4180 (('a' <= (c) && (c) <= 'i') \ 4181 || ('j' <= (c) && (c) <= 'r') \ 4182 || ('s' <= (c) && (c) <= 'z')) 4183# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4184#endif 4185 4186#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4187int 4188main () 4189{ 4190 int i; 4191 for (i = 0; i < 256; i++) 4192 if (XOR (islower (i), ISLOWER (i)) 4193 || toupper (i) != TOUPPER (i)) 4194 return 2; 4195 return 0; 4196} 4197_ACEOF 4198rm -f conftest$ac_exeext 4199if { (ac_try="$ac_link" 4200case "(($ac_try" in 4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4202 *) ac_try_echo=$ac_try;; 4203esac 4204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4205 (eval "$ac_link") 2>&5 4206 ac_status=$? 4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4209 { (case "(($ac_try" in 4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4211 *) ac_try_echo=$ac_try;; 4212esac 4213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4214 (eval "$ac_try") 2>&5 4215 ac_status=$? 4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4217 (exit $ac_status); }; }; then 4218 : 4219else 4220 echo "$as_me: program exited with status $ac_status" >&5 4221echo "$as_me: failed program was:" >&5 4222sed 's/^/| /' conftest.$ac_ext >&5 4223 4224( exit $ac_status ) 4225ac_cv_header_stdc=no 4226fi 4227rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4228fi 4229 4230 4231fi 4232fi 4233{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4234echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4235if test $ac_cv_header_stdc = yes; then 4236 4237cat >>confdefs.h <<\_ACEOF 4238#define STDC_HEADERS 1 4239_ACEOF 4240 4241fi 4242 4243# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4254 inttypes.h stdint.h unistd.h 4255do 4256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4257{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4260 echo $ECHO_N "(cached) $ECHO_C" >&6 4261else 4262 cat >conftest.$ac_ext <<_ACEOF 4263/* confdefs.h. */ 4264_ACEOF 4265cat confdefs.h >>conftest.$ac_ext 4266cat >>conftest.$ac_ext <<_ACEOF 4267/* end confdefs.h. */ 4268$ac_includes_default 4269 4270#include <$ac_header> 4271_ACEOF 4272rm -f conftest.$ac_objext 4273if { (ac_try="$ac_compile" 4274case "(($ac_try" in 4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4276 *) ac_try_echo=$ac_try;; 4277esac 4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4279 (eval "$ac_compile") 2>conftest.er1 4280 ac_status=$? 4281 grep -v '^ *+' conftest.er1 >conftest.err 4282 rm -f conftest.er1 4283 cat conftest.err >&5 4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4285 (exit $ac_status); } && { 4286 test -z "$ac_c_werror_flag" || 4287 test ! -s conftest.err 4288 } && test -s conftest.$ac_objext; then 4289 eval "$as_ac_Header=yes" 4290else 4291 echo "$as_me: failed program was:" >&5 4292sed 's/^/| /' conftest.$ac_ext >&5 4293 4294 eval "$as_ac_Header=no" 4295fi 4296 4297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4298fi 4299ac_res=`eval echo '${'$as_ac_Header'}'` 4300 { echo "$as_me:$LINENO: result: $ac_res" >&5 4301echo "${ECHO_T}$ac_res" >&6; } 4302if test `eval echo '${'$as_ac_Header'}'` = yes; then 4303 cat >>confdefs.h <<_ACEOF 4304#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4305_ACEOF 4306 4307fi 4308 4309done 4310 4311 4312 4313 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4314 4315 4316 #------------------------------------------------------------------------ 4317 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4318 # It makes compiling go faster. (This is only a performance feature.) 4319 #------------------------------------------------------------------------ 4320 4321 if test -z "$no_pipe" -a -n "$GCC"; then 4322 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4323echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4324if test "${tcl_cv_cc_pipe+set}" = set; then 4325 echo $ECHO_N "(cached) $ECHO_C" >&6 4326else 4327 4328 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4329 cat >conftest.$ac_ext <<_ACEOF 4330/* confdefs.h. */ 4331_ACEOF 4332cat confdefs.h >>conftest.$ac_ext 4333cat >>conftest.$ac_ext <<_ACEOF 4334/* end confdefs.h. */ 4335 4336int 4337main () 4338{ 4339 4340 ; 4341 return 0; 4342} 4343_ACEOF 4344rm -f conftest.$ac_objext 4345if { (ac_try="$ac_compile" 4346case "(($ac_try" in 4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4348 *) ac_try_echo=$ac_try;; 4349esac 4350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4351 (eval "$ac_compile") 2>conftest.er1 4352 ac_status=$? 4353 grep -v '^ *+' conftest.er1 >conftest.err 4354 rm -f conftest.er1 4355 cat conftest.err >&5 4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4357 (exit $ac_status); } && { 4358 test -z "$ac_c_werror_flag" || 4359 test ! -s conftest.err 4360 } && test -s conftest.$ac_objext; then 4361 tcl_cv_cc_pipe=yes 4362else 4363 echo "$as_me: failed program was:" >&5 4364sed 's/^/| /' conftest.$ac_ext >&5 4365 4366 tcl_cv_cc_pipe=no 4367fi 4368 4369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4370 CFLAGS=$hold_cflags 4371fi 4372{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4373echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4374 if test $tcl_cv_cc_pipe = yes; then 4375 CFLAGS="$CFLAGS -pipe" 4376 fi 4377 fi 4378 4379 #-------------------------------------------------------------------- 4380 # Common compiler flag setup 4381 #-------------------------------------------------------------------- 4382 4383 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4384echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4385if test "${ac_cv_c_bigendian+set}" = set; then 4386 echo $ECHO_N "(cached) $ECHO_C" >&6 4387else 4388 # See if sys/param.h defines the BYTE_ORDER macro. 4389cat >conftest.$ac_ext <<_ACEOF 4390/* confdefs.h. */ 4391_ACEOF 4392cat confdefs.h >>conftest.$ac_ext 4393cat >>conftest.$ac_ext <<_ACEOF 4394/* end confdefs.h. */ 4395#include <sys/types.h> 4396#include <sys/param.h> 4397 4398int 4399main () 4400{ 4401#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4402 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4403 bogus endian macros 4404#endif 4405 4406 ; 4407 return 0; 4408} 4409_ACEOF 4410rm -f conftest.$ac_objext 4411if { (ac_try="$ac_compile" 4412case "(($ac_try" in 4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4414 *) ac_try_echo=$ac_try;; 4415esac 4416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4417 (eval "$ac_compile") 2>conftest.er1 4418 ac_status=$? 4419 grep -v '^ *+' conftest.er1 >conftest.err 4420 rm -f conftest.er1 4421 cat conftest.err >&5 4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4423 (exit $ac_status); } && { 4424 test -z "$ac_c_werror_flag" || 4425 test ! -s conftest.err 4426 } && test -s conftest.$ac_objext; then 4427 # It does; now see whether it defined to BIG_ENDIAN or not. 4428cat >conftest.$ac_ext <<_ACEOF 4429/* confdefs.h. */ 4430_ACEOF 4431cat confdefs.h >>conftest.$ac_ext 4432cat >>conftest.$ac_ext <<_ACEOF 4433/* end confdefs.h. */ 4434#include <sys/types.h> 4435#include <sys/param.h> 4436 4437int 4438main () 4439{ 4440#if BYTE_ORDER != BIG_ENDIAN 4441 not big endian 4442#endif 4443 4444 ; 4445 return 0; 4446} 4447_ACEOF 4448rm -f conftest.$ac_objext 4449if { (ac_try="$ac_compile" 4450case "(($ac_try" in 4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4452 *) ac_try_echo=$ac_try;; 4453esac 4454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4455 (eval "$ac_compile") 2>conftest.er1 4456 ac_status=$? 4457 grep -v '^ *+' conftest.er1 >conftest.err 4458 rm -f conftest.er1 4459 cat conftest.err >&5 4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4461 (exit $ac_status); } && { 4462 test -z "$ac_c_werror_flag" || 4463 test ! -s conftest.err 4464 } && test -s conftest.$ac_objext; then 4465 ac_cv_c_bigendian=yes 4466else 4467 echo "$as_me: failed program was:" >&5 4468sed 's/^/| /' conftest.$ac_ext >&5 4469 4470 ac_cv_c_bigendian=no 4471fi 4472 4473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4474else 4475 echo "$as_me: failed program was:" >&5 4476sed 's/^/| /' conftest.$ac_ext >&5 4477 4478 # It does not; compile a test program. 4479if test "$cross_compiling" = yes; then 4480 # try to guess the endianness by grepping values into an object file 4481 ac_cv_c_bigendian=unknown 4482 cat >conftest.$ac_ext <<_ACEOF 4483/* confdefs.h. */ 4484_ACEOF 4485cat confdefs.h >>conftest.$ac_ext 4486cat >>conftest.$ac_ext <<_ACEOF 4487/* end confdefs.h. */ 4488short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4489short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4490void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4491short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4492short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4493void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4494int 4495main () 4496{ 4497 _ascii (); _ebcdic (); 4498 ; 4499 return 0; 4500} 4501_ACEOF 4502rm -f conftest.$ac_objext 4503if { (ac_try="$ac_compile" 4504case "(($ac_try" in 4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4506 *) ac_try_echo=$ac_try;; 4507esac 4508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4509 (eval "$ac_compile") 2>conftest.er1 4510 ac_status=$? 4511 grep -v '^ *+' conftest.er1 >conftest.err 4512 rm -f conftest.er1 4513 cat conftest.err >&5 4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4515 (exit $ac_status); } && { 4516 test -z "$ac_c_werror_flag" || 4517 test ! -s conftest.err 4518 } && test -s conftest.$ac_objext; then 4519 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4520 ac_cv_c_bigendian=yes 4521fi 4522if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4523 if test "$ac_cv_c_bigendian" = unknown; then 4524 ac_cv_c_bigendian=no 4525 else 4526 # finding both strings is unlikely to happen, but who knows? 4527 ac_cv_c_bigendian=unknown 4528 fi 4529fi 4530else 4531 echo "$as_me: failed program was:" >&5 4532sed 's/^/| /' conftest.$ac_ext >&5 4533 4534 4535fi 4536 4537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4538else 4539 cat >conftest.$ac_ext <<_ACEOF 4540/* confdefs.h. */ 4541_ACEOF 4542cat confdefs.h >>conftest.$ac_ext 4543cat >>conftest.$ac_ext <<_ACEOF 4544/* end confdefs.h. */ 4545$ac_includes_default 4546int 4547main () 4548{ 4549 4550 /* Are we little or big endian? From Harbison&Steele. */ 4551 union 4552 { 4553 long int l; 4554 char c[sizeof (long int)]; 4555 } u; 4556 u.l = 1; 4557 return u.c[sizeof (long int) - 1] == 1; 4558 4559 ; 4560 return 0; 4561} 4562_ACEOF 4563rm -f conftest$ac_exeext 4564if { (ac_try="$ac_link" 4565case "(($ac_try" in 4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4567 *) ac_try_echo=$ac_try;; 4568esac 4569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4570 (eval "$ac_link") 2>&5 4571 ac_status=$? 4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4574 { (case "(($ac_try" in 4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4576 *) ac_try_echo=$ac_try;; 4577esac 4578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4579 (eval "$ac_try") 2>&5 4580 ac_status=$? 4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4582 (exit $ac_status); }; }; then 4583 ac_cv_c_bigendian=no 4584else 4585 echo "$as_me: program exited with status $ac_status" >&5 4586echo "$as_me: failed program was:" >&5 4587sed 's/^/| /' conftest.$ac_ext >&5 4588 4589( exit $ac_status ) 4590ac_cv_c_bigendian=yes 4591fi 4592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4593fi 4594 4595 4596fi 4597 4598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4599fi 4600{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4601echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4602case $ac_cv_c_bigendian in 4603 yes) 4604 4605cat >>confdefs.h <<\_ACEOF 4606#define WORDS_BIGENDIAN 1 4607_ACEOF 4608 ;; 4609 no) 4610 ;; 4611 *) 4612 { { echo "$as_me:$LINENO: error: unknown endianness 4613presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4614echo "$as_me: error: unknown endianness 4615presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4616 { (exit 1); exit 1; }; } ;; 4617esac 4618 4619 if test "${TEA_PLATFORM}" = "unix" ; then 4620 4621 #-------------------------------------------------------------------- 4622 # On a few very rare systems, all of the libm.a stuff is 4623 # already in libc.a. Set compiler flags accordingly. 4624 # Also, Linux requires the "ieee" library for math to work 4625 # right (and it must appear before "-lm"). 4626 #-------------------------------------------------------------------- 4627 4628 { echo "$as_me:$LINENO: checking for sin" >&5 4629echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4630if test "${ac_cv_func_sin+set}" = set; then 4631 echo $ECHO_N "(cached) $ECHO_C" >&6 4632else 4633 cat >conftest.$ac_ext <<_ACEOF 4634/* confdefs.h. */ 4635_ACEOF 4636cat confdefs.h >>conftest.$ac_ext 4637cat >>conftest.$ac_ext <<_ACEOF 4638/* end confdefs.h. */ 4639/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4640 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4641#define sin innocuous_sin 4642 4643/* System header to define __stub macros and hopefully few prototypes, 4644 which can conflict with char sin (); below. 4645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4646 <limits.h> exists even on freestanding compilers. */ 4647 4648#ifdef __STDC__ 4649# include <limits.h> 4650#else 4651# include <assert.h> 4652#endif 4653 4654#undef sin 4655 4656/* Override any GCC internal prototype to avoid an error. 4657 Use char because int might match the return type of a GCC 4658 builtin and then its argument prototype would still apply. */ 4659#ifdef __cplusplus 4660extern "C" 4661#endif 4662char sin (); 4663/* The GNU C library defines this for functions which it implements 4664 to always fail with ENOSYS. Some functions are actually named 4665 something starting with __ and the normal name is an alias. */ 4666#if defined __stub_sin || defined __stub___sin 4667choke me 4668#endif 4669 4670int 4671main () 4672{ 4673return sin (); 4674 ; 4675 return 0; 4676} 4677_ACEOF 4678rm -f conftest.$ac_objext conftest$ac_exeext 4679if { (ac_try="$ac_link" 4680case "(($ac_try" in 4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4682 *) ac_try_echo=$ac_try;; 4683esac 4684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4685 (eval "$ac_link") 2>conftest.er1 4686 ac_status=$? 4687 grep -v '^ *+' conftest.er1 >conftest.err 4688 rm -f conftest.er1 4689 cat conftest.err >&5 4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4691 (exit $ac_status); } && { 4692 test -z "$ac_c_werror_flag" || 4693 test ! -s conftest.err 4694 } && test -s conftest$ac_exeext && 4695 $as_test_x conftest$ac_exeext; then 4696 ac_cv_func_sin=yes 4697else 4698 echo "$as_me: failed program was:" >&5 4699sed 's/^/| /' conftest.$ac_ext >&5 4700 4701 ac_cv_func_sin=no 4702fi 4703 4704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4705 conftest$ac_exeext conftest.$ac_ext 4706fi 4707{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4708echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4709if test $ac_cv_func_sin = yes; then 4710 MATH_LIBS="" 4711else 4712 MATH_LIBS="-lm" 4713fi 4714 4715 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4716echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4717if test "${ac_cv_lib_ieee_main+set}" = set; then 4718 echo $ECHO_N "(cached) $ECHO_C" >&6 4719else 4720 ac_check_lib_save_LIBS=$LIBS 4721LIBS="-lieee $LIBS" 4722cat >conftest.$ac_ext <<_ACEOF 4723/* confdefs.h. */ 4724_ACEOF 4725cat confdefs.h >>conftest.$ac_ext 4726cat >>conftest.$ac_ext <<_ACEOF 4727/* end confdefs.h. */ 4728 4729 4730int 4731main () 4732{ 4733return main (); 4734 ; 4735 return 0; 4736} 4737_ACEOF 4738rm -f conftest.$ac_objext conftest$ac_exeext 4739if { (ac_try="$ac_link" 4740case "(($ac_try" in 4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4742 *) ac_try_echo=$ac_try;; 4743esac 4744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4745 (eval "$ac_link") 2>conftest.er1 4746 ac_status=$? 4747 grep -v '^ *+' conftest.er1 >conftest.err 4748 rm -f conftest.er1 4749 cat conftest.err >&5 4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4751 (exit $ac_status); } && { 4752 test -z "$ac_c_werror_flag" || 4753 test ! -s conftest.err 4754 } && test -s conftest$ac_exeext && 4755 $as_test_x conftest$ac_exeext; then 4756 ac_cv_lib_ieee_main=yes 4757else 4758 echo "$as_me: failed program was:" >&5 4759sed 's/^/| /' conftest.$ac_ext >&5 4760 4761 ac_cv_lib_ieee_main=no 4762fi 4763 4764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4765 conftest$ac_exeext conftest.$ac_ext 4766LIBS=$ac_check_lib_save_LIBS 4767fi 4768{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4769echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4770if test $ac_cv_lib_ieee_main = yes; then 4771 MATH_LIBS="-lieee $MATH_LIBS" 4772fi 4773 4774 4775 #-------------------------------------------------------------------- 4776 # Interactive UNIX requires -linet instead of -lsocket, plus it 4777 # needs net/errno.h to define the socket-related error codes. 4778 #-------------------------------------------------------------------- 4779 4780 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4781echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4782if test "${ac_cv_lib_inet_main+set}" = set; then 4783 echo $ECHO_N "(cached) $ECHO_C" >&6 4784else 4785 ac_check_lib_save_LIBS=$LIBS 4786LIBS="-linet $LIBS" 4787cat >conftest.$ac_ext <<_ACEOF 4788/* confdefs.h. */ 4789_ACEOF 4790cat confdefs.h >>conftest.$ac_ext 4791cat >>conftest.$ac_ext <<_ACEOF 4792/* end confdefs.h. */ 4793 4794 4795int 4796main () 4797{ 4798return main (); 4799 ; 4800 return 0; 4801} 4802_ACEOF 4803rm -f conftest.$ac_objext conftest$ac_exeext 4804if { (ac_try="$ac_link" 4805case "(($ac_try" in 4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4807 *) ac_try_echo=$ac_try;; 4808esac 4809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4810 (eval "$ac_link") 2>conftest.er1 4811 ac_status=$? 4812 grep -v '^ *+' conftest.er1 >conftest.err 4813 rm -f conftest.er1 4814 cat conftest.err >&5 4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4816 (exit $ac_status); } && { 4817 test -z "$ac_c_werror_flag" || 4818 test ! -s conftest.err 4819 } && test -s conftest$ac_exeext && 4820 $as_test_x conftest$ac_exeext; then 4821 ac_cv_lib_inet_main=yes 4822else 4823 echo "$as_me: failed program was:" >&5 4824sed 's/^/| /' conftest.$ac_ext >&5 4825 4826 ac_cv_lib_inet_main=no 4827fi 4828 4829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4830 conftest$ac_exeext conftest.$ac_ext 4831LIBS=$ac_check_lib_save_LIBS 4832fi 4833{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4834echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4835if test $ac_cv_lib_inet_main = yes; then 4836 LIBS="$LIBS -linet" 4837fi 4838 4839 if test "${ac_cv_header_net_errno_h+set}" = set; then 4840 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4841echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4842if test "${ac_cv_header_net_errno_h+set}" = set; then 4843 echo $ECHO_N "(cached) $ECHO_C" >&6 4844fi 4845{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4846echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4847else 4848 # Is the header compilable? 4849{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4850echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4851cat >conftest.$ac_ext <<_ACEOF 4852/* confdefs.h. */ 4853_ACEOF 4854cat confdefs.h >>conftest.$ac_ext 4855cat >>conftest.$ac_ext <<_ACEOF 4856/* end confdefs.h. */ 4857$ac_includes_default 4858#include <net/errno.h> 4859_ACEOF 4860rm -f conftest.$ac_objext 4861if { (ac_try="$ac_compile" 4862case "(($ac_try" in 4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4864 *) ac_try_echo=$ac_try;; 4865esac 4866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4867 (eval "$ac_compile") 2>conftest.er1 4868 ac_status=$? 4869 grep -v '^ *+' conftest.er1 >conftest.err 4870 rm -f conftest.er1 4871 cat conftest.err >&5 4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4873 (exit $ac_status); } && { 4874 test -z "$ac_c_werror_flag" || 4875 test ! -s conftest.err 4876 } && test -s conftest.$ac_objext; then 4877 ac_header_compiler=yes 4878else 4879 echo "$as_me: failed program was:" >&5 4880sed 's/^/| /' conftest.$ac_ext >&5 4881 4882 ac_header_compiler=no 4883fi 4884 4885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4886{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4887echo "${ECHO_T}$ac_header_compiler" >&6; } 4888 4889# Is the header present? 4890{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4891echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4892cat >conftest.$ac_ext <<_ACEOF 4893/* confdefs.h. */ 4894_ACEOF 4895cat confdefs.h >>conftest.$ac_ext 4896cat >>conftest.$ac_ext <<_ACEOF 4897/* end confdefs.h. */ 4898#include <net/errno.h> 4899_ACEOF 4900if { (ac_try="$ac_cpp conftest.$ac_ext" 4901case "(($ac_try" in 4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4903 *) ac_try_echo=$ac_try;; 4904esac 4905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4907 ac_status=$? 4908 grep -v '^ *+' conftest.er1 >conftest.err 4909 rm -f conftest.er1 4910 cat conftest.err >&5 4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4912 (exit $ac_status); } >/dev/null && { 4913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4914 test ! -s conftest.err 4915 }; then 4916 ac_header_preproc=yes 4917else 4918 echo "$as_me: failed program was:" >&5 4919sed 's/^/| /' conftest.$ac_ext >&5 4920 4921 ac_header_preproc=no 4922fi 4923 4924rm -f conftest.err conftest.$ac_ext 4925{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4926echo "${ECHO_T}$ac_header_preproc" >&6; } 4927 4928# So? What about this header? 4929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4930 yes:no: ) 4931 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4932echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4933 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4934echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4935 ac_header_preproc=yes 4936 ;; 4937 no:yes:* ) 4938 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4939echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4940 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4941echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4942 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4943echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4944 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4945echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4946 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4947echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4948 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4949echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4950 4951 ;; 4952esac 4953{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4954echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4955if test "${ac_cv_header_net_errno_h+set}" = set; then 4956 echo $ECHO_N "(cached) $ECHO_C" >&6 4957else 4958 ac_cv_header_net_errno_h=$ac_header_preproc 4959fi 4960{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4961echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4962 4963fi 4964if test $ac_cv_header_net_errno_h = yes; then 4965 4966 4967cat >>confdefs.h <<\_ACEOF 4968#define HAVE_NET_ERRNO_H 1 4969_ACEOF 4970 4971fi 4972 4973 4974 4975 #-------------------------------------------------------------------- 4976 # Check for the existence of the -lsocket and -lnsl libraries. 4977 # The order here is important, so that they end up in the right 4978 # order in the command line generated by make. Here are some 4979 # special considerations: 4980 # 1. Use "connect" and "accept" to check for -lsocket, and 4981 # "gethostbyname" to check for -lnsl. 4982 # 2. Use each function name only once: can't redo a check because 4983 # autoconf caches the results of the last check and won't redo it. 4984 # 3. Use -lnsl and -lsocket only if they supply procedures that 4985 # aren't already present in the normal libraries. This is because 4986 # IRIX 5.2 has libraries, but they aren't needed and they're 4987 # bogus: they goof up name resolution if used. 4988 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4989 # To get around this problem, check for both libraries together 4990 # if -lsocket doesn't work by itself. 4991 #-------------------------------------------------------------------- 4992 4993 tcl_checkBoth=0 4994 { echo "$as_me:$LINENO: checking for connect" >&5 4995echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4996if test "${ac_cv_func_connect+set}" = set; then 4997 echo $ECHO_N "(cached) $ECHO_C" >&6 4998else 4999 cat >conftest.$ac_ext <<_ACEOF 5000/* confdefs.h. */ 5001_ACEOF 5002cat confdefs.h >>conftest.$ac_ext 5003cat >>conftest.$ac_ext <<_ACEOF 5004/* end confdefs.h. */ 5005/* Define connect to an innocuous variant, in case <limits.h> declares connect. 5006 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5007#define connect innocuous_connect 5008 5009/* System header to define __stub macros and hopefully few prototypes, 5010 which can conflict with char connect (); below. 5011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5012 <limits.h> exists even on freestanding compilers. */ 5013 5014#ifdef __STDC__ 5015# include <limits.h> 5016#else 5017# include <assert.h> 5018#endif 5019 5020#undef connect 5021 5022/* Override any GCC internal prototype to avoid an error. 5023 Use char because int might match the return type of a GCC 5024 builtin and then its argument prototype would still apply. */ 5025#ifdef __cplusplus 5026extern "C" 5027#endif 5028char connect (); 5029/* The GNU C library defines this for functions which it implements 5030 to always fail with ENOSYS. Some functions are actually named 5031 something starting with __ and the normal name is an alias. */ 5032#if defined __stub_connect || defined __stub___connect 5033choke me 5034#endif 5035 5036int 5037main () 5038{ 5039return connect (); 5040 ; 5041 return 0; 5042} 5043_ACEOF 5044rm -f conftest.$ac_objext conftest$ac_exeext 5045if { (ac_try="$ac_link" 5046case "(($ac_try" in 5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5048 *) ac_try_echo=$ac_try;; 5049esac 5050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5051 (eval "$ac_link") 2>conftest.er1 5052 ac_status=$? 5053 grep -v '^ *+' conftest.er1 >conftest.err 5054 rm -f conftest.er1 5055 cat conftest.err >&5 5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5057 (exit $ac_status); } && { 5058 test -z "$ac_c_werror_flag" || 5059 test ! -s conftest.err 5060 } && test -s conftest$ac_exeext && 5061 $as_test_x conftest$ac_exeext; then 5062 ac_cv_func_connect=yes 5063else 5064 echo "$as_me: failed program was:" >&5 5065sed 's/^/| /' conftest.$ac_ext >&5 5066 5067 ac_cv_func_connect=no 5068fi 5069 5070rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5071 conftest$ac_exeext conftest.$ac_ext 5072fi 5073{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 5074echo "${ECHO_T}$ac_cv_func_connect" >&6; } 5075if test $ac_cv_func_connect = yes; then 5076 tcl_checkSocket=0 5077else 5078 tcl_checkSocket=1 5079fi 5080 5081 if test "$tcl_checkSocket" = 1; then 5082 { echo "$as_me:$LINENO: checking for setsockopt" >&5 5083echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 5084if test "${ac_cv_func_setsockopt+set}" = set; then 5085 echo $ECHO_N "(cached) $ECHO_C" >&6 5086else 5087 cat >conftest.$ac_ext <<_ACEOF 5088/* confdefs.h. */ 5089_ACEOF 5090cat confdefs.h >>conftest.$ac_ext 5091cat >>conftest.$ac_ext <<_ACEOF 5092/* end confdefs.h. */ 5093/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 5094 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5095#define setsockopt innocuous_setsockopt 5096 5097/* System header to define __stub macros and hopefully few prototypes, 5098 which can conflict with char setsockopt (); below. 5099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5100 <limits.h> exists even on freestanding compilers. */ 5101 5102#ifdef __STDC__ 5103# include <limits.h> 5104#else 5105# include <assert.h> 5106#endif 5107 5108#undef setsockopt 5109 5110/* Override any GCC internal prototype to avoid an error. 5111 Use char because int might match the return type of a GCC 5112 builtin and then its argument prototype would still apply. */ 5113#ifdef __cplusplus 5114extern "C" 5115#endif 5116char setsockopt (); 5117/* The GNU C library defines this for functions which it implements 5118 to always fail with ENOSYS. Some functions are actually named 5119 something starting with __ and the normal name is an alias. */ 5120#if defined __stub_setsockopt || defined __stub___setsockopt 5121choke me 5122#endif 5123 5124int 5125main () 5126{ 5127return setsockopt (); 5128 ; 5129 return 0; 5130} 5131_ACEOF 5132rm -f conftest.$ac_objext conftest$ac_exeext 5133if { (ac_try="$ac_link" 5134case "(($ac_try" in 5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5136 *) ac_try_echo=$ac_try;; 5137esac 5138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5139 (eval "$ac_link") 2>conftest.er1 5140 ac_status=$? 5141 grep -v '^ *+' conftest.er1 >conftest.err 5142 rm -f conftest.er1 5143 cat conftest.err >&5 5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5145 (exit $ac_status); } && { 5146 test -z "$ac_c_werror_flag" || 5147 test ! -s conftest.err 5148 } && test -s conftest$ac_exeext && 5149 $as_test_x conftest$ac_exeext; then 5150 ac_cv_func_setsockopt=yes 5151else 5152 echo "$as_me: failed program was:" >&5 5153sed 's/^/| /' conftest.$ac_ext >&5 5154 5155 ac_cv_func_setsockopt=no 5156fi 5157 5158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5159 conftest$ac_exeext conftest.$ac_ext 5160fi 5161{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 5162echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 5163if test $ac_cv_func_setsockopt = yes; then 5164 : 5165else 5166 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 5167echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 5168if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 5169 echo $ECHO_N "(cached) $ECHO_C" >&6 5170else 5171 ac_check_lib_save_LIBS=$LIBS 5172LIBS="-lsocket $LIBS" 5173cat >conftest.$ac_ext <<_ACEOF 5174/* confdefs.h. */ 5175_ACEOF 5176cat confdefs.h >>conftest.$ac_ext 5177cat >>conftest.$ac_ext <<_ACEOF 5178/* end confdefs.h. */ 5179 5180/* Override any GCC internal prototype to avoid an error. 5181 Use char because int might match the return type of a GCC 5182 builtin and then its argument prototype would still apply. */ 5183#ifdef __cplusplus 5184extern "C" 5185#endif 5186char setsockopt (); 5187int 5188main () 5189{ 5190return setsockopt (); 5191 ; 5192 return 0; 5193} 5194_ACEOF 5195rm -f conftest.$ac_objext conftest$ac_exeext 5196if { (ac_try="$ac_link" 5197case "(($ac_try" in 5198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5199 *) ac_try_echo=$ac_try;; 5200esac 5201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5202 (eval "$ac_link") 2>conftest.er1 5203 ac_status=$? 5204 grep -v '^ *+' conftest.er1 >conftest.err 5205 rm -f conftest.er1 5206 cat conftest.err >&5 5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5208 (exit $ac_status); } && { 5209 test -z "$ac_c_werror_flag" || 5210 test ! -s conftest.err 5211 } && test -s conftest$ac_exeext && 5212 $as_test_x conftest$ac_exeext; then 5213 ac_cv_lib_socket_setsockopt=yes 5214else 5215 echo "$as_me: failed program was:" >&5 5216sed 's/^/| /' conftest.$ac_ext >&5 5217 5218 ac_cv_lib_socket_setsockopt=no 5219fi 5220 5221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5222 conftest$ac_exeext conftest.$ac_ext 5223LIBS=$ac_check_lib_save_LIBS 5224fi 5225{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 5226echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 5227if test $ac_cv_lib_socket_setsockopt = yes; then 5228 LIBS="$LIBS -lsocket" 5229else 5230 tcl_checkBoth=1 5231fi 5232 5233fi 5234 5235 fi 5236 if test "$tcl_checkBoth" = 1; then 5237 tk_oldLibs=$LIBS 5238 LIBS="$LIBS -lsocket -lnsl" 5239 { echo "$as_me:$LINENO: checking for accept" >&5 5240echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 5241if test "${ac_cv_func_accept+set}" = set; then 5242 echo $ECHO_N "(cached) $ECHO_C" >&6 5243else 5244 cat >conftest.$ac_ext <<_ACEOF 5245/* confdefs.h. */ 5246_ACEOF 5247cat confdefs.h >>conftest.$ac_ext 5248cat >>conftest.$ac_ext <<_ACEOF 5249/* end confdefs.h. */ 5250/* Define accept to an innocuous variant, in case <limits.h> declares accept. 5251 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5252#define accept innocuous_accept 5253 5254/* System header to define __stub macros and hopefully few prototypes, 5255 which can conflict with char accept (); below. 5256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5257 <limits.h> exists even on freestanding compilers. */ 5258 5259#ifdef __STDC__ 5260# include <limits.h> 5261#else 5262# include <assert.h> 5263#endif 5264 5265#undef accept 5266 5267/* Override any GCC internal prototype to avoid an error. 5268 Use char because int might match the return type of a GCC 5269 builtin and then its argument prototype would still apply. */ 5270#ifdef __cplusplus 5271extern "C" 5272#endif 5273char accept (); 5274/* The GNU C library defines this for functions which it implements 5275 to always fail with ENOSYS. Some functions are actually named 5276 something starting with __ and the normal name is an alias. */ 5277#if defined __stub_accept || defined __stub___accept 5278choke me 5279#endif 5280 5281int 5282main () 5283{ 5284return accept (); 5285 ; 5286 return 0; 5287} 5288_ACEOF 5289rm -f conftest.$ac_objext conftest$ac_exeext 5290if { (ac_try="$ac_link" 5291case "(($ac_try" in 5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5293 *) ac_try_echo=$ac_try;; 5294esac 5295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5296 (eval "$ac_link") 2>conftest.er1 5297 ac_status=$? 5298 grep -v '^ *+' conftest.er1 >conftest.err 5299 rm -f conftest.er1 5300 cat conftest.err >&5 5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5302 (exit $ac_status); } && { 5303 test -z "$ac_c_werror_flag" || 5304 test ! -s conftest.err 5305 } && test -s conftest$ac_exeext && 5306 $as_test_x conftest$ac_exeext; then 5307 ac_cv_func_accept=yes 5308else 5309 echo "$as_me: failed program was:" >&5 5310sed 's/^/| /' conftest.$ac_ext >&5 5311 5312 ac_cv_func_accept=no 5313fi 5314 5315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5316 conftest$ac_exeext conftest.$ac_ext 5317fi 5318{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5319echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5320if test $ac_cv_func_accept = yes; then 5321 tcl_checkNsl=0 5322else 5323 LIBS=$tk_oldLibs 5324fi 5325 5326 fi 5327 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5328echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5329if test "${ac_cv_func_gethostbyname+set}" = set; then 5330 echo $ECHO_N "(cached) $ECHO_C" >&6 5331else 5332 cat >conftest.$ac_ext <<_ACEOF 5333/* confdefs.h. */ 5334_ACEOF 5335cat confdefs.h >>conftest.$ac_ext 5336cat >>conftest.$ac_ext <<_ACEOF 5337/* end confdefs.h. */ 5338/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5339 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5340#define gethostbyname innocuous_gethostbyname 5341 5342/* System header to define __stub macros and hopefully few prototypes, 5343 which can conflict with char gethostbyname (); below. 5344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5345 <limits.h> exists even on freestanding compilers. */ 5346 5347#ifdef __STDC__ 5348# include <limits.h> 5349#else 5350# include <assert.h> 5351#endif 5352 5353#undef gethostbyname 5354 5355/* Override any GCC internal prototype to avoid an error. 5356 Use char because int might match the return type of a GCC 5357 builtin and then its argument prototype would still apply. */ 5358#ifdef __cplusplus 5359extern "C" 5360#endif 5361char gethostbyname (); 5362/* The GNU C library defines this for functions which it implements 5363 to always fail with ENOSYS. Some functions are actually named 5364 something starting with __ and the normal name is an alias. */ 5365#if defined __stub_gethostbyname || defined __stub___gethostbyname 5366choke me 5367#endif 5368 5369int 5370main () 5371{ 5372return gethostbyname (); 5373 ; 5374 return 0; 5375} 5376_ACEOF 5377rm -f conftest.$ac_objext conftest$ac_exeext 5378if { (ac_try="$ac_link" 5379case "(($ac_try" in 5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5381 *) ac_try_echo=$ac_try;; 5382esac 5383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5384 (eval "$ac_link") 2>conftest.er1 5385 ac_status=$? 5386 grep -v '^ *+' conftest.er1 >conftest.err 5387 rm -f conftest.er1 5388 cat conftest.err >&5 5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5390 (exit $ac_status); } && { 5391 test -z "$ac_c_werror_flag" || 5392 test ! -s conftest.err 5393 } && test -s conftest$ac_exeext && 5394 $as_test_x conftest$ac_exeext; then 5395 ac_cv_func_gethostbyname=yes 5396else 5397 echo "$as_me: failed program was:" >&5 5398sed 's/^/| /' conftest.$ac_ext >&5 5399 5400 ac_cv_func_gethostbyname=no 5401fi 5402 5403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5404 conftest$ac_exeext conftest.$ac_ext 5405fi 5406{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5407echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5408if test $ac_cv_func_gethostbyname = yes; then 5409 : 5410else 5411 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5412echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5413if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5414 echo $ECHO_N "(cached) $ECHO_C" >&6 5415else 5416 ac_check_lib_save_LIBS=$LIBS 5417LIBS="-lnsl $LIBS" 5418cat >conftest.$ac_ext <<_ACEOF 5419/* confdefs.h. */ 5420_ACEOF 5421cat confdefs.h >>conftest.$ac_ext 5422cat >>conftest.$ac_ext <<_ACEOF 5423/* end confdefs.h. */ 5424 5425/* Override any GCC internal prototype to avoid an error. 5426 Use char because int might match the return type of a GCC 5427 builtin and then its argument prototype would still apply. */ 5428#ifdef __cplusplus 5429extern "C" 5430#endif 5431char gethostbyname (); 5432int 5433main () 5434{ 5435return gethostbyname (); 5436 ; 5437 return 0; 5438} 5439_ACEOF 5440rm -f conftest.$ac_objext conftest$ac_exeext 5441if { (ac_try="$ac_link" 5442case "(($ac_try" in 5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5444 *) ac_try_echo=$ac_try;; 5445esac 5446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5447 (eval "$ac_link") 2>conftest.er1 5448 ac_status=$? 5449 grep -v '^ *+' conftest.er1 >conftest.err 5450 rm -f conftest.er1 5451 cat conftest.err >&5 5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5453 (exit $ac_status); } && { 5454 test -z "$ac_c_werror_flag" || 5455 test ! -s conftest.err 5456 } && test -s conftest$ac_exeext && 5457 $as_test_x conftest$ac_exeext; then 5458 ac_cv_lib_nsl_gethostbyname=yes 5459else 5460 echo "$as_me: failed program was:" >&5 5461sed 's/^/| /' conftest.$ac_ext >&5 5462 5463 ac_cv_lib_nsl_gethostbyname=no 5464fi 5465 5466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5467 conftest$ac_exeext conftest.$ac_ext 5468LIBS=$ac_check_lib_save_LIBS 5469fi 5470{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5471echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5472if test $ac_cv_lib_nsl_gethostbyname = yes; then 5473 LIBS="$LIBS -lnsl" 5474fi 5475 5476fi 5477 5478 5479 # TEA specific: Don't perform the eval of the libraries here because 5480 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5481 5482 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5483 5484 5485 5486 5487 { echo "$as_me:$LINENO: checking dirent.h" >&5 5488echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5489if test "${tcl_cv_dirent_h+set}" = set; then 5490 echo $ECHO_N "(cached) $ECHO_C" >&6 5491else 5492 5493 cat >conftest.$ac_ext <<_ACEOF 5494/* confdefs.h. */ 5495_ACEOF 5496cat confdefs.h >>conftest.$ac_ext 5497cat >>conftest.$ac_ext <<_ACEOF 5498/* end confdefs.h. */ 5499#include <sys/types.h> 5500#include <dirent.h> 5501int 5502main () 5503{ 5504 5505#ifndef _POSIX_SOURCE 5506# ifdef __Lynx__ 5507 /* 5508 * Generate compilation error to make the test fail: Lynx headers 5509 * are only valid if really in the POSIX environment. 5510 */ 5511 5512 missing_procedure(); 5513# endif 5514#endif 5515DIR *d; 5516struct dirent *entryPtr; 5517char *p; 5518d = opendir("foobar"); 5519entryPtr = readdir(d); 5520p = entryPtr->d_name; 5521closedir(d); 5522 5523 ; 5524 return 0; 5525} 5526_ACEOF 5527rm -f conftest.$ac_objext conftest$ac_exeext 5528if { (ac_try="$ac_link" 5529case "(($ac_try" in 5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5531 *) ac_try_echo=$ac_try;; 5532esac 5533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5534 (eval "$ac_link") 2>conftest.er1 5535 ac_status=$? 5536 grep -v '^ *+' conftest.er1 >conftest.err 5537 rm -f conftest.er1 5538 cat conftest.err >&5 5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5540 (exit $ac_status); } && { 5541 test -z "$ac_c_werror_flag" || 5542 test ! -s conftest.err 5543 } && test -s conftest$ac_exeext && 5544 $as_test_x conftest$ac_exeext; then 5545 tcl_cv_dirent_h=yes 5546else 5547 echo "$as_me: failed program was:" >&5 5548sed 's/^/| /' conftest.$ac_ext >&5 5549 5550 tcl_cv_dirent_h=no 5551fi 5552 5553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5554 conftest$ac_exeext conftest.$ac_ext 5555fi 5556{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5557echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5558 5559 if test $tcl_cv_dirent_h = no; then 5560 5561cat >>confdefs.h <<\_ACEOF 5562#define NO_DIRENT_H 1 5563_ACEOF 5564 5565 fi 5566 5567 # TEA specific: 5568 if test "${ac_cv_header_errno_h+set}" = set; then 5569 { echo "$as_me:$LINENO: checking for errno.h" >&5 5570echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5571if test "${ac_cv_header_errno_h+set}" = set; then 5572 echo $ECHO_N "(cached) $ECHO_C" >&6 5573fi 5574{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5575echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5576else 5577 # Is the header compilable? 5578{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5579echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5580cat >conftest.$ac_ext <<_ACEOF 5581/* confdefs.h. */ 5582_ACEOF 5583cat confdefs.h >>conftest.$ac_ext 5584cat >>conftest.$ac_ext <<_ACEOF 5585/* end confdefs.h. */ 5586$ac_includes_default 5587#include <errno.h> 5588_ACEOF 5589rm -f conftest.$ac_objext 5590if { (ac_try="$ac_compile" 5591case "(($ac_try" in 5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5593 *) ac_try_echo=$ac_try;; 5594esac 5595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5596 (eval "$ac_compile") 2>conftest.er1 5597 ac_status=$? 5598 grep -v '^ *+' conftest.er1 >conftest.err 5599 rm -f conftest.er1 5600 cat conftest.err >&5 5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5602 (exit $ac_status); } && { 5603 test -z "$ac_c_werror_flag" || 5604 test ! -s conftest.err 5605 } && test -s conftest.$ac_objext; then 5606 ac_header_compiler=yes 5607else 5608 echo "$as_me: failed program was:" >&5 5609sed 's/^/| /' conftest.$ac_ext >&5 5610 5611 ac_header_compiler=no 5612fi 5613 5614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5615{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5616echo "${ECHO_T}$ac_header_compiler" >&6; } 5617 5618# Is the header present? 5619{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5620echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5621cat >conftest.$ac_ext <<_ACEOF 5622/* confdefs.h. */ 5623_ACEOF 5624cat confdefs.h >>conftest.$ac_ext 5625cat >>conftest.$ac_ext <<_ACEOF 5626/* end confdefs.h. */ 5627#include <errno.h> 5628_ACEOF 5629if { (ac_try="$ac_cpp conftest.$ac_ext" 5630case "(($ac_try" in 5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5632 *) ac_try_echo=$ac_try;; 5633esac 5634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5636 ac_status=$? 5637 grep -v '^ *+' conftest.er1 >conftest.err 5638 rm -f conftest.er1 5639 cat conftest.err >&5 5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5641 (exit $ac_status); } >/dev/null && { 5642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5643 test ! -s conftest.err 5644 }; then 5645 ac_header_preproc=yes 5646else 5647 echo "$as_me: failed program was:" >&5 5648sed 's/^/| /' conftest.$ac_ext >&5 5649 5650 ac_header_preproc=no 5651fi 5652 5653rm -f conftest.err conftest.$ac_ext 5654{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5655echo "${ECHO_T}$ac_header_preproc" >&6; } 5656 5657# So? What about this header? 5658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5659 yes:no: ) 5660 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5661echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5662 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5663echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5664 ac_header_preproc=yes 5665 ;; 5666 no:yes:* ) 5667 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5668echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5669 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5670echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5671 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5672echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5673 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5674echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5675 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5676echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5677 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5678echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5679 5680 ;; 5681esac 5682{ echo "$as_me:$LINENO: checking for errno.h" >&5 5683echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5684if test "${ac_cv_header_errno_h+set}" = set; then 5685 echo $ECHO_N "(cached) $ECHO_C" >&6 5686else 5687 ac_cv_header_errno_h=$ac_header_preproc 5688fi 5689{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5690echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5691 5692fi 5693if test $ac_cv_header_errno_h = yes; then 5694 : 5695else 5696 5697cat >>confdefs.h <<\_ACEOF 5698#define NO_ERRNO_H 1 5699_ACEOF 5700 5701fi 5702 5703 5704 if test "${ac_cv_header_float_h+set}" = set; then 5705 { echo "$as_me:$LINENO: checking for float.h" >&5 5706echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5707if test "${ac_cv_header_float_h+set}" = set; then 5708 echo $ECHO_N "(cached) $ECHO_C" >&6 5709fi 5710{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5711echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5712else 5713 # Is the header compilable? 5714{ echo "$as_me:$LINENO: checking float.h usability" >&5 5715echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5716cat >conftest.$ac_ext <<_ACEOF 5717/* confdefs.h. */ 5718_ACEOF 5719cat confdefs.h >>conftest.$ac_ext 5720cat >>conftest.$ac_ext <<_ACEOF 5721/* end confdefs.h. */ 5722$ac_includes_default 5723#include <float.h> 5724_ACEOF 5725rm -f conftest.$ac_objext 5726if { (ac_try="$ac_compile" 5727case "(($ac_try" in 5728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5729 *) ac_try_echo=$ac_try;; 5730esac 5731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5732 (eval "$ac_compile") 2>conftest.er1 5733 ac_status=$? 5734 grep -v '^ *+' conftest.er1 >conftest.err 5735 rm -f conftest.er1 5736 cat conftest.err >&5 5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5738 (exit $ac_status); } && { 5739 test -z "$ac_c_werror_flag" || 5740 test ! -s conftest.err 5741 } && test -s conftest.$ac_objext; then 5742 ac_header_compiler=yes 5743else 5744 echo "$as_me: failed program was:" >&5 5745sed 's/^/| /' conftest.$ac_ext >&5 5746 5747 ac_header_compiler=no 5748fi 5749 5750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5751{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5752echo "${ECHO_T}$ac_header_compiler" >&6; } 5753 5754# Is the header present? 5755{ echo "$as_me:$LINENO: checking float.h presence" >&5 5756echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5757cat >conftest.$ac_ext <<_ACEOF 5758/* confdefs.h. */ 5759_ACEOF 5760cat confdefs.h >>conftest.$ac_ext 5761cat >>conftest.$ac_ext <<_ACEOF 5762/* end confdefs.h. */ 5763#include <float.h> 5764_ACEOF 5765if { (ac_try="$ac_cpp conftest.$ac_ext" 5766case "(($ac_try" in 5767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5768 *) ac_try_echo=$ac_try;; 5769esac 5770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5772 ac_status=$? 5773 grep -v '^ *+' conftest.er1 >conftest.err 5774 rm -f conftest.er1 5775 cat conftest.err >&5 5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5777 (exit $ac_status); } >/dev/null && { 5778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5779 test ! -s conftest.err 5780 }; then 5781 ac_header_preproc=yes 5782else 5783 echo "$as_me: failed program was:" >&5 5784sed 's/^/| /' conftest.$ac_ext >&5 5785 5786 ac_header_preproc=no 5787fi 5788 5789rm -f conftest.err conftest.$ac_ext 5790{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5791echo "${ECHO_T}$ac_header_preproc" >&6; } 5792 5793# So? What about this header? 5794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5795 yes:no: ) 5796 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5797echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5798 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5799echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5800 ac_header_preproc=yes 5801 ;; 5802 no:yes:* ) 5803 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5804echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5805 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5806echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5807 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5808echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5809 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5810echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5811 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5812echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5813 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5814echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5815 5816 ;; 5817esac 5818{ echo "$as_me:$LINENO: checking for float.h" >&5 5819echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5820if test "${ac_cv_header_float_h+set}" = set; then 5821 echo $ECHO_N "(cached) $ECHO_C" >&6 5822else 5823 ac_cv_header_float_h=$ac_header_preproc 5824fi 5825{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5826echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5827 5828fi 5829if test $ac_cv_header_float_h = yes; then 5830 : 5831else 5832 5833cat >>confdefs.h <<\_ACEOF 5834#define NO_FLOAT_H 1 5835_ACEOF 5836 5837fi 5838 5839 5840 if test "${ac_cv_header_values_h+set}" = set; then 5841 { echo "$as_me:$LINENO: checking for values.h" >&5 5842echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5843if test "${ac_cv_header_values_h+set}" = set; then 5844 echo $ECHO_N "(cached) $ECHO_C" >&6 5845fi 5846{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5847echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5848else 5849 # Is the header compilable? 5850{ echo "$as_me:$LINENO: checking values.h usability" >&5 5851echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5852cat >conftest.$ac_ext <<_ACEOF 5853/* confdefs.h. */ 5854_ACEOF 5855cat confdefs.h >>conftest.$ac_ext 5856cat >>conftest.$ac_ext <<_ACEOF 5857/* end confdefs.h. */ 5858$ac_includes_default 5859#include <values.h> 5860_ACEOF 5861rm -f conftest.$ac_objext 5862if { (ac_try="$ac_compile" 5863case "(($ac_try" in 5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5865 *) ac_try_echo=$ac_try;; 5866esac 5867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5868 (eval "$ac_compile") 2>conftest.er1 5869 ac_status=$? 5870 grep -v '^ *+' conftest.er1 >conftest.err 5871 rm -f conftest.er1 5872 cat conftest.err >&5 5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5874 (exit $ac_status); } && { 5875 test -z "$ac_c_werror_flag" || 5876 test ! -s conftest.err 5877 } && test -s conftest.$ac_objext; then 5878 ac_header_compiler=yes 5879else 5880 echo "$as_me: failed program was:" >&5 5881sed 's/^/| /' conftest.$ac_ext >&5 5882 5883 ac_header_compiler=no 5884fi 5885 5886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5887{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5888echo "${ECHO_T}$ac_header_compiler" >&6; } 5889 5890# Is the header present? 5891{ echo "$as_me:$LINENO: checking values.h presence" >&5 5892echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5893cat >conftest.$ac_ext <<_ACEOF 5894/* confdefs.h. */ 5895_ACEOF 5896cat confdefs.h >>conftest.$ac_ext 5897cat >>conftest.$ac_ext <<_ACEOF 5898/* end confdefs.h. */ 5899#include <values.h> 5900_ACEOF 5901if { (ac_try="$ac_cpp conftest.$ac_ext" 5902case "(($ac_try" in 5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5904 *) ac_try_echo=$ac_try;; 5905esac 5906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5908 ac_status=$? 5909 grep -v '^ *+' conftest.er1 >conftest.err 5910 rm -f conftest.er1 5911 cat conftest.err >&5 5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5913 (exit $ac_status); } >/dev/null && { 5914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5915 test ! -s conftest.err 5916 }; then 5917 ac_header_preproc=yes 5918else 5919 echo "$as_me: failed program was:" >&5 5920sed 's/^/| /' conftest.$ac_ext >&5 5921 5922 ac_header_preproc=no 5923fi 5924 5925rm -f conftest.err conftest.$ac_ext 5926{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5927echo "${ECHO_T}$ac_header_preproc" >&6; } 5928 5929# So? What about this header? 5930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5931 yes:no: ) 5932 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5933echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5934 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5935echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5936 ac_header_preproc=yes 5937 ;; 5938 no:yes:* ) 5939 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5940echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5941 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5942echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5943 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5944echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5945 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5946echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5947 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5948echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5949 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5950echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5951 5952 ;; 5953esac 5954{ echo "$as_me:$LINENO: checking for values.h" >&5 5955echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5956if test "${ac_cv_header_values_h+set}" = set; then 5957 echo $ECHO_N "(cached) $ECHO_C" >&6 5958else 5959 ac_cv_header_values_h=$ac_header_preproc 5960fi 5961{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5962echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5963 5964fi 5965if test $ac_cv_header_values_h = yes; then 5966 : 5967else 5968 5969cat >>confdefs.h <<\_ACEOF 5970#define NO_VALUES_H 1 5971_ACEOF 5972 5973fi 5974 5975 5976 if test "${ac_cv_header_limits_h+set}" = set; then 5977 { echo "$as_me:$LINENO: checking for limits.h" >&5 5978echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5979if test "${ac_cv_header_limits_h+set}" = set; then 5980 echo $ECHO_N "(cached) $ECHO_C" >&6 5981fi 5982{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5983echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5984else 5985 # Is the header compilable? 5986{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5987echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5988cat >conftest.$ac_ext <<_ACEOF 5989/* confdefs.h. */ 5990_ACEOF 5991cat confdefs.h >>conftest.$ac_ext 5992cat >>conftest.$ac_ext <<_ACEOF 5993/* end confdefs.h. */ 5994$ac_includes_default 5995#include <limits.h> 5996_ACEOF 5997rm -f conftest.$ac_objext 5998if { (ac_try="$ac_compile" 5999case "(($ac_try" in 6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6001 *) ac_try_echo=$ac_try;; 6002esac 6003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6004 (eval "$ac_compile") 2>conftest.er1 6005 ac_status=$? 6006 grep -v '^ *+' conftest.er1 >conftest.err 6007 rm -f conftest.er1 6008 cat conftest.err >&5 6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6010 (exit $ac_status); } && { 6011 test -z "$ac_c_werror_flag" || 6012 test ! -s conftest.err 6013 } && test -s conftest.$ac_objext; then 6014 ac_header_compiler=yes 6015else 6016 echo "$as_me: failed program was:" >&5 6017sed 's/^/| /' conftest.$ac_ext >&5 6018 6019 ac_header_compiler=no 6020fi 6021 6022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6023{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6024echo "${ECHO_T}$ac_header_compiler" >&6; } 6025 6026# Is the header present? 6027{ echo "$as_me:$LINENO: checking limits.h presence" >&5 6028echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 6029cat >conftest.$ac_ext <<_ACEOF 6030/* confdefs.h. */ 6031_ACEOF 6032cat confdefs.h >>conftest.$ac_ext 6033cat >>conftest.$ac_ext <<_ACEOF 6034/* end confdefs.h. */ 6035#include <limits.h> 6036_ACEOF 6037if { (ac_try="$ac_cpp conftest.$ac_ext" 6038case "(($ac_try" in 6039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6040 *) ac_try_echo=$ac_try;; 6041esac 6042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6044 ac_status=$? 6045 grep -v '^ *+' conftest.er1 >conftest.err 6046 rm -f conftest.er1 6047 cat conftest.err >&5 6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6049 (exit $ac_status); } >/dev/null && { 6050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6051 test ! -s conftest.err 6052 }; then 6053 ac_header_preproc=yes 6054else 6055 echo "$as_me: failed program was:" >&5 6056sed 's/^/| /' conftest.$ac_ext >&5 6057 6058 ac_header_preproc=no 6059fi 6060 6061rm -f conftest.err conftest.$ac_ext 6062{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6063echo "${ECHO_T}$ac_header_preproc" >&6; } 6064 6065# So? What about this header? 6066case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6067 yes:no: ) 6068 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 6069echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6070 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 6071echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 6072 ac_header_preproc=yes 6073 ;; 6074 no:yes:* ) 6075 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 6076echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 6077 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 6078echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 6079 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 6080echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 6081 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 6082echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 6083 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 6084echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 6085 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 6086echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 6087 6088 ;; 6089esac 6090{ echo "$as_me:$LINENO: checking for limits.h" >&5 6091echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 6092if test "${ac_cv_header_limits_h+set}" = set; then 6093 echo $ECHO_N "(cached) $ECHO_C" >&6 6094else 6095 ac_cv_header_limits_h=$ac_header_preproc 6096fi 6097{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 6098echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 6099 6100fi 6101if test $ac_cv_header_limits_h = yes; then 6102 6103cat >>confdefs.h <<\_ACEOF 6104#define HAVE_LIMITS_H 1 6105_ACEOF 6106 6107else 6108 6109cat >>confdefs.h <<\_ACEOF 6110#define NO_LIMITS_H 1 6111_ACEOF 6112 6113fi 6114 6115 6116 if test "${ac_cv_header_stdlib_h+set}" = set; then 6117 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 6118echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6119if test "${ac_cv_header_stdlib_h+set}" = set; then 6120 echo $ECHO_N "(cached) $ECHO_C" >&6 6121fi 6122{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6123echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6124else 6125 # Is the header compilable? 6126{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 6127echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 6128cat >conftest.$ac_ext <<_ACEOF 6129/* confdefs.h. */ 6130_ACEOF 6131cat confdefs.h >>conftest.$ac_ext 6132cat >>conftest.$ac_ext <<_ACEOF 6133/* end confdefs.h. */ 6134$ac_includes_default 6135#include <stdlib.h> 6136_ACEOF 6137rm -f conftest.$ac_objext 6138if { (ac_try="$ac_compile" 6139case "(($ac_try" in 6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6141 *) ac_try_echo=$ac_try;; 6142esac 6143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6144 (eval "$ac_compile") 2>conftest.er1 6145 ac_status=$? 6146 grep -v '^ *+' conftest.er1 >conftest.err 6147 rm -f conftest.er1 6148 cat conftest.err >&5 6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6150 (exit $ac_status); } && { 6151 test -z "$ac_c_werror_flag" || 6152 test ! -s conftest.err 6153 } && test -s conftest.$ac_objext; then 6154 ac_header_compiler=yes 6155else 6156 echo "$as_me: failed program was:" >&5 6157sed 's/^/| /' conftest.$ac_ext >&5 6158 6159 ac_header_compiler=no 6160fi 6161 6162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6163{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6164echo "${ECHO_T}$ac_header_compiler" >&6; } 6165 6166# Is the header present? 6167{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 6168echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 6169cat >conftest.$ac_ext <<_ACEOF 6170/* confdefs.h. */ 6171_ACEOF 6172cat confdefs.h >>conftest.$ac_ext 6173cat >>conftest.$ac_ext <<_ACEOF 6174/* end confdefs.h. */ 6175#include <stdlib.h> 6176_ACEOF 6177if { (ac_try="$ac_cpp conftest.$ac_ext" 6178case "(($ac_try" in 6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6180 *) ac_try_echo=$ac_try;; 6181esac 6182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6184 ac_status=$? 6185 grep -v '^ *+' conftest.er1 >conftest.err 6186 rm -f conftest.er1 6187 cat conftest.err >&5 6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6189 (exit $ac_status); } >/dev/null && { 6190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6191 test ! -s conftest.err 6192 }; then 6193 ac_header_preproc=yes 6194else 6195 echo "$as_me: failed program was:" >&5 6196sed 's/^/| /' conftest.$ac_ext >&5 6197 6198 ac_header_preproc=no 6199fi 6200 6201rm -f conftest.err conftest.$ac_ext 6202{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6203echo "${ECHO_T}$ac_header_preproc" >&6; } 6204 6205# So? What about this header? 6206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6207 yes:no: ) 6208 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 6209echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6210 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 6211echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 6212 ac_header_preproc=yes 6213 ;; 6214 no:yes:* ) 6215 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 6216echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 6217 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 6218echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 6219 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 6220echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 6221 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 6222echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 6223 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 6224echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 6225 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 6226echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 6227 6228 ;; 6229esac 6230{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 6231echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6232if test "${ac_cv_header_stdlib_h+set}" = set; then 6233 echo $ECHO_N "(cached) $ECHO_C" >&6 6234else 6235 ac_cv_header_stdlib_h=$ac_header_preproc 6236fi 6237{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6238echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6239 6240fi 6241if test $ac_cv_header_stdlib_h = yes; then 6242 tcl_ok=1 6243else 6244 tcl_ok=0 6245fi 6246 6247 6248 cat >conftest.$ac_ext <<_ACEOF 6249/* confdefs.h. */ 6250_ACEOF 6251cat confdefs.h >>conftest.$ac_ext 6252cat >>conftest.$ac_ext <<_ACEOF 6253/* end confdefs.h. */ 6254#include <stdlib.h> 6255 6256_ACEOF 6257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6258 $EGREP "strtol" >/dev/null 2>&1; then 6259 : 6260else 6261 tcl_ok=0 6262fi 6263rm -f -r conftest* 6264 6265 cat >conftest.$ac_ext <<_ACEOF 6266/* confdefs.h. */ 6267_ACEOF 6268cat confdefs.h >>conftest.$ac_ext 6269cat >>conftest.$ac_ext <<_ACEOF 6270/* end confdefs.h. */ 6271#include <stdlib.h> 6272 6273_ACEOF 6274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6275 $EGREP "strtoul" >/dev/null 2>&1; then 6276 : 6277else 6278 tcl_ok=0 6279fi 6280rm -f -r conftest* 6281 6282 cat >conftest.$ac_ext <<_ACEOF 6283/* confdefs.h. */ 6284_ACEOF 6285cat confdefs.h >>conftest.$ac_ext 6286cat >>conftest.$ac_ext <<_ACEOF 6287/* end confdefs.h. */ 6288#include <stdlib.h> 6289 6290_ACEOF 6291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6292 $EGREP "strtod" >/dev/null 2>&1; then 6293 : 6294else 6295 tcl_ok=0 6296fi 6297rm -f -r conftest* 6298 6299 if test $tcl_ok = 0; then 6300 6301cat >>confdefs.h <<\_ACEOF 6302#define NO_STDLIB_H 1 6303_ACEOF 6304 6305 fi 6306 if test "${ac_cv_header_string_h+set}" = set; then 6307 { echo "$as_me:$LINENO: checking for string.h" >&5 6308echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6309if test "${ac_cv_header_string_h+set}" = set; then 6310 echo $ECHO_N "(cached) $ECHO_C" >&6 6311fi 6312{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6313echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6314else 6315 # Is the header compilable? 6316{ echo "$as_me:$LINENO: checking string.h usability" >&5 6317echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6318cat >conftest.$ac_ext <<_ACEOF 6319/* confdefs.h. */ 6320_ACEOF 6321cat confdefs.h >>conftest.$ac_ext 6322cat >>conftest.$ac_ext <<_ACEOF 6323/* end confdefs.h. */ 6324$ac_includes_default 6325#include <string.h> 6326_ACEOF 6327rm -f conftest.$ac_objext 6328if { (ac_try="$ac_compile" 6329case "(($ac_try" in 6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6331 *) ac_try_echo=$ac_try;; 6332esac 6333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6334 (eval "$ac_compile") 2>conftest.er1 6335 ac_status=$? 6336 grep -v '^ *+' conftest.er1 >conftest.err 6337 rm -f conftest.er1 6338 cat conftest.err >&5 6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6340 (exit $ac_status); } && { 6341 test -z "$ac_c_werror_flag" || 6342 test ! -s conftest.err 6343 } && test -s conftest.$ac_objext; then 6344 ac_header_compiler=yes 6345else 6346 echo "$as_me: failed program was:" >&5 6347sed 's/^/| /' conftest.$ac_ext >&5 6348 6349 ac_header_compiler=no 6350fi 6351 6352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6353{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6354echo "${ECHO_T}$ac_header_compiler" >&6; } 6355 6356# Is the header present? 6357{ echo "$as_me:$LINENO: checking string.h presence" >&5 6358echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6359cat >conftest.$ac_ext <<_ACEOF 6360/* confdefs.h. */ 6361_ACEOF 6362cat confdefs.h >>conftest.$ac_ext 6363cat >>conftest.$ac_ext <<_ACEOF 6364/* end confdefs.h. */ 6365#include <string.h> 6366_ACEOF 6367if { (ac_try="$ac_cpp conftest.$ac_ext" 6368case "(($ac_try" in 6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6370 *) ac_try_echo=$ac_try;; 6371esac 6372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6374 ac_status=$? 6375 grep -v '^ *+' conftest.er1 >conftest.err 6376 rm -f conftest.er1 6377 cat conftest.err >&5 6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6379 (exit $ac_status); } >/dev/null && { 6380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6381 test ! -s conftest.err 6382 }; then 6383 ac_header_preproc=yes 6384else 6385 echo "$as_me: failed program was:" >&5 6386sed 's/^/| /' conftest.$ac_ext >&5 6387 6388 ac_header_preproc=no 6389fi 6390 6391rm -f conftest.err conftest.$ac_ext 6392{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6393echo "${ECHO_T}$ac_header_preproc" >&6; } 6394 6395# So? What about this header? 6396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6397 yes:no: ) 6398 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6399echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6400 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6401echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6402 ac_header_preproc=yes 6403 ;; 6404 no:yes:* ) 6405 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6406echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6407 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6408echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6409 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6410echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6411 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6412echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6413 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6414echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6415 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6416echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6417 6418 ;; 6419esac 6420{ echo "$as_me:$LINENO: checking for string.h" >&5 6421echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6422if test "${ac_cv_header_string_h+set}" = set; then 6423 echo $ECHO_N "(cached) $ECHO_C" >&6 6424else 6425 ac_cv_header_string_h=$ac_header_preproc 6426fi 6427{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6428echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6429 6430fi 6431if test $ac_cv_header_string_h = yes; then 6432 tcl_ok=1 6433else 6434 tcl_ok=0 6435fi 6436 6437 6438 cat >conftest.$ac_ext <<_ACEOF 6439/* confdefs.h. */ 6440_ACEOF 6441cat confdefs.h >>conftest.$ac_ext 6442cat >>conftest.$ac_ext <<_ACEOF 6443/* end confdefs.h. */ 6444#include <string.h> 6445 6446_ACEOF 6447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6448 $EGREP "strstr" >/dev/null 2>&1; then 6449 : 6450else 6451 tcl_ok=0 6452fi 6453rm -f -r conftest* 6454 6455 cat >conftest.$ac_ext <<_ACEOF 6456/* confdefs.h. */ 6457_ACEOF 6458cat confdefs.h >>conftest.$ac_ext 6459cat >>conftest.$ac_ext <<_ACEOF 6460/* end confdefs.h. */ 6461#include <string.h> 6462 6463_ACEOF 6464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6465 $EGREP "strerror" >/dev/null 2>&1; then 6466 : 6467else 6468 tcl_ok=0 6469fi 6470rm -f -r conftest* 6471 6472 6473 # See also memmove check below for a place where NO_STRING_H can be 6474 # set and why. 6475 6476 if test $tcl_ok = 0; then 6477 6478cat >>confdefs.h <<\_ACEOF 6479#define NO_STRING_H 1 6480_ACEOF 6481 6482 fi 6483 6484 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6485 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6486echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6487if test "${ac_cv_header_sys_wait_h+set}" = set; then 6488 echo $ECHO_N "(cached) $ECHO_C" >&6 6489fi 6490{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6491echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6492else 6493 # Is the header compilable? 6494{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6495echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6496cat >conftest.$ac_ext <<_ACEOF 6497/* confdefs.h. */ 6498_ACEOF 6499cat confdefs.h >>conftest.$ac_ext 6500cat >>conftest.$ac_ext <<_ACEOF 6501/* end confdefs.h. */ 6502$ac_includes_default 6503#include <sys/wait.h> 6504_ACEOF 6505rm -f conftest.$ac_objext 6506if { (ac_try="$ac_compile" 6507case "(($ac_try" in 6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6509 *) ac_try_echo=$ac_try;; 6510esac 6511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6512 (eval "$ac_compile") 2>conftest.er1 6513 ac_status=$? 6514 grep -v '^ *+' conftest.er1 >conftest.err 6515 rm -f conftest.er1 6516 cat conftest.err >&5 6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6518 (exit $ac_status); } && { 6519 test -z "$ac_c_werror_flag" || 6520 test ! -s conftest.err 6521 } && test -s conftest.$ac_objext; then 6522 ac_header_compiler=yes 6523else 6524 echo "$as_me: failed program was:" >&5 6525sed 's/^/| /' conftest.$ac_ext >&5 6526 6527 ac_header_compiler=no 6528fi 6529 6530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6531{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6532echo "${ECHO_T}$ac_header_compiler" >&6; } 6533 6534# Is the header present? 6535{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6536echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6537cat >conftest.$ac_ext <<_ACEOF 6538/* confdefs.h. */ 6539_ACEOF 6540cat confdefs.h >>conftest.$ac_ext 6541cat >>conftest.$ac_ext <<_ACEOF 6542/* end confdefs.h. */ 6543#include <sys/wait.h> 6544_ACEOF 6545if { (ac_try="$ac_cpp conftest.$ac_ext" 6546case "(($ac_try" in 6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6548 *) ac_try_echo=$ac_try;; 6549esac 6550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6552 ac_status=$? 6553 grep -v '^ *+' conftest.er1 >conftest.err 6554 rm -f conftest.er1 6555 cat conftest.err >&5 6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6557 (exit $ac_status); } >/dev/null && { 6558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6559 test ! -s conftest.err 6560 }; then 6561 ac_header_preproc=yes 6562else 6563 echo "$as_me: failed program was:" >&5 6564sed 's/^/| /' conftest.$ac_ext >&5 6565 6566 ac_header_preproc=no 6567fi 6568 6569rm -f conftest.err conftest.$ac_ext 6570{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6571echo "${ECHO_T}$ac_header_preproc" >&6; } 6572 6573# So? What about this header? 6574case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6575 yes:no: ) 6576 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6577echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6578 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6579echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6580 ac_header_preproc=yes 6581 ;; 6582 no:yes:* ) 6583 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6584echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6585 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6586echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6587 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6588echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6589 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6590echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6591 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6592echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6593 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6594echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6595 6596 ;; 6597esac 6598{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6599echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6600if test "${ac_cv_header_sys_wait_h+set}" = set; then 6601 echo $ECHO_N "(cached) $ECHO_C" >&6 6602else 6603 ac_cv_header_sys_wait_h=$ac_header_preproc 6604fi 6605{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6606echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6607 6608fi 6609if test $ac_cv_header_sys_wait_h = yes; then 6610 : 6611else 6612 6613cat >>confdefs.h <<\_ACEOF 6614#define NO_SYS_WAIT_H 1 6615_ACEOF 6616 6617fi 6618 6619 6620 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6621 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6622echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6623if test "${ac_cv_header_dlfcn_h+set}" = set; then 6624 echo $ECHO_N "(cached) $ECHO_C" >&6 6625fi 6626{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6627echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6628else 6629 # Is the header compilable? 6630{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6631echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6632cat >conftest.$ac_ext <<_ACEOF 6633/* confdefs.h. */ 6634_ACEOF 6635cat confdefs.h >>conftest.$ac_ext 6636cat >>conftest.$ac_ext <<_ACEOF 6637/* end confdefs.h. */ 6638$ac_includes_default 6639#include <dlfcn.h> 6640_ACEOF 6641rm -f conftest.$ac_objext 6642if { (ac_try="$ac_compile" 6643case "(($ac_try" in 6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6645 *) ac_try_echo=$ac_try;; 6646esac 6647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6648 (eval "$ac_compile") 2>conftest.er1 6649 ac_status=$? 6650 grep -v '^ *+' conftest.er1 >conftest.err 6651 rm -f conftest.er1 6652 cat conftest.err >&5 6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6654 (exit $ac_status); } && { 6655 test -z "$ac_c_werror_flag" || 6656 test ! -s conftest.err 6657 } && test -s conftest.$ac_objext; then 6658 ac_header_compiler=yes 6659else 6660 echo "$as_me: failed program was:" >&5 6661sed 's/^/| /' conftest.$ac_ext >&5 6662 6663 ac_header_compiler=no 6664fi 6665 6666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6667{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6668echo "${ECHO_T}$ac_header_compiler" >&6; } 6669 6670# Is the header present? 6671{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6672echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6673cat >conftest.$ac_ext <<_ACEOF 6674/* confdefs.h. */ 6675_ACEOF 6676cat confdefs.h >>conftest.$ac_ext 6677cat >>conftest.$ac_ext <<_ACEOF 6678/* end confdefs.h. */ 6679#include <dlfcn.h> 6680_ACEOF 6681if { (ac_try="$ac_cpp conftest.$ac_ext" 6682case "(($ac_try" in 6683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6684 *) ac_try_echo=$ac_try;; 6685esac 6686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6688 ac_status=$? 6689 grep -v '^ *+' conftest.er1 >conftest.err 6690 rm -f conftest.er1 6691 cat conftest.err >&5 6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6693 (exit $ac_status); } >/dev/null && { 6694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6695 test ! -s conftest.err 6696 }; then 6697 ac_header_preproc=yes 6698else 6699 echo "$as_me: failed program was:" >&5 6700sed 's/^/| /' conftest.$ac_ext >&5 6701 6702 ac_header_preproc=no 6703fi 6704 6705rm -f conftest.err conftest.$ac_ext 6706{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6707echo "${ECHO_T}$ac_header_preproc" >&6; } 6708 6709# So? What about this header? 6710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6711 yes:no: ) 6712 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6713echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6714 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6715echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6716 ac_header_preproc=yes 6717 ;; 6718 no:yes:* ) 6719 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6720echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6721 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6722echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6723 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6724echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6725 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6726echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6727 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6728echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6729 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6730echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6731 6732 ;; 6733esac 6734{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6735echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6736if test "${ac_cv_header_dlfcn_h+set}" = set; then 6737 echo $ECHO_N "(cached) $ECHO_C" >&6 6738else 6739 ac_cv_header_dlfcn_h=$ac_header_preproc 6740fi 6741{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6742echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6743 6744fi 6745if test $ac_cv_header_dlfcn_h = yes; then 6746 : 6747else 6748 6749cat >>confdefs.h <<\_ACEOF 6750#define NO_DLFCN_H 1 6751_ACEOF 6752 6753fi 6754 6755 6756 6757 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6758 6759for ac_header in sys/param.h 6760do 6761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6763 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6766 echo $ECHO_N "(cached) $ECHO_C" >&6 6767fi 6768ac_res=`eval echo '${'$as_ac_Header'}'` 6769 { echo "$as_me:$LINENO: result: $ac_res" >&5 6770echo "${ECHO_T}$ac_res" >&6; } 6771else 6772 # Is the header compilable? 6773{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6774echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6775cat >conftest.$ac_ext <<_ACEOF 6776/* confdefs.h. */ 6777_ACEOF 6778cat confdefs.h >>conftest.$ac_ext 6779cat >>conftest.$ac_ext <<_ACEOF 6780/* end confdefs.h. */ 6781$ac_includes_default 6782#include <$ac_header> 6783_ACEOF 6784rm -f conftest.$ac_objext 6785if { (ac_try="$ac_compile" 6786case "(($ac_try" in 6787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6788 *) ac_try_echo=$ac_try;; 6789esac 6790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6791 (eval "$ac_compile") 2>conftest.er1 6792 ac_status=$? 6793 grep -v '^ *+' conftest.er1 >conftest.err 6794 rm -f conftest.er1 6795 cat conftest.err >&5 6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6797 (exit $ac_status); } && { 6798 test -z "$ac_c_werror_flag" || 6799 test ! -s conftest.err 6800 } && test -s conftest.$ac_objext; then 6801 ac_header_compiler=yes 6802else 6803 echo "$as_me: failed program was:" >&5 6804sed 's/^/| /' conftest.$ac_ext >&5 6805 6806 ac_header_compiler=no 6807fi 6808 6809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6810{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6811echo "${ECHO_T}$ac_header_compiler" >&6; } 6812 6813# Is the header present? 6814{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6816cat >conftest.$ac_ext <<_ACEOF 6817/* confdefs.h. */ 6818_ACEOF 6819cat confdefs.h >>conftest.$ac_ext 6820cat >>conftest.$ac_ext <<_ACEOF 6821/* end confdefs.h. */ 6822#include <$ac_header> 6823_ACEOF 6824if { (ac_try="$ac_cpp conftest.$ac_ext" 6825case "(($ac_try" in 6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6827 *) ac_try_echo=$ac_try;; 6828esac 6829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6831 ac_status=$? 6832 grep -v '^ *+' conftest.er1 >conftest.err 6833 rm -f conftest.er1 6834 cat conftest.err >&5 6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6836 (exit $ac_status); } >/dev/null && { 6837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6838 test ! -s conftest.err 6839 }; then 6840 ac_header_preproc=yes 6841else 6842 echo "$as_me: failed program was:" >&5 6843sed 's/^/| /' conftest.$ac_ext >&5 6844 6845 ac_header_preproc=no 6846fi 6847 6848rm -f conftest.err conftest.$ac_ext 6849{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6850echo "${ECHO_T}$ac_header_preproc" >&6; } 6851 6852# So? What about this header? 6853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6854 yes:no: ) 6855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6856echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6858echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6859 ac_header_preproc=yes 6860 ;; 6861 no:yes:* ) 6862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6863echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6865echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6867echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6869echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6871echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6873echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6874 6875 ;; 6876esac 6877{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6880 echo $ECHO_N "(cached) $ECHO_C" >&6 6881else 6882 eval "$as_ac_Header=\$ac_header_preproc" 6883fi 6884ac_res=`eval echo '${'$as_ac_Header'}'` 6885 { echo "$as_me:$LINENO: result: $ac_res" >&5 6886echo "${ECHO_T}$ac_res" >&6; } 6887 6888fi 6889if test `eval echo '${'$as_ac_Header'}'` = yes; then 6890 cat >>confdefs.h <<_ACEOF 6891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6892_ACEOF 6893 6894fi 6895 6896done 6897 6898 6899 # Let the user call this, because if it triggers, they will 6900 # need a compat/strtod.c that is correct. Users can also 6901 # use Tcl_GetDouble(FromObj) instead. 6902 #TEA_BUGGY_STRTOD 6903 fi 6904 6905 6906 6907 # 6908 # Ok, lets find the tkimg configuration 6909 # First, look for one uninstalled. 6910 # the alternative search directory is invoked by --with-tkimg 6911 # 6912 6913 if test x"${no_tkimg}" = x ; then 6914 # we reset no_tkimg in case something fails here 6915 no_tkimg=true 6916 6917# Check whether --with-tkimg was given. 6918if test "${with_tkimg+set}" = set; then 6919 withval=$with_tkimg; with_tkimgconfig=${withval} 6920fi 6921 6922 { echo "$as_me:$LINENO: checking for tkimg configuration" >&5 6923echo $ECHO_N "checking for tkimg configuration... $ECHO_C" >&6; } 6924 if test "${ac_cv_c_tkimgconfig+set}" = set; then 6925 echo $ECHO_N "(cached) $ECHO_C" >&6 6926else 6927 6928 6929 # First check to see if --with-tkimg was specified. 6930 if test x"${with_tkimgconfig}" != x ; then 6931 case ${with_tkimgconfig} in 6932 */tkimgConfig.sh ) 6933 if test -f ${with_tkimgconfig}; then 6934 { echo "$as_me:$LINENO: WARNING: --with-tkimg argument should refer to directory containing tkimgConfig.sh, not to tkimgConfig.sh itself" >&5 6935echo "$as_me: WARNING: --with-tkimg argument should refer to directory containing tkimgConfig.sh, not to tkimgConfig.sh itself" >&2;} 6936 with_tkimgconfig=`echo ${with_tkimgconfig} | sed 's!/tkimgConfig\.sh$!!'` 6937 fi;; 6938 esac 6939 if test -f "${with_tkimgconfig}/tkimgConfig.sh" ; then 6940 ac_cv_c_tkimgconfig=`(cd ${with_tkimgconfig}; pwd)` 6941 else 6942 { { echo "$as_me:$LINENO: error: ${with_tkimgconfig} directory doesn't contain tkimgConfig.sh" >&5 6943echo "$as_me: error: ${with_tkimgconfig} directory doesn't contain tkimgConfig.sh" >&2;} 6944 { (exit 1); exit 1; }; } 6945 fi 6946 fi 6947 6948 # then check for a private tkimg installation 6949 if test x"${ac_cv_c_tkimgconfig}" = x ; then 6950 for i in \ 6951 ../tkimg \ 6952 `ls -dr ../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6953 `ls -dr ../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6954 `ls -dr ../tkimg*[0-9].[0-9] 2>/dev/null` \ 6955 `ls -dr ../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6956 ../../tkimg \ 6957 `ls -dr ../../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6958 `ls -dr ../../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6959 `ls -dr ../../tkimg*[0-9].[0-9] 2>/dev/null` \ 6960 `ls -dr ../../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6961 ../../../tkimg \ 6962 `ls -dr ../../../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6963 `ls -dr ../../../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6964 `ls -dr ../../../tkimg*[0-9].[0-9] 2>/dev/null` \ 6965 `ls -dr ../../../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6966 ${srcdir}/../tkimg \ 6967 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6968 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6969 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9] 2>/dev/null` \ 6970 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6971 ; do 6972 if test -f "$i/tkimgConfig.sh" ; then 6973 ac_cv_c_tkimgconfig=`(cd $i; pwd)` 6974 break 6975 fi 6976 if test -f "$i/unix/tkimgConfig.sh" ; then 6977 ac_cv_c_tkimgconfig=`(cd $i/unix; pwd)` 6978 break 6979 fi 6980 done 6981 fi 6982 6983 # check in a few common install locations 6984 if test x"${ac_cv_c_tkimgconfig}" = x ; then 6985 for i in `ls -d ${libdir} 2>/dev/null` \ 6986 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 6987 `ls -d ${prefix}/lib 2>/dev/null` \ 6988 `ls -d /usr/local/lib 2>/dev/null` \ 6989 `ls -d /usr/contrib/lib 2>/dev/null` \ 6990 `ls -d /usr/lib 2>/dev/null` \ 6991 `ls -d /usr/lib64 2>/dev/null` \ 6992 ; do 6993 if test -f "$i/tkimgConfig.sh" ; then 6994 ac_cv_c_tkimgconfig=`(cd $i; pwd)` 6995 break 6996 fi 6997 done 6998 fi 6999 7000fi 7001 7002 7003 if test x"${ac_cv_c_tkimgconfig}" = x ; then 7004 tkimg_BIN_DIR="# no tkimg configs found" 7005 { echo "$as_me:$LINENO: WARNING: Cannot find tkimg configuration definitions" >&5 7006echo "$as_me: WARNING: Cannot find tkimg configuration definitions" >&2;} 7007 exit 0 7008 else 7009 no_tkimg= 7010 tkimg_BIN_DIR=${ac_cv_c_tkimgconfig} 7011 { echo "$as_me:$LINENO: result: found $tkimg_BIN_DIR/tkimgConfig.sh" >&5 7012echo "${ECHO_T}found $tkimg_BIN_DIR/tkimgConfig.sh" >&6; } 7013 fi 7014 fi 7015 7016 7017 { echo "$as_me:$LINENO: checking for existence of ${tkimg_BIN_DIR}/tkimgConfig.sh" >&5 7018echo $ECHO_N "checking for existence of ${tkimg_BIN_DIR}/tkimgConfig.sh... $ECHO_C" >&6; } 7019 7020 if test -f "${tkimg_BIN_DIR}/tkimgConfig.sh" ; then 7021 { echo "$as_me:$LINENO: result: loading" >&5 7022echo "${ECHO_T}loading" >&6; } 7023 . "${tkimg_BIN_DIR}/tkimgConfig.sh" 7024 else 7025 { echo "$as_me:$LINENO: result: file not found" >&5 7026echo "${ECHO_T}file not found" >&6; } 7027 fi 7028 7029 # 7030 # If the tkimg_BIN_DIR is the build directory (not the install directory), 7031 # then set the common variable name to the value of the build variables. 7032 # For example, the variable tkimg_LIB_SPEC will be set to the value 7033 # of tkimg_BUILD_LIB_SPEC. An extension should make use of tkimg_LIB_SPEC 7034 # instead of tkimg_BUILD_LIB_SPEC since it will work with both an 7035 # installed and uninstalled version of Tcl. 7036 # 7037 7038 if test -f "${tkimg_BIN_DIR}/Makefile" ; then 7039 { echo "$as_me:$LINENO: WARNING: Found Makefile - using build library specs for tkimg" >&5 7040echo "$as_me: WARNING: Found Makefile - using build library specs for tkimg" >&2;} 7041 tkimg_LIB_SPEC=${tkimg_BUILD_LIB_SPEC} 7042 tkimg_STUB_LIB_SPEC=${tkimg_BUILD_STUB_LIB_SPEC} 7043 tkimg_STUB_LIB_PATH=${tkimg_BUILD_STUB_LIB_PATH} 7044 fi 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 # Allow the caller to prevent this auto-check by specifying any 2nd arg 7058 if test "x" = x; then 7059 7060 # Check both upper and lower-case variants 7061 # If a dev wanted non-stubs libs, this function could take an option 7062 # to not use _STUB in the paths below 7063 if test "x${tkimg_STUB_LIB_SPEC}" = x; then 7064 7065 { echo "$as_me:$LINENO: checking For TKIMG_STUB library for LIBS" >&5 7066echo $ECHO_N "checking For TKIMG_STUB library for LIBS... $ECHO_C" >&6; } 7067 # This simplifies the use of stub libraries by automatically adding 7068 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7069 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7070 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7071 if test "x${TKIMG_STUB_LIB_SPEC}" != "x" ; then 7072 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7073 7074 vars="\"`${CYGPATH} ${TKIMG_STUB_LIB_PATH}`\"" 7075 for i in $vars; do 7076 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7077 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7078 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7079 fi 7080 PKG_LIBS="$PKG_LIBS $i" 7081 done 7082 7083 7084 { echo "$as_me:$LINENO: result: using TKIMG_STUB_LIB_PATH ${TKIMG_STUB_LIB_PATH}" >&5 7085echo "${ECHO_T}using TKIMG_STUB_LIB_PATH ${TKIMG_STUB_LIB_PATH}" >&6; } 7086 else 7087 7088 vars="${TKIMG_STUB_LIB_SPEC}" 7089 for i in $vars; do 7090 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7091 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7092 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7093 fi 7094 PKG_LIBS="$PKG_LIBS $i" 7095 done 7096 7097 7098 { echo "$as_me:$LINENO: result: using TKIMG_STUB_LIB_SPEC ${TKIMG_STUB_LIB_SPEC}" >&5 7099echo "${ECHO_T}using TKIMG_STUB_LIB_SPEC ${TKIMG_STUB_LIB_SPEC}" >&6; } 7100 fi 7101 else 7102 { echo "$as_me:$LINENO: result: file not found" >&5 7103echo "${ECHO_T}file not found" >&6; } 7104 fi 7105 7106else 7107 7108 { echo "$as_me:$LINENO: checking For tkimg_STUB library for LIBS" >&5 7109echo $ECHO_N "checking For tkimg_STUB library for LIBS... $ECHO_C" >&6; } 7110 # This simplifies the use of stub libraries by automatically adding 7111 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7112 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7113 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7114 if test "x${tkimg_STUB_LIB_SPEC}" != "x" ; then 7115 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7116 7117 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\"" 7118 for i in $vars; do 7119 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7120 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7121 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7122 fi 7123 PKG_LIBS="$PKG_LIBS $i" 7124 done 7125 7126 7127 { echo "$as_me:$LINENO: result: using tkimg_STUB_LIB_PATH ${tkimg_STUB_LIB_PATH}" >&5 7128echo "${ECHO_T}using tkimg_STUB_LIB_PATH ${tkimg_STUB_LIB_PATH}" >&6; } 7129 else 7130 7131 vars="${tkimg_STUB_LIB_SPEC}" 7132 for i in $vars; do 7133 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7134 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7135 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7136 fi 7137 PKG_LIBS="$PKG_LIBS $i" 7138 done 7139 7140 7141 { echo "$as_me:$LINENO: result: using tkimg_STUB_LIB_SPEC ${tkimg_STUB_LIB_SPEC}" >&5 7142echo "${ECHO_T}using tkimg_STUB_LIB_SPEC ${tkimg_STUB_LIB_SPEC}" >&6; } 7143 fi 7144 else 7145 { echo "$as_me:$LINENO: result: file not found" >&5 7146echo "${ECHO_T}file not found" >&6; } 7147 fi 7148 7149fi 7150 7151 7152fi 7153 7154 7155 7156 7157 # 7158 # Ok, lets find the tifftcl configuration 7159 # First, look for one uninstalled. 7160 # the alternative search directory is invoked by --with-tifftcl 7161 # 7162 7163 if test x"${no_tifftcl}" = x ; then 7164 # we reset no_tifftcl in case something fails here 7165 no_tifftcl=true 7166 7167# Check whether --with-tifftcl was given. 7168if test "${with_tifftcl+set}" = set; then 7169 withval=$with_tifftcl; with_tifftclconfig=${withval} 7170fi 7171 7172 { echo "$as_me:$LINENO: checking for tifftcl configuration" >&5 7173echo $ECHO_N "checking for tifftcl configuration... $ECHO_C" >&6; } 7174 if test "${ac_cv_c_tifftclconfig+set}" = set; then 7175 echo $ECHO_N "(cached) $ECHO_C" >&6 7176else 7177 7178 7179 # First check to see if --with-tifftcl was specified. 7180 if test x"${with_tifftclconfig}" != x ; then 7181 case ${with_tifftclconfig} in 7182 */tifftclConfig.sh ) 7183 if test -f ${with_tifftclconfig}; then 7184 { echo "$as_me:$LINENO: WARNING: --with-tifftcl argument should refer to directory containing tifftclConfig.sh, not to tifftclConfig.sh itself" >&5 7185echo "$as_me: WARNING: --with-tifftcl argument should refer to directory containing tifftclConfig.sh, not to tifftclConfig.sh itself" >&2;} 7186 with_tifftclconfig=`echo ${with_tifftclconfig} | sed 's!/tifftclConfig\.sh$!!'` 7187 fi;; 7188 esac 7189 if test -f "${with_tifftclconfig}/tifftclConfig.sh" ; then 7190 ac_cv_c_tifftclconfig=`(cd ${with_tifftclconfig}; pwd)` 7191 else 7192 { { echo "$as_me:$LINENO: error: ${with_tifftclconfig} directory doesn't contain tifftclConfig.sh" >&5 7193echo "$as_me: error: ${with_tifftclconfig} directory doesn't contain tifftclConfig.sh" >&2;} 7194 { (exit 1); exit 1; }; } 7195 fi 7196 fi 7197 7198 # then check for a private tifftcl installation 7199 if test x"${ac_cv_c_tifftclconfig}" = x ; then 7200 for i in \ 7201 ../tifftcl \ 7202 `ls -dr ../tifftcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 7203 `ls -dr ../tifftcl*[0-9].[0-9][0-9] 2>/dev/null` \ 7204 `ls -dr ../tifftcl*[0-9].[0-9] 2>/dev/null` \ 7205 `ls -dr ../tifftcl*[0-9].[0-9]* 2>/dev/null` \ 7206 ../../tifftcl \ 7207 `ls -dr ../../tifftcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 7208 `ls -dr ../../tifftcl*[0-9].[0-9][0-9] 2>/dev/null` \ 7209 `ls -dr ../../tifftcl*[0-9].[0-9] 2>/dev/null` \ 7210 `ls -dr ../../tifftcl*[0-9].[0-9]* 2>/dev/null` \ 7211 ../../../tifftcl \ 7212 `ls -dr ../../../tifftcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 7213 `ls -dr ../../../tifftcl*[0-9].[0-9][0-9] 2>/dev/null` \ 7214 `ls -dr ../../../tifftcl*[0-9].[0-9] 2>/dev/null` \ 7215 `ls -dr ../../../tifftcl*[0-9].[0-9]* 2>/dev/null` \ 7216 ${srcdir}/../tifftcl \ 7217 `ls -dr ${srcdir}/../tifftcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 7218 `ls -dr ${srcdir}/../tifftcl*[0-9].[0-9][0-9] 2>/dev/null` \ 7219 `ls -dr ${srcdir}/../tifftcl*[0-9].[0-9] 2>/dev/null` \ 7220 `ls -dr ${srcdir}/../tifftcl*[0-9].[0-9]* 2>/dev/null` \ 7221 ; do 7222 if test -f "$i/tifftclConfig.sh" ; then 7223 ac_cv_c_tifftclconfig=`(cd $i; pwd)` 7224 break 7225 fi 7226 if test -f "$i/unix/tifftclConfig.sh" ; then 7227 ac_cv_c_tifftclconfig=`(cd $i/unix; pwd)` 7228 break 7229 fi 7230 done 7231 fi 7232 7233 # check in a few common install locations 7234 if test x"${ac_cv_c_tifftclconfig}" = x ; then 7235 for i in `ls -d ${libdir} 2>/dev/null` \ 7236 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 7237 `ls -d ${prefix}/lib 2>/dev/null` \ 7238 `ls -d /usr/local/lib 2>/dev/null` \ 7239 `ls -d /usr/contrib/lib 2>/dev/null` \ 7240 `ls -d /usr/lib 2>/dev/null` \ 7241 `ls -d /usr/lib64 2>/dev/null` \ 7242 ; do 7243 if test -f "$i/tifftclConfig.sh" ; then 7244 ac_cv_c_tifftclconfig=`(cd $i; pwd)` 7245 break 7246 fi 7247 done 7248 fi 7249 7250fi 7251 7252 7253 if test x"${ac_cv_c_tifftclconfig}" = x ; then 7254 tifftcl_BIN_DIR="# no tifftcl configs found" 7255 { echo "$as_me:$LINENO: WARNING: Cannot find tifftcl configuration definitions" >&5 7256echo "$as_me: WARNING: Cannot find tifftcl configuration definitions" >&2;} 7257 exit 0 7258 else 7259 no_tifftcl= 7260 tifftcl_BIN_DIR=${ac_cv_c_tifftclconfig} 7261 { echo "$as_me:$LINENO: result: found $tifftcl_BIN_DIR/tifftclConfig.sh" >&5 7262echo "${ECHO_T}found $tifftcl_BIN_DIR/tifftclConfig.sh" >&6; } 7263 fi 7264 fi 7265 7266 7267 { echo "$as_me:$LINENO: checking for existence of ${tifftcl_BIN_DIR}/tifftclConfig.sh" >&5 7268echo $ECHO_N "checking for existence of ${tifftcl_BIN_DIR}/tifftclConfig.sh... $ECHO_C" >&6; } 7269 7270 if test -f "${tifftcl_BIN_DIR}/tifftclConfig.sh" ; then 7271 { echo "$as_me:$LINENO: result: loading" >&5 7272echo "${ECHO_T}loading" >&6; } 7273 . "${tifftcl_BIN_DIR}/tifftclConfig.sh" 7274 else 7275 { echo "$as_me:$LINENO: result: file not found" >&5 7276echo "${ECHO_T}file not found" >&6; } 7277 fi 7278 7279 # 7280 # If the tifftcl_BIN_DIR is the build directory (not the install directory), 7281 # then set the common variable name to the value of the build variables. 7282 # For example, the variable tifftcl_LIB_SPEC will be set to the value 7283 # of tifftcl_BUILD_LIB_SPEC. An extension should make use of tifftcl_LIB_SPEC 7284 # instead of tifftcl_BUILD_LIB_SPEC since it will work with both an 7285 # installed and uninstalled version of Tcl. 7286 # 7287 7288 if test -f "${tifftcl_BIN_DIR}/Makefile" ; then 7289 { echo "$as_me:$LINENO: WARNING: Found Makefile - using build library specs for tifftcl" >&5 7290echo "$as_me: WARNING: Found Makefile - using build library specs for tifftcl" >&2;} 7291 tifftcl_LIB_SPEC=${tifftcl_BUILD_LIB_SPEC} 7292 tifftcl_STUB_LIB_SPEC=${tifftcl_BUILD_STUB_LIB_SPEC} 7293 tifftcl_STUB_LIB_PATH=${tifftcl_BUILD_STUB_LIB_PATH} 7294 fi 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 # Allow the caller to prevent this auto-check by specifying any 2nd arg 7308 if test "x" = x; then 7309 7310 # Check both upper and lower-case variants 7311 # If a dev wanted non-stubs libs, this function could take an option 7312 # to not use _STUB in the paths below 7313 if test "x${tifftcl_STUB_LIB_SPEC}" = x; then 7314 7315 { echo "$as_me:$LINENO: checking For TIFFTCL_STUB library for LIBS" >&5 7316echo $ECHO_N "checking For TIFFTCL_STUB library for LIBS... $ECHO_C" >&6; } 7317 # This simplifies the use of stub libraries by automatically adding 7318 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7319 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7320 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7321 if test "x${TIFFTCL_STUB_LIB_SPEC}" != "x" ; then 7322 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7323 7324 vars="\"`${CYGPATH} ${TIFFTCL_STUB_LIB_PATH}`\"" 7325 for i in $vars; do 7326 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7327 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7328 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7329 fi 7330 PKG_LIBS="$PKG_LIBS $i" 7331 done 7332 7333 7334 { echo "$as_me:$LINENO: result: using TIFFTCL_STUB_LIB_PATH ${TIFFTCL_STUB_LIB_PATH}" >&5 7335echo "${ECHO_T}using TIFFTCL_STUB_LIB_PATH ${TIFFTCL_STUB_LIB_PATH}" >&6; } 7336 else 7337 7338 vars="${TIFFTCL_STUB_LIB_SPEC}" 7339 for i in $vars; do 7340 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7341 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7342 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7343 fi 7344 PKG_LIBS="$PKG_LIBS $i" 7345 done 7346 7347 7348 { echo "$as_me:$LINENO: result: using TIFFTCL_STUB_LIB_SPEC ${TIFFTCL_STUB_LIB_SPEC}" >&5 7349echo "${ECHO_T}using TIFFTCL_STUB_LIB_SPEC ${TIFFTCL_STUB_LIB_SPEC}" >&6; } 7350 fi 7351 else 7352 { echo "$as_me:$LINENO: result: file not found" >&5 7353echo "${ECHO_T}file not found" >&6; } 7354 fi 7355 7356else 7357 7358 { echo "$as_me:$LINENO: checking For tifftcl_STUB library for LIBS" >&5 7359echo $ECHO_N "checking For tifftcl_STUB library for LIBS... $ECHO_C" >&6; } 7360 # This simplifies the use of stub libraries by automatically adding 7361 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7362 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7363 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7364 if test "x${tifftcl_STUB_LIB_SPEC}" != "x" ; then 7365 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7366 7367 vars="\"`${CYGPATH} ${tifftcl_STUB_LIB_PATH}`\"" 7368 for i in $vars; do 7369 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7370 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7371 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7372 fi 7373 PKG_LIBS="$PKG_LIBS $i" 7374 done 7375 7376 7377 { echo "$as_me:$LINENO: result: using tifftcl_STUB_LIB_PATH ${tifftcl_STUB_LIB_PATH}" >&5 7378echo "${ECHO_T}using tifftcl_STUB_LIB_PATH ${tifftcl_STUB_LIB_PATH}" >&6; } 7379 else 7380 7381 vars="${tifftcl_STUB_LIB_SPEC}" 7382 for i in $vars; do 7383 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7384 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7385 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7386 fi 7387 PKG_LIBS="$PKG_LIBS $i" 7388 done 7389 7390 7391 { echo "$as_me:$LINENO: result: using tifftcl_STUB_LIB_SPEC ${tifftcl_STUB_LIB_SPEC}" >&5 7392echo "${ECHO_T}using tifftcl_STUB_LIB_SPEC ${tifftcl_STUB_LIB_SPEC}" >&6; } 7393 fi 7394 else 7395 { echo "$as_me:$LINENO: result: file not found" >&5 7396echo "${ECHO_T}file not found" >&6; } 7397 fi 7398 7399fi 7400 7401 7402fi 7403 7404 7405 7406 7407 7408 # 7409 # Ok, lets find the jpegtcl configuration 7410 # First, look for one uninstalled. 7411 # the alternative search directory is invoked by --with-jpegtcl 7412 # 7413 7414 if test x"${no_jpegtcl}" = x ; then 7415 # we reset no_jpegtcl in case something fails here 7416 no_jpegtcl=true 7417 7418# Check whether --with-jpegtcl was given. 7419if test "${with_jpegtcl+set}" = set; then 7420 withval=$with_jpegtcl; with_jpegtclconfig=${withval} 7421fi 7422 7423 { echo "$as_me:$LINENO: checking for jpegtcl configuration" >&5 7424echo $ECHO_N "checking for jpegtcl configuration... $ECHO_C" >&6; } 7425 if test "${ac_cv_c_jpegtclconfig+set}" = set; then 7426 echo $ECHO_N "(cached) $ECHO_C" >&6 7427else 7428 7429 7430 # First check to see if --with-jpegtcl was specified. 7431 if test x"${with_jpegtclconfig}" != x ; then 7432 case ${with_jpegtclconfig} in 7433 */jpegtclConfig.sh ) 7434 if test -f ${with_jpegtclconfig}; then 7435 { echo "$as_me:$LINENO: WARNING: --with-jpegtcl argument should refer to directory containing jpegtclConfig.sh, not to jpegtclConfig.sh itself" >&5 7436echo "$as_me: WARNING: --with-jpegtcl argument should refer to directory containing jpegtclConfig.sh, not to jpegtclConfig.sh itself" >&2;} 7437 with_jpegtclconfig=`echo ${with_jpegtclconfig} | sed 's!/jpegtclConfig\.sh$!!'` 7438 fi;; 7439 esac 7440 if test -f "${with_jpegtclconfig}/jpegtclConfig.sh" ; then 7441 ac_cv_c_jpegtclconfig=`(cd ${with_jpegtclconfig}; pwd)` 7442 else 7443 { { echo "$as_me:$LINENO: error: ${with_jpegtclconfig} directory doesn't contain jpegtclConfig.sh" >&5 7444echo "$as_me: error: ${with_jpegtclconfig} directory doesn't contain jpegtclConfig.sh" >&2;} 7445 { (exit 1); exit 1; }; } 7446 fi 7447 fi 7448 7449 # then check for a private jpegtcl installation 7450 if test x"${ac_cv_c_jpegtclconfig}" = x ; then 7451 for i in \ 7452 ../jpegtcl \ 7453 `ls -dr ../jpegtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 7454 `ls -dr ../jpegtcl*[0-9].[0-9][0-9] 2>/dev/null` \ 7455 `ls -dr ../jpegtcl*[0-9].[0-9] 2>/dev/null` \ 7456 `ls -dr ../jpegtcl*[0-9].[0-9]* 2>/dev/null` \ 7457 ../../jpegtcl \ 7458 `ls -dr ../../jpegtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 7459 `ls -dr ../../jpegtcl*[0-9].[0-9][0-9] 2>/dev/null` \ 7460 `ls -dr ../../jpegtcl*[0-9].[0-9] 2>/dev/null` \ 7461 `ls -dr ../../jpegtcl*[0-9].[0-9]* 2>/dev/null` \ 7462 ../../../jpegtcl \ 7463 `ls -dr ../../../jpegtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 7464 `ls -dr ../../../jpegtcl*[0-9].[0-9][0-9] 2>/dev/null` \ 7465 `ls -dr ../../../jpegtcl*[0-9].[0-9] 2>/dev/null` \ 7466 `ls -dr ../../../jpegtcl*[0-9].[0-9]* 2>/dev/null` \ 7467 ${srcdir}/../jpegtcl \ 7468 `ls -dr ${srcdir}/../jpegtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 7469 `ls -dr ${srcdir}/../jpegtcl*[0-9].[0-9][0-9] 2>/dev/null` \ 7470 `ls -dr ${srcdir}/../jpegtcl*[0-9].[0-9] 2>/dev/null` \ 7471 `ls -dr ${srcdir}/../jpegtcl*[0-9].[0-9]* 2>/dev/null` \ 7472 ; do 7473 if test -f "$i/jpegtclConfig.sh" ; then 7474 ac_cv_c_jpegtclconfig=`(cd $i; pwd)` 7475 break 7476 fi 7477 if test -f "$i/unix/jpegtclConfig.sh" ; then 7478 ac_cv_c_jpegtclconfig=`(cd $i/unix; pwd)` 7479 break 7480 fi 7481 done 7482 fi 7483 7484 # check in a few common install locations 7485 if test x"${ac_cv_c_jpegtclconfig}" = x ; then 7486 for i in `ls -d ${libdir} 2>/dev/null` \ 7487 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 7488 `ls -d ${prefix}/lib 2>/dev/null` \ 7489 `ls -d /usr/local/lib 2>/dev/null` \ 7490 `ls -d /usr/contrib/lib 2>/dev/null` \ 7491 `ls -d /usr/lib 2>/dev/null` \ 7492 `ls -d /usr/lib64 2>/dev/null` \ 7493 ; do 7494 if test -f "$i/jpegtclConfig.sh" ; then 7495 ac_cv_c_jpegtclconfig=`(cd $i; pwd)` 7496 break 7497 fi 7498 done 7499 fi 7500 7501fi 7502 7503 7504 if test x"${ac_cv_c_jpegtclconfig}" = x ; then 7505 jpegtcl_BIN_DIR="# no jpegtcl configs found" 7506 { echo "$as_me:$LINENO: WARNING: Cannot find jpegtcl configuration definitions" >&5 7507echo "$as_me: WARNING: Cannot find jpegtcl configuration definitions" >&2;} 7508 exit 0 7509 else 7510 no_jpegtcl= 7511 jpegtcl_BIN_DIR=${ac_cv_c_jpegtclconfig} 7512 { echo "$as_me:$LINENO: result: found $jpegtcl_BIN_DIR/jpegtclConfig.sh" >&5 7513echo "${ECHO_T}found $jpegtcl_BIN_DIR/jpegtclConfig.sh" >&6; } 7514 fi 7515 fi 7516 7517 7518 { echo "$as_me:$LINENO: checking for existence of ${jpegtcl_BIN_DIR}/jpegtclConfig.sh" >&5 7519echo $ECHO_N "checking for existence of ${jpegtcl_BIN_DIR}/jpegtclConfig.sh... $ECHO_C" >&6; } 7520 7521 if test -f "${jpegtcl_BIN_DIR}/jpegtclConfig.sh" ; then 7522 { echo "$as_me:$LINENO: result: loading" >&5 7523echo "${ECHO_T}loading" >&6; } 7524 . "${jpegtcl_BIN_DIR}/jpegtclConfig.sh" 7525 else 7526 { echo "$as_me:$LINENO: result: file not found" >&5 7527echo "${ECHO_T}file not found" >&6; } 7528 fi 7529 7530 # 7531 # If the jpegtcl_BIN_DIR is the build directory (not the install directory), 7532 # then set the common variable name to the value of the build variables. 7533 # For example, the variable jpegtcl_LIB_SPEC will be set to the value 7534 # of jpegtcl_BUILD_LIB_SPEC. An extension should make use of jpegtcl_LIB_SPEC 7535 # instead of jpegtcl_BUILD_LIB_SPEC since it will work with both an 7536 # installed and uninstalled version of Tcl. 7537 # 7538 7539 if test -f "${jpegtcl_BIN_DIR}/Makefile" ; then 7540 { echo "$as_me:$LINENO: WARNING: Found Makefile - using build library specs for jpegtcl" >&5 7541echo "$as_me: WARNING: Found Makefile - using build library specs for jpegtcl" >&2;} 7542 jpegtcl_LIB_SPEC=${jpegtcl_BUILD_LIB_SPEC} 7543 jpegtcl_STUB_LIB_SPEC=${jpegtcl_BUILD_STUB_LIB_SPEC} 7544 jpegtcl_STUB_LIB_PATH=${jpegtcl_BUILD_STUB_LIB_PATH} 7545 fi 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 # Allow the caller to prevent this auto-check by specifying any 2nd arg 7559 if test "x" = x; then 7560 7561 # Check both upper and lower-case variants 7562 # If a dev wanted non-stubs libs, this function could take an option 7563 # to not use _STUB in the paths below 7564 if test "x${jpegtcl_STUB_LIB_SPEC}" = x; then 7565 7566 { echo "$as_me:$LINENO: checking For JPEGTCL_STUB library for LIBS" >&5 7567echo $ECHO_N "checking For JPEGTCL_STUB library for LIBS... $ECHO_C" >&6; } 7568 # This simplifies the use of stub libraries by automatically adding 7569 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7570 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7571 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7572 if test "x${JPEGTCL_STUB_LIB_SPEC}" != "x" ; then 7573 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7574 7575 vars="\"`${CYGPATH} ${JPEGTCL_STUB_LIB_PATH}`\"" 7576 for i in $vars; do 7577 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7578 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7579 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7580 fi 7581 PKG_LIBS="$PKG_LIBS $i" 7582 done 7583 7584 7585 { echo "$as_me:$LINENO: result: using JPEGTCL_STUB_LIB_PATH ${JPEGTCL_STUB_LIB_PATH}" >&5 7586echo "${ECHO_T}using JPEGTCL_STUB_LIB_PATH ${JPEGTCL_STUB_LIB_PATH}" >&6; } 7587 else 7588 7589 vars="${JPEGTCL_STUB_LIB_SPEC}" 7590 for i in $vars; do 7591 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7592 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7593 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7594 fi 7595 PKG_LIBS="$PKG_LIBS $i" 7596 done 7597 7598 7599 { echo "$as_me:$LINENO: result: using JPEGTCL_STUB_LIB_SPEC ${JPEGTCL_STUB_LIB_SPEC}" >&5 7600echo "${ECHO_T}using JPEGTCL_STUB_LIB_SPEC ${JPEGTCL_STUB_LIB_SPEC}" >&6; } 7601 fi 7602 else 7603 { echo "$as_me:$LINENO: result: file not found" >&5 7604echo "${ECHO_T}file not found" >&6; } 7605 fi 7606 7607else 7608 7609 { echo "$as_me:$LINENO: checking For jpegtcl_STUB library for LIBS" >&5 7610echo $ECHO_N "checking For jpegtcl_STUB library for LIBS... $ECHO_C" >&6; } 7611 # This simplifies the use of stub libraries by automatically adding 7612 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7613 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7614 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7615 if test "x${jpegtcl_STUB_LIB_SPEC}" != "x" ; then 7616 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7617 7618 vars="\"`${CYGPATH} ${jpegtcl_STUB_LIB_PATH}`\"" 7619 for i in $vars; do 7620 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7621 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7622 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7623 fi 7624 PKG_LIBS="$PKG_LIBS $i" 7625 done 7626 7627 7628 { echo "$as_me:$LINENO: result: using jpegtcl_STUB_LIB_PATH ${jpegtcl_STUB_LIB_PATH}" >&5 7629echo "${ECHO_T}using jpegtcl_STUB_LIB_PATH ${jpegtcl_STUB_LIB_PATH}" >&6; } 7630 else 7631 7632 vars="${jpegtcl_STUB_LIB_SPEC}" 7633 for i in $vars; do 7634 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7635 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7636 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7637 fi 7638 PKG_LIBS="$PKG_LIBS $i" 7639 done 7640 7641 7642 { echo "$as_me:$LINENO: result: using jpegtcl_STUB_LIB_SPEC ${jpegtcl_STUB_LIB_SPEC}" >&5 7643echo "${ECHO_T}using jpegtcl_STUB_LIB_SPEC ${jpegtcl_STUB_LIB_SPEC}" >&6; } 7644 fi 7645 else 7646 { echo "$as_me:$LINENO: result: file not found" >&5 7647echo "${ECHO_T}file not found" >&6; } 7648 fi 7649 7650fi 7651 7652 7653fi 7654 7655 7656 7657 7658 7659 # 7660 # Ok, lets find the zlibtcl configuration 7661 # First, look for one uninstalled. 7662 # the alternative search directory is invoked by --with-zlibtcl 7663 # 7664 7665 if test x"${no_zlibtcl}" = x ; then 7666 # we reset no_zlibtcl in case something fails here 7667 no_zlibtcl=true 7668 7669# Check whether --with-zlibtcl was given. 7670if test "${with_zlibtcl+set}" = set; then 7671 withval=$with_zlibtcl; with_zlibtclconfig=${withval} 7672fi 7673 7674 { echo "$as_me:$LINENO: checking for zlibtcl configuration" >&5 7675echo $ECHO_N "checking for zlibtcl configuration... $ECHO_C" >&6; } 7676 if test "${ac_cv_c_zlibtclconfig+set}" = set; then 7677 echo $ECHO_N "(cached) $ECHO_C" >&6 7678else 7679 7680 7681 # First check to see if --with-zlibtcl was specified. 7682 if test x"${with_zlibtclconfig}" != x ; then 7683 case ${with_zlibtclconfig} in 7684 */zlibtclConfig.sh ) 7685 if test -f ${with_zlibtclconfig}; then 7686 { echo "$as_me:$LINENO: WARNING: --with-zlibtcl argument should refer to directory containing zlibtclConfig.sh, not to zlibtclConfig.sh itself" >&5 7687echo "$as_me: WARNING: --with-zlibtcl argument should refer to directory containing zlibtclConfig.sh, not to zlibtclConfig.sh itself" >&2;} 7688 with_zlibtclconfig=`echo ${with_zlibtclconfig} | sed 's!/zlibtclConfig\.sh$!!'` 7689 fi;; 7690 esac 7691 if test -f "${with_zlibtclconfig}/zlibtclConfig.sh" ; then 7692 ac_cv_c_zlibtclconfig=`(cd ${with_zlibtclconfig}; pwd)` 7693 else 7694 { { echo "$as_me:$LINENO: error: ${with_zlibtclconfig} directory doesn't contain zlibtclConfig.sh" >&5 7695echo "$as_me: error: ${with_zlibtclconfig} directory doesn't contain zlibtclConfig.sh" >&2;} 7696 { (exit 1); exit 1; }; } 7697 fi 7698 fi 7699 7700 # then check for a private zlibtcl installation 7701 if test x"${ac_cv_c_zlibtclconfig}" = x ; then 7702 for i in \ 7703 ../zlibtcl \ 7704 `ls -dr ../zlibtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 7705 `ls -dr ../zlibtcl*[0-9].[0-9][0-9] 2>/dev/null` \ 7706 `ls -dr ../zlibtcl*[0-9].[0-9] 2>/dev/null` \ 7707 `ls -dr ../zlibtcl*[0-9].[0-9]* 2>/dev/null` \ 7708 ../../zlibtcl \ 7709 `ls -dr ../../zlibtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 7710 `ls -dr ../../zlibtcl*[0-9].[0-9][0-9] 2>/dev/null` \ 7711 `ls -dr ../../zlibtcl*[0-9].[0-9] 2>/dev/null` \ 7712 `ls -dr ../../zlibtcl*[0-9].[0-9]* 2>/dev/null` \ 7713 ../../../zlibtcl \ 7714 `ls -dr ../../../zlibtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 7715 `ls -dr ../../../zlibtcl*[0-9].[0-9][0-9] 2>/dev/null` \ 7716 `ls -dr ../../../zlibtcl*[0-9].[0-9] 2>/dev/null` \ 7717 `ls -dr ../../../zlibtcl*[0-9].[0-9]* 2>/dev/null` \ 7718 ${srcdir}/../zlibtcl \ 7719 `ls -dr ${srcdir}/../zlibtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 7720 `ls -dr ${srcdir}/../zlibtcl*[0-9].[0-9][0-9] 2>/dev/null` \ 7721 `ls -dr ${srcdir}/../zlibtcl*[0-9].[0-9] 2>/dev/null` \ 7722 `ls -dr ${srcdir}/../zlibtcl*[0-9].[0-9]* 2>/dev/null` \ 7723 ; do 7724 if test -f "$i/zlibtclConfig.sh" ; then 7725 ac_cv_c_zlibtclconfig=`(cd $i; pwd)` 7726 break 7727 fi 7728 if test -f "$i/unix/zlibtclConfig.sh" ; then 7729 ac_cv_c_zlibtclconfig=`(cd $i/unix; pwd)` 7730 break 7731 fi 7732 done 7733 fi 7734 7735 # check in a few common install locations 7736 if test x"${ac_cv_c_zlibtclconfig}" = x ; then 7737 for i in `ls -d ${libdir} 2>/dev/null` \ 7738 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 7739 `ls -d ${prefix}/lib 2>/dev/null` \ 7740 `ls -d /usr/local/lib 2>/dev/null` \ 7741 `ls -d /usr/contrib/lib 2>/dev/null` \ 7742 `ls -d /usr/lib 2>/dev/null` \ 7743 `ls -d /usr/lib64 2>/dev/null` \ 7744 ; do 7745 if test -f "$i/zlibtclConfig.sh" ; then 7746 ac_cv_c_zlibtclconfig=`(cd $i; pwd)` 7747 break 7748 fi 7749 done 7750 fi 7751 7752fi 7753 7754 7755 if test x"${ac_cv_c_zlibtclconfig}" = x ; then 7756 zlibtcl_BIN_DIR="# no zlibtcl configs found" 7757 { echo "$as_me:$LINENO: WARNING: Cannot find zlibtcl configuration definitions" >&5 7758echo "$as_me: WARNING: Cannot find zlibtcl configuration definitions" >&2;} 7759 exit 0 7760 else 7761 no_zlibtcl= 7762 zlibtcl_BIN_DIR=${ac_cv_c_zlibtclconfig} 7763 { echo "$as_me:$LINENO: result: found $zlibtcl_BIN_DIR/zlibtclConfig.sh" >&5 7764echo "${ECHO_T}found $zlibtcl_BIN_DIR/zlibtclConfig.sh" >&6; } 7765 fi 7766 fi 7767 7768 7769 { echo "$as_me:$LINENO: checking for existence of ${zlibtcl_BIN_DIR}/zlibtclConfig.sh" >&5 7770echo $ECHO_N "checking for existence of ${zlibtcl_BIN_DIR}/zlibtclConfig.sh... $ECHO_C" >&6; } 7771 7772 if test -f "${zlibtcl_BIN_DIR}/zlibtclConfig.sh" ; then 7773 { echo "$as_me:$LINENO: result: loading" >&5 7774echo "${ECHO_T}loading" >&6; } 7775 . "${zlibtcl_BIN_DIR}/zlibtclConfig.sh" 7776 else 7777 { echo "$as_me:$LINENO: result: file not found" >&5 7778echo "${ECHO_T}file not found" >&6; } 7779 fi 7780 7781 # 7782 # If the zlibtcl_BIN_DIR is the build directory (not the install directory), 7783 # then set the common variable name to the value of the build variables. 7784 # For example, the variable zlibtcl_LIB_SPEC will be set to the value 7785 # of zlibtcl_BUILD_LIB_SPEC. An extension should make use of zlibtcl_LIB_SPEC 7786 # instead of zlibtcl_BUILD_LIB_SPEC since it will work with both an 7787 # installed and uninstalled version of Tcl. 7788 # 7789 7790 if test -f "${zlibtcl_BIN_DIR}/Makefile" ; then 7791 { echo "$as_me:$LINENO: WARNING: Found Makefile - using build library specs for zlibtcl" >&5 7792echo "$as_me: WARNING: Found Makefile - using build library specs for zlibtcl" >&2;} 7793 zlibtcl_LIB_SPEC=${zlibtcl_BUILD_LIB_SPEC} 7794 zlibtcl_STUB_LIB_SPEC=${zlibtcl_BUILD_STUB_LIB_SPEC} 7795 zlibtcl_STUB_LIB_PATH=${zlibtcl_BUILD_STUB_LIB_PATH} 7796 fi 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 # Allow the caller to prevent this auto-check by specifying any 2nd arg 7810 if test "x" = x; then 7811 7812 # Check both upper and lower-case variants 7813 # If a dev wanted non-stubs libs, this function could take an option 7814 # to not use _STUB in the paths below 7815 if test "x${zlibtcl_STUB_LIB_SPEC}" = x; then 7816 7817 { echo "$as_me:$LINENO: checking For ZLIBTCL_STUB library for LIBS" >&5 7818echo $ECHO_N "checking For ZLIBTCL_STUB library for LIBS... $ECHO_C" >&6; } 7819 # This simplifies the use of stub libraries by automatically adding 7820 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7821 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7822 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7823 if test "x${ZLIBTCL_STUB_LIB_SPEC}" != "x" ; then 7824 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7825 7826 vars="\"`${CYGPATH} ${ZLIBTCL_STUB_LIB_PATH}`\"" 7827 for i in $vars; do 7828 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7829 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7830 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7831 fi 7832 PKG_LIBS="$PKG_LIBS $i" 7833 done 7834 7835 7836 { echo "$as_me:$LINENO: result: using ZLIBTCL_STUB_LIB_PATH ${ZLIBTCL_STUB_LIB_PATH}" >&5 7837echo "${ECHO_T}using ZLIBTCL_STUB_LIB_PATH ${ZLIBTCL_STUB_LIB_PATH}" >&6; } 7838 else 7839 7840 vars="${ZLIBTCL_STUB_LIB_SPEC}" 7841 for i in $vars; do 7842 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7843 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7844 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7845 fi 7846 PKG_LIBS="$PKG_LIBS $i" 7847 done 7848 7849 7850 { echo "$as_me:$LINENO: result: using ZLIBTCL_STUB_LIB_SPEC ${ZLIBTCL_STUB_LIB_SPEC}" >&5 7851echo "${ECHO_T}using ZLIBTCL_STUB_LIB_SPEC ${ZLIBTCL_STUB_LIB_SPEC}" >&6; } 7852 fi 7853 else 7854 { echo "$as_me:$LINENO: result: file not found" >&5 7855echo "${ECHO_T}file not found" >&6; } 7856 fi 7857 7858else 7859 7860 { echo "$as_me:$LINENO: checking For zlibtcl_STUB library for LIBS" >&5 7861echo $ECHO_N "checking For zlibtcl_STUB library for LIBS... $ECHO_C" >&6; } 7862 # This simplifies the use of stub libraries by automatically adding 7863 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7864 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7865 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7866 if test "x${zlibtcl_STUB_LIB_SPEC}" != "x" ; then 7867 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7868 7869 vars="\"`${CYGPATH} ${zlibtcl_STUB_LIB_PATH}`\"" 7870 for i in $vars; do 7871 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7872 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7873 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7874 fi 7875 PKG_LIBS="$PKG_LIBS $i" 7876 done 7877 7878 7879 { echo "$as_me:$LINENO: result: using zlibtcl_STUB_LIB_PATH ${zlibtcl_STUB_LIB_PATH}" >&5 7880echo "${ECHO_T}using zlibtcl_STUB_LIB_PATH ${zlibtcl_STUB_LIB_PATH}" >&6; } 7881 else 7882 7883 vars="${zlibtcl_STUB_LIB_SPEC}" 7884 for i in $vars; do 7885 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7886 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7887 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7888 fi 7889 PKG_LIBS="$PKG_LIBS $i" 7890 done 7891 7892 7893 { echo "$as_me:$LINENO: result: using zlibtcl_STUB_LIB_SPEC ${zlibtcl_STUB_LIB_SPEC}" >&5 7894echo "${ECHO_T}using zlibtcl_STUB_LIB_SPEC ${zlibtcl_STUB_LIB_SPEC}" >&6; } 7895 fi 7896 else 7897 { echo "$as_me:$LINENO: result: file not found" >&5 7898echo "${ECHO_T}file not found" >&6; } 7899 fi 7900 7901fi 7902 7903 7904fi 7905 7906 7907 7908 7909 7910#-------------------------------------------------------------------- 7911# Compute an absolute path to the src directory of module 'tkimg' so 7912# that we are able to find its headers even if they are not installed. 7913#-------------------------------------------------------------------- 7914 7915case $tkimg_SRC_DIR in 7916/*) tkimg_SRC_PATH=$tkimg_SRC_DIR 7917 ;; 7918*) # SRC_DIR relative, splice with BUILD_PATH 7919 tkimg_SRC_PATH="`dirname $tkimg_BUILD_STUB_LIB_PATH`/$tkimg_SRC_DIR" 7920esac 7921 7922tkimg_BUILD_PATH="`dirname $tkimg_BUILD_STUB_LIB_PATH`" 7923 7924if test "${TEA_PLATFORM}" = "windows" ; then 7925 tkimg_SRC_PATH="`$CYGPATH $tkimg_SRC_PATH`" 7926 tkimg_BUILD_PATH="`$CYGPATH $tkimg_BUILD_PATH`" 7927fi 7928 7929 7930 7931 7932 7933#-------------------------------------------------------------------- 7934# Compute an absolute path to the src directory of module 'tifftcl' so 7935# that we are able to find its headers even if they are not installed. 7936#-------------------------------------------------------------------- 7937 7938case $tifftcl_SRC_DIR in 7939/*) tifftcl_SRC_PATH=$tifftcl_SRC_DIR 7940 ;; 7941*) # SRC_DIR relative, splice with BUILD_PATH 7942 tifftcl_SRC_PATH="`dirname $tifftcl_BUILD_STUB_LIB_PATH`/$tifftcl_SRC_DIR" 7943esac 7944 7945tifftcl_BUILD_PATH="`dirname $tifftcl_BUILD_STUB_LIB_PATH`" 7946 7947if test "${TEA_PLATFORM}" = "windows" ; then 7948 tifftcl_SRC_PATH="`$CYGPATH $tifftcl_SRC_PATH`" 7949 tifftcl_BUILD_PATH="`$CYGPATH $tifftcl_BUILD_PATH`" 7950fi 7951 7952 7953 7954 7955 7956#-------------------------------------------------------------------- 7957# Compute an absolute path to the src directory of module 'jpegtcl' so 7958# that we are able to find its headers even if they are not installed. 7959#-------------------------------------------------------------------- 7960 7961case $jpegtcl_SRC_DIR in 7962/*) jpegtcl_SRC_PATH=$jpegtcl_SRC_DIR 7963 ;; 7964*) # SRC_DIR relative, splice with BUILD_PATH 7965 jpegtcl_SRC_PATH="`dirname $jpegtcl_BUILD_STUB_LIB_PATH`/$jpegtcl_SRC_DIR" 7966esac 7967 7968jpegtcl_BUILD_PATH="`dirname $jpegtcl_BUILD_STUB_LIB_PATH`" 7969 7970if test "${TEA_PLATFORM}" = "windows" ; then 7971 jpegtcl_SRC_PATH="`$CYGPATH $jpegtcl_SRC_PATH`" 7972 jpegtcl_BUILD_PATH="`$CYGPATH $jpegtcl_BUILD_PATH`" 7973fi 7974 7975 7976 7977 7978 7979#-------------------------------------------------------------------- 7980# Compute an absolute path to the src directory of module 'zlibtcl' so 7981# that we are able to find its headers even if they are not installed. 7982#-------------------------------------------------------------------- 7983 7984case $zlibtcl_SRC_DIR in 7985/*) zlibtcl_SRC_PATH=$zlibtcl_SRC_DIR 7986 ;; 7987*) # SRC_DIR relative, splice with BUILD_PATH 7988 zlibtcl_SRC_PATH="`dirname $zlibtcl_BUILD_STUB_LIB_PATH`/$zlibtcl_SRC_DIR" 7989esac 7990 7991zlibtcl_BUILD_PATH="`dirname $zlibtcl_BUILD_STUB_LIB_PATH`" 7992 7993if test "${TEA_PLATFORM}" = "windows" ; then 7994 zlibtcl_SRC_PATH="`$CYGPATH $zlibtcl_SRC_PATH`" 7995 zlibtcl_BUILD_PATH="`$CYGPATH $zlibtcl_BUILD_PATH`" 7996fi 7997 7998 7999 8000 8001 8002#----------------------------------------------------------------------- 8003# Specify the C source files to compile in TEA_ADD_SOURCES, 8004# public headers that need to be installed in TEA_ADD_HEADERS, 8005# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 8006# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 8007# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 8008# and PKG_TCL_SOURCES. 8009#----------------------------------------------------------------------- 8010 8011 8012 vars="tiff.c tiffJpeg.c tiffZip.c tiffPixar.c" 8013 for i in $vars; do 8014 case $i in 8015 \$*) 8016 # allow $-var names 8017 PKG_SOURCES="$PKG_SOURCES $i" 8018 PKG_OBJECTS="$PKG_OBJECTS $i" 8019 ;; 8020 *) 8021 # check for existence - allows for generic/win/unix VPATH 8022 # To add more dirs here (like 'src'), you have to update VPATH 8023 # in Makefile.in as well 8024 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 8025 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 8026 -a ! -f "${srcdir}/macosx/$i" \ 8027 ; then 8028 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 8029echo "$as_me: error: could not find source file '$i'" >&2;} 8030 { (exit 1); exit 1; }; } 8031 fi 8032 PKG_SOURCES="$PKG_SOURCES $i" 8033 # this assumes it is in a VPATH dir 8034 i=`basename $i` 8035 # handle user calling this before or after TEA_SETUP_COMPILER 8036 if test x"${OBJEXT}" != x ; then 8037 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 8038 else 8039 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 8040 fi 8041 PKG_OBJECTS="$PKG_OBJECTS $j" 8042 ;; 8043 esac 8044 done 8045 8046 8047 8048 8049 vars="" 8050 for i in $vars; do 8051 # check for existence, be strict because it is installed 8052 if test ! -f "${srcdir}/$i" ; then 8053 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 8054echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 8055 { (exit 1); exit 1; }; } 8056 fi 8057 PKG_HEADERS="$PKG_HEADERS $i" 8058 done 8059 8060 8061 8062 vars="-I\"`\${CYGPATH} \${srcdir}`\"" 8063 for i in $vars; do 8064 PKG_INCLUDES="$PKG_INCLUDES $i" 8065 done 8066 8067 8068 8069 vars="-I\"`\${CYGPATH} \${tkimg_SRC_PATH}`\"" 8070 for i in $vars; do 8071 PKG_INCLUDES="$PKG_INCLUDES $i" 8072 done 8073 8074 8075 8076 vars="-I\"`\${CYGPATH} \${tifftcl_SRC_PATH}`\"" 8077 for i in $vars; do 8078 PKG_INCLUDES="$PKG_INCLUDES $i" 8079 done 8080 8081 8082 8083 vars="-I\"`\${CYGPATH} \${tifftcl_BUILD_PATH}/libtiff`\"" 8084 for i in $vars; do 8085 PKG_INCLUDES="$PKG_INCLUDES $i" 8086 done 8087 8088 8089 8090 vars="-I\"`\${CYGPATH} \${jpegtcl_SRC_PATH}`\"" 8091 for i in $vars; do 8092 PKG_INCLUDES="$PKG_INCLUDES $i" 8093 done 8094 8095 8096 8097 vars="-I\"`\${CYGPATH} \${jpegtcl_BUILD_PATH}/libjpeg`\"" 8098 for i in $vars; do 8099 PKG_INCLUDES="$PKG_INCLUDES $i" 8100 done 8101 8102 8103 8104 vars="-I\"`\${CYGPATH} \${zlibtcl_SRC_PATH}`\"" 8105 for i in $vars; do 8106 PKG_INCLUDES="$PKG_INCLUDES $i" 8107 done 8108 8109 8110 8111 vars="-I\"`\${CYGPATH} \${zlibtcl_BUILD_PATH}`\"" 8112 for i in $vars; do 8113 PKG_INCLUDES="$PKG_INCLUDES $i" 8114 done 8115 8116 8117 8118 vars="-I." 8119 for i in $vars; do 8120 PKG_INCLUDES="$PKG_INCLUDES $i" 8121 done 8122 8123 8124 8125 vars="-lm" 8126 for i in $vars; do 8127 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 8128 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 8129 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 8130 fi 8131 PKG_LIBS="$PKG_LIBS $i" 8132 done 8133 8134 8135 8136 PKG_CFLAGS="$PKG_CFLAGS -DTKIMG_VERSION=\\\"\${tkimg_VERSION}\\\"" 8137 8138 8139 8140 PKG_CFLAGS="$PKG_CFLAGS -DTIFFTCL_VERSION=\\\"\${tifftcl_VERSION}\\\"" 8141 8142 8143 8144 PKG_CFLAGS="$PKG_CFLAGS -DJPEGTCL_VERSION=\\\"\${jpegtcl_VERSION}\\\"" 8145 8146 8147 8148 PKG_CFLAGS="$PKG_CFLAGS -DZLIBTCL_VERSION=\\\"\${zlibtcl_VERSION}\\\"" 8149 8150 8151 8152 vars="" 8153 for i in $vars; do 8154 # check for existence - allows for generic/win/unix VPATH 8155 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 8156 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 8157 -a ! -f "${srcdir}/macosx/$i" \ 8158 ; then 8159 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 8160echo "$as_me: error: could not find stub source file '$i'" >&2;} 8161 { (exit 1); exit 1; }; } 8162 fi 8163 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 8164 # this assumes it is in a VPATH dir 8165 i=`basename $i` 8166 # handle user calling this before or after TEA_SETUP_COMPILER 8167 if test x"${OBJEXT}" != x ; then 8168 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 8169 else 8170 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 8171 fi 8172 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 8173 done 8174 8175 8176 8177 8178 vars="" 8179 for i in $vars; do 8180 # check for existence, be strict because it is installed 8181 if test ! -f "${srcdir}/$i" ; then 8182 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 8183echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 8184 { (exit 1); exit 1; }; } 8185 fi 8186 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 8187 done 8188 8189 8190 8191PUP="`echo ${PACKAGE_NAME}| tr 'a-z' 'A-Z'`" 8192 8193sed < "`${CYGPATH} ${srcdir}/../init.c`" > "init.c" \ 8194 -e "s/@CPACKAGE@/${CPACKAGE}/" \ 8195 -e "s/%PACKAGE%/${PACKAGE_NAME}/" \ 8196 -e "s/%PACKAGE_UP%/${PUP}/" \ 8197 -e "s/%PHIMGTYPE%/${PHIMGTYPE}/" 8198 8199# init.c is an included source file, not a source by itself 8200# FUTURE: Do this through AC_OUTPUT!! 8201 8202#-------------------------------------------------------------------- 8203# __CHANGE__ 8204# Choose which headers you need. Extension authors should try very 8205# hard to only rely on the Tcl public header files. Internal headers 8206# contain private data structures and are subject to change without 8207# notice. 8208# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 8209#-------------------------------------------------------------------- 8210 8211 8212 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 8213echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 8214 8215 8216# Check whether --with-tclinclude was given. 8217if test "${with_tclinclude+set}" = set; then 8218 withval=$with_tclinclude; with_tclinclude=${withval} 8219fi 8220 8221 8222 if test "${ac_cv_c_tclh+set}" = set; then 8223 echo $ECHO_N "(cached) $ECHO_C" >&6 8224else 8225 8226 # Use the value from --with-tclinclude, if it was given 8227 8228 if test x"${with_tclinclude}" != x ; then 8229 if test -f "${with_tclinclude}/tcl.h" ; then 8230 ac_cv_c_tclh=${with_tclinclude} 8231 else 8232 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 8233echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 8234 { (exit 1); exit 1; }; } 8235 fi 8236 else 8237 list="" 8238 if test "`uname -s`" = "Darwin"; then 8239 # If Tcl was built as a framework, attempt to use 8240 # the framework's Headers directory 8241 case ${TCL_DEFS} in 8242 *TCL_FRAMEWORK*) 8243 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 8244 ;; 8245 esac 8246 fi 8247 8248 # Look in the source dir only if Tcl is not installed, 8249 # and in that situation, look there before installed locations. 8250 if test -f "${TCL_BIN_DIR}/Makefile" ; then 8251 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 8252 fi 8253 8254 # Check order: pkg --prefix location, Tcl's --prefix location, 8255 # relative to directory of tclConfig.sh. 8256 8257 eval "temp_includedir=${includedir}" 8258 list="$list \ 8259 `ls -d ${temp_includedir} 2>/dev/null` \ 8260 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 8261 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 8262 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 8263 list="$list /usr/local/include /usr/include" 8264 if test x"${TCL_INCLUDE_SPEC}" != x ; then 8265 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 8266 list="$list `ls -d ${d} 2>/dev/null`" 8267 fi 8268 fi 8269 for i in $list ; do 8270 if test -f "$i/tcl.h" ; then 8271 ac_cv_c_tclh=$i 8272 break 8273 fi 8274 done 8275 fi 8276 8277fi 8278 8279 8280 # Print a message based on how we determined the include path 8281 8282 if test x"${ac_cv_c_tclh}" = x ; then 8283 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 8284echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 8285 { (exit 1); exit 1; }; } 8286 else 8287 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 8288echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 8289 fi 8290 8291 # Convert to a native path and substitute into the output files. 8292 8293 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 8294 8295 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 8296 8297 8298 8299 8300 { echo "$as_me:$LINENO: checking for Tk public headers" >&5 8301echo $ECHO_N "checking for Tk public headers... $ECHO_C" >&6; } 8302 8303 8304# Check whether --with-tkinclude was given. 8305if test "${with_tkinclude+set}" = set; then 8306 withval=$with_tkinclude; with_tkinclude=${withval} 8307fi 8308 8309 8310 if test "${ac_cv_c_tkh+set}" = set; then 8311 echo $ECHO_N "(cached) $ECHO_C" >&6 8312else 8313 8314 # Use the value from --with-tkinclude, if it was given 8315 8316 if test x"${with_tkinclude}" != x ; then 8317 if test -f "${with_tkinclude}/tk.h" ; then 8318 ac_cv_c_tkh=${with_tkinclude} 8319 else 8320 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory does not contain tk.h" >&5 8321echo "$as_me: error: ${with_tkinclude} directory does not contain tk.h" >&2;} 8322 { (exit 1); exit 1; }; } 8323 fi 8324 else 8325 list="" 8326 if test "`uname -s`" = "Darwin"; then 8327 # If Tk was built as a framework, attempt to use 8328 # the framework's Headers directory. 8329 case ${TK_DEFS} in 8330 *TK_FRAMEWORK*) 8331 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`" 8332 ;; 8333 esac 8334 fi 8335 8336 # Look in the source dir only if Tk is not installed, 8337 # and in that situation, look there before installed locations. 8338 if test -f "${TK_BIN_DIR}/Makefile" ; then 8339 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`" 8340 fi 8341 8342 # Check order: pkg --prefix location, Tk's --prefix location, 8343 # relative to directory of tkConfig.sh, Tcl's --prefix location, 8344 # relative to directory of tclConfig.sh. 8345 8346 eval "temp_includedir=${includedir}" 8347 list="$list \ 8348 `ls -d ${temp_includedir} 2>/dev/null` \ 8349 `ls -d ${TK_PREFIX}/include 2>/dev/null` \ 8350 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \ 8351 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 8352 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 8353 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 8354 list="$list /usr/local/include /usr/include" 8355 if test x"${TK_INCLUDE_SPEC}" != x ; then 8356 d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'` 8357 list="$list `ls -d ${d} 2>/dev/null`" 8358 fi 8359 fi 8360 for i in $list ; do 8361 if test -f "$i/tk.h" ; then 8362 ac_cv_c_tkh=$i 8363 break 8364 fi 8365 done 8366 fi 8367 8368fi 8369 8370 8371 # Print a message based on how we determined the include path 8372 8373 if test x"${ac_cv_c_tkh}" = x ; then 8374 { { echo "$as_me:$LINENO: error: tk.h not found. Please specify its location with --with-tkinclude" >&5 8375echo "$as_me: error: tk.h not found. Please specify its location with --with-tkinclude" >&2;} 8376 { (exit 1); exit 1; }; } 8377 else 8378 { echo "$as_me:$LINENO: result: ${ac_cv_c_tkh}" >&5 8379echo "${ECHO_T}${ac_cv_c_tkh}" >&6; } 8380 fi 8381 8382 # Convert to a native path and substitute into the output files. 8383 8384 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}` 8385 8386 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 8387 8388 8389 8390 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then 8391 # On Windows and Aqua, we need the X compat headers 8392 { echo "$as_me:$LINENO: checking for X11 header files" >&5 8393echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 8394 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then 8395 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`" 8396 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 8397 8398 fi 8399 { echo "$as_me:$LINENO: result: ${INCLUDE_DIR_NATIVE}" >&5 8400echo "${ECHO_T}${INCLUDE_DIR_NATIVE}" >&6; } 8401 fi 8402 8403 8404#-------------------------------------------------------------------- 8405# A few miscellaneous platform-specific items: 8406# 8407# Windows creates a few extra files that need to be cleaned up. 8408# We can add more files to clean if our extension creates any extra 8409# files in the future. 8410# 8411# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 8412# These will be appended to the current set of compiler flags for 8413# your system. 8414#-------------------------------------------------------------------- 8415 8416if test "${TEA_PLATFORM}" = "windows" ; then 8417 CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch init.c" 8418else 8419 CLEANFILES="init.c" 8420fi 8421 8422 8423#-------------------------------------------------------------------- 8424# Check whether --enable-threads or --disable-threads was given. 8425# So far only Tcl responds to this one. 8426#-------------------------------------------------------------------- 8427 8428 8429 # Check whether --enable-threads was given. 8430if test "${enable_threads+set}" = set; then 8431 enableval=$enable_threads; tcl_ok=$enableval 8432else 8433 tcl_ok=yes 8434fi 8435 8436 8437 if test "${enable_threads+set}" = set; then 8438 enableval="$enable_threads" 8439 tcl_ok=$enableval 8440 else 8441 tcl_ok=yes 8442 fi 8443 8444 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 8445 TCL_THREADS=1 8446 8447 if test "${TEA_PLATFORM}" != "windows" ; then 8448 # We are always OK on Windows, so check what this platform wants: 8449 8450 # USE_THREAD_ALLOC tells us to try the special thread-based 8451 # allocator that significantly reduces lock contention 8452 8453cat >>confdefs.h <<\_ACEOF 8454#define USE_THREAD_ALLOC 1 8455_ACEOF 8456 8457 8458cat >>confdefs.h <<\_ACEOF 8459#define _REENTRANT 1 8460_ACEOF 8461 8462 if test "`uname -s`" = "SunOS" ; then 8463 8464cat >>confdefs.h <<\_ACEOF 8465#define _POSIX_PTHREAD_SEMANTICS 1 8466_ACEOF 8467 8468 fi 8469 8470cat >>confdefs.h <<\_ACEOF 8471#define _THREAD_SAFE 1 8472_ACEOF 8473 8474 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 8475echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 8476if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 8477 echo $ECHO_N "(cached) $ECHO_C" >&6 8478else 8479 ac_check_lib_save_LIBS=$LIBS 8480LIBS="-lpthread $LIBS" 8481cat >conftest.$ac_ext <<_ACEOF 8482/* confdefs.h. */ 8483_ACEOF 8484cat confdefs.h >>conftest.$ac_ext 8485cat >>conftest.$ac_ext <<_ACEOF 8486/* end confdefs.h. */ 8487 8488/* Override any GCC internal prototype to avoid an error. 8489 Use char because int might match the return type of a GCC 8490 builtin and then its argument prototype would still apply. */ 8491#ifdef __cplusplus 8492extern "C" 8493#endif 8494char pthread_mutex_init (); 8495int 8496main () 8497{ 8498return pthread_mutex_init (); 8499 ; 8500 return 0; 8501} 8502_ACEOF 8503rm -f conftest.$ac_objext conftest$ac_exeext 8504if { (ac_try="$ac_link" 8505case "(($ac_try" in 8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8507 *) ac_try_echo=$ac_try;; 8508esac 8509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8510 (eval "$ac_link") 2>conftest.er1 8511 ac_status=$? 8512 grep -v '^ *+' conftest.er1 >conftest.err 8513 rm -f conftest.er1 8514 cat conftest.err >&5 8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8516 (exit $ac_status); } && { 8517 test -z "$ac_c_werror_flag" || 8518 test ! -s conftest.err 8519 } && test -s conftest$ac_exeext && 8520 $as_test_x conftest$ac_exeext; then 8521 ac_cv_lib_pthread_pthread_mutex_init=yes 8522else 8523 echo "$as_me: failed program was:" >&5 8524sed 's/^/| /' conftest.$ac_ext >&5 8525 8526 ac_cv_lib_pthread_pthread_mutex_init=no 8527fi 8528 8529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8530 conftest$ac_exeext conftest.$ac_ext 8531LIBS=$ac_check_lib_save_LIBS 8532fi 8533{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 8534echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 8535if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 8536 tcl_ok=yes 8537else 8538 tcl_ok=no 8539fi 8540 8541 if test "$tcl_ok" = "no"; then 8542 # Check a little harder for __pthread_mutex_init in the same 8543 # library, as some systems hide it there until pthread.h is 8544 # defined. We could alternatively do an AC_TRY_COMPILE with 8545 # pthread.h, but that will work with libpthread really doesn't 8546 # exist, like AIX 4.2. [Bug: 4359] 8547 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 8548echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 8549if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 8550 echo $ECHO_N "(cached) $ECHO_C" >&6 8551else 8552 ac_check_lib_save_LIBS=$LIBS 8553LIBS="-lpthread $LIBS" 8554cat >conftest.$ac_ext <<_ACEOF 8555/* confdefs.h. */ 8556_ACEOF 8557cat confdefs.h >>conftest.$ac_ext 8558cat >>conftest.$ac_ext <<_ACEOF 8559/* end confdefs.h. */ 8560 8561/* Override any GCC internal prototype to avoid an error. 8562 Use char because int might match the return type of a GCC 8563 builtin and then its argument prototype would still apply. */ 8564#ifdef __cplusplus 8565extern "C" 8566#endif 8567char __pthread_mutex_init (); 8568int 8569main () 8570{ 8571return __pthread_mutex_init (); 8572 ; 8573 return 0; 8574} 8575_ACEOF 8576rm -f conftest.$ac_objext conftest$ac_exeext 8577if { (ac_try="$ac_link" 8578case "(($ac_try" in 8579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8580 *) ac_try_echo=$ac_try;; 8581esac 8582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8583 (eval "$ac_link") 2>conftest.er1 8584 ac_status=$? 8585 grep -v '^ *+' conftest.er1 >conftest.err 8586 rm -f conftest.er1 8587 cat conftest.err >&5 8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8589 (exit $ac_status); } && { 8590 test -z "$ac_c_werror_flag" || 8591 test ! -s conftest.err 8592 } && test -s conftest$ac_exeext && 8593 $as_test_x conftest$ac_exeext; then 8594 ac_cv_lib_pthread___pthread_mutex_init=yes 8595else 8596 echo "$as_me: failed program was:" >&5 8597sed 's/^/| /' conftest.$ac_ext >&5 8598 8599 ac_cv_lib_pthread___pthread_mutex_init=no 8600fi 8601 8602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8603 conftest$ac_exeext conftest.$ac_ext 8604LIBS=$ac_check_lib_save_LIBS 8605fi 8606{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 8607echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 8608if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 8609 tcl_ok=yes 8610else 8611 tcl_ok=no 8612fi 8613 8614 fi 8615 8616 if test "$tcl_ok" = "yes"; then 8617 # The space is needed 8618 THREADS_LIBS=" -lpthread" 8619 else 8620 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 8621echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 8622if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 8623 echo $ECHO_N "(cached) $ECHO_C" >&6 8624else 8625 ac_check_lib_save_LIBS=$LIBS 8626LIBS="-lpthreads $LIBS" 8627cat >conftest.$ac_ext <<_ACEOF 8628/* confdefs.h. */ 8629_ACEOF 8630cat confdefs.h >>conftest.$ac_ext 8631cat >>conftest.$ac_ext <<_ACEOF 8632/* end confdefs.h. */ 8633 8634/* Override any GCC internal prototype to avoid an error. 8635 Use char because int might match the return type of a GCC 8636 builtin and then its argument prototype would still apply. */ 8637#ifdef __cplusplus 8638extern "C" 8639#endif 8640char pthread_mutex_init (); 8641int 8642main () 8643{ 8644return pthread_mutex_init (); 8645 ; 8646 return 0; 8647} 8648_ACEOF 8649rm -f conftest.$ac_objext conftest$ac_exeext 8650if { (ac_try="$ac_link" 8651case "(($ac_try" in 8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8653 *) ac_try_echo=$ac_try;; 8654esac 8655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8656 (eval "$ac_link") 2>conftest.er1 8657 ac_status=$? 8658 grep -v '^ *+' conftest.er1 >conftest.err 8659 rm -f conftest.er1 8660 cat conftest.err >&5 8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8662 (exit $ac_status); } && { 8663 test -z "$ac_c_werror_flag" || 8664 test ! -s conftest.err 8665 } && test -s conftest$ac_exeext && 8666 $as_test_x conftest$ac_exeext; then 8667 ac_cv_lib_pthreads_pthread_mutex_init=yes 8668else 8669 echo "$as_me: failed program was:" >&5 8670sed 's/^/| /' conftest.$ac_ext >&5 8671 8672 ac_cv_lib_pthreads_pthread_mutex_init=no 8673fi 8674 8675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8676 conftest$ac_exeext conftest.$ac_ext 8677LIBS=$ac_check_lib_save_LIBS 8678fi 8679{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 8680echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 8681if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 8682 tcl_ok=yes 8683else 8684 tcl_ok=no 8685fi 8686 8687 if test "$tcl_ok" = "yes"; then 8688 # The space is needed 8689 THREADS_LIBS=" -lpthreads" 8690 else 8691 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 8692echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 8693if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 8694 echo $ECHO_N "(cached) $ECHO_C" >&6 8695else 8696 ac_check_lib_save_LIBS=$LIBS 8697LIBS="-lc $LIBS" 8698cat >conftest.$ac_ext <<_ACEOF 8699/* confdefs.h. */ 8700_ACEOF 8701cat confdefs.h >>conftest.$ac_ext 8702cat >>conftest.$ac_ext <<_ACEOF 8703/* end confdefs.h. */ 8704 8705/* Override any GCC internal prototype to avoid an error. 8706 Use char because int might match the return type of a GCC 8707 builtin and then its argument prototype would still apply. */ 8708#ifdef __cplusplus 8709extern "C" 8710#endif 8711char pthread_mutex_init (); 8712int 8713main () 8714{ 8715return pthread_mutex_init (); 8716 ; 8717 return 0; 8718} 8719_ACEOF 8720rm -f conftest.$ac_objext conftest$ac_exeext 8721if { (ac_try="$ac_link" 8722case "(($ac_try" in 8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8724 *) ac_try_echo=$ac_try;; 8725esac 8726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8727 (eval "$ac_link") 2>conftest.er1 8728 ac_status=$? 8729 grep -v '^ *+' conftest.er1 >conftest.err 8730 rm -f conftest.er1 8731 cat conftest.err >&5 8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8733 (exit $ac_status); } && { 8734 test -z "$ac_c_werror_flag" || 8735 test ! -s conftest.err 8736 } && test -s conftest$ac_exeext && 8737 $as_test_x conftest$ac_exeext; then 8738 ac_cv_lib_c_pthread_mutex_init=yes 8739else 8740 echo "$as_me: failed program was:" >&5 8741sed 's/^/| /' conftest.$ac_ext >&5 8742 8743 ac_cv_lib_c_pthread_mutex_init=no 8744fi 8745 8746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8747 conftest$ac_exeext conftest.$ac_ext 8748LIBS=$ac_check_lib_save_LIBS 8749fi 8750{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 8751echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 8752if test $ac_cv_lib_c_pthread_mutex_init = yes; then 8753 tcl_ok=yes 8754else 8755 tcl_ok=no 8756fi 8757 8758 if test "$tcl_ok" = "no"; then 8759 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 8760echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 8761if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 8762 echo $ECHO_N "(cached) $ECHO_C" >&6 8763else 8764 ac_check_lib_save_LIBS=$LIBS 8765LIBS="-lc_r $LIBS" 8766cat >conftest.$ac_ext <<_ACEOF 8767/* confdefs.h. */ 8768_ACEOF 8769cat confdefs.h >>conftest.$ac_ext 8770cat >>conftest.$ac_ext <<_ACEOF 8771/* end confdefs.h. */ 8772 8773/* Override any GCC internal prototype to avoid an error. 8774 Use char because int might match the return type of a GCC 8775 builtin and then its argument prototype would still apply. */ 8776#ifdef __cplusplus 8777extern "C" 8778#endif 8779char pthread_mutex_init (); 8780int 8781main () 8782{ 8783return pthread_mutex_init (); 8784 ; 8785 return 0; 8786} 8787_ACEOF 8788rm -f conftest.$ac_objext conftest$ac_exeext 8789if { (ac_try="$ac_link" 8790case "(($ac_try" in 8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8792 *) ac_try_echo=$ac_try;; 8793esac 8794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8795 (eval "$ac_link") 2>conftest.er1 8796 ac_status=$? 8797 grep -v '^ *+' conftest.er1 >conftest.err 8798 rm -f conftest.er1 8799 cat conftest.err >&5 8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8801 (exit $ac_status); } && { 8802 test -z "$ac_c_werror_flag" || 8803 test ! -s conftest.err 8804 } && test -s conftest$ac_exeext && 8805 $as_test_x conftest$ac_exeext; then 8806 ac_cv_lib_c_r_pthread_mutex_init=yes 8807else 8808 echo "$as_me: failed program was:" >&5 8809sed 's/^/| /' conftest.$ac_ext >&5 8810 8811 ac_cv_lib_c_r_pthread_mutex_init=no 8812fi 8813 8814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8815 conftest$ac_exeext conftest.$ac_ext 8816LIBS=$ac_check_lib_save_LIBS 8817fi 8818{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 8819echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 8820if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 8821 tcl_ok=yes 8822else 8823 tcl_ok=no 8824fi 8825 8826 if test "$tcl_ok" = "yes"; then 8827 # The space is needed 8828 THREADS_LIBS=" -pthread" 8829 else 8830 TCL_THREADS=0 8831 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 8832echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 8833 fi 8834 fi 8835 fi 8836 fi 8837 fi 8838 else 8839 TCL_THREADS=0 8840 fi 8841 # Do checking message here to not mess up interleaved configure output 8842 { echo "$as_me:$LINENO: checking for building with threads" >&5 8843echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 8844 if test "${TCL_THREADS}" = 1; then 8845 8846cat >>confdefs.h <<\_ACEOF 8847#define TCL_THREADS 1 8848_ACEOF 8849 8850 { echo "$as_me:$LINENO: result: yes (default)" >&5 8851echo "${ECHO_T}yes (default)" >&6; } 8852 else 8853 { echo "$as_me:$LINENO: result: no" >&5 8854echo "${ECHO_T}no" >&6; } 8855 fi 8856 # TCL_THREADS sanity checking. See if our request for building with 8857 # threads is the same as the way Tcl was built. If not, warn the user. 8858 case ${TCL_DEFS} in 8859 *THREADS=1*) 8860 if test "${TCL_THREADS}" = "0"; then 8861 { echo "$as_me:$LINENO: WARNING: 8862 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 8863 that IS thread-enabled. It is recommended to use --enable-threads." >&5 8864echo "$as_me: WARNING: 8865 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 8866 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 8867 fi 8868 ;; 8869 *) 8870 if test "${TCL_THREADS}" = "1"; then 8871 { echo "$as_me:$LINENO: WARNING: 8872 --enable-threads requested, but building against a Tcl that is NOT 8873 thread-enabled. This is an OK configuration that will also run in 8874 a thread-enabled core." >&5 8875echo "$as_me: WARNING: 8876 --enable-threads requested, but building against a Tcl that is NOT 8877 thread-enabled. This is an OK configuration that will also run in 8878 a thread-enabled core." >&2;} 8879 fi 8880 ;; 8881 esac 8882 8883 8884 8885#-------------------------------------------------------------------- 8886# The statement below defines a collection of symbols related to 8887# building as a shared library instead of a static library. 8888#-------------------------------------------------------------------- 8889 8890 8891 { echo "$as_me:$LINENO: checking how to build libraries" >&5 8892echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 8893 # Check whether --enable-shared was given. 8894if test "${enable_shared+set}" = set; then 8895 enableval=$enable_shared; tcl_ok=$enableval 8896else 8897 tcl_ok=yes 8898fi 8899 8900 8901 if test "${enable_shared+set}" = set; then 8902 enableval="$enable_shared" 8903 tcl_ok=$enableval 8904 else 8905 tcl_ok=yes 8906 fi 8907 8908 if test "$tcl_ok" = "yes" ; then 8909 { echo "$as_me:$LINENO: result: shared" >&5 8910echo "${ECHO_T}shared" >&6; } 8911 SHARED_BUILD=1 8912 else 8913 { echo "$as_me:$LINENO: result: static" >&5 8914echo "${ECHO_T}static" >&6; } 8915 SHARED_BUILD=0 8916 8917cat >>confdefs.h <<\_ACEOF 8918#define STATIC_BUILD 1 8919_ACEOF 8920 8921 fi 8922 8923 8924 8925#-------------------------------------------------------------------- 8926# This macro figures out what flags to use with the compiler/linker 8927# when building shared/static debug/optimized objects. This information 8928# can be taken from the tclConfig.sh file, but this figures it all out. 8929#-------------------------------------------------------------------- 8930 8931 8932 8933 8934 # Step 0.a: Enable 64 bit support? 8935 8936 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 8937echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 8938 # Check whether --enable-64bit was given. 8939if test "${enable_64bit+set}" = set; then 8940 enableval=$enable_64bit; do64bit=$enableval 8941else 8942 do64bit=no 8943fi 8944 8945 { echo "$as_me:$LINENO: result: $do64bit" >&5 8946echo "${ECHO_T}$do64bit" >&6; } 8947 8948 # Step 0.b: Enable Solaris 64 bit VIS support? 8949 8950 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 8951echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 8952 # Check whether --enable-64bit-vis was given. 8953if test "${enable_64bit_vis+set}" = set; then 8954 enableval=$enable_64bit_vis; do64bitVIS=$enableval 8955else 8956 do64bitVIS=no 8957fi 8958 8959 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 8960echo "${ECHO_T}$do64bitVIS" >&6; } 8961 # Force 64bit on with VIS 8962 if test "$do64bitVIS" = "yes"; then 8963 do64bit=yes 8964fi 8965 8966 8967 # Step 0.c: Check if visibility support is available. Do this here so 8968 # that platform specific alternatives can be used below if this fails. 8969 8970 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 8971echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 8972if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 8973 echo $ECHO_N "(cached) $ECHO_C" >&6 8974else 8975 8976 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 8977 cat >conftest.$ac_ext <<_ACEOF 8978/* confdefs.h. */ 8979_ACEOF 8980cat confdefs.h >>conftest.$ac_ext 8981cat >>conftest.$ac_ext <<_ACEOF 8982/* end confdefs.h. */ 8983 8984 extern __attribute__((__visibility__("hidden"))) void f(void); 8985 void f(void) {} 8986int 8987main () 8988{ 8989f(); 8990 ; 8991 return 0; 8992} 8993_ACEOF 8994rm -f conftest.$ac_objext conftest$ac_exeext 8995if { (ac_try="$ac_link" 8996case "(($ac_try" in 8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8998 *) ac_try_echo=$ac_try;; 8999esac 9000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9001 (eval "$ac_link") 2>conftest.er1 9002 ac_status=$? 9003 grep -v '^ *+' conftest.er1 >conftest.err 9004 rm -f conftest.er1 9005 cat conftest.err >&5 9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9007 (exit $ac_status); } && { 9008 test -z "$ac_c_werror_flag" || 9009 test ! -s conftest.err 9010 } && test -s conftest$ac_exeext && 9011 $as_test_x conftest$ac_exeext; then 9012 tcl_cv_cc_visibility_hidden=yes 9013else 9014 echo "$as_me: failed program was:" >&5 9015sed 's/^/| /' conftest.$ac_ext >&5 9016 9017 tcl_cv_cc_visibility_hidden=no 9018fi 9019 9020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9021 conftest$ac_exeext conftest.$ac_ext 9022 CFLAGS=$hold_cflags 9023fi 9024{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 9025echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 9026 if test $tcl_cv_cc_visibility_hidden = yes; then 9027 9028 9029cat >>confdefs.h <<\_ACEOF 9030#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 9031_ACEOF 9032 9033 9034fi 9035 9036 9037 # Step 0.d: Disable -rpath support? 9038 9039 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 9040echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 9041 # Check whether --enable-rpath was given. 9042if test "${enable_rpath+set}" = set; then 9043 enableval=$enable_rpath; doRpath=$enableval 9044else 9045 doRpath=yes 9046fi 9047 9048 { echo "$as_me:$LINENO: result: $doRpath" >&5 9049echo "${ECHO_T}$doRpath" >&6; } 9050 9051 # TEA specific: Cross-compiling options for Windows/CE builds? 9052 9053 if test "${TEA_PLATFORM}" = windows; then 9054 9055 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 9056echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 9057 # Check whether --enable-wince was given. 9058if test "${enable_wince+set}" = set; then 9059 enableval=$enable_wince; doWince=$enableval 9060else 9061 doWince=no 9062fi 9063 9064 { echo "$as_me:$LINENO: result: $doWince" >&5 9065echo "${ECHO_T}$doWince" >&6; } 9066 9067fi 9068 9069 9070 # Set the variable "system" to hold the name and version number 9071 # for the system. 9072 9073 9074 { echo "$as_me:$LINENO: checking system version" >&5 9075echo $ECHO_N "checking system version... $ECHO_C" >&6; } 9076if test "${tcl_cv_sys_version+set}" = set; then 9077 echo $ECHO_N "(cached) $ECHO_C" >&6 9078else 9079 9080 # TEA specific: 9081 if test "${TEA_PLATFORM}" = "windows" ; then 9082 tcl_cv_sys_version=windows 9083 else 9084 tcl_cv_sys_version=`uname -s`-`uname -r` 9085 if test "$?" -ne 0 ; then 9086 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 9087echo "$as_me: WARNING: can't find uname command" >&2;} 9088 tcl_cv_sys_version=unknown 9089 else 9090 if test "`uname -s`" = "AIX" ; then 9091 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 9092 fi 9093 fi 9094 fi 9095 9096fi 9097{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 9098echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 9099 system=$tcl_cv_sys_version 9100 9101 9102 # Require ranlib early so we can override it in special cases below. 9103 9104 9105 9106 # Set configuration options based on system name and version. 9107 # This is similar to Tcl's unix/tcl.m4 except that we've added a 9108 # "windows" case and removed some core-only vars. 9109 9110 do64bit_ok=no 9111 # default to '{$LIBS}' and set to "" on per-platform necessary basis 9112 SHLIB_LD_LIBS='${LIBS}' 9113 # When ld needs options to work in 64-bit mode, put them in 9114 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 9115 # is disabled by the user. [Bug 1016796] 9116 LDFLAGS_ARCH="" 9117 UNSHARED_LIB_SUFFIX="" 9118 # TEA specific: use PACKAGE_VERSION instead of VERSION 9119 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 9120 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 9121 TCL_LIB_VERSIONS_OK=ok 9122 CFLAGS_DEBUG=-g 9123 CFLAGS_OPTIMIZE=-O 9124 if test "$GCC" = yes; then 9125 9126 # TEA specific: 9127 CFLAGS_OPTIMIZE=-O2 9128 CFLAGS_WARNING="-Wall" 9129 9130else 9131 CFLAGS_WARNING="" 9132fi 9133 9134 # Extract the first word of "ar", so it can be a program name with args. 9135set dummy ar; ac_word=$2 9136{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9138if test "${ac_cv_prog_AR+set}" = set; then 9139 echo $ECHO_N "(cached) $ECHO_C" >&6 9140else 9141 if test -n "$AR"; then 9142 ac_cv_prog_AR="$AR" # Let the user override the test. 9143else 9144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9145for as_dir in $PATH 9146do 9147 IFS=$as_save_IFS 9148 test -z "$as_dir" && as_dir=. 9149 for ac_exec_ext in '' $ac_executable_extensions; do 9150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9151 ac_cv_prog_AR="ar" 9152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9153 break 2 9154 fi 9155done 9156done 9157IFS=$as_save_IFS 9158 9159fi 9160fi 9161AR=$ac_cv_prog_AR 9162if test -n "$AR"; then 9163 { echo "$as_me:$LINENO: result: $AR" >&5 9164echo "${ECHO_T}$AR" >&6; } 9165else 9166 { echo "$as_me:$LINENO: result: no" >&5 9167echo "${ECHO_T}no" >&6; } 9168fi 9169 9170 9171 STLIB_LD='${AR} cr' 9172 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 9173 if test "x$SHLIB_VERSION" = x; then 9174 SHLIB_VERSION="1.0" 9175fi 9176 9177 case $system in 9178 # TEA specific: 9179 windows) 9180 # This is a 2-stage check to make sure we have the 64-bit SDK 9181 # We have to know where the SDK is installed. 9182 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 9183 # MACHINE is IX86 for LINK, but this is used by the manifest, 9184 # which requires x86|amd64|ia64. 9185 MACHINE="X86" 9186 if test "$do64bit" != "no" ; then 9187 if test "x${MSSDK}x" = "xx" ; then 9188 MSSDK="C:/Progra~1/Microsoft Platform SDK" 9189 fi 9190 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 9191 PATH64="" 9192 case "$do64bit" in 9193 amd64|x64|yes) 9194 MACHINE="AMD64" ; # default to AMD64 64-bit build 9195 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 9196 ;; 9197 ia64) 9198 MACHINE="IA64" 9199 PATH64="${MSSDK}/Bin/Win64" 9200 ;; 9201 esac 9202 if test ! -d "${PATH64}" ; then 9203 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 9204echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 9205 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 9206echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 9207 do64bit="no" 9208 else 9209 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 9210echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 9211 do64bit_ok="yes" 9212 fi 9213 fi 9214 9215 if test "$doWince" != "no" ; then 9216 if test "$do64bit" != "no" ; then 9217 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 9218echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 9219 { (exit 1); exit 1; }; } 9220 fi 9221 if test "$GCC" = "yes" ; then 9222 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 9223echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 9224 { (exit 1); exit 1; }; } 9225 fi 9226 9227 # First, look for one uninstalled. 9228 # the alternative search directory is invoked by --with-celib 9229 9230 if test x"${no_celib}" = x ; then 9231 # we reset no_celib in case something fails here 9232 no_celib=true 9233 9234# Check whether --with-celib was given. 9235if test "${with_celib+set}" = set; then 9236 withval=$with_celib; with_celibconfig=${withval} 9237fi 9238 9239 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 9240echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 9241 if test "${ac_cv_c_celibconfig+set}" = set; then 9242 echo $ECHO_N "(cached) $ECHO_C" >&6 9243else 9244 9245 # First check to see if --with-celibconfig was specified. 9246 if test x"${with_celibconfig}" != x ; then 9247 if test -d "${with_celibconfig}/inc" ; then 9248 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 9249 else 9250 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 9251echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 9252 { (exit 1); exit 1; }; } 9253 fi 9254 fi 9255 9256 # then check for a celib library 9257 if test x"${ac_cv_c_celibconfig}" = x ; then 9258 for i in \ 9259 ../celib-palm-3.0 \ 9260 ../celib \ 9261 ../../celib-palm-3.0 \ 9262 ../../celib \ 9263 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 9264 ${srcdir}/../celib-palm-3.0 \ 9265 ${srcdir}/../celib \ 9266 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 9267 ; do 9268 if test -d "$i/inc" ; then 9269 ac_cv_c_celibconfig=`(cd $i; pwd)` 9270 break 9271 fi 9272 done 9273 fi 9274 9275fi 9276 9277 if test x"${ac_cv_c_celibconfig}" = x ; then 9278 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 9279echo "$as_me: error: Cannot find celib support library directory" >&2;} 9280 { (exit 1); exit 1; }; } 9281 else 9282 no_celib= 9283 CELIB_DIR=${ac_cv_c_celibconfig} 9284 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 9285 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 9286echo "${ECHO_T}found $CELIB_DIR" >&6; } 9287 fi 9288 fi 9289 9290 # Set defaults for common evc4/PPC2003 setup 9291 # Currently Tcl requires 300+, possibly 420+ for sockets 9292 CEVERSION=420; # could be 211 300 301 400 420 ... 9293 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 9294 ARCH=ARM; # could be ARM MIPS X86EM ... 9295 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 9296 if test "$doWince" != "yes"; then 9297 # If !yes then the user specified something 9298 # Reset ARCH to allow user to skip specifying it 9299 ARCH= 9300 eval `echo $doWince | awk -F, '{ \ 9301 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 9302 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 9303 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 9304 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 9305 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 9306 }'` 9307 if test "x${ARCH}" = "x" ; then 9308 ARCH=$TARGETCPU; 9309 fi 9310 fi 9311 OSVERSION=WCE$CEVERSION; 9312 if test "x${WCEROOT}" = "x" ; then 9313 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 9314 if test ! -d "${WCEROOT}" ; then 9315 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 9316 fi 9317 fi 9318 if test "x${SDKROOT}" = "x" ; then 9319 SDKROOT="C:/Program Files/Windows CE Tools" 9320 if test ! -d "${SDKROOT}" ; then 9321 SDKROOT="C:/Windows CE Tools" 9322 fi 9323 fi 9324 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 9325 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 9326 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 9327 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 9328 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 9329echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 9330 { (exit 1); exit 1; }; } 9331 doWince="no" 9332 else 9333 # We could PATH_NOSPACE these, but that's not important, 9334 # as long as we quote them when used. 9335 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 9336 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 9337 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 9338 fi 9339 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 9340 fi 9341 fi 9342 9343 if test "$GCC" != "yes" ; then 9344 if test "${SHARED_BUILD}" = "0" ; then 9345 runtime=-MT 9346 else 9347 runtime=-MD 9348 fi 9349 9350 if test "$do64bit" != "no" ; then 9351 # All this magic is necessary for the Win64 SDK RC1 - hobbs 9352 CC="\"${PATH64}/cl.exe\"" 9353 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 9354 RC="\"${MSSDK}/bin/rc.exe\"" 9355 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 9356 LINKBIN="\"${PATH64}/link.exe\"" 9357 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 9358 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 9359 # Avoid 'unresolved external symbol __security_cookie' 9360 # errors, c.f. http://support.microsoft.com/?id=894573 9361 9362 vars="bufferoverflowU.lib" 9363 for i in $vars; do 9364 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 9365 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 9366 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 9367 fi 9368 PKG_LIBS="$PKG_LIBS $i" 9369 done 9370 9371 9372 elif test "$doWince" != "no" ; then 9373 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 9374 if test "${TARGETCPU}" = "X86"; then 9375 CC="\"${CEBINROOT}/cl.exe\"" 9376 else 9377 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 9378 fi 9379 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 9380 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 9381 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 9382 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 9383 if test "${SHARED_BUILD}" = "1" ; then 9384 # Static CE builds require static celib as well 9385 defs="${defs} _DLL" 9386 fi 9387 for i in $defs ; do 9388 9389cat >>confdefs.h <<_ACEOF 9390#define $i 1 9391_ACEOF 9392 9393 done 9394 9395cat >>confdefs.h <<_ACEOF 9396#define _WIN32_WCE $CEVERSION 9397_ACEOF 9398 9399 9400cat >>confdefs.h <<_ACEOF 9401#define UNDER_CE $CEVERSION 9402_ACEOF 9403 9404 CFLAGS_DEBUG="-nologo -Zi -Od" 9405 CFLAGS_OPTIMIZE="-nologo -Ox" 9406 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 9407 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 9408 LINKBIN="\"${CEBINROOT}/link.exe\"" 9409 9410 else 9411 RC="rc" 9412 lflags="-nologo" 9413 LINKBIN="link" 9414 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 9415 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 9416 fi 9417 fi 9418 9419 if test "$GCC" = "yes"; then 9420 # mingw gcc mode 9421 RC="windres" 9422 CFLAGS_DEBUG="-g" 9423 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 9424 SHLIB_LD="$CC -shared" 9425 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9426 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 9427 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 9428 else 9429 SHLIB_LD="${LINKBIN} -dll ${lflags}" 9430 # link -lib only works when -lib is the first arg 9431 STLIB_LD="${LINKBIN} -lib ${lflags}" 9432 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 9433 PATHTYPE=-w 9434 # For information on what debugtype is most useful, see: 9435 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 9436 # and also 9437 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 9438 # This essentially turns it all on. 9439 LDFLAGS_DEBUG="-debug -debugtype:cv" 9440 LDFLAGS_OPTIMIZE="-release" 9441 if test "$doWince" != "no" ; then 9442 LDFLAGS_CONSOLE="-link ${lflags}" 9443 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 9444 else 9445 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 9446 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 9447 fi 9448 fi 9449 9450 SHLIB_SUFFIX=".dll" 9451 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 9452 9453 TCL_LIB_VERSIONS_OK=nodots 9454 ;; 9455 AIX-*) 9456 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 9457 9458 # AIX requires the _r compiler when gcc isn't being used 9459 case "${CC}" in 9460 *_r|*_r\ *) 9461 # ok ... 9462 ;; 9463 *) 9464 # Make sure only first arg gets _r 9465 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 9466 ;; 9467 esac 9468 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 9469echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 9470 9471fi 9472 9473 LIBS="$LIBS -lc" 9474 SHLIB_CFLAGS="" 9475 SHLIB_SUFFIX=".so" 9476 9477 LD_LIBRARY_PATH_VAR="LIBPATH" 9478 9479 # Check to enable 64-bit flags for compiler/linker 9480 if test "$do64bit" = yes; then 9481 9482 if test "$GCC" = yes; then 9483 9484 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9485echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 9486 9487else 9488 9489 do64bit_ok=yes 9490 CFLAGS="$CFLAGS -q64" 9491 LDFLAGS_ARCH="-q64" 9492 RANLIB="${RANLIB} -X64" 9493 AR="${AR} -X64" 9494 SHLIB_LD_FLAGS="-b64" 9495 9496fi 9497 9498 9499fi 9500 9501 9502 if test "`uname -m`" = ia64; then 9503 9504 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 9505 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9506 if test "$GCC" = yes; then 9507 9508 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9509 9510else 9511 9512 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 9513 9514fi 9515 9516 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9517 9518else 9519 9520 if test "$GCC" = yes; then 9521 9522 SHLIB_LD='${CC} -shared -Wl,-bexpall' 9523 9524else 9525 9526 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 9527 LDFLAGS="$LDFLAGS -brtl" 9528 9529fi 9530 9531 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 9532 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 9533 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9534 9535fi 9536 9537 ;; 9538 BeOS*) 9539 SHLIB_CFLAGS="-fPIC" 9540 SHLIB_LD='${CC} -nostart' 9541 SHLIB_SUFFIX=".so" 9542 9543 #----------------------------------------------------------- 9544 # Check for inet_ntoa in -lbind, for BeOS (which also needs 9545 # -lsocket, even if the network functions are in -lnet which 9546 # is always linked to, for compatibility. 9547 #----------------------------------------------------------- 9548 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 9549echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 9550if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 9551 echo $ECHO_N "(cached) $ECHO_C" >&6 9552else 9553 ac_check_lib_save_LIBS=$LIBS 9554LIBS="-lbind $LIBS" 9555cat >conftest.$ac_ext <<_ACEOF 9556/* confdefs.h. */ 9557_ACEOF 9558cat confdefs.h >>conftest.$ac_ext 9559cat >>conftest.$ac_ext <<_ACEOF 9560/* end confdefs.h. */ 9561 9562/* Override any GCC internal prototype to avoid an error. 9563 Use char because int might match the return type of a GCC 9564 builtin and then its argument prototype would still apply. */ 9565#ifdef __cplusplus 9566extern "C" 9567#endif 9568char inet_ntoa (); 9569int 9570main () 9571{ 9572return inet_ntoa (); 9573 ; 9574 return 0; 9575} 9576_ACEOF 9577rm -f conftest.$ac_objext conftest$ac_exeext 9578if { (ac_try="$ac_link" 9579case "(($ac_try" in 9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9581 *) ac_try_echo=$ac_try;; 9582esac 9583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9584 (eval "$ac_link") 2>conftest.er1 9585 ac_status=$? 9586 grep -v '^ *+' conftest.er1 >conftest.err 9587 rm -f conftest.er1 9588 cat conftest.err >&5 9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9590 (exit $ac_status); } && { 9591 test -z "$ac_c_werror_flag" || 9592 test ! -s conftest.err 9593 } && test -s conftest$ac_exeext && 9594 $as_test_x conftest$ac_exeext; then 9595 ac_cv_lib_bind_inet_ntoa=yes 9596else 9597 echo "$as_me: failed program was:" >&5 9598sed 's/^/| /' conftest.$ac_ext >&5 9599 9600 ac_cv_lib_bind_inet_ntoa=no 9601fi 9602 9603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9604 conftest$ac_exeext conftest.$ac_ext 9605LIBS=$ac_check_lib_save_LIBS 9606fi 9607{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 9608echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 9609if test $ac_cv_lib_bind_inet_ntoa = yes; then 9610 LIBS="$LIBS -lbind -lsocket" 9611fi 9612 9613 ;; 9614 BSD/OS-4.*) 9615 SHLIB_CFLAGS="-export-dynamic -fPIC" 9616 SHLIB_LD='${CC} -shared' 9617 SHLIB_SUFFIX=".so" 9618 LDFLAGS="$LDFLAGS -export-dynamic" 9619 CC_SEARCH_FLAGS="" 9620 LD_SEARCH_FLAGS="" 9621 ;; 9622 CYGWIN_*) 9623 SHLIB_CFLAGS="" 9624 SHLIB_LD='${CC} -shared' 9625 SHLIB_SUFFIX=".dll" 9626 EXE_SUFFIX=".exe" 9627 CC_SEARCH_FLAGS="" 9628 LD_SEARCH_FLAGS="" 9629 ;; 9630 Haiku*) 9631 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9632 SHLIB_CFLAGS="-fPIC" 9633 SHLIB_SUFFIX=".so" 9634 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 9635 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 9636echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 9637if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 9638 echo $ECHO_N "(cached) $ECHO_C" >&6 9639else 9640 ac_check_lib_save_LIBS=$LIBS 9641LIBS="-lnetwork $LIBS" 9642cat >conftest.$ac_ext <<_ACEOF 9643/* confdefs.h. */ 9644_ACEOF 9645cat confdefs.h >>conftest.$ac_ext 9646cat >>conftest.$ac_ext <<_ACEOF 9647/* end confdefs.h. */ 9648 9649/* Override any GCC internal prototype to avoid an error. 9650 Use char because int might match the return type of a GCC 9651 builtin and then its argument prototype would still apply. */ 9652#ifdef __cplusplus 9653extern "C" 9654#endif 9655char inet_ntoa (); 9656int 9657main () 9658{ 9659return inet_ntoa (); 9660 ; 9661 return 0; 9662} 9663_ACEOF 9664rm -f conftest.$ac_objext conftest$ac_exeext 9665if { (ac_try="$ac_link" 9666case "(($ac_try" in 9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9668 *) ac_try_echo=$ac_try;; 9669esac 9670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9671 (eval "$ac_link") 2>conftest.er1 9672 ac_status=$? 9673 grep -v '^ *+' conftest.er1 >conftest.err 9674 rm -f conftest.er1 9675 cat conftest.err >&5 9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9677 (exit $ac_status); } && { 9678 test -z "$ac_c_werror_flag" || 9679 test ! -s conftest.err 9680 } && test -s conftest$ac_exeext && 9681 $as_test_x conftest$ac_exeext; then 9682 ac_cv_lib_network_inet_ntoa=yes 9683else 9684 echo "$as_me: failed program was:" >&5 9685sed 's/^/| /' conftest.$ac_ext >&5 9686 9687 ac_cv_lib_network_inet_ntoa=no 9688fi 9689 9690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9691 conftest$ac_exeext conftest.$ac_ext 9692LIBS=$ac_check_lib_save_LIBS 9693fi 9694{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 9695echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 9696if test $ac_cv_lib_network_inet_ntoa = yes; then 9697 LIBS="$LIBS -lnetwork" 9698fi 9699 9700 ;; 9701 HP-UX-*.11.*) 9702 # Use updated header definitions where possible 9703 9704cat >>confdefs.h <<\_ACEOF 9705#define _XOPEN_SOURCE_EXTENDED 1 9706_ACEOF 9707 9708 # TEA specific: Needed by Tcl, but not most extensions 9709 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 9710 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 9711 9712 if test "`uname -m`" = ia64; then 9713 9714 SHLIB_SUFFIX=".so" 9715 # Use newer C++ library for C++ extensions 9716 #if test "$GCC" != "yes" ; then 9717 # CPPFLAGS="-AA" 9718 #fi 9719 9720else 9721 9722 SHLIB_SUFFIX=".sl" 9723 9724fi 9725 9726 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9727echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9728if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9729 echo $ECHO_N "(cached) $ECHO_C" >&6 9730else 9731 ac_check_lib_save_LIBS=$LIBS 9732LIBS="-ldld $LIBS" 9733cat >conftest.$ac_ext <<_ACEOF 9734/* confdefs.h. */ 9735_ACEOF 9736cat confdefs.h >>conftest.$ac_ext 9737cat >>conftest.$ac_ext <<_ACEOF 9738/* end confdefs.h. */ 9739 9740/* Override any GCC internal prototype to avoid an error. 9741 Use char because int might match the return type of a GCC 9742 builtin and then its argument prototype would still apply. */ 9743#ifdef __cplusplus 9744extern "C" 9745#endif 9746char shl_load (); 9747int 9748main () 9749{ 9750return shl_load (); 9751 ; 9752 return 0; 9753} 9754_ACEOF 9755rm -f conftest.$ac_objext conftest$ac_exeext 9756if { (ac_try="$ac_link" 9757case "(($ac_try" in 9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9759 *) ac_try_echo=$ac_try;; 9760esac 9761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9762 (eval "$ac_link") 2>conftest.er1 9763 ac_status=$? 9764 grep -v '^ *+' conftest.er1 >conftest.err 9765 rm -f conftest.er1 9766 cat conftest.err >&5 9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9768 (exit $ac_status); } && { 9769 test -z "$ac_c_werror_flag" || 9770 test ! -s conftest.err 9771 } && test -s conftest$ac_exeext && 9772 $as_test_x conftest$ac_exeext; then 9773 ac_cv_lib_dld_shl_load=yes 9774else 9775 echo "$as_me: failed program was:" >&5 9776sed 's/^/| /' conftest.$ac_ext >&5 9777 9778 ac_cv_lib_dld_shl_load=no 9779fi 9780 9781rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9782 conftest$ac_exeext conftest.$ac_ext 9783LIBS=$ac_check_lib_save_LIBS 9784fi 9785{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9786echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9787if test $ac_cv_lib_dld_shl_load = yes; then 9788 tcl_ok=yes 9789else 9790 tcl_ok=no 9791fi 9792 9793 if test "$tcl_ok" = yes; then 9794 9795 LDFLAGS="$LDFLAGS -E" 9796 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 9797 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 9798 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 9799 9800fi 9801 9802 if test "$GCC" = yes; then 9803 9804 SHLIB_LD='${CC} -shared' 9805 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9806 9807else 9808 9809 CFLAGS="$CFLAGS -z" 9810 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 9811 #CFLAGS="$CFLAGS +DAportable" 9812 SHLIB_CFLAGS="+z" 9813 SHLIB_LD="ld -b" 9814 9815fi 9816 9817 9818 # Check to enable 64-bit flags for compiler/linker 9819 if test "$do64bit" = "yes"; then 9820 9821 if test "$GCC" = yes; then 9822 9823 case `${CC} -dumpmachine` in 9824 hppa64*) 9825 # 64-bit gcc in use. Fix flags for GNU ld. 9826 do64bit_ok=yes 9827 SHLIB_LD='${CC} -shared' 9828 if test $doRpath = yes; then 9829 9830 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9831fi 9832 9833 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9834 ;; 9835 *) 9836 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9837echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 9838 ;; 9839 esac 9840 9841else 9842 9843 do64bit_ok=yes 9844 CFLAGS="$CFLAGS +DD64" 9845 LDFLAGS_ARCH="+DD64" 9846 9847fi 9848 9849 9850fi 9851 ;; 9852 IRIX-6.*) 9853 SHLIB_CFLAGS="" 9854 SHLIB_LD="ld -n32 -shared -rdata_shared" 9855 SHLIB_SUFFIX=".so" 9856 if test $doRpath = yes; then 9857 9858 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9859 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9860fi 9861 9862 if test "$GCC" = yes; then 9863 9864 CFLAGS="$CFLAGS -mabi=n32" 9865 LDFLAGS="$LDFLAGS -mabi=n32" 9866 9867else 9868 9869 case $system in 9870 IRIX-6.3) 9871 # Use to build 6.2 compatible binaries on 6.3. 9872 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 9873 ;; 9874 *) 9875 CFLAGS="$CFLAGS -n32" 9876 ;; 9877 esac 9878 LDFLAGS="$LDFLAGS -n32" 9879 9880fi 9881 9882 ;; 9883 IRIX64-6.*) 9884 SHLIB_CFLAGS="" 9885 SHLIB_LD="ld -n32 -shared -rdata_shared" 9886 SHLIB_SUFFIX=".so" 9887 if test $doRpath = yes; then 9888 9889 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9890 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9891fi 9892 9893 9894 # Check to enable 64-bit flags for compiler/linker 9895 9896 if test "$do64bit" = yes; then 9897 9898 if test "$GCC" = yes; then 9899 9900 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 9901echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 9902 9903else 9904 9905 do64bit_ok=yes 9906 SHLIB_LD="ld -64 -shared -rdata_shared" 9907 CFLAGS="$CFLAGS -64" 9908 LDFLAGS_ARCH="-64" 9909 9910fi 9911 9912 9913fi 9914 9915 ;; 9916 Linux*) 9917 SHLIB_CFLAGS="-fPIC" 9918 SHLIB_SUFFIX=".so" 9919 9920 # TEA specific: 9921 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 9922 9923 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9924 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 9925 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9926 if test $doRpath = yes; then 9927 9928 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9929fi 9930 9931 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9932 if test "`uname -m`" = "alpha"; then 9933 CFLAGS="$CFLAGS -mieee" 9934fi 9935 9936 if test $do64bit = yes; then 9937 9938 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 9939echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 9940if test "${tcl_cv_cc_m64+set}" = set; then 9941 echo $ECHO_N "(cached) $ECHO_C" >&6 9942else 9943 9944 hold_cflags=$CFLAGS 9945 CFLAGS="$CFLAGS -m64" 9946 cat >conftest.$ac_ext <<_ACEOF 9947/* confdefs.h. */ 9948_ACEOF 9949cat confdefs.h >>conftest.$ac_ext 9950cat >>conftest.$ac_ext <<_ACEOF 9951/* end confdefs.h. */ 9952 9953int 9954main () 9955{ 9956 9957 ; 9958 return 0; 9959} 9960_ACEOF 9961rm -f conftest.$ac_objext conftest$ac_exeext 9962if { (ac_try="$ac_link" 9963case "(($ac_try" in 9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9965 *) ac_try_echo=$ac_try;; 9966esac 9967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9968 (eval "$ac_link") 2>conftest.er1 9969 ac_status=$? 9970 grep -v '^ *+' conftest.er1 >conftest.err 9971 rm -f conftest.er1 9972 cat conftest.err >&5 9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9974 (exit $ac_status); } && { 9975 test -z "$ac_c_werror_flag" || 9976 test ! -s conftest.err 9977 } && test -s conftest$ac_exeext && 9978 $as_test_x conftest$ac_exeext; then 9979 tcl_cv_cc_m64=yes 9980else 9981 echo "$as_me: failed program was:" >&5 9982sed 's/^/| /' conftest.$ac_ext >&5 9983 9984 tcl_cv_cc_m64=no 9985fi 9986 9987rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9988 conftest$ac_exeext conftest.$ac_ext 9989 CFLAGS=$hold_cflags 9990fi 9991{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 9992echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 9993 if test $tcl_cv_cc_m64 = yes; then 9994 9995 CFLAGS="$CFLAGS -m64" 9996 do64bit_ok=yes 9997 9998fi 9999 10000 10001fi 10002 10003 10004 # The combo of gcc + glibc has a bug related to inlining of 10005 # functions like strtod(). The -fno-builtin flag should address 10006 # this problem but it does not work. The -fno-inline flag is kind 10007 # of overkill but it works. Disable inlining only when one of the 10008 # files in compat/*.c is being linked in. 10009 10010 if test x"${USE_COMPAT}" != x; then 10011 CFLAGS="$CFLAGS -fno-inline" 10012fi 10013 10014 10015 ;; 10016 GNU*) 10017 SHLIB_CFLAGS="-fPIC" 10018 SHLIB_SUFFIX=".so" 10019 10020 SHLIB_LD='${CC} -shared' 10021 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 10022 CC_SEARCH_FLAGS="" 10023 LD_SEARCH_FLAGS="" 10024 if test "`uname -m`" = "alpha"; then 10025 CFLAGS="$CFLAGS -mieee" 10026fi 10027 10028 ;; 10029 Lynx*) 10030 SHLIB_CFLAGS="-fPIC" 10031 SHLIB_SUFFIX=".so" 10032 CFLAGS_OPTIMIZE=-02 10033 SHLIB_LD='${CC} -shared' 10034 LD_FLAGS="-Wl,--export-dynamic" 10035 if test $doRpath = yes; then 10036 10037 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10038 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10039fi 10040 10041 ;; 10042 OpenBSD-*) 10043 SHLIB_CFLAGS="-fPIC" 10044 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 10045 SHLIB_SUFFIX=".so" 10046 if test $doRpath = yes; then 10047 10048 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10049fi 10050 10051 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10052 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 10053 { echo "$as_me:$LINENO: checking for ELF" >&5 10054echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 10055if test "${tcl_cv_ld_elf+set}" = set; then 10056 echo $ECHO_N "(cached) $ECHO_C" >&6 10057else 10058 10059 cat >conftest.$ac_ext <<_ACEOF 10060/* confdefs.h. */ 10061_ACEOF 10062cat confdefs.h >>conftest.$ac_ext 10063cat >>conftest.$ac_ext <<_ACEOF 10064/* end confdefs.h. */ 10065 10066#ifdef __ELF__ 10067 yes 10068#endif 10069 10070_ACEOF 10071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10072 $EGREP "yes" >/dev/null 2>&1; then 10073 tcl_cv_ld_elf=yes 10074else 10075 tcl_cv_ld_elf=no 10076fi 10077rm -f -r conftest* 10078 10079fi 10080{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 10081echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 10082 if test $tcl_cv_ld_elf = yes; then 10083 10084 LDFLAGS=-Wl,-export-dynamic 10085 10086else 10087 LDFLAGS="" 10088fi 10089 10090 if test "${TCL_THREADS}" = "1"; then 10091 10092 # OpenBSD builds and links with -pthread, never -lpthread. 10093 LIBS=`echo $LIBS | sed s/-lpthread//` 10094 CFLAGS="$CFLAGS -pthread" 10095 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 10096 10097fi 10098 10099 # OpenBSD doesn't do version numbers with dots. 10100 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 10101 TCL_LIB_VERSIONS_OK=nodots 10102 ;; 10103 NetBSD-*|FreeBSD-[3-4].*) 10104 # FreeBSD 3.* and greater have ELF. 10105 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 10106 SHLIB_CFLAGS="-fPIC" 10107 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 10108 SHLIB_SUFFIX=".so" 10109 LDFLAGS="$LDFLAGS -export-dynamic" 10110 if test $doRpath = yes; then 10111 10112 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10113fi 10114 10115 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10116 if test "${TCL_THREADS}" = "1"; then 10117 10118 # The -pthread needs to go in the CFLAGS, not LIBS 10119 LIBS=`echo $LIBS | sed s/-pthread//` 10120 CFLAGS="$CFLAGS -pthread" 10121 LDFLAGS="$LDFLAGS -pthread" 10122 10123fi 10124 10125 case $system in 10126 FreeBSD-3.*) 10127 # FreeBSD-3 doesn't handle version numbers with dots. 10128 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 10129 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 10130 TCL_LIB_VERSIONS_OK=nodots 10131 ;; 10132 esac 10133 ;; 10134 FreeBSD-*) 10135 # This configuration from FreeBSD Ports. 10136 SHLIB_CFLAGS="-fPIC" 10137 SHLIB_LD="${CC} -shared" 10138 TCL_SHLIB_LD_EXTRAS="-soname \$@" 10139 SHLIB_SUFFIX=".so" 10140 LDFLAGS="" 10141 if test $doRpath = yes; then 10142 10143 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10144 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 10145fi 10146 10147 if test "${TCL_THREADS}" = "1"; then 10148 10149 # The -pthread needs to go in the LDFLAGS, not LIBS 10150 LIBS=`echo $LIBS | sed s/-pthread//` 10151 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 10152 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 10153fi 10154 10155 # Version numbers are dot-stripped by system policy. 10156 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 10157 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 10158 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 10159 TCL_LIB_VERSIONS_OK=nodots 10160 ;; 10161 Darwin-*) 10162 CFLAGS_OPTIMIZE="-Os" 10163 SHLIB_CFLAGS="-fno-common" 10164 # To avoid discrepancies between what headers configure sees during 10165 # preprocessing tests and compiling tests, move any -isysroot and 10166 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 10167 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 10168 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 10169 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 10170 CFLAGS="`echo " ${CFLAGS}" | \ 10171 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 10172 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 10173 if test $do64bit = yes; then 10174 10175 case `arch` in 10176 ppc) 10177 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 10178echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 10179if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 10180 echo $ECHO_N "(cached) $ECHO_C" >&6 10181else 10182 10183 hold_cflags=$CFLAGS 10184 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 10185 cat >conftest.$ac_ext <<_ACEOF 10186/* confdefs.h. */ 10187_ACEOF 10188cat confdefs.h >>conftest.$ac_ext 10189cat >>conftest.$ac_ext <<_ACEOF 10190/* end confdefs.h. */ 10191 10192int 10193main () 10194{ 10195 10196 ; 10197 return 0; 10198} 10199_ACEOF 10200rm -f conftest.$ac_objext conftest$ac_exeext 10201if { (ac_try="$ac_link" 10202case "(($ac_try" in 10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10204 *) ac_try_echo=$ac_try;; 10205esac 10206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10207 (eval "$ac_link") 2>conftest.er1 10208 ac_status=$? 10209 grep -v '^ *+' conftest.er1 >conftest.err 10210 rm -f conftest.er1 10211 cat conftest.err >&5 10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10213 (exit $ac_status); } && { 10214 test -z "$ac_c_werror_flag" || 10215 test ! -s conftest.err 10216 } && test -s conftest$ac_exeext && 10217 $as_test_x conftest$ac_exeext; then 10218 tcl_cv_cc_arch_ppc64=yes 10219else 10220 echo "$as_me: failed program was:" >&5 10221sed 's/^/| /' conftest.$ac_ext >&5 10222 10223 tcl_cv_cc_arch_ppc64=no 10224fi 10225 10226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10227 conftest$ac_exeext conftest.$ac_ext 10228 CFLAGS=$hold_cflags 10229fi 10230{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 10231echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 10232 if test $tcl_cv_cc_arch_ppc64 = yes; then 10233 10234 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 10235 do64bit_ok=yes 10236 10237fi 10238;; 10239 i386) 10240 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 10241echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 10242if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 10243 echo $ECHO_N "(cached) $ECHO_C" >&6 10244else 10245 10246 hold_cflags=$CFLAGS 10247 CFLAGS="$CFLAGS -arch x86_64" 10248 cat >conftest.$ac_ext <<_ACEOF 10249/* confdefs.h. */ 10250_ACEOF 10251cat confdefs.h >>conftest.$ac_ext 10252cat >>conftest.$ac_ext <<_ACEOF 10253/* end confdefs.h. */ 10254 10255int 10256main () 10257{ 10258 10259 ; 10260 return 0; 10261} 10262_ACEOF 10263rm -f conftest.$ac_objext conftest$ac_exeext 10264if { (ac_try="$ac_link" 10265case "(($ac_try" in 10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10267 *) ac_try_echo=$ac_try;; 10268esac 10269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10270 (eval "$ac_link") 2>conftest.er1 10271 ac_status=$? 10272 grep -v '^ *+' conftest.er1 >conftest.err 10273 rm -f conftest.er1 10274 cat conftest.err >&5 10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10276 (exit $ac_status); } && { 10277 test -z "$ac_c_werror_flag" || 10278 test ! -s conftest.err 10279 } && test -s conftest$ac_exeext && 10280 $as_test_x conftest$ac_exeext; then 10281 tcl_cv_cc_arch_x86_64=yes 10282else 10283 echo "$as_me: failed program was:" >&5 10284sed 's/^/| /' conftest.$ac_ext >&5 10285 10286 tcl_cv_cc_arch_x86_64=no 10287fi 10288 10289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10290 conftest$ac_exeext conftest.$ac_ext 10291 CFLAGS=$hold_cflags 10292fi 10293{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 10294echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 10295 if test $tcl_cv_cc_arch_x86_64 = yes; then 10296 10297 CFLAGS="$CFLAGS -arch x86_64" 10298 do64bit_ok=yes 10299 10300fi 10301;; 10302 *) 10303 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 10304echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 10305 esac 10306 10307else 10308 10309 # Check for combined 32-bit and 64-bit fat build 10310 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 10311 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 10312 10313 fat_32_64=yes 10314fi 10315 10316 10317fi 10318 10319 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 10320 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 10321 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 10322echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 10323if test "${tcl_cv_ld_single_module+set}" = set; then 10324 echo $ECHO_N "(cached) $ECHO_C" >&6 10325else 10326 10327 hold_ldflags=$LDFLAGS 10328 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 10329 cat >conftest.$ac_ext <<_ACEOF 10330/* confdefs.h. */ 10331_ACEOF 10332cat confdefs.h >>conftest.$ac_ext 10333cat >>conftest.$ac_ext <<_ACEOF 10334/* end confdefs.h. */ 10335 10336int 10337main () 10338{ 10339int i; 10340 ; 10341 return 0; 10342} 10343_ACEOF 10344rm -f conftest.$ac_objext conftest$ac_exeext 10345if { (ac_try="$ac_link" 10346case "(($ac_try" in 10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10348 *) ac_try_echo=$ac_try;; 10349esac 10350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10351 (eval "$ac_link") 2>conftest.er1 10352 ac_status=$? 10353 grep -v '^ *+' conftest.er1 >conftest.err 10354 rm -f conftest.er1 10355 cat conftest.err >&5 10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10357 (exit $ac_status); } && { 10358 test -z "$ac_c_werror_flag" || 10359 test ! -s conftest.err 10360 } && test -s conftest$ac_exeext && 10361 $as_test_x conftest$ac_exeext; then 10362 tcl_cv_ld_single_module=yes 10363else 10364 echo "$as_me: failed program was:" >&5 10365sed 's/^/| /' conftest.$ac_ext >&5 10366 10367 tcl_cv_ld_single_module=no 10368fi 10369 10370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10371 conftest$ac_exeext conftest.$ac_ext 10372 LDFLAGS=$hold_ldflags 10373fi 10374{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 10375echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 10376 if test $tcl_cv_ld_single_module = yes; then 10377 10378 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 10379 10380fi 10381 10382 # TEA specific: link shlib with current and compatiblity version flags 10383 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 10384 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 10385 SHLIB_SUFFIX=".dylib" 10386 # Don't use -prebind when building for Mac OS X 10.4 or later only: 10387 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 10388 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 10389 10390 LDFLAGS="$LDFLAGS -prebind" 10391fi 10392 10393 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 10394 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 10395echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 10396if test "${tcl_cv_ld_search_paths_first+set}" = set; then 10397 echo $ECHO_N "(cached) $ECHO_C" >&6 10398else 10399 10400 hold_ldflags=$LDFLAGS 10401 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 10402 cat >conftest.$ac_ext <<_ACEOF 10403/* confdefs.h. */ 10404_ACEOF 10405cat confdefs.h >>conftest.$ac_ext 10406cat >>conftest.$ac_ext <<_ACEOF 10407/* end confdefs.h. */ 10408 10409int 10410main () 10411{ 10412int i; 10413 ; 10414 return 0; 10415} 10416_ACEOF 10417rm -f conftest.$ac_objext conftest$ac_exeext 10418if { (ac_try="$ac_link" 10419case "(($ac_try" in 10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10421 *) ac_try_echo=$ac_try;; 10422esac 10423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10424 (eval "$ac_link") 2>conftest.er1 10425 ac_status=$? 10426 grep -v '^ *+' conftest.er1 >conftest.err 10427 rm -f conftest.er1 10428 cat conftest.err >&5 10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10430 (exit $ac_status); } && { 10431 test -z "$ac_c_werror_flag" || 10432 test ! -s conftest.err 10433 } && test -s conftest$ac_exeext && 10434 $as_test_x conftest$ac_exeext; then 10435 tcl_cv_ld_search_paths_first=yes 10436else 10437 echo "$as_me: failed program was:" >&5 10438sed 's/^/| /' conftest.$ac_ext >&5 10439 10440 tcl_cv_ld_search_paths_first=no 10441fi 10442 10443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10444 conftest$ac_exeext conftest.$ac_ext 10445 LDFLAGS=$hold_ldflags 10446fi 10447{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 10448echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 10449 if test $tcl_cv_ld_search_paths_first = yes; then 10450 10451 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 10452 10453fi 10454 10455 if test "$tcl_cv_cc_visibility_hidden" != yes; then 10456 10457 10458cat >>confdefs.h <<\_ACEOF 10459#define MODULE_SCOPE __private_extern__ 10460_ACEOF 10461 10462 tcl_cv_cc_visibility_hidden=yes 10463 10464fi 10465 10466 CC_SEARCH_FLAGS="" 10467 LD_SEARCH_FLAGS="" 10468 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 10469 # TEA specific: for combined 32 & 64 bit fat builds of Tk 10470 # extensions, verify that 64-bit build is possible. 10471 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 10472 10473 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 10474 10475 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 10476echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 10477if test "${tcl_cv_lib_x11_64+set}" = set; then 10478 echo $ECHO_N "(cached) $ECHO_C" >&6 10479else 10480 10481 for v in CFLAGS CPPFLAGS LDFLAGS; do 10482 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 10483 done 10484 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 10485 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 10486 cat >conftest.$ac_ext <<_ACEOF 10487/* confdefs.h. */ 10488_ACEOF 10489cat confdefs.h >>conftest.$ac_ext 10490cat >>conftest.$ac_ext <<_ACEOF 10491/* end confdefs.h. */ 10492#include <X11/Xlib.h> 10493int 10494main () 10495{ 10496XrmInitialize(); 10497 ; 10498 return 0; 10499} 10500_ACEOF 10501rm -f conftest.$ac_objext conftest$ac_exeext 10502if { (ac_try="$ac_link" 10503case "(($ac_try" in 10504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10505 *) ac_try_echo=$ac_try;; 10506esac 10507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10508 (eval "$ac_link") 2>conftest.er1 10509 ac_status=$? 10510 grep -v '^ *+' conftest.er1 >conftest.err 10511 rm -f conftest.er1 10512 cat conftest.err >&5 10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10514 (exit $ac_status); } && { 10515 test -z "$ac_c_werror_flag" || 10516 test ! -s conftest.err 10517 } && test -s conftest$ac_exeext && 10518 $as_test_x conftest$ac_exeext; then 10519 tcl_cv_lib_x11_64=yes 10520else 10521 echo "$as_me: failed program was:" >&5 10522sed 's/^/| /' conftest.$ac_ext >&5 10523 10524 tcl_cv_lib_x11_64=no 10525fi 10526 10527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10528 conftest$ac_exeext conftest.$ac_ext 10529 for v in CFLAGS CPPFLAGS LDFLAGS; do 10530 eval $v'="$hold_'$v'"' 10531 done 10532fi 10533{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 10534echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 10535 10536fi 10537 10538 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 10539 10540 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 10541echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 10542if test "${tcl_cv_lib_tk_64+set}" = set; then 10543 echo $ECHO_N "(cached) $ECHO_C" >&6 10544else 10545 10546 for v in CFLAGS CPPFLAGS LDFLAGS; do 10547 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 10548 done 10549 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 10550 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 10551 cat >conftest.$ac_ext <<_ACEOF 10552/* confdefs.h. */ 10553_ACEOF 10554cat confdefs.h >>conftest.$ac_ext 10555cat >>conftest.$ac_ext <<_ACEOF 10556/* end confdefs.h. */ 10557#include <tk.h> 10558int 10559main () 10560{ 10561Tk_InitStubs(NULL, "", 0); 10562 ; 10563 return 0; 10564} 10565_ACEOF 10566rm -f conftest.$ac_objext conftest$ac_exeext 10567if { (ac_try="$ac_link" 10568case "(($ac_try" in 10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10570 *) ac_try_echo=$ac_try;; 10571esac 10572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10573 (eval "$ac_link") 2>conftest.er1 10574 ac_status=$? 10575 grep -v '^ *+' conftest.er1 >conftest.err 10576 rm -f conftest.er1 10577 cat conftest.err >&5 10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10579 (exit $ac_status); } && { 10580 test -z "$ac_c_werror_flag" || 10581 test ! -s conftest.err 10582 } && test -s conftest$ac_exeext && 10583 $as_test_x conftest$ac_exeext; then 10584 tcl_cv_lib_tk_64=yes 10585else 10586 echo "$as_me: failed program was:" >&5 10587sed 's/^/| /' conftest.$ac_ext >&5 10588 10589 tcl_cv_lib_tk_64=no 10590fi 10591 10592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10593 conftest$ac_exeext conftest.$ac_ext 10594 for v in CFLAGS CPPFLAGS LDFLAGS; do 10595 eval $v'="$hold_'$v'"' 10596 done 10597fi 10598{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 10599echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 10600 10601fi 10602 10603 # remove 64-bit arch flags from CFLAGS et al. if configuration 10604 # does not support 64-bit. 10605 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 10606 10607 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 10608echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 10609 for v in CFLAGS CPPFLAGS LDFLAGS; do 10610 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 10611 done 10612fi 10613 10614 10615fi 10616 10617 ;; 10618 OS/390-*) 10619 CFLAGS_OPTIMIZE="" # Optimizer is buggy 10620 10621cat >>confdefs.h <<\_ACEOF 10622#define _OE_SOCKETS 1 10623_ACEOF 10624 10625 ;; 10626 OSF1-V*) 10627 # Digital OSF/1 10628 SHLIB_CFLAGS="" 10629 if test "$SHARED_BUILD" = 1; then 10630 10631 SHLIB_LD='ld -shared -expect_unresolved "*"' 10632 10633else 10634 10635 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 10636 10637fi 10638 10639 SHLIB_SUFFIX=".so" 10640 if test $doRpath = yes; then 10641 10642 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10643 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 10644fi 10645 10646 if test "$GCC" = yes; then 10647 CFLAGS="$CFLAGS -mieee" 10648else 10649 10650 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 10651fi 10652 10653 # see pthread_intro(3) for pthread support on osf1, k.furukawa 10654 if test "${TCL_THREADS}" = 1; then 10655 10656 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 10657 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 10658 LIBS=`echo $LIBS | sed s/-lpthreads//` 10659 if test "$GCC" = yes; then 10660 10661 LIBS="$LIBS -lpthread -lmach -lexc" 10662 10663else 10664 10665 CFLAGS="$CFLAGS -pthread" 10666 LDFLAGS="$LDFLAGS -pthread" 10667 10668fi 10669 10670 10671fi 10672 10673 ;; 10674 QNX-6*) 10675 # QNX RTP 10676 # This may work for all QNX, but it was only reported for v6. 10677 SHLIB_CFLAGS="-fPIC" 10678 SHLIB_LD="ld -Bshareable -x" 10679 SHLIB_LD_LIBS="" 10680 SHLIB_SUFFIX=".so" 10681 CC_SEARCH_FLAGS="" 10682 LD_SEARCH_FLAGS="" 10683 ;; 10684 SCO_SV-3.2*) 10685 if test "$GCC" = yes; then 10686 10687 SHLIB_CFLAGS="-fPIC -melf" 10688 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 10689 10690else 10691 10692 SHLIB_CFLAGS="-Kpic -belf" 10693 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 10694 10695fi 10696 10697 SHLIB_LD="ld -G" 10698 SHLIB_LD_LIBS="" 10699 SHLIB_SUFFIX=".so" 10700 CC_SEARCH_FLAGS="" 10701 LD_SEARCH_FLAGS="" 10702 ;; 10703 SunOS-5.[0-6]) 10704 # Careful to not let 5.10+ fall into this case 10705 10706 # Note: If _REENTRANT isn't defined, then Solaris 10707 # won't define thread-safe library routines. 10708 10709 10710cat >>confdefs.h <<\_ACEOF 10711#define _REENTRANT 1 10712_ACEOF 10713 10714 10715cat >>confdefs.h <<\_ACEOF 10716#define _POSIX_PTHREAD_SEMANTICS 1 10717_ACEOF 10718 10719 10720 SHLIB_CFLAGS="-KPIC" 10721 SHLIB_SUFFIX=".so" 10722 if test "$GCC" = yes; then 10723 10724 SHLIB_LD='${CC} -shared' 10725 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 10726 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10727 10728else 10729 10730 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 10731 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 10732 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10733 10734fi 10735 10736 ;; 10737 SunOS-5*) 10738 # Note: If _REENTRANT isn't defined, then Solaris 10739 # won't define thread-safe library routines. 10740 10741 10742cat >>confdefs.h <<\_ACEOF 10743#define _REENTRANT 1 10744_ACEOF 10745 10746 10747cat >>confdefs.h <<\_ACEOF 10748#define _POSIX_PTHREAD_SEMANTICS 1 10749_ACEOF 10750 10751 10752 SHLIB_CFLAGS="-KPIC" 10753 10754 # Check to enable 64-bit flags for compiler/linker 10755 if test "$do64bit" = yes; then 10756 10757 arch=`isainfo` 10758 if test "$arch" = "sparcv9 sparc"; then 10759 10760 if test "$GCC" = yes; then 10761 10762 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 10763 10764 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 10765echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 10766 10767else 10768 10769 do64bit_ok=yes 10770 CFLAGS="$CFLAGS -m64 -mcpu=v9" 10771 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 10772 SHLIB_CFLAGS="-fPIC" 10773 10774fi 10775 10776 10777else 10778 10779 do64bit_ok=yes 10780 if test "$do64bitVIS" = yes; then 10781 10782 CFLAGS="$CFLAGS -xarch=v9a" 10783 LDFLAGS_ARCH="-xarch=v9a" 10784 10785else 10786 10787 CFLAGS="$CFLAGS -xarch=v9" 10788 LDFLAGS_ARCH="-xarch=v9" 10789 10790fi 10791 10792 # Solaris 64 uses this as well 10793 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 10794 10795fi 10796 10797 10798else 10799 if test "$arch" = "amd64 i386"; then 10800 10801 if test "$GCC" = yes; then 10802 10803 case $system in 10804 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 10805 do64bit_ok=yes 10806 CFLAGS="$CFLAGS -m64" 10807 LDFLAGS="$LDFLAGS -m64";; 10808 *) 10809 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 10810echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 10811 esac 10812 10813else 10814 10815 do64bit_ok=yes 10816 case $system in 10817 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 10818 CFLAGS="$CFLAGS -m64" 10819 LDFLAGS="$LDFLAGS -m64";; 10820 *) 10821 CFLAGS="$CFLAGS -xarch=amd64" 10822 LDFLAGS="$LDFLAGS -xarch=amd64";; 10823 esac 10824 10825fi 10826 10827 10828else 10829 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 10830echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 10831fi 10832 10833fi 10834 10835 10836fi 10837 10838 10839 SHLIB_SUFFIX=".so" 10840 if test "$GCC" = yes; then 10841 10842 SHLIB_LD='${CC} -shared' 10843 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 10844 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10845 if test "$do64bit_ok" = yes; then 10846 10847 if test "$arch" = "sparcv9 sparc"; then 10848 10849 # We need to specify -static-libgcc or we need to 10850 # add the path to the sparv9 libgcc. 10851 # JH: static-libgcc is necessary for core Tcl, but may 10852 # not be necessary for extensions. 10853 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 10854 # for finding sparcv9 libgcc, get the regular libgcc 10855 # path, remove so name and append 'sparcv9' 10856 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 10857 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 10858 10859else 10860 if test "$arch" = "amd64 i386"; then 10861 10862 # JH: static-libgcc is necessary for core Tcl, but may 10863 # not be necessary for extensions. 10864 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 10865 10866fi 10867 10868fi 10869 10870 10871fi 10872 10873 10874else 10875 10876 case $system in 10877 SunOS-5.[1-9][0-9]*) 10878 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 10879 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 10880 *) 10881 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 10882 esac 10883 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 10884 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 10885 10886fi 10887 10888 ;; 10889 esac 10890 10891 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 10892 10893 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 10894echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 10895 10896fi 10897 10898 10899 10900 10901 # Add in the arch flags late to ensure it wasn't removed. 10902 # Not necessary in TEA, but this is aligned with core 10903 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 10904 10905 # If we're running gcc, then change the C flags for compiling shared 10906 # libraries to the right flags for gcc, instead of those for the 10907 # standard manufacturer compiler. 10908 10909 if test "$GCC" = yes; then 10910 10911 case $system in 10912 AIX-*) ;; 10913 BSD/OS*) ;; 10914 CYGWIN_*) ;; 10915 IRIX*) ;; 10916 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 10917 Darwin-*) ;; 10918 SCO_SV-3.2*) ;; 10919 windows) ;; 10920 *) SHLIB_CFLAGS="-fPIC" ;; 10921 esac 10922fi 10923 10924 10925 if test "$tcl_cv_cc_visibility_hidden" != yes; then 10926 10927 10928cat >>confdefs.h <<\_ACEOF 10929#define MODULE_SCOPE extern 10930_ACEOF 10931 10932 10933cat >>confdefs.h <<\_ACEOF 10934#define NO_VIZ 10935_ACEOF 10936 10937 10938fi 10939 10940 10941 if test "$SHARED_LIB_SUFFIX" = ""; then 10942 10943 # TEA specific: use PACKAGE_VERSION instead of VERSION 10944 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 10945fi 10946 10947 if test "$UNSHARED_LIB_SUFFIX" = ""; then 10948 10949 # TEA specific: use PACKAGE_VERSION instead of VERSION 10950 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 10951fi 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 # These must be called after we do the basic CFLAGS checks and 10967 # verify any possible 64-bit or similar switches are necessary 10968 10969 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 10970echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 10971 tcl_flags="" 10972 10973 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 10974 echo $ECHO_N "(cached) $ECHO_C" >&6 10975else 10976 cat >conftest.$ac_ext <<_ACEOF 10977/* confdefs.h. */ 10978_ACEOF 10979cat confdefs.h >>conftest.$ac_ext 10980cat >>conftest.$ac_ext <<_ACEOF 10981/* end confdefs.h. */ 10982#include <stdlib.h> 10983int 10984main () 10985{ 10986char *p = (char *)strtoll; char *q = (char *)strtoull; 10987 ; 10988 return 0; 10989} 10990_ACEOF 10991rm -f conftest.$ac_objext 10992if { (ac_try="$ac_compile" 10993case "(($ac_try" in 10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10995 *) ac_try_echo=$ac_try;; 10996esac 10997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10998 (eval "$ac_compile") 2>conftest.er1 10999 ac_status=$? 11000 grep -v '^ *+' conftest.er1 >conftest.err 11001 rm -f conftest.er1 11002 cat conftest.err >&5 11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11004 (exit $ac_status); } && { 11005 test -z "$ac_c_werror_flag" || 11006 test ! -s conftest.err 11007 } && test -s conftest.$ac_objext; then 11008 tcl_cv_flag__isoc99_source=no 11009else 11010 echo "$as_me: failed program was:" >&5 11011sed 's/^/| /' conftest.$ac_ext >&5 11012 11013 cat >conftest.$ac_ext <<_ACEOF 11014/* confdefs.h. */ 11015_ACEOF 11016cat confdefs.h >>conftest.$ac_ext 11017cat >>conftest.$ac_ext <<_ACEOF 11018/* end confdefs.h. */ 11019#define _ISOC99_SOURCE 1 11020#include <stdlib.h> 11021int 11022main () 11023{ 11024char *p = (char *)strtoll; char *q = (char *)strtoull; 11025 ; 11026 return 0; 11027} 11028_ACEOF 11029rm -f conftest.$ac_objext 11030if { (ac_try="$ac_compile" 11031case "(($ac_try" in 11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11033 *) ac_try_echo=$ac_try;; 11034esac 11035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11036 (eval "$ac_compile") 2>conftest.er1 11037 ac_status=$? 11038 grep -v '^ *+' conftest.er1 >conftest.err 11039 rm -f conftest.er1 11040 cat conftest.err >&5 11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11042 (exit $ac_status); } && { 11043 test -z "$ac_c_werror_flag" || 11044 test ! -s conftest.err 11045 } && test -s conftest.$ac_objext; then 11046 tcl_cv_flag__isoc99_source=yes 11047else 11048 echo "$as_me: failed program was:" >&5 11049sed 's/^/| /' conftest.$ac_ext >&5 11050 11051 tcl_cv_flag__isoc99_source=no 11052fi 11053 11054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11055fi 11056 11057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11058fi 11059 11060 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 11061 11062cat >>confdefs.h <<\_ACEOF 11063#define _ISOC99_SOURCE 1 11064_ACEOF 11065 11066 tcl_flags="$tcl_flags _ISOC99_SOURCE" 11067 fi 11068 11069 11070 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 11071 echo $ECHO_N "(cached) $ECHO_C" >&6 11072else 11073 cat >conftest.$ac_ext <<_ACEOF 11074/* confdefs.h. */ 11075_ACEOF 11076cat confdefs.h >>conftest.$ac_ext 11077cat >>conftest.$ac_ext <<_ACEOF 11078/* end confdefs.h. */ 11079#include <sys/stat.h> 11080int 11081main () 11082{ 11083struct stat64 buf; int i = stat64("/", &buf); 11084 ; 11085 return 0; 11086} 11087_ACEOF 11088rm -f conftest.$ac_objext 11089if { (ac_try="$ac_compile" 11090case "(($ac_try" in 11091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11092 *) ac_try_echo=$ac_try;; 11093esac 11094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11095 (eval "$ac_compile") 2>conftest.er1 11096 ac_status=$? 11097 grep -v '^ *+' conftest.er1 >conftest.err 11098 rm -f conftest.er1 11099 cat conftest.err >&5 11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11101 (exit $ac_status); } && { 11102 test -z "$ac_c_werror_flag" || 11103 test ! -s conftest.err 11104 } && test -s conftest.$ac_objext; then 11105 tcl_cv_flag__largefile64_source=no 11106else 11107 echo "$as_me: failed program was:" >&5 11108sed 's/^/| /' conftest.$ac_ext >&5 11109 11110 cat >conftest.$ac_ext <<_ACEOF 11111/* confdefs.h. */ 11112_ACEOF 11113cat confdefs.h >>conftest.$ac_ext 11114cat >>conftest.$ac_ext <<_ACEOF 11115/* end confdefs.h. */ 11116#define _LARGEFILE64_SOURCE 1 11117#include <sys/stat.h> 11118int 11119main () 11120{ 11121struct stat64 buf; int i = stat64("/", &buf); 11122 ; 11123 return 0; 11124} 11125_ACEOF 11126rm -f conftest.$ac_objext 11127if { (ac_try="$ac_compile" 11128case "(($ac_try" in 11129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11130 *) ac_try_echo=$ac_try;; 11131esac 11132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11133 (eval "$ac_compile") 2>conftest.er1 11134 ac_status=$? 11135 grep -v '^ *+' conftest.er1 >conftest.err 11136 rm -f conftest.er1 11137 cat conftest.err >&5 11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11139 (exit $ac_status); } && { 11140 test -z "$ac_c_werror_flag" || 11141 test ! -s conftest.err 11142 } && test -s conftest.$ac_objext; then 11143 tcl_cv_flag__largefile64_source=yes 11144else 11145 echo "$as_me: failed program was:" >&5 11146sed 's/^/| /' conftest.$ac_ext >&5 11147 11148 tcl_cv_flag__largefile64_source=no 11149fi 11150 11151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11152fi 11153 11154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11155fi 11156 11157 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 11158 11159cat >>confdefs.h <<\_ACEOF 11160#define _LARGEFILE64_SOURCE 1 11161_ACEOF 11162 11163 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 11164 fi 11165 11166 11167 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 11168 echo $ECHO_N "(cached) $ECHO_C" >&6 11169else 11170 cat >conftest.$ac_ext <<_ACEOF 11171/* confdefs.h. */ 11172_ACEOF 11173cat confdefs.h >>conftest.$ac_ext 11174cat >>conftest.$ac_ext <<_ACEOF 11175/* end confdefs.h. */ 11176#include <sys/stat.h> 11177int 11178main () 11179{ 11180char *p = (char *)open64; 11181 ; 11182 return 0; 11183} 11184_ACEOF 11185rm -f conftest.$ac_objext 11186if { (ac_try="$ac_compile" 11187case "(($ac_try" in 11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11189 *) ac_try_echo=$ac_try;; 11190esac 11191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11192 (eval "$ac_compile") 2>conftest.er1 11193 ac_status=$? 11194 grep -v '^ *+' conftest.er1 >conftest.err 11195 rm -f conftest.er1 11196 cat conftest.err >&5 11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11198 (exit $ac_status); } && { 11199 test -z "$ac_c_werror_flag" || 11200 test ! -s conftest.err 11201 } && test -s conftest.$ac_objext; then 11202 tcl_cv_flag__largefile_source64=no 11203else 11204 echo "$as_me: failed program was:" >&5 11205sed 's/^/| /' conftest.$ac_ext >&5 11206 11207 cat >conftest.$ac_ext <<_ACEOF 11208/* confdefs.h. */ 11209_ACEOF 11210cat confdefs.h >>conftest.$ac_ext 11211cat >>conftest.$ac_ext <<_ACEOF 11212/* end confdefs.h. */ 11213#define _LARGEFILE_SOURCE64 1 11214#include <sys/stat.h> 11215int 11216main () 11217{ 11218char *p = (char *)open64; 11219 ; 11220 return 0; 11221} 11222_ACEOF 11223rm -f conftest.$ac_objext 11224if { (ac_try="$ac_compile" 11225case "(($ac_try" in 11226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11227 *) ac_try_echo=$ac_try;; 11228esac 11229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11230 (eval "$ac_compile") 2>conftest.er1 11231 ac_status=$? 11232 grep -v '^ *+' conftest.er1 >conftest.err 11233 rm -f conftest.er1 11234 cat conftest.err >&5 11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11236 (exit $ac_status); } && { 11237 test -z "$ac_c_werror_flag" || 11238 test ! -s conftest.err 11239 } && test -s conftest.$ac_objext; then 11240 tcl_cv_flag__largefile_source64=yes 11241else 11242 echo "$as_me: failed program was:" >&5 11243sed 's/^/| /' conftest.$ac_ext >&5 11244 11245 tcl_cv_flag__largefile_source64=no 11246fi 11247 11248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11249fi 11250 11251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11252fi 11253 11254 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 11255 11256cat >>confdefs.h <<\_ACEOF 11257#define _LARGEFILE_SOURCE64 1 11258_ACEOF 11259 11260 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 11261 fi 11262 11263 if test "x${tcl_flags}" = "x" ; then 11264 { echo "$as_me:$LINENO: result: none" >&5 11265echo "${ECHO_T}none" >&6; } 11266 else 11267 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 11268echo "${ECHO_T}${tcl_flags}" >&6; } 11269 fi 11270 11271 11272 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 11273echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 11274 if test "${tcl_cv_type_64bit+set}" = set; then 11275 echo $ECHO_N "(cached) $ECHO_C" >&6 11276else 11277 11278 tcl_cv_type_64bit=none 11279 # See if the compiler knows natively about __int64 11280 cat >conftest.$ac_ext <<_ACEOF 11281/* confdefs.h. */ 11282_ACEOF 11283cat confdefs.h >>conftest.$ac_ext 11284cat >>conftest.$ac_ext <<_ACEOF 11285/* end confdefs.h. */ 11286 11287int 11288main () 11289{ 11290__int64 value = (__int64) 0; 11291 ; 11292 return 0; 11293} 11294_ACEOF 11295rm -f conftest.$ac_objext 11296if { (ac_try="$ac_compile" 11297case "(($ac_try" in 11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11299 *) ac_try_echo=$ac_try;; 11300esac 11301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11302 (eval "$ac_compile") 2>conftest.er1 11303 ac_status=$? 11304 grep -v '^ *+' conftest.er1 >conftest.err 11305 rm -f conftest.er1 11306 cat conftest.err >&5 11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11308 (exit $ac_status); } && { 11309 test -z "$ac_c_werror_flag" || 11310 test ! -s conftest.err 11311 } && test -s conftest.$ac_objext; then 11312 tcl_type_64bit=__int64 11313else 11314 echo "$as_me: failed program was:" >&5 11315sed 's/^/| /' conftest.$ac_ext >&5 11316 11317 tcl_type_64bit="long long" 11318fi 11319 11320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11321 # See if we should use long anyway Note that we substitute in the 11322 # type that is our current guess for a 64-bit type inside this check 11323 # program, so it should be modified only carefully... 11324 cat >conftest.$ac_ext <<_ACEOF 11325/* confdefs.h. */ 11326_ACEOF 11327cat confdefs.h >>conftest.$ac_ext 11328cat >>conftest.$ac_ext <<_ACEOF 11329/* end confdefs.h. */ 11330 11331int 11332main () 11333{ 11334switch (0) { 11335 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 11336 } 11337 ; 11338 return 0; 11339} 11340_ACEOF 11341rm -f conftest.$ac_objext 11342if { (ac_try="$ac_compile" 11343case "(($ac_try" in 11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11345 *) ac_try_echo=$ac_try;; 11346esac 11347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11348 (eval "$ac_compile") 2>conftest.er1 11349 ac_status=$? 11350 grep -v '^ *+' conftest.er1 >conftest.err 11351 rm -f conftest.er1 11352 cat conftest.err >&5 11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11354 (exit $ac_status); } && { 11355 test -z "$ac_c_werror_flag" || 11356 test ! -s conftest.err 11357 } && test -s conftest.$ac_objext; then 11358 tcl_cv_type_64bit=${tcl_type_64bit} 11359else 11360 echo "$as_me: failed program was:" >&5 11361sed 's/^/| /' conftest.$ac_ext >&5 11362 11363 11364fi 11365 11366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11367fi 11368 11369 if test "${tcl_cv_type_64bit}" = none ; then 11370 11371cat >>confdefs.h <<\_ACEOF 11372#define TCL_WIDE_INT_IS_LONG 1 11373_ACEOF 11374 11375 { echo "$as_me:$LINENO: result: using long" >&5 11376echo "${ECHO_T}using long" >&6; } 11377 elif test "${tcl_cv_type_64bit}" = "__int64" \ 11378 -a "${TEA_PLATFORM}" = "windows" ; then 11379 # TEA specific: We actually want to use the default tcl.h checks in 11380 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 11381 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 11382echo "${ECHO_T}using Tcl header defaults" >&6; } 11383 else 11384 11385cat >>confdefs.h <<_ACEOF 11386#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 11387_ACEOF 11388 11389 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 11390echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 11391 11392 # Now check for auxiliary declarations 11393 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 11394echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 11395if test "${tcl_cv_struct_dirent64+set}" = set; then 11396 echo $ECHO_N "(cached) $ECHO_C" >&6 11397else 11398 11399 cat >conftest.$ac_ext <<_ACEOF 11400/* confdefs.h. */ 11401_ACEOF 11402cat confdefs.h >>conftest.$ac_ext 11403cat >>conftest.$ac_ext <<_ACEOF 11404/* end confdefs.h. */ 11405#include <sys/types.h> 11406#include <sys/dirent.h> 11407int 11408main () 11409{ 11410struct dirent64 p; 11411 ; 11412 return 0; 11413} 11414_ACEOF 11415rm -f conftest.$ac_objext 11416if { (ac_try="$ac_compile" 11417case "(($ac_try" in 11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11419 *) ac_try_echo=$ac_try;; 11420esac 11421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11422 (eval "$ac_compile") 2>conftest.er1 11423 ac_status=$? 11424 grep -v '^ *+' conftest.er1 >conftest.err 11425 rm -f conftest.er1 11426 cat conftest.err >&5 11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11428 (exit $ac_status); } && { 11429 test -z "$ac_c_werror_flag" || 11430 test ! -s conftest.err 11431 } && test -s conftest.$ac_objext; then 11432 tcl_cv_struct_dirent64=yes 11433else 11434 echo "$as_me: failed program was:" >&5 11435sed 's/^/| /' conftest.$ac_ext >&5 11436 11437 tcl_cv_struct_dirent64=no 11438fi 11439 11440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11441fi 11442{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 11443echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 11444 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 11445 11446cat >>confdefs.h <<\_ACEOF 11447#define HAVE_STRUCT_DIRENT64 1 11448_ACEOF 11449 11450 fi 11451 11452 { echo "$as_me:$LINENO: checking for struct stat64" >&5 11453echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 11454if test "${tcl_cv_struct_stat64+set}" = set; then 11455 echo $ECHO_N "(cached) $ECHO_C" >&6 11456else 11457 11458 cat >conftest.$ac_ext <<_ACEOF 11459/* confdefs.h. */ 11460_ACEOF 11461cat confdefs.h >>conftest.$ac_ext 11462cat >>conftest.$ac_ext <<_ACEOF 11463/* end confdefs.h. */ 11464#include <sys/stat.h> 11465int 11466main () 11467{ 11468struct stat64 p; 11469 11470 ; 11471 return 0; 11472} 11473_ACEOF 11474rm -f conftest.$ac_objext 11475if { (ac_try="$ac_compile" 11476case "(($ac_try" in 11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11478 *) ac_try_echo=$ac_try;; 11479esac 11480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11481 (eval "$ac_compile") 2>conftest.er1 11482 ac_status=$? 11483 grep -v '^ *+' conftest.er1 >conftest.err 11484 rm -f conftest.er1 11485 cat conftest.err >&5 11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11487 (exit $ac_status); } && { 11488 test -z "$ac_c_werror_flag" || 11489 test ! -s conftest.err 11490 } && test -s conftest.$ac_objext; then 11491 tcl_cv_struct_stat64=yes 11492else 11493 echo "$as_me: failed program was:" >&5 11494sed 's/^/| /' conftest.$ac_ext >&5 11495 11496 tcl_cv_struct_stat64=no 11497fi 11498 11499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11500fi 11501{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 11502echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 11503 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 11504 11505cat >>confdefs.h <<\_ACEOF 11506#define HAVE_STRUCT_STAT64 1 11507_ACEOF 11508 11509 fi 11510 11511 11512 11513for ac_func in open64 lseek64 11514do 11515as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11516{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11517echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11518if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11519 echo $ECHO_N "(cached) $ECHO_C" >&6 11520else 11521 cat >conftest.$ac_ext <<_ACEOF 11522/* confdefs.h. */ 11523_ACEOF 11524cat confdefs.h >>conftest.$ac_ext 11525cat >>conftest.$ac_ext <<_ACEOF 11526/* end confdefs.h. */ 11527/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11528 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11529#define $ac_func innocuous_$ac_func 11530 11531/* System header to define __stub macros and hopefully few prototypes, 11532 which can conflict with char $ac_func (); below. 11533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11534 <limits.h> exists even on freestanding compilers. */ 11535 11536#ifdef __STDC__ 11537# include <limits.h> 11538#else 11539# include <assert.h> 11540#endif 11541 11542#undef $ac_func 11543 11544/* Override any GCC internal prototype to avoid an error. 11545 Use char because int might match the return type of a GCC 11546 builtin and then its argument prototype would still apply. */ 11547#ifdef __cplusplus 11548extern "C" 11549#endif 11550char $ac_func (); 11551/* The GNU C library defines this for functions which it implements 11552 to always fail with ENOSYS. Some functions are actually named 11553 something starting with __ and the normal name is an alias. */ 11554#if defined __stub_$ac_func || defined __stub___$ac_func 11555choke me 11556#endif 11557 11558int 11559main () 11560{ 11561return $ac_func (); 11562 ; 11563 return 0; 11564} 11565_ACEOF 11566rm -f conftest.$ac_objext conftest$ac_exeext 11567if { (ac_try="$ac_link" 11568case "(($ac_try" in 11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11570 *) ac_try_echo=$ac_try;; 11571esac 11572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11573 (eval "$ac_link") 2>conftest.er1 11574 ac_status=$? 11575 grep -v '^ *+' conftest.er1 >conftest.err 11576 rm -f conftest.er1 11577 cat conftest.err >&5 11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11579 (exit $ac_status); } && { 11580 test -z "$ac_c_werror_flag" || 11581 test ! -s conftest.err 11582 } && test -s conftest$ac_exeext && 11583 $as_test_x conftest$ac_exeext; then 11584 eval "$as_ac_var=yes" 11585else 11586 echo "$as_me: failed program was:" >&5 11587sed 's/^/| /' conftest.$ac_ext >&5 11588 11589 eval "$as_ac_var=no" 11590fi 11591 11592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11593 conftest$ac_exeext conftest.$ac_ext 11594fi 11595ac_res=`eval echo '${'$as_ac_var'}'` 11596 { echo "$as_me:$LINENO: result: $ac_res" >&5 11597echo "${ECHO_T}$ac_res" >&6; } 11598if test `eval echo '${'$as_ac_var'}'` = yes; then 11599 cat >>confdefs.h <<_ACEOF 11600#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11601_ACEOF 11602 11603fi 11604done 11605 11606 { echo "$as_me:$LINENO: checking for off64_t" >&5 11607echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 11608 if test "${tcl_cv_type_off64_t+set}" = set; then 11609 echo $ECHO_N "(cached) $ECHO_C" >&6 11610else 11611 11612 cat >conftest.$ac_ext <<_ACEOF 11613/* confdefs.h. */ 11614_ACEOF 11615cat confdefs.h >>conftest.$ac_ext 11616cat >>conftest.$ac_ext <<_ACEOF 11617/* end confdefs.h. */ 11618#include <sys/types.h> 11619int 11620main () 11621{ 11622off64_t offset; 11623 11624 ; 11625 return 0; 11626} 11627_ACEOF 11628rm -f conftest.$ac_objext 11629if { (ac_try="$ac_compile" 11630case "(($ac_try" in 11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11632 *) ac_try_echo=$ac_try;; 11633esac 11634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11635 (eval "$ac_compile") 2>conftest.er1 11636 ac_status=$? 11637 grep -v '^ *+' conftest.er1 >conftest.err 11638 rm -f conftest.er1 11639 cat conftest.err >&5 11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11641 (exit $ac_status); } && { 11642 test -z "$ac_c_werror_flag" || 11643 test ! -s conftest.err 11644 } && test -s conftest.$ac_objext; then 11645 tcl_cv_type_off64_t=yes 11646else 11647 echo "$as_me: failed program was:" >&5 11648sed 's/^/| /' conftest.$ac_ext >&5 11649 11650 tcl_cv_type_off64_t=no 11651fi 11652 11653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11654fi 11655 11656 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 11657 test "x${ac_cv_func_lseek64}" = "xyes" && \ 11658 test "x${ac_cv_func_open64}" = "xyes" ; then 11659 11660cat >>confdefs.h <<\_ACEOF 11661#define HAVE_TYPE_OFF64_T 1 11662_ACEOF 11663 11664 { echo "$as_me:$LINENO: result: yes" >&5 11665echo "${ECHO_T}yes" >&6; } 11666 else 11667 { echo "$as_me:$LINENO: result: no" >&5 11668echo "${ECHO_T}no" >&6; } 11669 fi 11670 fi 11671 11672 11673 11674#-------------------------------------------------------------------- 11675# Set the default compiler switches based on the --enable-symbols option. 11676#-------------------------------------------------------------------- 11677 11678 11679 11680 { echo "$as_me:$LINENO: checking for build with symbols" >&5 11681echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 11682 # Check whether --enable-symbols was given. 11683if test "${enable_symbols+set}" = set; then 11684 enableval=$enable_symbols; tcl_ok=$enableval 11685else 11686 tcl_ok=no 11687fi 11688 11689 DBGX="" 11690 if test "$tcl_ok" = "no"; then 11691 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 11692 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 11693 { echo "$as_me:$LINENO: result: no" >&5 11694echo "${ECHO_T}no" >&6; } 11695 else 11696 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 11697 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 11698 if test "$tcl_ok" = "yes"; then 11699 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 11700echo "${ECHO_T}yes (standard debugging)" >&6; } 11701 fi 11702 fi 11703 # TEA specific: 11704 if test "${TEA_PLATFORM}" != "windows" ; then 11705 LDFLAGS_DEFAULT="${LDFLAGS}" 11706 fi 11707 11708 11709 11710 11711 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 11712 11713cat >>confdefs.h <<\_ACEOF 11714#define TCL_MEM_DEBUG 1 11715_ACEOF 11716 11717 fi 11718 11719 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 11720 if test "$tcl_ok" = "all"; then 11721 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 11722echo "${ECHO_T}enabled symbols mem debugging" >&6; } 11723 else 11724 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 11725echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 11726 fi 11727 fi 11728 11729 11730#-------------------------------------------------------------------- 11731# For Unix/Tk builds, make sure that the X libraries/headers are found. 11732# This must be called after TEA_CONFIG_CFLAGS as it adjusts LIBS. 11733#-------------------------------------------------------------------- 11734 11735 11736 if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then 11737 11738 { echo "$as_me:$LINENO: checking for X" >&5 11739echo $ECHO_N "checking for X... $ECHO_C" >&6; } 11740 11741 11742# Check whether --with-x was given. 11743if test "${with_x+set}" = set; then 11744 withval=$with_x; 11745fi 11746 11747# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 11748if test "x$with_x" = xno; then 11749 # The user explicitly disabled X. 11750 have_x=disabled 11751else 11752 case $x_includes,$x_libraries in #( 11753 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 11754echo "$as_me: error: Cannot use X directory names containing '" >&2;} 11755 { (exit 1); exit 1; }; };; #( 11756 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 11757 echo $ECHO_N "(cached) $ECHO_C" >&6 11758else 11759 # One or both of the vars are not set, and there is no cached value. 11760ac_x_includes=no ac_x_libraries=no 11761rm -f -r conftest.dir 11762if mkdir conftest.dir; then 11763 cd conftest.dir 11764 cat >Imakefile <<'_ACEOF' 11765incroot: 11766 @echo incroot='${INCROOT}' 11767usrlibdir: 11768 @echo usrlibdir='${USRLIBDIR}' 11769libdir: 11770 @echo libdir='${LIBDIR}' 11771_ACEOF 11772 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 11773 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 11774 for ac_var in incroot usrlibdir libdir; do 11775 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 11776 done 11777 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 11778 for ac_extension in a so sl dylib la dll; do 11779 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 11780 test -f "$ac_im_libdir/libX11.$ac_extension"; then 11781 ac_im_usrlibdir=$ac_im_libdir; break 11782 fi 11783 done 11784 # Screen out bogus values from the imake configuration. They are 11785 # bogus both because they are the default anyway, and because 11786 # using them would break gcc on systems where it needs fixed includes. 11787 case $ac_im_incroot in 11788 /usr/include) ac_x_includes= ;; 11789 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 11790 esac 11791 case $ac_im_usrlibdir in 11792 /usr/lib | /lib) ;; 11793 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 11794 esac 11795 fi 11796 cd .. 11797 rm -f -r conftest.dir 11798fi 11799 11800# Standard set of common directories for X headers. 11801# Check X11 before X11Rn because it is often a symlink to the current release. 11802ac_x_header_dirs=' 11803/usr/X11/include 11804/usr/X11R6/include 11805/usr/X11R5/include 11806/usr/X11R4/include 11807 11808/usr/include/X11 11809/usr/include/X11R6 11810/usr/include/X11R5 11811/usr/include/X11R4 11812 11813/usr/local/X11/include 11814/usr/local/X11R6/include 11815/usr/local/X11R5/include 11816/usr/local/X11R4/include 11817 11818/usr/local/include/X11 11819/usr/local/include/X11R6 11820/usr/local/include/X11R5 11821/usr/local/include/X11R4 11822 11823/usr/X386/include 11824/usr/x386/include 11825/usr/XFree86/include/X11 11826 11827/usr/include 11828/usr/local/include 11829/usr/unsupported/include 11830/usr/athena/include 11831/usr/local/x11r5/include 11832/usr/lpp/Xamples/include 11833 11834/usr/openwin/include 11835/usr/openwin/share/include' 11836 11837if test "$ac_x_includes" = no; then 11838 # Guess where to find include files, by looking for Xlib.h. 11839 # First, try using that file with no special directory specified. 11840 cat >conftest.$ac_ext <<_ACEOF 11841/* confdefs.h. */ 11842_ACEOF 11843cat confdefs.h >>conftest.$ac_ext 11844cat >>conftest.$ac_ext <<_ACEOF 11845/* end confdefs.h. */ 11846#include <X11/Xlib.h> 11847_ACEOF 11848if { (ac_try="$ac_cpp conftest.$ac_ext" 11849case "(($ac_try" in 11850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11851 *) ac_try_echo=$ac_try;; 11852esac 11853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11855 ac_status=$? 11856 grep -v '^ *+' conftest.er1 >conftest.err 11857 rm -f conftest.er1 11858 cat conftest.err >&5 11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11860 (exit $ac_status); } >/dev/null && { 11861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11862 test ! -s conftest.err 11863 }; then 11864 # We can compile using X headers with no special include directory. 11865ac_x_includes= 11866else 11867 echo "$as_me: failed program was:" >&5 11868sed 's/^/| /' conftest.$ac_ext >&5 11869 11870 for ac_dir in $ac_x_header_dirs; do 11871 if test -r "$ac_dir/X11/Xlib.h"; then 11872 ac_x_includes=$ac_dir 11873 break 11874 fi 11875done 11876fi 11877 11878rm -f conftest.err conftest.$ac_ext 11879fi # $ac_x_includes = no 11880 11881if test "$ac_x_libraries" = no; then 11882 # Check for the libraries. 11883 # See if we find them without any special options. 11884 # Don't add to $LIBS permanently. 11885 ac_save_LIBS=$LIBS 11886 LIBS="-lX11 $LIBS" 11887 cat >conftest.$ac_ext <<_ACEOF 11888/* confdefs.h. */ 11889_ACEOF 11890cat confdefs.h >>conftest.$ac_ext 11891cat >>conftest.$ac_ext <<_ACEOF 11892/* end confdefs.h. */ 11893#include <X11/Xlib.h> 11894int 11895main () 11896{ 11897XrmInitialize () 11898 ; 11899 return 0; 11900} 11901_ACEOF 11902rm -f conftest.$ac_objext conftest$ac_exeext 11903if { (ac_try="$ac_link" 11904case "(($ac_try" in 11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11906 *) ac_try_echo=$ac_try;; 11907esac 11908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11909 (eval "$ac_link") 2>conftest.er1 11910 ac_status=$? 11911 grep -v '^ *+' conftest.er1 >conftest.err 11912 rm -f conftest.er1 11913 cat conftest.err >&5 11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11915 (exit $ac_status); } && { 11916 test -z "$ac_c_werror_flag" || 11917 test ! -s conftest.err 11918 } && test -s conftest$ac_exeext && 11919 $as_test_x conftest$ac_exeext; then 11920 LIBS=$ac_save_LIBS 11921# We can link X programs with no special library path. 11922ac_x_libraries= 11923else 11924 echo "$as_me: failed program was:" >&5 11925sed 's/^/| /' conftest.$ac_ext >&5 11926 11927 LIBS=$ac_save_LIBS 11928for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 11929do 11930 # Don't even attempt the hair of trying to link an X program! 11931 for ac_extension in a so sl dylib la dll; do 11932 if test -r "$ac_dir/libX11.$ac_extension"; then 11933 ac_x_libraries=$ac_dir 11934 break 2 11935 fi 11936 done 11937done 11938fi 11939 11940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11941 conftest$ac_exeext conftest.$ac_ext 11942fi # $ac_x_libraries = no 11943 11944case $ac_x_includes,$ac_x_libraries in #( 11945 no,* | *,no | *\'*) 11946 # Didn't find X, or a directory has "'" in its name. 11947 ac_cv_have_x="have_x=no";; #( 11948 *) 11949 # Record where we found X for the cache. 11950 ac_cv_have_x="have_x=yes\ 11951 ac_x_includes='$ac_x_includes'\ 11952 ac_x_libraries='$ac_x_libraries'" 11953esac 11954fi 11955;; #( 11956 *) have_x=yes;; 11957 esac 11958 eval "$ac_cv_have_x" 11959fi # $with_x != no 11960 11961if test "$have_x" != yes; then 11962 { echo "$as_me:$LINENO: result: $have_x" >&5 11963echo "${ECHO_T}$have_x" >&6; } 11964 no_x=yes 11965else 11966 # If each of the values was on the command line, it overrides each guess. 11967 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 11968 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 11969 # Update the cache value to reflect the command line values. 11970 ac_cv_have_x="have_x=yes\ 11971 ac_x_includes='$x_includes'\ 11972 ac_x_libraries='$x_libraries'" 11973 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 11974echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 11975fi 11976 11977 not_really_there="" 11978 if test "$no_x" = ""; then 11979 if test "$x_includes" = ""; then 11980 cat >conftest.$ac_ext <<_ACEOF 11981/* confdefs.h. */ 11982_ACEOF 11983cat confdefs.h >>conftest.$ac_ext 11984cat >>conftest.$ac_ext <<_ACEOF 11985/* end confdefs.h. */ 11986#include <X11/XIntrinsic.h> 11987_ACEOF 11988if { (ac_try="$ac_cpp conftest.$ac_ext" 11989case "(($ac_try" in 11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11991 *) ac_try_echo=$ac_try;; 11992esac 11993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11995 ac_status=$? 11996 grep -v '^ *+' conftest.er1 >conftest.err 11997 rm -f conftest.er1 11998 cat conftest.err >&5 11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12000 (exit $ac_status); } >/dev/null && { 12001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12002 test ! -s conftest.err 12003 }; then 12004 : 12005else 12006 echo "$as_me: failed program was:" >&5 12007sed 's/^/| /' conftest.$ac_ext >&5 12008 12009 not_really_there="yes" 12010fi 12011 12012rm -f conftest.err conftest.$ac_ext 12013 else 12014 if test ! -r $x_includes/X11/Intrinsic.h; then 12015 not_really_there="yes" 12016 fi 12017 fi 12018 fi 12019 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then 12020 { echo "$as_me:$LINENO: checking for X11 header files" >&5 12021echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 12022 found_xincludes="no" 12023 cat >conftest.$ac_ext <<_ACEOF 12024/* confdefs.h. */ 12025_ACEOF 12026cat confdefs.h >>conftest.$ac_ext 12027cat >>conftest.$ac_ext <<_ACEOF 12028/* end confdefs.h. */ 12029#include <X11/Intrinsic.h> 12030_ACEOF 12031if { (ac_try="$ac_cpp conftest.$ac_ext" 12032case "(($ac_try" in 12033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12034 *) ac_try_echo=$ac_try;; 12035esac 12036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12038 ac_status=$? 12039 grep -v '^ *+' conftest.er1 >conftest.err 12040 rm -f conftest.er1 12041 cat conftest.err >&5 12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12043 (exit $ac_status); } >/dev/null && { 12044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12045 test ! -s conftest.err 12046 }; then 12047 found_xincludes="yes" 12048else 12049 echo "$as_me: failed program was:" >&5 12050sed 's/^/| /' conftest.$ac_ext >&5 12051 12052 found_xincludes="no" 12053fi 12054 12055rm -f conftest.err conftest.$ac_ext 12056 if test "$found_xincludes" = "no"; then 12057 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" 12058 for i in $dirs ; do 12059 if test -r $i/X11/Intrinsic.h; then 12060 { echo "$as_me:$LINENO: result: $i" >&5 12061echo "${ECHO_T}$i" >&6; } 12062 XINCLUDES=" -I$i" 12063 found_xincludes="yes" 12064 break 12065 fi 12066 done 12067 fi 12068 else 12069 if test "$x_includes" != ""; then 12070 XINCLUDES="-I$x_includes" 12071 found_xincludes="yes" 12072 fi 12073 fi 12074 if test "$found_xincludes" = "no"; then 12075 { echo "$as_me:$LINENO: result: couldn't find any!" >&5 12076echo "${ECHO_T}couldn't find any!" >&6; } 12077 fi 12078 12079 if test "$no_x" = yes; then 12080 { echo "$as_me:$LINENO: checking for X11 libraries" >&5 12081echo $ECHO_N "checking for X11 libraries... $ECHO_C" >&6; } 12082 XLIBSW=nope 12083 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" 12084 for i in $dirs ; do 12085 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then 12086 { echo "$as_me:$LINENO: result: $i" >&5 12087echo "${ECHO_T}$i" >&6; } 12088 XLIBSW="-L$i -lX11" 12089 x_libraries="$i" 12090 break 12091 fi 12092 done 12093 else 12094 if test "$x_libraries" = ""; then 12095 XLIBSW=-lX11 12096 else 12097 XLIBSW="-L$x_libraries -lX11" 12098 fi 12099 fi 12100 if test "$XLIBSW" = nope ; then 12101 { echo "$as_me:$LINENO: checking for XCreateWindow in -lXwindow" >&5 12102echo $ECHO_N "checking for XCreateWindow in -lXwindow... $ECHO_C" >&6; } 12103if test "${ac_cv_lib_Xwindow_XCreateWindow+set}" = set; then 12104 echo $ECHO_N "(cached) $ECHO_C" >&6 12105else 12106 ac_check_lib_save_LIBS=$LIBS 12107LIBS="-lXwindow $LIBS" 12108cat >conftest.$ac_ext <<_ACEOF 12109/* confdefs.h. */ 12110_ACEOF 12111cat confdefs.h >>conftest.$ac_ext 12112cat >>conftest.$ac_ext <<_ACEOF 12113/* end confdefs.h. */ 12114 12115/* Override any GCC internal prototype to avoid an error. 12116 Use char because int might match the return type of a GCC 12117 builtin and then its argument prototype would still apply. */ 12118#ifdef __cplusplus 12119extern "C" 12120#endif 12121char XCreateWindow (); 12122int 12123main () 12124{ 12125return XCreateWindow (); 12126 ; 12127 return 0; 12128} 12129_ACEOF 12130rm -f conftest.$ac_objext conftest$ac_exeext 12131if { (ac_try="$ac_link" 12132case "(($ac_try" in 12133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12134 *) ac_try_echo=$ac_try;; 12135esac 12136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12137 (eval "$ac_link") 2>conftest.er1 12138 ac_status=$? 12139 grep -v '^ *+' conftest.er1 >conftest.err 12140 rm -f conftest.er1 12141 cat conftest.err >&5 12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12143 (exit $ac_status); } && { 12144 test -z "$ac_c_werror_flag" || 12145 test ! -s conftest.err 12146 } && test -s conftest$ac_exeext && 12147 $as_test_x conftest$ac_exeext; then 12148 ac_cv_lib_Xwindow_XCreateWindow=yes 12149else 12150 echo "$as_me: failed program was:" >&5 12151sed 's/^/| /' conftest.$ac_ext >&5 12152 12153 ac_cv_lib_Xwindow_XCreateWindow=no 12154fi 12155 12156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12157 conftest$ac_exeext conftest.$ac_ext 12158LIBS=$ac_check_lib_save_LIBS 12159fi 12160{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5 12161echo "${ECHO_T}$ac_cv_lib_Xwindow_XCreateWindow" >&6; } 12162if test $ac_cv_lib_Xwindow_XCreateWindow = yes; then 12163 XLIBSW=-lXwindow 12164fi 12165 12166 fi 12167 if test "$XLIBSW" = nope ; then 12168 { echo "$as_me:$LINENO: result: could not find any! Using -lX11." >&5 12169echo "${ECHO_T}could not find any! Using -lX11." >&6; } 12170 XLIBSW=-lX11 12171 fi 12172 # TEA specific: 12173 if test x"${XLIBSW}" != x ; then 12174 PKG_LIBS="${PKG_LIBS} ${XLIBSW}" 12175 fi 12176 12177 fi 12178 12179 12180#-------------------------------------------------------------------- 12181# Everyone should be linking against the Tcl stub library. If you 12182# can't for some reason, remove this definition. If you aren't using 12183# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 12184# link against the non-stubbed Tcl library. 12185#-------------------------------------------------------------------- 12186 12187cat >>confdefs.h <<\_ACEOF 12188#define USE_TCL_STUBS 1 12189_ACEOF 12190 12191cat >>confdefs.h <<\_ACEOF 12192#define USE_TK_STUBS 1 12193_ACEOF 12194 12195 12196#-------------------------------------------------------------------- 12197# This macro generates a line to use when building a library. It 12198# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 12199# and TEA_LOAD_TCLCONFIG macros above. 12200#-------------------------------------------------------------------- 12201 12202 12203 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 12204 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 12205 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 12206 cat >conftest.$ac_ext <<_ACEOF 12207/* confdefs.h. */ 12208_ACEOF 12209cat confdefs.h >>conftest.$ac_ext 12210cat >>conftest.$ac_ext <<_ACEOF 12211/* end confdefs.h. */ 12212 12213#if defined(_MSC_VER) && _MSC_VER >= 1400 12214print("manifest needed") 12215#endif 12216 12217_ACEOF 12218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12219 $EGREP "manifest needed" >/dev/null 2>&1; then 12220 12221 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 12222 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 12223 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 12224 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 12225 12226 CLEANFILES="$CLEANFILES *.manifest" 12227 12228 12229fi 12230rm -f -r conftest* 12231 12232 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 12233 else 12234 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 12235 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 12236 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 12237 fi 12238 12239 if test "${SHARED_BUILD}" = "1" ; then 12240 MAKE_LIB="${MAKE_SHARED_LIB} " 12241 else 12242 MAKE_LIB="${MAKE_STATIC_LIB} " 12243 fi 12244 12245 #-------------------------------------------------------------------- 12246 # Shared libraries and static libraries have different names. 12247 # Use the double eval to make sure any variables in the suffix is 12248 # substituted. (@@@ Might not be necessary anymore) 12249 #-------------------------------------------------------------------- 12250 12251 if test "${TEA_PLATFORM}" = "windows" ; then 12252 if test "${SHARED_BUILD}" = "1" ; then 12253 # We force the unresolved linking of symbols that are really in 12254 # the private libraries of Tcl and Tk. 12255 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 12256 if test x"${TK_BIN_DIR}" != x ; then 12257 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 12258 fi 12259 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 12260 else 12261 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 12262 fi 12263 # Some packages build their own stubs libraries 12264 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 12265 if test "$GCC" = "yes"; then 12266 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 12267 fi 12268 # These aren't needed on Windows (either MSVC or gcc) 12269 RANLIB=: 12270 RANLIB_STUB=: 12271 else 12272 RANLIB_STUB="${RANLIB}" 12273 if test "${SHARED_BUILD}" = "1" ; then 12274 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 12275 if test x"${TK_BIN_DIR}" != x ; then 12276 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 12277 fi 12278 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 12279 RANLIB=: 12280 else 12281 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 12282 fi 12283 # Some packages build their own stubs libraries 12284 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 12285 fi 12286 12287 # These are escaped so that only CFLAGS is picked up at configure time. 12288 # The other values will be substituted at make time. 12289 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 12290 if test "${SHARED_BUILD}" = "1" ; then 12291 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 12292 fi 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303#-------------------------------------------------------------------- 12304# __CHANGE__ 12305# Add platform libs to LIBS or SHLIB_LD_LIBS as necessary. 12306#-------------------------------------------------------------------- 12307 12308if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 12309 12310 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\"" 12311 for i in $vars; do 12312 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 12313 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 12314 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 12315 fi 12316 PKG_LIBS="$PKG_LIBS $i" 12317 done 12318 12319 12320 12321 vars="\"`${CYGPATH} ${tifftcl_STUB_LIB_PATH}`\"" 12322 for i in $vars; do 12323 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 12324 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 12325 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 12326 fi 12327 PKG_LIBS="$PKG_LIBS $i" 12328 done 12329 12330 12331 12332 vars="\"`${CYGPATH} ${jpegtcl_STUB_LIB_PATH}`\"" 12333 for i in $vars; do 12334 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 12335 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 12336 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 12337 fi 12338 PKG_LIBS="$PKG_LIBS $i" 12339 done 12340 12341 12342 12343 vars="\"`${CYGPATH} ${zlibtcl_STUB_LIB_PATH}`\"" 12344 for i in $vars; do 12345 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 12346 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 12347 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 12348 fi 12349 PKG_LIBS="$PKG_LIBS $i" 12350 done 12351 12352 12353else 12354 12355 vars="${tkimg_STUB_LIB_SPEC}" 12356 for i in $vars; do 12357 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 12358 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 12359 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 12360 fi 12361 PKG_LIBS="$PKG_LIBS $i" 12362 done 12363 12364 12365 12366 vars="${tifftcl_STUB_LIB_SPEC}" 12367 for i in $vars; do 12368 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 12369 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 12370 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 12371 fi 12372 PKG_LIBS="$PKG_LIBS $i" 12373 done 12374 12375 12376 12377 vars="${jpegtcl_STUB_LIB_SPEC}" 12378 for i in $vars; do 12379 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 12380 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 12381 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 12382 fi 12383 PKG_LIBS="$PKG_LIBS $i" 12384 done 12385 12386 12387 12388 vars="${zlibtcl_STUB_LIB_SPEC}" 12389 for i in $vars; do 12390 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 12391 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 12392 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 12393 fi 12394 PKG_LIBS="$PKG_LIBS $i" 12395 done 12396 12397 12398fi 12399 12400#-------------------------------------------------------------------- 12401# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 12402# file during the install process. Don't run the TCLSH_PROG through 12403# ${CYGPATH} because it's being used directly by make. 12404# Require that we use a tclsh shell version 8.2 or later since earlier 12405# versions have bugs in the pkg_mkIndex routine. 12406# Add WISH as well if this is a Tk extension. 12407#-------------------------------------------------------------------- 12408 12409 12410 { echo "$as_me:$LINENO: checking for tclsh" >&5 12411echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 12412 if test -f "${TCL_BIN_DIR}/Makefile" ; then 12413 # tclConfig.sh is in Tcl build directory 12414 if test "${TEA_PLATFORM}" = "windows"; then 12415 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 12416 else 12417 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 12418 fi 12419 else 12420 # tclConfig.sh is in install location 12421 if test "${TEA_PLATFORM}" = "windows"; then 12422 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 12423 else 12424 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 12425 fi 12426 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 12427 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 12428 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 12429 for i in $list ; do 12430 if test -f "$i/${TCLSH_PROG}" ; then 12431 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 12432 break 12433 fi 12434 done 12435 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 12436 fi 12437 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 12438echo "${ECHO_T}${TCLSH_PROG}" >&6; } 12439 12440 12441 12442 { echo "$as_me:$LINENO: checking for wish" >&5 12443echo $ECHO_N "checking for wish... $ECHO_C" >&6; } 12444 if test -f "${TK_BIN_DIR}/Makefile" ; then 12445 # tkConfig.sh is in Tk build directory 12446 if test "${TEA_PLATFORM}" = "windows"; then 12447 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 12448 else 12449 WISH_PROG="${TK_BIN_DIR}/wish" 12450 fi 12451 else 12452 # tkConfig.sh is in install location 12453 if test "${TEA_PLATFORM}" = "windows"; then 12454 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 12455 else 12456 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}" 12457 fi 12458 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \ 12459 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \ 12460 `ls -d ${TK_PREFIX}/bin 2>/dev/null`" 12461 for i in $list ; do 12462 if test -f "$i/${WISH_PROG}" ; then 12463 REAL_TK_BIN_DIR="`cd "$i"; pwd`/" 12464 break 12465 fi 12466 done 12467 WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}" 12468 fi 12469 { echo "$as_me:$LINENO: result: ${WISH_PROG}" >&5 12470echo "${ECHO_T}${WISH_PROG}" >&6; } 12471 12472 12473 12474#-------------------------------------------------------------------- 12475# Finally, substitute all of the various values into the Makefile. 12476# You may alternatively have a special pkgIndex.tcl.in or other files 12477# which require substituting th AC variables in. Include these here. 12478#-------------------------------------------------------------------- 12479 12480ac_config_files="$ac_config_files Makefile" 12481 12482cat >confcache <<\_ACEOF 12483# This file is a shell script that caches the results of configure 12484# tests run on this system so they can be shared between configure 12485# scripts and configure runs, see configure's option --config-cache. 12486# It is not useful on other systems. If it contains results you don't 12487# want to keep, you may remove or edit it. 12488# 12489# config.status only pays attention to the cache file if you give it 12490# the --recheck option to rerun configure. 12491# 12492# `ac_cv_env_foo' variables (set or unset) will be overridden when 12493# loading this file, other *unset* `ac_cv_foo' will be assigned the 12494# following values. 12495 12496_ACEOF 12497 12498# The following way of writing the cache mishandles newlines in values, 12499# but we know of no workaround that is simple, portable, and efficient. 12500# So, we kill variables containing newlines. 12501# Ultrix sh set writes to stderr and can't be redirected directly, 12502# and sets the high bit in the cache file unless we assign to the vars. 12503( 12504 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12505 eval ac_val=\$$ac_var 12506 case $ac_val in #( 12507 *${as_nl}*) 12508 case $ac_var in #( 12509 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 12510echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 12511 esac 12512 case $ac_var in #( 12513 _ | IFS | as_nl) ;; #( 12514 *) $as_unset $ac_var ;; 12515 esac ;; 12516 esac 12517 done 12518 12519 (set) 2>&1 | 12520 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12521 *${as_nl}ac_space=\ *) 12522 # `set' does not quote correctly, so add quotes (double-quote 12523 # substitution turns \\\\ into \\, and sed turns \\ into \). 12524 sed -n \ 12525 "s/'/'\\\\''/g; 12526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12527 ;; #( 12528 *) 12529 # `set' quotes correctly as required by POSIX, so do not add quotes. 12530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12531 ;; 12532 esac | 12533 sort 12534) | 12535 sed ' 12536 /^ac_cv_env_/b end 12537 t clear 12538 :clear 12539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12540 t end 12541 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12542 :end' >>confcache 12543if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12544 if test -w "$cache_file"; then 12545 test "x$cache_file" != "x/dev/null" && 12546 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 12547echo "$as_me: updating cache $cache_file" >&6;} 12548 cat confcache >$cache_file 12549 else 12550 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 12551echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12552 fi 12553fi 12554rm -f confcache 12555 12556test "x$prefix" = xNONE && prefix=$ac_default_prefix 12557# Let make expand exec_prefix. 12558test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12559 12560# Transform confdefs.h into DEFS. 12561# Protect against shell expansion while executing Makefile rules. 12562# Protect against Makefile macro expansion. 12563# 12564# If the first sed substitution is executed (which looks for macros that 12565# take arguments), then branch to the quote section. Otherwise, 12566# look for a macro that doesn't take arguments. 12567ac_script=' 12568t clear 12569:clear 12570s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 12571t quote 12572s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 12573t quote 12574b any 12575:quote 12576s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 12577s/\[/\\&/g 12578s/\]/\\&/g 12579s/\$/$$/g 12580H 12581:any 12582${ 12583 g 12584 s/^\n// 12585 s/\n/ /g 12586 p 12587} 12588' 12589DEFS=`sed -n "$ac_script" confdefs.h` 12590 12591 12592ac_libobjs= 12593ac_ltlibobjs= 12594for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12595 # 1. Remove the extension, and $U if already installed. 12596 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12597 ac_i=`echo "$ac_i" | sed "$ac_script"` 12598 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12599 # will be set to the directory where LIBOBJS objects are built. 12600 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12601 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 12602done 12603LIBOBJS=$ac_libobjs 12604 12605LTLIBOBJS=$ac_ltlibobjs 12606 12607 12608CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 12609 12610: ${CONFIG_STATUS=./config.status} 12611ac_clean_files_save=$ac_clean_files 12612ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12613{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 12614echo "$as_me: creating $CONFIG_STATUS" >&6;} 12615cat >$CONFIG_STATUS <<_ACEOF 12616#! $SHELL 12617# Generated by $as_me. 12618# Run this file to recreate the current configuration. 12619# Compiler output produced by configure, useful for debugging 12620# configure, is in config.log if it exists. 12621 12622debug=false 12623ac_cs_recheck=false 12624ac_cs_silent=false 12625SHELL=\${CONFIG_SHELL-$SHELL} 12626_ACEOF 12627 12628cat >>$CONFIG_STATUS <<\_ACEOF 12629## --------------------- ## 12630## M4sh Initialization. ## 12631## --------------------- ## 12632 12633# Be more Bourne compatible 12634DUALCASE=1; export DUALCASE # for MKS sh 12635if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 12636 emulate sh 12637 NULLCMD=: 12638 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 12639 # is contrary to our usage. Disable this feature. 12640 alias -g '${1+"$@"}'='"$@"' 12641 setopt NO_GLOB_SUBST 12642else 12643 case `(set -o) 2>/dev/null` in 12644 *posix*) set -o posix ;; 12645esac 12646 12647fi 12648 12649 12650 12651 12652# PATH needs CR 12653# Avoid depending upon Character Ranges. 12654as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12655as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12656as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12657as_cr_digits='0123456789' 12658as_cr_alnum=$as_cr_Letters$as_cr_digits 12659 12660# The user is always right. 12661if test "${PATH_SEPARATOR+set}" != set; then 12662 echo "#! /bin/sh" >conf$$.sh 12663 echo "exit 0" >>conf$$.sh 12664 chmod +x conf$$.sh 12665 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12666 PATH_SEPARATOR=';' 12667 else 12668 PATH_SEPARATOR=: 12669 fi 12670 rm -f conf$$.sh 12671fi 12672 12673# Support unset when possible. 12674if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12675 as_unset=unset 12676else 12677 as_unset=false 12678fi 12679 12680 12681# IFS 12682# We need space, tab and new line, in precisely that order. Quoting is 12683# there to prevent editors from complaining about space-tab. 12684# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12685# splitting by setting IFS to empty value.) 12686as_nl=' 12687' 12688IFS=" "" $as_nl" 12689 12690# Find who we are. Look in the path if we contain no directory separator. 12691case $0 in 12692 *[\\/]* ) as_myself=$0 ;; 12693 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12694for as_dir in $PATH 12695do 12696 IFS=$as_save_IFS 12697 test -z "$as_dir" && as_dir=. 12698 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12699done 12700IFS=$as_save_IFS 12701 12702 ;; 12703esac 12704# We did not find ourselves, most probably we were run as `sh COMMAND' 12705# in which case we are not to be found in the path. 12706if test "x$as_myself" = x; then 12707 as_myself=$0 12708fi 12709if test ! -f "$as_myself"; then 12710 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12711 { (exit 1); exit 1; } 12712fi 12713 12714# Work around bugs in pre-3.0 UWIN ksh. 12715for as_var in ENV MAIL MAILPATH 12716do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 12717done 12718PS1='$ ' 12719PS2='> ' 12720PS4='+ ' 12721 12722# NLS nuisances. 12723for as_var in \ 12724 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 12725 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 12726 LC_TELEPHONE LC_TIME 12727do 12728 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 12729 eval $as_var=C; export $as_var 12730 else 12731 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 12732 fi 12733done 12734 12735# Required to use basename. 12736if expr a : '\(a\)' >/dev/null 2>&1 && 12737 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12738 as_expr=expr 12739else 12740 as_expr=false 12741fi 12742 12743if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12744 as_basename=basename 12745else 12746 as_basename=false 12747fi 12748 12749 12750# Name of the executable. 12751as_me=`$as_basename -- "$0" || 12752$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12753 X"$0" : 'X\(//\)$' \| \ 12754 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12755echo X/"$0" | 12756 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12757 s//\1/ 12758 q 12759 } 12760 /^X\/\(\/\/\)$/{ 12761 s//\1/ 12762 q 12763 } 12764 /^X\/\(\/\).*/{ 12765 s//\1/ 12766 q 12767 } 12768 s/.*/./; q'` 12769 12770# CDPATH. 12771$as_unset CDPATH 12772 12773 12774 12775 as_lineno_1=$LINENO 12776 as_lineno_2=$LINENO 12777 test "x$as_lineno_1" != "x$as_lineno_2" && 12778 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 12779 12780 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 12781 # uniformly replaced by the line number. The first 'sed' inserts a 12782 # line-number line after each line using $LINENO; the second 'sed' 12783 # does the real work. The second script uses 'N' to pair each 12784 # line-number line with the line containing $LINENO, and appends 12785 # trailing '-' during substitution so that $LINENO is not a special 12786 # case at line end. 12787 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 12788 # scripts with optimization help from Paolo Bonzini. Blame Lee 12789 # E. McMahon (1931-1989) for sed's syntax. :-) 12790 sed -n ' 12791 p 12792 /[$]LINENO/= 12793 ' <$as_myself | 12794 sed ' 12795 s/[$]LINENO.*/&-/ 12796 t lineno 12797 b 12798 :lineno 12799 N 12800 :loop 12801 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 12802 t loop 12803 s/-\n.*// 12804 ' >$as_me.lineno && 12805 chmod +x "$as_me.lineno" || 12806 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 12807 { (exit 1); exit 1; }; } 12808 12809 # Don't try to exec as it changes $[0], causing all sort of problems 12810 # (the dirname of $[0] is not the place where we might find the 12811 # original and so on. Autoconf is especially sensitive to this). 12812 . "./$as_me.lineno" 12813 # Exit status is that of the last command. 12814 exit 12815} 12816 12817 12818if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12819 as_dirname=dirname 12820else 12821 as_dirname=false 12822fi 12823 12824ECHO_C= ECHO_N= ECHO_T= 12825case `echo -n x` in 12826-n*) 12827 case `echo 'x\c'` in 12828 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12829 *) ECHO_C='\c';; 12830 esac;; 12831*) 12832 ECHO_N='-n';; 12833esac 12834 12835if expr a : '\(a\)' >/dev/null 2>&1 && 12836 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12837 as_expr=expr 12838else 12839 as_expr=false 12840fi 12841 12842rm -f conf$$ conf$$.exe conf$$.file 12843if test -d conf$$.dir; then 12844 rm -f conf$$.dir/conf$$.file 12845else 12846 rm -f conf$$.dir 12847 mkdir conf$$.dir 12848fi 12849echo >conf$$.file 12850if ln -s conf$$.file conf$$ 2>/dev/null; then 12851 as_ln_s='ln -s' 12852 # ... but there are two gotchas: 12853 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12854 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12855 # In both cases, we have to default to `cp -p'. 12856 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12857 as_ln_s='cp -p' 12858elif ln conf$$.file conf$$ 2>/dev/null; then 12859 as_ln_s=ln 12860else 12861 as_ln_s='cp -p' 12862fi 12863rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12864rmdir conf$$.dir 2>/dev/null 12865 12866if mkdir -p . 2>/dev/null; then 12867 as_mkdir_p=: 12868else 12869 test -d ./-p && rmdir ./-p 12870 as_mkdir_p=false 12871fi 12872 12873if test -x / >/dev/null 2>&1; then 12874 as_test_x='test -x' 12875else 12876 if ls -dL / >/dev/null 2>&1; then 12877 as_ls_L_option=L 12878 else 12879 as_ls_L_option= 12880 fi 12881 as_test_x=' 12882 eval sh -c '\'' 12883 if test -d "$1"; then 12884 test -d "$1/."; 12885 else 12886 case $1 in 12887 -*)set "./$1";; 12888 esac; 12889 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 12890 ???[sx]*):;;*)false;;esac;fi 12891 '\'' sh 12892 ' 12893fi 12894as_executable_p=$as_test_x 12895 12896# Sed expression to map a string onto a valid CPP name. 12897as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12898 12899# Sed expression to map a string onto a valid variable name. 12900as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12901 12902 12903exec 6>&1 12904 12905# Save the log message, to keep $[0] and so on meaningful, and to 12906# report actual input values of CONFIG_FILES etc. instead of their 12907# values after options handling. 12908ac_log=" 12909This file was extended by tkimgtiff $as_me 1.4, which was 12910generated by GNU Autoconf 2.61. Invocation command line was 12911 12912 CONFIG_FILES = $CONFIG_FILES 12913 CONFIG_HEADERS = $CONFIG_HEADERS 12914 CONFIG_LINKS = $CONFIG_LINKS 12915 CONFIG_COMMANDS = $CONFIG_COMMANDS 12916 $ $0 $@ 12917 12918on `(hostname || uname -n) 2>/dev/null | sed 1q` 12919" 12920 12921_ACEOF 12922 12923cat >>$CONFIG_STATUS <<_ACEOF 12924# Files that config.status was made for. 12925config_files="$ac_config_files" 12926 12927_ACEOF 12928 12929cat >>$CONFIG_STATUS <<\_ACEOF 12930ac_cs_usage="\ 12931\`$as_me' instantiates files from templates according to the 12932current configuration. 12933 12934Usage: $0 [OPTIONS] [FILE]... 12935 12936 -h, --help print this help, then exit 12937 -V, --version print version number and configuration settings, then exit 12938 -q, --quiet do not print progress messages 12939 -d, --debug don't remove temporary files 12940 --recheck update $as_me by reconfiguring in the same conditions 12941 --file=FILE[:TEMPLATE] 12942 instantiate the configuration file FILE 12943 12944Configuration files: 12945$config_files 12946 12947Report bugs to <bug-autoconf@gnu.org>." 12948 12949_ACEOF 12950cat >>$CONFIG_STATUS <<_ACEOF 12951ac_cs_version="\\ 12952tkimgtiff config.status 1.4 12953configured by $0, generated by GNU Autoconf 2.61, 12954 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 12955 12956Copyright (C) 2006 Free Software Foundation, Inc. 12957This config.status script is free software; the Free Software Foundation 12958gives unlimited permission to copy, distribute and modify it." 12959 12960ac_pwd='$ac_pwd' 12961srcdir='$srcdir' 12962INSTALL='$INSTALL' 12963_ACEOF 12964 12965cat >>$CONFIG_STATUS <<\_ACEOF 12966# If no file are specified by the user, then we need to provide default 12967# value. By we need to know if files were specified by the user. 12968ac_need_defaults=: 12969while test $# != 0 12970do 12971 case $1 in 12972 --*=*) 12973 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12974 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12975 ac_shift=: 12976 ;; 12977 *) 12978 ac_option=$1 12979 ac_optarg=$2 12980 ac_shift=shift 12981 ;; 12982 esac 12983 12984 case $ac_option in 12985 # Handling of the options. 12986 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12987 ac_cs_recheck=: ;; 12988 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12989 echo "$ac_cs_version"; exit ;; 12990 --debug | --debu | --deb | --de | --d | -d ) 12991 debug=: ;; 12992 --file | --fil | --fi | --f ) 12993 $ac_shift 12994 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 12995 ac_need_defaults=false;; 12996 --he | --h | --help | --hel | -h ) 12997 echo "$ac_cs_usage"; exit ;; 12998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12999 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13000 ac_cs_silent=: ;; 13001 13002 # This is an error. 13003 -*) { echo "$as_me: error: unrecognized option: $1 13004Try \`$0 --help' for more information." >&2 13005 { (exit 1); exit 1; }; } ;; 13006 13007 *) ac_config_targets="$ac_config_targets $1" 13008 ac_need_defaults=false ;; 13009 13010 esac 13011 shift 13012done 13013 13014ac_configure_extra_args= 13015 13016if $ac_cs_silent; then 13017 exec 6>/dev/null 13018 ac_configure_extra_args="$ac_configure_extra_args --silent" 13019fi 13020 13021_ACEOF 13022cat >>$CONFIG_STATUS <<_ACEOF 13023if \$ac_cs_recheck; then 13024 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 13025 CONFIG_SHELL=$SHELL 13026 export CONFIG_SHELL 13027 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13028fi 13029 13030_ACEOF 13031cat >>$CONFIG_STATUS <<\_ACEOF 13032exec 5>>config.log 13033{ 13034 echo 13035 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13036## Running $as_me. ## 13037_ASBOX 13038 echo "$ac_log" 13039} >&5 13040 13041_ACEOF 13042cat >>$CONFIG_STATUS <<_ACEOF 13043_ACEOF 13044 13045cat >>$CONFIG_STATUS <<\_ACEOF 13046 13047# Handling of arguments. 13048for ac_config_target in $ac_config_targets 13049do 13050 case $ac_config_target in 13051 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13052 13053 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13054echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13055 { (exit 1); exit 1; }; };; 13056 esac 13057done 13058 13059 13060# If the user did not use the arguments to specify the items to instantiate, 13061# then the envvar interface is used. Set only those that are not. 13062# We use the long form for the default assignment because of an extremely 13063# bizarre bug on SunOS 4.1.3. 13064if $ac_need_defaults; then 13065 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13066fi 13067 13068# Have a temporary directory for convenience. Make it in the build tree 13069# simply because there is no reason against having it here, and in addition, 13070# creating and moving files from /tmp can sometimes cause problems. 13071# Hook for its removal unless debugging. 13072# Note that there is a small window in which the directory will not be cleaned: 13073# after its creation but before its name has been assigned to `$tmp'. 13074$debug || 13075{ 13076 tmp= 13077 trap 'exit_status=$? 13078 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13079' 0 13080 trap '{ (exit 1); exit 1; }' 1 2 13 15 13081} 13082# Create a (secure) tmp directory for tmp files. 13083 13084{ 13085 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13086 test -n "$tmp" && test -d "$tmp" 13087} || 13088{ 13089 tmp=./conf$$-$RANDOM 13090 (umask 077 && mkdir "$tmp") 13091} || 13092{ 13093 echo "$me: cannot create a temporary directory in ." >&2 13094 { (exit 1); exit 1; } 13095} 13096 13097# 13098# Set up the sed scripts for CONFIG_FILES section. 13099# 13100 13101# No need to generate the scripts if there are no CONFIG_FILES. 13102# This happens for instance when ./config.status config.h 13103if test -n "$CONFIG_FILES"; then 13104 13105_ACEOF 13106 13107 13108 13109ac_delim='%!_!# ' 13110for ac_last_try in false false false false false :; do 13111 cat >conf$$subs.sed <<_ACEOF 13112SHELL!$SHELL$ac_delim 13113PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 13114PACKAGE_NAME!$PACKAGE_NAME$ac_delim 13115PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 13116PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 13117PACKAGE_STRING!$PACKAGE_STRING$ac_delim 13118PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 13119exec_prefix!$exec_prefix$ac_delim 13120prefix!$prefix$ac_delim 13121program_transform_name!$program_transform_name$ac_delim 13122bindir!$bindir$ac_delim 13123sbindir!$sbindir$ac_delim 13124libexecdir!$libexecdir$ac_delim 13125datarootdir!$datarootdir$ac_delim 13126datadir!$datadir$ac_delim 13127sysconfdir!$sysconfdir$ac_delim 13128sharedstatedir!$sharedstatedir$ac_delim 13129localstatedir!$localstatedir$ac_delim 13130includedir!$includedir$ac_delim 13131oldincludedir!$oldincludedir$ac_delim 13132docdir!$docdir$ac_delim 13133infodir!$infodir$ac_delim 13134htmldir!$htmldir$ac_delim 13135dvidir!$dvidir$ac_delim 13136pdfdir!$pdfdir$ac_delim 13137psdir!$psdir$ac_delim 13138libdir!$libdir$ac_delim 13139localedir!$localedir$ac_delim 13140mandir!$mandir$ac_delim 13141DEFS!$DEFS$ac_delim 13142ECHO_C!$ECHO_C$ac_delim 13143ECHO_N!$ECHO_N$ac_delim 13144ECHO_T!$ECHO_T$ac_delim 13145LIBS!$LIBS$ac_delim 13146build_alias!$build_alias$ac_delim 13147host_alias!$host_alias$ac_delim 13148target_alias!$target_alias$ac_delim 13149CYGPATH!$CYGPATH$ac_delim 13150EXEEXT!$EXEEXT$ac_delim 13151PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 13152PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 13153PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 13154PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 13155PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 13156PKG_HEADERS!$PKG_HEADERS$ac_delim 13157PKG_INCLUDES!$PKG_INCLUDES$ac_delim 13158PKG_LIBS!$PKG_LIBS$ac_delim 13159PKG_CFLAGS!$PKG_CFLAGS$ac_delim 13160PACKAGE_TCLNAME!$PACKAGE_TCLNAME$ac_delim 13161TCL_VERSION!$TCL_VERSION$ac_delim 13162TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 13163TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 13164TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 13165TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 13166TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 13167TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 13168TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 13169TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 13170TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 13171CLEANFILES!$CLEANFILES$ac_delim 13172TCL_LIBS!$TCL_LIBS$ac_delim 13173TCL_DEFS!$TCL_DEFS$ac_delim 13174TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 13175TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 13176TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 13177TK_VERSION!$TK_VERSION$ac_delim 13178TK_BIN_DIR!$TK_BIN_DIR$ac_delim 13179TK_SRC_DIR!$TK_SRC_DIR$ac_delim 13180TK_LIB_FILE!$TK_LIB_FILE$ac_delim 13181TK_LIB_FLAG!$TK_LIB_FLAG$ac_delim 13182TK_LIB_SPEC!$TK_LIB_SPEC$ac_delim 13183TK_STUB_LIB_FILE!$TK_STUB_LIB_FILE$ac_delim 13184TK_STUB_LIB_FLAG!$TK_STUB_LIB_FLAG$ac_delim 13185TK_STUB_LIB_SPEC!$TK_STUB_LIB_SPEC$ac_delim 13186TK_LIBS!$TK_LIBS$ac_delim 13187TK_XINCLUDES!$TK_XINCLUDES$ac_delim 13188CC!$CC$ac_delim 13189CFLAGS!$CFLAGS$ac_delim 13190LDFLAGS!$LDFLAGS$ac_delim 13191CPPFLAGS!$CPPFLAGS$ac_delim 13192ac_ct_CC!$ac_ct_CC$ac_delim 13193OBJEXT!$OBJEXT$ac_delim 13194CPP!$CPP$ac_delim 13195INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 13196INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 13197INSTALL_DATA!$INSTALL_DATA$ac_delim 13198SET_MAKE!$SET_MAKE$ac_delim 13199RANLIB!$RANLIB$ac_delim 13200GREP!$GREP$ac_delim 13201EGREP!$EGREP$ac_delim 13202MATH_LIBS!$MATH_LIBS$ac_delim 13203tkimg_VERSION!$tkimg_VERSION$ac_delim 13204tkimg_BIN_DIR!$tkimg_BIN_DIR$ac_delim 13205tkimg_SRC_DIR!$tkimg_SRC_DIR$ac_delim 13206tkimg_LIB_FILE!$tkimg_LIB_FILE$ac_delim 13207tkimg_LIB_SPEC!$tkimg_LIB_SPEC$ac_delim 13208tkimg_STUB_LIB_FILE!$tkimg_STUB_LIB_FILE$ac_delim 13209_ACEOF 13210 13211 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 13212 break 13213 elif $ac_last_try; then 13214 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13215echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13216 { (exit 1); exit 1; }; } 13217 else 13218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13219 fi 13220done 13221 13222ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 13223if test -n "$ac_eof"; then 13224 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 13225 ac_eof=`expr $ac_eof + 1` 13226fi 13227 13228cat >>$CONFIG_STATUS <<_ACEOF 13229cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 13230/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13231_ACEOF 13232sed ' 13233s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 13234s/^/s,@/; s/!/@,|#_!!_#|/ 13235:n 13236t n 13237s/'"$ac_delim"'$/,g/; t 13238s/$/\\/; p 13239N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 13240' >>$CONFIG_STATUS <conf$$subs.sed 13241rm -f conf$$subs.sed 13242cat >>$CONFIG_STATUS <<_ACEOF 13243CEOF$ac_eof 13244_ACEOF 13245 13246 13247ac_delim='%!_!# ' 13248for ac_last_try in false false false false false :; do 13249 cat >conf$$subs.sed <<_ACEOF 13250tkimg_STUB_LIB_SPEC!$tkimg_STUB_LIB_SPEC$ac_delim 13251tkimg_STUB_LIB_PATH!$tkimg_STUB_LIB_PATH$ac_delim 13252tifftcl_VERSION!$tifftcl_VERSION$ac_delim 13253tifftcl_BIN_DIR!$tifftcl_BIN_DIR$ac_delim 13254tifftcl_SRC_DIR!$tifftcl_SRC_DIR$ac_delim 13255tifftcl_LIB_FILE!$tifftcl_LIB_FILE$ac_delim 13256tifftcl_LIB_SPEC!$tifftcl_LIB_SPEC$ac_delim 13257tifftcl_STUB_LIB_FILE!$tifftcl_STUB_LIB_FILE$ac_delim 13258tifftcl_STUB_LIB_SPEC!$tifftcl_STUB_LIB_SPEC$ac_delim 13259tifftcl_STUB_LIB_PATH!$tifftcl_STUB_LIB_PATH$ac_delim 13260jpegtcl_VERSION!$jpegtcl_VERSION$ac_delim 13261jpegtcl_BIN_DIR!$jpegtcl_BIN_DIR$ac_delim 13262jpegtcl_SRC_DIR!$jpegtcl_SRC_DIR$ac_delim 13263jpegtcl_LIB_FILE!$jpegtcl_LIB_FILE$ac_delim 13264jpegtcl_LIB_SPEC!$jpegtcl_LIB_SPEC$ac_delim 13265jpegtcl_STUB_LIB_FILE!$jpegtcl_STUB_LIB_FILE$ac_delim 13266jpegtcl_STUB_LIB_SPEC!$jpegtcl_STUB_LIB_SPEC$ac_delim 13267jpegtcl_STUB_LIB_PATH!$jpegtcl_STUB_LIB_PATH$ac_delim 13268zlibtcl_VERSION!$zlibtcl_VERSION$ac_delim 13269zlibtcl_BIN_DIR!$zlibtcl_BIN_DIR$ac_delim 13270zlibtcl_SRC_DIR!$zlibtcl_SRC_DIR$ac_delim 13271zlibtcl_LIB_FILE!$zlibtcl_LIB_FILE$ac_delim 13272zlibtcl_LIB_SPEC!$zlibtcl_LIB_SPEC$ac_delim 13273zlibtcl_STUB_LIB_FILE!$zlibtcl_STUB_LIB_FILE$ac_delim 13274zlibtcl_STUB_LIB_SPEC!$zlibtcl_STUB_LIB_SPEC$ac_delim 13275zlibtcl_STUB_LIB_PATH!$zlibtcl_STUB_LIB_PATH$ac_delim 13276tkimg_SRC_PATH!$tkimg_SRC_PATH$ac_delim 13277tkimg_BUILD_PATH!$tkimg_BUILD_PATH$ac_delim 13278tifftcl_SRC_PATH!$tifftcl_SRC_PATH$ac_delim 13279tifftcl_BUILD_PATH!$tifftcl_BUILD_PATH$ac_delim 13280jpegtcl_SRC_PATH!$jpegtcl_SRC_PATH$ac_delim 13281jpegtcl_BUILD_PATH!$jpegtcl_BUILD_PATH$ac_delim 13282zlibtcl_SRC_PATH!$zlibtcl_SRC_PATH$ac_delim 13283zlibtcl_BUILD_PATH!$zlibtcl_BUILD_PATH$ac_delim 13284PKG_SOURCES!$PKG_SOURCES$ac_delim 13285PKG_OBJECTS!$PKG_OBJECTS$ac_delim 13286TCL_INCLUDES!$TCL_INCLUDES$ac_delim 13287TK_INCLUDES!$TK_INCLUDES$ac_delim 13288TCL_THREADS!$TCL_THREADS$ac_delim 13289SHARED_BUILD!$SHARED_BUILD$ac_delim 13290AR!$AR$ac_delim 13291CELIB_DIR!$CELIB_DIR$ac_delim 13292CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 13293CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 13294CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 13295STLIB_LD!$STLIB_LD$ac_delim 13296SHLIB_LD!$SHLIB_LD$ac_delim 13297SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 13298SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 13299LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 13300CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 13301LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 13302TCL_DBGX!$TCL_DBGX$ac_delim 13303XMKMF!$XMKMF$ac_delim 13304MAKE_LIB!$MAKE_LIB$ac_delim 13305MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 13306MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 13307MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 13308RANLIB_STUB!$RANLIB_STUB$ac_delim 13309VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 13310VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 13311TCLSH_PROG!$TCLSH_PROG$ac_delim 13312WISH_PROG!$WISH_PROG$ac_delim 13313LIBOBJS!$LIBOBJS$ac_delim 13314LTLIBOBJS!$LTLIBOBJS$ac_delim 13315_ACEOF 13316 13317 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then 13318 break 13319 elif $ac_last_try; then 13320 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13321echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13322 { (exit 1); exit 1; }; } 13323 else 13324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13325 fi 13326done 13327 13328ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 13329if test -n "$ac_eof"; then 13330 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 13331 ac_eof=`expr $ac_eof + 1` 13332fi 13333 13334cat >>$CONFIG_STATUS <<_ACEOF 13335cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 13336/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 13337_ACEOF 13338sed ' 13339s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 13340s/^/s,@/; s/!/@,|#_!!_#|/ 13341:n 13342t n 13343s/'"$ac_delim"'$/,g/; t 13344s/$/\\/; p 13345N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 13346' >>$CONFIG_STATUS <conf$$subs.sed 13347rm -f conf$$subs.sed 13348cat >>$CONFIG_STATUS <<_ACEOF 13349:end 13350s/|#_!!_#|//g 13351CEOF$ac_eof 13352_ACEOF 13353 13354 13355# VPATH may cause trouble with some makes, so we remove $(srcdir), 13356# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13357# trailing colons and then remove the whole line if VPATH becomes empty 13358# (actually we leave an empty line to preserve line numbers). 13359if test "x$srcdir" = x.; then 13360 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13361s/:*\$(srcdir):*/:/ 13362s/:*\${srcdir}:*/:/ 13363s/:*@srcdir@:*/:/ 13364s/^\([^=]*=[ ]*\):*/\1/ 13365s/:*$// 13366s/^[^=]*=[ ]*$// 13367}' 13368fi 13369 13370cat >>$CONFIG_STATUS <<\_ACEOF 13371fi # test -n "$CONFIG_FILES" 13372 13373 13374for ac_tag in :F $CONFIG_FILES 13375do 13376 case $ac_tag in 13377 :[FHLC]) ac_mode=$ac_tag; continue;; 13378 esac 13379 case $ac_mode$ac_tag in 13380 :[FHL]*:*);; 13381 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 13382echo "$as_me: error: Invalid tag $ac_tag." >&2;} 13383 { (exit 1); exit 1; }; };; 13384 :[FH]-) ac_tag=-:-;; 13385 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13386 esac 13387 ac_save_IFS=$IFS 13388 IFS=: 13389 set x $ac_tag 13390 IFS=$ac_save_IFS 13391 shift 13392 ac_file=$1 13393 shift 13394 13395 case $ac_mode in 13396 :L) ac_source=$1;; 13397 :[FH]) 13398 ac_file_inputs= 13399 for ac_f 13400 do 13401 case $ac_f in 13402 -) ac_f="$tmp/stdin";; 13403 *) # Look for the file first in the build tree, then in the source tree 13404 # (if the path is not absolute). The absolute path cannot be DOS-style, 13405 # because $ac_f cannot contain `:'. 13406 test -f "$ac_f" || 13407 case $ac_f in 13408 [\\/$]*) false;; 13409 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13410 esac || 13411 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 13412echo "$as_me: error: cannot find input file: $ac_f" >&2;} 13413 { (exit 1); exit 1; }; };; 13414 esac 13415 ac_file_inputs="$ac_file_inputs $ac_f" 13416 done 13417 13418 # Let's still pretend it is `configure' which instantiates (i.e., don't 13419 # use $as_me), people would be surprised to read: 13420 # /* config.h. Generated by config.status. */ 13421 configure_input="Generated from "`IFS=: 13422 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 13423 if test x"$ac_file" != x-; then 13424 configure_input="$ac_file. $configure_input" 13425 { echo "$as_me:$LINENO: creating $ac_file" >&5 13426echo "$as_me: creating $ac_file" >&6;} 13427 fi 13428 13429 case $ac_tag in 13430 *:-:* | *:-) cat >"$tmp/stdin";; 13431 esac 13432 ;; 13433 esac 13434 13435 ac_dir=`$as_dirname -- "$ac_file" || 13436$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13437 X"$ac_file" : 'X\(//\)[^/]' \| \ 13438 X"$ac_file" : 'X\(//\)$' \| \ 13439 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13440echo X"$ac_file" | 13441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13442 s//\1/ 13443 q 13444 } 13445 /^X\(\/\/\)[^/].*/{ 13446 s//\1/ 13447 q 13448 } 13449 /^X\(\/\/\)$/{ 13450 s//\1/ 13451 q 13452 } 13453 /^X\(\/\).*/{ 13454 s//\1/ 13455 q 13456 } 13457 s/.*/./; q'` 13458 { as_dir="$ac_dir" 13459 case $as_dir in #( 13460 -*) as_dir=./$as_dir;; 13461 esac 13462 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 13463 as_dirs= 13464 while :; do 13465 case $as_dir in #( 13466 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 13467 *) as_qdir=$as_dir;; 13468 esac 13469 as_dirs="'$as_qdir' $as_dirs" 13470 as_dir=`$as_dirname -- "$as_dir" || 13471$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13472 X"$as_dir" : 'X\(//\)[^/]' \| \ 13473 X"$as_dir" : 'X\(//\)$' \| \ 13474 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13475echo X"$as_dir" | 13476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13477 s//\1/ 13478 q 13479 } 13480 /^X\(\/\/\)[^/].*/{ 13481 s//\1/ 13482 q 13483 } 13484 /^X\(\/\/\)$/{ 13485 s//\1/ 13486 q 13487 } 13488 /^X\(\/\).*/{ 13489 s//\1/ 13490 q 13491 } 13492 s/.*/./; q'` 13493 test -d "$as_dir" && break 13494 done 13495 test -z "$as_dirs" || eval "mkdir $as_dirs" 13496 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13497echo "$as_me: error: cannot create directory $as_dir" >&2;} 13498 { (exit 1); exit 1; }; }; } 13499 ac_builddir=. 13500 13501case "$ac_dir" in 13502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13503*) 13504 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 13505 # A ".." for each directory in $ac_dir_suffix. 13506 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 13507 case $ac_top_builddir_sub in 13508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13510 esac ;; 13511esac 13512ac_abs_top_builddir=$ac_pwd 13513ac_abs_builddir=$ac_pwd$ac_dir_suffix 13514# for backward compatibility: 13515ac_top_builddir=$ac_top_build_prefix 13516 13517case $srcdir in 13518 .) # We are building in place. 13519 ac_srcdir=. 13520 ac_top_srcdir=$ac_top_builddir_sub 13521 ac_abs_top_srcdir=$ac_pwd ;; 13522 [\\/]* | ?:[\\/]* ) # Absolute name. 13523 ac_srcdir=$srcdir$ac_dir_suffix; 13524 ac_top_srcdir=$srcdir 13525 ac_abs_top_srcdir=$srcdir ;; 13526 *) # Relative name. 13527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13528 ac_top_srcdir=$ac_top_build_prefix$srcdir 13529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13530esac 13531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13532 13533 13534 case $ac_mode in 13535 :F) 13536 # 13537 # CONFIG_FILE 13538 # 13539 13540 case $INSTALL in 13541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13542 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13543 esac 13544_ACEOF 13545 13546cat >>$CONFIG_STATUS <<\_ACEOF 13547# If the template does not know about datarootdir, expand it. 13548# FIXME: This hack should be removed a few years after 2.60. 13549ac_datarootdir_hack=; ac_datarootdir_seen= 13550 13551case `sed -n '/datarootdir/ { 13552 p 13553 q 13554} 13555/@datadir@/p 13556/@docdir@/p 13557/@infodir@/p 13558/@localedir@/p 13559/@mandir@/p 13560' $ac_file_inputs` in 13561*datarootdir*) ac_datarootdir_seen=yes;; 13562*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13563 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13564echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13565_ACEOF 13566cat >>$CONFIG_STATUS <<_ACEOF 13567 ac_datarootdir_hack=' 13568 s&@datadir@&$datadir&g 13569 s&@docdir@&$docdir&g 13570 s&@infodir@&$infodir&g 13571 s&@localedir@&$localedir&g 13572 s&@mandir@&$mandir&g 13573 s&\\\${datarootdir}&$datarootdir&g' ;; 13574esac 13575_ACEOF 13576 13577# Neutralize VPATH when `$srcdir' = `.'. 13578# Shell code in configure.ac might set extrasub. 13579# FIXME: do we really want to maintain this feature? 13580cat >>$CONFIG_STATUS <<_ACEOF 13581 sed "$ac_vpsub 13582$extrasub 13583_ACEOF 13584cat >>$CONFIG_STATUS <<\_ACEOF 13585:t 13586/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13587s&@configure_input@&$configure_input&;t t 13588s&@top_builddir@&$ac_top_builddir_sub&;t t 13589s&@srcdir@&$ac_srcdir&;t t 13590s&@abs_srcdir@&$ac_abs_srcdir&;t t 13591s&@top_srcdir@&$ac_top_srcdir&;t t 13592s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13593s&@builddir@&$ac_builddir&;t t 13594s&@abs_builddir@&$ac_abs_builddir&;t t 13595s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13596s&@INSTALL@&$ac_INSTALL&;t t 13597$ac_datarootdir_hack 13598" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 13599 13600test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13601 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13602 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13603 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13604which seems to be undefined. Please make sure it is defined." >&5 13605echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13606which seems to be undefined. Please make sure it is defined." >&2;} 13607 13608 rm -f "$tmp/stdin" 13609 case $ac_file in 13610 -) cat "$tmp/out"; rm -f "$tmp/out";; 13611 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 13612 esac 13613 ;; 13614 13615 13616 13617 esac 13618 13619done # for ac_tag 13620 13621 13622{ (exit 0); exit 0; } 13623_ACEOF 13624chmod +x $CONFIG_STATUS 13625ac_clean_files=$ac_clean_files_save 13626 13627 13628# configure is writing to config.log, and then calls config.status. 13629# config.status does its own redirection, appending to config.log. 13630# Unfortunately, on DOS this fails, as config.log is still kept open 13631# by configure, so config.status won't be able to write to it; its 13632# output is simply discarded. So we exec the FD to /dev/null, 13633# effectively closing config.log, so it can be properly (re)opened and 13634# appended to by config.status. When coming back to configure, we 13635# need to make the FD available again. 13636if test "$no_create" != yes; then 13637 ac_cs_success=: 13638 ac_config_status_args= 13639 test "$silent" = yes && 13640 ac_config_status_args="$ac_config_status_args --quiet" 13641 exec 5>/dev/null 13642 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13643 exec 5>>config.log 13644 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13645 # would make configure fail if this is the last instruction. 13646 $ac_cs_success || { (exit 1); exit 1; } 13647fi 13648 13649 13650#-------------------------------------------------------------------- 13651