1#! /bin/sh 2# From configure.in Id: configure.in 286 2010-07-07 11:08:08Z nijtmans . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61 for tkimgjpeg 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='tkimgjpeg' 575PACKAGE_TARNAME='tkimgjpeg' 576PACKAGE_VERSION='1.4' 577PACKAGE_STRING='tkimgjpeg 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 715jpegtcl_VERSION 716jpegtcl_BIN_DIR 717jpegtcl_SRC_DIR 718jpegtcl_LIB_FILE 719jpegtcl_LIB_SPEC 720jpegtcl_STUB_LIB_FILE 721jpegtcl_STUB_LIB_SPEC 722jpegtcl_STUB_LIB_PATH 723tkimg_SRC_PATH 724tkimg_BUILD_PATH 725jpegtcl_SRC_PATH 726jpegtcl_BUILD_PATH 727PKG_SOURCES 728PKG_OBJECTS 729TCL_INCLUDES 730TK_INCLUDES 731TCL_THREADS 732SHARED_BUILD 733AR 734CELIB_DIR 735CFLAGS_DEBUG 736CFLAGS_OPTIMIZE 737CFLAGS_WARNING 738STLIB_LD 739SHLIB_LD 740SHLIB_LD_LIBS 741SHLIB_CFLAGS 742LD_LIBRARY_PATH_VAR 743CFLAGS_DEFAULT 744LDFLAGS_DEFAULT 745TCL_DBGX 746XMKMF 747MAKE_LIB 748MAKE_SHARED_LIB 749MAKE_STATIC_LIB 750MAKE_STUB_LIB 751RANLIB_STUB 752VC_MANIFEST_EMBED_DLL 753VC_MANIFEST_EMBED_EXE 754TCLSH_PROG 755WISH_PROG 756LIBOBJS 757LTLIBOBJS' 758ac_subst_files='' 759 ac_precious_vars='build_alias 760host_alias 761target_alias 762CC 763CFLAGS 764LDFLAGS 765LIBS 766CPPFLAGS 767CPP 768XMKMF' 769 770 771# Initialize some variables set by options. 772ac_init_help= 773ac_init_version=false 774# The variables have the same names as the options, with 775# dashes changed to underlines. 776cache_file=/dev/null 777exec_prefix=NONE 778no_create= 779no_recursion= 780prefix=NONE 781program_prefix=NONE 782program_suffix=NONE 783program_transform_name=s,x,x, 784silent= 785site= 786srcdir= 787verbose= 788x_includes=NONE 789x_libraries=NONE 790 791# Installation directory options. 792# These are left unexpanded so users can "make install exec_prefix=/foo" 793# and all the variables that are supposed to be based on exec_prefix 794# by default will actually change. 795# Use braces instead of parens because sh, perl, etc. also accept them. 796# (The list follows the same order as the GNU Coding Standards.) 797bindir='${exec_prefix}/bin' 798sbindir='${exec_prefix}/sbin' 799libexecdir='${exec_prefix}/libexec' 800datarootdir='${prefix}/share' 801datadir='${datarootdir}' 802sysconfdir='${prefix}/etc' 803sharedstatedir='${prefix}/com' 804localstatedir='${prefix}/var' 805includedir='${prefix}/include' 806oldincludedir='/usr/include' 807docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 808infodir='${datarootdir}/info' 809htmldir='${docdir}' 810dvidir='${docdir}' 811pdfdir='${docdir}' 812psdir='${docdir}' 813libdir='${exec_prefix}/lib' 814localedir='${datarootdir}/locale' 815mandir='${datarootdir}/man' 816 817ac_prev= 818ac_dashdash= 819for ac_option 820do 821 # If the previous option needs an argument, assign it. 822 if test -n "$ac_prev"; then 823 eval $ac_prev=\$ac_option 824 ac_prev= 825 continue 826 fi 827 828 case $ac_option in 829 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 830 *) ac_optarg=yes ;; 831 esac 832 833 # Accept the important Cygnus configure options, so we can diagnose typos. 834 835 case $ac_dashdash$ac_option in 836 --) 837 ac_dashdash=yes ;; 838 839 -bindir | --bindir | --bindi | --bind | --bin | --bi) 840 ac_prev=bindir ;; 841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 842 bindir=$ac_optarg ;; 843 844 -build | --build | --buil | --bui | --bu) 845 ac_prev=build_alias ;; 846 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 847 build_alias=$ac_optarg ;; 848 849 -cache-file | --cache-file | --cache-fil | --cache-fi \ 850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 851 ac_prev=cache_file ;; 852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 854 cache_file=$ac_optarg ;; 855 856 --config-cache | -C) 857 cache_file=config.cache ;; 858 859 -datadir | --datadir | --datadi | --datad) 860 ac_prev=datadir ;; 861 -datadir=* | --datadir=* | --datadi=* | --datad=*) 862 datadir=$ac_optarg ;; 863 864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 865 | --dataroo | --dataro | --datar) 866 ac_prev=datarootdir ;; 867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 869 datarootdir=$ac_optarg ;; 870 871 -disable-* | --disable-*) 872 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 873 # Reject names that are not valid shell variable names. 874 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 875 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 876 { (exit 1); exit 1; }; } 877 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 878 eval enable_$ac_feature=no ;; 879 880 -docdir | --docdir | --docdi | --doc | --do) 881 ac_prev=docdir ;; 882 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 883 docdir=$ac_optarg ;; 884 885 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 886 ac_prev=dvidir ;; 887 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 888 dvidir=$ac_optarg ;; 889 890 -enable-* | --enable-*) 891 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 892 # Reject names that are not valid shell variable names. 893 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 894 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 895 { (exit 1); exit 1; }; } 896 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 897 eval enable_$ac_feature=\$ac_optarg ;; 898 899 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 900 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 901 | --exec | --exe | --ex) 902 ac_prev=exec_prefix ;; 903 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 904 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 905 | --exec=* | --exe=* | --ex=*) 906 exec_prefix=$ac_optarg ;; 907 908 -gas | --gas | --ga | --g) 909 # Obsolete; use --with-gas. 910 with_gas=yes ;; 911 912 -help | --help | --hel | --he | -h) 913 ac_init_help=long ;; 914 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 915 ac_init_help=recursive ;; 916 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 917 ac_init_help=short ;; 918 919 -host | --host | --hos | --ho) 920 ac_prev=host_alias ;; 921 -host=* | --host=* | --hos=* | --ho=*) 922 host_alias=$ac_optarg ;; 923 924 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 925 ac_prev=htmldir ;; 926 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 927 | --ht=*) 928 htmldir=$ac_optarg ;; 929 930 -includedir | --includedir | --includedi | --included | --include \ 931 | --includ | --inclu | --incl | --inc) 932 ac_prev=includedir ;; 933 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 934 | --includ=* | --inclu=* | --incl=* | --inc=*) 935 includedir=$ac_optarg ;; 936 937 -infodir | --infodir | --infodi | --infod | --info | --inf) 938 ac_prev=infodir ;; 939 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 940 infodir=$ac_optarg ;; 941 942 -libdir | --libdir | --libdi | --libd) 943 ac_prev=libdir ;; 944 -libdir=* | --libdir=* | --libdi=* | --libd=*) 945 libdir=$ac_optarg ;; 946 947 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 948 | --libexe | --libex | --libe) 949 ac_prev=libexecdir ;; 950 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 951 | --libexe=* | --libex=* | --libe=*) 952 libexecdir=$ac_optarg ;; 953 954 -localedir | --localedir | --localedi | --localed | --locale) 955 ac_prev=localedir ;; 956 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 957 localedir=$ac_optarg ;; 958 959 -localstatedir | --localstatedir | --localstatedi | --localstated \ 960 | --localstate | --localstat | --localsta | --localst | --locals) 961 ac_prev=localstatedir ;; 962 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 963 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 964 localstatedir=$ac_optarg ;; 965 966 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 967 ac_prev=mandir ;; 968 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 969 mandir=$ac_optarg ;; 970 971 -nfp | --nfp | --nf) 972 # Obsolete; use --without-fp. 973 with_fp=no ;; 974 975 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 976 | --no-cr | --no-c | -n) 977 no_create=yes ;; 978 979 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 980 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 981 no_recursion=yes ;; 982 983 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 984 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 985 | --oldin | --oldi | --old | --ol | --o) 986 ac_prev=oldincludedir ;; 987 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 988 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 989 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 990 oldincludedir=$ac_optarg ;; 991 992 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 993 ac_prev=prefix ;; 994 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 995 prefix=$ac_optarg ;; 996 997 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 998 | --program-pre | --program-pr | --program-p) 999 ac_prev=program_prefix ;; 1000 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1001 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1002 program_prefix=$ac_optarg ;; 1003 1004 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1005 | --program-suf | --program-su | --program-s) 1006 ac_prev=program_suffix ;; 1007 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1008 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1009 program_suffix=$ac_optarg ;; 1010 1011 -program-transform-name | --program-transform-name \ 1012 | --program-transform-nam | --program-transform-na \ 1013 | --program-transform-n | --program-transform- \ 1014 | --program-transform | --program-transfor \ 1015 | --program-transfo | --program-transf \ 1016 | --program-trans | --program-tran \ 1017 | --progr-tra | --program-tr | --program-t) 1018 ac_prev=program_transform_name ;; 1019 -program-transform-name=* | --program-transform-name=* \ 1020 | --program-transform-nam=* | --program-transform-na=* \ 1021 | --program-transform-n=* | --program-transform-=* \ 1022 | --program-transform=* | --program-transfor=* \ 1023 | --program-transfo=* | --program-transf=* \ 1024 | --program-trans=* | --program-tran=* \ 1025 | --progr-tra=* | --program-tr=* | --program-t=*) 1026 program_transform_name=$ac_optarg ;; 1027 1028 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1029 ac_prev=pdfdir ;; 1030 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1031 pdfdir=$ac_optarg ;; 1032 1033 -psdir | --psdir | --psdi | --psd | --ps) 1034 ac_prev=psdir ;; 1035 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1036 psdir=$ac_optarg ;; 1037 1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1039 | -silent | --silent | --silen | --sile | --sil) 1040 silent=yes ;; 1041 1042 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1043 ac_prev=sbindir ;; 1044 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1045 | --sbi=* | --sb=*) 1046 sbindir=$ac_optarg ;; 1047 1048 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1049 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1050 | --sharedst | --shareds | --shared | --share | --shar \ 1051 | --sha | --sh) 1052 ac_prev=sharedstatedir ;; 1053 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1054 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1055 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1056 | --sha=* | --sh=*) 1057 sharedstatedir=$ac_optarg ;; 1058 1059 -site | --site | --sit) 1060 ac_prev=site ;; 1061 -site=* | --site=* | --sit=*) 1062 site=$ac_optarg ;; 1063 1064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1065 ac_prev=srcdir ;; 1066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1067 srcdir=$ac_optarg ;; 1068 1069 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1070 | --syscon | --sysco | --sysc | --sys | --sy) 1071 ac_prev=sysconfdir ;; 1072 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1073 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1074 sysconfdir=$ac_optarg ;; 1075 1076 -target | --target | --targe | --targ | --tar | --ta | --t) 1077 ac_prev=target_alias ;; 1078 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1079 target_alias=$ac_optarg ;; 1080 1081 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1082 verbose=yes ;; 1083 1084 -version | --version | --versio | --versi | --vers | -V) 1085 ac_init_version=: ;; 1086 1087 -with-* | --with-*) 1088 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1089 # Reject names that are not valid shell variable names. 1090 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1091 { echo "$as_me: error: invalid package name: $ac_package" >&2 1092 { (exit 1); exit 1; }; } 1093 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1094 eval with_$ac_package=\$ac_optarg ;; 1095 1096 -without-* | --without-*) 1097 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1098 # Reject names that are not valid shell variable names. 1099 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1100 { echo "$as_me: error: invalid package name: $ac_package" >&2 1101 { (exit 1); exit 1; }; } 1102 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1103 eval with_$ac_package=no ;; 1104 1105 --x) 1106 # Obsolete; use --with-x. 1107 with_x=yes ;; 1108 1109 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1110 | --x-incl | --x-inc | --x-in | --x-i) 1111 ac_prev=x_includes ;; 1112 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1113 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1114 x_includes=$ac_optarg ;; 1115 1116 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1117 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1118 ac_prev=x_libraries ;; 1119 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1120 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1121 x_libraries=$ac_optarg ;; 1122 1123 -*) { echo "$as_me: error: unrecognized option: $ac_option 1124Try \`$0 --help' for more information." >&2 1125 { (exit 1); exit 1; }; } 1126 ;; 1127 1128 *=*) 1129 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1130 # Reject names that are not valid shell variable names. 1131 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1132 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1133 { (exit 1); exit 1; }; } 1134 eval $ac_envvar=\$ac_optarg 1135 export $ac_envvar ;; 1136 1137 *) 1138 # FIXME: should be removed in autoconf 3.0. 1139 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1140 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1141 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1142 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1143 ;; 1144 1145 esac 1146done 1147 1148if test -n "$ac_prev"; then 1149 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1150 { echo "$as_me: error: missing argument to $ac_option" >&2 1151 { (exit 1); exit 1; }; } 1152fi 1153 1154# Be sure to have absolute directory names. 1155for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1156 datadir sysconfdir sharedstatedir localstatedir includedir \ 1157 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1158 libdir localedir mandir 1159do 1160 eval ac_val=\$$ac_var 1161 case $ac_val in 1162 [\\/$]* | ?:[\\/]* ) continue;; 1163 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1164 esac 1165 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1166 { (exit 1); exit 1; }; } 1167done 1168 1169# There might be people who depend on the old broken behavior: `$host' 1170# used to hold the argument of --host etc. 1171# FIXME: To remove some day. 1172build=$build_alias 1173host=$host_alias 1174target=$target_alias 1175 1176# FIXME: To remove some day. 1177if test "x$host_alias" != x; then 1178 if test "x$build_alias" = x; then 1179 cross_compiling=maybe 1180 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1181 If a cross compiler is detected then cross compile mode will be used." >&2 1182 elif test "x$build_alias" != "x$host_alias"; then 1183 cross_compiling=yes 1184 fi 1185fi 1186 1187ac_tool_prefix= 1188test -n "$host_alias" && ac_tool_prefix=$host_alias- 1189 1190test "$silent" = yes && exec 6>/dev/null 1191 1192 1193ac_pwd=`pwd` && test -n "$ac_pwd" && 1194ac_ls_di=`ls -di .` && 1195ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1196 { echo "$as_me: error: Working directory cannot be determined" >&2 1197 { (exit 1); exit 1; }; } 1198test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1199 { echo "$as_me: error: pwd does not report name of working directory" >&2 1200 { (exit 1); exit 1; }; } 1201 1202 1203# Find the source files, if location was not specified. 1204if test -z "$srcdir"; then 1205 ac_srcdir_defaulted=yes 1206 # Try the directory containing this script, then the parent directory. 1207 ac_confdir=`$as_dirname -- "$0" || 1208$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1209 X"$0" : 'X\(//\)[^/]' \| \ 1210 X"$0" : 'X\(//\)$' \| \ 1211 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1212echo X"$0" | 1213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1214 s//\1/ 1215 q 1216 } 1217 /^X\(\/\/\)[^/].*/{ 1218 s//\1/ 1219 q 1220 } 1221 /^X\(\/\/\)$/{ 1222 s//\1/ 1223 q 1224 } 1225 /^X\(\/\).*/{ 1226 s//\1/ 1227 q 1228 } 1229 s/.*/./; q'` 1230 srcdir=$ac_confdir 1231 if test ! -r "$srcdir/$ac_unique_file"; then 1232 srcdir=.. 1233 fi 1234else 1235 ac_srcdir_defaulted=no 1236fi 1237if test ! -r "$srcdir/$ac_unique_file"; then 1238 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1239 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1240 { (exit 1); exit 1; }; } 1241fi 1242ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1243ac_abs_confdir=`( 1244 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1245 { (exit 1); exit 1; }; } 1246 pwd)` 1247# When building in place, set srcdir=. 1248if test "$ac_abs_confdir" = "$ac_pwd"; then 1249 srcdir=. 1250fi 1251# Remove unnecessary trailing slashes from srcdir. 1252# Double slashes in file names in object file debugging info 1253# mess up M-x gdb in Emacs. 1254case $srcdir in 1255*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1256esac 1257for ac_var in $ac_precious_vars; do 1258 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1259 eval ac_env_${ac_var}_value=\$${ac_var} 1260 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1261 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1262done 1263 1264# 1265# Report the --help message. 1266# 1267if test "$ac_init_help" = "long"; then 1268 # Omit some internal or obsolete options to make the list less imposing. 1269 # This message is too long to be a string in the A/UX 3.1 sh. 1270 cat <<_ACEOF 1271\`configure' configures tkimgjpeg 1.4 to adapt to many kinds of systems. 1272 1273Usage: $0 [OPTION]... [VAR=VALUE]... 1274 1275To assign environment variables (e.g., CC, CFLAGS...), specify them as 1276VAR=VALUE. See below for descriptions of some of the useful variables. 1277 1278Defaults for the options are specified in brackets. 1279 1280Configuration: 1281 -h, --help display this help and exit 1282 --help=short display options specific to this package 1283 --help=recursive display the short help of all the included packages 1284 -V, --version display version information and exit 1285 -q, --quiet, --silent do not print \`checking...' messages 1286 --cache-file=FILE cache test results in FILE [disabled] 1287 -C, --config-cache alias for \`--cache-file=config.cache' 1288 -n, --no-create do not create output files 1289 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1290 1291Installation directories: 1292 --prefix=PREFIX install architecture-independent files in PREFIX 1293 [$ac_default_prefix] 1294 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1295 [PREFIX] 1296 1297By default, \`make install' will install all the files in 1298\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1299an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1300for instance \`--prefix=\$HOME'. 1301 1302For better control, use the options below. 1303 1304Fine tuning of the installation directories: 1305 --bindir=DIR user executables [EPREFIX/bin] 1306 --sbindir=DIR system admin executables [EPREFIX/sbin] 1307 --libexecdir=DIR program executables [EPREFIX/libexec] 1308 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1309 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1310 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1311 --libdir=DIR object code libraries [EPREFIX/lib] 1312 --includedir=DIR C header files [PREFIX/include] 1313 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1314 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1315 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1316 --infodir=DIR info documentation [DATAROOTDIR/info] 1317 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1318 --mandir=DIR man documentation [DATAROOTDIR/man] 1319 --docdir=DIR documentation root [DATAROOTDIR/doc/tkimgjpeg] 1320 --htmldir=DIR html documentation [DOCDIR] 1321 --dvidir=DIR dvi documentation [DOCDIR] 1322 --pdfdir=DIR pdf documentation [DOCDIR] 1323 --psdir=DIR ps documentation [DOCDIR] 1324_ACEOF 1325 1326 cat <<\_ACEOF 1327 1328X features: 1329 --x-includes=DIR X include files are in DIR 1330 --x-libraries=DIR X library files are in DIR 1331_ACEOF 1332fi 1333 1334if test -n "$ac_init_help"; then 1335 case $ac_init_help in 1336 short | recursive ) echo "Configuration of tkimgjpeg 1.4:";; 1337 esac 1338 cat <<\_ACEOF 1339 1340Optional Features: 1341 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1342 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1343 --enable-threads build with threads 1344 --enable-shared build and link with shared libraries (default: on) 1345 --enable-64bit enable 64bit support (default: off) 1346 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1347 --disable-rpath disable rpath support (default: on) 1348 --enable-wince enable Win/CE support (where applicable) 1349 --enable-symbols build with debugging symbols (default: off) 1350 1351Optional Packages: 1352 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1353 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1354 --with-tcl directory containing tcl configuration 1355 (tclConfig.sh) 1356 --with-tk directory containing tk configuration (tkConfig.sh) 1357 --with-tkimg directory containing tkimg configuration (tkimgConfig.sh) 1358 --with-jpegtcl directory containing jpegtcl configuration (jpegtclConfig.sh) 1359 --with-tclinclude directory containing the public Tcl header files 1360 --with-tkinclude directory containing the public Tk header files 1361 --with-celib=DIR use Windows/CE support library from DIR 1362 --with-x use the X Window System 1363 1364Some influential environment variables: 1365 CC C compiler command 1366 CFLAGS C compiler flags 1367 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1368 nonstandard directory <lib dir> 1369 LIBS libraries to pass to the linker, e.g. -l<library> 1370 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1371 you have headers in a nonstandard directory <include dir> 1372 CPP C preprocessor 1373 XMKMF Path to xmkmf, Makefile generator for X Window System 1374 1375Use these variables to override the choices made by `configure' or to help 1376it to find libraries and programs with nonstandard names/locations. 1377 1378_ACEOF 1379ac_status=$? 1380fi 1381 1382if test "$ac_init_help" = "recursive"; then 1383 # If there are subdirs, report their specific --help. 1384 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1385 test -d "$ac_dir" || continue 1386 ac_builddir=. 1387 1388case "$ac_dir" in 1389.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1390*) 1391 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1392 # A ".." for each directory in $ac_dir_suffix. 1393 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1394 case $ac_top_builddir_sub in 1395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1397 esac ;; 1398esac 1399ac_abs_top_builddir=$ac_pwd 1400ac_abs_builddir=$ac_pwd$ac_dir_suffix 1401# for backward compatibility: 1402ac_top_builddir=$ac_top_build_prefix 1403 1404case $srcdir in 1405 .) # We are building in place. 1406 ac_srcdir=. 1407 ac_top_srcdir=$ac_top_builddir_sub 1408 ac_abs_top_srcdir=$ac_pwd ;; 1409 [\\/]* | ?:[\\/]* ) # Absolute name. 1410 ac_srcdir=$srcdir$ac_dir_suffix; 1411 ac_top_srcdir=$srcdir 1412 ac_abs_top_srcdir=$srcdir ;; 1413 *) # Relative name. 1414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1415 ac_top_srcdir=$ac_top_build_prefix$srcdir 1416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1417esac 1418ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1419 1420 cd "$ac_dir" || { ac_status=$?; continue; } 1421 # Check for guested configure. 1422 if test -f "$ac_srcdir/configure.gnu"; then 1423 echo && 1424 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1425 elif test -f "$ac_srcdir/configure"; then 1426 echo && 1427 $SHELL "$ac_srcdir/configure" --help=recursive 1428 else 1429 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1430 fi || ac_status=$? 1431 cd "$ac_pwd" || { ac_status=$?; break; } 1432 done 1433fi 1434 1435test -n "$ac_init_help" && exit $ac_status 1436if $ac_init_version; then 1437 cat <<\_ACEOF 1438tkimgjpeg configure 1.4 1439generated by GNU Autoconf 2.61 1440 1441Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14422002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1443This configure script is free software; the Free Software Foundation 1444gives unlimited permission to copy, distribute and modify it. 1445_ACEOF 1446 exit 1447fi 1448cat >config.log <<_ACEOF 1449This file contains any messages produced by compilers while 1450running configure, to aid debugging if configure makes a mistake. 1451 1452It was created by tkimgjpeg $as_me 1.4, which was 1453generated by GNU Autoconf 2.61. Invocation command line was 1454 1455 $ $0 $@ 1456 1457_ACEOF 1458exec 5>>config.log 1459{ 1460cat <<_ASUNAME 1461## --------- ## 1462## Platform. ## 1463## --------- ## 1464 1465hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1466uname -m = `(uname -m) 2>/dev/null || echo unknown` 1467uname -r = `(uname -r) 2>/dev/null || echo unknown` 1468uname -s = `(uname -s) 2>/dev/null || echo unknown` 1469uname -v = `(uname -v) 2>/dev/null || echo unknown` 1470 1471/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1472/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1473 1474/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1475/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1476/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1477/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1478/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1479/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1480/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1481 1482_ASUNAME 1483 1484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1485for as_dir in $PATH 1486do 1487 IFS=$as_save_IFS 1488 test -z "$as_dir" && as_dir=. 1489 echo "PATH: $as_dir" 1490done 1491IFS=$as_save_IFS 1492 1493} >&5 1494 1495cat >&5 <<_ACEOF 1496 1497 1498## ----------- ## 1499## Core tests. ## 1500## ----------- ## 1501 1502_ACEOF 1503 1504 1505# Keep a trace of the command line. 1506# Strip out --no-create and --no-recursion so they do not pile up. 1507# Strip out --silent because we don't want to record it for future runs. 1508# Also quote any args containing shell meta-characters. 1509# Make two passes to allow for proper duplicate-argument suppression. 1510ac_configure_args= 1511ac_configure_args0= 1512ac_configure_args1= 1513ac_must_keep_next=false 1514for ac_pass in 1 2 1515do 1516 for ac_arg 1517 do 1518 case $ac_arg in 1519 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1521 | -silent | --silent | --silen | --sile | --sil) 1522 continue ;; 1523 *\'*) 1524 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1525 esac 1526 case $ac_pass in 1527 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1528 2) 1529 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1530 if test $ac_must_keep_next = true; then 1531 ac_must_keep_next=false # Got value, back to normal. 1532 else 1533 case $ac_arg in 1534 *=* | --config-cache | -C | -disable-* | --disable-* \ 1535 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1536 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1537 | -with-* | --with-* | -without-* | --without-* | --x) 1538 case "$ac_configure_args0 " in 1539 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1540 esac 1541 ;; 1542 -* ) ac_must_keep_next=true ;; 1543 esac 1544 fi 1545 ac_configure_args="$ac_configure_args '$ac_arg'" 1546 ;; 1547 esac 1548 done 1549done 1550$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1551$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1552 1553# When interrupted or exit'd, cleanup temporary files, and complete 1554# config.log. We remove comments because anyway the quotes in there 1555# would cause problems or look ugly. 1556# WARNING: Use '\'' to represent an apostrophe within the trap. 1557# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1558trap 'exit_status=$? 1559 # Save into config.log some information that might help in debugging. 1560 { 1561 echo 1562 1563 cat <<\_ASBOX 1564## ---------------- ## 1565## Cache variables. ## 1566## ---------------- ## 1567_ASBOX 1568 echo 1569 # The following way of writing the cache mishandles newlines in values, 1570( 1571 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1572 eval ac_val=\$$ac_var 1573 case $ac_val in #( 1574 *${as_nl}*) 1575 case $ac_var in #( 1576 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1577echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1578 esac 1579 case $ac_var in #( 1580 _ | IFS | as_nl) ;; #( 1581 *) $as_unset $ac_var ;; 1582 esac ;; 1583 esac 1584 done 1585 (set) 2>&1 | 1586 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1587 *${as_nl}ac_space=\ *) 1588 sed -n \ 1589 "s/'\''/'\''\\\\'\'''\''/g; 1590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1591 ;; #( 1592 *) 1593 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1594 ;; 1595 esac | 1596 sort 1597) 1598 echo 1599 1600 cat <<\_ASBOX 1601## ----------------- ## 1602## Output variables. ## 1603## ----------------- ## 1604_ASBOX 1605 echo 1606 for ac_var in $ac_subst_vars 1607 do 1608 eval ac_val=\$$ac_var 1609 case $ac_val in 1610 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1611 esac 1612 echo "$ac_var='\''$ac_val'\''" 1613 done | sort 1614 echo 1615 1616 if test -n "$ac_subst_files"; then 1617 cat <<\_ASBOX 1618## ------------------- ## 1619## File substitutions. ## 1620## ------------------- ## 1621_ASBOX 1622 echo 1623 for ac_var in $ac_subst_files 1624 do 1625 eval ac_val=\$$ac_var 1626 case $ac_val in 1627 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1628 esac 1629 echo "$ac_var='\''$ac_val'\''" 1630 done | sort 1631 echo 1632 fi 1633 1634 if test -s confdefs.h; then 1635 cat <<\_ASBOX 1636## ----------- ## 1637## confdefs.h. ## 1638## ----------- ## 1639_ASBOX 1640 echo 1641 cat confdefs.h 1642 echo 1643 fi 1644 test "$ac_signal" != 0 && 1645 echo "$as_me: caught signal $ac_signal" 1646 echo "$as_me: exit $exit_status" 1647 } >&5 1648 rm -f core *.core core.conftest.* && 1649 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1650 exit $exit_status 1651' 0 1652for ac_signal in 1 2 13 15; do 1653 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1654done 1655ac_signal=0 1656 1657# confdefs.h avoids OS command line length limits that DEFS can exceed. 1658rm -f -r conftest* confdefs.h 1659 1660# Predefined preprocessor variables. 1661 1662cat >>confdefs.h <<_ACEOF 1663#define PACKAGE_NAME "$PACKAGE_NAME" 1664_ACEOF 1665 1666 1667cat >>confdefs.h <<_ACEOF 1668#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1669_ACEOF 1670 1671 1672cat >>confdefs.h <<_ACEOF 1673#define PACKAGE_VERSION "$PACKAGE_VERSION" 1674_ACEOF 1675 1676 1677cat >>confdefs.h <<_ACEOF 1678#define PACKAGE_STRING "$PACKAGE_STRING" 1679_ACEOF 1680 1681 1682cat >>confdefs.h <<_ACEOF 1683#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1684_ACEOF 1685 1686 1687# Let the site file select an alternate cache file if it wants to. 1688# Prefer explicitly selected file to automatically selected ones. 1689if test -n "$CONFIG_SITE"; then 1690 set x "$CONFIG_SITE" 1691elif test "x$prefix" != xNONE; then 1692 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1693else 1694 set x "$ac_default_prefix/share/config.site" \ 1695 "$ac_default_prefix/etc/config.site" 1696fi 1697shift 1698for ac_site_file 1699do 1700 if test -r "$ac_site_file"; then 1701 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1702echo "$as_me: loading site script $ac_site_file" >&6;} 1703 sed 's/^/| /' "$ac_site_file" >&5 1704 . "$ac_site_file" 1705 fi 1706done 1707 1708if test -r "$cache_file"; then 1709 # Some versions of bash will fail to source /dev/null (special 1710 # files actually), so we avoid doing that. 1711 if test -f "$cache_file"; then 1712 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1713echo "$as_me: loading cache $cache_file" >&6;} 1714 case $cache_file in 1715 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1716 *) . "./$cache_file";; 1717 esac 1718 fi 1719else 1720 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1721echo "$as_me: creating cache $cache_file" >&6;} 1722 >$cache_file 1723fi 1724 1725# Check that the precious variables saved in the cache have kept the same 1726# value. 1727ac_cache_corrupted=false 1728for ac_var in $ac_precious_vars; do 1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1730 eval ac_new_set=\$ac_env_${ac_var}_set 1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1732 eval ac_new_val=\$ac_env_${ac_var}_value 1733 case $ac_old_set,$ac_new_set in 1734 set,) 1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1736echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1737 ac_cache_corrupted=: ;; 1738 ,set) 1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1740echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1741 ac_cache_corrupted=: ;; 1742 ,);; 1743 *) 1744 if test "x$ac_old_val" != "x$ac_new_val"; then 1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1746echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1747 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1748echo "$as_me: former value: $ac_old_val" >&2;} 1749 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1750echo "$as_me: current value: $ac_new_val" >&2;} 1751 ac_cache_corrupted=: 1752 fi;; 1753 esac 1754 # Pass precious variables to config.status. 1755 if test "$ac_new_set" = set; then 1756 case $ac_new_val in 1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1758 *) ac_arg=$ac_var=$ac_new_val ;; 1759 esac 1760 case " $ac_configure_args " in 1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1763 esac 1764 fi 1765done 1766if $ac_cache_corrupted; then 1767 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1768echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1769 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1770echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1771 { (exit 1); exit 1; }; } 1772fi 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798ac_ext=c 1799ac_cpp='$CPP $CPPFLAGS' 1800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1802ac_compiler_gnu=$ac_cv_c_compiler_gnu 1803 1804 1805 1806 1807 # TEA extensions pass this us the version of TEA they think they 1808 # are compatible with. 1809 TEA_VERSION="3.9" 1810 1811 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1812echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1813 if test x"${PACKAGE_NAME}" = x ; then 1814 { { echo "$as_me:$LINENO: error: 1815The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1816echo "$as_me: error: 1817The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1818 { (exit 1); exit 1; }; } 1819 fi 1820 if test x"3.9" = x ; then 1821 { { echo "$as_me:$LINENO: error: 1822TEA version not specified." >&5 1823echo "$as_me: error: 1824TEA version not specified." >&2;} 1825 { (exit 1); exit 1; }; } 1826 elif test "3.9" != "${TEA_VERSION}" ; then 1827 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1828echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1829 else 1830 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1831echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1832 fi 1833 case "`uname -s`" in 1834 *win32*|*WIN32*|*MINGW32_*) 1835 # Extract the first word of "cygpath", so it can be a program name with args. 1836set dummy cygpath; ac_word=$2 1837{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1839if test "${ac_cv_prog_CYGPATH+set}" = set; then 1840 echo $ECHO_N "(cached) $ECHO_C" >&6 1841else 1842 if test -n "$CYGPATH"; then 1843 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1844else 1845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1846for as_dir in $PATH 1847do 1848 IFS=$as_save_IFS 1849 test -z "$as_dir" && as_dir=. 1850 for ac_exec_ext in '' $ac_executable_extensions; do 1851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1852 ac_cv_prog_CYGPATH="cygpath -w" 1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1854 break 2 1855 fi 1856done 1857done 1858IFS=$as_save_IFS 1859 1860 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1861fi 1862fi 1863CYGPATH=$ac_cv_prog_CYGPATH 1864if test -n "$CYGPATH"; then 1865 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1866echo "${ECHO_T}$CYGPATH" >&6; } 1867else 1868 { echo "$as_me:$LINENO: result: no" >&5 1869echo "${ECHO_T}no" >&6; } 1870fi 1871 1872 1873 EXEEXT=".exe" 1874 TEA_PLATFORM="windows" 1875 ;; 1876 *CYGWIN_*) 1877 CYGPATH=echo 1878 EXEEXT=".exe" 1879 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1880 ;; 1881 *) 1882 CYGPATH=echo 1883 EXEEXT="" 1884 TEA_PLATFORM="unix" 1885 ;; 1886 esac 1887 1888 # Check if exec_prefix is set. If not use fall back to prefix. 1889 # Note when adjusted, so that TEA_PREFIX can correct for this. 1890 # This is needed for recursive configures, since autoconf propagates 1891 # $prefix, but not $exec_prefix (doh!). 1892 if test x$exec_prefix = xNONE ; then 1893 exec_prefix_default=yes 1894 exec_prefix=$prefix 1895 fi 1896 1897 1898 1899 1900 # This package name must be replaced statically for AC_SUBST to work 1901 1902 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1903 1904 1905 # We AC_SUBST these here to ensure they are subst'ed, 1906 # in case the user doesn't call TEA_ADD_... 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916ac_aux_dir= 1917for ac_dir in ../tclconfig "$srcdir"/../tclconfig; do 1918 if test -f "$ac_dir/install-sh"; then 1919 ac_aux_dir=$ac_dir 1920 ac_install_sh="$ac_aux_dir/install-sh -c" 1921 break 1922 elif test -f "$ac_dir/install.sh"; then 1923 ac_aux_dir=$ac_dir 1924 ac_install_sh="$ac_aux_dir/install.sh -c" 1925 break 1926 elif test -f "$ac_dir/shtool"; then 1927 ac_aux_dir=$ac_dir 1928 ac_install_sh="$ac_aux_dir/shtool install -c" 1929 break 1930 fi 1931done 1932if test -z "$ac_aux_dir"; then 1933 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&5 1934echo "$as_me: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&2;} 1935 { (exit 1); exit 1; }; } 1936fi 1937 1938# These three variables are undocumented and unsupported, 1939# and are intended to be withdrawn in a future Autoconf release. 1940# They can cause serious problems if a builder's source tree is in a directory 1941# whose full name contains unusual characters. 1942ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1943ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1944ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1945 1946 1947 1948PHIMGTYPE="jpeg" 1949CPACKAGE="Tkimgjpeg" 1950PACKAGE_TCLNAME="img::jpeg" 1951 1952 1953#-------------------------------------------------------------------- 1954# Load the tclConfig.sh file 1955# Load the tkConfig.sh file 1956#-------------------------------------------------------------------- 1957 1958 1959 1960 # 1961 # Ok, lets find the tcl configuration 1962 # First, look for one uninstalled. 1963 # the alternative search directory is invoked by --with-tcl 1964 # 1965 1966 if test x"${no_tcl}" = x ; then 1967 # we reset no_tcl in case something fails here 1968 no_tcl=true 1969 1970# Check whether --with-tcl was given. 1971if test "${with_tcl+set}" = set; then 1972 withval=$with_tcl; with_tclconfig="${withval}" 1973fi 1974 1975 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1976echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1977 if test "${ac_cv_c_tclconfig+set}" = set; then 1978 echo $ECHO_N "(cached) $ECHO_C" >&6 1979else 1980 1981 1982 # First check to see if --with-tcl was specified. 1983 if test x"${with_tclconfig}" != x ; then 1984 case "${with_tclconfig}" in 1985 */tclConfig.sh ) 1986 if test -f "${with_tclconfig}"; then 1987 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1988echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1989 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1990 fi ;; 1991 esac 1992 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1993 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1994 else 1995 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1996echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1997 { (exit 1); exit 1; }; } 1998 fi 1999 fi 2000 2001 # then check for a private Tcl installation 2002 if test x"${ac_cv_c_tclconfig}" = x ; then 2003 for i in \ 2004 ../tcl \ 2005 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2006 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 2007 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 2008 ../../tcl \ 2009 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2010 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 2011 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 2012 ../../../tcl \ 2013 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2014 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2015 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2016 if test "${TEA_PLATFORM}" = "windows" \ 2017 -a -f "$i/win/tclConfig.sh" ; then 2018 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2019 break 2020 fi 2021 if test -f "$i/unix/tclConfig.sh" ; then 2022 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2023 break 2024 fi 2025 done 2026 fi 2027 2028 # on Darwin, check in Framework installation locations 2029 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2030 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2031 `ls -d /Library/Frameworks 2>/dev/null` \ 2032 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2033 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2034 ; do 2035 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2036 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2037 break 2038 fi 2039 done 2040 fi 2041 2042 # TEA specific: on Windows, check in common installation locations 2043 if test "${TEA_PLATFORM}" = "windows" \ 2044 -a x"${ac_cv_c_tclconfig}" = x ; then 2045 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2046 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2047 ; do 2048 if test -f "$i/tclConfig.sh" ; then 2049 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2050 break 2051 fi 2052 done 2053 fi 2054 2055 # check in a few common install locations 2056 if test x"${ac_cv_c_tclconfig}" = x ; then 2057 for i in `ls -d ${libdir} 2>/dev/null` \ 2058 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2059 `ls -d ${prefix}/lib 2>/dev/null` \ 2060 `ls -d /usr/local/lib 2>/dev/null` \ 2061 `ls -d /usr/contrib/lib 2>/dev/null` \ 2062 `ls -d /usr/lib 2>/dev/null` \ 2063 `ls -d /usr/lib64 2>/dev/null` \ 2064 ; do 2065 if test -f "$i/tclConfig.sh" ; then 2066 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2067 break 2068 fi 2069 done 2070 fi 2071 2072 # check in a few other private locations 2073 if test x"${ac_cv_c_tclconfig}" = x ; then 2074 for i in \ 2075 ${srcdir}/../tcl \ 2076 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2077 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2078 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2079 if test "${TEA_PLATFORM}" = "windows" \ 2080 -a -f "$i/win/tclConfig.sh" ; then 2081 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2082 break 2083 fi 2084 if test -f "$i/unix/tclConfig.sh" ; then 2085 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2086 break 2087 fi 2088 done 2089 fi 2090 2091fi 2092 2093 2094 if test x"${ac_cv_c_tclconfig}" = x ; then 2095 TCL_BIN_DIR="# no Tcl configs found" 2096 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2097echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2098 { (exit 1); exit 1; }; } 2099 else 2100 no_tcl= 2101 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2102 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2103echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2104 fi 2105 fi 2106 2107 2108 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2109echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2110 2111 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2112 { echo "$as_me:$LINENO: result: loading" >&5 2113echo "${ECHO_T}loading" >&6; } 2114 . "${TCL_BIN_DIR}/tclConfig.sh" 2115 else 2116 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2117echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2118 fi 2119 2120 # eval is required to do the TCL_DBGX substitution 2121 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2122 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2123 2124 # If the TCL_BIN_DIR is the build directory (not the install directory), 2125 # then set the common variable name to the value of the build variables. 2126 # For example, the variable TCL_LIB_SPEC will be set to the value 2127 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2128 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2129 # installed and uninstalled version of Tcl. 2130 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2131 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2132 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2133 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2134 elif test "`uname -s`" = "Darwin"; then 2135 # If Tcl was built as a framework, attempt to use the libraries 2136 # from the framework at the given location so that linking works 2137 # against Tcl.framework installed in an arbitrary location. 2138 case ${TCL_DEFS} in 2139 *TCL_FRAMEWORK*) 2140 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2141 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2142 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2143 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2144 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2145 break 2146 fi 2147 done 2148 fi 2149 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2150 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2151 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2152 fi 2153 ;; 2154 esac 2155 fi 2156 2157 # eval is required to do the TCL_DBGX substitution 2158 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2159 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2160 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2161 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 case "`uname -s`" in 2177 *CYGWIN_*) 2178 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2179echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2180 case ${TCL_EXTRA_CFLAGS} in 2181 *-mwin32*|*-mno-cygwin*) 2182 TEA_PLATFORM="windows" 2183 CFLAGS="$CFLAGS -mwin32" 2184 { echo "$as_me:$LINENO: result: win32" >&5 2185echo "${ECHO_T}win32" >&6; } 2186 ;; 2187 *) 2188 TEA_PLATFORM="unix" 2189 { echo "$as_me:$LINENO: result: unix" >&5 2190echo "${ECHO_T}unix" >&6; } 2191 ;; 2192 esac 2193 EXEEXT=".exe" 2194 ;; 2195 *) 2196 ;; 2197 esac 2198 2199 # Do this here as we have fully defined TEA_PLATFORM now 2200 if test "${TEA_PLATFORM}" = "windows" ; then 2201 # The BUILD_$pkg is to define the correct extern storage class 2202 # handling when making this package 2203 2204cat >>confdefs.h <<_ACEOF 2205#define BUILD_${PACKAGE_NAME} 2206_ACEOF 2207 2208 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2209 fi 2210 2211 # TEA specific: 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 # 2222 # Ok, lets find the tk configuration 2223 # First, look for one uninstalled. 2224 # the alternative search directory is invoked by --with-tk 2225 # 2226 2227 if test x"${no_tk}" = x ; then 2228 # we reset no_tk in case something fails here 2229 no_tk=true 2230 2231# Check whether --with-tk was given. 2232if test "${with_tk+set}" = set; then 2233 withval=$with_tk; with_tkconfig="${withval}" 2234fi 2235 2236 { echo "$as_me:$LINENO: checking for Tk configuration" >&5 2237echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6; } 2238 if test "${ac_cv_c_tkconfig+set}" = set; then 2239 echo $ECHO_N "(cached) $ECHO_C" >&6 2240else 2241 2242 2243 # First check to see if --with-tkconfig was specified. 2244 if test x"${with_tkconfig}" != x ; then 2245 case "${with_tkconfig}" in 2246 */tkConfig.sh ) 2247 if test -f "${with_tkconfig}"; then 2248 { echo "$as_me:$LINENO: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5 2249echo "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;} 2250 with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`" 2251 fi ;; 2252 esac 2253 if test -f "${with_tkconfig}/tkConfig.sh" ; then 2254 ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`" 2255 else 2256 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 2257echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} 2258 { (exit 1); exit 1; }; } 2259 fi 2260 fi 2261 2262 # then check for a private Tk library 2263 if test x"${ac_cv_c_tkconfig}" = x ; then 2264 for i in \ 2265 ../tk \ 2266 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2267 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ 2268 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ 2269 ../../tk \ 2270 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2271 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ 2272 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ 2273 ../../../tk \ 2274 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2275 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ 2276 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do 2277 if test "${TEA_PLATFORM}" = "windows" \ 2278 -a -f "$i/win/tkConfig.sh" ; then 2279 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2280 break 2281 fi 2282 if test -f "$i/unix/tkConfig.sh" ; then 2283 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2284 break 2285 fi 2286 done 2287 fi 2288 2289 # on Darwin, check in Framework installation locations 2290 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then 2291 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2292 `ls -d /Library/Frameworks 2>/dev/null` \ 2293 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2294 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2295 ; do 2296 if test -f "$i/Tk.framework/tkConfig.sh" ; then 2297 ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`" 2298 break 2299 fi 2300 done 2301 fi 2302 2303 # check in a few common install locations 2304 if test x"${ac_cv_c_tkconfig}" = x ; then 2305 for i in `ls -d ${libdir} 2>/dev/null` \ 2306 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2307 `ls -d ${prefix}/lib 2>/dev/null` \ 2308 `ls -d /usr/local/lib 2>/dev/null` \ 2309 `ls -d /usr/contrib/lib 2>/dev/null` \ 2310 `ls -d /usr/lib 2>/dev/null` \ 2311 `ls -d /usr/lib64 2>/dev/null` \ 2312 ; do 2313 if test -f "$i/tkConfig.sh" ; then 2314 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2315 break 2316 fi 2317 done 2318 fi 2319 2320 # TEA specific: on Windows, check in common installation locations 2321 if test "${TEA_PLATFORM}" = "windows" \ 2322 -a x"${ac_cv_c_tkconfig}" = x ; then 2323 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2324 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2325 ; do 2326 if test -f "$i/tkConfig.sh" ; then 2327 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2328 break 2329 fi 2330 done 2331 fi 2332 2333 # check in a few other private locations 2334 if test x"${ac_cv_c_tkconfig}" = x ; then 2335 for i in \ 2336 ${srcdir}/../tk \ 2337 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2338 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ 2339 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do 2340 if test "${TEA_PLATFORM}" = "windows" \ 2341 -a -f "$i/win/tkConfig.sh" ; then 2342 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2343 break 2344 fi 2345 if test -f "$i/unix/tkConfig.sh" ; then 2346 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2347 break 2348 fi 2349 done 2350 fi 2351 2352fi 2353 2354 2355 if test x"${ac_cv_c_tkconfig}" = x ; then 2356 TK_BIN_DIR="# no Tk configs found" 2357 { { echo "$as_me:$LINENO: error: Can't find Tk configuration definitions" >&5 2358echo "$as_me: error: Can't find Tk configuration definitions" >&2;} 2359 { (exit 1); exit 1; }; } 2360 else 2361 no_tk= 2362 TK_BIN_DIR="${ac_cv_c_tkconfig}" 2363 { echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 2364echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2365 fi 2366 fi 2367 2368 2369 { echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 2370echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6; } 2371 2372 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then 2373 { echo "$as_me:$LINENO: result: loading" >&5 2374echo "${ECHO_T}loading" >&6; } 2375 . "${TK_BIN_DIR}/tkConfig.sh" 2376 else 2377 { echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 2378echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2379 fi 2380 2381 # eval is required to do the TK_DBGX substitution 2382 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" 2383 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" 2384 2385 # If the TK_BIN_DIR is the build directory (not the install directory), 2386 # then set the common variable name to the value of the build variables. 2387 # For example, the variable TK_LIB_SPEC will be set to the value 2388 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC 2389 # instead of TK_BUILD_LIB_SPEC since it will work with both an 2390 # installed and uninstalled version of Tcl. 2391 if test -f "${TK_BIN_DIR}/Makefile" ; then 2392 TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}" 2393 TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}" 2394 TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}" 2395 elif test "`uname -s`" = "Darwin"; then 2396 # If Tk was built as a framework, attempt to use the libraries 2397 # from the framework at the given location so that linking works 2398 # against Tk.framework installed in an arbitrary location. 2399 case ${TK_DEFS} in 2400 *TK_FRAMEWORK*) 2401 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then 2402 for i in "`cd "${TK_BIN_DIR}"; pwd`" \ 2403 "`cd "${TK_BIN_DIR}"/../..; pwd`"; do 2404 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then 2405 TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}" 2406 break 2407 fi 2408 done 2409 fi 2410 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then 2411 TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}" 2412 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" 2413 fi 2414 ;; 2415 esac 2416 fi 2417 2418 # eval is required to do the TK_DBGX substitution 2419 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" 2420 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" 2421 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" 2422 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" 2423 2424 # TEA specific: Ensure windowingsystem is defined 2425 if test "${TEA_PLATFORM}" = "unix" ; then 2426 case ${TK_DEFS} in 2427 *MAC_OSX_TK*) 2428 2429cat >>confdefs.h <<\_ACEOF 2430#define MAC_OSX_TK 1 2431_ACEOF 2432 2433 TEA_WINDOWINGSYSTEM="aqua" 2434 ;; 2435 *) 2436 TEA_WINDOWINGSYSTEM="x11" 2437 ;; 2438 esac 2439 elif test "${TEA_PLATFORM}" = "windows" ; then 2440 TEA_WINDOWINGSYSTEM="win32" 2441 fi 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 # TEA specific: 2456 2457 2458 2459 2460#----------------------------------------------------------------------- 2461# Handle the --prefix=... option by defaulting to what Tcl gave. 2462# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2463#----------------------------------------------------------------------- 2464 2465 2466 if test "${prefix}" = "NONE"; then 2467 prefix_default=yes 2468 if test x"${TCL_PREFIX}" != x; then 2469 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2470echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2471 prefix=${TCL_PREFIX} 2472 else 2473 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2474echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2475 prefix=/usr/local 2476 fi 2477 fi 2478 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2479 -o x"${exec_prefix_default}" = x"yes" ; then 2480 if test x"${TCL_EXEC_PREFIX}" != x; then 2481 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2482echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2483 exec_prefix=${TCL_EXEC_PREFIX} 2484 else 2485 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2486echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2487 exec_prefix=$prefix 2488 fi 2489 fi 2490 2491 2492#----------------------------------------------------------------------- 2493# Standard compiler checks. 2494# This sets up CC by using the CC env var, or looks for gcc otherwise. 2495# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2496# the basic setup necessary to compile executables. 2497#----------------------------------------------------------------------- 2498 2499 2500 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2501 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2502 2503 # If the user did not set CFLAGS, set it now to keep 2504 # the AC_PROG_CC macro from adding "-g -O2". 2505 if test "${CFLAGS+set}" != "set" ; then 2506 CFLAGS="" 2507 fi 2508 2509 ac_ext=c 2510ac_cpp='$CPP $CPPFLAGS' 2511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2513ac_compiler_gnu=$ac_cv_c_compiler_gnu 2514if test -n "$ac_tool_prefix"; then 2515 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2516set dummy ${ac_tool_prefix}gcc; ac_word=$2 2517{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2519if test "${ac_cv_prog_CC+set}" = set; then 2520 echo $ECHO_N "(cached) $ECHO_C" >&6 2521else 2522 if test -n "$CC"; then 2523 ac_cv_prog_CC="$CC" # Let the user override the test. 2524else 2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2526for as_dir in $PATH 2527do 2528 IFS=$as_save_IFS 2529 test -z "$as_dir" && as_dir=. 2530 for ac_exec_ext in '' $ac_executable_extensions; do 2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2532 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2534 break 2 2535 fi 2536done 2537done 2538IFS=$as_save_IFS 2539 2540fi 2541fi 2542CC=$ac_cv_prog_CC 2543if test -n "$CC"; then 2544 { echo "$as_me:$LINENO: result: $CC" >&5 2545echo "${ECHO_T}$CC" >&6; } 2546else 2547 { echo "$as_me:$LINENO: result: no" >&5 2548echo "${ECHO_T}no" >&6; } 2549fi 2550 2551 2552fi 2553if test -z "$ac_cv_prog_CC"; then 2554 ac_ct_CC=$CC 2555 # Extract the first word of "gcc", so it can be a program name with args. 2556set dummy gcc; ac_word=$2 2557{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2559if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2560 echo $ECHO_N "(cached) $ECHO_C" >&6 2561else 2562 if test -n "$ac_ct_CC"; then 2563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2564else 2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2566for as_dir in $PATH 2567do 2568 IFS=$as_save_IFS 2569 test -z "$as_dir" && as_dir=. 2570 for ac_exec_ext in '' $ac_executable_extensions; do 2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2572 ac_cv_prog_ac_ct_CC="gcc" 2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2574 break 2 2575 fi 2576done 2577done 2578IFS=$as_save_IFS 2579 2580fi 2581fi 2582ac_ct_CC=$ac_cv_prog_ac_ct_CC 2583if test -n "$ac_ct_CC"; then 2584 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2585echo "${ECHO_T}$ac_ct_CC" >&6; } 2586else 2587 { echo "$as_me:$LINENO: result: no" >&5 2588echo "${ECHO_T}no" >&6; } 2589fi 2590 2591 if test "x$ac_ct_CC" = x; then 2592 CC="" 2593 else 2594 case $cross_compiling:$ac_tool_warned in 2595yes:) 2596{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2597whose name does not start with the host triplet. If you think this 2598configuration is useful to you, please write to autoconf@gnu.org." >&5 2599echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2600whose name does not start with the host triplet. If you think this 2601configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2602ac_tool_warned=yes ;; 2603esac 2604 CC=$ac_ct_CC 2605 fi 2606else 2607 CC="$ac_cv_prog_CC" 2608fi 2609 2610if test -z "$CC"; then 2611 if test -n "$ac_tool_prefix"; then 2612 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2613set dummy ${ac_tool_prefix}cc; ac_word=$2 2614{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2616if test "${ac_cv_prog_CC+set}" = set; then 2617 echo $ECHO_N "(cached) $ECHO_C" >&6 2618else 2619 if test -n "$CC"; then 2620 ac_cv_prog_CC="$CC" # Let the user override the test. 2621else 2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2623for as_dir in $PATH 2624do 2625 IFS=$as_save_IFS 2626 test -z "$as_dir" && as_dir=. 2627 for ac_exec_ext in '' $ac_executable_extensions; do 2628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2629 ac_cv_prog_CC="${ac_tool_prefix}cc" 2630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2631 break 2 2632 fi 2633done 2634done 2635IFS=$as_save_IFS 2636 2637fi 2638fi 2639CC=$ac_cv_prog_CC 2640if test -n "$CC"; then 2641 { echo "$as_me:$LINENO: result: $CC" >&5 2642echo "${ECHO_T}$CC" >&6; } 2643else 2644 { echo "$as_me:$LINENO: result: no" >&5 2645echo "${ECHO_T}no" >&6; } 2646fi 2647 2648 2649 fi 2650fi 2651if test -z "$CC"; then 2652 # Extract the first word of "cc", so it can be a program name with args. 2653set dummy cc; ac_word=$2 2654{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2656if test "${ac_cv_prog_CC+set}" = set; then 2657 echo $ECHO_N "(cached) $ECHO_C" >&6 2658else 2659 if test -n "$CC"; then 2660 ac_cv_prog_CC="$CC" # Let the user override the test. 2661else 2662 ac_prog_rejected=no 2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2664for as_dir in $PATH 2665do 2666 IFS=$as_save_IFS 2667 test -z "$as_dir" && as_dir=. 2668 for ac_exec_ext in '' $ac_executable_extensions; do 2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2670 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2671 ac_prog_rejected=yes 2672 continue 2673 fi 2674 ac_cv_prog_CC="cc" 2675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2676 break 2 2677 fi 2678done 2679done 2680IFS=$as_save_IFS 2681 2682if test $ac_prog_rejected = yes; then 2683 # We found a bogon in the path, so make sure we never use it. 2684 set dummy $ac_cv_prog_CC 2685 shift 2686 if test $# != 0; then 2687 # We chose a different compiler from the bogus one. 2688 # However, it has the same basename, so the bogon will be chosen 2689 # first if we set CC to just the basename; use the full file name. 2690 shift 2691 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2692 fi 2693fi 2694fi 2695fi 2696CC=$ac_cv_prog_CC 2697if test -n "$CC"; then 2698 { echo "$as_me:$LINENO: result: $CC" >&5 2699echo "${ECHO_T}$CC" >&6; } 2700else 2701 { echo "$as_me:$LINENO: result: no" >&5 2702echo "${ECHO_T}no" >&6; } 2703fi 2704 2705 2706fi 2707if test -z "$CC"; then 2708 if test -n "$ac_tool_prefix"; then 2709 for ac_prog in cl.exe 2710 do 2711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2712set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2713{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2715if test "${ac_cv_prog_CC+set}" = set; then 2716 echo $ECHO_N "(cached) $ECHO_C" >&6 2717else 2718 if test -n "$CC"; then 2719 ac_cv_prog_CC="$CC" # Let the user override the test. 2720else 2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2722for as_dir in $PATH 2723do 2724 IFS=$as_save_IFS 2725 test -z "$as_dir" && as_dir=. 2726 for ac_exec_ext in '' $ac_executable_extensions; do 2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2728 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2730 break 2 2731 fi 2732done 2733done 2734IFS=$as_save_IFS 2735 2736fi 2737fi 2738CC=$ac_cv_prog_CC 2739if test -n "$CC"; then 2740 { echo "$as_me:$LINENO: result: $CC" >&5 2741echo "${ECHO_T}$CC" >&6; } 2742else 2743 { echo "$as_me:$LINENO: result: no" >&5 2744echo "${ECHO_T}no" >&6; } 2745fi 2746 2747 2748 test -n "$CC" && break 2749 done 2750fi 2751if test -z "$CC"; then 2752 ac_ct_CC=$CC 2753 for ac_prog in cl.exe 2754do 2755 # Extract the first word of "$ac_prog", so it can be a program name with args. 2756set dummy $ac_prog; ac_word=$2 2757{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2759if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2760 echo $ECHO_N "(cached) $ECHO_C" >&6 2761else 2762 if test -n "$ac_ct_CC"; then 2763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2764else 2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2766for as_dir in $PATH 2767do 2768 IFS=$as_save_IFS 2769 test -z "$as_dir" && as_dir=. 2770 for ac_exec_ext in '' $ac_executable_extensions; do 2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2772 ac_cv_prog_ac_ct_CC="$ac_prog" 2773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2774 break 2 2775 fi 2776done 2777done 2778IFS=$as_save_IFS 2779 2780fi 2781fi 2782ac_ct_CC=$ac_cv_prog_ac_ct_CC 2783if test -n "$ac_ct_CC"; then 2784 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2785echo "${ECHO_T}$ac_ct_CC" >&6; } 2786else 2787 { echo "$as_me:$LINENO: result: no" >&5 2788echo "${ECHO_T}no" >&6; } 2789fi 2790 2791 2792 test -n "$ac_ct_CC" && break 2793done 2794 2795 if test "x$ac_ct_CC" = x; then 2796 CC="" 2797 else 2798 case $cross_compiling:$ac_tool_warned in 2799yes:) 2800{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2801whose name does not start with the host triplet. If you think this 2802configuration is useful to you, please write to autoconf@gnu.org." >&5 2803echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2804whose name does not start with the host triplet. If you think this 2805configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2806ac_tool_warned=yes ;; 2807esac 2808 CC=$ac_ct_CC 2809 fi 2810fi 2811 2812fi 2813 2814 2815test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2816See \`config.log' for more details." >&5 2817echo "$as_me: error: no acceptable C compiler found in \$PATH 2818See \`config.log' for more details." >&2;} 2819 { (exit 1); exit 1; }; } 2820 2821# Provide some information about the compiler. 2822echo "$as_me:$LINENO: checking for C compiler version" >&5 2823ac_compiler=`set X $ac_compile; echo $2` 2824{ (ac_try="$ac_compiler --version >&5" 2825case "(($ac_try" in 2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2827 *) ac_try_echo=$ac_try;; 2828esac 2829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2830 (eval "$ac_compiler --version >&5") 2>&5 2831 ac_status=$? 2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2833 (exit $ac_status); } 2834{ (ac_try="$ac_compiler -v >&5" 2835case "(($ac_try" in 2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2837 *) ac_try_echo=$ac_try;; 2838esac 2839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2840 (eval "$ac_compiler -v >&5") 2>&5 2841 ac_status=$? 2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2843 (exit $ac_status); } 2844{ (ac_try="$ac_compiler -V >&5" 2845case "(($ac_try" in 2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2847 *) ac_try_echo=$ac_try;; 2848esac 2849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2850 (eval "$ac_compiler -V >&5") 2>&5 2851 ac_status=$? 2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2853 (exit $ac_status); } 2854 2855cat >conftest.$ac_ext <<_ACEOF 2856/* confdefs.h. */ 2857_ACEOF 2858cat confdefs.h >>conftest.$ac_ext 2859cat >>conftest.$ac_ext <<_ACEOF 2860/* end confdefs.h. */ 2861 2862int 2863main () 2864{ 2865 2866 ; 2867 return 0; 2868} 2869_ACEOF 2870ac_clean_files_save=$ac_clean_files 2871ac_clean_files="$ac_clean_files a.out a.exe b.out" 2872# Try to create an executable without -o first, disregard a.out. 2873# It will help us diagnose broken compilers, and finding out an intuition 2874# of exeext. 2875{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2876echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2877ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2878# 2879# List of possible output files, starting from the most likely. 2880# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2881# only as a last resort. b.out is created by i960 compilers. 2882ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2883# 2884# The IRIX 6 linker writes into existing files which may not be 2885# executable, retaining their permissions. Remove them first so a 2886# subsequent execution test works. 2887ac_rmfiles= 2888for ac_file in $ac_files 2889do 2890 case $ac_file in 2891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2892 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2893 esac 2894done 2895rm -f $ac_rmfiles 2896 2897if { (ac_try="$ac_link_default" 2898case "(($ac_try" in 2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2900 *) ac_try_echo=$ac_try;; 2901esac 2902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2903 (eval "$ac_link_default") 2>&5 2904 ac_status=$? 2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2906 (exit $ac_status); }; then 2907 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2908# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2909# in a Makefile. We should not override ac_cv_exeext if it was cached, 2910# so that the user can short-circuit this test for compilers unknown to 2911# Autoconf. 2912for ac_file in $ac_files '' 2913do 2914 test -f "$ac_file" || continue 2915 case $ac_file in 2916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2917 ;; 2918 [ab].out ) 2919 # We found the default executable, but exeext='' is most 2920 # certainly right. 2921 break;; 2922 *.* ) 2923 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2924 then :; else 2925 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2926 fi 2927 # We set ac_cv_exeext here because the later test for it is not 2928 # safe: cross compilers may not add the suffix if given an `-o' 2929 # argument, so we may need to know it at that point already. 2930 # Even if this section looks crufty: it has the advantage of 2931 # actually working. 2932 break;; 2933 * ) 2934 break;; 2935 esac 2936done 2937test "$ac_cv_exeext" = no && ac_cv_exeext= 2938 2939else 2940 ac_file='' 2941fi 2942 2943{ echo "$as_me:$LINENO: result: $ac_file" >&5 2944echo "${ECHO_T}$ac_file" >&6; } 2945if test -z "$ac_file"; then 2946 echo "$as_me: failed program was:" >&5 2947sed 's/^/| /' conftest.$ac_ext >&5 2948 2949{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2950See \`config.log' for more details." >&5 2951echo "$as_me: error: C compiler cannot create executables 2952See \`config.log' for more details." >&2;} 2953 { (exit 77); exit 77; }; } 2954fi 2955 2956ac_exeext=$ac_cv_exeext 2957 2958# Check that the compiler produces executables we can run. If not, either 2959# the compiler is broken, or we cross compile. 2960{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2961echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2962# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2963# If not cross compiling, check that we can run a simple program. 2964if test "$cross_compiling" != yes; then 2965 if { ac_try='./$ac_file' 2966 { (case "(($ac_try" in 2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2968 *) ac_try_echo=$ac_try;; 2969esac 2970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2971 (eval "$ac_try") 2>&5 2972 ac_status=$? 2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2974 (exit $ac_status); }; }; then 2975 cross_compiling=no 2976 else 2977 if test "$cross_compiling" = maybe; then 2978 cross_compiling=yes 2979 else 2980 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2981If you meant to cross compile, use \`--host'. 2982See \`config.log' for more details." >&5 2983echo "$as_me: error: cannot run C compiled programs. 2984If you meant to cross compile, use \`--host'. 2985See \`config.log' for more details." >&2;} 2986 { (exit 1); exit 1; }; } 2987 fi 2988 fi 2989fi 2990{ echo "$as_me:$LINENO: result: yes" >&5 2991echo "${ECHO_T}yes" >&6; } 2992 2993rm -f a.out a.exe conftest$ac_cv_exeext b.out 2994ac_clean_files=$ac_clean_files_save 2995# Check that the compiler produces executables we can run. If not, either 2996# the compiler is broken, or we cross compile. 2997{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2998echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2999{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3000echo "${ECHO_T}$cross_compiling" >&6; } 3001 3002{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3003echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3004if { (ac_try="$ac_link" 3005case "(($ac_try" in 3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3007 *) ac_try_echo=$ac_try;; 3008esac 3009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3010 (eval "$ac_link") 2>&5 3011 ac_status=$? 3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3013 (exit $ac_status); }; then 3014 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3015# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3016# work properly (i.e., refer to `conftest.exe'), while it won't with 3017# `rm'. 3018for ac_file in conftest.exe conftest conftest.*; do 3019 test -f "$ac_file" || continue 3020 case $ac_file in 3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3023 break;; 3024 * ) break;; 3025 esac 3026done 3027else 3028 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3029See \`config.log' for more details." >&5 3030echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3031See \`config.log' for more details." >&2;} 3032 { (exit 1); exit 1; }; } 3033fi 3034 3035rm -f conftest$ac_cv_exeext 3036{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3037echo "${ECHO_T}$ac_cv_exeext" >&6; } 3038 3039rm -f conftest.$ac_ext 3040EXEEXT=$ac_cv_exeext 3041ac_exeext=$EXEEXT 3042{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3043echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3044if test "${ac_cv_objext+set}" = set; then 3045 echo $ECHO_N "(cached) $ECHO_C" >&6 3046else 3047 cat >conftest.$ac_ext <<_ACEOF 3048/* confdefs.h. */ 3049_ACEOF 3050cat confdefs.h >>conftest.$ac_ext 3051cat >>conftest.$ac_ext <<_ACEOF 3052/* end confdefs.h. */ 3053 3054int 3055main () 3056{ 3057 3058 ; 3059 return 0; 3060} 3061_ACEOF 3062rm -f conftest.o conftest.obj 3063if { (ac_try="$ac_compile" 3064case "(($ac_try" in 3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3066 *) ac_try_echo=$ac_try;; 3067esac 3068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3069 (eval "$ac_compile") 2>&5 3070 ac_status=$? 3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3072 (exit $ac_status); }; then 3073 for ac_file in conftest.o conftest.obj conftest.*; do 3074 test -f "$ac_file" || continue; 3075 case $ac_file in 3076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3077 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3078 break;; 3079 esac 3080done 3081else 3082 echo "$as_me: failed program was:" >&5 3083sed 's/^/| /' conftest.$ac_ext >&5 3084 3085{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3086See \`config.log' for more details." >&5 3087echo "$as_me: error: cannot compute suffix of object files: cannot compile 3088See \`config.log' for more details." >&2;} 3089 { (exit 1); exit 1; }; } 3090fi 3091 3092rm -f conftest.$ac_cv_objext conftest.$ac_ext 3093fi 3094{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3095echo "${ECHO_T}$ac_cv_objext" >&6; } 3096OBJEXT=$ac_cv_objext 3097ac_objext=$OBJEXT 3098{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3099echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3100if test "${ac_cv_c_compiler_gnu+set}" = set; then 3101 echo $ECHO_N "(cached) $ECHO_C" >&6 3102else 3103 cat >conftest.$ac_ext <<_ACEOF 3104/* confdefs.h. */ 3105_ACEOF 3106cat confdefs.h >>conftest.$ac_ext 3107cat >>conftest.$ac_ext <<_ACEOF 3108/* end confdefs.h. */ 3109 3110int 3111main () 3112{ 3113#ifndef __GNUC__ 3114 choke me 3115#endif 3116 3117 ; 3118 return 0; 3119} 3120_ACEOF 3121rm -f conftest.$ac_objext 3122if { (ac_try="$ac_compile" 3123case "(($ac_try" in 3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3125 *) ac_try_echo=$ac_try;; 3126esac 3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3128 (eval "$ac_compile") 2>conftest.er1 3129 ac_status=$? 3130 grep -v '^ *+' conftest.er1 >conftest.err 3131 rm -f conftest.er1 3132 cat conftest.err >&5 3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3134 (exit $ac_status); } && { 3135 test -z "$ac_c_werror_flag" || 3136 test ! -s conftest.err 3137 } && test -s conftest.$ac_objext; then 3138 ac_compiler_gnu=yes 3139else 3140 echo "$as_me: failed program was:" >&5 3141sed 's/^/| /' conftest.$ac_ext >&5 3142 3143 ac_compiler_gnu=no 3144fi 3145 3146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3147ac_cv_c_compiler_gnu=$ac_compiler_gnu 3148 3149fi 3150{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3151echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3152GCC=`test $ac_compiler_gnu = yes && echo yes` 3153ac_test_CFLAGS=${CFLAGS+set} 3154ac_save_CFLAGS=$CFLAGS 3155{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3156echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3157if test "${ac_cv_prog_cc_g+set}" = set; then 3158 echo $ECHO_N "(cached) $ECHO_C" >&6 3159else 3160 ac_save_c_werror_flag=$ac_c_werror_flag 3161 ac_c_werror_flag=yes 3162 ac_cv_prog_cc_g=no 3163 CFLAGS="-g" 3164 cat >conftest.$ac_ext <<_ACEOF 3165/* confdefs.h. */ 3166_ACEOF 3167cat confdefs.h >>conftest.$ac_ext 3168cat >>conftest.$ac_ext <<_ACEOF 3169/* end confdefs.h. */ 3170 3171int 3172main () 3173{ 3174 3175 ; 3176 return 0; 3177} 3178_ACEOF 3179rm -f conftest.$ac_objext 3180if { (ac_try="$ac_compile" 3181case "(($ac_try" in 3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3183 *) ac_try_echo=$ac_try;; 3184esac 3185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3186 (eval "$ac_compile") 2>conftest.er1 3187 ac_status=$? 3188 grep -v '^ *+' conftest.er1 >conftest.err 3189 rm -f conftest.er1 3190 cat conftest.err >&5 3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3192 (exit $ac_status); } && { 3193 test -z "$ac_c_werror_flag" || 3194 test ! -s conftest.err 3195 } && test -s conftest.$ac_objext; then 3196 ac_cv_prog_cc_g=yes 3197else 3198 echo "$as_me: failed program was:" >&5 3199sed 's/^/| /' conftest.$ac_ext >&5 3200 3201 CFLAGS="" 3202 cat >conftest.$ac_ext <<_ACEOF 3203/* confdefs.h. */ 3204_ACEOF 3205cat confdefs.h >>conftest.$ac_ext 3206cat >>conftest.$ac_ext <<_ACEOF 3207/* end confdefs.h. */ 3208 3209int 3210main () 3211{ 3212 3213 ; 3214 return 0; 3215} 3216_ACEOF 3217rm -f conftest.$ac_objext 3218if { (ac_try="$ac_compile" 3219case "(($ac_try" in 3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3221 *) ac_try_echo=$ac_try;; 3222esac 3223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3224 (eval "$ac_compile") 2>conftest.er1 3225 ac_status=$? 3226 grep -v '^ *+' conftest.er1 >conftest.err 3227 rm -f conftest.er1 3228 cat conftest.err >&5 3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3230 (exit $ac_status); } && { 3231 test -z "$ac_c_werror_flag" || 3232 test ! -s conftest.err 3233 } && test -s conftest.$ac_objext; then 3234 : 3235else 3236 echo "$as_me: failed program was:" >&5 3237sed 's/^/| /' conftest.$ac_ext >&5 3238 3239 ac_c_werror_flag=$ac_save_c_werror_flag 3240 CFLAGS="-g" 3241 cat >conftest.$ac_ext <<_ACEOF 3242/* confdefs.h. */ 3243_ACEOF 3244cat confdefs.h >>conftest.$ac_ext 3245cat >>conftest.$ac_ext <<_ACEOF 3246/* end confdefs.h. */ 3247 3248int 3249main () 3250{ 3251 3252 ; 3253 return 0; 3254} 3255_ACEOF 3256rm -f conftest.$ac_objext 3257if { (ac_try="$ac_compile" 3258case "(($ac_try" in 3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3260 *) ac_try_echo=$ac_try;; 3261esac 3262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3263 (eval "$ac_compile") 2>conftest.er1 3264 ac_status=$? 3265 grep -v '^ *+' conftest.er1 >conftest.err 3266 rm -f conftest.er1 3267 cat conftest.err >&5 3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3269 (exit $ac_status); } && { 3270 test -z "$ac_c_werror_flag" || 3271 test ! -s conftest.err 3272 } && test -s conftest.$ac_objext; then 3273 ac_cv_prog_cc_g=yes 3274else 3275 echo "$as_me: failed program was:" >&5 3276sed 's/^/| /' conftest.$ac_ext >&5 3277 3278 3279fi 3280 3281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3282fi 3283 3284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3285fi 3286 3287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3288 ac_c_werror_flag=$ac_save_c_werror_flag 3289fi 3290{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3291echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3292if test "$ac_test_CFLAGS" = set; then 3293 CFLAGS=$ac_save_CFLAGS 3294elif test $ac_cv_prog_cc_g = yes; then 3295 if test "$GCC" = yes; then 3296 CFLAGS="-g -O2" 3297 else 3298 CFLAGS="-g" 3299 fi 3300else 3301 if test "$GCC" = yes; then 3302 CFLAGS="-O2" 3303 else 3304 CFLAGS= 3305 fi 3306fi 3307{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3308echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3309if test "${ac_cv_prog_cc_c89+set}" = set; then 3310 echo $ECHO_N "(cached) $ECHO_C" >&6 3311else 3312 ac_cv_prog_cc_c89=no 3313ac_save_CC=$CC 3314cat >conftest.$ac_ext <<_ACEOF 3315/* confdefs.h. */ 3316_ACEOF 3317cat confdefs.h >>conftest.$ac_ext 3318cat >>conftest.$ac_ext <<_ACEOF 3319/* end confdefs.h. */ 3320#include <stdarg.h> 3321#include <stdio.h> 3322#include <sys/types.h> 3323#include <sys/stat.h> 3324/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3325struct buf { int x; }; 3326FILE * (*rcsopen) (struct buf *, struct stat *, int); 3327static char *e (p, i) 3328 char **p; 3329 int i; 3330{ 3331 return p[i]; 3332} 3333static char *f (char * (*g) (char **, int), char **p, ...) 3334{ 3335 char *s; 3336 va_list v; 3337 va_start (v,p); 3338 s = g (p, va_arg (v,int)); 3339 va_end (v); 3340 return s; 3341} 3342 3343/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3344 function prototypes and stuff, but not '\xHH' hex character constants. 3345 These don't provoke an error unfortunately, instead are silently treated 3346 as 'x'. The following induces an error, until -std is added to get 3347 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3348 array size at least. It's necessary to write '\x00'==0 to get something 3349 that's true only with -std. */ 3350int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3351 3352/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3353 inside strings and character constants. */ 3354#define FOO(x) 'x' 3355int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3356 3357int test (int i, double x); 3358struct s1 {int (*f) (int a);}; 3359struct s2 {int (*f) (double a);}; 3360int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3361int argc; 3362char **argv; 3363int 3364main () 3365{ 3366return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3367 ; 3368 return 0; 3369} 3370_ACEOF 3371for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3372 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3373do 3374 CC="$ac_save_CC $ac_arg" 3375 rm -f conftest.$ac_objext 3376if { (ac_try="$ac_compile" 3377case "(($ac_try" in 3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3379 *) ac_try_echo=$ac_try;; 3380esac 3381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3382 (eval "$ac_compile") 2>conftest.er1 3383 ac_status=$? 3384 grep -v '^ *+' conftest.er1 >conftest.err 3385 rm -f conftest.er1 3386 cat conftest.err >&5 3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3388 (exit $ac_status); } && { 3389 test -z "$ac_c_werror_flag" || 3390 test ! -s conftest.err 3391 } && test -s conftest.$ac_objext; then 3392 ac_cv_prog_cc_c89=$ac_arg 3393else 3394 echo "$as_me: failed program was:" >&5 3395sed 's/^/| /' conftest.$ac_ext >&5 3396 3397 3398fi 3399 3400rm -f core conftest.err conftest.$ac_objext 3401 test "x$ac_cv_prog_cc_c89" != "xno" && break 3402done 3403rm -f conftest.$ac_ext 3404CC=$ac_save_CC 3405 3406fi 3407# AC_CACHE_VAL 3408case "x$ac_cv_prog_cc_c89" in 3409 x) 3410 { echo "$as_me:$LINENO: result: none needed" >&5 3411echo "${ECHO_T}none needed" >&6; } ;; 3412 xno) 3413 { echo "$as_me:$LINENO: result: unsupported" >&5 3414echo "${ECHO_T}unsupported" >&6; } ;; 3415 *) 3416 CC="$CC $ac_cv_prog_cc_c89" 3417 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3418echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3419esac 3420 3421 3422ac_ext=c 3423ac_cpp='$CPP $CPPFLAGS' 3424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3426ac_compiler_gnu=$ac_cv_c_compiler_gnu 3427 3428 ac_ext=c 3429ac_cpp='$CPP $CPPFLAGS' 3430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3432ac_compiler_gnu=$ac_cv_c_compiler_gnu 3433{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3434echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3435# On Suns, sometimes $CPP names a directory. 3436if test -n "$CPP" && test -d "$CPP"; then 3437 CPP= 3438fi 3439if test -z "$CPP"; then 3440 if test "${ac_cv_prog_CPP+set}" = set; then 3441 echo $ECHO_N "(cached) $ECHO_C" >&6 3442else 3443 # Double quotes because CPP needs to be expanded 3444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3445 do 3446 ac_preproc_ok=false 3447for ac_c_preproc_warn_flag in '' yes 3448do 3449 # Use a header file that comes with gcc, so configuring glibc 3450 # with a fresh cross-compiler works. 3451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3452 # <limits.h> exists even on freestanding compilers. 3453 # On the NeXT, cc -E runs the code through the compiler's parser, 3454 # not just through cpp. "Syntax error" is here to catch this case. 3455 cat >conftest.$ac_ext <<_ACEOF 3456/* confdefs.h. */ 3457_ACEOF 3458cat confdefs.h >>conftest.$ac_ext 3459cat >>conftest.$ac_ext <<_ACEOF 3460/* end confdefs.h. */ 3461#ifdef __STDC__ 3462# include <limits.h> 3463#else 3464# include <assert.h> 3465#endif 3466 Syntax error 3467_ACEOF 3468if { (ac_try="$ac_cpp conftest.$ac_ext" 3469case "(($ac_try" in 3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3471 *) ac_try_echo=$ac_try;; 3472esac 3473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3475 ac_status=$? 3476 grep -v '^ *+' conftest.er1 >conftest.err 3477 rm -f conftest.er1 3478 cat conftest.err >&5 3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3480 (exit $ac_status); } >/dev/null && { 3481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3482 test ! -s conftest.err 3483 }; then 3484 : 3485else 3486 echo "$as_me: failed program was:" >&5 3487sed 's/^/| /' conftest.$ac_ext >&5 3488 3489 # Broken: fails on valid input. 3490continue 3491fi 3492 3493rm -f conftest.err conftest.$ac_ext 3494 3495 # OK, works on sane cases. Now check whether nonexistent headers 3496 # can be detected and how. 3497 cat >conftest.$ac_ext <<_ACEOF 3498/* confdefs.h. */ 3499_ACEOF 3500cat confdefs.h >>conftest.$ac_ext 3501cat >>conftest.$ac_ext <<_ACEOF 3502/* end confdefs.h. */ 3503#include <ac_nonexistent.h> 3504_ACEOF 3505if { (ac_try="$ac_cpp conftest.$ac_ext" 3506case "(($ac_try" in 3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3508 *) ac_try_echo=$ac_try;; 3509esac 3510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3512 ac_status=$? 3513 grep -v '^ *+' conftest.er1 >conftest.err 3514 rm -f conftest.er1 3515 cat conftest.err >&5 3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3517 (exit $ac_status); } >/dev/null && { 3518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3519 test ! -s conftest.err 3520 }; then 3521 # Broken: success on invalid input. 3522continue 3523else 3524 echo "$as_me: failed program was:" >&5 3525sed 's/^/| /' conftest.$ac_ext >&5 3526 3527 # Passes both tests. 3528ac_preproc_ok=: 3529break 3530fi 3531 3532rm -f conftest.err conftest.$ac_ext 3533 3534done 3535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3536rm -f conftest.err conftest.$ac_ext 3537if $ac_preproc_ok; then 3538 break 3539fi 3540 3541 done 3542 ac_cv_prog_CPP=$CPP 3543 3544fi 3545 CPP=$ac_cv_prog_CPP 3546else 3547 ac_cv_prog_CPP=$CPP 3548fi 3549{ echo "$as_me:$LINENO: result: $CPP" >&5 3550echo "${ECHO_T}$CPP" >&6; } 3551ac_preproc_ok=false 3552for ac_c_preproc_warn_flag in '' yes 3553do 3554 # Use a header file that comes with gcc, so configuring glibc 3555 # with a fresh cross-compiler works. 3556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3557 # <limits.h> exists even on freestanding compilers. 3558 # On the NeXT, cc -E runs the code through the compiler's parser, 3559 # not just through cpp. "Syntax error" is here to catch this case. 3560 cat >conftest.$ac_ext <<_ACEOF 3561/* confdefs.h. */ 3562_ACEOF 3563cat confdefs.h >>conftest.$ac_ext 3564cat >>conftest.$ac_ext <<_ACEOF 3565/* end confdefs.h. */ 3566#ifdef __STDC__ 3567# include <limits.h> 3568#else 3569# include <assert.h> 3570#endif 3571 Syntax error 3572_ACEOF 3573if { (ac_try="$ac_cpp conftest.$ac_ext" 3574case "(($ac_try" in 3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3576 *) ac_try_echo=$ac_try;; 3577esac 3578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3580 ac_status=$? 3581 grep -v '^ *+' conftest.er1 >conftest.err 3582 rm -f conftest.er1 3583 cat conftest.err >&5 3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3585 (exit $ac_status); } >/dev/null && { 3586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3587 test ! -s conftest.err 3588 }; then 3589 : 3590else 3591 echo "$as_me: failed program was:" >&5 3592sed 's/^/| /' conftest.$ac_ext >&5 3593 3594 # Broken: fails on valid input. 3595continue 3596fi 3597 3598rm -f conftest.err conftest.$ac_ext 3599 3600 # OK, works on sane cases. Now check whether nonexistent headers 3601 # can be detected and how. 3602 cat >conftest.$ac_ext <<_ACEOF 3603/* confdefs.h. */ 3604_ACEOF 3605cat confdefs.h >>conftest.$ac_ext 3606cat >>conftest.$ac_ext <<_ACEOF 3607/* end confdefs.h. */ 3608#include <ac_nonexistent.h> 3609_ACEOF 3610if { (ac_try="$ac_cpp conftest.$ac_ext" 3611case "(($ac_try" in 3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3613 *) ac_try_echo=$ac_try;; 3614esac 3615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3617 ac_status=$? 3618 grep -v '^ *+' conftest.er1 >conftest.err 3619 rm -f conftest.er1 3620 cat conftest.err >&5 3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3622 (exit $ac_status); } >/dev/null && { 3623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3624 test ! -s conftest.err 3625 }; then 3626 # Broken: success on invalid input. 3627continue 3628else 3629 echo "$as_me: failed program was:" >&5 3630sed 's/^/| /' conftest.$ac_ext >&5 3631 3632 # Passes both tests. 3633ac_preproc_ok=: 3634break 3635fi 3636 3637rm -f conftest.err conftest.$ac_ext 3638 3639done 3640# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3641rm -f conftest.err conftest.$ac_ext 3642if $ac_preproc_ok; then 3643 : 3644else 3645 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3646See \`config.log' for more details." >&5 3647echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3648See \`config.log' for more details." >&2;} 3649 { (exit 1); exit 1; }; } 3650fi 3651 3652ac_ext=c 3653ac_cpp='$CPP $CPPFLAGS' 3654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3656ac_compiler_gnu=$ac_cv_c_compiler_gnu 3657 3658 3659 # Find a good install program. We prefer a C program (faster), 3660# so one script is as good as another. But avoid the broken or 3661# incompatible versions: 3662# SysV /etc/install, /usr/sbin/install 3663# SunOS /usr/etc/install 3664# IRIX /sbin/install 3665# AIX /bin/install 3666# AmigaOS /C/install, which installs bootblocks on floppy discs 3667# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3668# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3669# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3670# OS/2's system install, which has a completely different semantic 3671# ./install, which can be erroneously created by make from ./install.sh. 3672{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3673echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3674if test -z "$INSTALL"; then 3675if test "${ac_cv_path_install+set}" = set; then 3676 echo $ECHO_N "(cached) $ECHO_C" >&6 3677else 3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3679for as_dir in $PATH 3680do 3681 IFS=$as_save_IFS 3682 test -z "$as_dir" && as_dir=. 3683 # Account for people who put trailing slashes in PATH elements. 3684case $as_dir/ in 3685 ./ | .// | /cC/* | \ 3686 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3687 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3688 /usr/ucb/* ) ;; 3689 *) 3690 # OSF1 and SCO ODT 3.0 have their own names for install. 3691 # Don't use installbsd from OSF since it installs stuff as root 3692 # by default. 3693 for ac_prog in ginstall scoinst install; do 3694 for ac_exec_ext in '' $ac_executable_extensions; do 3695 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3696 if test $ac_prog = install && 3697 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3698 # AIX install. It has an incompatible calling convention. 3699 : 3700 elif test $ac_prog = install && 3701 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3702 # program-specific install script used by HP pwplus--don't use. 3703 : 3704 else 3705 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3706 break 3 3707 fi 3708 fi 3709 done 3710 done 3711 ;; 3712esac 3713done 3714IFS=$as_save_IFS 3715 3716 3717fi 3718 if test "${ac_cv_path_install+set}" = set; then 3719 INSTALL=$ac_cv_path_install 3720 else 3721 # As a last resort, use the slow shell script. Don't cache a 3722 # value for INSTALL within a source directory, because that will 3723 # break other packages using the cache if that directory is 3724 # removed, or if the value is a relative name. 3725 INSTALL=$ac_install_sh 3726 fi 3727fi 3728{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3729echo "${ECHO_T}$INSTALL" >&6; } 3730 3731# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3732# It thinks the first close brace ends the variable substitution. 3733test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3734 3735test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3736 3737test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3738 3739 3740 #-------------------------------------------------------------------- 3741 # Checks to see if the make program sets the $MAKE variable. 3742 #-------------------------------------------------------------------- 3743 3744 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3745echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3746set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3747if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3748 echo $ECHO_N "(cached) $ECHO_C" >&6 3749else 3750 cat >conftest.make <<\_ACEOF 3751SHELL = /bin/sh 3752all: 3753 @echo '@@@%%%=$(MAKE)=@@@%%%' 3754_ACEOF 3755# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3756case `${MAKE-make} -f conftest.make 2>/dev/null` in 3757 *@@@%%%=?*=@@@%%%*) 3758 eval ac_cv_prog_make_${ac_make}_set=yes;; 3759 *) 3760 eval ac_cv_prog_make_${ac_make}_set=no;; 3761esac 3762rm -f conftest.make 3763fi 3764if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3765 { echo "$as_me:$LINENO: result: yes" >&5 3766echo "${ECHO_T}yes" >&6; } 3767 SET_MAKE= 3768else 3769 { echo "$as_me:$LINENO: result: no" >&5 3770echo "${ECHO_T}no" >&6; } 3771 SET_MAKE="MAKE=${MAKE-make}" 3772fi 3773 3774 3775 #-------------------------------------------------------------------- 3776 # Find ranlib 3777 #-------------------------------------------------------------------- 3778 3779 if test -n "$ac_tool_prefix"; then 3780 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3781set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3782{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3784if test "${ac_cv_prog_RANLIB+set}" = set; then 3785 echo $ECHO_N "(cached) $ECHO_C" >&6 3786else 3787 if test -n "$RANLIB"; then 3788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3789else 3790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3791for as_dir in $PATH 3792do 3793 IFS=$as_save_IFS 3794 test -z "$as_dir" && as_dir=. 3795 for ac_exec_ext in '' $ac_executable_extensions; do 3796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3797 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3799 break 2 3800 fi 3801done 3802done 3803IFS=$as_save_IFS 3804 3805fi 3806fi 3807RANLIB=$ac_cv_prog_RANLIB 3808if test -n "$RANLIB"; then 3809 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3810echo "${ECHO_T}$RANLIB" >&6; } 3811else 3812 { echo "$as_me:$LINENO: result: no" >&5 3813echo "${ECHO_T}no" >&6; } 3814fi 3815 3816 3817fi 3818if test -z "$ac_cv_prog_RANLIB"; then 3819 ac_ct_RANLIB=$RANLIB 3820 # Extract the first word of "ranlib", so it can be a program name with args. 3821set dummy ranlib; ac_word=$2 3822{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3824if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3825 echo $ECHO_N "(cached) $ECHO_C" >&6 3826else 3827 if test -n "$ac_ct_RANLIB"; then 3828 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3829else 3830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3831for as_dir in $PATH 3832do 3833 IFS=$as_save_IFS 3834 test -z "$as_dir" && as_dir=. 3835 for ac_exec_ext in '' $ac_executable_extensions; do 3836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3837 ac_cv_prog_ac_ct_RANLIB="ranlib" 3838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3839 break 2 3840 fi 3841done 3842done 3843IFS=$as_save_IFS 3844 3845fi 3846fi 3847ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3848if test -n "$ac_ct_RANLIB"; then 3849 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3850echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3851else 3852 { echo "$as_me:$LINENO: result: no" >&5 3853echo "${ECHO_T}no" >&6; } 3854fi 3855 3856 if test "x$ac_ct_RANLIB" = x; then 3857 RANLIB=":" 3858 else 3859 case $cross_compiling:$ac_tool_warned in 3860yes:) 3861{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3862whose name does not start with the host triplet. If you think this 3863configuration is useful to you, please write to autoconf@gnu.org." >&5 3864echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3865whose name does not start with the host triplet. If you think this 3866configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3867ac_tool_warned=yes ;; 3868esac 3869 RANLIB=$ac_ct_RANLIB 3870 fi 3871else 3872 RANLIB="$ac_cv_prog_RANLIB" 3873fi 3874 3875 3876 #-------------------------------------------------------------------- 3877 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3878 #-------------------------------------------------------------------- 3879 3880 3881 3882 3883 3884 3885{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3886echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3887if test "${ac_cv_path_GREP+set}" = set; then 3888 echo $ECHO_N "(cached) $ECHO_C" >&6 3889else 3890 # Extract the first word of "grep ggrep" to use in msg output 3891if test -z "$GREP"; then 3892set dummy grep ggrep; ac_prog_name=$2 3893if test "${ac_cv_path_GREP+set}" = set; then 3894 echo $ECHO_N "(cached) $ECHO_C" >&6 3895else 3896 ac_path_GREP_found=false 3897# Loop through the user's path and test for each of PROGNAME-LIST 3898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3899for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3900do 3901 IFS=$as_save_IFS 3902 test -z "$as_dir" && as_dir=. 3903 for ac_prog in grep ggrep; do 3904 for ac_exec_ext in '' $ac_executable_extensions; do 3905 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3906 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3907 # Check for GNU ac_path_GREP and select it if it is found. 3908 # Check for GNU $ac_path_GREP 3909case `"$ac_path_GREP" --version 2>&1` in 3910*GNU*) 3911 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3912*) 3913 ac_count=0 3914 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3915 while : 3916 do 3917 cat "conftest.in" "conftest.in" >"conftest.tmp" 3918 mv "conftest.tmp" "conftest.in" 3919 cp "conftest.in" "conftest.nl" 3920 echo 'GREP' >> "conftest.nl" 3921 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3922 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3923 ac_count=`expr $ac_count + 1` 3924 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3925 # Best one so far, save it but keep looking for a better one 3926 ac_cv_path_GREP="$ac_path_GREP" 3927 ac_path_GREP_max=$ac_count 3928 fi 3929 # 10*(2^10) chars as input seems more than enough 3930 test $ac_count -gt 10 && break 3931 done 3932 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3933esac 3934 3935 3936 $ac_path_GREP_found && break 3 3937 done 3938done 3939 3940done 3941IFS=$as_save_IFS 3942 3943 3944fi 3945 3946GREP="$ac_cv_path_GREP" 3947if test -z "$GREP"; then 3948 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3949echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3950 { (exit 1); exit 1; }; } 3951fi 3952 3953else 3954 ac_cv_path_GREP=$GREP 3955fi 3956 3957 3958fi 3959{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3960echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3961 GREP="$ac_cv_path_GREP" 3962 3963 3964{ echo "$as_me:$LINENO: checking for egrep" >&5 3965echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3966if test "${ac_cv_path_EGREP+set}" = set; then 3967 echo $ECHO_N "(cached) $ECHO_C" >&6 3968else 3969 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3970 then ac_cv_path_EGREP="$GREP -E" 3971 else 3972 # Extract the first word of "egrep" to use in msg output 3973if test -z "$EGREP"; then 3974set dummy egrep; ac_prog_name=$2 3975if test "${ac_cv_path_EGREP+set}" = set; then 3976 echo $ECHO_N "(cached) $ECHO_C" >&6 3977else 3978 ac_path_EGREP_found=false 3979# Loop through the user's path and test for each of PROGNAME-LIST 3980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3981for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3982do 3983 IFS=$as_save_IFS 3984 test -z "$as_dir" && as_dir=. 3985 for ac_prog in egrep; do 3986 for ac_exec_ext in '' $ac_executable_extensions; do 3987 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3988 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3989 # Check for GNU ac_path_EGREP and select it if it is found. 3990 # Check for GNU $ac_path_EGREP 3991case `"$ac_path_EGREP" --version 2>&1` in 3992*GNU*) 3993 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3994*) 3995 ac_count=0 3996 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3997 while : 3998 do 3999 cat "conftest.in" "conftest.in" >"conftest.tmp" 4000 mv "conftest.tmp" "conftest.in" 4001 cp "conftest.in" "conftest.nl" 4002 echo 'EGREP' >> "conftest.nl" 4003 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4005 ac_count=`expr $ac_count + 1` 4006 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4007 # Best one so far, save it but keep looking for a better one 4008 ac_cv_path_EGREP="$ac_path_EGREP" 4009 ac_path_EGREP_max=$ac_count 4010 fi 4011 # 10*(2^10) chars as input seems more than enough 4012 test $ac_count -gt 10 && break 4013 done 4014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4015esac 4016 4017 4018 $ac_path_EGREP_found && break 3 4019 done 4020done 4021 4022done 4023IFS=$as_save_IFS 4024 4025 4026fi 4027 4028EGREP="$ac_cv_path_EGREP" 4029if test -z "$EGREP"; then 4030 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4031echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4032 { (exit 1); exit 1; }; } 4033fi 4034 4035else 4036 ac_cv_path_EGREP=$EGREP 4037fi 4038 4039 4040 fi 4041fi 4042{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4043echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4044 EGREP="$ac_cv_path_EGREP" 4045 4046 4047{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4048echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4049if test "${ac_cv_header_stdc+set}" = set; then 4050 echo $ECHO_N "(cached) $ECHO_C" >&6 4051else 4052 cat >conftest.$ac_ext <<_ACEOF 4053/* confdefs.h. */ 4054_ACEOF 4055cat confdefs.h >>conftest.$ac_ext 4056cat >>conftest.$ac_ext <<_ACEOF 4057/* end confdefs.h. */ 4058#include <stdlib.h> 4059#include <stdarg.h> 4060#include <string.h> 4061#include <float.h> 4062 4063int 4064main () 4065{ 4066 4067 ; 4068 return 0; 4069} 4070_ACEOF 4071rm -f conftest.$ac_objext 4072if { (ac_try="$ac_compile" 4073case "(($ac_try" in 4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4075 *) ac_try_echo=$ac_try;; 4076esac 4077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4078 (eval "$ac_compile") 2>conftest.er1 4079 ac_status=$? 4080 grep -v '^ *+' conftest.er1 >conftest.err 4081 rm -f conftest.er1 4082 cat conftest.err >&5 4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4084 (exit $ac_status); } && { 4085 test -z "$ac_c_werror_flag" || 4086 test ! -s conftest.err 4087 } && test -s conftest.$ac_objext; then 4088 ac_cv_header_stdc=yes 4089else 4090 echo "$as_me: failed program was:" >&5 4091sed 's/^/| /' conftest.$ac_ext >&5 4092 4093 ac_cv_header_stdc=no 4094fi 4095 4096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4097 4098if test $ac_cv_header_stdc = yes; then 4099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4100 cat >conftest.$ac_ext <<_ACEOF 4101/* confdefs.h. */ 4102_ACEOF 4103cat confdefs.h >>conftest.$ac_ext 4104cat >>conftest.$ac_ext <<_ACEOF 4105/* end confdefs.h. */ 4106#include <string.h> 4107 4108_ACEOF 4109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4110 $EGREP "memchr" >/dev/null 2>&1; then 4111 : 4112else 4113 ac_cv_header_stdc=no 4114fi 4115rm -f -r conftest* 4116 4117fi 4118 4119if test $ac_cv_header_stdc = yes; then 4120 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4121 cat >conftest.$ac_ext <<_ACEOF 4122/* confdefs.h. */ 4123_ACEOF 4124cat confdefs.h >>conftest.$ac_ext 4125cat >>conftest.$ac_ext <<_ACEOF 4126/* end confdefs.h. */ 4127#include <stdlib.h> 4128 4129_ACEOF 4130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4131 $EGREP "free" >/dev/null 2>&1; then 4132 : 4133else 4134 ac_cv_header_stdc=no 4135fi 4136rm -f -r conftest* 4137 4138fi 4139 4140if test $ac_cv_header_stdc = yes; then 4141 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4142 if test "$cross_compiling" = yes; then 4143 : 4144else 4145 cat >conftest.$ac_ext <<_ACEOF 4146/* confdefs.h. */ 4147_ACEOF 4148cat confdefs.h >>conftest.$ac_ext 4149cat >>conftest.$ac_ext <<_ACEOF 4150/* end confdefs.h. */ 4151#include <ctype.h> 4152#include <stdlib.h> 4153#if ((' ' & 0x0FF) == 0x020) 4154# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4155# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4156#else 4157# define ISLOWER(c) \ 4158 (('a' <= (c) && (c) <= 'i') \ 4159 || ('j' <= (c) && (c) <= 'r') \ 4160 || ('s' <= (c) && (c) <= 'z')) 4161# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4162#endif 4163 4164#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4165int 4166main () 4167{ 4168 int i; 4169 for (i = 0; i < 256; i++) 4170 if (XOR (islower (i), ISLOWER (i)) 4171 || toupper (i) != TOUPPER (i)) 4172 return 2; 4173 return 0; 4174} 4175_ACEOF 4176rm -f conftest$ac_exeext 4177if { (ac_try="$ac_link" 4178case "(($ac_try" in 4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4180 *) ac_try_echo=$ac_try;; 4181esac 4182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4183 (eval "$ac_link") 2>&5 4184 ac_status=$? 4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4187 { (case "(($ac_try" in 4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4189 *) ac_try_echo=$ac_try;; 4190esac 4191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4192 (eval "$ac_try") 2>&5 4193 ac_status=$? 4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4195 (exit $ac_status); }; }; then 4196 : 4197else 4198 echo "$as_me: program exited with status $ac_status" >&5 4199echo "$as_me: failed program was:" >&5 4200sed 's/^/| /' conftest.$ac_ext >&5 4201 4202( exit $ac_status ) 4203ac_cv_header_stdc=no 4204fi 4205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4206fi 4207 4208 4209fi 4210fi 4211{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4212echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4213if test $ac_cv_header_stdc = yes; then 4214 4215cat >>confdefs.h <<\_ACEOF 4216#define STDC_HEADERS 1 4217_ACEOF 4218 4219fi 4220 4221# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4232 inttypes.h stdint.h unistd.h 4233do 4234as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4235{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4238 echo $ECHO_N "(cached) $ECHO_C" >&6 4239else 4240 cat >conftest.$ac_ext <<_ACEOF 4241/* confdefs.h. */ 4242_ACEOF 4243cat confdefs.h >>conftest.$ac_ext 4244cat >>conftest.$ac_ext <<_ACEOF 4245/* end confdefs.h. */ 4246$ac_includes_default 4247 4248#include <$ac_header> 4249_ACEOF 4250rm -f conftest.$ac_objext 4251if { (ac_try="$ac_compile" 4252case "(($ac_try" in 4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4254 *) ac_try_echo=$ac_try;; 4255esac 4256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4257 (eval "$ac_compile") 2>conftest.er1 4258 ac_status=$? 4259 grep -v '^ *+' conftest.er1 >conftest.err 4260 rm -f conftest.er1 4261 cat conftest.err >&5 4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4263 (exit $ac_status); } && { 4264 test -z "$ac_c_werror_flag" || 4265 test ! -s conftest.err 4266 } && test -s conftest.$ac_objext; then 4267 eval "$as_ac_Header=yes" 4268else 4269 echo "$as_me: failed program was:" >&5 4270sed 's/^/| /' conftest.$ac_ext >&5 4271 4272 eval "$as_ac_Header=no" 4273fi 4274 4275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4276fi 4277ac_res=`eval echo '${'$as_ac_Header'}'` 4278 { echo "$as_me:$LINENO: result: $ac_res" >&5 4279echo "${ECHO_T}$ac_res" >&6; } 4280if test `eval echo '${'$as_ac_Header'}'` = yes; then 4281 cat >>confdefs.h <<_ACEOF 4282#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4283_ACEOF 4284 4285fi 4286 4287done 4288 4289 4290 4291 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4292 4293 4294 #------------------------------------------------------------------------ 4295 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4296 # It makes compiling go faster. (This is only a performance feature.) 4297 #------------------------------------------------------------------------ 4298 4299 if test -z "$no_pipe" -a -n "$GCC"; then 4300 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4301echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4302if test "${tcl_cv_cc_pipe+set}" = set; then 4303 echo $ECHO_N "(cached) $ECHO_C" >&6 4304else 4305 4306 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4307 cat >conftest.$ac_ext <<_ACEOF 4308/* confdefs.h. */ 4309_ACEOF 4310cat confdefs.h >>conftest.$ac_ext 4311cat >>conftest.$ac_ext <<_ACEOF 4312/* end confdefs.h. */ 4313 4314int 4315main () 4316{ 4317 4318 ; 4319 return 0; 4320} 4321_ACEOF 4322rm -f conftest.$ac_objext 4323if { (ac_try="$ac_compile" 4324case "(($ac_try" in 4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4326 *) ac_try_echo=$ac_try;; 4327esac 4328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4329 (eval "$ac_compile") 2>conftest.er1 4330 ac_status=$? 4331 grep -v '^ *+' conftest.er1 >conftest.err 4332 rm -f conftest.er1 4333 cat conftest.err >&5 4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4335 (exit $ac_status); } && { 4336 test -z "$ac_c_werror_flag" || 4337 test ! -s conftest.err 4338 } && test -s conftest.$ac_objext; then 4339 tcl_cv_cc_pipe=yes 4340else 4341 echo "$as_me: failed program was:" >&5 4342sed 's/^/| /' conftest.$ac_ext >&5 4343 4344 tcl_cv_cc_pipe=no 4345fi 4346 4347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4348 CFLAGS=$hold_cflags 4349fi 4350{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4351echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4352 if test $tcl_cv_cc_pipe = yes; then 4353 CFLAGS="$CFLAGS -pipe" 4354 fi 4355 fi 4356 4357 #-------------------------------------------------------------------- 4358 # Common compiler flag setup 4359 #-------------------------------------------------------------------- 4360 4361 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4362echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4363if test "${ac_cv_c_bigendian+set}" = set; then 4364 echo $ECHO_N "(cached) $ECHO_C" >&6 4365else 4366 # See if sys/param.h defines the BYTE_ORDER macro. 4367cat >conftest.$ac_ext <<_ACEOF 4368/* confdefs.h. */ 4369_ACEOF 4370cat confdefs.h >>conftest.$ac_ext 4371cat >>conftest.$ac_ext <<_ACEOF 4372/* end confdefs.h. */ 4373#include <sys/types.h> 4374#include <sys/param.h> 4375 4376int 4377main () 4378{ 4379#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4380 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4381 bogus endian macros 4382#endif 4383 4384 ; 4385 return 0; 4386} 4387_ACEOF 4388rm -f conftest.$ac_objext 4389if { (ac_try="$ac_compile" 4390case "(($ac_try" in 4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4392 *) ac_try_echo=$ac_try;; 4393esac 4394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4395 (eval "$ac_compile") 2>conftest.er1 4396 ac_status=$? 4397 grep -v '^ *+' conftest.er1 >conftest.err 4398 rm -f conftest.er1 4399 cat conftest.err >&5 4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4401 (exit $ac_status); } && { 4402 test -z "$ac_c_werror_flag" || 4403 test ! -s conftest.err 4404 } && test -s conftest.$ac_objext; then 4405 # It does; now see whether it defined to BIG_ENDIAN or not. 4406cat >conftest.$ac_ext <<_ACEOF 4407/* confdefs.h. */ 4408_ACEOF 4409cat confdefs.h >>conftest.$ac_ext 4410cat >>conftest.$ac_ext <<_ACEOF 4411/* end confdefs.h. */ 4412#include <sys/types.h> 4413#include <sys/param.h> 4414 4415int 4416main () 4417{ 4418#if BYTE_ORDER != BIG_ENDIAN 4419 not big endian 4420#endif 4421 4422 ; 4423 return 0; 4424} 4425_ACEOF 4426rm -f conftest.$ac_objext 4427if { (ac_try="$ac_compile" 4428case "(($ac_try" in 4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4430 *) ac_try_echo=$ac_try;; 4431esac 4432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4433 (eval "$ac_compile") 2>conftest.er1 4434 ac_status=$? 4435 grep -v '^ *+' conftest.er1 >conftest.err 4436 rm -f conftest.er1 4437 cat conftest.err >&5 4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4439 (exit $ac_status); } && { 4440 test -z "$ac_c_werror_flag" || 4441 test ! -s conftest.err 4442 } && test -s conftest.$ac_objext; then 4443 ac_cv_c_bigendian=yes 4444else 4445 echo "$as_me: failed program was:" >&5 4446sed 's/^/| /' conftest.$ac_ext >&5 4447 4448 ac_cv_c_bigendian=no 4449fi 4450 4451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4452else 4453 echo "$as_me: failed program was:" >&5 4454sed 's/^/| /' conftest.$ac_ext >&5 4455 4456 # It does not; compile a test program. 4457if test "$cross_compiling" = yes; then 4458 # try to guess the endianness by grepping values into an object file 4459 ac_cv_c_bigendian=unknown 4460 cat >conftest.$ac_ext <<_ACEOF 4461/* confdefs.h. */ 4462_ACEOF 4463cat confdefs.h >>conftest.$ac_ext 4464cat >>conftest.$ac_ext <<_ACEOF 4465/* end confdefs.h. */ 4466short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4467short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4468void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4469short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4470short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4471void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4472int 4473main () 4474{ 4475 _ascii (); _ebcdic (); 4476 ; 4477 return 0; 4478} 4479_ACEOF 4480rm -f conftest.$ac_objext 4481if { (ac_try="$ac_compile" 4482case "(($ac_try" in 4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4484 *) ac_try_echo=$ac_try;; 4485esac 4486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4487 (eval "$ac_compile") 2>conftest.er1 4488 ac_status=$? 4489 grep -v '^ *+' conftest.er1 >conftest.err 4490 rm -f conftest.er1 4491 cat conftest.err >&5 4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4493 (exit $ac_status); } && { 4494 test -z "$ac_c_werror_flag" || 4495 test ! -s conftest.err 4496 } && test -s conftest.$ac_objext; then 4497 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4498 ac_cv_c_bigendian=yes 4499fi 4500if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4501 if test "$ac_cv_c_bigendian" = unknown; then 4502 ac_cv_c_bigendian=no 4503 else 4504 # finding both strings is unlikely to happen, but who knows? 4505 ac_cv_c_bigendian=unknown 4506 fi 4507fi 4508else 4509 echo "$as_me: failed program was:" >&5 4510sed 's/^/| /' conftest.$ac_ext >&5 4511 4512 4513fi 4514 4515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4516else 4517 cat >conftest.$ac_ext <<_ACEOF 4518/* confdefs.h. */ 4519_ACEOF 4520cat confdefs.h >>conftest.$ac_ext 4521cat >>conftest.$ac_ext <<_ACEOF 4522/* end confdefs.h. */ 4523$ac_includes_default 4524int 4525main () 4526{ 4527 4528 /* Are we little or big endian? From Harbison&Steele. */ 4529 union 4530 { 4531 long int l; 4532 char c[sizeof (long int)]; 4533 } u; 4534 u.l = 1; 4535 return u.c[sizeof (long int) - 1] == 1; 4536 4537 ; 4538 return 0; 4539} 4540_ACEOF 4541rm -f conftest$ac_exeext 4542if { (ac_try="$ac_link" 4543case "(($ac_try" in 4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4545 *) ac_try_echo=$ac_try;; 4546esac 4547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4548 (eval "$ac_link") 2>&5 4549 ac_status=$? 4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4552 { (case "(($ac_try" in 4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4554 *) ac_try_echo=$ac_try;; 4555esac 4556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4557 (eval "$ac_try") 2>&5 4558 ac_status=$? 4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4560 (exit $ac_status); }; }; then 4561 ac_cv_c_bigendian=no 4562else 4563 echo "$as_me: program exited with status $ac_status" >&5 4564echo "$as_me: failed program was:" >&5 4565sed 's/^/| /' conftest.$ac_ext >&5 4566 4567( exit $ac_status ) 4568ac_cv_c_bigendian=yes 4569fi 4570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4571fi 4572 4573 4574fi 4575 4576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4577fi 4578{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4579echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4580case $ac_cv_c_bigendian in 4581 yes) 4582 4583cat >>confdefs.h <<\_ACEOF 4584#define WORDS_BIGENDIAN 1 4585_ACEOF 4586 ;; 4587 no) 4588 ;; 4589 *) 4590 { { echo "$as_me:$LINENO: error: unknown endianness 4591presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4592echo "$as_me: error: unknown endianness 4593presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4594 { (exit 1); exit 1; }; } ;; 4595esac 4596 4597 if test "${TEA_PLATFORM}" = "unix" ; then 4598 4599 #-------------------------------------------------------------------- 4600 # On a few very rare systems, all of the libm.a stuff is 4601 # already in libc.a. Set compiler flags accordingly. 4602 # Also, Linux requires the "ieee" library for math to work 4603 # right (and it must appear before "-lm"). 4604 #-------------------------------------------------------------------- 4605 4606 { echo "$as_me:$LINENO: checking for sin" >&5 4607echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4608if test "${ac_cv_func_sin+set}" = set; then 4609 echo $ECHO_N "(cached) $ECHO_C" >&6 4610else 4611 cat >conftest.$ac_ext <<_ACEOF 4612/* confdefs.h. */ 4613_ACEOF 4614cat confdefs.h >>conftest.$ac_ext 4615cat >>conftest.$ac_ext <<_ACEOF 4616/* end confdefs.h. */ 4617/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4618 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4619#define sin innocuous_sin 4620 4621/* System header to define __stub macros and hopefully few prototypes, 4622 which can conflict with char sin (); below. 4623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4624 <limits.h> exists even on freestanding compilers. */ 4625 4626#ifdef __STDC__ 4627# include <limits.h> 4628#else 4629# include <assert.h> 4630#endif 4631 4632#undef sin 4633 4634/* Override any GCC internal prototype to avoid an error. 4635 Use char because int might match the return type of a GCC 4636 builtin and then its argument prototype would still apply. */ 4637#ifdef __cplusplus 4638extern "C" 4639#endif 4640char sin (); 4641/* The GNU C library defines this for functions which it implements 4642 to always fail with ENOSYS. Some functions are actually named 4643 something starting with __ and the normal name is an alias. */ 4644#if defined __stub_sin || defined __stub___sin 4645choke me 4646#endif 4647 4648int 4649main () 4650{ 4651return sin (); 4652 ; 4653 return 0; 4654} 4655_ACEOF 4656rm -f conftest.$ac_objext conftest$ac_exeext 4657if { (ac_try="$ac_link" 4658case "(($ac_try" in 4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4660 *) ac_try_echo=$ac_try;; 4661esac 4662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4663 (eval "$ac_link") 2>conftest.er1 4664 ac_status=$? 4665 grep -v '^ *+' conftest.er1 >conftest.err 4666 rm -f conftest.er1 4667 cat conftest.err >&5 4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4669 (exit $ac_status); } && { 4670 test -z "$ac_c_werror_flag" || 4671 test ! -s conftest.err 4672 } && test -s conftest$ac_exeext && 4673 $as_test_x conftest$ac_exeext; then 4674 ac_cv_func_sin=yes 4675else 4676 echo "$as_me: failed program was:" >&5 4677sed 's/^/| /' conftest.$ac_ext >&5 4678 4679 ac_cv_func_sin=no 4680fi 4681 4682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4683 conftest$ac_exeext conftest.$ac_ext 4684fi 4685{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4686echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4687if test $ac_cv_func_sin = yes; then 4688 MATH_LIBS="" 4689else 4690 MATH_LIBS="-lm" 4691fi 4692 4693 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4694echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4695if test "${ac_cv_lib_ieee_main+set}" = set; then 4696 echo $ECHO_N "(cached) $ECHO_C" >&6 4697else 4698 ac_check_lib_save_LIBS=$LIBS 4699LIBS="-lieee $LIBS" 4700cat >conftest.$ac_ext <<_ACEOF 4701/* confdefs.h. */ 4702_ACEOF 4703cat confdefs.h >>conftest.$ac_ext 4704cat >>conftest.$ac_ext <<_ACEOF 4705/* end confdefs.h. */ 4706 4707 4708int 4709main () 4710{ 4711return main (); 4712 ; 4713 return 0; 4714} 4715_ACEOF 4716rm -f conftest.$ac_objext conftest$ac_exeext 4717if { (ac_try="$ac_link" 4718case "(($ac_try" in 4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4720 *) ac_try_echo=$ac_try;; 4721esac 4722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4723 (eval "$ac_link") 2>conftest.er1 4724 ac_status=$? 4725 grep -v '^ *+' conftest.er1 >conftest.err 4726 rm -f conftest.er1 4727 cat conftest.err >&5 4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4729 (exit $ac_status); } && { 4730 test -z "$ac_c_werror_flag" || 4731 test ! -s conftest.err 4732 } && test -s conftest$ac_exeext && 4733 $as_test_x conftest$ac_exeext; then 4734 ac_cv_lib_ieee_main=yes 4735else 4736 echo "$as_me: failed program was:" >&5 4737sed 's/^/| /' conftest.$ac_ext >&5 4738 4739 ac_cv_lib_ieee_main=no 4740fi 4741 4742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4743 conftest$ac_exeext conftest.$ac_ext 4744LIBS=$ac_check_lib_save_LIBS 4745fi 4746{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4747echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4748if test $ac_cv_lib_ieee_main = yes; then 4749 MATH_LIBS="-lieee $MATH_LIBS" 4750fi 4751 4752 4753 #-------------------------------------------------------------------- 4754 # Interactive UNIX requires -linet instead of -lsocket, plus it 4755 # needs net/errno.h to define the socket-related error codes. 4756 #-------------------------------------------------------------------- 4757 4758 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4759echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4760if test "${ac_cv_lib_inet_main+set}" = set; then 4761 echo $ECHO_N "(cached) $ECHO_C" >&6 4762else 4763 ac_check_lib_save_LIBS=$LIBS 4764LIBS="-linet $LIBS" 4765cat >conftest.$ac_ext <<_ACEOF 4766/* confdefs.h. */ 4767_ACEOF 4768cat confdefs.h >>conftest.$ac_ext 4769cat >>conftest.$ac_ext <<_ACEOF 4770/* end confdefs.h. */ 4771 4772 4773int 4774main () 4775{ 4776return main (); 4777 ; 4778 return 0; 4779} 4780_ACEOF 4781rm -f conftest.$ac_objext conftest$ac_exeext 4782if { (ac_try="$ac_link" 4783case "(($ac_try" in 4784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4785 *) ac_try_echo=$ac_try;; 4786esac 4787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4788 (eval "$ac_link") 2>conftest.er1 4789 ac_status=$? 4790 grep -v '^ *+' conftest.er1 >conftest.err 4791 rm -f conftest.er1 4792 cat conftest.err >&5 4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4794 (exit $ac_status); } && { 4795 test -z "$ac_c_werror_flag" || 4796 test ! -s conftest.err 4797 } && test -s conftest$ac_exeext && 4798 $as_test_x conftest$ac_exeext; then 4799 ac_cv_lib_inet_main=yes 4800else 4801 echo "$as_me: failed program was:" >&5 4802sed 's/^/| /' conftest.$ac_ext >&5 4803 4804 ac_cv_lib_inet_main=no 4805fi 4806 4807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4808 conftest$ac_exeext conftest.$ac_ext 4809LIBS=$ac_check_lib_save_LIBS 4810fi 4811{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4812echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4813if test $ac_cv_lib_inet_main = yes; then 4814 LIBS="$LIBS -linet" 4815fi 4816 4817 if test "${ac_cv_header_net_errno_h+set}" = set; then 4818 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4819echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4820if test "${ac_cv_header_net_errno_h+set}" = set; then 4821 echo $ECHO_N "(cached) $ECHO_C" >&6 4822fi 4823{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4824echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4825else 4826 # Is the header compilable? 4827{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4828echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4829cat >conftest.$ac_ext <<_ACEOF 4830/* confdefs.h. */ 4831_ACEOF 4832cat confdefs.h >>conftest.$ac_ext 4833cat >>conftest.$ac_ext <<_ACEOF 4834/* end confdefs.h. */ 4835$ac_includes_default 4836#include <net/errno.h> 4837_ACEOF 4838rm -f conftest.$ac_objext 4839if { (ac_try="$ac_compile" 4840case "(($ac_try" in 4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4842 *) ac_try_echo=$ac_try;; 4843esac 4844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4845 (eval "$ac_compile") 2>conftest.er1 4846 ac_status=$? 4847 grep -v '^ *+' conftest.er1 >conftest.err 4848 rm -f conftest.er1 4849 cat conftest.err >&5 4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4851 (exit $ac_status); } && { 4852 test -z "$ac_c_werror_flag" || 4853 test ! -s conftest.err 4854 } && test -s conftest.$ac_objext; then 4855 ac_header_compiler=yes 4856else 4857 echo "$as_me: failed program was:" >&5 4858sed 's/^/| /' conftest.$ac_ext >&5 4859 4860 ac_header_compiler=no 4861fi 4862 4863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4864{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4865echo "${ECHO_T}$ac_header_compiler" >&6; } 4866 4867# Is the header present? 4868{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4869echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4870cat >conftest.$ac_ext <<_ACEOF 4871/* confdefs.h. */ 4872_ACEOF 4873cat confdefs.h >>conftest.$ac_ext 4874cat >>conftest.$ac_ext <<_ACEOF 4875/* end confdefs.h. */ 4876#include <net/errno.h> 4877_ACEOF 4878if { (ac_try="$ac_cpp conftest.$ac_ext" 4879case "(($ac_try" in 4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4881 *) ac_try_echo=$ac_try;; 4882esac 4883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4885 ac_status=$? 4886 grep -v '^ *+' conftest.er1 >conftest.err 4887 rm -f conftest.er1 4888 cat conftest.err >&5 4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4890 (exit $ac_status); } >/dev/null && { 4891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4892 test ! -s conftest.err 4893 }; then 4894 ac_header_preproc=yes 4895else 4896 echo "$as_me: failed program was:" >&5 4897sed 's/^/| /' conftest.$ac_ext >&5 4898 4899 ac_header_preproc=no 4900fi 4901 4902rm -f conftest.err conftest.$ac_ext 4903{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4904echo "${ECHO_T}$ac_header_preproc" >&6; } 4905 4906# So? What about this header? 4907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4908 yes:no: ) 4909 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4910echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4911 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4912echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4913 ac_header_preproc=yes 4914 ;; 4915 no:yes:* ) 4916 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4917echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4918 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4919echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4920 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4921echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4922 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4923echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4924 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4925echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4926 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4927echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4928 4929 ;; 4930esac 4931{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4932echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4933if test "${ac_cv_header_net_errno_h+set}" = set; then 4934 echo $ECHO_N "(cached) $ECHO_C" >&6 4935else 4936 ac_cv_header_net_errno_h=$ac_header_preproc 4937fi 4938{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4939echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4940 4941fi 4942if test $ac_cv_header_net_errno_h = yes; then 4943 4944 4945cat >>confdefs.h <<\_ACEOF 4946#define HAVE_NET_ERRNO_H 1 4947_ACEOF 4948 4949fi 4950 4951 4952 4953 #-------------------------------------------------------------------- 4954 # Check for the existence of the -lsocket and -lnsl libraries. 4955 # The order here is important, so that they end up in the right 4956 # order in the command line generated by make. Here are some 4957 # special considerations: 4958 # 1. Use "connect" and "accept" to check for -lsocket, and 4959 # "gethostbyname" to check for -lnsl. 4960 # 2. Use each function name only once: can't redo a check because 4961 # autoconf caches the results of the last check and won't redo it. 4962 # 3. Use -lnsl and -lsocket only if they supply procedures that 4963 # aren't already present in the normal libraries. This is because 4964 # IRIX 5.2 has libraries, but they aren't needed and they're 4965 # bogus: they goof up name resolution if used. 4966 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4967 # To get around this problem, check for both libraries together 4968 # if -lsocket doesn't work by itself. 4969 #-------------------------------------------------------------------- 4970 4971 tcl_checkBoth=0 4972 { echo "$as_me:$LINENO: checking for connect" >&5 4973echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4974if test "${ac_cv_func_connect+set}" = set; then 4975 echo $ECHO_N "(cached) $ECHO_C" >&6 4976else 4977 cat >conftest.$ac_ext <<_ACEOF 4978/* confdefs.h. */ 4979_ACEOF 4980cat confdefs.h >>conftest.$ac_ext 4981cat >>conftest.$ac_ext <<_ACEOF 4982/* end confdefs.h. */ 4983/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4984 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4985#define connect innocuous_connect 4986 4987/* System header to define __stub macros and hopefully few prototypes, 4988 which can conflict with char connect (); below. 4989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4990 <limits.h> exists even on freestanding compilers. */ 4991 4992#ifdef __STDC__ 4993# include <limits.h> 4994#else 4995# include <assert.h> 4996#endif 4997 4998#undef connect 4999 5000/* Override any GCC internal prototype to avoid an error. 5001 Use char because int might match the return type of a GCC 5002 builtin and then its argument prototype would still apply. */ 5003#ifdef __cplusplus 5004extern "C" 5005#endif 5006char connect (); 5007/* The GNU C library defines this for functions which it implements 5008 to always fail with ENOSYS. Some functions are actually named 5009 something starting with __ and the normal name is an alias. */ 5010#if defined __stub_connect || defined __stub___connect 5011choke me 5012#endif 5013 5014int 5015main () 5016{ 5017return connect (); 5018 ; 5019 return 0; 5020} 5021_ACEOF 5022rm -f conftest.$ac_objext conftest$ac_exeext 5023if { (ac_try="$ac_link" 5024case "(($ac_try" in 5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5026 *) ac_try_echo=$ac_try;; 5027esac 5028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5029 (eval "$ac_link") 2>conftest.er1 5030 ac_status=$? 5031 grep -v '^ *+' conftest.er1 >conftest.err 5032 rm -f conftest.er1 5033 cat conftest.err >&5 5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5035 (exit $ac_status); } && { 5036 test -z "$ac_c_werror_flag" || 5037 test ! -s conftest.err 5038 } && test -s conftest$ac_exeext && 5039 $as_test_x conftest$ac_exeext; then 5040 ac_cv_func_connect=yes 5041else 5042 echo "$as_me: failed program was:" >&5 5043sed 's/^/| /' conftest.$ac_ext >&5 5044 5045 ac_cv_func_connect=no 5046fi 5047 5048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5049 conftest$ac_exeext conftest.$ac_ext 5050fi 5051{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 5052echo "${ECHO_T}$ac_cv_func_connect" >&6; } 5053if test $ac_cv_func_connect = yes; then 5054 tcl_checkSocket=0 5055else 5056 tcl_checkSocket=1 5057fi 5058 5059 if test "$tcl_checkSocket" = 1; then 5060 { echo "$as_me:$LINENO: checking for setsockopt" >&5 5061echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 5062if test "${ac_cv_func_setsockopt+set}" = set; then 5063 echo $ECHO_N "(cached) $ECHO_C" >&6 5064else 5065 cat >conftest.$ac_ext <<_ACEOF 5066/* confdefs.h. */ 5067_ACEOF 5068cat confdefs.h >>conftest.$ac_ext 5069cat >>conftest.$ac_ext <<_ACEOF 5070/* end confdefs.h. */ 5071/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 5072 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5073#define setsockopt innocuous_setsockopt 5074 5075/* System header to define __stub macros and hopefully few prototypes, 5076 which can conflict with char setsockopt (); below. 5077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5078 <limits.h> exists even on freestanding compilers. */ 5079 5080#ifdef __STDC__ 5081# include <limits.h> 5082#else 5083# include <assert.h> 5084#endif 5085 5086#undef setsockopt 5087 5088/* Override any GCC internal prototype to avoid an error. 5089 Use char because int might match the return type of a GCC 5090 builtin and then its argument prototype would still apply. */ 5091#ifdef __cplusplus 5092extern "C" 5093#endif 5094char setsockopt (); 5095/* The GNU C library defines this for functions which it implements 5096 to always fail with ENOSYS. Some functions are actually named 5097 something starting with __ and the normal name is an alias. */ 5098#if defined __stub_setsockopt || defined __stub___setsockopt 5099choke me 5100#endif 5101 5102int 5103main () 5104{ 5105return setsockopt (); 5106 ; 5107 return 0; 5108} 5109_ACEOF 5110rm -f conftest.$ac_objext conftest$ac_exeext 5111if { (ac_try="$ac_link" 5112case "(($ac_try" in 5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5114 *) ac_try_echo=$ac_try;; 5115esac 5116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5117 (eval "$ac_link") 2>conftest.er1 5118 ac_status=$? 5119 grep -v '^ *+' conftest.er1 >conftest.err 5120 rm -f conftest.er1 5121 cat conftest.err >&5 5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5123 (exit $ac_status); } && { 5124 test -z "$ac_c_werror_flag" || 5125 test ! -s conftest.err 5126 } && test -s conftest$ac_exeext && 5127 $as_test_x conftest$ac_exeext; then 5128 ac_cv_func_setsockopt=yes 5129else 5130 echo "$as_me: failed program was:" >&5 5131sed 's/^/| /' conftest.$ac_ext >&5 5132 5133 ac_cv_func_setsockopt=no 5134fi 5135 5136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5137 conftest$ac_exeext conftest.$ac_ext 5138fi 5139{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 5140echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 5141if test $ac_cv_func_setsockopt = yes; then 5142 : 5143else 5144 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 5145echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 5146if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 5147 echo $ECHO_N "(cached) $ECHO_C" >&6 5148else 5149 ac_check_lib_save_LIBS=$LIBS 5150LIBS="-lsocket $LIBS" 5151cat >conftest.$ac_ext <<_ACEOF 5152/* confdefs.h. */ 5153_ACEOF 5154cat confdefs.h >>conftest.$ac_ext 5155cat >>conftest.$ac_ext <<_ACEOF 5156/* end confdefs.h. */ 5157 5158/* Override any GCC internal prototype to avoid an error. 5159 Use char because int might match the return type of a GCC 5160 builtin and then its argument prototype would still apply. */ 5161#ifdef __cplusplus 5162extern "C" 5163#endif 5164char setsockopt (); 5165int 5166main () 5167{ 5168return setsockopt (); 5169 ; 5170 return 0; 5171} 5172_ACEOF 5173rm -f conftest.$ac_objext conftest$ac_exeext 5174if { (ac_try="$ac_link" 5175case "(($ac_try" in 5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5177 *) ac_try_echo=$ac_try;; 5178esac 5179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5180 (eval "$ac_link") 2>conftest.er1 5181 ac_status=$? 5182 grep -v '^ *+' conftest.er1 >conftest.err 5183 rm -f conftest.er1 5184 cat conftest.err >&5 5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5186 (exit $ac_status); } && { 5187 test -z "$ac_c_werror_flag" || 5188 test ! -s conftest.err 5189 } && test -s conftest$ac_exeext && 5190 $as_test_x conftest$ac_exeext; then 5191 ac_cv_lib_socket_setsockopt=yes 5192else 5193 echo "$as_me: failed program was:" >&5 5194sed 's/^/| /' conftest.$ac_ext >&5 5195 5196 ac_cv_lib_socket_setsockopt=no 5197fi 5198 5199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5200 conftest$ac_exeext conftest.$ac_ext 5201LIBS=$ac_check_lib_save_LIBS 5202fi 5203{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 5204echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 5205if test $ac_cv_lib_socket_setsockopt = yes; then 5206 LIBS="$LIBS -lsocket" 5207else 5208 tcl_checkBoth=1 5209fi 5210 5211fi 5212 5213 fi 5214 if test "$tcl_checkBoth" = 1; then 5215 tk_oldLibs=$LIBS 5216 LIBS="$LIBS -lsocket -lnsl" 5217 { echo "$as_me:$LINENO: checking for accept" >&5 5218echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 5219if test "${ac_cv_func_accept+set}" = set; then 5220 echo $ECHO_N "(cached) $ECHO_C" >&6 5221else 5222 cat >conftest.$ac_ext <<_ACEOF 5223/* confdefs.h. */ 5224_ACEOF 5225cat confdefs.h >>conftest.$ac_ext 5226cat >>conftest.$ac_ext <<_ACEOF 5227/* end confdefs.h. */ 5228/* Define accept to an innocuous variant, in case <limits.h> declares accept. 5229 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5230#define accept innocuous_accept 5231 5232/* System header to define __stub macros and hopefully few prototypes, 5233 which can conflict with char accept (); below. 5234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5235 <limits.h> exists even on freestanding compilers. */ 5236 5237#ifdef __STDC__ 5238# include <limits.h> 5239#else 5240# include <assert.h> 5241#endif 5242 5243#undef accept 5244 5245/* Override any GCC internal prototype to avoid an error. 5246 Use char because int might match the return type of a GCC 5247 builtin and then its argument prototype would still apply. */ 5248#ifdef __cplusplus 5249extern "C" 5250#endif 5251char accept (); 5252/* The GNU C library defines this for functions which it implements 5253 to always fail with ENOSYS. Some functions are actually named 5254 something starting with __ and the normal name is an alias. */ 5255#if defined __stub_accept || defined __stub___accept 5256choke me 5257#endif 5258 5259int 5260main () 5261{ 5262return accept (); 5263 ; 5264 return 0; 5265} 5266_ACEOF 5267rm -f conftest.$ac_objext conftest$ac_exeext 5268if { (ac_try="$ac_link" 5269case "(($ac_try" in 5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5271 *) ac_try_echo=$ac_try;; 5272esac 5273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5274 (eval "$ac_link") 2>conftest.er1 5275 ac_status=$? 5276 grep -v '^ *+' conftest.er1 >conftest.err 5277 rm -f conftest.er1 5278 cat conftest.err >&5 5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5280 (exit $ac_status); } && { 5281 test -z "$ac_c_werror_flag" || 5282 test ! -s conftest.err 5283 } && test -s conftest$ac_exeext && 5284 $as_test_x conftest$ac_exeext; then 5285 ac_cv_func_accept=yes 5286else 5287 echo "$as_me: failed program was:" >&5 5288sed 's/^/| /' conftest.$ac_ext >&5 5289 5290 ac_cv_func_accept=no 5291fi 5292 5293rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5294 conftest$ac_exeext conftest.$ac_ext 5295fi 5296{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5297echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5298if test $ac_cv_func_accept = yes; then 5299 tcl_checkNsl=0 5300else 5301 LIBS=$tk_oldLibs 5302fi 5303 5304 fi 5305 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5306echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5307if test "${ac_cv_func_gethostbyname+set}" = set; then 5308 echo $ECHO_N "(cached) $ECHO_C" >&6 5309else 5310 cat >conftest.$ac_ext <<_ACEOF 5311/* confdefs.h. */ 5312_ACEOF 5313cat confdefs.h >>conftest.$ac_ext 5314cat >>conftest.$ac_ext <<_ACEOF 5315/* end confdefs.h. */ 5316/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5317 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5318#define gethostbyname innocuous_gethostbyname 5319 5320/* System header to define __stub macros and hopefully few prototypes, 5321 which can conflict with char gethostbyname (); below. 5322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5323 <limits.h> exists even on freestanding compilers. */ 5324 5325#ifdef __STDC__ 5326# include <limits.h> 5327#else 5328# include <assert.h> 5329#endif 5330 5331#undef gethostbyname 5332 5333/* Override any GCC internal prototype to avoid an error. 5334 Use char because int might match the return type of a GCC 5335 builtin and then its argument prototype would still apply. */ 5336#ifdef __cplusplus 5337extern "C" 5338#endif 5339char gethostbyname (); 5340/* The GNU C library defines this for functions which it implements 5341 to always fail with ENOSYS. Some functions are actually named 5342 something starting with __ and the normal name is an alias. */ 5343#if defined __stub_gethostbyname || defined __stub___gethostbyname 5344choke me 5345#endif 5346 5347int 5348main () 5349{ 5350return gethostbyname (); 5351 ; 5352 return 0; 5353} 5354_ACEOF 5355rm -f conftest.$ac_objext conftest$ac_exeext 5356if { (ac_try="$ac_link" 5357case "(($ac_try" in 5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5359 *) ac_try_echo=$ac_try;; 5360esac 5361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5362 (eval "$ac_link") 2>conftest.er1 5363 ac_status=$? 5364 grep -v '^ *+' conftest.er1 >conftest.err 5365 rm -f conftest.er1 5366 cat conftest.err >&5 5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5368 (exit $ac_status); } && { 5369 test -z "$ac_c_werror_flag" || 5370 test ! -s conftest.err 5371 } && test -s conftest$ac_exeext && 5372 $as_test_x conftest$ac_exeext; then 5373 ac_cv_func_gethostbyname=yes 5374else 5375 echo "$as_me: failed program was:" >&5 5376sed 's/^/| /' conftest.$ac_ext >&5 5377 5378 ac_cv_func_gethostbyname=no 5379fi 5380 5381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5382 conftest$ac_exeext conftest.$ac_ext 5383fi 5384{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5385echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5386if test $ac_cv_func_gethostbyname = yes; then 5387 : 5388else 5389 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5390echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5391if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5392 echo $ECHO_N "(cached) $ECHO_C" >&6 5393else 5394 ac_check_lib_save_LIBS=$LIBS 5395LIBS="-lnsl $LIBS" 5396cat >conftest.$ac_ext <<_ACEOF 5397/* confdefs.h. */ 5398_ACEOF 5399cat confdefs.h >>conftest.$ac_ext 5400cat >>conftest.$ac_ext <<_ACEOF 5401/* end confdefs.h. */ 5402 5403/* Override any GCC internal prototype to avoid an error. 5404 Use char because int might match the return type of a GCC 5405 builtin and then its argument prototype would still apply. */ 5406#ifdef __cplusplus 5407extern "C" 5408#endif 5409char gethostbyname (); 5410int 5411main () 5412{ 5413return gethostbyname (); 5414 ; 5415 return 0; 5416} 5417_ACEOF 5418rm -f conftest.$ac_objext conftest$ac_exeext 5419if { (ac_try="$ac_link" 5420case "(($ac_try" in 5421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5422 *) ac_try_echo=$ac_try;; 5423esac 5424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5425 (eval "$ac_link") 2>conftest.er1 5426 ac_status=$? 5427 grep -v '^ *+' conftest.er1 >conftest.err 5428 rm -f conftest.er1 5429 cat conftest.err >&5 5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5431 (exit $ac_status); } && { 5432 test -z "$ac_c_werror_flag" || 5433 test ! -s conftest.err 5434 } && test -s conftest$ac_exeext && 5435 $as_test_x conftest$ac_exeext; then 5436 ac_cv_lib_nsl_gethostbyname=yes 5437else 5438 echo "$as_me: failed program was:" >&5 5439sed 's/^/| /' conftest.$ac_ext >&5 5440 5441 ac_cv_lib_nsl_gethostbyname=no 5442fi 5443 5444rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5445 conftest$ac_exeext conftest.$ac_ext 5446LIBS=$ac_check_lib_save_LIBS 5447fi 5448{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5449echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5450if test $ac_cv_lib_nsl_gethostbyname = yes; then 5451 LIBS="$LIBS -lnsl" 5452fi 5453 5454fi 5455 5456 5457 # TEA specific: Don't perform the eval of the libraries here because 5458 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5459 5460 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5461 5462 5463 5464 5465 { echo "$as_me:$LINENO: checking dirent.h" >&5 5466echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5467if test "${tcl_cv_dirent_h+set}" = set; then 5468 echo $ECHO_N "(cached) $ECHO_C" >&6 5469else 5470 5471 cat >conftest.$ac_ext <<_ACEOF 5472/* confdefs.h. */ 5473_ACEOF 5474cat confdefs.h >>conftest.$ac_ext 5475cat >>conftest.$ac_ext <<_ACEOF 5476/* end confdefs.h. */ 5477#include <sys/types.h> 5478#include <dirent.h> 5479int 5480main () 5481{ 5482 5483#ifndef _POSIX_SOURCE 5484# ifdef __Lynx__ 5485 /* 5486 * Generate compilation error to make the test fail: Lynx headers 5487 * are only valid if really in the POSIX environment. 5488 */ 5489 5490 missing_procedure(); 5491# endif 5492#endif 5493DIR *d; 5494struct dirent *entryPtr; 5495char *p; 5496d = opendir("foobar"); 5497entryPtr = readdir(d); 5498p = entryPtr->d_name; 5499closedir(d); 5500 5501 ; 5502 return 0; 5503} 5504_ACEOF 5505rm -f conftest.$ac_objext conftest$ac_exeext 5506if { (ac_try="$ac_link" 5507case "(($ac_try" in 5508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5509 *) ac_try_echo=$ac_try;; 5510esac 5511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5512 (eval "$ac_link") 2>conftest.er1 5513 ac_status=$? 5514 grep -v '^ *+' conftest.er1 >conftest.err 5515 rm -f conftest.er1 5516 cat conftest.err >&5 5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5518 (exit $ac_status); } && { 5519 test -z "$ac_c_werror_flag" || 5520 test ! -s conftest.err 5521 } && test -s conftest$ac_exeext && 5522 $as_test_x conftest$ac_exeext; then 5523 tcl_cv_dirent_h=yes 5524else 5525 echo "$as_me: failed program was:" >&5 5526sed 's/^/| /' conftest.$ac_ext >&5 5527 5528 tcl_cv_dirent_h=no 5529fi 5530 5531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5532 conftest$ac_exeext conftest.$ac_ext 5533fi 5534{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5535echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5536 5537 if test $tcl_cv_dirent_h = no; then 5538 5539cat >>confdefs.h <<\_ACEOF 5540#define NO_DIRENT_H 1 5541_ACEOF 5542 5543 fi 5544 5545 # TEA specific: 5546 if test "${ac_cv_header_errno_h+set}" = set; then 5547 { echo "$as_me:$LINENO: checking for errno.h" >&5 5548echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5549if test "${ac_cv_header_errno_h+set}" = set; then 5550 echo $ECHO_N "(cached) $ECHO_C" >&6 5551fi 5552{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5553echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5554else 5555 # Is the header compilable? 5556{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5557echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5558cat >conftest.$ac_ext <<_ACEOF 5559/* confdefs.h. */ 5560_ACEOF 5561cat confdefs.h >>conftest.$ac_ext 5562cat >>conftest.$ac_ext <<_ACEOF 5563/* end confdefs.h. */ 5564$ac_includes_default 5565#include <errno.h> 5566_ACEOF 5567rm -f conftest.$ac_objext 5568if { (ac_try="$ac_compile" 5569case "(($ac_try" in 5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5571 *) ac_try_echo=$ac_try;; 5572esac 5573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5574 (eval "$ac_compile") 2>conftest.er1 5575 ac_status=$? 5576 grep -v '^ *+' conftest.er1 >conftest.err 5577 rm -f conftest.er1 5578 cat conftest.err >&5 5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5580 (exit $ac_status); } && { 5581 test -z "$ac_c_werror_flag" || 5582 test ! -s conftest.err 5583 } && test -s conftest.$ac_objext; then 5584 ac_header_compiler=yes 5585else 5586 echo "$as_me: failed program was:" >&5 5587sed 's/^/| /' conftest.$ac_ext >&5 5588 5589 ac_header_compiler=no 5590fi 5591 5592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5593{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5594echo "${ECHO_T}$ac_header_compiler" >&6; } 5595 5596# Is the header present? 5597{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5598echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5599cat >conftest.$ac_ext <<_ACEOF 5600/* confdefs.h. */ 5601_ACEOF 5602cat confdefs.h >>conftest.$ac_ext 5603cat >>conftest.$ac_ext <<_ACEOF 5604/* end confdefs.h. */ 5605#include <errno.h> 5606_ACEOF 5607if { (ac_try="$ac_cpp conftest.$ac_ext" 5608case "(($ac_try" in 5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5610 *) ac_try_echo=$ac_try;; 5611esac 5612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5614 ac_status=$? 5615 grep -v '^ *+' conftest.er1 >conftest.err 5616 rm -f conftest.er1 5617 cat conftest.err >&5 5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5619 (exit $ac_status); } >/dev/null && { 5620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5621 test ! -s conftest.err 5622 }; then 5623 ac_header_preproc=yes 5624else 5625 echo "$as_me: failed program was:" >&5 5626sed 's/^/| /' conftest.$ac_ext >&5 5627 5628 ac_header_preproc=no 5629fi 5630 5631rm -f conftest.err conftest.$ac_ext 5632{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5633echo "${ECHO_T}$ac_header_preproc" >&6; } 5634 5635# So? What about this header? 5636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5637 yes:no: ) 5638 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5639echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5640 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5641echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5642 ac_header_preproc=yes 5643 ;; 5644 no:yes:* ) 5645 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5646echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5647 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5648echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5649 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5650echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5651 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5652echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5653 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5654echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5655 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5656echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5657 5658 ;; 5659esac 5660{ echo "$as_me:$LINENO: checking for errno.h" >&5 5661echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5662if test "${ac_cv_header_errno_h+set}" = set; then 5663 echo $ECHO_N "(cached) $ECHO_C" >&6 5664else 5665 ac_cv_header_errno_h=$ac_header_preproc 5666fi 5667{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5668echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5669 5670fi 5671if test $ac_cv_header_errno_h = yes; then 5672 : 5673else 5674 5675cat >>confdefs.h <<\_ACEOF 5676#define NO_ERRNO_H 1 5677_ACEOF 5678 5679fi 5680 5681 5682 if test "${ac_cv_header_float_h+set}" = set; then 5683 { echo "$as_me:$LINENO: checking for float.h" >&5 5684echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5685if test "${ac_cv_header_float_h+set}" = set; then 5686 echo $ECHO_N "(cached) $ECHO_C" >&6 5687fi 5688{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5689echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5690else 5691 # Is the header compilable? 5692{ echo "$as_me:$LINENO: checking float.h usability" >&5 5693echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5694cat >conftest.$ac_ext <<_ACEOF 5695/* confdefs.h. */ 5696_ACEOF 5697cat confdefs.h >>conftest.$ac_ext 5698cat >>conftest.$ac_ext <<_ACEOF 5699/* end confdefs.h. */ 5700$ac_includes_default 5701#include <float.h> 5702_ACEOF 5703rm -f conftest.$ac_objext 5704if { (ac_try="$ac_compile" 5705case "(($ac_try" in 5706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5707 *) ac_try_echo=$ac_try;; 5708esac 5709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5710 (eval "$ac_compile") 2>conftest.er1 5711 ac_status=$? 5712 grep -v '^ *+' conftest.er1 >conftest.err 5713 rm -f conftest.er1 5714 cat conftest.err >&5 5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5716 (exit $ac_status); } && { 5717 test -z "$ac_c_werror_flag" || 5718 test ! -s conftest.err 5719 } && test -s conftest.$ac_objext; then 5720 ac_header_compiler=yes 5721else 5722 echo "$as_me: failed program was:" >&5 5723sed 's/^/| /' conftest.$ac_ext >&5 5724 5725 ac_header_compiler=no 5726fi 5727 5728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5729{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5730echo "${ECHO_T}$ac_header_compiler" >&6; } 5731 5732# Is the header present? 5733{ echo "$as_me:$LINENO: checking float.h presence" >&5 5734echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5735cat >conftest.$ac_ext <<_ACEOF 5736/* confdefs.h. */ 5737_ACEOF 5738cat confdefs.h >>conftest.$ac_ext 5739cat >>conftest.$ac_ext <<_ACEOF 5740/* end confdefs.h. */ 5741#include <float.h> 5742_ACEOF 5743if { (ac_try="$ac_cpp conftest.$ac_ext" 5744case "(($ac_try" in 5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5746 *) ac_try_echo=$ac_try;; 5747esac 5748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5750 ac_status=$? 5751 grep -v '^ *+' conftest.er1 >conftest.err 5752 rm -f conftest.er1 5753 cat conftest.err >&5 5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5755 (exit $ac_status); } >/dev/null && { 5756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5757 test ! -s conftest.err 5758 }; then 5759 ac_header_preproc=yes 5760else 5761 echo "$as_me: failed program was:" >&5 5762sed 's/^/| /' conftest.$ac_ext >&5 5763 5764 ac_header_preproc=no 5765fi 5766 5767rm -f conftest.err conftest.$ac_ext 5768{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5769echo "${ECHO_T}$ac_header_preproc" >&6; } 5770 5771# So? What about this header? 5772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5773 yes:no: ) 5774 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5775echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5776 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5777echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5778 ac_header_preproc=yes 5779 ;; 5780 no:yes:* ) 5781 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5782echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5783 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5784echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5785 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5786echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5787 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5788echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5789 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5790echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5791 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5792echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5793 5794 ;; 5795esac 5796{ echo "$as_me:$LINENO: checking for float.h" >&5 5797echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5798if test "${ac_cv_header_float_h+set}" = set; then 5799 echo $ECHO_N "(cached) $ECHO_C" >&6 5800else 5801 ac_cv_header_float_h=$ac_header_preproc 5802fi 5803{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5804echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5805 5806fi 5807if test $ac_cv_header_float_h = yes; then 5808 : 5809else 5810 5811cat >>confdefs.h <<\_ACEOF 5812#define NO_FLOAT_H 1 5813_ACEOF 5814 5815fi 5816 5817 5818 if test "${ac_cv_header_values_h+set}" = set; then 5819 { echo "$as_me:$LINENO: checking for values.h" >&5 5820echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5821if test "${ac_cv_header_values_h+set}" = set; then 5822 echo $ECHO_N "(cached) $ECHO_C" >&6 5823fi 5824{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5825echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5826else 5827 # Is the header compilable? 5828{ echo "$as_me:$LINENO: checking values.h usability" >&5 5829echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5830cat >conftest.$ac_ext <<_ACEOF 5831/* confdefs.h. */ 5832_ACEOF 5833cat confdefs.h >>conftest.$ac_ext 5834cat >>conftest.$ac_ext <<_ACEOF 5835/* end confdefs.h. */ 5836$ac_includes_default 5837#include <values.h> 5838_ACEOF 5839rm -f conftest.$ac_objext 5840if { (ac_try="$ac_compile" 5841case "(($ac_try" in 5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5843 *) ac_try_echo=$ac_try;; 5844esac 5845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5846 (eval "$ac_compile") 2>conftest.er1 5847 ac_status=$? 5848 grep -v '^ *+' conftest.er1 >conftest.err 5849 rm -f conftest.er1 5850 cat conftest.err >&5 5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5852 (exit $ac_status); } && { 5853 test -z "$ac_c_werror_flag" || 5854 test ! -s conftest.err 5855 } && test -s conftest.$ac_objext; then 5856 ac_header_compiler=yes 5857else 5858 echo "$as_me: failed program was:" >&5 5859sed 's/^/| /' conftest.$ac_ext >&5 5860 5861 ac_header_compiler=no 5862fi 5863 5864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5865{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5866echo "${ECHO_T}$ac_header_compiler" >&6; } 5867 5868# Is the header present? 5869{ echo "$as_me:$LINENO: checking values.h presence" >&5 5870echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5871cat >conftest.$ac_ext <<_ACEOF 5872/* confdefs.h. */ 5873_ACEOF 5874cat confdefs.h >>conftest.$ac_ext 5875cat >>conftest.$ac_ext <<_ACEOF 5876/* end confdefs.h. */ 5877#include <values.h> 5878_ACEOF 5879if { (ac_try="$ac_cpp conftest.$ac_ext" 5880case "(($ac_try" in 5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5882 *) ac_try_echo=$ac_try;; 5883esac 5884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5886 ac_status=$? 5887 grep -v '^ *+' conftest.er1 >conftest.err 5888 rm -f conftest.er1 5889 cat conftest.err >&5 5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5891 (exit $ac_status); } >/dev/null && { 5892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5893 test ! -s conftest.err 5894 }; then 5895 ac_header_preproc=yes 5896else 5897 echo "$as_me: failed program was:" >&5 5898sed 's/^/| /' conftest.$ac_ext >&5 5899 5900 ac_header_preproc=no 5901fi 5902 5903rm -f conftest.err conftest.$ac_ext 5904{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5905echo "${ECHO_T}$ac_header_preproc" >&6; } 5906 5907# So? What about this header? 5908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5909 yes:no: ) 5910 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5911echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5912 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5913echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5914 ac_header_preproc=yes 5915 ;; 5916 no:yes:* ) 5917 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5918echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5919 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5920echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5921 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5922echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5923 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5924echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5925 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5926echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5927 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5928echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5929 5930 ;; 5931esac 5932{ echo "$as_me:$LINENO: checking for values.h" >&5 5933echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5934if test "${ac_cv_header_values_h+set}" = set; then 5935 echo $ECHO_N "(cached) $ECHO_C" >&6 5936else 5937 ac_cv_header_values_h=$ac_header_preproc 5938fi 5939{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5940echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5941 5942fi 5943if test $ac_cv_header_values_h = yes; then 5944 : 5945else 5946 5947cat >>confdefs.h <<\_ACEOF 5948#define NO_VALUES_H 1 5949_ACEOF 5950 5951fi 5952 5953 5954 if test "${ac_cv_header_limits_h+set}" = set; then 5955 { echo "$as_me:$LINENO: checking for limits.h" >&5 5956echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5957if test "${ac_cv_header_limits_h+set}" = set; then 5958 echo $ECHO_N "(cached) $ECHO_C" >&6 5959fi 5960{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5961echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5962else 5963 # Is the header compilable? 5964{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5965echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5966cat >conftest.$ac_ext <<_ACEOF 5967/* confdefs.h. */ 5968_ACEOF 5969cat confdefs.h >>conftest.$ac_ext 5970cat >>conftest.$ac_ext <<_ACEOF 5971/* end confdefs.h. */ 5972$ac_includes_default 5973#include <limits.h> 5974_ACEOF 5975rm -f conftest.$ac_objext 5976if { (ac_try="$ac_compile" 5977case "(($ac_try" in 5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5979 *) ac_try_echo=$ac_try;; 5980esac 5981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5982 (eval "$ac_compile") 2>conftest.er1 5983 ac_status=$? 5984 grep -v '^ *+' conftest.er1 >conftest.err 5985 rm -f conftest.er1 5986 cat conftest.err >&5 5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5988 (exit $ac_status); } && { 5989 test -z "$ac_c_werror_flag" || 5990 test ! -s conftest.err 5991 } && test -s conftest.$ac_objext; then 5992 ac_header_compiler=yes 5993else 5994 echo "$as_me: failed program was:" >&5 5995sed 's/^/| /' conftest.$ac_ext >&5 5996 5997 ac_header_compiler=no 5998fi 5999 6000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6001{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6002echo "${ECHO_T}$ac_header_compiler" >&6; } 6003 6004# Is the header present? 6005{ echo "$as_me:$LINENO: checking limits.h presence" >&5 6006echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 6007cat >conftest.$ac_ext <<_ACEOF 6008/* confdefs.h. */ 6009_ACEOF 6010cat confdefs.h >>conftest.$ac_ext 6011cat >>conftest.$ac_ext <<_ACEOF 6012/* end confdefs.h. */ 6013#include <limits.h> 6014_ACEOF 6015if { (ac_try="$ac_cpp conftest.$ac_ext" 6016case "(($ac_try" in 6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6018 *) ac_try_echo=$ac_try;; 6019esac 6020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6022 ac_status=$? 6023 grep -v '^ *+' conftest.er1 >conftest.err 6024 rm -f conftest.er1 6025 cat conftest.err >&5 6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6027 (exit $ac_status); } >/dev/null && { 6028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6029 test ! -s conftest.err 6030 }; then 6031 ac_header_preproc=yes 6032else 6033 echo "$as_me: failed program was:" >&5 6034sed 's/^/| /' conftest.$ac_ext >&5 6035 6036 ac_header_preproc=no 6037fi 6038 6039rm -f conftest.err conftest.$ac_ext 6040{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6041echo "${ECHO_T}$ac_header_preproc" >&6; } 6042 6043# So? What about this header? 6044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6045 yes:no: ) 6046 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 6047echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6048 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 6049echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 6050 ac_header_preproc=yes 6051 ;; 6052 no:yes:* ) 6053 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 6054echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 6055 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 6056echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 6057 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 6058echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 6059 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 6060echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 6061 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 6062echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 6063 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 6064echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 6065 6066 ;; 6067esac 6068{ echo "$as_me:$LINENO: checking for limits.h" >&5 6069echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 6070if test "${ac_cv_header_limits_h+set}" = set; then 6071 echo $ECHO_N "(cached) $ECHO_C" >&6 6072else 6073 ac_cv_header_limits_h=$ac_header_preproc 6074fi 6075{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 6076echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 6077 6078fi 6079if test $ac_cv_header_limits_h = yes; then 6080 6081cat >>confdefs.h <<\_ACEOF 6082#define HAVE_LIMITS_H 1 6083_ACEOF 6084 6085else 6086 6087cat >>confdefs.h <<\_ACEOF 6088#define NO_LIMITS_H 1 6089_ACEOF 6090 6091fi 6092 6093 6094 if test "${ac_cv_header_stdlib_h+set}" = set; then 6095 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 6096echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6097if test "${ac_cv_header_stdlib_h+set}" = set; then 6098 echo $ECHO_N "(cached) $ECHO_C" >&6 6099fi 6100{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6101echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6102else 6103 # Is the header compilable? 6104{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 6105echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 6106cat >conftest.$ac_ext <<_ACEOF 6107/* confdefs.h. */ 6108_ACEOF 6109cat confdefs.h >>conftest.$ac_ext 6110cat >>conftest.$ac_ext <<_ACEOF 6111/* end confdefs.h. */ 6112$ac_includes_default 6113#include <stdlib.h> 6114_ACEOF 6115rm -f conftest.$ac_objext 6116if { (ac_try="$ac_compile" 6117case "(($ac_try" in 6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6119 *) ac_try_echo=$ac_try;; 6120esac 6121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6122 (eval "$ac_compile") 2>conftest.er1 6123 ac_status=$? 6124 grep -v '^ *+' conftest.er1 >conftest.err 6125 rm -f conftest.er1 6126 cat conftest.err >&5 6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6128 (exit $ac_status); } && { 6129 test -z "$ac_c_werror_flag" || 6130 test ! -s conftest.err 6131 } && test -s conftest.$ac_objext; then 6132 ac_header_compiler=yes 6133else 6134 echo "$as_me: failed program was:" >&5 6135sed 's/^/| /' conftest.$ac_ext >&5 6136 6137 ac_header_compiler=no 6138fi 6139 6140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6141{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6142echo "${ECHO_T}$ac_header_compiler" >&6; } 6143 6144# Is the header present? 6145{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 6146echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 6147cat >conftest.$ac_ext <<_ACEOF 6148/* confdefs.h. */ 6149_ACEOF 6150cat confdefs.h >>conftest.$ac_ext 6151cat >>conftest.$ac_ext <<_ACEOF 6152/* end confdefs.h. */ 6153#include <stdlib.h> 6154_ACEOF 6155if { (ac_try="$ac_cpp conftest.$ac_ext" 6156case "(($ac_try" in 6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6158 *) ac_try_echo=$ac_try;; 6159esac 6160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6162 ac_status=$? 6163 grep -v '^ *+' conftest.er1 >conftest.err 6164 rm -f conftest.er1 6165 cat conftest.err >&5 6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6167 (exit $ac_status); } >/dev/null && { 6168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6169 test ! -s conftest.err 6170 }; then 6171 ac_header_preproc=yes 6172else 6173 echo "$as_me: failed program was:" >&5 6174sed 's/^/| /' conftest.$ac_ext >&5 6175 6176 ac_header_preproc=no 6177fi 6178 6179rm -f conftest.err conftest.$ac_ext 6180{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6181echo "${ECHO_T}$ac_header_preproc" >&6; } 6182 6183# So? What about this header? 6184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6185 yes:no: ) 6186 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 6187echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6188 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 6189echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 6190 ac_header_preproc=yes 6191 ;; 6192 no:yes:* ) 6193 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 6194echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 6195 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 6196echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 6197 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 6198echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 6199 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 6200echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 6201 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 6202echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 6203 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 6204echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 6205 6206 ;; 6207esac 6208{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 6209echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6210if test "${ac_cv_header_stdlib_h+set}" = set; then 6211 echo $ECHO_N "(cached) $ECHO_C" >&6 6212else 6213 ac_cv_header_stdlib_h=$ac_header_preproc 6214fi 6215{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6216echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6217 6218fi 6219if test $ac_cv_header_stdlib_h = yes; then 6220 tcl_ok=1 6221else 6222 tcl_ok=0 6223fi 6224 6225 6226 cat >conftest.$ac_ext <<_ACEOF 6227/* confdefs.h. */ 6228_ACEOF 6229cat confdefs.h >>conftest.$ac_ext 6230cat >>conftest.$ac_ext <<_ACEOF 6231/* end confdefs.h. */ 6232#include <stdlib.h> 6233 6234_ACEOF 6235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6236 $EGREP "strtol" >/dev/null 2>&1; then 6237 : 6238else 6239 tcl_ok=0 6240fi 6241rm -f -r conftest* 6242 6243 cat >conftest.$ac_ext <<_ACEOF 6244/* confdefs.h. */ 6245_ACEOF 6246cat confdefs.h >>conftest.$ac_ext 6247cat >>conftest.$ac_ext <<_ACEOF 6248/* end confdefs.h. */ 6249#include <stdlib.h> 6250 6251_ACEOF 6252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6253 $EGREP "strtoul" >/dev/null 2>&1; then 6254 : 6255else 6256 tcl_ok=0 6257fi 6258rm -f -r conftest* 6259 6260 cat >conftest.$ac_ext <<_ACEOF 6261/* confdefs.h. */ 6262_ACEOF 6263cat confdefs.h >>conftest.$ac_ext 6264cat >>conftest.$ac_ext <<_ACEOF 6265/* end confdefs.h. */ 6266#include <stdlib.h> 6267 6268_ACEOF 6269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6270 $EGREP "strtod" >/dev/null 2>&1; then 6271 : 6272else 6273 tcl_ok=0 6274fi 6275rm -f -r conftest* 6276 6277 if test $tcl_ok = 0; then 6278 6279cat >>confdefs.h <<\_ACEOF 6280#define NO_STDLIB_H 1 6281_ACEOF 6282 6283 fi 6284 if test "${ac_cv_header_string_h+set}" = set; then 6285 { echo "$as_me:$LINENO: checking for string.h" >&5 6286echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6287if test "${ac_cv_header_string_h+set}" = set; then 6288 echo $ECHO_N "(cached) $ECHO_C" >&6 6289fi 6290{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6291echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6292else 6293 # Is the header compilable? 6294{ echo "$as_me:$LINENO: checking string.h usability" >&5 6295echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6296cat >conftest.$ac_ext <<_ACEOF 6297/* confdefs.h. */ 6298_ACEOF 6299cat confdefs.h >>conftest.$ac_ext 6300cat >>conftest.$ac_ext <<_ACEOF 6301/* end confdefs.h. */ 6302$ac_includes_default 6303#include <string.h> 6304_ACEOF 6305rm -f conftest.$ac_objext 6306if { (ac_try="$ac_compile" 6307case "(($ac_try" in 6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6309 *) ac_try_echo=$ac_try;; 6310esac 6311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6312 (eval "$ac_compile") 2>conftest.er1 6313 ac_status=$? 6314 grep -v '^ *+' conftest.er1 >conftest.err 6315 rm -f conftest.er1 6316 cat conftest.err >&5 6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6318 (exit $ac_status); } && { 6319 test -z "$ac_c_werror_flag" || 6320 test ! -s conftest.err 6321 } && test -s conftest.$ac_objext; then 6322 ac_header_compiler=yes 6323else 6324 echo "$as_me: failed program was:" >&5 6325sed 's/^/| /' conftest.$ac_ext >&5 6326 6327 ac_header_compiler=no 6328fi 6329 6330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6331{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6332echo "${ECHO_T}$ac_header_compiler" >&6; } 6333 6334# Is the header present? 6335{ echo "$as_me:$LINENO: checking string.h presence" >&5 6336echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6337cat >conftest.$ac_ext <<_ACEOF 6338/* confdefs.h. */ 6339_ACEOF 6340cat confdefs.h >>conftest.$ac_ext 6341cat >>conftest.$ac_ext <<_ACEOF 6342/* end confdefs.h. */ 6343#include <string.h> 6344_ACEOF 6345if { (ac_try="$ac_cpp conftest.$ac_ext" 6346case "(($ac_try" in 6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6348 *) ac_try_echo=$ac_try;; 6349esac 6350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6352 ac_status=$? 6353 grep -v '^ *+' conftest.er1 >conftest.err 6354 rm -f conftest.er1 6355 cat conftest.err >&5 6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6357 (exit $ac_status); } >/dev/null && { 6358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6359 test ! -s conftest.err 6360 }; then 6361 ac_header_preproc=yes 6362else 6363 echo "$as_me: failed program was:" >&5 6364sed 's/^/| /' conftest.$ac_ext >&5 6365 6366 ac_header_preproc=no 6367fi 6368 6369rm -f conftest.err conftest.$ac_ext 6370{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6371echo "${ECHO_T}$ac_header_preproc" >&6; } 6372 6373# So? What about this header? 6374case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6375 yes:no: ) 6376 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6377echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6378 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6379echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6380 ac_header_preproc=yes 6381 ;; 6382 no:yes:* ) 6383 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6384echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6385 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6386echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6387 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6388echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6389 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6390echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6391 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6392echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6393 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6394echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6395 6396 ;; 6397esac 6398{ echo "$as_me:$LINENO: checking for string.h" >&5 6399echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6400if test "${ac_cv_header_string_h+set}" = set; then 6401 echo $ECHO_N "(cached) $ECHO_C" >&6 6402else 6403 ac_cv_header_string_h=$ac_header_preproc 6404fi 6405{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6406echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6407 6408fi 6409if test $ac_cv_header_string_h = yes; then 6410 tcl_ok=1 6411else 6412 tcl_ok=0 6413fi 6414 6415 6416 cat >conftest.$ac_ext <<_ACEOF 6417/* confdefs.h. */ 6418_ACEOF 6419cat confdefs.h >>conftest.$ac_ext 6420cat >>conftest.$ac_ext <<_ACEOF 6421/* end confdefs.h. */ 6422#include <string.h> 6423 6424_ACEOF 6425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6426 $EGREP "strstr" >/dev/null 2>&1; then 6427 : 6428else 6429 tcl_ok=0 6430fi 6431rm -f -r conftest* 6432 6433 cat >conftest.$ac_ext <<_ACEOF 6434/* confdefs.h. */ 6435_ACEOF 6436cat confdefs.h >>conftest.$ac_ext 6437cat >>conftest.$ac_ext <<_ACEOF 6438/* end confdefs.h. */ 6439#include <string.h> 6440 6441_ACEOF 6442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6443 $EGREP "strerror" >/dev/null 2>&1; then 6444 : 6445else 6446 tcl_ok=0 6447fi 6448rm -f -r conftest* 6449 6450 6451 # See also memmove check below for a place where NO_STRING_H can be 6452 # set and why. 6453 6454 if test $tcl_ok = 0; then 6455 6456cat >>confdefs.h <<\_ACEOF 6457#define NO_STRING_H 1 6458_ACEOF 6459 6460 fi 6461 6462 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6463 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6464echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6465if test "${ac_cv_header_sys_wait_h+set}" = set; then 6466 echo $ECHO_N "(cached) $ECHO_C" >&6 6467fi 6468{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6469echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6470else 6471 # Is the header compilable? 6472{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6473echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6474cat >conftest.$ac_ext <<_ACEOF 6475/* confdefs.h. */ 6476_ACEOF 6477cat confdefs.h >>conftest.$ac_ext 6478cat >>conftest.$ac_ext <<_ACEOF 6479/* end confdefs.h. */ 6480$ac_includes_default 6481#include <sys/wait.h> 6482_ACEOF 6483rm -f conftest.$ac_objext 6484if { (ac_try="$ac_compile" 6485case "(($ac_try" in 6486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6487 *) ac_try_echo=$ac_try;; 6488esac 6489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6490 (eval "$ac_compile") 2>conftest.er1 6491 ac_status=$? 6492 grep -v '^ *+' conftest.er1 >conftest.err 6493 rm -f conftest.er1 6494 cat conftest.err >&5 6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6496 (exit $ac_status); } && { 6497 test -z "$ac_c_werror_flag" || 6498 test ! -s conftest.err 6499 } && test -s conftest.$ac_objext; then 6500 ac_header_compiler=yes 6501else 6502 echo "$as_me: failed program was:" >&5 6503sed 's/^/| /' conftest.$ac_ext >&5 6504 6505 ac_header_compiler=no 6506fi 6507 6508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6509{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6510echo "${ECHO_T}$ac_header_compiler" >&6; } 6511 6512# Is the header present? 6513{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6514echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6515cat >conftest.$ac_ext <<_ACEOF 6516/* confdefs.h. */ 6517_ACEOF 6518cat confdefs.h >>conftest.$ac_ext 6519cat >>conftest.$ac_ext <<_ACEOF 6520/* end confdefs.h. */ 6521#include <sys/wait.h> 6522_ACEOF 6523if { (ac_try="$ac_cpp conftest.$ac_ext" 6524case "(($ac_try" in 6525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6526 *) ac_try_echo=$ac_try;; 6527esac 6528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6530 ac_status=$? 6531 grep -v '^ *+' conftest.er1 >conftest.err 6532 rm -f conftest.er1 6533 cat conftest.err >&5 6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6535 (exit $ac_status); } >/dev/null && { 6536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6537 test ! -s conftest.err 6538 }; then 6539 ac_header_preproc=yes 6540else 6541 echo "$as_me: failed program was:" >&5 6542sed 's/^/| /' conftest.$ac_ext >&5 6543 6544 ac_header_preproc=no 6545fi 6546 6547rm -f conftest.err conftest.$ac_ext 6548{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6549echo "${ECHO_T}$ac_header_preproc" >&6; } 6550 6551# So? What about this header? 6552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6553 yes:no: ) 6554 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6555echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6556 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6557echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6558 ac_header_preproc=yes 6559 ;; 6560 no:yes:* ) 6561 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6562echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6563 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6564echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6565 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6566echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6567 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6568echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6569 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6570echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6571 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6572echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6573 6574 ;; 6575esac 6576{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6577echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6578if test "${ac_cv_header_sys_wait_h+set}" = set; then 6579 echo $ECHO_N "(cached) $ECHO_C" >&6 6580else 6581 ac_cv_header_sys_wait_h=$ac_header_preproc 6582fi 6583{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6584echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6585 6586fi 6587if test $ac_cv_header_sys_wait_h = yes; then 6588 : 6589else 6590 6591cat >>confdefs.h <<\_ACEOF 6592#define NO_SYS_WAIT_H 1 6593_ACEOF 6594 6595fi 6596 6597 6598 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6599 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6600echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6601if test "${ac_cv_header_dlfcn_h+set}" = set; then 6602 echo $ECHO_N "(cached) $ECHO_C" >&6 6603fi 6604{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6605echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6606else 6607 # Is the header compilable? 6608{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6609echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6610cat >conftest.$ac_ext <<_ACEOF 6611/* confdefs.h. */ 6612_ACEOF 6613cat confdefs.h >>conftest.$ac_ext 6614cat >>conftest.$ac_ext <<_ACEOF 6615/* end confdefs.h. */ 6616$ac_includes_default 6617#include <dlfcn.h> 6618_ACEOF 6619rm -f conftest.$ac_objext 6620if { (ac_try="$ac_compile" 6621case "(($ac_try" in 6622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6623 *) ac_try_echo=$ac_try;; 6624esac 6625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6626 (eval "$ac_compile") 2>conftest.er1 6627 ac_status=$? 6628 grep -v '^ *+' conftest.er1 >conftest.err 6629 rm -f conftest.er1 6630 cat conftest.err >&5 6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6632 (exit $ac_status); } && { 6633 test -z "$ac_c_werror_flag" || 6634 test ! -s conftest.err 6635 } && test -s conftest.$ac_objext; then 6636 ac_header_compiler=yes 6637else 6638 echo "$as_me: failed program was:" >&5 6639sed 's/^/| /' conftest.$ac_ext >&5 6640 6641 ac_header_compiler=no 6642fi 6643 6644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6645{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6646echo "${ECHO_T}$ac_header_compiler" >&6; } 6647 6648# Is the header present? 6649{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6650echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6651cat >conftest.$ac_ext <<_ACEOF 6652/* confdefs.h. */ 6653_ACEOF 6654cat confdefs.h >>conftest.$ac_ext 6655cat >>conftest.$ac_ext <<_ACEOF 6656/* end confdefs.h. */ 6657#include <dlfcn.h> 6658_ACEOF 6659if { (ac_try="$ac_cpp conftest.$ac_ext" 6660case "(($ac_try" in 6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6662 *) ac_try_echo=$ac_try;; 6663esac 6664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6666 ac_status=$? 6667 grep -v '^ *+' conftest.er1 >conftest.err 6668 rm -f conftest.er1 6669 cat conftest.err >&5 6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6671 (exit $ac_status); } >/dev/null && { 6672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6673 test ! -s conftest.err 6674 }; then 6675 ac_header_preproc=yes 6676else 6677 echo "$as_me: failed program was:" >&5 6678sed 's/^/| /' conftest.$ac_ext >&5 6679 6680 ac_header_preproc=no 6681fi 6682 6683rm -f conftest.err conftest.$ac_ext 6684{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6685echo "${ECHO_T}$ac_header_preproc" >&6; } 6686 6687# So? What about this header? 6688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6689 yes:no: ) 6690 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6691echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6692 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6693echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6694 ac_header_preproc=yes 6695 ;; 6696 no:yes:* ) 6697 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6698echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6699 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6700echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6701 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6702echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6703 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6704echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6705 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6706echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6707 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6708echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6709 6710 ;; 6711esac 6712{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6713echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6714if test "${ac_cv_header_dlfcn_h+set}" = set; then 6715 echo $ECHO_N "(cached) $ECHO_C" >&6 6716else 6717 ac_cv_header_dlfcn_h=$ac_header_preproc 6718fi 6719{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6720echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6721 6722fi 6723if test $ac_cv_header_dlfcn_h = yes; then 6724 : 6725else 6726 6727cat >>confdefs.h <<\_ACEOF 6728#define NO_DLFCN_H 1 6729_ACEOF 6730 6731fi 6732 6733 6734 6735 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6736 6737for ac_header in sys/param.h 6738do 6739as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6740if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6741 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6744 echo $ECHO_N "(cached) $ECHO_C" >&6 6745fi 6746ac_res=`eval echo '${'$as_ac_Header'}'` 6747 { echo "$as_me:$LINENO: result: $ac_res" >&5 6748echo "${ECHO_T}$ac_res" >&6; } 6749else 6750 # Is the header compilable? 6751{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6752echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6753cat >conftest.$ac_ext <<_ACEOF 6754/* confdefs.h. */ 6755_ACEOF 6756cat confdefs.h >>conftest.$ac_ext 6757cat >>conftest.$ac_ext <<_ACEOF 6758/* end confdefs.h. */ 6759$ac_includes_default 6760#include <$ac_header> 6761_ACEOF 6762rm -f conftest.$ac_objext 6763if { (ac_try="$ac_compile" 6764case "(($ac_try" in 6765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6766 *) ac_try_echo=$ac_try;; 6767esac 6768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6769 (eval "$ac_compile") 2>conftest.er1 6770 ac_status=$? 6771 grep -v '^ *+' conftest.er1 >conftest.err 6772 rm -f conftest.er1 6773 cat conftest.err >&5 6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6775 (exit $ac_status); } && { 6776 test -z "$ac_c_werror_flag" || 6777 test ! -s conftest.err 6778 } && test -s conftest.$ac_objext; then 6779 ac_header_compiler=yes 6780else 6781 echo "$as_me: failed program was:" >&5 6782sed 's/^/| /' conftest.$ac_ext >&5 6783 6784 ac_header_compiler=no 6785fi 6786 6787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6788{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6789echo "${ECHO_T}$ac_header_compiler" >&6; } 6790 6791# Is the header present? 6792{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6793echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6794cat >conftest.$ac_ext <<_ACEOF 6795/* confdefs.h. */ 6796_ACEOF 6797cat confdefs.h >>conftest.$ac_ext 6798cat >>conftest.$ac_ext <<_ACEOF 6799/* end confdefs.h. */ 6800#include <$ac_header> 6801_ACEOF 6802if { (ac_try="$ac_cpp conftest.$ac_ext" 6803case "(($ac_try" in 6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6805 *) ac_try_echo=$ac_try;; 6806esac 6807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6809 ac_status=$? 6810 grep -v '^ *+' conftest.er1 >conftest.err 6811 rm -f conftest.er1 6812 cat conftest.err >&5 6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6814 (exit $ac_status); } >/dev/null && { 6815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6816 test ! -s conftest.err 6817 }; then 6818 ac_header_preproc=yes 6819else 6820 echo "$as_me: failed program was:" >&5 6821sed 's/^/| /' conftest.$ac_ext >&5 6822 6823 ac_header_preproc=no 6824fi 6825 6826rm -f conftest.err conftest.$ac_ext 6827{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6828echo "${ECHO_T}$ac_header_preproc" >&6; } 6829 6830# So? What about this header? 6831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6832 yes:no: ) 6833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6834echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6836echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6837 ac_header_preproc=yes 6838 ;; 6839 no:yes:* ) 6840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6841echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6843echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6845echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6847echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6851echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6852 6853 ;; 6854esac 6855{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6858 echo $ECHO_N "(cached) $ECHO_C" >&6 6859else 6860 eval "$as_ac_Header=\$ac_header_preproc" 6861fi 6862ac_res=`eval echo '${'$as_ac_Header'}'` 6863 { echo "$as_me:$LINENO: result: $ac_res" >&5 6864echo "${ECHO_T}$ac_res" >&6; } 6865 6866fi 6867if test `eval echo '${'$as_ac_Header'}'` = yes; then 6868 cat >>confdefs.h <<_ACEOF 6869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6870_ACEOF 6871 6872fi 6873 6874done 6875 6876 6877 # Let the user call this, because if it triggers, they will 6878 # need a compat/strtod.c that is correct. Users can also 6879 # use Tcl_GetDouble(FromObj) instead. 6880 #TEA_BUGGY_STRTOD 6881 fi 6882 6883 6884 6885 # 6886 # Ok, lets find the tkimg configuration 6887 # First, look for one uninstalled. 6888 # the alternative search directory is invoked by --with-tkimg 6889 # 6890 6891 if test x"${no_tkimg}" = x ; then 6892 # we reset no_tkimg in case something fails here 6893 no_tkimg=true 6894 6895# Check whether --with-tkimg was given. 6896if test "${with_tkimg+set}" = set; then 6897 withval=$with_tkimg; with_tkimgconfig=${withval} 6898fi 6899 6900 { echo "$as_me:$LINENO: checking for tkimg configuration" >&5 6901echo $ECHO_N "checking for tkimg configuration... $ECHO_C" >&6; } 6902 if test "${ac_cv_c_tkimgconfig+set}" = set; then 6903 echo $ECHO_N "(cached) $ECHO_C" >&6 6904else 6905 6906 6907 # First check to see if --with-tkimg was specified. 6908 if test x"${with_tkimgconfig}" != x ; then 6909 case ${with_tkimgconfig} in 6910 */tkimgConfig.sh ) 6911 if test -f ${with_tkimgconfig}; then 6912 { echo "$as_me:$LINENO: WARNING: --with-tkimg argument should refer to directory containing tkimgConfig.sh, not to tkimgConfig.sh itself" >&5 6913echo "$as_me: WARNING: --with-tkimg argument should refer to directory containing tkimgConfig.sh, not to tkimgConfig.sh itself" >&2;} 6914 with_tkimgconfig=`echo ${with_tkimgconfig} | sed 's!/tkimgConfig\.sh$!!'` 6915 fi;; 6916 esac 6917 if test -f "${with_tkimgconfig}/tkimgConfig.sh" ; then 6918 ac_cv_c_tkimgconfig=`(cd ${with_tkimgconfig}; pwd)` 6919 else 6920 { { echo "$as_me:$LINENO: error: ${with_tkimgconfig} directory doesn't contain tkimgConfig.sh" >&5 6921echo "$as_me: error: ${with_tkimgconfig} directory doesn't contain tkimgConfig.sh" >&2;} 6922 { (exit 1); exit 1; }; } 6923 fi 6924 fi 6925 6926 # then check for a private tkimg installation 6927 if test x"${ac_cv_c_tkimgconfig}" = x ; then 6928 for i in \ 6929 ../tkimg \ 6930 `ls -dr ../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6931 `ls -dr ../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6932 `ls -dr ../tkimg*[0-9].[0-9] 2>/dev/null` \ 6933 `ls -dr ../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6934 ../../tkimg \ 6935 `ls -dr ../../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6936 `ls -dr ../../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6937 `ls -dr ../../tkimg*[0-9].[0-9] 2>/dev/null` \ 6938 `ls -dr ../../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6939 ../../../tkimg \ 6940 `ls -dr ../../../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6941 `ls -dr ../../../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6942 `ls -dr ../../../tkimg*[0-9].[0-9] 2>/dev/null` \ 6943 `ls -dr ../../../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6944 ${srcdir}/../tkimg \ 6945 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6946 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6947 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9] 2>/dev/null` \ 6948 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6949 ; do 6950 if test -f "$i/tkimgConfig.sh" ; then 6951 ac_cv_c_tkimgconfig=`(cd $i; pwd)` 6952 break 6953 fi 6954 if test -f "$i/unix/tkimgConfig.sh" ; then 6955 ac_cv_c_tkimgconfig=`(cd $i/unix; pwd)` 6956 break 6957 fi 6958 done 6959 fi 6960 6961 # check in a few common install locations 6962 if test x"${ac_cv_c_tkimgconfig}" = x ; then 6963 for i in `ls -d ${libdir} 2>/dev/null` \ 6964 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 6965 `ls -d ${prefix}/lib 2>/dev/null` \ 6966 `ls -d /usr/local/lib 2>/dev/null` \ 6967 `ls -d /usr/contrib/lib 2>/dev/null` \ 6968 `ls -d /usr/lib 2>/dev/null` \ 6969 `ls -d /usr/lib64 2>/dev/null` \ 6970 ; do 6971 if test -f "$i/tkimgConfig.sh" ; then 6972 ac_cv_c_tkimgconfig=`(cd $i; pwd)` 6973 break 6974 fi 6975 done 6976 fi 6977 6978fi 6979 6980 6981 if test x"${ac_cv_c_tkimgconfig}" = x ; then 6982 tkimg_BIN_DIR="# no tkimg configs found" 6983 { echo "$as_me:$LINENO: WARNING: Cannot find tkimg configuration definitions" >&5 6984echo "$as_me: WARNING: Cannot find tkimg configuration definitions" >&2;} 6985 exit 0 6986 else 6987 no_tkimg= 6988 tkimg_BIN_DIR=${ac_cv_c_tkimgconfig} 6989 { echo "$as_me:$LINENO: result: found $tkimg_BIN_DIR/tkimgConfig.sh" >&5 6990echo "${ECHO_T}found $tkimg_BIN_DIR/tkimgConfig.sh" >&6; } 6991 fi 6992 fi 6993 6994 6995 { echo "$as_me:$LINENO: checking for existence of ${tkimg_BIN_DIR}/tkimgConfig.sh" >&5 6996echo $ECHO_N "checking for existence of ${tkimg_BIN_DIR}/tkimgConfig.sh... $ECHO_C" >&6; } 6997 6998 if test -f "${tkimg_BIN_DIR}/tkimgConfig.sh" ; then 6999 { echo "$as_me:$LINENO: result: loading" >&5 7000echo "${ECHO_T}loading" >&6; } 7001 . "${tkimg_BIN_DIR}/tkimgConfig.sh" 7002 else 7003 { echo "$as_me:$LINENO: result: file not found" >&5 7004echo "${ECHO_T}file not found" >&6; } 7005 fi 7006 7007 # 7008 # If the tkimg_BIN_DIR is the build directory (not the install directory), 7009 # then set the common variable name to the value of the build variables. 7010 # For example, the variable tkimg_LIB_SPEC will be set to the value 7011 # of tkimg_BUILD_LIB_SPEC. An extension should make use of tkimg_LIB_SPEC 7012 # instead of tkimg_BUILD_LIB_SPEC since it will work with both an 7013 # installed and uninstalled version of Tcl. 7014 # 7015 7016 if test -f "${tkimg_BIN_DIR}/Makefile" ; then 7017 { echo "$as_me:$LINENO: WARNING: Found Makefile - using build library specs for tkimg" >&5 7018echo "$as_me: WARNING: Found Makefile - using build library specs for tkimg" >&2;} 7019 tkimg_LIB_SPEC=${tkimg_BUILD_LIB_SPEC} 7020 tkimg_STUB_LIB_SPEC=${tkimg_BUILD_STUB_LIB_SPEC} 7021 tkimg_STUB_LIB_PATH=${tkimg_BUILD_STUB_LIB_PATH} 7022 fi 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 # Allow the caller to prevent this auto-check by specifying any 2nd arg 7036 if test "x" = x; then 7037 7038 # Check both upper and lower-case variants 7039 # If a dev wanted non-stubs libs, this function could take an option 7040 # to not use _STUB in the paths below 7041 if test "x${tkimg_STUB_LIB_SPEC}" = x; then 7042 7043 { echo "$as_me:$LINENO: checking For TKIMG_STUB library for LIBS" >&5 7044echo $ECHO_N "checking For TKIMG_STUB library for LIBS... $ECHO_C" >&6; } 7045 # This simplifies the use of stub libraries by automatically adding 7046 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7047 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7048 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7049 if test "x${TKIMG_STUB_LIB_SPEC}" != "x" ; then 7050 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7051 7052 vars="\"`${CYGPATH} ${TKIMG_STUB_LIB_PATH}`\"" 7053 for i in $vars; do 7054 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7055 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7056 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7057 fi 7058 PKG_LIBS="$PKG_LIBS $i" 7059 done 7060 7061 7062 { echo "$as_me:$LINENO: result: using TKIMG_STUB_LIB_PATH ${TKIMG_STUB_LIB_PATH}" >&5 7063echo "${ECHO_T}using TKIMG_STUB_LIB_PATH ${TKIMG_STUB_LIB_PATH}" >&6; } 7064 else 7065 7066 vars="${TKIMG_STUB_LIB_SPEC}" 7067 for i in $vars; do 7068 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7069 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7070 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7071 fi 7072 PKG_LIBS="$PKG_LIBS $i" 7073 done 7074 7075 7076 { echo "$as_me:$LINENO: result: using TKIMG_STUB_LIB_SPEC ${TKIMG_STUB_LIB_SPEC}" >&5 7077echo "${ECHO_T}using TKIMG_STUB_LIB_SPEC ${TKIMG_STUB_LIB_SPEC}" >&6; } 7078 fi 7079 else 7080 { echo "$as_me:$LINENO: result: file not found" >&5 7081echo "${ECHO_T}file not found" >&6; } 7082 fi 7083 7084else 7085 7086 { echo "$as_me:$LINENO: checking For tkimg_STUB library for LIBS" >&5 7087echo $ECHO_N "checking For tkimg_STUB library for LIBS... $ECHO_C" >&6; } 7088 # This simplifies the use of stub libraries by automatically adding 7089 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7090 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7091 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7092 if test "x${tkimg_STUB_LIB_SPEC}" != "x" ; then 7093 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7094 7095 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\"" 7096 for i in $vars; do 7097 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7098 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7099 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7100 fi 7101 PKG_LIBS="$PKG_LIBS $i" 7102 done 7103 7104 7105 { echo "$as_me:$LINENO: result: using tkimg_STUB_LIB_PATH ${tkimg_STUB_LIB_PATH}" >&5 7106echo "${ECHO_T}using tkimg_STUB_LIB_PATH ${tkimg_STUB_LIB_PATH}" >&6; } 7107 else 7108 7109 vars="${tkimg_STUB_LIB_SPEC}" 7110 for i in $vars; do 7111 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7112 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7113 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7114 fi 7115 PKG_LIBS="$PKG_LIBS $i" 7116 done 7117 7118 7119 { echo "$as_me:$LINENO: result: using tkimg_STUB_LIB_SPEC ${tkimg_STUB_LIB_SPEC}" >&5 7120echo "${ECHO_T}using tkimg_STUB_LIB_SPEC ${tkimg_STUB_LIB_SPEC}" >&6; } 7121 fi 7122 else 7123 { echo "$as_me:$LINENO: result: file not found" >&5 7124echo "${ECHO_T}file not found" >&6; } 7125 fi 7126 7127fi 7128 7129 7130fi 7131 7132 7133 7134 7135 # 7136 # Ok, lets find the jpegtcl configuration 7137 # First, look for one uninstalled. 7138 # the alternative search directory is invoked by --with-jpegtcl 7139 # 7140 7141 if test x"${no_jpegtcl}" = x ; then 7142 # we reset no_jpegtcl in case something fails here 7143 no_jpegtcl=true 7144 7145# Check whether --with-jpegtcl was given. 7146if test "${with_jpegtcl+set}" = set; then 7147 withval=$with_jpegtcl; with_jpegtclconfig=${withval} 7148fi 7149 7150 { echo "$as_me:$LINENO: checking for jpegtcl configuration" >&5 7151echo $ECHO_N "checking for jpegtcl configuration... $ECHO_C" >&6; } 7152 if test "${ac_cv_c_jpegtclconfig+set}" = set; then 7153 echo $ECHO_N "(cached) $ECHO_C" >&6 7154else 7155 7156 7157 # First check to see if --with-jpegtcl was specified. 7158 if test x"${with_jpegtclconfig}" != x ; then 7159 case ${with_jpegtclconfig} in 7160 */jpegtclConfig.sh ) 7161 if test -f ${with_jpegtclconfig}; then 7162 { echo "$as_me:$LINENO: WARNING: --with-jpegtcl argument should refer to directory containing jpegtclConfig.sh, not to jpegtclConfig.sh itself" >&5 7163echo "$as_me: WARNING: --with-jpegtcl argument should refer to directory containing jpegtclConfig.sh, not to jpegtclConfig.sh itself" >&2;} 7164 with_jpegtclconfig=`echo ${with_jpegtclconfig} | sed 's!/jpegtclConfig\.sh$!!'` 7165 fi;; 7166 esac 7167 if test -f "${with_jpegtclconfig}/jpegtclConfig.sh" ; then 7168 ac_cv_c_jpegtclconfig=`(cd ${with_jpegtclconfig}; pwd)` 7169 else 7170 { { echo "$as_me:$LINENO: error: ${with_jpegtclconfig} directory doesn't contain jpegtclConfig.sh" >&5 7171echo "$as_me: error: ${with_jpegtclconfig} directory doesn't contain jpegtclConfig.sh" >&2;} 7172 { (exit 1); exit 1; }; } 7173 fi 7174 fi 7175 7176 # then check for a private jpegtcl installation 7177 if test x"${ac_cv_c_jpegtclconfig}" = x ; then 7178 for i in \ 7179 ../jpegtcl \ 7180 `ls -dr ../jpegtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 7181 `ls -dr ../jpegtcl*[0-9].[0-9][0-9] 2>/dev/null` \ 7182 `ls -dr ../jpegtcl*[0-9].[0-9] 2>/dev/null` \ 7183 `ls -dr ../jpegtcl*[0-9].[0-9]* 2>/dev/null` \ 7184 ../../jpegtcl \ 7185 `ls -dr ../../jpegtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 7186 `ls -dr ../../jpegtcl*[0-9].[0-9][0-9] 2>/dev/null` \ 7187 `ls -dr ../../jpegtcl*[0-9].[0-9] 2>/dev/null` \ 7188 `ls -dr ../../jpegtcl*[0-9].[0-9]* 2>/dev/null` \ 7189 ../../../jpegtcl \ 7190 `ls -dr ../../../jpegtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 7191 `ls -dr ../../../jpegtcl*[0-9].[0-9][0-9] 2>/dev/null` \ 7192 `ls -dr ../../../jpegtcl*[0-9].[0-9] 2>/dev/null` \ 7193 `ls -dr ../../../jpegtcl*[0-9].[0-9]* 2>/dev/null` \ 7194 ${srcdir}/../jpegtcl \ 7195 `ls -dr ${srcdir}/../jpegtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 7196 `ls -dr ${srcdir}/../jpegtcl*[0-9].[0-9][0-9] 2>/dev/null` \ 7197 `ls -dr ${srcdir}/../jpegtcl*[0-9].[0-9] 2>/dev/null` \ 7198 `ls -dr ${srcdir}/../jpegtcl*[0-9].[0-9]* 2>/dev/null` \ 7199 ; do 7200 if test -f "$i/jpegtclConfig.sh" ; then 7201 ac_cv_c_jpegtclconfig=`(cd $i; pwd)` 7202 break 7203 fi 7204 if test -f "$i/unix/jpegtclConfig.sh" ; then 7205 ac_cv_c_jpegtclconfig=`(cd $i/unix; pwd)` 7206 break 7207 fi 7208 done 7209 fi 7210 7211 # check in a few common install locations 7212 if test x"${ac_cv_c_jpegtclconfig}" = x ; then 7213 for i in `ls -d ${libdir} 2>/dev/null` \ 7214 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 7215 `ls -d ${prefix}/lib 2>/dev/null` \ 7216 `ls -d /usr/local/lib 2>/dev/null` \ 7217 `ls -d /usr/contrib/lib 2>/dev/null` \ 7218 `ls -d /usr/lib 2>/dev/null` \ 7219 `ls -d /usr/lib64 2>/dev/null` \ 7220 ; do 7221 if test -f "$i/jpegtclConfig.sh" ; then 7222 ac_cv_c_jpegtclconfig=`(cd $i; pwd)` 7223 break 7224 fi 7225 done 7226 fi 7227 7228fi 7229 7230 7231 if test x"${ac_cv_c_jpegtclconfig}" = x ; then 7232 jpegtcl_BIN_DIR="# no jpegtcl configs found" 7233 { echo "$as_me:$LINENO: WARNING: Cannot find jpegtcl configuration definitions" >&5 7234echo "$as_me: WARNING: Cannot find jpegtcl configuration definitions" >&2;} 7235 exit 0 7236 else 7237 no_jpegtcl= 7238 jpegtcl_BIN_DIR=${ac_cv_c_jpegtclconfig} 7239 { echo "$as_me:$LINENO: result: found $jpegtcl_BIN_DIR/jpegtclConfig.sh" >&5 7240echo "${ECHO_T}found $jpegtcl_BIN_DIR/jpegtclConfig.sh" >&6; } 7241 fi 7242 fi 7243 7244 7245 { echo "$as_me:$LINENO: checking for existence of ${jpegtcl_BIN_DIR}/jpegtclConfig.sh" >&5 7246echo $ECHO_N "checking for existence of ${jpegtcl_BIN_DIR}/jpegtclConfig.sh... $ECHO_C" >&6; } 7247 7248 if test -f "${jpegtcl_BIN_DIR}/jpegtclConfig.sh" ; then 7249 { echo "$as_me:$LINENO: result: loading" >&5 7250echo "${ECHO_T}loading" >&6; } 7251 . "${jpegtcl_BIN_DIR}/jpegtclConfig.sh" 7252 else 7253 { echo "$as_me:$LINENO: result: file not found" >&5 7254echo "${ECHO_T}file not found" >&6; } 7255 fi 7256 7257 # 7258 # If the jpegtcl_BIN_DIR is the build directory (not the install directory), 7259 # then set the common variable name to the value of the build variables. 7260 # For example, the variable jpegtcl_LIB_SPEC will be set to the value 7261 # of jpegtcl_BUILD_LIB_SPEC. An extension should make use of jpegtcl_LIB_SPEC 7262 # instead of jpegtcl_BUILD_LIB_SPEC since it will work with both an 7263 # installed and uninstalled version of Tcl. 7264 # 7265 7266 if test -f "${jpegtcl_BIN_DIR}/Makefile" ; then 7267 { echo "$as_me:$LINENO: WARNING: Found Makefile - using build library specs for jpegtcl" >&5 7268echo "$as_me: WARNING: Found Makefile - using build library specs for jpegtcl" >&2;} 7269 jpegtcl_LIB_SPEC=${jpegtcl_BUILD_LIB_SPEC} 7270 jpegtcl_STUB_LIB_SPEC=${jpegtcl_BUILD_STUB_LIB_SPEC} 7271 jpegtcl_STUB_LIB_PATH=${jpegtcl_BUILD_STUB_LIB_PATH} 7272 fi 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 # Allow the caller to prevent this auto-check by specifying any 2nd arg 7286 if test "x" = x; then 7287 7288 # Check both upper and lower-case variants 7289 # If a dev wanted non-stubs libs, this function could take an option 7290 # to not use _STUB in the paths below 7291 if test "x${jpegtcl_STUB_LIB_SPEC}" = x; then 7292 7293 { echo "$as_me:$LINENO: checking For JPEGTCL_STUB library for LIBS" >&5 7294echo $ECHO_N "checking For JPEGTCL_STUB library for LIBS... $ECHO_C" >&6; } 7295 # This simplifies the use of stub libraries by automatically adding 7296 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7297 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7298 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7299 if test "x${JPEGTCL_STUB_LIB_SPEC}" != "x" ; then 7300 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7301 7302 vars="\"`${CYGPATH} ${JPEGTCL_STUB_LIB_PATH}`\"" 7303 for i in $vars; do 7304 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7305 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7306 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7307 fi 7308 PKG_LIBS="$PKG_LIBS $i" 7309 done 7310 7311 7312 { echo "$as_me:$LINENO: result: using JPEGTCL_STUB_LIB_PATH ${JPEGTCL_STUB_LIB_PATH}" >&5 7313echo "${ECHO_T}using JPEGTCL_STUB_LIB_PATH ${JPEGTCL_STUB_LIB_PATH}" >&6; } 7314 else 7315 7316 vars="${JPEGTCL_STUB_LIB_SPEC}" 7317 for i in $vars; do 7318 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7319 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7320 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7321 fi 7322 PKG_LIBS="$PKG_LIBS $i" 7323 done 7324 7325 7326 { echo "$as_me:$LINENO: result: using JPEGTCL_STUB_LIB_SPEC ${JPEGTCL_STUB_LIB_SPEC}" >&5 7327echo "${ECHO_T}using JPEGTCL_STUB_LIB_SPEC ${JPEGTCL_STUB_LIB_SPEC}" >&6; } 7328 fi 7329 else 7330 { echo "$as_me:$LINENO: result: file not found" >&5 7331echo "${ECHO_T}file not found" >&6; } 7332 fi 7333 7334else 7335 7336 { echo "$as_me:$LINENO: checking For jpegtcl_STUB library for LIBS" >&5 7337echo $ECHO_N "checking For jpegtcl_STUB library for LIBS... $ECHO_C" >&6; } 7338 # This simplifies the use of stub libraries by automatically adding 7339 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7340 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7341 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7342 if test "x${jpegtcl_STUB_LIB_SPEC}" != "x" ; then 7343 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7344 7345 vars="\"`${CYGPATH} ${jpegtcl_STUB_LIB_PATH}`\"" 7346 for i in $vars; do 7347 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7348 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7349 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7350 fi 7351 PKG_LIBS="$PKG_LIBS $i" 7352 done 7353 7354 7355 { echo "$as_me:$LINENO: result: using jpegtcl_STUB_LIB_PATH ${jpegtcl_STUB_LIB_PATH}" >&5 7356echo "${ECHO_T}using jpegtcl_STUB_LIB_PATH ${jpegtcl_STUB_LIB_PATH}" >&6; } 7357 else 7358 7359 vars="${jpegtcl_STUB_LIB_SPEC}" 7360 for i in $vars; do 7361 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7362 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7363 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7364 fi 7365 PKG_LIBS="$PKG_LIBS $i" 7366 done 7367 7368 7369 { echo "$as_me:$LINENO: result: using jpegtcl_STUB_LIB_SPEC ${jpegtcl_STUB_LIB_SPEC}" >&5 7370echo "${ECHO_T}using jpegtcl_STUB_LIB_SPEC ${jpegtcl_STUB_LIB_SPEC}" >&6; } 7371 fi 7372 else 7373 { echo "$as_me:$LINENO: result: file not found" >&5 7374echo "${ECHO_T}file not found" >&6; } 7375 fi 7376 7377fi 7378 7379 7380fi 7381 7382 7383 7384 7385 7386#-------------------------------------------------------------------- 7387# Compute an absolute path to the src directory of module 'tkimg' so 7388# that we are able to find its headers even if they are not installed. 7389#-------------------------------------------------------------------- 7390 7391case $tkimg_SRC_DIR in 7392/*) tkimg_SRC_PATH=$tkimg_SRC_DIR 7393 ;; 7394*) # SRC_DIR relative, splice with BUILD_PATH 7395 tkimg_SRC_PATH="`dirname $tkimg_BUILD_STUB_LIB_PATH`/$tkimg_SRC_DIR" 7396esac 7397 7398tkimg_BUILD_PATH="`dirname $tkimg_BUILD_STUB_LIB_PATH`" 7399 7400if test "${TEA_PLATFORM}" = "windows" ; then 7401 tkimg_SRC_PATH="`$CYGPATH $tkimg_SRC_PATH`" 7402 tkimg_BUILD_PATH="`$CYGPATH $tkimg_BUILD_PATH`" 7403fi 7404 7405 7406 7407 7408 7409#-------------------------------------------------------------------- 7410# Compute an absolute path to the src directory of module 'jpegtcl' so 7411# that we are able to find its headers even if they are not installed. 7412#-------------------------------------------------------------------- 7413 7414case $jpegtcl_SRC_DIR in 7415/*) jpegtcl_SRC_PATH=$jpegtcl_SRC_DIR 7416 ;; 7417*) # SRC_DIR relative, splice with BUILD_PATH 7418 jpegtcl_SRC_PATH="`dirname $jpegtcl_BUILD_STUB_LIB_PATH`/$jpegtcl_SRC_DIR" 7419esac 7420 7421jpegtcl_BUILD_PATH="`dirname $jpegtcl_BUILD_STUB_LIB_PATH`" 7422 7423if test "${TEA_PLATFORM}" = "windows" ; then 7424 jpegtcl_SRC_PATH="`$CYGPATH $jpegtcl_SRC_PATH`" 7425 jpegtcl_BUILD_PATH="`$CYGPATH $jpegtcl_BUILD_PATH`" 7426fi 7427 7428 7429 7430 7431 7432#----------------------------------------------------------------------- 7433# Specify the C source files to compile in TEA_ADD_SOURCES, 7434# public headers that need to be installed in TEA_ADD_HEADERS, 7435# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 7436# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 7437# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 7438# and PKG_TCL_SOURCES. 7439#----------------------------------------------------------------------- 7440 7441 7442 vars="jpeg.c" 7443 for i in $vars; do 7444 case $i in 7445 \$*) 7446 # allow $-var names 7447 PKG_SOURCES="$PKG_SOURCES $i" 7448 PKG_OBJECTS="$PKG_OBJECTS $i" 7449 ;; 7450 *) 7451 # check for existence - allows for generic/win/unix VPATH 7452 # To add more dirs here (like 'src'), you have to update VPATH 7453 # in Makefile.in as well 7454 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7455 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7456 -a ! -f "${srcdir}/macosx/$i" \ 7457 ; then 7458 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7459echo "$as_me: error: could not find source file '$i'" >&2;} 7460 { (exit 1); exit 1; }; } 7461 fi 7462 PKG_SOURCES="$PKG_SOURCES $i" 7463 # this assumes it is in a VPATH dir 7464 i=`basename $i` 7465 # handle user calling this before or after TEA_SETUP_COMPILER 7466 if test x"${OBJEXT}" != x ; then 7467 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7468 else 7469 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7470 fi 7471 PKG_OBJECTS="$PKG_OBJECTS $j" 7472 ;; 7473 esac 7474 done 7475 7476 7477 7478 7479 vars="" 7480 for i in $vars; do 7481 # check for existence, be strict because it is installed 7482 if test ! -f "${srcdir}/$i" ; then 7483 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 7484echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 7485 { (exit 1); exit 1; }; } 7486 fi 7487 PKG_HEADERS="$PKG_HEADERS $i" 7488 done 7489 7490 7491 7492 vars="-I\"`\${CYGPATH} \${tkimg_SRC_PATH}`\"" 7493 for i in $vars; do 7494 PKG_INCLUDES="$PKG_INCLUDES $i" 7495 done 7496 7497 7498 7499 vars="-I\"`\${CYGPATH} \${jpegtcl_SRC_PATH}`\"" 7500 for i in $vars; do 7501 PKG_INCLUDES="$PKG_INCLUDES $i" 7502 done 7503 7504 7505 7506 vars="-I\"`\${CYGPATH} \${jpegtcl_BUILD_PATH}/libjpeg`\"" 7507 for i in $vars; do 7508 PKG_INCLUDES="$PKG_INCLUDES $i" 7509 done 7510 7511 7512 7513 vars="-I." 7514 for i in $vars; do 7515 PKG_INCLUDES="$PKG_INCLUDES $i" 7516 done 7517 7518 7519 7520 vars="" 7521 for i in $vars; do 7522 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7523 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7524 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7525 fi 7526 PKG_LIBS="$PKG_LIBS $i" 7527 done 7528 7529 7530 7531 PKG_CFLAGS="$PKG_CFLAGS -DTKIMG_VERSION=\\\"\${tkimg_VERSION}\\\"" 7532 7533 7534 7535 PKG_CFLAGS="$PKG_CFLAGS -DJPEGTCL_VERSION=\\\"\${jpegtcl_VERSION}\\\"" 7536 7537 7538 7539 vars="" 7540 for i in $vars; do 7541 # check for existence - allows for generic/win/unix VPATH 7542 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7543 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7544 -a ! -f "${srcdir}/macosx/$i" \ 7545 ; then 7546 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 7547echo "$as_me: error: could not find stub source file '$i'" >&2;} 7548 { (exit 1); exit 1; }; } 7549 fi 7550 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 7551 # this assumes it is in a VPATH dir 7552 i=`basename $i` 7553 # handle user calling this before or after TEA_SETUP_COMPILER 7554 if test x"${OBJEXT}" != x ; then 7555 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7556 else 7557 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7558 fi 7559 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 7560 done 7561 7562 7563 7564 7565 vars="" 7566 for i in $vars; do 7567 # check for existence, be strict because it is installed 7568 if test ! -f "${srcdir}/$i" ; then 7569 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 7570echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 7571 { (exit 1); exit 1; }; } 7572 fi 7573 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 7574 done 7575 7576 7577 7578PUP="`echo ${PACKAGE_NAME}| tr 'a-z' 'A-Z'`" 7579 7580sed < "`${CYGPATH} ${srcdir}/../init.c`" > "init.c" \ 7581 -e "s/@CPACKAGE@/${CPACKAGE}/" \ 7582 -e "s/%PACKAGE%/${PACKAGE_NAME}/" \ 7583 -e "s/%PACKAGE_UP%/${PUP}/" \ 7584 -e "s/%PHIMGTYPE%/${PHIMGTYPE}/" 7585 7586# init.c is an included source file, not a source by itself 7587# FUTURE: Do this through AC_OUTPUT!! 7588 7589#-------------------------------------------------------------------- 7590# __CHANGE__ 7591# Choose which headers you need. Extension authors should try very 7592# hard to only rely on the Tcl public header files. Internal headers 7593# contain private data structures and are subject to change without 7594# notice. 7595# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 7596#-------------------------------------------------------------------- 7597 7598 7599 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 7600echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 7601 7602 7603# Check whether --with-tclinclude was given. 7604if test "${with_tclinclude+set}" = set; then 7605 withval=$with_tclinclude; with_tclinclude=${withval} 7606fi 7607 7608 7609 if test "${ac_cv_c_tclh+set}" = set; then 7610 echo $ECHO_N "(cached) $ECHO_C" >&6 7611else 7612 7613 # Use the value from --with-tclinclude, if it was given 7614 7615 if test x"${with_tclinclude}" != x ; then 7616 if test -f "${with_tclinclude}/tcl.h" ; then 7617 ac_cv_c_tclh=${with_tclinclude} 7618 else 7619 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 7620echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 7621 { (exit 1); exit 1; }; } 7622 fi 7623 else 7624 list="" 7625 if test "`uname -s`" = "Darwin"; then 7626 # If Tcl was built as a framework, attempt to use 7627 # the framework's Headers directory 7628 case ${TCL_DEFS} in 7629 *TCL_FRAMEWORK*) 7630 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 7631 ;; 7632 esac 7633 fi 7634 7635 # Look in the source dir only if Tcl is not installed, 7636 # and in that situation, look there before installed locations. 7637 if test -f "${TCL_BIN_DIR}/Makefile" ; then 7638 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 7639 fi 7640 7641 # Check order: pkg --prefix location, Tcl's --prefix location, 7642 # relative to directory of tclConfig.sh. 7643 7644 eval "temp_includedir=${includedir}" 7645 list="$list \ 7646 `ls -d ${temp_includedir} 2>/dev/null` \ 7647 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7648 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7649 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7650 list="$list /usr/local/include /usr/include" 7651 if test x"${TCL_INCLUDE_SPEC}" != x ; then 7652 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7653 list="$list `ls -d ${d} 2>/dev/null`" 7654 fi 7655 fi 7656 for i in $list ; do 7657 if test -f "$i/tcl.h" ; then 7658 ac_cv_c_tclh=$i 7659 break 7660 fi 7661 done 7662 fi 7663 7664fi 7665 7666 7667 # Print a message based on how we determined the include path 7668 7669 if test x"${ac_cv_c_tclh}" = x ; then 7670 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 7671echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 7672 { (exit 1); exit 1; }; } 7673 else 7674 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 7675echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 7676 fi 7677 7678 # Convert to a native path and substitute into the output files. 7679 7680 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 7681 7682 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7683 7684 7685 7686 7687 { echo "$as_me:$LINENO: checking for Tk public headers" >&5 7688echo $ECHO_N "checking for Tk public headers... $ECHO_C" >&6; } 7689 7690 7691# Check whether --with-tkinclude was given. 7692if test "${with_tkinclude+set}" = set; then 7693 withval=$with_tkinclude; with_tkinclude=${withval} 7694fi 7695 7696 7697 if test "${ac_cv_c_tkh+set}" = set; then 7698 echo $ECHO_N "(cached) $ECHO_C" >&6 7699else 7700 7701 # Use the value from --with-tkinclude, if it was given 7702 7703 if test x"${with_tkinclude}" != x ; then 7704 if test -f "${with_tkinclude}/tk.h" ; then 7705 ac_cv_c_tkh=${with_tkinclude} 7706 else 7707 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory does not contain tk.h" >&5 7708echo "$as_me: error: ${with_tkinclude} directory does not contain tk.h" >&2;} 7709 { (exit 1); exit 1; }; } 7710 fi 7711 else 7712 list="" 7713 if test "`uname -s`" = "Darwin"; then 7714 # If Tk was built as a framework, attempt to use 7715 # the framework's Headers directory. 7716 case ${TK_DEFS} in 7717 *TK_FRAMEWORK*) 7718 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`" 7719 ;; 7720 esac 7721 fi 7722 7723 # Look in the source dir only if Tk is not installed, 7724 # and in that situation, look there before installed locations. 7725 if test -f "${TK_BIN_DIR}/Makefile" ; then 7726 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`" 7727 fi 7728 7729 # Check order: pkg --prefix location, Tk's --prefix location, 7730 # relative to directory of tkConfig.sh, Tcl's --prefix location, 7731 # relative to directory of tclConfig.sh. 7732 7733 eval "temp_includedir=${includedir}" 7734 list="$list \ 7735 `ls -d ${temp_includedir} 2>/dev/null` \ 7736 `ls -d ${TK_PREFIX}/include 2>/dev/null` \ 7737 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \ 7738 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7739 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7740 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7741 list="$list /usr/local/include /usr/include" 7742 if test x"${TK_INCLUDE_SPEC}" != x ; then 7743 d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7744 list="$list `ls -d ${d} 2>/dev/null`" 7745 fi 7746 fi 7747 for i in $list ; do 7748 if test -f "$i/tk.h" ; then 7749 ac_cv_c_tkh=$i 7750 break 7751 fi 7752 done 7753 fi 7754 7755fi 7756 7757 7758 # Print a message based on how we determined the include path 7759 7760 if test x"${ac_cv_c_tkh}" = x ; then 7761 { { echo "$as_me:$LINENO: error: tk.h not found. Please specify its location with --with-tkinclude" >&5 7762echo "$as_me: error: tk.h not found. Please specify its location with --with-tkinclude" >&2;} 7763 { (exit 1); exit 1; }; } 7764 else 7765 { echo "$as_me:$LINENO: result: ${ac_cv_c_tkh}" >&5 7766echo "${ECHO_T}${ac_cv_c_tkh}" >&6; } 7767 fi 7768 7769 # Convert to a native path and substitute into the output files. 7770 7771 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}` 7772 7773 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7774 7775 7776 7777 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then 7778 # On Windows and Aqua, we need the X compat headers 7779 { echo "$as_me:$LINENO: checking for X11 header files" >&5 7780echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 7781 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then 7782 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`" 7783 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7784 7785 fi 7786 { echo "$as_me:$LINENO: result: ${INCLUDE_DIR_NATIVE}" >&5 7787echo "${ECHO_T}${INCLUDE_DIR_NATIVE}" >&6; } 7788 fi 7789 7790 7791#-------------------------------------------------------------------- 7792# A few miscellaneous platform-specific items: 7793# 7794# Windows creates a few extra files that need to be cleaned up. 7795# We can add more files to clean if our extension creates any extra 7796# files in the future. 7797# 7798# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 7799# These will be appended to the current set of compiler flags for 7800# your system. 7801#-------------------------------------------------------------------- 7802 7803if test "${TEA_PLATFORM}" = "windows" ; then 7804 CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch init.c" 7805else 7806 CLEANFILES="init.c" 7807fi 7808 7809 7810#-------------------------------------------------------------------- 7811# Check whether --enable-threads or --disable-threads was given. 7812# So far only Tcl responds to this one. 7813#-------------------------------------------------------------------- 7814 7815 7816 # Check whether --enable-threads was given. 7817if test "${enable_threads+set}" = set; then 7818 enableval=$enable_threads; tcl_ok=$enableval 7819else 7820 tcl_ok=yes 7821fi 7822 7823 7824 if test "${enable_threads+set}" = set; then 7825 enableval="$enable_threads" 7826 tcl_ok=$enableval 7827 else 7828 tcl_ok=yes 7829 fi 7830 7831 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 7832 TCL_THREADS=1 7833 7834 if test "${TEA_PLATFORM}" != "windows" ; then 7835 # We are always OK on Windows, so check what this platform wants: 7836 7837 # USE_THREAD_ALLOC tells us to try the special thread-based 7838 # allocator that significantly reduces lock contention 7839 7840cat >>confdefs.h <<\_ACEOF 7841#define USE_THREAD_ALLOC 1 7842_ACEOF 7843 7844 7845cat >>confdefs.h <<\_ACEOF 7846#define _REENTRANT 1 7847_ACEOF 7848 7849 if test "`uname -s`" = "SunOS" ; then 7850 7851cat >>confdefs.h <<\_ACEOF 7852#define _POSIX_PTHREAD_SEMANTICS 1 7853_ACEOF 7854 7855 fi 7856 7857cat >>confdefs.h <<\_ACEOF 7858#define _THREAD_SAFE 1 7859_ACEOF 7860 7861 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 7862echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7863if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 7864 echo $ECHO_N "(cached) $ECHO_C" >&6 7865else 7866 ac_check_lib_save_LIBS=$LIBS 7867LIBS="-lpthread $LIBS" 7868cat >conftest.$ac_ext <<_ACEOF 7869/* confdefs.h. */ 7870_ACEOF 7871cat confdefs.h >>conftest.$ac_ext 7872cat >>conftest.$ac_ext <<_ACEOF 7873/* end confdefs.h. */ 7874 7875/* Override any GCC internal prototype to avoid an error. 7876 Use char because int might match the return type of a GCC 7877 builtin and then its argument prototype would still apply. */ 7878#ifdef __cplusplus 7879extern "C" 7880#endif 7881char pthread_mutex_init (); 7882int 7883main () 7884{ 7885return pthread_mutex_init (); 7886 ; 7887 return 0; 7888} 7889_ACEOF 7890rm -f conftest.$ac_objext conftest$ac_exeext 7891if { (ac_try="$ac_link" 7892case "(($ac_try" in 7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7894 *) ac_try_echo=$ac_try;; 7895esac 7896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7897 (eval "$ac_link") 2>conftest.er1 7898 ac_status=$? 7899 grep -v '^ *+' conftest.er1 >conftest.err 7900 rm -f conftest.er1 7901 cat conftest.err >&5 7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7903 (exit $ac_status); } && { 7904 test -z "$ac_c_werror_flag" || 7905 test ! -s conftest.err 7906 } && test -s conftest$ac_exeext && 7907 $as_test_x conftest$ac_exeext; then 7908 ac_cv_lib_pthread_pthread_mutex_init=yes 7909else 7910 echo "$as_me: failed program was:" >&5 7911sed 's/^/| /' conftest.$ac_ext >&5 7912 7913 ac_cv_lib_pthread_pthread_mutex_init=no 7914fi 7915 7916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7917 conftest$ac_exeext conftest.$ac_ext 7918LIBS=$ac_check_lib_save_LIBS 7919fi 7920{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7921echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7922if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7923 tcl_ok=yes 7924else 7925 tcl_ok=no 7926fi 7927 7928 if test "$tcl_ok" = "no"; then 7929 # Check a little harder for __pthread_mutex_init in the same 7930 # library, as some systems hide it there until pthread.h is 7931 # defined. We could alternatively do an AC_TRY_COMPILE with 7932 # pthread.h, but that will work with libpthread really doesn't 7933 # exist, like AIX 4.2. [Bug: 4359] 7934 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7935echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7936if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7937 echo $ECHO_N "(cached) $ECHO_C" >&6 7938else 7939 ac_check_lib_save_LIBS=$LIBS 7940LIBS="-lpthread $LIBS" 7941cat >conftest.$ac_ext <<_ACEOF 7942/* confdefs.h. */ 7943_ACEOF 7944cat confdefs.h >>conftest.$ac_ext 7945cat >>conftest.$ac_ext <<_ACEOF 7946/* end confdefs.h. */ 7947 7948/* Override any GCC internal prototype to avoid an error. 7949 Use char because int might match the return type of a GCC 7950 builtin and then its argument prototype would still apply. */ 7951#ifdef __cplusplus 7952extern "C" 7953#endif 7954char __pthread_mutex_init (); 7955int 7956main () 7957{ 7958return __pthread_mutex_init (); 7959 ; 7960 return 0; 7961} 7962_ACEOF 7963rm -f conftest.$ac_objext conftest$ac_exeext 7964if { (ac_try="$ac_link" 7965case "(($ac_try" in 7966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7967 *) ac_try_echo=$ac_try;; 7968esac 7969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7970 (eval "$ac_link") 2>conftest.er1 7971 ac_status=$? 7972 grep -v '^ *+' conftest.er1 >conftest.err 7973 rm -f conftest.er1 7974 cat conftest.err >&5 7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7976 (exit $ac_status); } && { 7977 test -z "$ac_c_werror_flag" || 7978 test ! -s conftest.err 7979 } && test -s conftest$ac_exeext && 7980 $as_test_x conftest$ac_exeext; then 7981 ac_cv_lib_pthread___pthread_mutex_init=yes 7982else 7983 echo "$as_me: failed program was:" >&5 7984sed 's/^/| /' conftest.$ac_ext >&5 7985 7986 ac_cv_lib_pthread___pthread_mutex_init=no 7987fi 7988 7989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7990 conftest$ac_exeext conftest.$ac_ext 7991LIBS=$ac_check_lib_save_LIBS 7992fi 7993{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7994echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7995if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7996 tcl_ok=yes 7997else 7998 tcl_ok=no 7999fi 8000 8001 fi 8002 8003 if test "$tcl_ok" = "yes"; then 8004 # The space is needed 8005 THREADS_LIBS=" -lpthread" 8006 else 8007 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 8008echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 8009if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 8010 echo $ECHO_N "(cached) $ECHO_C" >&6 8011else 8012 ac_check_lib_save_LIBS=$LIBS 8013LIBS="-lpthreads $LIBS" 8014cat >conftest.$ac_ext <<_ACEOF 8015/* confdefs.h. */ 8016_ACEOF 8017cat confdefs.h >>conftest.$ac_ext 8018cat >>conftest.$ac_ext <<_ACEOF 8019/* end confdefs.h. */ 8020 8021/* Override any GCC internal prototype to avoid an error. 8022 Use char because int might match the return type of a GCC 8023 builtin and then its argument prototype would still apply. */ 8024#ifdef __cplusplus 8025extern "C" 8026#endif 8027char pthread_mutex_init (); 8028int 8029main () 8030{ 8031return pthread_mutex_init (); 8032 ; 8033 return 0; 8034} 8035_ACEOF 8036rm -f conftest.$ac_objext conftest$ac_exeext 8037if { (ac_try="$ac_link" 8038case "(($ac_try" in 8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8040 *) ac_try_echo=$ac_try;; 8041esac 8042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8043 (eval "$ac_link") 2>conftest.er1 8044 ac_status=$? 8045 grep -v '^ *+' conftest.er1 >conftest.err 8046 rm -f conftest.er1 8047 cat conftest.err >&5 8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8049 (exit $ac_status); } && { 8050 test -z "$ac_c_werror_flag" || 8051 test ! -s conftest.err 8052 } && test -s conftest$ac_exeext && 8053 $as_test_x conftest$ac_exeext; then 8054 ac_cv_lib_pthreads_pthread_mutex_init=yes 8055else 8056 echo "$as_me: failed program was:" >&5 8057sed 's/^/| /' conftest.$ac_ext >&5 8058 8059 ac_cv_lib_pthreads_pthread_mutex_init=no 8060fi 8061 8062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8063 conftest$ac_exeext conftest.$ac_ext 8064LIBS=$ac_check_lib_save_LIBS 8065fi 8066{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 8067echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 8068if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 8069 tcl_ok=yes 8070else 8071 tcl_ok=no 8072fi 8073 8074 if test "$tcl_ok" = "yes"; then 8075 # The space is needed 8076 THREADS_LIBS=" -lpthreads" 8077 else 8078 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 8079echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 8080if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 8081 echo $ECHO_N "(cached) $ECHO_C" >&6 8082else 8083 ac_check_lib_save_LIBS=$LIBS 8084LIBS="-lc $LIBS" 8085cat >conftest.$ac_ext <<_ACEOF 8086/* confdefs.h. */ 8087_ACEOF 8088cat confdefs.h >>conftest.$ac_ext 8089cat >>conftest.$ac_ext <<_ACEOF 8090/* end confdefs.h. */ 8091 8092/* Override any GCC internal prototype to avoid an error. 8093 Use char because int might match the return type of a GCC 8094 builtin and then its argument prototype would still apply. */ 8095#ifdef __cplusplus 8096extern "C" 8097#endif 8098char pthread_mutex_init (); 8099int 8100main () 8101{ 8102return pthread_mutex_init (); 8103 ; 8104 return 0; 8105} 8106_ACEOF 8107rm -f conftest.$ac_objext conftest$ac_exeext 8108if { (ac_try="$ac_link" 8109case "(($ac_try" in 8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8111 *) ac_try_echo=$ac_try;; 8112esac 8113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8114 (eval "$ac_link") 2>conftest.er1 8115 ac_status=$? 8116 grep -v '^ *+' conftest.er1 >conftest.err 8117 rm -f conftest.er1 8118 cat conftest.err >&5 8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8120 (exit $ac_status); } && { 8121 test -z "$ac_c_werror_flag" || 8122 test ! -s conftest.err 8123 } && test -s conftest$ac_exeext && 8124 $as_test_x conftest$ac_exeext; then 8125 ac_cv_lib_c_pthread_mutex_init=yes 8126else 8127 echo "$as_me: failed program was:" >&5 8128sed 's/^/| /' conftest.$ac_ext >&5 8129 8130 ac_cv_lib_c_pthread_mutex_init=no 8131fi 8132 8133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8134 conftest$ac_exeext conftest.$ac_ext 8135LIBS=$ac_check_lib_save_LIBS 8136fi 8137{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 8138echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 8139if test $ac_cv_lib_c_pthread_mutex_init = yes; then 8140 tcl_ok=yes 8141else 8142 tcl_ok=no 8143fi 8144 8145 if test "$tcl_ok" = "no"; then 8146 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 8147echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 8148if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 8149 echo $ECHO_N "(cached) $ECHO_C" >&6 8150else 8151 ac_check_lib_save_LIBS=$LIBS 8152LIBS="-lc_r $LIBS" 8153cat >conftest.$ac_ext <<_ACEOF 8154/* confdefs.h. */ 8155_ACEOF 8156cat confdefs.h >>conftest.$ac_ext 8157cat >>conftest.$ac_ext <<_ACEOF 8158/* end confdefs.h. */ 8159 8160/* Override any GCC internal prototype to avoid an error. 8161 Use char because int might match the return type of a GCC 8162 builtin and then its argument prototype would still apply. */ 8163#ifdef __cplusplus 8164extern "C" 8165#endif 8166char pthread_mutex_init (); 8167int 8168main () 8169{ 8170return pthread_mutex_init (); 8171 ; 8172 return 0; 8173} 8174_ACEOF 8175rm -f conftest.$ac_objext conftest$ac_exeext 8176if { (ac_try="$ac_link" 8177case "(($ac_try" in 8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8179 *) ac_try_echo=$ac_try;; 8180esac 8181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8182 (eval "$ac_link") 2>conftest.er1 8183 ac_status=$? 8184 grep -v '^ *+' conftest.er1 >conftest.err 8185 rm -f conftest.er1 8186 cat conftest.err >&5 8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8188 (exit $ac_status); } && { 8189 test -z "$ac_c_werror_flag" || 8190 test ! -s conftest.err 8191 } && test -s conftest$ac_exeext && 8192 $as_test_x conftest$ac_exeext; then 8193 ac_cv_lib_c_r_pthread_mutex_init=yes 8194else 8195 echo "$as_me: failed program was:" >&5 8196sed 's/^/| /' conftest.$ac_ext >&5 8197 8198 ac_cv_lib_c_r_pthread_mutex_init=no 8199fi 8200 8201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8202 conftest$ac_exeext conftest.$ac_ext 8203LIBS=$ac_check_lib_save_LIBS 8204fi 8205{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 8206echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 8207if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 8208 tcl_ok=yes 8209else 8210 tcl_ok=no 8211fi 8212 8213 if test "$tcl_ok" = "yes"; then 8214 # The space is needed 8215 THREADS_LIBS=" -pthread" 8216 else 8217 TCL_THREADS=0 8218 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 8219echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 8220 fi 8221 fi 8222 fi 8223 fi 8224 fi 8225 else 8226 TCL_THREADS=0 8227 fi 8228 # Do checking message here to not mess up interleaved configure output 8229 { echo "$as_me:$LINENO: checking for building with threads" >&5 8230echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 8231 if test "${TCL_THREADS}" = 1; then 8232 8233cat >>confdefs.h <<\_ACEOF 8234#define TCL_THREADS 1 8235_ACEOF 8236 8237 { echo "$as_me:$LINENO: result: yes (default)" >&5 8238echo "${ECHO_T}yes (default)" >&6; } 8239 else 8240 { echo "$as_me:$LINENO: result: no" >&5 8241echo "${ECHO_T}no" >&6; } 8242 fi 8243 # TCL_THREADS sanity checking. See if our request for building with 8244 # threads is the same as the way Tcl was built. If not, warn the user. 8245 case ${TCL_DEFS} in 8246 *THREADS=1*) 8247 if test "${TCL_THREADS}" = "0"; then 8248 { echo "$as_me:$LINENO: WARNING: 8249 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 8250 that IS thread-enabled. It is recommended to use --enable-threads." >&5 8251echo "$as_me: WARNING: 8252 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 8253 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 8254 fi 8255 ;; 8256 *) 8257 if test "${TCL_THREADS}" = "1"; then 8258 { echo "$as_me:$LINENO: WARNING: 8259 --enable-threads requested, but building against a Tcl that is NOT 8260 thread-enabled. This is an OK configuration that will also run in 8261 a thread-enabled core." >&5 8262echo "$as_me: WARNING: 8263 --enable-threads requested, but building against a Tcl that is NOT 8264 thread-enabled. This is an OK configuration that will also run in 8265 a thread-enabled core." >&2;} 8266 fi 8267 ;; 8268 esac 8269 8270 8271 8272#-------------------------------------------------------------------- 8273# The statement below defines a collection of symbols related to 8274# building as a shared library instead of a static library. 8275#-------------------------------------------------------------------- 8276 8277 8278 { echo "$as_me:$LINENO: checking how to build libraries" >&5 8279echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 8280 # Check whether --enable-shared was given. 8281if test "${enable_shared+set}" = set; then 8282 enableval=$enable_shared; tcl_ok=$enableval 8283else 8284 tcl_ok=yes 8285fi 8286 8287 8288 if test "${enable_shared+set}" = set; then 8289 enableval="$enable_shared" 8290 tcl_ok=$enableval 8291 else 8292 tcl_ok=yes 8293 fi 8294 8295 if test "$tcl_ok" = "yes" ; then 8296 { echo "$as_me:$LINENO: result: shared" >&5 8297echo "${ECHO_T}shared" >&6; } 8298 SHARED_BUILD=1 8299 else 8300 { echo "$as_me:$LINENO: result: static" >&5 8301echo "${ECHO_T}static" >&6; } 8302 SHARED_BUILD=0 8303 8304cat >>confdefs.h <<\_ACEOF 8305#define STATIC_BUILD 1 8306_ACEOF 8307 8308 fi 8309 8310 8311 8312#-------------------------------------------------------------------- 8313# This macro figures out what flags to use with the compiler/linker 8314# when building shared/static debug/optimized objects. This information 8315# can be taken from the tclConfig.sh file, but this figures it all out. 8316#-------------------------------------------------------------------- 8317 8318 8319 8320 8321 # Step 0.a: Enable 64 bit support? 8322 8323 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 8324echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 8325 # Check whether --enable-64bit was given. 8326if test "${enable_64bit+set}" = set; then 8327 enableval=$enable_64bit; do64bit=$enableval 8328else 8329 do64bit=no 8330fi 8331 8332 { echo "$as_me:$LINENO: result: $do64bit" >&5 8333echo "${ECHO_T}$do64bit" >&6; } 8334 8335 # Step 0.b: Enable Solaris 64 bit VIS support? 8336 8337 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 8338echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 8339 # Check whether --enable-64bit-vis was given. 8340if test "${enable_64bit_vis+set}" = set; then 8341 enableval=$enable_64bit_vis; do64bitVIS=$enableval 8342else 8343 do64bitVIS=no 8344fi 8345 8346 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 8347echo "${ECHO_T}$do64bitVIS" >&6; } 8348 # Force 64bit on with VIS 8349 if test "$do64bitVIS" = "yes"; then 8350 do64bit=yes 8351fi 8352 8353 8354 # Step 0.c: Check if visibility support is available. Do this here so 8355 # that platform specific alternatives can be used below if this fails. 8356 8357 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 8358echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 8359if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 8360 echo $ECHO_N "(cached) $ECHO_C" >&6 8361else 8362 8363 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 8364 cat >conftest.$ac_ext <<_ACEOF 8365/* confdefs.h. */ 8366_ACEOF 8367cat confdefs.h >>conftest.$ac_ext 8368cat >>conftest.$ac_ext <<_ACEOF 8369/* end confdefs.h. */ 8370 8371 extern __attribute__((__visibility__("hidden"))) void f(void); 8372 void f(void) {} 8373int 8374main () 8375{ 8376f(); 8377 ; 8378 return 0; 8379} 8380_ACEOF 8381rm -f conftest.$ac_objext conftest$ac_exeext 8382if { (ac_try="$ac_link" 8383case "(($ac_try" in 8384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8385 *) ac_try_echo=$ac_try;; 8386esac 8387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8388 (eval "$ac_link") 2>conftest.er1 8389 ac_status=$? 8390 grep -v '^ *+' conftest.er1 >conftest.err 8391 rm -f conftest.er1 8392 cat conftest.err >&5 8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8394 (exit $ac_status); } && { 8395 test -z "$ac_c_werror_flag" || 8396 test ! -s conftest.err 8397 } && test -s conftest$ac_exeext && 8398 $as_test_x conftest$ac_exeext; then 8399 tcl_cv_cc_visibility_hidden=yes 8400else 8401 echo "$as_me: failed program was:" >&5 8402sed 's/^/| /' conftest.$ac_ext >&5 8403 8404 tcl_cv_cc_visibility_hidden=no 8405fi 8406 8407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8408 conftest$ac_exeext conftest.$ac_ext 8409 CFLAGS=$hold_cflags 8410fi 8411{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 8412echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 8413 if test $tcl_cv_cc_visibility_hidden = yes; then 8414 8415 8416cat >>confdefs.h <<\_ACEOF 8417#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 8418_ACEOF 8419 8420 8421fi 8422 8423 8424 # Step 0.d: Disable -rpath support? 8425 8426 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 8427echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 8428 # Check whether --enable-rpath was given. 8429if test "${enable_rpath+set}" = set; then 8430 enableval=$enable_rpath; doRpath=$enableval 8431else 8432 doRpath=yes 8433fi 8434 8435 { echo "$as_me:$LINENO: result: $doRpath" >&5 8436echo "${ECHO_T}$doRpath" >&6; } 8437 8438 # TEA specific: Cross-compiling options for Windows/CE builds? 8439 8440 if test "${TEA_PLATFORM}" = windows; then 8441 8442 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 8443echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 8444 # Check whether --enable-wince was given. 8445if test "${enable_wince+set}" = set; then 8446 enableval=$enable_wince; doWince=$enableval 8447else 8448 doWince=no 8449fi 8450 8451 { echo "$as_me:$LINENO: result: $doWince" >&5 8452echo "${ECHO_T}$doWince" >&6; } 8453 8454fi 8455 8456 8457 # Set the variable "system" to hold the name and version number 8458 # for the system. 8459 8460 8461 { echo "$as_me:$LINENO: checking system version" >&5 8462echo $ECHO_N "checking system version... $ECHO_C" >&6; } 8463if test "${tcl_cv_sys_version+set}" = set; then 8464 echo $ECHO_N "(cached) $ECHO_C" >&6 8465else 8466 8467 # TEA specific: 8468 if test "${TEA_PLATFORM}" = "windows" ; then 8469 tcl_cv_sys_version=windows 8470 else 8471 tcl_cv_sys_version=`uname -s`-`uname -r` 8472 if test "$?" -ne 0 ; then 8473 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 8474echo "$as_me: WARNING: can't find uname command" >&2;} 8475 tcl_cv_sys_version=unknown 8476 else 8477 if test "`uname -s`" = "AIX" ; then 8478 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 8479 fi 8480 fi 8481 fi 8482 8483fi 8484{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 8485echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 8486 system=$tcl_cv_sys_version 8487 8488 8489 # Require ranlib early so we can override it in special cases below. 8490 8491 8492 8493 # Set configuration options based on system name and version. 8494 # This is similar to Tcl's unix/tcl.m4 except that we've added a 8495 # "windows" case and removed some core-only vars. 8496 8497 do64bit_ok=no 8498 # default to '{$LIBS}' and set to "" on per-platform necessary basis 8499 SHLIB_LD_LIBS='${LIBS}' 8500 # When ld needs options to work in 64-bit mode, put them in 8501 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 8502 # is disabled by the user. [Bug 1016796] 8503 LDFLAGS_ARCH="" 8504 UNSHARED_LIB_SUFFIX="" 8505 # TEA specific: use PACKAGE_VERSION instead of VERSION 8506 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 8507 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 8508 TCL_LIB_VERSIONS_OK=ok 8509 CFLAGS_DEBUG=-g 8510 CFLAGS_OPTIMIZE=-O 8511 if test "$GCC" = yes; then 8512 8513 # TEA specific: 8514 CFLAGS_OPTIMIZE=-O2 8515 CFLAGS_WARNING="-Wall" 8516 8517else 8518 CFLAGS_WARNING="" 8519fi 8520 8521 # Extract the first word of "ar", so it can be a program name with args. 8522set dummy ar; ac_word=$2 8523{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8525if test "${ac_cv_prog_AR+set}" = set; then 8526 echo $ECHO_N "(cached) $ECHO_C" >&6 8527else 8528 if test -n "$AR"; then 8529 ac_cv_prog_AR="$AR" # Let the user override the test. 8530else 8531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8532for as_dir in $PATH 8533do 8534 IFS=$as_save_IFS 8535 test -z "$as_dir" && as_dir=. 8536 for ac_exec_ext in '' $ac_executable_extensions; do 8537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8538 ac_cv_prog_AR="ar" 8539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8540 break 2 8541 fi 8542done 8543done 8544IFS=$as_save_IFS 8545 8546fi 8547fi 8548AR=$ac_cv_prog_AR 8549if test -n "$AR"; then 8550 { echo "$as_me:$LINENO: result: $AR" >&5 8551echo "${ECHO_T}$AR" >&6; } 8552else 8553 { echo "$as_me:$LINENO: result: no" >&5 8554echo "${ECHO_T}no" >&6; } 8555fi 8556 8557 8558 STLIB_LD='${AR} cr' 8559 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 8560 if test "x$SHLIB_VERSION" = x; then 8561 SHLIB_VERSION="1.0" 8562fi 8563 8564 case $system in 8565 # TEA specific: 8566 windows) 8567 # This is a 2-stage check to make sure we have the 64-bit SDK 8568 # We have to know where the SDK is installed. 8569 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 8570 # MACHINE is IX86 for LINK, but this is used by the manifest, 8571 # which requires x86|amd64|ia64. 8572 MACHINE="X86" 8573 if test "$do64bit" != "no" ; then 8574 if test "x${MSSDK}x" = "xx" ; then 8575 MSSDK="C:/Progra~1/Microsoft Platform SDK" 8576 fi 8577 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 8578 PATH64="" 8579 case "$do64bit" in 8580 amd64|x64|yes) 8581 MACHINE="AMD64" ; # default to AMD64 64-bit build 8582 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 8583 ;; 8584 ia64) 8585 MACHINE="IA64" 8586 PATH64="${MSSDK}/Bin/Win64" 8587 ;; 8588 esac 8589 if test ! -d "${PATH64}" ; then 8590 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 8591echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 8592 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 8593echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 8594 do64bit="no" 8595 else 8596 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 8597echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 8598 do64bit_ok="yes" 8599 fi 8600 fi 8601 8602 if test "$doWince" != "no" ; then 8603 if test "$do64bit" != "no" ; then 8604 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 8605echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 8606 { (exit 1); exit 1; }; } 8607 fi 8608 if test "$GCC" = "yes" ; then 8609 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 8610echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 8611 { (exit 1); exit 1; }; } 8612 fi 8613 8614 # First, look for one uninstalled. 8615 # the alternative search directory is invoked by --with-celib 8616 8617 if test x"${no_celib}" = x ; then 8618 # we reset no_celib in case something fails here 8619 no_celib=true 8620 8621# Check whether --with-celib was given. 8622if test "${with_celib+set}" = set; then 8623 withval=$with_celib; with_celibconfig=${withval} 8624fi 8625 8626 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 8627echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 8628 if test "${ac_cv_c_celibconfig+set}" = set; then 8629 echo $ECHO_N "(cached) $ECHO_C" >&6 8630else 8631 8632 # First check to see if --with-celibconfig was specified. 8633 if test x"${with_celibconfig}" != x ; then 8634 if test -d "${with_celibconfig}/inc" ; then 8635 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 8636 else 8637 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 8638echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 8639 { (exit 1); exit 1; }; } 8640 fi 8641 fi 8642 8643 # then check for a celib library 8644 if test x"${ac_cv_c_celibconfig}" = x ; then 8645 for i in \ 8646 ../celib-palm-3.0 \ 8647 ../celib \ 8648 ../../celib-palm-3.0 \ 8649 ../../celib \ 8650 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 8651 ${srcdir}/../celib-palm-3.0 \ 8652 ${srcdir}/../celib \ 8653 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 8654 ; do 8655 if test -d "$i/inc" ; then 8656 ac_cv_c_celibconfig=`(cd $i; pwd)` 8657 break 8658 fi 8659 done 8660 fi 8661 8662fi 8663 8664 if test x"${ac_cv_c_celibconfig}" = x ; then 8665 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 8666echo "$as_me: error: Cannot find celib support library directory" >&2;} 8667 { (exit 1); exit 1; }; } 8668 else 8669 no_celib= 8670 CELIB_DIR=${ac_cv_c_celibconfig} 8671 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 8672 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 8673echo "${ECHO_T}found $CELIB_DIR" >&6; } 8674 fi 8675 fi 8676 8677 # Set defaults for common evc4/PPC2003 setup 8678 # Currently Tcl requires 300+, possibly 420+ for sockets 8679 CEVERSION=420; # could be 211 300 301 400 420 ... 8680 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 8681 ARCH=ARM; # could be ARM MIPS X86EM ... 8682 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 8683 if test "$doWince" != "yes"; then 8684 # If !yes then the user specified something 8685 # Reset ARCH to allow user to skip specifying it 8686 ARCH= 8687 eval `echo $doWince | awk -F, '{ \ 8688 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 8689 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 8690 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 8691 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 8692 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 8693 }'` 8694 if test "x${ARCH}" = "x" ; then 8695 ARCH=$TARGETCPU; 8696 fi 8697 fi 8698 OSVERSION=WCE$CEVERSION; 8699 if test "x${WCEROOT}" = "x" ; then 8700 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 8701 if test ! -d "${WCEROOT}" ; then 8702 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 8703 fi 8704 fi 8705 if test "x${SDKROOT}" = "x" ; then 8706 SDKROOT="C:/Program Files/Windows CE Tools" 8707 if test ! -d "${SDKROOT}" ; then 8708 SDKROOT="C:/Windows CE Tools" 8709 fi 8710 fi 8711 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 8712 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 8713 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 8714 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 8715 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 8716echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 8717 { (exit 1); exit 1; }; } 8718 doWince="no" 8719 else 8720 # We could PATH_NOSPACE these, but that's not important, 8721 # as long as we quote them when used. 8722 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 8723 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 8724 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 8725 fi 8726 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 8727 fi 8728 fi 8729 8730 if test "$GCC" != "yes" ; then 8731 if test "${SHARED_BUILD}" = "0" ; then 8732 runtime=-MT 8733 else 8734 runtime=-MD 8735 fi 8736 8737 if test "$do64bit" != "no" ; then 8738 # All this magic is necessary for the Win64 SDK RC1 - hobbs 8739 CC="\"${PATH64}/cl.exe\"" 8740 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 8741 RC="\"${MSSDK}/bin/rc.exe\"" 8742 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 8743 LINKBIN="\"${PATH64}/link.exe\"" 8744 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 8745 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8746 # Avoid 'unresolved external symbol __security_cookie' 8747 # errors, c.f. http://support.microsoft.com/?id=894573 8748 8749 vars="bufferoverflowU.lib" 8750 for i in $vars; do 8751 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 8752 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 8753 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 8754 fi 8755 PKG_LIBS="$PKG_LIBS $i" 8756 done 8757 8758 8759 elif test "$doWince" != "no" ; then 8760 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 8761 if test "${TARGETCPU}" = "X86"; then 8762 CC="\"${CEBINROOT}/cl.exe\"" 8763 else 8764 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 8765 fi 8766 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 8767 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 8768 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 8769 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 8770 if test "${SHARED_BUILD}" = "1" ; then 8771 # Static CE builds require static celib as well 8772 defs="${defs} _DLL" 8773 fi 8774 for i in $defs ; do 8775 8776cat >>confdefs.h <<_ACEOF 8777#define $i 1 8778_ACEOF 8779 8780 done 8781 8782cat >>confdefs.h <<_ACEOF 8783#define _WIN32_WCE $CEVERSION 8784_ACEOF 8785 8786 8787cat >>confdefs.h <<_ACEOF 8788#define UNDER_CE $CEVERSION 8789_ACEOF 8790 8791 CFLAGS_DEBUG="-nologo -Zi -Od" 8792 CFLAGS_OPTIMIZE="-nologo -Ox" 8793 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 8794 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 8795 LINKBIN="\"${CEBINROOT}/link.exe\"" 8796 8797 else 8798 RC="rc" 8799 lflags="-nologo" 8800 LINKBIN="link" 8801 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 8802 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8803 fi 8804 fi 8805 8806 if test "$GCC" = "yes"; then 8807 # mingw gcc mode 8808 RC="windres" 8809 CFLAGS_DEBUG="-g" 8810 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8811 SHLIB_LD="$CC -shared" 8812 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8813 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 8814 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 8815 else 8816 SHLIB_LD="${LINKBIN} -dll ${lflags}" 8817 # link -lib only works when -lib is the first arg 8818 STLIB_LD="${LINKBIN} -lib ${lflags}" 8819 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 8820 PATHTYPE=-w 8821 # For information on what debugtype is most useful, see: 8822 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 8823 # and also 8824 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 8825 # This essentially turns it all on. 8826 LDFLAGS_DEBUG="-debug -debugtype:cv" 8827 LDFLAGS_OPTIMIZE="-release" 8828 if test "$doWince" != "no" ; then 8829 LDFLAGS_CONSOLE="-link ${lflags}" 8830 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 8831 else 8832 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 8833 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 8834 fi 8835 fi 8836 8837 SHLIB_SUFFIX=".dll" 8838 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 8839 8840 TCL_LIB_VERSIONS_OK=nodots 8841 ;; 8842 AIX-*) 8843 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 8844 8845 # AIX requires the _r compiler when gcc isn't being used 8846 case "${CC}" in 8847 *_r|*_r\ *) 8848 # ok ... 8849 ;; 8850 *) 8851 # Make sure only first arg gets _r 8852 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 8853 ;; 8854 esac 8855 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 8856echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 8857 8858fi 8859 8860 LIBS="$LIBS -lc" 8861 SHLIB_CFLAGS="" 8862 SHLIB_SUFFIX=".so" 8863 8864 LD_LIBRARY_PATH_VAR="LIBPATH" 8865 8866 # Check to enable 64-bit flags for compiler/linker 8867 if test "$do64bit" = yes; then 8868 8869 if test "$GCC" = yes; then 8870 8871 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8872echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8873 8874else 8875 8876 do64bit_ok=yes 8877 CFLAGS="$CFLAGS -q64" 8878 LDFLAGS_ARCH="-q64" 8879 RANLIB="${RANLIB} -X64" 8880 AR="${AR} -X64" 8881 SHLIB_LD_FLAGS="-b64" 8882 8883fi 8884 8885 8886fi 8887 8888 8889 if test "`uname -m`" = ia64; then 8890 8891 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8892 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8893 if test "$GCC" = yes; then 8894 8895 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8896 8897else 8898 8899 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8900 8901fi 8902 8903 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8904 8905else 8906 8907 if test "$GCC" = yes; then 8908 8909 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8910 8911else 8912 8913 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8914 LDFLAGS="$LDFLAGS -brtl" 8915 8916fi 8917 8918 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8919 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8920 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8921 8922fi 8923 8924 ;; 8925 BeOS*) 8926 SHLIB_CFLAGS="-fPIC" 8927 SHLIB_LD='${CC} -nostart' 8928 SHLIB_SUFFIX=".so" 8929 8930 #----------------------------------------------------------- 8931 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8932 # -lsocket, even if the network functions are in -lnet which 8933 # is always linked to, for compatibility. 8934 #----------------------------------------------------------- 8935 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8936echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8937if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8938 echo $ECHO_N "(cached) $ECHO_C" >&6 8939else 8940 ac_check_lib_save_LIBS=$LIBS 8941LIBS="-lbind $LIBS" 8942cat >conftest.$ac_ext <<_ACEOF 8943/* confdefs.h. */ 8944_ACEOF 8945cat confdefs.h >>conftest.$ac_ext 8946cat >>conftest.$ac_ext <<_ACEOF 8947/* end confdefs.h. */ 8948 8949/* Override any GCC internal prototype to avoid an error. 8950 Use char because int might match the return type of a GCC 8951 builtin and then its argument prototype would still apply. */ 8952#ifdef __cplusplus 8953extern "C" 8954#endif 8955char inet_ntoa (); 8956int 8957main () 8958{ 8959return inet_ntoa (); 8960 ; 8961 return 0; 8962} 8963_ACEOF 8964rm -f conftest.$ac_objext conftest$ac_exeext 8965if { (ac_try="$ac_link" 8966case "(($ac_try" in 8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8968 *) ac_try_echo=$ac_try;; 8969esac 8970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8971 (eval "$ac_link") 2>conftest.er1 8972 ac_status=$? 8973 grep -v '^ *+' conftest.er1 >conftest.err 8974 rm -f conftest.er1 8975 cat conftest.err >&5 8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8977 (exit $ac_status); } && { 8978 test -z "$ac_c_werror_flag" || 8979 test ! -s conftest.err 8980 } && test -s conftest$ac_exeext && 8981 $as_test_x conftest$ac_exeext; then 8982 ac_cv_lib_bind_inet_ntoa=yes 8983else 8984 echo "$as_me: failed program was:" >&5 8985sed 's/^/| /' conftest.$ac_ext >&5 8986 8987 ac_cv_lib_bind_inet_ntoa=no 8988fi 8989 8990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8991 conftest$ac_exeext conftest.$ac_ext 8992LIBS=$ac_check_lib_save_LIBS 8993fi 8994{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8995echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8996if test $ac_cv_lib_bind_inet_ntoa = yes; then 8997 LIBS="$LIBS -lbind -lsocket" 8998fi 8999 9000 ;; 9001 BSD/OS-4.*) 9002 SHLIB_CFLAGS="-export-dynamic -fPIC" 9003 SHLIB_LD='${CC} -shared' 9004 SHLIB_SUFFIX=".so" 9005 LDFLAGS="$LDFLAGS -export-dynamic" 9006 CC_SEARCH_FLAGS="" 9007 LD_SEARCH_FLAGS="" 9008 ;; 9009 CYGWIN_*) 9010 SHLIB_CFLAGS="" 9011 SHLIB_LD='${CC} -shared' 9012 SHLIB_SUFFIX=".dll" 9013 EXE_SUFFIX=".exe" 9014 CC_SEARCH_FLAGS="" 9015 LD_SEARCH_FLAGS="" 9016 ;; 9017 Haiku*) 9018 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9019 SHLIB_CFLAGS="-fPIC" 9020 SHLIB_SUFFIX=".so" 9021 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 9022 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 9023echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 9024if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 9025 echo $ECHO_N "(cached) $ECHO_C" >&6 9026else 9027 ac_check_lib_save_LIBS=$LIBS 9028LIBS="-lnetwork $LIBS" 9029cat >conftest.$ac_ext <<_ACEOF 9030/* confdefs.h. */ 9031_ACEOF 9032cat confdefs.h >>conftest.$ac_ext 9033cat >>conftest.$ac_ext <<_ACEOF 9034/* end confdefs.h. */ 9035 9036/* Override any GCC internal prototype to avoid an error. 9037 Use char because int might match the return type of a GCC 9038 builtin and then its argument prototype would still apply. */ 9039#ifdef __cplusplus 9040extern "C" 9041#endif 9042char inet_ntoa (); 9043int 9044main () 9045{ 9046return inet_ntoa (); 9047 ; 9048 return 0; 9049} 9050_ACEOF 9051rm -f conftest.$ac_objext conftest$ac_exeext 9052if { (ac_try="$ac_link" 9053case "(($ac_try" in 9054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9055 *) ac_try_echo=$ac_try;; 9056esac 9057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9058 (eval "$ac_link") 2>conftest.er1 9059 ac_status=$? 9060 grep -v '^ *+' conftest.er1 >conftest.err 9061 rm -f conftest.er1 9062 cat conftest.err >&5 9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9064 (exit $ac_status); } && { 9065 test -z "$ac_c_werror_flag" || 9066 test ! -s conftest.err 9067 } && test -s conftest$ac_exeext && 9068 $as_test_x conftest$ac_exeext; then 9069 ac_cv_lib_network_inet_ntoa=yes 9070else 9071 echo "$as_me: failed program was:" >&5 9072sed 's/^/| /' conftest.$ac_ext >&5 9073 9074 ac_cv_lib_network_inet_ntoa=no 9075fi 9076 9077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9078 conftest$ac_exeext conftest.$ac_ext 9079LIBS=$ac_check_lib_save_LIBS 9080fi 9081{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 9082echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 9083if test $ac_cv_lib_network_inet_ntoa = yes; then 9084 LIBS="$LIBS -lnetwork" 9085fi 9086 9087 ;; 9088 HP-UX-*.11.*) 9089 # Use updated header definitions where possible 9090 9091cat >>confdefs.h <<\_ACEOF 9092#define _XOPEN_SOURCE_EXTENDED 1 9093_ACEOF 9094 9095 # TEA specific: Needed by Tcl, but not most extensions 9096 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 9097 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 9098 9099 if test "`uname -m`" = ia64; then 9100 9101 SHLIB_SUFFIX=".so" 9102 # Use newer C++ library for C++ extensions 9103 #if test "$GCC" != "yes" ; then 9104 # CPPFLAGS="-AA" 9105 #fi 9106 9107else 9108 9109 SHLIB_SUFFIX=".sl" 9110 9111fi 9112 9113 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9114echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9115if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9116 echo $ECHO_N "(cached) $ECHO_C" >&6 9117else 9118 ac_check_lib_save_LIBS=$LIBS 9119LIBS="-ldld $LIBS" 9120cat >conftest.$ac_ext <<_ACEOF 9121/* confdefs.h. */ 9122_ACEOF 9123cat confdefs.h >>conftest.$ac_ext 9124cat >>conftest.$ac_ext <<_ACEOF 9125/* end confdefs.h. */ 9126 9127/* Override any GCC internal prototype to avoid an error. 9128 Use char because int might match the return type of a GCC 9129 builtin and then its argument prototype would still apply. */ 9130#ifdef __cplusplus 9131extern "C" 9132#endif 9133char shl_load (); 9134int 9135main () 9136{ 9137return shl_load (); 9138 ; 9139 return 0; 9140} 9141_ACEOF 9142rm -f conftest.$ac_objext conftest$ac_exeext 9143if { (ac_try="$ac_link" 9144case "(($ac_try" in 9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9146 *) ac_try_echo=$ac_try;; 9147esac 9148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9149 (eval "$ac_link") 2>conftest.er1 9150 ac_status=$? 9151 grep -v '^ *+' conftest.er1 >conftest.err 9152 rm -f conftest.er1 9153 cat conftest.err >&5 9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9155 (exit $ac_status); } && { 9156 test -z "$ac_c_werror_flag" || 9157 test ! -s conftest.err 9158 } && test -s conftest$ac_exeext && 9159 $as_test_x conftest$ac_exeext; then 9160 ac_cv_lib_dld_shl_load=yes 9161else 9162 echo "$as_me: failed program was:" >&5 9163sed 's/^/| /' conftest.$ac_ext >&5 9164 9165 ac_cv_lib_dld_shl_load=no 9166fi 9167 9168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9169 conftest$ac_exeext conftest.$ac_ext 9170LIBS=$ac_check_lib_save_LIBS 9171fi 9172{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9173echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9174if test $ac_cv_lib_dld_shl_load = yes; then 9175 tcl_ok=yes 9176else 9177 tcl_ok=no 9178fi 9179 9180 if test "$tcl_ok" = yes; then 9181 9182 LDFLAGS="$LDFLAGS -E" 9183 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 9184 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 9185 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 9186 9187fi 9188 9189 if test "$GCC" = yes; then 9190 9191 SHLIB_LD='${CC} -shared' 9192 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9193 9194else 9195 9196 CFLAGS="$CFLAGS -z" 9197 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 9198 #CFLAGS="$CFLAGS +DAportable" 9199 SHLIB_CFLAGS="+z" 9200 SHLIB_LD="ld -b" 9201 9202fi 9203 9204 9205 # Check to enable 64-bit flags for compiler/linker 9206 if test "$do64bit" = "yes"; then 9207 9208 if test "$GCC" = yes; then 9209 9210 case `${CC} -dumpmachine` in 9211 hppa64*) 9212 # 64-bit gcc in use. Fix flags for GNU ld. 9213 do64bit_ok=yes 9214 SHLIB_LD='${CC} -shared' 9215 if test $doRpath = yes; then 9216 9217 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9218fi 9219 9220 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9221 ;; 9222 *) 9223 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9224echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 9225 ;; 9226 esac 9227 9228else 9229 9230 do64bit_ok=yes 9231 CFLAGS="$CFLAGS +DD64" 9232 LDFLAGS_ARCH="+DD64" 9233 9234fi 9235 9236 9237fi 9238 ;; 9239 IRIX-6.*) 9240 SHLIB_CFLAGS="" 9241 SHLIB_LD="ld -n32 -shared -rdata_shared" 9242 SHLIB_SUFFIX=".so" 9243 if test $doRpath = yes; then 9244 9245 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9246 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9247fi 9248 9249 if test "$GCC" = yes; then 9250 9251 CFLAGS="$CFLAGS -mabi=n32" 9252 LDFLAGS="$LDFLAGS -mabi=n32" 9253 9254else 9255 9256 case $system in 9257 IRIX-6.3) 9258 # Use to build 6.2 compatible binaries on 6.3. 9259 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 9260 ;; 9261 *) 9262 CFLAGS="$CFLAGS -n32" 9263 ;; 9264 esac 9265 LDFLAGS="$LDFLAGS -n32" 9266 9267fi 9268 9269 ;; 9270 IRIX64-6.*) 9271 SHLIB_CFLAGS="" 9272 SHLIB_LD="ld -n32 -shared -rdata_shared" 9273 SHLIB_SUFFIX=".so" 9274 if test $doRpath = yes; then 9275 9276 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9277 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9278fi 9279 9280 9281 # Check to enable 64-bit flags for compiler/linker 9282 9283 if test "$do64bit" = yes; then 9284 9285 if test "$GCC" = yes; then 9286 9287 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 9288echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 9289 9290else 9291 9292 do64bit_ok=yes 9293 SHLIB_LD="ld -64 -shared -rdata_shared" 9294 CFLAGS="$CFLAGS -64" 9295 LDFLAGS_ARCH="-64" 9296 9297fi 9298 9299 9300fi 9301 9302 ;; 9303 Linux*) 9304 SHLIB_CFLAGS="-fPIC" 9305 SHLIB_SUFFIX=".so" 9306 9307 # TEA specific: 9308 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 9309 9310 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9311 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 9312 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9313 if test $doRpath = yes; then 9314 9315 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9316fi 9317 9318 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9319 if test "`uname -m`" = "alpha"; then 9320 CFLAGS="$CFLAGS -mieee" 9321fi 9322 9323 if test $do64bit = yes; then 9324 9325 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 9326echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 9327if test "${tcl_cv_cc_m64+set}" = set; then 9328 echo $ECHO_N "(cached) $ECHO_C" >&6 9329else 9330 9331 hold_cflags=$CFLAGS 9332 CFLAGS="$CFLAGS -m64" 9333 cat >conftest.$ac_ext <<_ACEOF 9334/* confdefs.h. */ 9335_ACEOF 9336cat confdefs.h >>conftest.$ac_ext 9337cat >>conftest.$ac_ext <<_ACEOF 9338/* end confdefs.h. */ 9339 9340int 9341main () 9342{ 9343 9344 ; 9345 return 0; 9346} 9347_ACEOF 9348rm -f conftest.$ac_objext conftest$ac_exeext 9349if { (ac_try="$ac_link" 9350case "(($ac_try" in 9351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9352 *) ac_try_echo=$ac_try;; 9353esac 9354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9355 (eval "$ac_link") 2>conftest.er1 9356 ac_status=$? 9357 grep -v '^ *+' conftest.er1 >conftest.err 9358 rm -f conftest.er1 9359 cat conftest.err >&5 9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9361 (exit $ac_status); } && { 9362 test -z "$ac_c_werror_flag" || 9363 test ! -s conftest.err 9364 } && test -s conftest$ac_exeext && 9365 $as_test_x conftest$ac_exeext; then 9366 tcl_cv_cc_m64=yes 9367else 9368 echo "$as_me: failed program was:" >&5 9369sed 's/^/| /' conftest.$ac_ext >&5 9370 9371 tcl_cv_cc_m64=no 9372fi 9373 9374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9375 conftest$ac_exeext conftest.$ac_ext 9376 CFLAGS=$hold_cflags 9377fi 9378{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 9379echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 9380 if test $tcl_cv_cc_m64 = yes; then 9381 9382 CFLAGS="$CFLAGS -m64" 9383 do64bit_ok=yes 9384 9385fi 9386 9387 9388fi 9389 9390 9391 # The combo of gcc + glibc has a bug related to inlining of 9392 # functions like strtod(). The -fno-builtin flag should address 9393 # this problem but it does not work. The -fno-inline flag is kind 9394 # of overkill but it works. Disable inlining only when one of the 9395 # files in compat/*.c is being linked in. 9396 9397 if test x"${USE_COMPAT}" != x; then 9398 CFLAGS="$CFLAGS -fno-inline" 9399fi 9400 9401 9402 ;; 9403 GNU*) 9404 SHLIB_CFLAGS="-fPIC" 9405 SHLIB_SUFFIX=".so" 9406 9407 SHLIB_LD='${CC} -shared' 9408 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9409 CC_SEARCH_FLAGS="" 9410 LD_SEARCH_FLAGS="" 9411 if test "`uname -m`" = "alpha"; then 9412 CFLAGS="$CFLAGS -mieee" 9413fi 9414 9415 ;; 9416 Lynx*) 9417 SHLIB_CFLAGS="-fPIC" 9418 SHLIB_SUFFIX=".so" 9419 CFLAGS_OPTIMIZE=-02 9420 SHLIB_LD='${CC} -shared' 9421 LD_FLAGS="-Wl,--export-dynamic" 9422 if test $doRpath = yes; then 9423 9424 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9425 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9426fi 9427 9428 ;; 9429 OpenBSD-*) 9430 SHLIB_CFLAGS="-fPIC" 9431 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 9432 SHLIB_SUFFIX=".so" 9433 if test $doRpath = yes; then 9434 9435 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9436fi 9437 9438 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9439 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 9440 { echo "$as_me:$LINENO: checking for ELF" >&5 9441echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 9442if test "${tcl_cv_ld_elf+set}" = set; then 9443 echo $ECHO_N "(cached) $ECHO_C" >&6 9444else 9445 9446 cat >conftest.$ac_ext <<_ACEOF 9447/* confdefs.h. */ 9448_ACEOF 9449cat confdefs.h >>conftest.$ac_ext 9450cat >>conftest.$ac_ext <<_ACEOF 9451/* end confdefs.h. */ 9452 9453#ifdef __ELF__ 9454 yes 9455#endif 9456 9457_ACEOF 9458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9459 $EGREP "yes" >/dev/null 2>&1; then 9460 tcl_cv_ld_elf=yes 9461else 9462 tcl_cv_ld_elf=no 9463fi 9464rm -f -r conftest* 9465 9466fi 9467{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 9468echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 9469 if test $tcl_cv_ld_elf = yes; then 9470 9471 LDFLAGS=-Wl,-export-dynamic 9472 9473else 9474 LDFLAGS="" 9475fi 9476 9477 if test "${TCL_THREADS}" = "1"; then 9478 9479 # OpenBSD builds and links with -pthread, never -lpthread. 9480 LIBS=`echo $LIBS | sed s/-lpthread//` 9481 CFLAGS="$CFLAGS -pthread" 9482 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 9483 9484fi 9485 9486 # OpenBSD doesn't do version numbers with dots. 9487 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9488 TCL_LIB_VERSIONS_OK=nodots 9489 ;; 9490 NetBSD-*|FreeBSD-[3-4].*) 9491 # FreeBSD 3.* and greater have ELF. 9492 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 9493 SHLIB_CFLAGS="-fPIC" 9494 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 9495 SHLIB_SUFFIX=".so" 9496 LDFLAGS="$LDFLAGS -export-dynamic" 9497 if test $doRpath = yes; then 9498 9499 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9500fi 9501 9502 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9503 if test "${TCL_THREADS}" = "1"; then 9504 9505 # The -pthread needs to go in the CFLAGS, not LIBS 9506 LIBS=`echo $LIBS | sed s/-pthread//` 9507 CFLAGS="$CFLAGS -pthread" 9508 LDFLAGS="$LDFLAGS -pthread" 9509 9510fi 9511 9512 case $system in 9513 FreeBSD-3.*) 9514 # FreeBSD-3 doesn't handle version numbers with dots. 9515 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9516 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 9517 TCL_LIB_VERSIONS_OK=nodots 9518 ;; 9519 esac 9520 ;; 9521 FreeBSD-*) 9522 # This configuration from FreeBSD Ports. 9523 SHLIB_CFLAGS="-fPIC" 9524 SHLIB_LD="${CC} -shared" 9525 TCL_SHLIB_LD_EXTRAS="-soname \$@" 9526 SHLIB_SUFFIX=".so" 9527 LDFLAGS="" 9528 if test $doRpath = yes; then 9529 9530 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9531 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9532fi 9533 9534 if test "${TCL_THREADS}" = "1"; then 9535 9536 # The -pthread needs to go in the LDFLAGS, not LIBS 9537 LIBS=`echo $LIBS | sed s/-pthread//` 9538 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9539 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 9540fi 9541 9542 # Version numbers are dot-stripped by system policy. 9543 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 9544 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9545 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 9546 TCL_LIB_VERSIONS_OK=nodots 9547 ;; 9548 Darwin-*) 9549 CFLAGS_OPTIMIZE="-Os" 9550 SHLIB_CFLAGS="-fno-common" 9551 # To avoid discrepancies between what headers configure sees during 9552 # preprocessing tests and compiling tests, move any -isysroot and 9553 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 9554 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 9555 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 9556 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 9557 CFLAGS="`echo " ${CFLAGS}" | \ 9558 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 9559 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 9560 if test $do64bit = yes; then 9561 9562 case `arch` in 9563 ppc) 9564 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 9565echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 9566if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 9567 echo $ECHO_N "(cached) $ECHO_C" >&6 9568else 9569 9570 hold_cflags=$CFLAGS 9571 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9572 cat >conftest.$ac_ext <<_ACEOF 9573/* confdefs.h. */ 9574_ACEOF 9575cat confdefs.h >>conftest.$ac_ext 9576cat >>conftest.$ac_ext <<_ACEOF 9577/* end confdefs.h. */ 9578 9579int 9580main () 9581{ 9582 9583 ; 9584 return 0; 9585} 9586_ACEOF 9587rm -f conftest.$ac_objext conftest$ac_exeext 9588if { (ac_try="$ac_link" 9589case "(($ac_try" in 9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9591 *) ac_try_echo=$ac_try;; 9592esac 9593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9594 (eval "$ac_link") 2>conftest.er1 9595 ac_status=$? 9596 grep -v '^ *+' conftest.er1 >conftest.err 9597 rm -f conftest.er1 9598 cat conftest.err >&5 9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9600 (exit $ac_status); } && { 9601 test -z "$ac_c_werror_flag" || 9602 test ! -s conftest.err 9603 } && test -s conftest$ac_exeext && 9604 $as_test_x conftest$ac_exeext; then 9605 tcl_cv_cc_arch_ppc64=yes 9606else 9607 echo "$as_me: failed program was:" >&5 9608sed 's/^/| /' conftest.$ac_ext >&5 9609 9610 tcl_cv_cc_arch_ppc64=no 9611fi 9612 9613rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9614 conftest$ac_exeext conftest.$ac_ext 9615 CFLAGS=$hold_cflags 9616fi 9617{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 9618echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 9619 if test $tcl_cv_cc_arch_ppc64 = yes; then 9620 9621 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9622 do64bit_ok=yes 9623 9624fi 9625;; 9626 i386) 9627 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 9628echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 9629if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 9630 echo $ECHO_N "(cached) $ECHO_C" >&6 9631else 9632 9633 hold_cflags=$CFLAGS 9634 CFLAGS="$CFLAGS -arch x86_64" 9635 cat >conftest.$ac_ext <<_ACEOF 9636/* confdefs.h. */ 9637_ACEOF 9638cat confdefs.h >>conftest.$ac_ext 9639cat >>conftest.$ac_ext <<_ACEOF 9640/* end confdefs.h. */ 9641 9642int 9643main () 9644{ 9645 9646 ; 9647 return 0; 9648} 9649_ACEOF 9650rm -f conftest.$ac_objext conftest$ac_exeext 9651if { (ac_try="$ac_link" 9652case "(($ac_try" in 9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9654 *) ac_try_echo=$ac_try;; 9655esac 9656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9657 (eval "$ac_link") 2>conftest.er1 9658 ac_status=$? 9659 grep -v '^ *+' conftest.er1 >conftest.err 9660 rm -f conftest.er1 9661 cat conftest.err >&5 9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9663 (exit $ac_status); } && { 9664 test -z "$ac_c_werror_flag" || 9665 test ! -s conftest.err 9666 } && test -s conftest$ac_exeext && 9667 $as_test_x conftest$ac_exeext; then 9668 tcl_cv_cc_arch_x86_64=yes 9669else 9670 echo "$as_me: failed program was:" >&5 9671sed 's/^/| /' conftest.$ac_ext >&5 9672 9673 tcl_cv_cc_arch_x86_64=no 9674fi 9675 9676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9677 conftest$ac_exeext conftest.$ac_ext 9678 CFLAGS=$hold_cflags 9679fi 9680{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 9681echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 9682 if test $tcl_cv_cc_arch_x86_64 = yes; then 9683 9684 CFLAGS="$CFLAGS -arch x86_64" 9685 do64bit_ok=yes 9686 9687fi 9688;; 9689 *) 9690 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 9691echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 9692 esac 9693 9694else 9695 9696 # Check for combined 32-bit and 64-bit fat build 9697 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 9698 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 9699 9700 fat_32_64=yes 9701fi 9702 9703 9704fi 9705 9706 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9707 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 9708 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 9709echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 9710if test "${tcl_cv_ld_single_module+set}" = set; then 9711 echo $ECHO_N "(cached) $ECHO_C" >&6 9712else 9713 9714 hold_ldflags=$LDFLAGS 9715 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 9716 cat >conftest.$ac_ext <<_ACEOF 9717/* confdefs.h. */ 9718_ACEOF 9719cat confdefs.h >>conftest.$ac_ext 9720cat >>conftest.$ac_ext <<_ACEOF 9721/* end confdefs.h. */ 9722 9723int 9724main () 9725{ 9726int i; 9727 ; 9728 return 0; 9729} 9730_ACEOF 9731rm -f conftest.$ac_objext conftest$ac_exeext 9732if { (ac_try="$ac_link" 9733case "(($ac_try" in 9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9735 *) ac_try_echo=$ac_try;; 9736esac 9737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9738 (eval "$ac_link") 2>conftest.er1 9739 ac_status=$? 9740 grep -v '^ *+' conftest.er1 >conftest.err 9741 rm -f conftest.er1 9742 cat conftest.err >&5 9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9744 (exit $ac_status); } && { 9745 test -z "$ac_c_werror_flag" || 9746 test ! -s conftest.err 9747 } && test -s conftest$ac_exeext && 9748 $as_test_x conftest$ac_exeext; then 9749 tcl_cv_ld_single_module=yes 9750else 9751 echo "$as_me: failed program was:" >&5 9752sed 's/^/| /' conftest.$ac_ext >&5 9753 9754 tcl_cv_ld_single_module=no 9755fi 9756 9757rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9758 conftest$ac_exeext conftest.$ac_ext 9759 LDFLAGS=$hold_ldflags 9760fi 9761{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 9762echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 9763 if test $tcl_cv_ld_single_module = yes; then 9764 9765 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 9766 9767fi 9768 9769 # TEA specific: link shlib with current and compatiblity version flags 9770 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 9771 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 9772 SHLIB_SUFFIX=".dylib" 9773 # Don't use -prebind when building for Mac OS X 10.4 or later only: 9774 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 9775 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 9776 9777 LDFLAGS="$LDFLAGS -prebind" 9778fi 9779 9780 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 9781 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 9782echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 9783if test "${tcl_cv_ld_search_paths_first+set}" = set; then 9784 echo $ECHO_N "(cached) $ECHO_C" >&6 9785else 9786 9787 hold_ldflags=$LDFLAGS 9788 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9789 cat >conftest.$ac_ext <<_ACEOF 9790/* confdefs.h. */ 9791_ACEOF 9792cat confdefs.h >>conftest.$ac_ext 9793cat >>conftest.$ac_ext <<_ACEOF 9794/* end confdefs.h. */ 9795 9796int 9797main () 9798{ 9799int i; 9800 ; 9801 return 0; 9802} 9803_ACEOF 9804rm -f conftest.$ac_objext conftest$ac_exeext 9805if { (ac_try="$ac_link" 9806case "(($ac_try" in 9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9808 *) ac_try_echo=$ac_try;; 9809esac 9810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9811 (eval "$ac_link") 2>conftest.er1 9812 ac_status=$? 9813 grep -v '^ *+' conftest.er1 >conftest.err 9814 rm -f conftest.er1 9815 cat conftest.err >&5 9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9817 (exit $ac_status); } && { 9818 test -z "$ac_c_werror_flag" || 9819 test ! -s conftest.err 9820 } && test -s conftest$ac_exeext && 9821 $as_test_x conftest$ac_exeext; then 9822 tcl_cv_ld_search_paths_first=yes 9823else 9824 echo "$as_me: failed program was:" >&5 9825sed 's/^/| /' conftest.$ac_ext >&5 9826 9827 tcl_cv_ld_search_paths_first=no 9828fi 9829 9830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9831 conftest$ac_exeext conftest.$ac_ext 9832 LDFLAGS=$hold_ldflags 9833fi 9834{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9835echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 9836 if test $tcl_cv_ld_search_paths_first = yes; then 9837 9838 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9839 9840fi 9841 9842 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9843 9844 9845cat >>confdefs.h <<\_ACEOF 9846#define MODULE_SCOPE __private_extern__ 9847_ACEOF 9848 9849 tcl_cv_cc_visibility_hidden=yes 9850 9851fi 9852 9853 CC_SEARCH_FLAGS="" 9854 LD_SEARCH_FLAGS="" 9855 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9856 # TEA specific: for combined 32 & 64 bit fat builds of Tk 9857 # extensions, verify that 64-bit build is possible. 9858 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 9859 9860 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 9861 9862 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9863echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 9864if test "${tcl_cv_lib_x11_64+set}" = set; then 9865 echo $ECHO_N "(cached) $ECHO_C" >&6 9866else 9867 9868 for v in CFLAGS CPPFLAGS LDFLAGS; do 9869 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9870 done 9871 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9872 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9873 cat >conftest.$ac_ext <<_ACEOF 9874/* confdefs.h. */ 9875_ACEOF 9876cat confdefs.h >>conftest.$ac_ext 9877cat >>conftest.$ac_ext <<_ACEOF 9878/* end confdefs.h. */ 9879#include <X11/Xlib.h> 9880int 9881main () 9882{ 9883XrmInitialize(); 9884 ; 9885 return 0; 9886} 9887_ACEOF 9888rm -f conftest.$ac_objext conftest$ac_exeext 9889if { (ac_try="$ac_link" 9890case "(($ac_try" in 9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9892 *) ac_try_echo=$ac_try;; 9893esac 9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9895 (eval "$ac_link") 2>conftest.er1 9896 ac_status=$? 9897 grep -v '^ *+' conftest.er1 >conftest.err 9898 rm -f conftest.er1 9899 cat conftest.err >&5 9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9901 (exit $ac_status); } && { 9902 test -z "$ac_c_werror_flag" || 9903 test ! -s conftest.err 9904 } && test -s conftest$ac_exeext && 9905 $as_test_x conftest$ac_exeext; then 9906 tcl_cv_lib_x11_64=yes 9907else 9908 echo "$as_me: failed program was:" >&5 9909sed 's/^/| /' conftest.$ac_ext >&5 9910 9911 tcl_cv_lib_x11_64=no 9912fi 9913 9914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9915 conftest$ac_exeext conftest.$ac_ext 9916 for v in CFLAGS CPPFLAGS LDFLAGS; do 9917 eval $v'="$hold_'$v'"' 9918 done 9919fi 9920{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9921echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9922 9923fi 9924 9925 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9926 9927 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9928echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9929if test "${tcl_cv_lib_tk_64+set}" = set; then 9930 echo $ECHO_N "(cached) $ECHO_C" >&6 9931else 9932 9933 for v in CFLAGS CPPFLAGS LDFLAGS; do 9934 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9935 done 9936 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9937 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9938 cat >conftest.$ac_ext <<_ACEOF 9939/* confdefs.h. */ 9940_ACEOF 9941cat confdefs.h >>conftest.$ac_ext 9942cat >>conftest.$ac_ext <<_ACEOF 9943/* end confdefs.h. */ 9944#include <tk.h> 9945int 9946main () 9947{ 9948Tk_InitStubs(NULL, "", 0); 9949 ; 9950 return 0; 9951} 9952_ACEOF 9953rm -f conftest.$ac_objext conftest$ac_exeext 9954if { (ac_try="$ac_link" 9955case "(($ac_try" in 9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9957 *) ac_try_echo=$ac_try;; 9958esac 9959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9960 (eval "$ac_link") 2>conftest.er1 9961 ac_status=$? 9962 grep -v '^ *+' conftest.er1 >conftest.err 9963 rm -f conftest.er1 9964 cat conftest.err >&5 9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9966 (exit $ac_status); } && { 9967 test -z "$ac_c_werror_flag" || 9968 test ! -s conftest.err 9969 } && test -s conftest$ac_exeext && 9970 $as_test_x conftest$ac_exeext; then 9971 tcl_cv_lib_tk_64=yes 9972else 9973 echo "$as_me: failed program was:" >&5 9974sed 's/^/| /' conftest.$ac_ext >&5 9975 9976 tcl_cv_lib_tk_64=no 9977fi 9978 9979rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9980 conftest$ac_exeext conftest.$ac_ext 9981 for v in CFLAGS CPPFLAGS LDFLAGS; do 9982 eval $v'="$hold_'$v'"' 9983 done 9984fi 9985{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9986echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9987 9988fi 9989 9990 # remove 64-bit arch flags from CFLAGS et al. if configuration 9991 # does not support 64-bit. 9992 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9993 9994 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9995echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9996 for v in CFLAGS CPPFLAGS LDFLAGS; do 9997 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9998 done 9999fi 10000 10001 10002fi 10003 10004 ;; 10005 OS/390-*) 10006 CFLAGS_OPTIMIZE="" # Optimizer is buggy 10007 10008cat >>confdefs.h <<\_ACEOF 10009#define _OE_SOCKETS 1 10010_ACEOF 10011 10012 ;; 10013 OSF1-V*) 10014 # Digital OSF/1 10015 SHLIB_CFLAGS="" 10016 if test "$SHARED_BUILD" = 1; then 10017 10018 SHLIB_LD='ld -shared -expect_unresolved "*"' 10019 10020else 10021 10022 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 10023 10024fi 10025 10026 SHLIB_SUFFIX=".so" 10027 if test $doRpath = yes; then 10028 10029 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10030 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 10031fi 10032 10033 if test "$GCC" = yes; then 10034 CFLAGS="$CFLAGS -mieee" 10035else 10036 10037 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 10038fi 10039 10040 # see pthread_intro(3) for pthread support on osf1, k.furukawa 10041 if test "${TCL_THREADS}" = 1; then 10042 10043 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 10044 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 10045 LIBS=`echo $LIBS | sed s/-lpthreads//` 10046 if test "$GCC" = yes; then 10047 10048 LIBS="$LIBS -lpthread -lmach -lexc" 10049 10050else 10051 10052 CFLAGS="$CFLAGS -pthread" 10053 LDFLAGS="$LDFLAGS -pthread" 10054 10055fi 10056 10057 10058fi 10059 10060 ;; 10061 QNX-6*) 10062 # QNX RTP 10063 # This may work for all QNX, but it was only reported for v6. 10064 SHLIB_CFLAGS="-fPIC" 10065 SHLIB_LD="ld -Bshareable -x" 10066 SHLIB_LD_LIBS="" 10067 SHLIB_SUFFIX=".so" 10068 CC_SEARCH_FLAGS="" 10069 LD_SEARCH_FLAGS="" 10070 ;; 10071 SCO_SV-3.2*) 10072 if test "$GCC" = yes; then 10073 10074 SHLIB_CFLAGS="-fPIC -melf" 10075 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 10076 10077else 10078 10079 SHLIB_CFLAGS="-Kpic -belf" 10080 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 10081 10082fi 10083 10084 SHLIB_LD="ld -G" 10085 SHLIB_LD_LIBS="" 10086 SHLIB_SUFFIX=".so" 10087 CC_SEARCH_FLAGS="" 10088 LD_SEARCH_FLAGS="" 10089 ;; 10090 SunOS-5.[0-6]) 10091 # Careful to not let 5.10+ fall into this case 10092 10093 # Note: If _REENTRANT isn't defined, then Solaris 10094 # won't define thread-safe library routines. 10095 10096 10097cat >>confdefs.h <<\_ACEOF 10098#define _REENTRANT 1 10099_ACEOF 10100 10101 10102cat >>confdefs.h <<\_ACEOF 10103#define _POSIX_PTHREAD_SEMANTICS 1 10104_ACEOF 10105 10106 10107 SHLIB_CFLAGS="-KPIC" 10108 SHLIB_SUFFIX=".so" 10109 if test "$GCC" = yes; then 10110 10111 SHLIB_LD='${CC} -shared' 10112 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 10113 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10114 10115else 10116 10117 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 10118 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 10119 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10120 10121fi 10122 10123 ;; 10124 SunOS-5*) 10125 # Note: If _REENTRANT isn't defined, then Solaris 10126 # won't define thread-safe library routines. 10127 10128 10129cat >>confdefs.h <<\_ACEOF 10130#define _REENTRANT 1 10131_ACEOF 10132 10133 10134cat >>confdefs.h <<\_ACEOF 10135#define _POSIX_PTHREAD_SEMANTICS 1 10136_ACEOF 10137 10138 10139 SHLIB_CFLAGS="-KPIC" 10140 10141 # Check to enable 64-bit flags for compiler/linker 10142 if test "$do64bit" = yes; then 10143 10144 arch=`isainfo` 10145 if test "$arch" = "sparcv9 sparc"; then 10146 10147 if test "$GCC" = yes; then 10148 10149 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 10150 10151 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 10152echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 10153 10154else 10155 10156 do64bit_ok=yes 10157 CFLAGS="$CFLAGS -m64 -mcpu=v9" 10158 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 10159 SHLIB_CFLAGS="-fPIC" 10160 10161fi 10162 10163 10164else 10165 10166 do64bit_ok=yes 10167 if test "$do64bitVIS" = yes; then 10168 10169 CFLAGS="$CFLAGS -xarch=v9a" 10170 LDFLAGS_ARCH="-xarch=v9a" 10171 10172else 10173 10174 CFLAGS="$CFLAGS -xarch=v9" 10175 LDFLAGS_ARCH="-xarch=v9" 10176 10177fi 10178 10179 # Solaris 64 uses this as well 10180 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 10181 10182fi 10183 10184 10185else 10186 if test "$arch" = "amd64 i386"; then 10187 10188 if test "$GCC" = yes; then 10189 10190 case $system in 10191 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 10192 do64bit_ok=yes 10193 CFLAGS="$CFLAGS -m64" 10194 LDFLAGS="$LDFLAGS -m64";; 10195 *) 10196 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 10197echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 10198 esac 10199 10200else 10201 10202 do64bit_ok=yes 10203 case $system in 10204 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 10205 CFLAGS="$CFLAGS -m64" 10206 LDFLAGS="$LDFLAGS -m64";; 10207 *) 10208 CFLAGS="$CFLAGS -xarch=amd64" 10209 LDFLAGS="$LDFLAGS -xarch=amd64";; 10210 esac 10211 10212fi 10213 10214 10215else 10216 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 10217echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 10218fi 10219 10220fi 10221 10222 10223fi 10224 10225 10226 SHLIB_SUFFIX=".so" 10227 if test "$GCC" = yes; then 10228 10229 SHLIB_LD='${CC} -shared' 10230 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 10231 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10232 if test "$do64bit_ok" = yes; then 10233 10234 if test "$arch" = "sparcv9 sparc"; then 10235 10236 # We need to specify -static-libgcc or we need to 10237 # add the path to the sparv9 libgcc. 10238 # JH: static-libgcc is necessary for core Tcl, but may 10239 # not be necessary for extensions. 10240 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 10241 # for finding sparcv9 libgcc, get the regular libgcc 10242 # path, remove so name and append 'sparcv9' 10243 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 10244 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 10245 10246else 10247 if test "$arch" = "amd64 i386"; then 10248 10249 # JH: static-libgcc is necessary for core Tcl, but may 10250 # not be necessary for extensions. 10251 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 10252 10253fi 10254 10255fi 10256 10257 10258fi 10259 10260 10261else 10262 10263 case $system in 10264 SunOS-5.[1-9][0-9]*) 10265 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 10266 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 10267 *) 10268 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 10269 esac 10270 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 10271 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 10272 10273fi 10274 10275 ;; 10276 esac 10277 10278 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 10279 10280 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 10281echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 10282 10283fi 10284 10285 10286 10287 10288 # Add in the arch flags late to ensure it wasn't removed. 10289 # Not necessary in TEA, but this is aligned with core 10290 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 10291 10292 # If we're running gcc, then change the C flags for compiling shared 10293 # libraries to the right flags for gcc, instead of those for the 10294 # standard manufacturer compiler. 10295 10296 if test "$GCC" = yes; then 10297 10298 case $system in 10299 AIX-*) ;; 10300 BSD/OS*) ;; 10301 CYGWIN_*) ;; 10302 IRIX*) ;; 10303 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 10304 Darwin-*) ;; 10305 SCO_SV-3.2*) ;; 10306 windows) ;; 10307 *) SHLIB_CFLAGS="-fPIC" ;; 10308 esac 10309fi 10310 10311 10312 if test "$tcl_cv_cc_visibility_hidden" != yes; then 10313 10314 10315cat >>confdefs.h <<\_ACEOF 10316#define MODULE_SCOPE extern 10317_ACEOF 10318 10319 10320cat >>confdefs.h <<\_ACEOF 10321#define NO_VIZ 10322_ACEOF 10323 10324 10325fi 10326 10327 10328 if test "$SHARED_LIB_SUFFIX" = ""; then 10329 10330 # TEA specific: use PACKAGE_VERSION instead of VERSION 10331 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 10332fi 10333 10334 if test "$UNSHARED_LIB_SUFFIX" = ""; then 10335 10336 # TEA specific: use PACKAGE_VERSION instead of VERSION 10337 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 10338fi 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 # These must be called after we do the basic CFLAGS checks and 10354 # verify any possible 64-bit or similar switches are necessary 10355 10356 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 10357echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 10358 tcl_flags="" 10359 10360 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 10361 echo $ECHO_N "(cached) $ECHO_C" >&6 10362else 10363 cat >conftest.$ac_ext <<_ACEOF 10364/* confdefs.h. */ 10365_ACEOF 10366cat confdefs.h >>conftest.$ac_ext 10367cat >>conftest.$ac_ext <<_ACEOF 10368/* end confdefs.h. */ 10369#include <stdlib.h> 10370int 10371main () 10372{ 10373char *p = (char *)strtoll; char *q = (char *)strtoull; 10374 ; 10375 return 0; 10376} 10377_ACEOF 10378rm -f conftest.$ac_objext 10379if { (ac_try="$ac_compile" 10380case "(($ac_try" in 10381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10382 *) ac_try_echo=$ac_try;; 10383esac 10384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10385 (eval "$ac_compile") 2>conftest.er1 10386 ac_status=$? 10387 grep -v '^ *+' conftest.er1 >conftest.err 10388 rm -f conftest.er1 10389 cat conftest.err >&5 10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10391 (exit $ac_status); } && { 10392 test -z "$ac_c_werror_flag" || 10393 test ! -s conftest.err 10394 } && test -s conftest.$ac_objext; then 10395 tcl_cv_flag__isoc99_source=no 10396else 10397 echo "$as_me: failed program was:" >&5 10398sed 's/^/| /' conftest.$ac_ext >&5 10399 10400 cat >conftest.$ac_ext <<_ACEOF 10401/* confdefs.h. */ 10402_ACEOF 10403cat confdefs.h >>conftest.$ac_ext 10404cat >>conftest.$ac_ext <<_ACEOF 10405/* end confdefs.h. */ 10406#define _ISOC99_SOURCE 1 10407#include <stdlib.h> 10408int 10409main () 10410{ 10411char *p = (char *)strtoll; char *q = (char *)strtoull; 10412 ; 10413 return 0; 10414} 10415_ACEOF 10416rm -f conftest.$ac_objext 10417if { (ac_try="$ac_compile" 10418case "(($ac_try" in 10419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10420 *) ac_try_echo=$ac_try;; 10421esac 10422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10423 (eval "$ac_compile") 2>conftest.er1 10424 ac_status=$? 10425 grep -v '^ *+' conftest.er1 >conftest.err 10426 rm -f conftest.er1 10427 cat conftest.err >&5 10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10429 (exit $ac_status); } && { 10430 test -z "$ac_c_werror_flag" || 10431 test ! -s conftest.err 10432 } && test -s conftest.$ac_objext; then 10433 tcl_cv_flag__isoc99_source=yes 10434else 10435 echo "$as_me: failed program was:" >&5 10436sed 's/^/| /' conftest.$ac_ext >&5 10437 10438 tcl_cv_flag__isoc99_source=no 10439fi 10440 10441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10442fi 10443 10444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10445fi 10446 10447 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 10448 10449cat >>confdefs.h <<\_ACEOF 10450#define _ISOC99_SOURCE 1 10451_ACEOF 10452 10453 tcl_flags="$tcl_flags _ISOC99_SOURCE" 10454 fi 10455 10456 10457 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 10458 echo $ECHO_N "(cached) $ECHO_C" >&6 10459else 10460 cat >conftest.$ac_ext <<_ACEOF 10461/* confdefs.h. */ 10462_ACEOF 10463cat confdefs.h >>conftest.$ac_ext 10464cat >>conftest.$ac_ext <<_ACEOF 10465/* end confdefs.h. */ 10466#include <sys/stat.h> 10467int 10468main () 10469{ 10470struct stat64 buf; int i = stat64("/", &buf); 10471 ; 10472 return 0; 10473} 10474_ACEOF 10475rm -f conftest.$ac_objext 10476if { (ac_try="$ac_compile" 10477case "(($ac_try" in 10478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10479 *) ac_try_echo=$ac_try;; 10480esac 10481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10482 (eval "$ac_compile") 2>conftest.er1 10483 ac_status=$? 10484 grep -v '^ *+' conftest.er1 >conftest.err 10485 rm -f conftest.er1 10486 cat conftest.err >&5 10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10488 (exit $ac_status); } && { 10489 test -z "$ac_c_werror_flag" || 10490 test ! -s conftest.err 10491 } && test -s conftest.$ac_objext; then 10492 tcl_cv_flag__largefile64_source=no 10493else 10494 echo "$as_me: failed program was:" >&5 10495sed 's/^/| /' conftest.$ac_ext >&5 10496 10497 cat >conftest.$ac_ext <<_ACEOF 10498/* confdefs.h. */ 10499_ACEOF 10500cat confdefs.h >>conftest.$ac_ext 10501cat >>conftest.$ac_ext <<_ACEOF 10502/* end confdefs.h. */ 10503#define _LARGEFILE64_SOURCE 1 10504#include <sys/stat.h> 10505int 10506main () 10507{ 10508struct stat64 buf; int i = stat64("/", &buf); 10509 ; 10510 return 0; 10511} 10512_ACEOF 10513rm -f conftest.$ac_objext 10514if { (ac_try="$ac_compile" 10515case "(($ac_try" in 10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10517 *) ac_try_echo=$ac_try;; 10518esac 10519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10520 (eval "$ac_compile") 2>conftest.er1 10521 ac_status=$? 10522 grep -v '^ *+' conftest.er1 >conftest.err 10523 rm -f conftest.er1 10524 cat conftest.err >&5 10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10526 (exit $ac_status); } && { 10527 test -z "$ac_c_werror_flag" || 10528 test ! -s conftest.err 10529 } && test -s conftest.$ac_objext; then 10530 tcl_cv_flag__largefile64_source=yes 10531else 10532 echo "$as_me: failed program was:" >&5 10533sed 's/^/| /' conftest.$ac_ext >&5 10534 10535 tcl_cv_flag__largefile64_source=no 10536fi 10537 10538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10539fi 10540 10541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10542fi 10543 10544 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 10545 10546cat >>confdefs.h <<\_ACEOF 10547#define _LARGEFILE64_SOURCE 1 10548_ACEOF 10549 10550 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 10551 fi 10552 10553 10554 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 10555 echo $ECHO_N "(cached) $ECHO_C" >&6 10556else 10557 cat >conftest.$ac_ext <<_ACEOF 10558/* confdefs.h. */ 10559_ACEOF 10560cat confdefs.h >>conftest.$ac_ext 10561cat >>conftest.$ac_ext <<_ACEOF 10562/* end confdefs.h. */ 10563#include <sys/stat.h> 10564int 10565main () 10566{ 10567char *p = (char *)open64; 10568 ; 10569 return 0; 10570} 10571_ACEOF 10572rm -f conftest.$ac_objext 10573if { (ac_try="$ac_compile" 10574case "(($ac_try" in 10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10576 *) ac_try_echo=$ac_try;; 10577esac 10578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10579 (eval "$ac_compile") 2>conftest.er1 10580 ac_status=$? 10581 grep -v '^ *+' conftest.er1 >conftest.err 10582 rm -f conftest.er1 10583 cat conftest.err >&5 10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10585 (exit $ac_status); } && { 10586 test -z "$ac_c_werror_flag" || 10587 test ! -s conftest.err 10588 } && test -s conftest.$ac_objext; then 10589 tcl_cv_flag__largefile_source64=no 10590else 10591 echo "$as_me: failed program was:" >&5 10592sed 's/^/| /' conftest.$ac_ext >&5 10593 10594 cat >conftest.$ac_ext <<_ACEOF 10595/* confdefs.h. */ 10596_ACEOF 10597cat confdefs.h >>conftest.$ac_ext 10598cat >>conftest.$ac_ext <<_ACEOF 10599/* end confdefs.h. */ 10600#define _LARGEFILE_SOURCE64 1 10601#include <sys/stat.h> 10602int 10603main () 10604{ 10605char *p = (char *)open64; 10606 ; 10607 return 0; 10608} 10609_ACEOF 10610rm -f conftest.$ac_objext 10611if { (ac_try="$ac_compile" 10612case "(($ac_try" in 10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10614 *) ac_try_echo=$ac_try;; 10615esac 10616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10617 (eval "$ac_compile") 2>conftest.er1 10618 ac_status=$? 10619 grep -v '^ *+' conftest.er1 >conftest.err 10620 rm -f conftest.er1 10621 cat conftest.err >&5 10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10623 (exit $ac_status); } && { 10624 test -z "$ac_c_werror_flag" || 10625 test ! -s conftest.err 10626 } && test -s conftest.$ac_objext; then 10627 tcl_cv_flag__largefile_source64=yes 10628else 10629 echo "$as_me: failed program was:" >&5 10630sed 's/^/| /' conftest.$ac_ext >&5 10631 10632 tcl_cv_flag__largefile_source64=no 10633fi 10634 10635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10636fi 10637 10638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10639fi 10640 10641 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 10642 10643cat >>confdefs.h <<\_ACEOF 10644#define _LARGEFILE_SOURCE64 1 10645_ACEOF 10646 10647 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 10648 fi 10649 10650 if test "x${tcl_flags}" = "x" ; then 10651 { echo "$as_me:$LINENO: result: none" >&5 10652echo "${ECHO_T}none" >&6; } 10653 else 10654 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 10655echo "${ECHO_T}${tcl_flags}" >&6; } 10656 fi 10657 10658 10659 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 10660echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 10661 if test "${tcl_cv_type_64bit+set}" = set; then 10662 echo $ECHO_N "(cached) $ECHO_C" >&6 10663else 10664 10665 tcl_cv_type_64bit=none 10666 # See if the compiler knows natively about __int64 10667 cat >conftest.$ac_ext <<_ACEOF 10668/* confdefs.h. */ 10669_ACEOF 10670cat confdefs.h >>conftest.$ac_ext 10671cat >>conftest.$ac_ext <<_ACEOF 10672/* end confdefs.h. */ 10673 10674int 10675main () 10676{ 10677__int64 value = (__int64) 0; 10678 ; 10679 return 0; 10680} 10681_ACEOF 10682rm -f conftest.$ac_objext 10683if { (ac_try="$ac_compile" 10684case "(($ac_try" in 10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10686 *) ac_try_echo=$ac_try;; 10687esac 10688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10689 (eval "$ac_compile") 2>conftest.er1 10690 ac_status=$? 10691 grep -v '^ *+' conftest.er1 >conftest.err 10692 rm -f conftest.er1 10693 cat conftest.err >&5 10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10695 (exit $ac_status); } && { 10696 test -z "$ac_c_werror_flag" || 10697 test ! -s conftest.err 10698 } && test -s conftest.$ac_objext; then 10699 tcl_type_64bit=__int64 10700else 10701 echo "$as_me: failed program was:" >&5 10702sed 's/^/| /' conftest.$ac_ext >&5 10703 10704 tcl_type_64bit="long long" 10705fi 10706 10707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10708 # See if we should use long anyway Note that we substitute in the 10709 # type that is our current guess for a 64-bit type inside this check 10710 # program, so it should be modified only carefully... 10711 cat >conftest.$ac_ext <<_ACEOF 10712/* confdefs.h. */ 10713_ACEOF 10714cat confdefs.h >>conftest.$ac_ext 10715cat >>conftest.$ac_ext <<_ACEOF 10716/* end confdefs.h. */ 10717 10718int 10719main () 10720{ 10721switch (0) { 10722 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 10723 } 10724 ; 10725 return 0; 10726} 10727_ACEOF 10728rm -f conftest.$ac_objext 10729if { (ac_try="$ac_compile" 10730case "(($ac_try" in 10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10732 *) ac_try_echo=$ac_try;; 10733esac 10734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10735 (eval "$ac_compile") 2>conftest.er1 10736 ac_status=$? 10737 grep -v '^ *+' conftest.er1 >conftest.err 10738 rm -f conftest.er1 10739 cat conftest.err >&5 10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10741 (exit $ac_status); } && { 10742 test -z "$ac_c_werror_flag" || 10743 test ! -s conftest.err 10744 } && test -s conftest.$ac_objext; then 10745 tcl_cv_type_64bit=${tcl_type_64bit} 10746else 10747 echo "$as_me: failed program was:" >&5 10748sed 's/^/| /' conftest.$ac_ext >&5 10749 10750 10751fi 10752 10753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10754fi 10755 10756 if test "${tcl_cv_type_64bit}" = none ; then 10757 10758cat >>confdefs.h <<\_ACEOF 10759#define TCL_WIDE_INT_IS_LONG 1 10760_ACEOF 10761 10762 { echo "$as_me:$LINENO: result: using long" >&5 10763echo "${ECHO_T}using long" >&6; } 10764 elif test "${tcl_cv_type_64bit}" = "__int64" \ 10765 -a "${TEA_PLATFORM}" = "windows" ; then 10766 # TEA specific: We actually want to use the default tcl.h checks in 10767 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 10768 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 10769echo "${ECHO_T}using Tcl header defaults" >&6; } 10770 else 10771 10772cat >>confdefs.h <<_ACEOF 10773#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 10774_ACEOF 10775 10776 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 10777echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 10778 10779 # Now check for auxiliary declarations 10780 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 10781echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 10782if test "${tcl_cv_struct_dirent64+set}" = set; then 10783 echo $ECHO_N "(cached) $ECHO_C" >&6 10784else 10785 10786 cat >conftest.$ac_ext <<_ACEOF 10787/* confdefs.h. */ 10788_ACEOF 10789cat confdefs.h >>conftest.$ac_ext 10790cat >>conftest.$ac_ext <<_ACEOF 10791/* end confdefs.h. */ 10792#include <sys/types.h> 10793#include <sys/dirent.h> 10794int 10795main () 10796{ 10797struct dirent64 p; 10798 ; 10799 return 0; 10800} 10801_ACEOF 10802rm -f conftest.$ac_objext 10803if { (ac_try="$ac_compile" 10804case "(($ac_try" in 10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10806 *) ac_try_echo=$ac_try;; 10807esac 10808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10809 (eval "$ac_compile") 2>conftest.er1 10810 ac_status=$? 10811 grep -v '^ *+' conftest.er1 >conftest.err 10812 rm -f conftest.er1 10813 cat conftest.err >&5 10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10815 (exit $ac_status); } && { 10816 test -z "$ac_c_werror_flag" || 10817 test ! -s conftest.err 10818 } && test -s conftest.$ac_objext; then 10819 tcl_cv_struct_dirent64=yes 10820else 10821 echo "$as_me: failed program was:" >&5 10822sed 's/^/| /' conftest.$ac_ext >&5 10823 10824 tcl_cv_struct_dirent64=no 10825fi 10826 10827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10828fi 10829{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10830echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 10831 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10832 10833cat >>confdefs.h <<\_ACEOF 10834#define HAVE_STRUCT_DIRENT64 1 10835_ACEOF 10836 10837 fi 10838 10839 { echo "$as_me:$LINENO: checking for struct stat64" >&5 10840echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 10841if test "${tcl_cv_struct_stat64+set}" = set; then 10842 echo $ECHO_N "(cached) $ECHO_C" >&6 10843else 10844 10845 cat >conftest.$ac_ext <<_ACEOF 10846/* confdefs.h. */ 10847_ACEOF 10848cat confdefs.h >>conftest.$ac_ext 10849cat >>conftest.$ac_ext <<_ACEOF 10850/* end confdefs.h. */ 10851#include <sys/stat.h> 10852int 10853main () 10854{ 10855struct stat64 p; 10856 10857 ; 10858 return 0; 10859} 10860_ACEOF 10861rm -f conftest.$ac_objext 10862if { (ac_try="$ac_compile" 10863case "(($ac_try" in 10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10865 *) ac_try_echo=$ac_try;; 10866esac 10867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10868 (eval "$ac_compile") 2>conftest.er1 10869 ac_status=$? 10870 grep -v '^ *+' conftest.er1 >conftest.err 10871 rm -f conftest.er1 10872 cat conftest.err >&5 10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10874 (exit $ac_status); } && { 10875 test -z "$ac_c_werror_flag" || 10876 test ! -s conftest.err 10877 } && test -s conftest.$ac_objext; then 10878 tcl_cv_struct_stat64=yes 10879else 10880 echo "$as_me: failed program was:" >&5 10881sed 's/^/| /' conftest.$ac_ext >&5 10882 10883 tcl_cv_struct_stat64=no 10884fi 10885 10886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10887fi 10888{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10889echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10890 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10891 10892cat >>confdefs.h <<\_ACEOF 10893#define HAVE_STRUCT_STAT64 1 10894_ACEOF 10895 10896 fi 10897 10898 10899 10900for ac_func in open64 lseek64 10901do 10902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10903{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10905if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10906 echo $ECHO_N "(cached) $ECHO_C" >&6 10907else 10908 cat >conftest.$ac_ext <<_ACEOF 10909/* confdefs.h. */ 10910_ACEOF 10911cat confdefs.h >>conftest.$ac_ext 10912cat >>conftest.$ac_ext <<_ACEOF 10913/* end confdefs.h. */ 10914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10915 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10916#define $ac_func innocuous_$ac_func 10917 10918/* System header to define __stub macros and hopefully few prototypes, 10919 which can conflict with char $ac_func (); below. 10920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10921 <limits.h> exists even on freestanding compilers. */ 10922 10923#ifdef __STDC__ 10924# include <limits.h> 10925#else 10926# include <assert.h> 10927#endif 10928 10929#undef $ac_func 10930 10931/* Override any GCC internal prototype to avoid an error. 10932 Use char because int might match the return type of a GCC 10933 builtin and then its argument prototype would still apply. */ 10934#ifdef __cplusplus 10935extern "C" 10936#endif 10937char $ac_func (); 10938/* The GNU C library defines this for functions which it implements 10939 to always fail with ENOSYS. Some functions are actually named 10940 something starting with __ and the normal name is an alias. */ 10941#if defined __stub_$ac_func || defined __stub___$ac_func 10942choke me 10943#endif 10944 10945int 10946main () 10947{ 10948return $ac_func (); 10949 ; 10950 return 0; 10951} 10952_ACEOF 10953rm -f conftest.$ac_objext conftest$ac_exeext 10954if { (ac_try="$ac_link" 10955case "(($ac_try" in 10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10957 *) ac_try_echo=$ac_try;; 10958esac 10959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10960 (eval "$ac_link") 2>conftest.er1 10961 ac_status=$? 10962 grep -v '^ *+' conftest.er1 >conftest.err 10963 rm -f conftest.er1 10964 cat conftest.err >&5 10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10966 (exit $ac_status); } && { 10967 test -z "$ac_c_werror_flag" || 10968 test ! -s conftest.err 10969 } && test -s conftest$ac_exeext && 10970 $as_test_x conftest$ac_exeext; then 10971 eval "$as_ac_var=yes" 10972else 10973 echo "$as_me: failed program was:" >&5 10974sed 's/^/| /' conftest.$ac_ext >&5 10975 10976 eval "$as_ac_var=no" 10977fi 10978 10979rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10980 conftest$ac_exeext conftest.$ac_ext 10981fi 10982ac_res=`eval echo '${'$as_ac_var'}'` 10983 { echo "$as_me:$LINENO: result: $ac_res" >&5 10984echo "${ECHO_T}$ac_res" >&6; } 10985if test `eval echo '${'$as_ac_var'}'` = yes; then 10986 cat >>confdefs.h <<_ACEOF 10987#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10988_ACEOF 10989 10990fi 10991done 10992 10993 { echo "$as_me:$LINENO: checking for off64_t" >&5 10994echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10995 if test "${tcl_cv_type_off64_t+set}" = set; then 10996 echo $ECHO_N "(cached) $ECHO_C" >&6 10997else 10998 10999 cat >conftest.$ac_ext <<_ACEOF 11000/* confdefs.h. */ 11001_ACEOF 11002cat confdefs.h >>conftest.$ac_ext 11003cat >>conftest.$ac_ext <<_ACEOF 11004/* end confdefs.h. */ 11005#include <sys/types.h> 11006int 11007main () 11008{ 11009off64_t offset; 11010 11011 ; 11012 return 0; 11013} 11014_ACEOF 11015rm -f conftest.$ac_objext 11016if { (ac_try="$ac_compile" 11017case "(($ac_try" in 11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11019 *) ac_try_echo=$ac_try;; 11020esac 11021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11022 (eval "$ac_compile") 2>conftest.er1 11023 ac_status=$? 11024 grep -v '^ *+' conftest.er1 >conftest.err 11025 rm -f conftest.er1 11026 cat conftest.err >&5 11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11028 (exit $ac_status); } && { 11029 test -z "$ac_c_werror_flag" || 11030 test ! -s conftest.err 11031 } && test -s conftest.$ac_objext; then 11032 tcl_cv_type_off64_t=yes 11033else 11034 echo "$as_me: failed program was:" >&5 11035sed 's/^/| /' conftest.$ac_ext >&5 11036 11037 tcl_cv_type_off64_t=no 11038fi 11039 11040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11041fi 11042 11043 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 11044 test "x${ac_cv_func_lseek64}" = "xyes" && \ 11045 test "x${ac_cv_func_open64}" = "xyes" ; then 11046 11047cat >>confdefs.h <<\_ACEOF 11048#define HAVE_TYPE_OFF64_T 1 11049_ACEOF 11050 11051 { echo "$as_me:$LINENO: result: yes" >&5 11052echo "${ECHO_T}yes" >&6; } 11053 else 11054 { echo "$as_me:$LINENO: result: no" >&5 11055echo "${ECHO_T}no" >&6; } 11056 fi 11057 fi 11058 11059 11060 11061#-------------------------------------------------------------------- 11062# Set the default compiler switches based on the --enable-symbols option. 11063#-------------------------------------------------------------------- 11064 11065 11066 11067 { echo "$as_me:$LINENO: checking for build with symbols" >&5 11068echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 11069 # Check whether --enable-symbols was given. 11070if test "${enable_symbols+set}" = set; then 11071 enableval=$enable_symbols; tcl_ok=$enableval 11072else 11073 tcl_ok=no 11074fi 11075 11076 DBGX="" 11077 if test "$tcl_ok" = "no"; then 11078 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 11079 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 11080 { echo "$as_me:$LINENO: result: no" >&5 11081echo "${ECHO_T}no" >&6; } 11082 else 11083 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 11084 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 11085 if test "$tcl_ok" = "yes"; then 11086 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 11087echo "${ECHO_T}yes (standard debugging)" >&6; } 11088 fi 11089 fi 11090 # TEA specific: 11091 if test "${TEA_PLATFORM}" != "windows" ; then 11092 LDFLAGS_DEFAULT="${LDFLAGS}" 11093 fi 11094 11095 11096 11097 11098 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 11099 11100cat >>confdefs.h <<\_ACEOF 11101#define TCL_MEM_DEBUG 1 11102_ACEOF 11103 11104 fi 11105 11106 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 11107 if test "$tcl_ok" = "all"; then 11108 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 11109echo "${ECHO_T}enabled symbols mem debugging" >&6; } 11110 else 11111 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 11112echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 11113 fi 11114 fi 11115 11116 11117#-------------------------------------------------------------------- 11118# For Unix/Tk builds, make sure that the X libraries/headers are found. 11119# This must be called after TEA_CONFIG_CFLAGS as it adjusts LIBS. 11120#-------------------------------------------------------------------- 11121 11122 11123 if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then 11124 11125 { echo "$as_me:$LINENO: checking for X" >&5 11126echo $ECHO_N "checking for X... $ECHO_C" >&6; } 11127 11128 11129# Check whether --with-x was given. 11130if test "${with_x+set}" = set; then 11131 withval=$with_x; 11132fi 11133 11134# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 11135if test "x$with_x" = xno; then 11136 # The user explicitly disabled X. 11137 have_x=disabled 11138else 11139 case $x_includes,$x_libraries in #( 11140 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 11141echo "$as_me: error: Cannot use X directory names containing '" >&2;} 11142 { (exit 1); exit 1; }; };; #( 11143 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 11144 echo $ECHO_N "(cached) $ECHO_C" >&6 11145else 11146 # One or both of the vars are not set, and there is no cached value. 11147ac_x_includes=no ac_x_libraries=no 11148rm -f -r conftest.dir 11149if mkdir conftest.dir; then 11150 cd conftest.dir 11151 cat >Imakefile <<'_ACEOF' 11152incroot: 11153 @echo incroot='${INCROOT}' 11154usrlibdir: 11155 @echo usrlibdir='${USRLIBDIR}' 11156libdir: 11157 @echo libdir='${LIBDIR}' 11158_ACEOF 11159 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 11160 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 11161 for ac_var in incroot usrlibdir libdir; do 11162 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 11163 done 11164 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 11165 for ac_extension in a so sl dylib la dll; do 11166 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 11167 test -f "$ac_im_libdir/libX11.$ac_extension"; then 11168 ac_im_usrlibdir=$ac_im_libdir; break 11169 fi 11170 done 11171 # Screen out bogus values from the imake configuration. They are 11172 # bogus both because they are the default anyway, and because 11173 # using them would break gcc on systems where it needs fixed includes. 11174 case $ac_im_incroot in 11175 /usr/include) ac_x_includes= ;; 11176 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 11177 esac 11178 case $ac_im_usrlibdir in 11179 /usr/lib | /lib) ;; 11180 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 11181 esac 11182 fi 11183 cd .. 11184 rm -f -r conftest.dir 11185fi 11186 11187# Standard set of common directories for X headers. 11188# Check X11 before X11Rn because it is often a symlink to the current release. 11189ac_x_header_dirs=' 11190/usr/X11/include 11191/usr/X11R6/include 11192/usr/X11R5/include 11193/usr/X11R4/include 11194 11195/usr/include/X11 11196/usr/include/X11R6 11197/usr/include/X11R5 11198/usr/include/X11R4 11199 11200/usr/local/X11/include 11201/usr/local/X11R6/include 11202/usr/local/X11R5/include 11203/usr/local/X11R4/include 11204 11205/usr/local/include/X11 11206/usr/local/include/X11R6 11207/usr/local/include/X11R5 11208/usr/local/include/X11R4 11209 11210/usr/X386/include 11211/usr/x386/include 11212/usr/XFree86/include/X11 11213 11214/usr/include 11215/usr/local/include 11216/usr/unsupported/include 11217/usr/athena/include 11218/usr/local/x11r5/include 11219/usr/lpp/Xamples/include 11220 11221/usr/openwin/include 11222/usr/openwin/share/include' 11223 11224if test "$ac_x_includes" = no; then 11225 # Guess where to find include files, by looking for Xlib.h. 11226 # First, try using that file with no special directory specified. 11227 cat >conftest.$ac_ext <<_ACEOF 11228/* confdefs.h. */ 11229_ACEOF 11230cat confdefs.h >>conftest.$ac_ext 11231cat >>conftest.$ac_ext <<_ACEOF 11232/* end confdefs.h. */ 11233#include <X11/Xlib.h> 11234_ACEOF 11235if { (ac_try="$ac_cpp conftest.$ac_ext" 11236case "(($ac_try" in 11237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11238 *) ac_try_echo=$ac_try;; 11239esac 11240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11242 ac_status=$? 11243 grep -v '^ *+' conftest.er1 >conftest.err 11244 rm -f conftest.er1 11245 cat conftest.err >&5 11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11247 (exit $ac_status); } >/dev/null && { 11248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11249 test ! -s conftest.err 11250 }; then 11251 # We can compile using X headers with no special include directory. 11252ac_x_includes= 11253else 11254 echo "$as_me: failed program was:" >&5 11255sed 's/^/| /' conftest.$ac_ext >&5 11256 11257 for ac_dir in $ac_x_header_dirs; do 11258 if test -r "$ac_dir/X11/Xlib.h"; then 11259 ac_x_includes=$ac_dir 11260 break 11261 fi 11262done 11263fi 11264 11265rm -f conftest.err conftest.$ac_ext 11266fi # $ac_x_includes = no 11267 11268if test "$ac_x_libraries" = no; then 11269 # Check for the libraries. 11270 # See if we find them without any special options. 11271 # Don't add to $LIBS permanently. 11272 ac_save_LIBS=$LIBS 11273 LIBS="-lX11 $LIBS" 11274 cat >conftest.$ac_ext <<_ACEOF 11275/* confdefs.h. */ 11276_ACEOF 11277cat confdefs.h >>conftest.$ac_ext 11278cat >>conftest.$ac_ext <<_ACEOF 11279/* end confdefs.h. */ 11280#include <X11/Xlib.h> 11281int 11282main () 11283{ 11284XrmInitialize () 11285 ; 11286 return 0; 11287} 11288_ACEOF 11289rm -f conftest.$ac_objext conftest$ac_exeext 11290if { (ac_try="$ac_link" 11291case "(($ac_try" in 11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11293 *) ac_try_echo=$ac_try;; 11294esac 11295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11296 (eval "$ac_link") 2>conftest.er1 11297 ac_status=$? 11298 grep -v '^ *+' conftest.er1 >conftest.err 11299 rm -f conftest.er1 11300 cat conftest.err >&5 11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11302 (exit $ac_status); } && { 11303 test -z "$ac_c_werror_flag" || 11304 test ! -s conftest.err 11305 } && test -s conftest$ac_exeext && 11306 $as_test_x conftest$ac_exeext; then 11307 LIBS=$ac_save_LIBS 11308# We can link X programs with no special library path. 11309ac_x_libraries= 11310else 11311 echo "$as_me: failed program was:" >&5 11312sed 's/^/| /' conftest.$ac_ext >&5 11313 11314 LIBS=$ac_save_LIBS 11315for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 11316do 11317 # Don't even attempt the hair of trying to link an X program! 11318 for ac_extension in a so sl dylib la dll; do 11319 if test -r "$ac_dir/libX11.$ac_extension"; then 11320 ac_x_libraries=$ac_dir 11321 break 2 11322 fi 11323 done 11324done 11325fi 11326 11327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11328 conftest$ac_exeext conftest.$ac_ext 11329fi # $ac_x_libraries = no 11330 11331case $ac_x_includes,$ac_x_libraries in #( 11332 no,* | *,no | *\'*) 11333 # Didn't find X, or a directory has "'" in its name. 11334 ac_cv_have_x="have_x=no";; #( 11335 *) 11336 # Record where we found X for the cache. 11337 ac_cv_have_x="have_x=yes\ 11338 ac_x_includes='$ac_x_includes'\ 11339 ac_x_libraries='$ac_x_libraries'" 11340esac 11341fi 11342;; #( 11343 *) have_x=yes;; 11344 esac 11345 eval "$ac_cv_have_x" 11346fi # $with_x != no 11347 11348if test "$have_x" != yes; then 11349 { echo "$as_me:$LINENO: result: $have_x" >&5 11350echo "${ECHO_T}$have_x" >&6; } 11351 no_x=yes 11352else 11353 # If each of the values was on the command line, it overrides each guess. 11354 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 11355 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 11356 # Update the cache value to reflect the command line values. 11357 ac_cv_have_x="have_x=yes\ 11358 ac_x_includes='$x_includes'\ 11359 ac_x_libraries='$x_libraries'" 11360 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 11361echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 11362fi 11363 11364 not_really_there="" 11365 if test "$no_x" = ""; then 11366 if test "$x_includes" = ""; then 11367 cat >conftest.$ac_ext <<_ACEOF 11368/* confdefs.h. */ 11369_ACEOF 11370cat confdefs.h >>conftest.$ac_ext 11371cat >>conftest.$ac_ext <<_ACEOF 11372/* end confdefs.h. */ 11373#include <X11/XIntrinsic.h> 11374_ACEOF 11375if { (ac_try="$ac_cpp conftest.$ac_ext" 11376case "(($ac_try" in 11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11378 *) ac_try_echo=$ac_try;; 11379esac 11380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11382 ac_status=$? 11383 grep -v '^ *+' conftest.er1 >conftest.err 11384 rm -f conftest.er1 11385 cat conftest.err >&5 11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11387 (exit $ac_status); } >/dev/null && { 11388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11389 test ! -s conftest.err 11390 }; then 11391 : 11392else 11393 echo "$as_me: failed program was:" >&5 11394sed 's/^/| /' conftest.$ac_ext >&5 11395 11396 not_really_there="yes" 11397fi 11398 11399rm -f conftest.err conftest.$ac_ext 11400 else 11401 if test ! -r $x_includes/X11/Intrinsic.h; then 11402 not_really_there="yes" 11403 fi 11404 fi 11405 fi 11406 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then 11407 { echo "$as_me:$LINENO: checking for X11 header files" >&5 11408echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 11409 found_xincludes="no" 11410 cat >conftest.$ac_ext <<_ACEOF 11411/* confdefs.h. */ 11412_ACEOF 11413cat confdefs.h >>conftest.$ac_ext 11414cat >>conftest.$ac_ext <<_ACEOF 11415/* end confdefs.h. */ 11416#include <X11/Intrinsic.h> 11417_ACEOF 11418if { (ac_try="$ac_cpp conftest.$ac_ext" 11419case "(($ac_try" in 11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11421 *) ac_try_echo=$ac_try;; 11422esac 11423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11425 ac_status=$? 11426 grep -v '^ *+' conftest.er1 >conftest.err 11427 rm -f conftest.er1 11428 cat conftest.err >&5 11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11430 (exit $ac_status); } >/dev/null && { 11431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11432 test ! -s conftest.err 11433 }; then 11434 found_xincludes="yes" 11435else 11436 echo "$as_me: failed program was:" >&5 11437sed 's/^/| /' conftest.$ac_ext >&5 11438 11439 found_xincludes="no" 11440fi 11441 11442rm -f conftest.err conftest.$ac_ext 11443 if test "$found_xincludes" = "no"; then 11444 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" 11445 for i in $dirs ; do 11446 if test -r $i/X11/Intrinsic.h; then 11447 { echo "$as_me:$LINENO: result: $i" >&5 11448echo "${ECHO_T}$i" >&6; } 11449 XINCLUDES=" -I$i" 11450 found_xincludes="yes" 11451 break 11452 fi 11453 done 11454 fi 11455 else 11456 if test "$x_includes" != ""; then 11457 XINCLUDES="-I$x_includes" 11458 found_xincludes="yes" 11459 fi 11460 fi 11461 if test "$found_xincludes" = "no"; then 11462 { echo "$as_me:$LINENO: result: couldn't find any!" >&5 11463echo "${ECHO_T}couldn't find any!" >&6; } 11464 fi 11465 11466 if test "$no_x" = yes; then 11467 { echo "$as_me:$LINENO: checking for X11 libraries" >&5 11468echo $ECHO_N "checking for X11 libraries... $ECHO_C" >&6; } 11469 XLIBSW=nope 11470 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" 11471 for i in $dirs ; do 11472 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then 11473 { echo "$as_me:$LINENO: result: $i" >&5 11474echo "${ECHO_T}$i" >&6; } 11475 XLIBSW="-L$i -lX11" 11476 x_libraries="$i" 11477 break 11478 fi 11479 done 11480 else 11481 if test "$x_libraries" = ""; then 11482 XLIBSW=-lX11 11483 else 11484 XLIBSW="-L$x_libraries -lX11" 11485 fi 11486 fi 11487 if test "$XLIBSW" = nope ; then 11488 { echo "$as_me:$LINENO: checking for XCreateWindow in -lXwindow" >&5 11489echo $ECHO_N "checking for XCreateWindow in -lXwindow... $ECHO_C" >&6; } 11490if test "${ac_cv_lib_Xwindow_XCreateWindow+set}" = set; then 11491 echo $ECHO_N "(cached) $ECHO_C" >&6 11492else 11493 ac_check_lib_save_LIBS=$LIBS 11494LIBS="-lXwindow $LIBS" 11495cat >conftest.$ac_ext <<_ACEOF 11496/* confdefs.h. */ 11497_ACEOF 11498cat confdefs.h >>conftest.$ac_ext 11499cat >>conftest.$ac_ext <<_ACEOF 11500/* end confdefs.h. */ 11501 11502/* Override any GCC internal prototype to avoid an error. 11503 Use char because int might match the return type of a GCC 11504 builtin and then its argument prototype would still apply. */ 11505#ifdef __cplusplus 11506extern "C" 11507#endif 11508char XCreateWindow (); 11509int 11510main () 11511{ 11512return XCreateWindow (); 11513 ; 11514 return 0; 11515} 11516_ACEOF 11517rm -f conftest.$ac_objext conftest$ac_exeext 11518if { (ac_try="$ac_link" 11519case "(($ac_try" in 11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11521 *) ac_try_echo=$ac_try;; 11522esac 11523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11524 (eval "$ac_link") 2>conftest.er1 11525 ac_status=$? 11526 grep -v '^ *+' conftest.er1 >conftest.err 11527 rm -f conftest.er1 11528 cat conftest.err >&5 11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11530 (exit $ac_status); } && { 11531 test -z "$ac_c_werror_flag" || 11532 test ! -s conftest.err 11533 } && test -s conftest$ac_exeext && 11534 $as_test_x conftest$ac_exeext; then 11535 ac_cv_lib_Xwindow_XCreateWindow=yes 11536else 11537 echo "$as_me: failed program was:" >&5 11538sed 's/^/| /' conftest.$ac_ext >&5 11539 11540 ac_cv_lib_Xwindow_XCreateWindow=no 11541fi 11542 11543rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11544 conftest$ac_exeext conftest.$ac_ext 11545LIBS=$ac_check_lib_save_LIBS 11546fi 11547{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5 11548echo "${ECHO_T}$ac_cv_lib_Xwindow_XCreateWindow" >&6; } 11549if test $ac_cv_lib_Xwindow_XCreateWindow = yes; then 11550 XLIBSW=-lXwindow 11551fi 11552 11553 fi 11554 if test "$XLIBSW" = nope ; then 11555 { echo "$as_me:$LINENO: result: could not find any! Using -lX11." >&5 11556echo "${ECHO_T}could not find any! Using -lX11." >&6; } 11557 XLIBSW=-lX11 11558 fi 11559 # TEA specific: 11560 if test x"${XLIBSW}" != x ; then 11561 PKG_LIBS="${PKG_LIBS} ${XLIBSW}" 11562 fi 11563 11564 fi 11565 11566 11567#-------------------------------------------------------------------- 11568# Everyone should be linking against the Tcl stub library. If you 11569# can't for some reason, remove this definition. If you aren't using 11570# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 11571# link against the non-stubbed Tcl library. 11572#-------------------------------------------------------------------- 11573 11574cat >>confdefs.h <<\_ACEOF 11575#define USE_TCL_STUBS 1 11576_ACEOF 11577 11578cat >>confdefs.h <<\_ACEOF 11579#define USE_TK_STUBS 1 11580_ACEOF 11581 11582 11583#-------------------------------------------------------------------- 11584# This macro generates a line to use when building a library. It 11585# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 11586# and TEA_LOAD_TCLCONFIG macros above. 11587#-------------------------------------------------------------------- 11588 11589 11590 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 11591 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 11592 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 11593 cat >conftest.$ac_ext <<_ACEOF 11594/* confdefs.h. */ 11595_ACEOF 11596cat confdefs.h >>conftest.$ac_ext 11597cat >>conftest.$ac_ext <<_ACEOF 11598/* end confdefs.h. */ 11599 11600#if defined(_MSC_VER) && _MSC_VER >= 1400 11601print("manifest needed") 11602#endif 11603 11604_ACEOF 11605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11606 $EGREP "manifest needed" >/dev/null 2>&1; then 11607 11608 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 11609 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 11610 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 11611 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 11612 11613 CLEANFILES="$CLEANFILES *.manifest" 11614 11615 11616fi 11617rm -f -r conftest* 11618 11619 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 11620 else 11621 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 11622 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 11623 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 11624 fi 11625 11626 if test "${SHARED_BUILD}" = "1" ; then 11627 MAKE_LIB="${MAKE_SHARED_LIB} " 11628 else 11629 MAKE_LIB="${MAKE_STATIC_LIB} " 11630 fi 11631 11632 #-------------------------------------------------------------------- 11633 # Shared libraries and static libraries have different names. 11634 # Use the double eval to make sure any variables in the suffix is 11635 # substituted. (@@@ Might not be necessary anymore) 11636 #-------------------------------------------------------------------- 11637 11638 if test "${TEA_PLATFORM}" = "windows" ; then 11639 if test "${SHARED_BUILD}" = "1" ; then 11640 # We force the unresolved linking of symbols that are really in 11641 # the private libraries of Tcl and Tk. 11642 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 11643 if test x"${TK_BIN_DIR}" != x ; then 11644 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 11645 fi 11646 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 11647 else 11648 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 11649 fi 11650 # Some packages build their own stubs libraries 11651 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 11652 if test "$GCC" = "yes"; then 11653 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 11654 fi 11655 # These aren't needed on Windows (either MSVC or gcc) 11656 RANLIB=: 11657 RANLIB_STUB=: 11658 else 11659 RANLIB_STUB="${RANLIB}" 11660 if test "${SHARED_BUILD}" = "1" ; then 11661 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 11662 if test x"${TK_BIN_DIR}" != x ; then 11663 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 11664 fi 11665 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 11666 RANLIB=: 11667 else 11668 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 11669 fi 11670 # Some packages build their own stubs libraries 11671 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 11672 fi 11673 11674 # These are escaped so that only CFLAGS is picked up at configure time. 11675 # The other values will be substituted at make time. 11676 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 11677 if test "${SHARED_BUILD}" = "1" ; then 11678 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 11679 fi 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690#-------------------------------------------------------------------- 11691# __CHANGE__ 11692# Add platform libs to LIBS or SHLIB_LD_LIBS as necessary. 11693#-------------------------------------------------------------------- 11694 11695if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 11696 11697 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\"" 11698 for i in $vars; do 11699 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 11700 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 11701 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 11702 fi 11703 PKG_LIBS="$PKG_LIBS $i" 11704 done 11705 11706 11707 11708 vars="\"`${CYGPATH} ${jpegtcl_STUB_LIB_PATH}`\"" 11709 for i in $vars; do 11710 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 11711 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 11712 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 11713 fi 11714 PKG_LIBS="$PKG_LIBS $i" 11715 done 11716 11717 11718else 11719 11720 vars="${tkimg_STUB_LIB_SPEC}" 11721 for i in $vars; do 11722 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 11723 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 11724 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 11725 fi 11726 PKG_LIBS="$PKG_LIBS $i" 11727 done 11728 11729 11730 11731 vars="${jpegtcl_STUB_LIB_SPEC}" 11732 for i in $vars; do 11733 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 11734 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 11735 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 11736 fi 11737 PKG_LIBS="$PKG_LIBS $i" 11738 done 11739 11740 11741fi 11742 11743#-------------------------------------------------------------------- 11744# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 11745# file during the install process. Don't run the TCLSH_PROG through 11746# ${CYGPATH} because it's being used directly by make. 11747# Require that we use a tclsh shell version 8.2 or later since earlier 11748# versions have bugs in the pkg_mkIndex routine. 11749# Add WISH as well if this is a Tk extension. 11750#-------------------------------------------------------------------- 11751 11752 11753 { echo "$as_me:$LINENO: checking for tclsh" >&5 11754echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 11755 if test -f "${TCL_BIN_DIR}/Makefile" ; then 11756 # tclConfig.sh is in Tcl build directory 11757 if test "${TEA_PLATFORM}" = "windows"; then 11758 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 11759 else 11760 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 11761 fi 11762 else 11763 # tclConfig.sh is in install location 11764 if test "${TEA_PLATFORM}" = "windows"; then 11765 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 11766 else 11767 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 11768 fi 11769 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 11770 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 11771 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 11772 for i in $list ; do 11773 if test -f "$i/${TCLSH_PROG}" ; then 11774 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 11775 break 11776 fi 11777 done 11778 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 11779 fi 11780 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 11781echo "${ECHO_T}${TCLSH_PROG}" >&6; } 11782 11783 11784 11785 { echo "$as_me:$LINENO: checking for wish" >&5 11786echo $ECHO_N "checking for wish... $ECHO_C" >&6; } 11787 if test -f "${TK_BIN_DIR}/Makefile" ; then 11788 # tkConfig.sh is in Tk build directory 11789 if test "${TEA_PLATFORM}" = "windows"; then 11790 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 11791 else 11792 WISH_PROG="${TK_BIN_DIR}/wish" 11793 fi 11794 else 11795 # tkConfig.sh is in install location 11796 if test "${TEA_PLATFORM}" = "windows"; then 11797 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 11798 else 11799 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}" 11800 fi 11801 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \ 11802 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \ 11803 `ls -d ${TK_PREFIX}/bin 2>/dev/null`" 11804 for i in $list ; do 11805 if test -f "$i/${WISH_PROG}" ; then 11806 REAL_TK_BIN_DIR="`cd "$i"; pwd`/" 11807 break 11808 fi 11809 done 11810 WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}" 11811 fi 11812 { echo "$as_me:$LINENO: result: ${WISH_PROG}" >&5 11813echo "${ECHO_T}${WISH_PROG}" >&6; } 11814 11815 11816 11817#-------------------------------------------------------------------- 11818# Finally, substitute all of the various values into the Makefile. 11819# You may alternatively have a special pkgIndex.tcl.in or other files 11820# which require substituting th AC variables in. Include these here. 11821#-------------------------------------------------------------------- 11822 11823ac_config_files="$ac_config_files Makefile" 11824 11825cat >confcache <<\_ACEOF 11826# This file is a shell script that caches the results of configure 11827# tests run on this system so they can be shared between configure 11828# scripts and configure runs, see configure's option --config-cache. 11829# It is not useful on other systems. If it contains results you don't 11830# want to keep, you may remove or edit it. 11831# 11832# config.status only pays attention to the cache file if you give it 11833# the --recheck option to rerun configure. 11834# 11835# `ac_cv_env_foo' variables (set or unset) will be overridden when 11836# loading this file, other *unset* `ac_cv_foo' will be assigned the 11837# following values. 11838 11839_ACEOF 11840 11841# The following way of writing the cache mishandles newlines in values, 11842# but we know of no workaround that is simple, portable, and efficient. 11843# So, we kill variables containing newlines. 11844# Ultrix sh set writes to stderr and can't be redirected directly, 11845# and sets the high bit in the cache file unless we assign to the vars. 11846( 11847 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11848 eval ac_val=\$$ac_var 11849 case $ac_val in #( 11850 *${as_nl}*) 11851 case $ac_var in #( 11852 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 11853echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 11854 esac 11855 case $ac_var in #( 11856 _ | IFS | as_nl) ;; #( 11857 *) $as_unset $ac_var ;; 11858 esac ;; 11859 esac 11860 done 11861 11862 (set) 2>&1 | 11863 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11864 *${as_nl}ac_space=\ *) 11865 # `set' does not quote correctly, so add quotes (double-quote 11866 # substitution turns \\\\ into \\, and sed turns \\ into \). 11867 sed -n \ 11868 "s/'/'\\\\''/g; 11869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11870 ;; #( 11871 *) 11872 # `set' quotes correctly as required by POSIX, so do not add quotes. 11873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11874 ;; 11875 esac | 11876 sort 11877) | 11878 sed ' 11879 /^ac_cv_env_/b end 11880 t clear 11881 :clear 11882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11883 t end 11884 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11885 :end' >>confcache 11886if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11887 if test -w "$cache_file"; then 11888 test "x$cache_file" != "x/dev/null" && 11889 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 11890echo "$as_me: updating cache $cache_file" >&6;} 11891 cat confcache >$cache_file 11892 else 11893 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 11894echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11895 fi 11896fi 11897rm -f confcache 11898 11899test "x$prefix" = xNONE && prefix=$ac_default_prefix 11900# Let make expand exec_prefix. 11901test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11902 11903# Transform confdefs.h into DEFS. 11904# Protect against shell expansion while executing Makefile rules. 11905# Protect against Makefile macro expansion. 11906# 11907# If the first sed substitution is executed (which looks for macros that 11908# take arguments), then branch to the quote section. Otherwise, 11909# look for a macro that doesn't take arguments. 11910ac_script=' 11911t clear 11912:clear 11913s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11914t quote 11915s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11916t quote 11917b any 11918:quote 11919s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11920s/\[/\\&/g 11921s/\]/\\&/g 11922s/\$/$$/g 11923H 11924:any 11925${ 11926 g 11927 s/^\n// 11928 s/\n/ /g 11929 p 11930} 11931' 11932DEFS=`sed -n "$ac_script" confdefs.h` 11933 11934 11935ac_libobjs= 11936ac_ltlibobjs= 11937for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11938 # 1. Remove the extension, and $U if already installed. 11939 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11940 ac_i=`echo "$ac_i" | sed "$ac_script"` 11941 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11942 # will be set to the directory where LIBOBJS objects are built. 11943 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11944 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 11945done 11946LIBOBJS=$ac_libobjs 11947 11948LTLIBOBJS=$ac_ltlibobjs 11949 11950 11951CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 11952 11953: ${CONFIG_STATUS=./config.status} 11954ac_clean_files_save=$ac_clean_files 11955ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11956{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11957echo "$as_me: creating $CONFIG_STATUS" >&6;} 11958cat >$CONFIG_STATUS <<_ACEOF 11959#! $SHELL 11960# Generated by $as_me. 11961# Run this file to recreate the current configuration. 11962# Compiler output produced by configure, useful for debugging 11963# configure, is in config.log if it exists. 11964 11965debug=false 11966ac_cs_recheck=false 11967ac_cs_silent=false 11968SHELL=\${CONFIG_SHELL-$SHELL} 11969_ACEOF 11970 11971cat >>$CONFIG_STATUS <<\_ACEOF 11972## --------------------- ## 11973## M4sh Initialization. ## 11974## --------------------- ## 11975 11976# Be more Bourne compatible 11977DUALCASE=1; export DUALCASE # for MKS sh 11978if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11979 emulate sh 11980 NULLCMD=: 11981 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11982 # is contrary to our usage. Disable this feature. 11983 alias -g '${1+"$@"}'='"$@"' 11984 setopt NO_GLOB_SUBST 11985else 11986 case `(set -o) 2>/dev/null` in 11987 *posix*) set -o posix ;; 11988esac 11989 11990fi 11991 11992 11993 11994 11995# PATH needs CR 11996# Avoid depending upon Character Ranges. 11997as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11998as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11999as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12000as_cr_digits='0123456789' 12001as_cr_alnum=$as_cr_Letters$as_cr_digits 12002 12003# The user is always right. 12004if test "${PATH_SEPARATOR+set}" != set; then 12005 echo "#! /bin/sh" >conf$$.sh 12006 echo "exit 0" >>conf$$.sh 12007 chmod +x conf$$.sh 12008 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12009 PATH_SEPARATOR=';' 12010 else 12011 PATH_SEPARATOR=: 12012 fi 12013 rm -f conf$$.sh 12014fi 12015 12016# Support unset when possible. 12017if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12018 as_unset=unset 12019else 12020 as_unset=false 12021fi 12022 12023 12024# IFS 12025# We need space, tab and new line, in precisely that order. Quoting is 12026# there to prevent editors from complaining about space-tab. 12027# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12028# splitting by setting IFS to empty value.) 12029as_nl=' 12030' 12031IFS=" "" $as_nl" 12032 12033# Find who we are. Look in the path if we contain no directory separator. 12034case $0 in 12035 *[\\/]* ) as_myself=$0 ;; 12036 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12037for as_dir in $PATH 12038do 12039 IFS=$as_save_IFS 12040 test -z "$as_dir" && as_dir=. 12041 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12042done 12043IFS=$as_save_IFS 12044 12045 ;; 12046esac 12047# We did not find ourselves, most probably we were run as `sh COMMAND' 12048# in which case we are not to be found in the path. 12049if test "x$as_myself" = x; then 12050 as_myself=$0 12051fi 12052if test ! -f "$as_myself"; then 12053 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12054 { (exit 1); exit 1; } 12055fi 12056 12057# Work around bugs in pre-3.0 UWIN ksh. 12058for as_var in ENV MAIL MAILPATH 12059do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 12060done 12061PS1='$ ' 12062PS2='> ' 12063PS4='+ ' 12064 12065# NLS nuisances. 12066for as_var in \ 12067 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 12068 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 12069 LC_TELEPHONE LC_TIME 12070do 12071 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 12072 eval $as_var=C; export $as_var 12073 else 12074 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 12075 fi 12076done 12077 12078# Required to use basename. 12079if expr a : '\(a\)' >/dev/null 2>&1 && 12080 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12081 as_expr=expr 12082else 12083 as_expr=false 12084fi 12085 12086if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12087 as_basename=basename 12088else 12089 as_basename=false 12090fi 12091 12092 12093# Name of the executable. 12094as_me=`$as_basename -- "$0" || 12095$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12096 X"$0" : 'X\(//\)$' \| \ 12097 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12098echo X/"$0" | 12099 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12100 s//\1/ 12101 q 12102 } 12103 /^X\/\(\/\/\)$/{ 12104 s//\1/ 12105 q 12106 } 12107 /^X\/\(\/\).*/{ 12108 s//\1/ 12109 q 12110 } 12111 s/.*/./; q'` 12112 12113# CDPATH. 12114$as_unset CDPATH 12115 12116 12117 12118 as_lineno_1=$LINENO 12119 as_lineno_2=$LINENO 12120 test "x$as_lineno_1" != "x$as_lineno_2" && 12121 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 12122 12123 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 12124 # uniformly replaced by the line number. The first 'sed' inserts a 12125 # line-number line after each line using $LINENO; the second 'sed' 12126 # does the real work. The second script uses 'N' to pair each 12127 # line-number line with the line containing $LINENO, and appends 12128 # trailing '-' during substitution so that $LINENO is not a special 12129 # case at line end. 12130 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 12131 # scripts with optimization help from Paolo Bonzini. Blame Lee 12132 # E. McMahon (1931-1989) for sed's syntax. :-) 12133 sed -n ' 12134 p 12135 /[$]LINENO/= 12136 ' <$as_myself | 12137 sed ' 12138 s/[$]LINENO.*/&-/ 12139 t lineno 12140 b 12141 :lineno 12142 N 12143 :loop 12144 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 12145 t loop 12146 s/-\n.*// 12147 ' >$as_me.lineno && 12148 chmod +x "$as_me.lineno" || 12149 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 12150 { (exit 1); exit 1; }; } 12151 12152 # Don't try to exec as it changes $[0], causing all sort of problems 12153 # (the dirname of $[0] is not the place where we might find the 12154 # original and so on. Autoconf is especially sensitive to this). 12155 . "./$as_me.lineno" 12156 # Exit status is that of the last command. 12157 exit 12158} 12159 12160 12161if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12162 as_dirname=dirname 12163else 12164 as_dirname=false 12165fi 12166 12167ECHO_C= ECHO_N= ECHO_T= 12168case `echo -n x` in 12169-n*) 12170 case `echo 'x\c'` in 12171 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12172 *) ECHO_C='\c';; 12173 esac;; 12174*) 12175 ECHO_N='-n';; 12176esac 12177 12178if expr a : '\(a\)' >/dev/null 2>&1 && 12179 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12180 as_expr=expr 12181else 12182 as_expr=false 12183fi 12184 12185rm -f conf$$ conf$$.exe conf$$.file 12186if test -d conf$$.dir; then 12187 rm -f conf$$.dir/conf$$.file 12188else 12189 rm -f conf$$.dir 12190 mkdir conf$$.dir 12191fi 12192echo >conf$$.file 12193if ln -s conf$$.file conf$$ 2>/dev/null; then 12194 as_ln_s='ln -s' 12195 # ... but there are two gotchas: 12196 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12197 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12198 # In both cases, we have to default to `cp -p'. 12199 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12200 as_ln_s='cp -p' 12201elif ln conf$$.file conf$$ 2>/dev/null; then 12202 as_ln_s=ln 12203else 12204 as_ln_s='cp -p' 12205fi 12206rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12207rmdir conf$$.dir 2>/dev/null 12208 12209if mkdir -p . 2>/dev/null; then 12210 as_mkdir_p=: 12211else 12212 test -d ./-p && rmdir ./-p 12213 as_mkdir_p=false 12214fi 12215 12216if test -x / >/dev/null 2>&1; then 12217 as_test_x='test -x' 12218else 12219 if ls -dL / >/dev/null 2>&1; then 12220 as_ls_L_option=L 12221 else 12222 as_ls_L_option= 12223 fi 12224 as_test_x=' 12225 eval sh -c '\'' 12226 if test -d "$1"; then 12227 test -d "$1/."; 12228 else 12229 case $1 in 12230 -*)set "./$1";; 12231 esac; 12232 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 12233 ???[sx]*):;;*)false;;esac;fi 12234 '\'' sh 12235 ' 12236fi 12237as_executable_p=$as_test_x 12238 12239# Sed expression to map a string onto a valid CPP name. 12240as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12241 12242# Sed expression to map a string onto a valid variable name. 12243as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12244 12245 12246exec 6>&1 12247 12248# Save the log message, to keep $[0] and so on meaningful, and to 12249# report actual input values of CONFIG_FILES etc. instead of their 12250# values after options handling. 12251ac_log=" 12252This file was extended by tkimgjpeg $as_me 1.4, which was 12253generated by GNU Autoconf 2.61. Invocation command line was 12254 12255 CONFIG_FILES = $CONFIG_FILES 12256 CONFIG_HEADERS = $CONFIG_HEADERS 12257 CONFIG_LINKS = $CONFIG_LINKS 12258 CONFIG_COMMANDS = $CONFIG_COMMANDS 12259 $ $0 $@ 12260 12261on `(hostname || uname -n) 2>/dev/null | sed 1q` 12262" 12263 12264_ACEOF 12265 12266cat >>$CONFIG_STATUS <<_ACEOF 12267# Files that config.status was made for. 12268config_files="$ac_config_files" 12269 12270_ACEOF 12271 12272cat >>$CONFIG_STATUS <<\_ACEOF 12273ac_cs_usage="\ 12274\`$as_me' instantiates files from templates according to the 12275current configuration. 12276 12277Usage: $0 [OPTIONS] [FILE]... 12278 12279 -h, --help print this help, then exit 12280 -V, --version print version number and configuration settings, then exit 12281 -q, --quiet do not print progress messages 12282 -d, --debug don't remove temporary files 12283 --recheck update $as_me by reconfiguring in the same conditions 12284 --file=FILE[:TEMPLATE] 12285 instantiate the configuration file FILE 12286 12287Configuration files: 12288$config_files 12289 12290Report bugs to <bug-autoconf@gnu.org>." 12291 12292_ACEOF 12293cat >>$CONFIG_STATUS <<_ACEOF 12294ac_cs_version="\\ 12295tkimgjpeg config.status 1.4 12296configured by $0, generated by GNU Autoconf 2.61, 12297 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 12298 12299Copyright (C) 2006 Free Software Foundation, Inc. 12300This config.status script is free software; the Free Software Foundation 12301gives unlimited permission to copy, distribute and modify it." 12302 12303ac_pwd='$ac_pwd' 12304srcdir='$srcdir' 12305INSTALL='$INSTALL' 12306_ACEOF 12307 12308cat >>$CONFIG_STATUS <<\_ACEOF 12309# If no file are specified by the user, then we need to provide default 12310# value. By we need to know if files were specified by the user. 12311ac_need_defaults=: 12312while test $# != 0 12313do 12314 case $1 in 12315 --*=*) 12316 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12317 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12318 ac_shift=: 12319 ;; 12320 *) 12321 ac_option=$1 12322 ac_optarg=$2 12323 ac_shift=shift 12324 ;; 12325 esac 12326 12327 case $ac_option in 12328 # Handling of the options. 12329 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12330 ac_cs_recheck=: ;; 12331 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12332 echo "$ac_cs_version"; exit ;; 12333 --debug | --debu | --deb | --de | --d | -d ) 12334 debug=: ;; 12335 --file | --fil | --fi | --f ) 12336 $ac_shift 12337 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 12338 ac_need_defaults=false;; 12339 --he | --h | --help | --hel | -h ) 12340 echo "$ac_cs_usage"; exit ;; 12341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12342 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12343 ac_cs_silent=: ;; 12344 12345 # This is an error. 12346 -*) { echo "$as_me: error: unrecognized option: $1 12347Try \`$0 --help' for more information." >&2 12348 { (exit 1); exit 1; }; } ;; 12349 12350 *) ac_config_targets="$ac_config_targets $1" 12351 ac_need_defaults=false ;; 12352 12353 esac 12354 shift 12355done 12356 12357ac_configure_extra_args= 12358 12359if $ac_cs_silent; then 12360 exec 6>/dev/null 12361 ac_configure_extra_args="$ac_configure_extra_args --silent" 12362fi 12363 12364_ACEOF 12365cat >>$CONFIG_STATUS <<_ACEOF 12366if \$ac_cs_recheck; then 12367 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 12368 CONFIG_SHELL=$SHELL 12369 export CONFIG_SHELL 12370 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12371fi 12372 12373_ACEOF 12374cat >>$CONFIG_STATUS <<\_ACEOF 12375exec 5>>config.log 12376{ 12377 echo 12378 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12379## Running $as_me. ## 12380_ASBOX 12381 echo "$ac_log" 12382} >&5 12383 12384_ACEOF 12385cat >>$CONFIG_STATUS <<_ACEOF 12386_ACEOF 12387 12388cat >>$CONFIG_STATUS <<\_ACEOF 12389 12390# Handling of arguments. 12391for ac_config_target in $ac_config_targets 12392do 12393 case $ac_config_target in 12394 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12395 12396 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12397echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12398 { (exit 1); exit 1; }; };; 12399 esac 12400done 12401 12402 12403# If the user did not use the arguments to specify the items to instantiate, 12404# then the envvar interface is used. Set only those that are not. 12405# We use the long form for the default assignment because of an extremely 12406# bizarre bug on SunOS 4.1.3. 12407if $ac_need_defaults; then 12408 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12409fi 12410 12411# Have a temporary directory for convenience. Make it in the build tree 12412# simply because there is no reason against having it here, and in addition, 12413# creating and moving files from /tmp can sometimes cause problems. 12414# Hook for its removal unless debugging. 12415# Note that there is a small window in which the directory will not be cleaned: 12416# after its creation but before its name has been assigned to `$tmp'. 12417$debug || 12418{ 12419 tmp= 12420 trap 'exit_status=$? 12421 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12422' 0 12423 trap '{ (exit 1); exit 1; }' 1 2 13 15 12424} 12425# Create a (secure) tmp directory for tmp files. 12426 12427{ 12428 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12429 test -n "$tmp" && test -d "$tmp" 12430} || 12431{ 12432 tmp=./conf$$-$RANDOM 12433 (umask 077 && mkdir "$tmp") 12434} || 12435{ 12436 echo "$me: cannot create a temporary directory in ." >&2 12437 { (exit 1); exit 1; } 12438} 12439 12440# 12441# Set up the sed scripts for CONFIG_FILES section. 12442# 12443 12444# No need to generate the scripts if there are no CONFIG_FILES. 12445# This happens for instance when ./config.status config.h 12446if test -n "$CONFIG_FILES"; then 12447 12448_ACEOF 12449 12450 12451 12452ac_delim='%!_!# ' 12453for ac_last_try in false false false false false :; do 12454 cat >conf$$subs.sed <<_ACEOF 12455SHELL!$SHELL$ac_delim 12456PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 12457PACKAGE_NAME!$PACKAGE_NAME$ac_delim 12458PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 12459PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 12460PACKAGE_STRING!$PACKAGE_STRING$ac_delim 12461PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 12462exec_prefix!$exec_prefix$ac_delim 12463prefix!$prefix$ac_delim 12464program_transform_name!$program_transform_name$ac_delim 12465bindir!$bindir$ac_delim 12466sbindir!$sbindir$ac_delim 12467libexecdir!$libexecdir$ac_delim 12468datarootdir!$datarootdir$ac_delim 12469datadir!$datadir$ac_delim 12470sysconfdir!$sysconfdir$ac_delim 12471sharedstatedir!$sharedstatedir$ac_delim 12472localstatedir!$localstatedir$ac_delim 12473includedir!$includedir$ac_delim 12474oldincludedir!$oldincludedir$ac_delim 12475docdir!$docdir$ac_delim 12476infodir!$infodir$ac_delim 12477htmldir!$htmldir$ac_delim 12478dvidir!$dvidir$ac_delim 12479pdfdir!$pdfdir$ac_delim 12480psdir!$psdir$ac_delim 12481libdir!$libdir$ac_delim 12482localedir!$localedir$ac_delim 12483mandir!$mandir$ac_delim 12484DEFS!$DEFS$ac_delim 12485ECHO_C!$ECHO_C$ac_delim 12486ECHO_N!$ECHO_N$ac_delim 12487ECHO_T!$ECHO_T$ac_delim 12488LIBS!$LIBS$ac_delim 12489build_alias!$build_alias$ac_delim 12490host_alias!$host_alias$ac_delim 12491target_alias!$target_alias$ac_delim 12492CYGPATH!$CYGPATH$ac_delim 12493EXEEXT!$EXEEXT$ac_delim 12494PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 12495PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 12496PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 12497PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 12498PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 12499PKG_HEADERS!$PKG_HEADERS$ac_delim 12500PKG_INCLUDES!$PKG_INCLUDES$ac_delim 12501PKG_LIBS!$PKG_LIBS$ac_delim 12502PKG_CFLAGS!$PKG_CFLAGS$ac_delim 12503PACKAGE_TCLNAME!$PACKAGE_TCLNAME$ac_delim 12504TCL_VERSION!$TCL_VERSION$ac_delim 12505TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 12506TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 12507TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 12508TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 12509TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 12510TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 12511TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 12512TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 12513TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 12514CLEANFILES!$CLEANFILES$ac_delim 12515TCL_LIBS!$TCL_LIBS$ac_delim 12516TCL_DEFS!$TCL_DEFS$ac_delim 12517TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 12518TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 12519TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 12520TK_VERSION!$TK_VERSION$ac_delim 12521TK_BIN_DIR!$TK_BIN_DIR$ac_delim 12522TK_SRC_DIR!$TK_SRC_DIR$ac_delim 12523TK_LIB_FILE!$TK_LIB_FILE$ac_delim 12524TK_LIB_FLAG!$TK_LIB_FLAG$ac_delim 12525TK_LIB_SPEC!$TK_LIB_SPEC$ac_delim 12526TK_STUB_LIB_FILE!$TK_STUB_LIB_FILE$ac_delim 12527TK_STUB_LIB_FLAG!$TK_STUB_LIB_FLAG$ac_delim 12528TK_STUB_LIB_SPEC!$TK_STUB_LIB_SPEC$ac_delim 12529TK_LIBS!$TK_LIBS$ac_delim 12530TK_XINCLUDES!$TK_XINCLUDES$ac_delim 12531CC!$CC$ac_delim 12532CFLAGS!$CFLAGS$ac_delim 12533LDFLAGS!$LDFLAGS$ac_delim 12534CPPFLAGS!$CPPFLAGS$ac_delim 12535ac_ct_CC!$ac_ct_CC$ac_delim 12536OBJEXT!$OBJEXT$ac_delim 12537CPP!$CPP$ac_delim 12538INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 12539INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12540INSTALL_DATA!$INSTALL_DATA$ac_delim 12541SET_MAKE!$SET_MAKE$ac_delim 12542RANLIB!$RANLIB$ac_delim 12543GREP!$GREP$ac_delim 12544EGREP!$EGREP$ac_delim 12545MATH_LIBS!$MATH_LIBS$ac_delim 12546tkimg_VERSION!$tkimg_VERSION$ac_delim 12547tkimg_BIN_DIR!$tkimg_BIN_DIR$ac_delim 12548tkimg_SRC_DIR!$tkimg_SRC_DIR$ac_delim 12549tkimg_LIB_FILE!$tkimg_LIB_FILE$ac_delim 12550tkimg_LIB_SPEC!$tkimg_LIB_SPEC$ac_delim 12551tkimg_STUB_LIB_FILE!$tkimg_STUB_LIB_FILE$ac_delim 12552_ACEOF 12553 12554 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12555 break 12556 elif $ac_last_try; then 12557 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12558echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12559 { (exit 1); exit 1; }; } 12560 else 12561 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12562 fi 12563done 12564 12565ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 12566if test -n "$ac_eof"; then 12567 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 12568 ac_eof=`expr $ac_eof + 1` 12569fi 12570 12571cat >>$CONFIG_STATUS <<_ACEOF 12572cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12573/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12574_ACEOF 12575sed ' 12576s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12577s/^/s,@/; s/!/@,|#_!!_#|/ 12578:n 12579t n 12580s/'"$ac_delim"'$/,g/; t 12581s/$/\\/; p 12582N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 12583' >>$CONFIG_STATUS <conf$$subs.sed 12584rm -f conf$$subs.sed 12585cat >>$CONFIG_STATUS <<_ACEOF 12586CEOF$ac_eof 12587_ACEOF 12588 12589 12590ac_delim='%!_!# ' 12591for ac_last_try in false false false false false :; do 12592 cat >conf$$subs.sed <<_ACEOF 12593tkimg_STUB_LIB_SPEC!$tkimg_STUB_LIB_SPEC$ac_delim 12594tkimg_STUB_LIB_PATH!$tkimg_STUB_LIB_PATH$ac_delim 12595jpegtcl_VERSION!$jpegtcl_VERSION$ac_delim 12596jpegtcl_BIN_DIR!$jpegtcl_BIN_DIR$ac_delim 12597jpegtcl_SRC_DIR!$jpegtcl_SRC_DIR$ac_delim 12598jpegtcl_LIB_FILE!$jpegtcl_LIB_FILE$ac_delim 12599jpegtcl_LIB_SPEC!$jpegtcl_LIB_SPEC$ac_delim 12600jpegtcl_STUB_LIB_FILE!$jpegtcl_STUB_LIB_FILE$ac_delim 12601jpegtcl_STUB_LIB_SPEC!$jpegtcl_STUB_LIB_SPEC$ac_delim 12602jpegtcl_STUB_LIB_PATH!$jpegtcl_STUB_LIB_PATH$ac_delim 12603tkimg_SRC_PATH!$tkimg_SRC_PATH$ac_delim 12604tkimg_BUILD_PATH!$tkimg_BUILD_PATH$ac_delim 12605jpegtcl_SRC_PATH!$jpegtcl_SRC_PATH$ac_delim 12606jpegtcl_BUILD_PATH!$jpegtcl_BUILD_PATH$ac_delim 12607PKG_SOURCES!$PKG_SOURCES$ac_delim 12608PKG_OBJECTS!$PKG_OBJECTS$ac_delim 12609TCL_INCLUDES!$TCL_INCLUDES$ac_delim 12610TK_INCLUDES!$TK_INCLUDES$ac_delim 12611TCL_THREADS!$TCL_THREADS$ac_delim 12612SHARED_BUILD!$SHARED_BUILD$ac_delim 12613AR!$AR$ac_delim 12614CELIB_DIR!$CELIB_DIR$ac_delim 12615CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 12616CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 12617CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 12618STLIB_LD!$STLIB_LD$ac_delim 12619SHLIB_LD!$SHLIB_LD$ac_delim 12620SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 12621SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 12622LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 12623CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 12624LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 12625TCL_DBGX!$TCL_DBGX$ac_delim 12626XMKMF!$XMKMF$ac_delim 12627MAKE_LIB!$MAKE_LIB$ac_delim 12628MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 12629MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 12630MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 12631RANLIB_STUB!$RANLIB_STUB$ac_delim 12632VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 12633VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 12634TCLSH_PROG!$TCLSH_PROG$ac_delim 12635WISH_PROG!$WISH_PROG$ac_delim 12636LIBOBJS!$LIBOBJS$ac_delim 12637LTLIBOBJS!$LTLIBOBJS$ac_delim 12638_ACEOF 12639 12640 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then 12641 break 12642 elif $ac_last_try; then 12643 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12644echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12645 { (exit 1); exit 1; }; } 12646 else 12647 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12648 fi 12649done 12650 12651ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 12652if test -n "$ac_eof"; then 12653 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 12654 ac_eof=`expr $ac_eof + 1` 12655fi 12656 12657cat >>$CONFIG_STATUS <<_ACEOF 12658cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 12659/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12660_ACEOF 12661sed ' 12662s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12663s/^/s,@/; s/!/@,|#_!!_#|/ 12664:n 12665t n 12666s/'"$ac_delim"'$/,g/; t 12667s/$/\\/; p 12668N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 12669' >>$CONFIG_STATUS <conf$$subs.sed 12670rm -f conf$$subs.sed 12671cat >>$CONFIG_STATUS <<_ACEOF 12672:end 12673s/|#_!!_#|//g 12674CEOF$ac_eof 12675_ACEOF 12676 12677 12678# VPATH may cause trouble with some makes, so we remove $(srcdir), 12679# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12680# trailing colons and then remove the whole line if VPATH becomes empty 12681# (actually we leave an empty line to preserve line numbers). 12682if test "x$srcdir" = x.; then 12683 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12684s/:*\$(srcdir):*/:/ 12685s/:*\${srcdir}:*/:/ 12686s/:*@srcdir@:*/:/ 12687s/^\([^=]*=[ ]*\):*/\1/ 12688s/:*$// 12689s/^[^=]*=[ ]*$// 12690}' 12691fi 12692 12693cat >>$CONFIG_STATUS <<\_ACEOF 12694fi # test -n "$CONFIG_FILES" 12695 12696 12697for ac_tag in :F $CONFIG_FILES 12698do 12699 case $ac_tag in 12700 :[FHLC]) ac_mode=$ac_tag; continue;; 12701 esac 12702 case $ac_mode$ac_tag in 12703 :[FHL]*:*);; 12704 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 12705echo "$as_me: error: Invalid tag $ac_tag." >&2;} 12706 { (exit 1); exit 1; }; };; 12707 :[FH]-) ac_tag=-:-;; 12708 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12709 esac 12710 ac_save_IFS=$IFS 12711 IFS=: 12712 set x $ac_tag 12713 IFS=$ac_save_IFS 12714 shift 12715 ac_file=$1 12716 shift 12717 12718 case $ac_mode in 12719 :L) ac_source=$1;; 12720 :[FH]) 12721 ac_file_inputs= 12722 for ac_f 12723 do 12724 case $ac_f in 12725 -) ac_f="$tmp/stdin";; 12726 *) # Look for the file first in the build tree, then in the source tree 12727 # (if the path is not absolute). The absolute path cannot be DOS-style, 12728 # because $ac_f cannot contain `:'. 12729 test -f "$ac_f" || 12730 case $ac_f in 12731 [\\/$]*) false;; 12732 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12733 esac || 12734 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 12735echo "$as_me: error: cannot find input file: $ac_f" >&2;} 12736 { (exit 1); exit 1; }; };; 12737 esac 12738 ac_file_inputs="$ac_file_inputs $ac_f" 12739 done 12740 12741 # Let's still pretend it is `configure' which instantiates (i.e., don't 12742 # use $as_me), people would be surprised to read: 12743 # /* config.h. Generated by config.status. */ 12744 configure_input="Generated from "`IFS=: 12745 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 12746 if test x"$ac_file" != x-; then 12747 configure_input="$ac_file. $configure_input" 12748 { echo "$as_me:$LINENO: creating $ac_file" >&5 12749echo "$as_me: creating $ac_file" >&6;} 12750 fi 12751 12752 case $ac_tag in 12753 *:-:* | *:-) cat >"$tmp/stdin";; 12754 esac 12755 ;; 12756 esac 12757 12758 ac_dir=`$as_dirname -- "$ac_file" || 12759$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12760 X"$ac_file" : 'X\(//\)[^/]' \| \ 12761 X"$ac_file" : 'X\(//\)$' \| \ 12762 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12763echo X"$ac_file" | 12764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12765 s//\1/ 12766 q 12767 } 12768 /^X\(\/\/\)[^/].*/{ 12769 s//\1/ 12770 q 12771 } 12772 /^X\(\/\/\)$/{ 12773 s//\1/ 12774 q 12775 } 12776 /^X\(\/\).*/{ 12777 s//\1/ 12778 q 12779 } 12780 s/.*/./; q'` 12781 { as_dir="$ac_dir" 12782 case $as_dir in #( 12783 -*) as_dir=./$as_dir;; 12784 esac 12785 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 12786 as_dirs= 12787 while :; do 12788 case $as_dir in #( 12789 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 12790 *) as_qdir=$as_dir;; 12791 esac 12792 as_dirs="'$as_qdir' $as_dirs" 12793 as_dir=`$as_dirname -- "$as_dir" || 12794$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12795 X"$as_dir" : 'X\(//\)[^/]' \| \ 12796 X"$as_dir" : 'X\(//\)$' \| \ 12797 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12798echo X"$as_dir" | 12799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12800 s//\1/ 12801 q 12802 } 12803 /^X\(\/\/\)[^/].*/{ 12804 s//\1/ 12805 q 12806 } 12807 /^X\(\/\/\)$/{ 12808 s//\1/ 12809 q 12810 } 12811 /^X\(\/\).*/{ 12812 s//\1/ 12813 q 12814 } 12815 s/.*/./; q'` 12816 test -d "$as_dir" && break 12817 done 12818 test -z "$as_dirs" || eval "mkdir $as_dirs" 12819 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 12820echo "$as_me: error: cannot create directory $as_dir" >&2;} 12821 { (exit 1); exit 1; }; }; } 12822 ac_builddir=. 12823 12824case "$ac_dir" in 12825.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12826*) 12827 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12828 # A ".." for each directory in $ac_dir_suffix. 12829 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 12830 case $ac_top_builddir_sub in 12831 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12832 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12833 esac ;; 12834esac 12835ac_abs_top_builddir=$ac_pwd 12836ac_abs_builddir=$ac_pwd$ac_dir_suffix 12837# for backward compatibility: 12838ac_top_builddir=$ac_top_build_prefix 12839 12840case $srcdir in 12841 .) # We are building in place. 12842 ac_srcdir=. 12843 ac_top_srcdir=$ac_top_builddir_sub 12844 ac_abs_top_srcdir=$ac_pwd ;; 12845 [\\/]* | ?:[\\/]* ) # Absolute name. 12846 ac_srcdir=$srcdir$ac_dir_suffix; 12847 ac_top_srcdir=$srcdir 12848 ac_abs_top_srcdir=$srcdir ;; 12849 *) # Relative name. 12850 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12851 ac_top_srcdir=$ac_top_build_prefix$srcdir 12852 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12853esac 12854ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12855 12856 12857 case $ac_mode in 12858 :F) 12859 # 12860 # CONFIG_FILE 12861 # 12862 12863 case $INSTALL in 12864 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12865 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12866 esac 12867_ACEOF 12868 12869cat >>$CONFIG_STATUS <<\_ACEOF 12870# If the template does not know about datarootdir, expand it. 12871# FIXME: This hack should be removed a few years after 2.60. 12872ac_datarootdir_hack=; ac_datarootdir_seen= 12873 12874case `sed -n '/datarootdir/ { 12875 p 12876 q 12877} 12878/@datadir@/p 12879/@docdir@/p 12880/@infodir@/p 12881/@localedir@/p 12882/@mandir@/p 12883' $ac_file_inputs` in 12884*datarootdir*) ac_datarootdir_seen=yes;; 12885*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12886 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12887echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12888_ACEOF 12889cat >>$CONFIG_STATUS <<_ACEOF 12890 ac_datarootdir_hack=' 12891 s&@datadir@&$datadir&g 12892 s&@docdir@&$docdir&g 12893 s&@infodir@&$infodir&g 12894 s&@localedir@&$localedir&g 12895 s&@mandir@&$mandir&g 12896 s&\\\${datarootdir}&$datarootdir&g' ;; 12897esac 12898_ACEOF 12899 12900# Neutralize VPATH when `$srcdir' = `.'. 12901# Shell code in configure.ac might set extrasub. 12902# FIXME: do we really want to maintain this feature? 12903cat >>$CONFIG_STATUS <<_ACEOF 12904 sed "$ac_vpsub 12905$extrasub 12906_ACEOF 12907cat >>$CONFIG_STATUS <<\_ACEOF 12908:t 12909/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12910s&@configure_input@&$configure_input&;t t 12911s&@top_builddir@&$ac_top_builddir_sub&;t t 12912s&@srcdir@&$ac_srcdir&;t t 12913s&@abs_srcdir@&$ac_abs_srcdir&;t t 12914s&@top_srcdir@&$ac_top_srcdir&;t t 12915s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12916s&@builddir@&$ac_builddir&;t t 12917s&@abs_builddir@&$ac_abs_builddir&;t t 12918s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12919s&@INSTALL@&$ac_INSTALL&;t t 12920$ac_datarootdir_hack 12921" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12922 12923test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12924 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12925 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12926 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12927which seems to be undefined. Please make sure it is defined." >&5 12928echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12929which seems to be undefined. Please make sure it is defined." >&2;} 12930 12931 rm -f "$tmp/stdin" 12932 case $ac_file in 12933 -) cat "$tmp/out"; rm -f "$tmp/out";; 12934 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 12935 esac 12936 ;; 12937 12938 12939 12940 esac 12941 12942done # for ac_tag 12943 12944 12945{ (exit 0); exit 0; } 12946_ACEOF 12947chmod +x $CONFIG_STATUS 12948ac_clean_files=$ac_clean_files_save 12949 12950 12951# configure is writing to config.log, and then calls config.status. 12952# config.status does its own redirection, appending to config.log. 12953# Unfortunately, on DOS this fails, as config.log is still kept open 12954# by configure, so config.status won't be able to write to it; its 12955# output is simply discarded. So we exec the FD to /dev/null, 12956# effectively closing config.log, so it can be properly (re)opened and 12957# appended to by config.status. When coming back to configure, we 12958# need to make the FD available again. 12959if test "$no_create" != yes; then 12960 ac_cs_success=: 12961 ac_config_status_args= 12962 test "$silent" = yes && 12963 ac_config_status_args="$ac_config_status_args --quiet" 12964 exec 5>/dev/null 12965 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12966 exec 5>>config.log 12967 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12968 # would make configure fail if this is the last instruction. 12969 $ac_cs_success || { (exit 1); exit 1; } 12970fi 12971 12972 12973#-------------------------------------------------------------------- 12974