1#! /bin/sh 2# From configure.in Id: configure.in 267 2010-06-04 09:58:55Z nijtmans . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61 for tkimgraw 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='tkimgraw' 575PACKAGE_TARNAME='tkimgraw' 576PACKAGE_VERSION='1.4' 577PACKAGE_STRING='tkimgraw 1.4' 578PACKAGE_BUGREPORT='' 579 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='SHELL 617PATH_SEPARATOR 618PACKAGE_NAME 619PACKAGE_TARNAME 620PACKAGE_VERSION 621PACKAGE_STRING 622PACKAGE_BUGREPORT 623exec_prefix 624prefix 625program_transform_name 626bindir 627sbindir 628libexecdir 629datarootdir 630datadir 631sysconfdir 632sharedstatedir 633localstatedir 634includedir 635oldincludedir 636docdir 637infodir 638htmldir 639dvidir 640pdfdir 641psdir 642libdir 643localedir 644mandir 645DEFS 646ECHO_C 647ECHO_N 648ECHO_T 649LIBS 650build_alias 651host_alias 652target_alias 653CYGPATH 654EXEEXT 655PKG_LIB_FILE 656PKG_STUB_LIB_FILE 657PKG_STUB_SOURCES 658PKG_STUB_OBJECTS 659PKG_TCL_SOURCES 660PKG_HEADERS 661PKG_INCLUDES 662PKG_LIBS 663PKG_CFLAGS 664PACKAGE_TCLNAME 665TCL_VERSION 666TCL_PATCH_LEVEL 667TCL_BIN_DIR 668TCL_SRC_DIR 669TCL_LIB_FILE 670TCL_LIB_FLAG 671TCL_LIB_SPEC 672TCL_STUB_LIB_FILE 673TCL_STUB_LIB_FLAG 674TCL_STUB_LIB_SPEC 675CLEANFILES 676TCL_LIBS 677TCL_DEFS 678TCL_EXTRA_CFLAGS 679TCL_LD_FLAGS 680TCL_SHLIB_LD_LIBS 681TK_VERSION 682TK_BIN_DIR 683TK_SRC_DIR 684TK_LIB_FILE 685TK_LIB_FLAG 686TK_LIB_SPEC 687TK_STUB_LIB_FILE 688TK_STUB_LIB_FLAG 689TK_STUB_LIB_SPEC 690TK_LIBS 691TK_XINCLUDES 692CC 693CFLAGS 694LDFLAGS 695CPPFLAGS 696ac_ct_CC 697OBJEXT 698CPP 699INSTALL_PROGRAM 700INSTALL_SCRIPT 701INSTALL_DATA 702SET_MAKE 703RANLIB 704GREP 705EGREP 706MATH_LIBS 707tkimg_VERSION 708tkimg_BIN_DIR 709tkimg_SRC_DIR 710tkimg_LIB_FILE 711tkimg_LIB_SPEC 712tkimg_STUB_LIB_FILE 713tkimg_STUB_LIB_SPEC 714tkimg_STUB_LIB_PATH 715tkimg_SRC_PATH 716tkimg_BUILD_PATH 717PKG_SOURCES 718PKG_OBJECTS 719TCL_INCLUDES 720TK_INCLUDES 721TCL_THREADS 722SHARED_BUILD 723AR 724CELIB_DIR 725CFLAGS_DEBUG 726CFLAGS_OPTIMIZE 727CFLAGS_WARNING 728STLIB_LD 729SHLIB_LD 730SHLIB_LD_LIBS 731SHLIB_CFLAGS 732LD_LIBRARY_PATH_VAR 733CFLAGS_DEFAULT 734LDFLAGS_DEFAULT 735TCL_DBGX 736XMKMF 737MAKE_LIB 738MAKE_SHARED_LIB 739MAKE_STATIC_LIB 740MAKE_STUB_LIB 741RANLIB_STUB 742VC_MANIFEST_EMBED_DLL 743VC_MANIFEST_EMBED_EXE 744TCLSH_PROG 745WISH_PROG 746LIBOBJS 747LTLIBOBJS' 748ac_subst_files='' 749 ac_precious_vars='build_alias 750host_alias 751target_alias 752CC 753CFLAGS 754LDFLAGS 755LIBS 756CPPFLAGS 757CPP 758XMKMF' 759 760 761# Initialize some variables set by options. 762ac_init_help= 763ac_init_version=false 764# The variables have the same names as the options, with 765# dashes changed to underlines. 766cache_file=/dev/null 767exec_prefix=NONE 768no_create= 769no_recursion= 770prefix=NONE 771program_prefix=NONE 772program_suffix=NONE 773program_transform_name=s,x,x, 774silent= 775site= 776srcdir= 777verbose= 778x_includes=NONE 779x_libraries=NONE 780 781# Installation directory options. 782# These are left unexpanded so users can "make install exec_prefix=/foo" 783# and all the variables that are supposed to be based on exec_prefix 784# by default will actually change. 785# Use braces instead of parens because sh, perl, etc. also accept them. 786# (The list follows the same order as the GNU Coding Standards.) 787bindir='${exec_prefix}/bin' 788sbindir='${exec_prefix}/sbin' 789libexecdir='${exec_prefix}/libexec' 790datarootdir='${prefix}/share' 791datadir='${datarootdir}' 792sysconfdir='${prefix}/etc' 793sharedstatedir='${prefix}/com' 794localstatedir='${prefix}/var' 795includedir='${prefix}/include' 796oldincludedir='/usr/include' 797docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 798infodir='${datarootdir}/info' 799htmldir='${docdir}' 800dvidir='${docdir}' 801pdfdir='${docdir}' 802psdir='${docdir}' 803libdir='${exec_prefix}/lib' 804localedir='${datarootdir}/locale' 805mandir='${datarootdir}/man' 806 807ac_prev= 808ac_dashdash= 809for ac_option 810do 811 # If the previous option needs an argument, assign it. 812 if test -n "$ac_prev"; then 813 eval $ac_prev=\$ac_option 814 ac_prev= 815 continue 816 fi 817 818 case $ac_option in 819 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 820 *) ac_optarg=yes ;; 821 esac 822 823 # Accept the important Cygnus configure options, so we can diagnose typos. 824 825 case $ac_dashdash$ac_option in 826 --) 827 ac_dashdash=yes ;; 828 829 -bindir | --bindir | --bindi | --bind | --bin | --bi) 830 ac_prev=bindir ;; 831 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 832 bindir=$ac_optarg ;; 833 834 -build | --build | --buil | --bui | --bu) 835 ac_prev=build_alias ;; 836 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 837 build_alias=$ac_optarg ;; 838 839 -cache-file | --cache-file | --cache-fil | --cache-fi \ 840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 841 ac_prev=cache_file ;; 842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 844 cache_file=$ac_optarg ;; 845 846 --config-cache | -C) 847 cache_file=config.cache ;; 848 849 -datadir | --datadir | --datadi | --datad) 850 ac_prev=datadir ;; 851 -datadir=* | --datadir=* | --datadi=* | --datad=*) 852 datadir=$ac_optarg ;; 853 854 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 855 | --dataroo | --dataro | --datar) 856 ac_prev=datarootdir ;; 857 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 858 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 859 datarootdir=$ac_optarg ;; 860 861 -disable-* | --disable-*) 862 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 863 # Reject names that are not valid shell variable names. 864 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 865 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 866 { (exit 1); exit 1; }; } 867 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 868 eval enable_$ac_feature=no ;; 869 870 -docdir | --docdir | --docdi | --doc | --do) 871 ac_prev=docdir ;; 872 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 873 docdir=$ac_optarg ;; 874 875 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 876 ac_prev=dvidir ;; 877 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 878 dvidir=$ac_optarg ;; 879 880 -enable-* | --enable-*) 881 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 882 # Reject names that are not valid shell variable names. 883 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 884 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 885 { (exit 1); exit 1; }; } 886 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 887 eval enable_$ac_feature=\$ac_optarg ;; 888 889 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 890 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 891 | --exec | --exe | --ex) 892 ac_prev=exec_prefix ;; 893 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 894 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 895 | --exec=* | --exe=* | --ex=*) 896 exec_prefix=$ac_optarg ;; 897 898 -gas | --gas | --ga | --g) 899 # Obsolete; use --with-gas. 900 with_gas=yes ;; 901 902 -help | --help | --hel | --he | -h) 903 ac_init_help=long ;; 904 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 905 ac_init_help=recursive ;; 906 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 907 ac_init_help=short ;; 908 909 -host | --host | --hos | --ho) 910 ac_prev=host_alias ;; 911 -host=* | --host=* | --hos=* | --ho=*) 912 host_alias=$ac_optarg ;; 913 914 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 915 ac_prev=htmldir ;; 916 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 917 | --ht=*) 918 htmldir=$ac_optarg ;; 919 920 -includedir | --includedir | --includedi | --included | --include \ 921 | --includ | --inclu | --incl | --inc) 922 ac_prev=includedir ;; 923 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 924 | --includ=* | --inclu=* | --incl=* | --inc=*) 925 includedir=$ac_optarg ;; 926 927 -infodir | --infodir | --infodi | --infod | --info | --inf) 928 ac_prev=infodir ;; 929 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 930 infodir=$ac_optarg ;; 931 932 -libdir | --libdir | --libdi | --libd) 933 ac_prev=libdir ;; 934 -libdir=* | --libdir=* | --libdi=* | --libd=*) 935 libdir=$ac_optarg ;; 936 937 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 938 | --libexe | --libex | --libe) 939 ac_prev=libexecdir ;; 940 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 941 | --libexe=* | --libex=* | --libe=*) 942 libexecdir=$ac_optarg ;; 943 944 -localedir | --localedir | --localedi | --localed | --locale) 945 ac_prev=localedir ;; 946 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 947 localedir=$ac_optarg ;; 948 949 -localstatedir | --localstatedir | --localstatedi | --localstated \ 950 | --localstate | --localstat | --localsta | --localst | --locals) 951 ac_prev=localstatedir ;; 952 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 953 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 954 localstatedir=$ac_optarg ;; 955 956 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 957 ac_prev=mandir ;; 958 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 959 mandir=$ac_optarg ;; 960 961 -nfp | --nfp | --nf) 962 # Obsolete; use --without-fp. 963 with_fp=no ;; 964 965 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 966 | --no-cr | --no-c | -n) 967 no_create=yes ;; 968 969 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 970 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 971 no_recursion=yes ;; 972 973 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 974 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 975 | --oldin | --oldi | --old | --ol | --o) 976 ac_prev=oldincludedir ;; 977 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 978 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 979 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 980 oldincludedir=$ac_optarg ;; 981 982 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 983 ac_prev=prefix ;; 984 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 985 prefix=$ac_optarg ;; 986 987 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 988 | --program-pre | --program-pr | --program-p) 989 ac_prev=program_prefix ;; 990 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 991 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 992 program_prefix=$ac_optarg ;; 993 994 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 995 | --program-suf | --program-su | --program-s) 996 ac_prev=program_suffix ;; 997 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 998 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 999 program_suffix=$ac_optarg ;; 1000 1001 -program-transform-name | --program-transform-name \ 1002 | --program-transform-nam | --program-transform-na \ 1003 | --program-transform-n | --program-transform- \ 1004 | --program-transform | --program-transfor \ 1005 | --program-transfo | --program-transf \ 1006 | --program-trans | --program-tran \ 1007 | --progr-tra | --program-tr | --program-t) 1008 ac_prev=program_transform_name ;; 1009 -program-transform-name=* | --program-transform-name=* \ 1010 | --program-transform-nam=* | --program-transform-na=* \ 1011 | --program-transform-n=* | --program-transform-=* \ 1012 | --program-transform=* | --program-transfor=* \ 1013 | --program-transfo=* | --program-transf=* \ 1014 | --program-trans=* | --program-tran=* \ 1015 | --progr-tra=* | --program-tr=* | --program-t=*) 1016 program_transform_name=$ac_optarg ;; 1017 1018 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1019 ac_prev=pdfdir ;; 1020 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1021 pdfdir=$ac_optarg ;; 1022 1023 -psdir | --psdir | --psdi | --psd | --ps) 1024 ac_prev=psdir ;; 1025 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1026 psdir=$ac_optarg ;; 1027 1028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1029 | -silent | --silent | --silen | --sile | --sil) 1030 silent=yes ;; 1031 1032 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1033 ac_prev=sbindir ;; 1034 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1035 | --sbi=* | --sb=*) 1036 sbindir=$ac_optarg ;; 1037 1038 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1039 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1040 | --sharedst | --shareds | --shared | --share | --shar \ 1041 | --sha | --sh) 1042 ac_prev=sharedstatedir ;; 1043 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1044 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1045 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1046 | --sha=* | --sh=*) 1047 sharedstatedir=$ac_optarg ;; 1048 1049 -site | --site | --sit) 1050 ac_prev=site ;; 1051 -site=* | --site=* | --sit=*) 1052 site=$ac_optarg ;; 1053 1054 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1055 ac_prev=srcdir ;; 1056 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1057 srcdir=$ac_optarg ;; 1058 1059 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1060 | --syscon | --sysco | --sysc | --sys | --sy) 1061 ac_prev=sysconfdir ;; 1062 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1063 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1064 sysconfdir=$ac_optarg ;; 1065 1066 -target | --target | --targe | --targ | --tar | --ta | --t) 1067 ac_prev=target_alias ;; 1068 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1069 target_alias=$ac_optarg ;; 1070 1071 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1072 verbose=yes ;; 1073 1074 -version | --version | --versio | --versi | --vers | -V) 1075 ac_init_version=: ;; 1076 1077 -with-* | --with-*) 1078 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1079 # Reject names that are not valid shell variable names. 1080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1081 { echo "$as_me: error: invalid package name: $ac_package" >&2 1082 { (exit 1); exit 1; }; } 1083 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1084 eval with_$ac_package=\$ac_optarg ;; 1085 1086 -without-* | --without-*) 1087 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1088 # Reject names that are not valid shell variable names. 1089 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1090 { echo "$as_me: error: invalid package name: $ac_package" >&2 1091 { (exit 1); exit 1; }; } 1092 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1093 eval with_$ac_package=no ;; 1094 1095 --x) 1096 # Obsolete; use --with-x. 1097 with_x=yes ;; 1098 1099 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1100 | --x-incl | --x-inc | --x-in | --x-i) 1101 ac_prev=x_includes ;; 1102 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1103 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1104 x_includes=$ac_optarg ;; 1105 1106 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1107 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1108 ac_prev=x_libraries ;; 1109 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1110 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1111 x_libraries=$ac_optarg ;; 1112 1113 -*) { echo "$as_me: error: unrecognized option: $ac_option 1114Try \`$0 --help' for more information." >&2 1115 { (exit 1); exit 1; }; } 1116 ;; 1117 1118 *=*) 1119 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1120 # Reject names that are not valid shell variable names. 1121 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1122 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1123 { (exit 1); exit 1; }; } 1124 eval $ac_envvar=\$ac_optarg 1125 export $ac_envvar ;; 1126 1127 *) 1128 # FIXME: should be removed in autoconf 3.0. 1129 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1130 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1131 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1132 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1133 ;; 1134 1135 esac 1136done 1137 1138if test -n "$ac_prev"; then 1139 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1140 { echo "$as_me: error: missing argument to $ac_option" >&2 1141 { (exit 1); exit 1; }; } 1142fi 1143 1144# Be sure to have absolute directory names. 1145for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1146 datadir sysconfdir sharedstatedir localstatedir includedir \ 1147 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1148 libdir localedir mandir 1149do 1150 eval ac_val=\$$ac_var 1151 case $ac_val in 1152 [\\/$]* | ?:[\\/]* ) continue;; 1153 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1154 esac 1155 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1156 { (exit 1); exit 1; }; } 1157done 1158 1159# There might be people who depend on the old broken behavior: `$host' 1160# used to hold the argument of --host etc. 1161# FIXME: To remove some day. 1162build=$build_alias 1163host=$host_alias 1164target=$target_alias 1165 1166# FIXME: To remove some day. 1167if test "x$host_alias" != x; then 1168 if test "x$build_alias" = x; then 1169 cross_compiling=maybe 1170 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1171 If a cross compiler is detected then cross compile mode will be used." >&2 1172 elif test "x$build_alias" != "x$host_alias"; then 1173 cross_compiling=yes 1174 fi 1175fi 1176 1177ac_tool_prefix= 1178test -n "$host_alias" && ac_tool_prefix=$host_alias- 1179 1180test "$silent" = yes && exec 6>/dev/null 1181 1182 1183ac_pwd=`pwd` && test -n "$ac_pwd" && 1184ac_ls_di=`ls -di .` && 1185ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1186 { echo "$as_me: error: Working directory cannot be determined" >&2 1187 { (exit 1); exit 1; }; } 1188test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1189 { echo "$as_me: error: pwd does not report name of working directory" >&2 1190 { (exit 1); exit 1; }; } 1191 1192 1193# Find the source files, if location was not specified. 1194if test -z "$srcdir"; then 1195 ac_srcdir_defaulted=yes 1196 # Try the directory containing this script, then the parent directory. 1197 ac_confdir=`$as_dirname -- "$0" || 1198$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1199 X"$0" : 'X\(//\)[^/]' \| \ 1200 X"$0" : 'X\(//\)$' \| \ 1201 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1202echo X"$0" | 1203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1204 s//\1/ 1205 q 1206 } 1207 /^X\(\/\/\)[^/].*/{ 1208 s//\1/ 1209 q 1210 } 1211 /^X\(\/\/\)$/{ 1212 s//\1/ 1213 q 1214 } 1215 /^X\(\/\).*/{ 1216 s//\1/ 1217 q 1218 } 1219 s/.*/./; q'` 1220 srcdir=$ac_confdir 1221 if test ! -r "$srcdir/$ac_unique_file"; then 1222 srcdir=.. 1223 fi 1224else 1225 ac_srcdir_defaulted=no 1226fi 1227if test ! -r "$srcdir/$ac_unique_file"; then 1228 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1229 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1230 { (exit 1); exit 1; }; } 1231fi 1232ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1233ac_abs_confdir=`( 1234 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1235 { (exit 1); exit 1; }; } 1236 pwd)` 1237# When building in place, set srcdir=. 1238if test "$ac_abs_confdir" = "$ac_pwd"; then 1239 srcdir=. 1240fi 1241# Remove unnecessary trailing slashes from srcdir. 1242# Double slashes in file names in object file debugging info 1243# mess up M-x gdb in Emacs. 1244case $srcdir in 1245*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1246esac 1247for ac_var in $ac_precious_vars; do 1248 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1249 eval ac_env_${ac_var}_value=\$${ac_var} 1250 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1251 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1252done 1253 1254# 1255# Report the --help message. 1256# 1257if test "$ac_init_help" = "long"; then 1258 # Omit some internal or obsolete options to make the list less imposing. 1259 # This message is too long to be a string in the A/UX 3.1 sh. 1260 cat <<_ACEOF 1261\`configure' configures tkimgraw 1.4 to adapt to many kinds of systems. 1262 1263Usage: $0 [OPTION]... [VAR=VALUE]... 1264 1265To assign environment variables (e.g., CC, CFLAGS...), specify them as 1266VAR=VALUE. See below for descriptions of some of the useful variables. 1267 1268Defaults for the options are specified in brackets. 1269 1270Configuration: 1271 -h, --help display this help and exit 1272 --help=short display options specific to this package 1273 --help=recursive display the short help of all the included packages 1274 -V, --version display version information and exit 1275 -q, --quiet, --silent do not print \`checking...' messages 1276 --cache-file=FILE cache test results in FILE [disabled] 1277 -C, --config-cache alias for \`--cache-file=config.cache' 1278 -n, --no-create do not create output files 1279 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1280 1281Installation directories: 1282 --prefix=PREFIX install architecture-independent files in PREFIX 1283 [$ac_default_prefix] 1284 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1285 [PREFIX] 1286 1287By default, \`make install' will install all the files in 1288\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1289an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1290for instance \`--prefix=\$HOME'. 1291 1292For better control, use the options below. 1293 1294Fine tuning of the installation directories: 1295 --bindir=DIR user executables [EPREFIX/bin] 1296 --sbindir=DIR system admin executables [EPREFIX/sbin] 1297 --libexecdir=DIR program executables [EPREFIX/libexec] 1298 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1299 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1300 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1301 --libdir=DIR object code libraries [EPREFIX/lib] 1302 --includedir=DIR C header files [PREFIX/include] 1303 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1304 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1305 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1306 --infodir=DIR info documentation [DATAROOTDIR/info] 1307 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1308 --mandir=DIR man documentation [DATAROOTDIR/man] 1309 --docdir=DIR documentation root [DATAROOTDIR/doc/tkimgraw] 1310 --htmldir=DIR html documentation [DOCDIR] 1311 --dvidir=DIR dvi documentation [DOCDIR] 1312 --pdfdir=DIR pdf documentation [DOCDIR] 1313 --psdir=DIR ps documentation [DOCDIR] 1314_ACEOF 1315 1316 cat <<\_ACEOF 1317 1318X features: 1319 --x-includes=DIR X include files are in DIR 1320 --x-libraries=DIR X library files are in DIR 1321_ACEOF 1322fi 1323 1324if test -n "$ac_init_help"; then 1325 case $ac_init_help in 1326 short | recursive ) echo "Configuration of tkimgraw 1.4:";; 1327 esac 1328 cat <<\_ACEOF 1329 1330Optional Features: 1331 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1332 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1333 --enable-threads build with threads 1334 --enable-shared build and link with shared libraries (default: on) 1335 --enable-64bit enable 64bit support (default: off) 1336 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1337 --disable-rpath disable rpath support (default: on) 1338 --enable-wince enable Win/CE support (where applicable) 1339 --enable-symbols build with debugging symbols (default: off) 1340 1341Optional Packages: 1342 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1343 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1344 --with-tcl directory containing tcl configuration 1345 (tclConfig.sh) 1346 --with-tk directory containing tk configuration (tkConfig.sh) 1347 --with-tkimg directory containing tkimg configuration (tkimgConfig.sh) 1348 --with-tclinclude directory containing the public Tcl header files 1349 --with-tkinclude directory containing the public Tk header files 1350 --with-celib=DIR use Windows/CE support library from DIR 1351 --with-x use the X Window System 1352 1353Some influential environment variables: 1354 CC C compiler command 1355 CFLAGS C compiler flags 1356 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1357 nonstandard directory <lib dir> 1358 LIBS libraries to pass to the linker, e.g. -l<library> 1359 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1360 you have headers in a nonstandard directory <include dir> 1361 CPP C preprocessor 1362 XMKMF Path to xmkmf, Makefile generator for X Window System 1363 1364Use these variables to override the choices made by `configure' or to help 1365it to find libraries and programs with nonstandard names/locations. 1366 1367_ACEOF 1368ac_status=$? 1369fi 1370 1371if test "$ac_init_help" = "recursive"; then 1372 # If there are subdirs, report their specific --help. 1373 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1374 test -d "$ac_dir" || continue 1375 ac_builddir=. 1376 1377case "$ac_dir" in 1378.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1379*) 1380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1381 # A ".." for each directory in $ac_dir_suffix. 1382 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1383 case $ac_top_builddir_sub in 1384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1386 esac ;; 1387esac 1388ac_abs_top_builddir=$ac_pwd 1389ac_abs_builddir=$ac_pwd$ac_dir_suffix 1390# for backward compatibility: 1391ac_top_builddir=$ac_top_build_prefix 1392 1393case $srcdir in 1394 .) # We are building in place. 1395 ac_srcdir=. 1396 ac_top_srcdir=$ac_top_builddir_sub 1397 ac_abs_top_srcdir=$ac_pwd ;; 1398 [\\/]* | ?:[\\/]* ) # Absolute name. 1399 ac_srcdir=$srcdir$ac_dir_suffix; 1400 ac_top_srcdir=$srcdir 1401 ac_abs_top_srcdir=$srcdir ;; 1402 *) # Relative name. 1403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1404 ac_top_srcdir=$ac_top_build_prefix$srcdir 1405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1406esac 1407ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1408 1409 cd "$ac_dir" || { ac_status=$?; continue; } 1410 # Check for guested configure. 1411 if test -f "$ac_srcdir/configure.gnu"; then 1412 echo && 1413 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1414 elif test -f "$ac_srcdir/configure"; then 1415 echo && 1416 $SHELL "$ac_srcdir/configure" --help=recursive 1417 else 1418 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1419 fi || ac_status=$? 1420 cd "$ac_pwd" || { ac_status=$?; break; } 1421 done 1422fi 1423 1424test -n "$ac_init_help" && exit $ac_status 1425if $ac_init_version; then 1426 cat <<\_ACEOF 1427tkimgraw configure 1.4 1428generated by GNU Autoconf 2.61 1429 1430Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14312002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1432This configure script is free software; the Free Software Foundation 1433gives unlimited permission to copy, distribute and modify it. 1434_ACEOF 1435 exit 1436fi 1437cat >config.log <<_ACEOF 1438This file contains any messages produced by compilers while 1439running configure, to aid debugging if configure makes a mistake. 1440 1441It was created by tkimgraw $as_me 1.4, which was 1442generated by GNU Autoconf 2.61. Invocation command line was 1443 1444 $ $0 $@ 1445 1446_ACEOF 1447exec 5>>config.log 1448{ 1449cat <<_ASUNAME 1450## --------- ## 1451## Platform. ## 1452## --------- ## 1453 1454hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1455uname -m = `(uname -m) 2>/dev/null || echo unknown` 1456uname -r = `(uname -r) 2>/dev/null || echo unknown` 1457uname -s = `(uname -s) 2>/dev/null || echo unknown` 1458uname -v = `(uname -v) 2>/dev/null || echo unknown` 1459 1460/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1461/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1462 1463/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1464/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1465/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1466/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1467/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1468/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1469/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1470 1471_ASUNAME 1472 1473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1474for as_dir in $PATH 1475do 1476 IFS=$as_save_IFS 1477 test -z "$as_dir" && as_dir=. 1478 echo "PATH: $as_dir" 1479done 1480IFS=$as_save_IFS 1481 1482} >&5 1483 1484cat >&5 <<_ACEOF 1485 1486 1487## ----------- ## 1488## Core tests. ## 1489## ----------- ## 1490 1491_ACEOF 1492 1493 1494# Keep a trace of the command line. 1495# Strip out --no-create and --no-recursion so they do not pile up. 1496# Strip out --silent because we don't want to record it for future runs. 1497# Also quote any args containing shell meta-characters. 1498# Make two passes to allow for proper duplicate-argument suppression. 1499ac_configure_args= 1500ac_configure_args0= 1501ac_configure_args1= 1502ac_must_keep_next=false 1503for ac_pass in 1 2 1504do 1505 for ac_arg 1506 do 1507 case $ac_arg in 1508 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1510 | -silent | --silent | --silen | --sile | --sil) 1511 continue ;; 1512 *\'*) 1513 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1514 esac 1515 case $ac_pass in 1516 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1517 2) 1518 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1519 if test $ac_must_keep_next = true; then 1520 ac_must_keep_next=false # Got value, back to normal. 1521 else 1522 case $ac_arg in 1523 *=* | --config-cache | -C | -disable-* | --disable-* \ 1524 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1525 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1526 | -with-* | --with-* | -without-* | --without-* | --x) 1527 case "$ac_configure_args0 " in 1528 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1529 esac 1530 ;; 1531 -* ) ac_must_keep_next=true ;; 1532 esac 1533 fi 1534 ac_configure_args="$ac_configure_args '$ac_arg'" 1535 ;; 1536 esac 1537 done 1538done 1539$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1540$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1541 1542# When interrupted or exit'd, cleanup temporary files, and complete 1543# config.log. We remove comments because anyway the quotes in there 1544# would cause problems or look ugly. 1545# WARNING: Use '\'' to represent an apostrophe within the trap. 1546# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1547trap 'exit_status=$? 1548 # Save into config.log some information that might help in debugging. 1549 { 1550 echo 1551 1552 cat <<\_ASBOX 1553## ---------------- ## 1554## Cache variables. ## 1555## ---------------- ## 1556_ASBOX 1557 echo 1558 # The following way of writing the cache mishandles newlines in values, 1559( 1560 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1561 eval ac_val=\$$ac_var 1562 case $ac_val in #( 1563 *${as_nl}*) 1564 case $ac_var in #( 1565 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1566echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1567 esac 1568 case $ac_var in #( 1569 _ | IFS | as_nl) ;; #( 1570 *) $as_unset $ac_var ;; 1571 esac ;; 1572 esac 1573 done 1574 (set) 2>&1 | 1575 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1576 *${as_nl}ac_space=\ *) 1577 sed -n \ 1578 "s/'\''/'\''\\\\'\'''\''/g; 1579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1580 ;; #( 1581 *) 1582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1583 ;; 1584 esac | 1585 sort 1586) 1587 echo 1588 1589 cat <<\_ASBOX 1590## ----------------- ## 1591## Output variables. ## 1592## ----------------- ## 1593_ASBOX 1594 echo 1595 for ac_var in $ac_subst_vars 1596 do 1597 eval ac_val=\$$ac_var 1598 case $ac_val in 1599 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1600 esac 1601 echo "$ac_var='\''$ac_val'\''" 1602 done | sort 1603 echo 1604 1605 if test -n "$ac_subst_files"; then 1606 cat <<\_ASBOX 1607## ------------------- ## 1608## File substitutions. ## 1609## ------------------- ## 1610_ASBOX 1611 echo 1612 for ac_var in $ac_subst_files 1613 do 1614 eval ac_val=\$$ac_var 1615 case $ac_val in 1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1617 esac 1618 echo "$ac_var='\''$ac_val'\''" 1619 done | sort 1620 echo 1621 fi 1622 1623 if test -s confdefs.h; then 1624 cat <<\_ASBOX 1625## ----------- ## 1626## confdefs.h. ## 1627## ----------- ## 1628_ASBOX 1629 echo 1630 cat confdefs.h 1631 echo 1632 fi 1633 test "$ac_signal" != 0 && 1634 echo "$as_me: caught signal $ac_signal" 1635 echo "$as_me: exit $exit_status" 1636 } >&5 1637 rm -f core *.core core.conftest.* && 1638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1639 exit $exit_status 1640' 0 1641for ac_signal in 1 2 13 15; do 1642 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1643done 1644ac_signal=0 1645 1646# confdefs.h avoids OS command line length limits that DEFS can exceed. 1647rm -f -r conftest* confdefs.h 1648 1649# Predefined preprocessor variables. 1650 1651cat >>confdefs.h <<_ACEOF 1652#define PACKAGE_NAME "$PACKAGE_NAME" 1653_ACEOF 1654 1655 1656cat >>confdefs.h <<_ACEOF 1657#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1658_ACEOF 1659 1660 1661cat >>confdefs.h <<_ACEOF 1662#define PACKAGE_VERSION "$PACKAGE_VERSION" 1663_ACEOF 1664 1665 1666cat >>confdefs.h <<_ACEOF 1667#define PACKAGE_STRING "$PACKAGE_STRING" 1668_ACEOF 1669 1670 1671cat >>confdefs.h <<_ACEOF 1672#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1673_ACEOF 1674 1675 1676# Let the site file select an alternate cache file if it wants to. 1677# Prefer explicitly selected file to automatically selected ones. 1678if test -n "$CONFIG_SITE"; then 1679 set x "$CONFIG_SITE" 1680elif test "x$prefix" != xNONE; then 1681 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1682else 1683 set x "$ac_default_prefix/share/config.site" \ 1684 "$ac_default_prefix/etc/config.site" 1685fi 1686shift 1687for ac_site_file 1688do 1689 if test -r "$ac_site_file"; then 1690 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1691echo "$as_me: loading site script $ac_site_file" >&6;} 1692 sed 's/^/| /' "$ac_site_file" >&5 1693 . "$ac_site_file" 1694 fi 1695done 1696 1697if test -r "$cache_file"; then 1698 # Some versions of bash will fail to source /dev/null (special 1699 # files actually), so we avoid doing that. 1700 if test -f "$cache_file"; then 1701 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1702echo "$as_me: loading cache $cache_file" >&6;} 1703 case $cache_file in 1704 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1705 *) . "./$cache_file";; 1706 esac 1707 fi 1708else 1709 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1710echo "$as_me: creating cache $cache_file" >&6;} 1711 >$cache_file 1712fi 1713 1714# Check that the precious variables saved in the cache have kept the same 1715# value. 1716ac_cache_corrupted=false 1717for ac_var in $ac_precious_vars; do 1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1719 eval ac_new_set=\$ac_env_${ac_var}_set 1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1721 eval ac_new_val=\$ac_env_${ac_var}_value 1722 case $ac_old_set,$ac_new_set in 1723 set,) 1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1725echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1726 ac_cache_corrupted=: ;; 1727 ,set) 1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1729echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1730 ac_cache_corrupted=: ;; 1731 ,);; 1732 *) 1733 if test "x$ac_old_val" != "x$ac_new_val"; then 1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1735echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1736 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1737echo "$as_me: former value: $ac_old_val" >&2;} 1738 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1739echo "$as_me: current value: $ac_new_val" >&2;} 1740 ac_cache_corrupted=: 1741 fi;; 1742 esac 1743 # Pass precious variables to config.status. 1744 if test "$ac_new_set" = set; then 1745 case $ac_new_val in 1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1747 *) ac_arg=$ac_var=$ac_new_val ;; 1748 esac 1749 case " $ac_configure_args " in 1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1752 esac 1753 fi 1754done 1755if $ac_cache_corrupted; then 1756 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1757echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1758 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1759echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1760 { (exit 1); exit 1; }; } 1761fi 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787ac_ext=c 1788ac_cpp='$CPP $CPPFLAGS' 1789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1791ac_compiler_gnu=$ac_cv_c_compiler_gnu 1792 1793 1794 1795 1796 # TEA extensions pass this us the version of TEA they think they 1797 # are compatible with. 1798 TEA_VERSION="3.9" 1799 1800 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1801echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1802 if test x"${PACKAGE_NAME}" = x ; then 1803 { { echo "$as_me:$LINENO: error: 1804The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1805echo "$as_me: error: 1806The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1807 { (exit 1); exit 1; }; } 1808 fi 1809 if test x"3.9" = x ; then 1810 { { echo "$as_me:$LINENO: error: 1811TEA version not specified." >&5 1812echo "$as_me: error: 1813TEA version not specified." >&2;} 1814 { (exit 1); exit 1; }; } 1815 elif test "3.9" != "${TEA_VERSION}" ; then 1816 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1817echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1818 else 1819 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1820echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1821 fi 1822 case "`uname -s`" in 1823 *win32*|*WIN32*|*MINGW32_*) 1824 # Extract the first word of "cygpath", so it can be a program name with args. 1825set dummy cygpath; ac_word=$2 1826{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1828if test "${ac_cv_prog_CYGPATH+set}" = set; then 1829 echo $ECHO_N "(cached) $ECHO_C" >&6 1830else 1831 if test -n "$CYGPATH"; then 1832 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1833else 1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1835for as_dir in $PATH 1836do 1837 IFS=$as_save_IFS 1838 test -z "$as_dir" && as_dir=. 1839 for ac_exec_ext in '' $ac_executable_extensions; do 1840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1841 ac_cv_prog_CYGPATH="cygpath -w" 1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1843 break 2 1844 fi 1845done 1846done 1847IFS=$as_save_IFS 1848 1849 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1850fi 1851fi 1852CYGPATH=$ac_cv_prog_CYGPATH 1853if test -n "$CYGPATH"; then 1854 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1855echo "${ECHO_T}$CYGPATH" >&6; } 1856else 1857 { echo "$as_me:$LINENO: result: no" >&5 1858echo "${ECHO_T}no" >&6; } 1859fi 1860 1861 1862 EXEEXT=".exe" 1863 TEA_PLATFORM="windows" 1864 ;; 1865 *CYGWIN_*) 1866 CYGPATH=echo 1867 EXEEXT=".exe" 1868 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1869 ;; 1870 *) 1871 CYGPATH=echo 1872 EXEEXT="" 1873 TEA_PLATFORM="unix" 1874 ;; 1875 esac 1876 1877 # Check if exec_prefix is set. If not use fall back to prefix. 1878 # Note when adjusted, so that TEA_PREFIX can correct for this. 1879 # This is needed for recursive configures, since autoconf propagates 1880 # $prefix, but not $exec_prefix (doh!). 1881 if test x$exec_prefix = xNONE ; then 1882 exec_prefix_default=yes 1883 exec_prefix=$prefix 1884 fi 1885 1886 1887 1888 1889 # This package name must be replaced statically for AC_SUBST to work 1890 1891 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1892 1893 1894 # We AC_SUBST these here to ensure they are subst'ed, 1895 # in case the user doesn't call TEA_ADD_... 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905ac_aux_dir= 1906for ac_dir in ../tclconfig "$srcdir"/../tclconfig; do 1907 if test -f "$ac_dir/install-sh"; then 1908 ac_aux_dir=$ac_dir 1909 ac_install_sh="$ac_aux_dir/install-sh -c" 1910 break 1911 elif test -f "$ac_dir/install.sh"; then 1912 ac_aux_dir=$ac_dir 1913 ac_install_sh="$ac_aux_dir/install.sh -c" 1914 break 1915 elif test -f "$ac_dir/shtool"; then 1916 ac_aux_dir=$ac_dir 1917 ac_install_sh="$ac_aux_dir/shtool install -c" 1918 break 1919 fi 1920done 1921if test -z "$ac_aux_dir"; then 1922 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&5 1923echo "$as_me: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&2;} 1924 { (exit 1); exit 1; }; } 1925fi 1926 1927# These three variables are undocumented and unsupported, 1928# and are intended to be withdrawn in a future Autoconf release. 1929# They can cause serious problems if a builder's source tree is in a directory 1930# whose full name contains unusual characters. 1931ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1932ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1933ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1934 1935 1936 1937PHIMGTYPE="raw" 1938CPACKAGE="Tkimgraw" 1939PACKAGE_TCLNAME="img::raw" 1940 1941 1942#-------------------------------------------------------------------- 1943# Load the tclConfig.sh file 1944# Load the tkConfig.sh file 1945#-------------------------------------------------------------------- 1946 1947 1948 1949 # 1950 # Ok, lets find the tcl configuration 1951 # First, look for one uninstalled. 1952 # the alternative search directory is invoked by --with-tcl 1953 # 1954 1955 if test x"${no_tcl}" = x ; then 1956 # we reset no_tcl in case something fails here 1957 no_tcl=true 1958 1959# Check whether --with-tcl was given. 1960if test "${with_tcl+set}" = set; then 1961 withval=$with_tcl; with_tclconfig="${withval}" 1962fi 1963 1964 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1965echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1966 if test "${ac_cv_c_tclconfig+set}" = set; then 1967 echo $ECHO_N "(cached) $ECHO_C" >&6 1968else 1969 1970 1971 # First check to see if --with-tcl was specified. 1972 if test x"${with_tclconfig}" != x ; then 1973 case "${with_tclconfig}" in 1974 */tclConfig.sh ) 1975 if test -f "${with_tclconfig}"; then 1976 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1977echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1978 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1979 fi ;; 1980 esac 1981 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1982 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1983 else 1984 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1985echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1986 { (exit 1); exit 1; }; } 1987 fi 1988 fi 1989 1990 # then check for a private Tcl installation 1991 if test x"${ac_cv_c_tclconfig}" = x ; then 1992 for i in \ 1993 ../tcl \ 1994 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1995 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1996 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1997 ../../tcl \ 1998 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1999 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 2000 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 2001 ../../../tcl \ 2002 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2003 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2004 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2005 if test "${TEA_PLATFORM}" = "windows" \ 2006 -a -f "$i/win/tclConfig.sh" ; then 2007 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2008 break 2009 fi 2010 if test -f "$i/unix/tclConfig.sh" ; then 2011 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2012 break 2013 fi 2014 done 2015 fi 2016 2017 # on Darwin, check in Framework installation locations 2018 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2019 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2020 `ls -d /Library/Frameworks 2>/dev/null` \ 2021 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2022 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2023 ; do 2024 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2025 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2026 break 2027 fi 2028 done 2029 fi 2030 2031 # TEA specific: on Windows, check in common installation locations 2032 if test "${TEA_PLATFORM}" = "windows" \ 2033 -a x"${ac_cv_c_tclconfig}" = x ; then 2034 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2035 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2036 ; do 2037 if test -f "$i/tclConfig.sh" ; then 2038 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2039 break 2040 fi 2041 done 2042 fi 2043 2044 # check in a few common install locations 2045 if test x"${ac_cv_c_tclconfig}" = x ; then 2046 for i in `ls -d ${libdir} 2>/dev/null` \ 2047 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2048 `ls -d ${prefix}/lib 2>/dev/null` \ 2049 `ls -d /usr/local/lib 2>/dev/null` \ 2050 `ls -d /usr/contrib/lib 2>/dev/null` \ 2051 `ls -d /usr/lib 2>/dev/null` \ 2052 `ls -d /usr/lib64 2>/dev/null` \ 2053 ; do 2054 if test -f "$i/tclConfig.sh" ; then 2055 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2056 break 2057 fi 2058 done 2059 fi 2060 2061 # check in a few other private locations 2062 if test x"${ac_cv_c_tclconfig}" = x ; then 2063 for i in \ 2064 ${srcdir}/../tcl \ 2065 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2066 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2067 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2068 if test "${TEA_PLATFORM}" = "windows" \ 2069 -a -f "$i/win/tclConfig.sh" ; then 2070 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2071 break 2072 fi 2073 if test -f "$i/unix/tclConfig.sh" ; then 2074 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2075 break 2076 fi 2077 done 2078 fi 2079 2080fi 2081 2082 2083 if test x"${ac_cv_c_tclconfig}" = x ; then 2084 TCL_BIN_DIR="# no Tcl configs found" 2085 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2086echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2087 { (exit 1); exit 1; }; } 2088 else 2089 no_tcl= 2090 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2091 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2092echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2093 fi 2094 fi 2095 2096 2097 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2098echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2099 2100 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2101 { echo "$as_me:$LINENO: result: loading" >&5 2102echo "${ECHO_T}loading" >&6; } 2103 . "${TCL_BIN_DIR}/tclConfig.sh" 2104 else 2105 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2106echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2107 fi 2108 2109 # eval is required to do the TCL_DBGX substitution 2110 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2111 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2112 2113 # If the TCL_BIN_DIR is the build directory (not the install directory), 2114 # then set the common variable name to the value of the build variables. 2115 # For example, the variable TCL_LIB_SPEC will be set to the value 2116 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2117 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2118 # installed and uninstalled version of Tcl. 2119 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2120 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2121 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2122 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2123 elif test "`uname -s`" = "Darwin"; then 2124 # If Tcl was built as a framework, attempt to use the libraries 2125 # from the framework at the given location so that linking works 2126 # against Tcl.framework installed in an arbitrary location. 2127 case ${TCL_DEFS} in 2128 *TCL_FRAMEWORK*) 2129 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2130 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2131 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2132 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2133 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2134 break 2135 fi 2136 done 2137 fi 2138 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2139 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2140 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2141 fi 2142 ;; 2143 esac 2144 fi 2145 2146 # eval is required to do the TCL_DBGX substitution 2147 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2148 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2149 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2150 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 case "`uname -s`" in 2166 *CYGWIN_*) 2167 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2168echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2169 case ${TCL_EXTRA_CFLAGS} in 2170 *-mwin32*|*-mno-cygwin*) 2171 TEA_PLATFORM="windows" 2172 CFLAGS="$CFLAGS -mwin32" 2173 { echo "$as_me:$LINENO: result: win32" >&5 2174echo "${ECHO_T}win32" >&6; } 2175 ;; 2176 *) 2177 TEA_PLATFORM="unix" 2178 { echo "$as_me:$LINENO: result: unix" >&5 2179echo "${ECHO_T}unix" >&6; } 2180 ;; 2181 esac 2182 EXEEXT=".exe" 2183 ;; 2184 *) 2185 ;; 2186 esac 2187 2188 # Do this here as we have fully defined TEA_PLATFORM now 2189 if test "${TEA_PLATFORM}" = "windows" ; then 2190 # The BUILD_$pkg is to define the correct extern storage class 2191 # handling when making this package 2192 2193cat >>confdefs.h <<_ACEOF 2194#define BUILD_${PACKAGE_NAME} 2195_ACEOF 2196 2197 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2198 fi 2199 2200 # TEA specific: 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 # 2211 # Ok, lets find the tk configuration 2212 # First, look for one uninstalled. 2213 # the alternative search directory is invoked by --with-tk 2214 # 2215 2216 if test x"${no_tk}" = x ; then 2217 # we reset no_tk in case something fails here 2218 no_tk=true 2219 2220# Check whether --with-tk was given. 2221if test "${with_tk+set}" = set; then 2222 withval=$with_tk; with_tkconfig="${withval}" 2223fi 2224 2225 { echo "$as_me:$LINENO: checking for Tk configuration" >&5 2226echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6; } 2227 if test "${ac_cv_c_tkconfig+set}" = set; then 2228 echo $ECHO_N "(cached) $ECHO_C" >&6 2229else 2230 2231 2232 # First check to see if --with-tkconfig was specified. 2233 if test x"${with_tkconfig}" != x ; then 2234 case "${with_tkconfig}" in 2235 */tkConfig.sh ) 2236 if test -f "${with_tkconfig}"; then 2237 { echo "$as_me:$LINENO: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5 2238echo "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;} 2239 with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`" 2240 fi ;; 2241 esac 2242 if test -f "${with_tkconfig}/tkConfig.sh" ; then 2243 ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`" 2244 else 2245 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 2246echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} 2247 { (exit 1); exit 1; }; } 2248 fi 2249 fi 2250 2251 # then check for a private Tk library 2252 if test x"${ac_cv_c_tkconfig}" = x ; then 2253 for i in \ 2254 ../tk \ 2255 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2256 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ 2257 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ 2258 ../../tk \ 2259 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2260 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ 2261 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ 2262 ../../../tk \ 2263 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2264 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ 2265 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do 2266 if test "${TEA_PLATFORM}" = "windows" \ 2267 -a -f "$i/win/tkConfig.sh" ; then 2268 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2269 break 2270 fi 2271 if test -f "$i/unix/tkConfig.sh" ; then 2272 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2273 break 2274 fi 2275 done 2276 fi 2277 2278 # on Darwin, check in Framework installation locations 2279 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then 2280 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2281 `ls -d /Library/Frameworks 2>/dev/null` \ 2282 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2283 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2284 ; do 2285 if test -f "$i/Tk.framework/tkConfig.sh" ; then 2286 ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`" 2287 break 2288 fi 2289 done 2290 fi 2291 2292 # check in a few common install locations 2293 if test x"${ac_cv_c_tkconfig}" = x ; then 2294 for i in `ls -d ${libdir} 2>/dev/null` \ 2295 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2296 `ls -d ${prefix}/lib 2>/dev/null` \ 2297 `ls -d /usr/local/lib 2>/dev/null` \ 2298 `ls -d /usr/contrib/lib 2>/dev/null` \ 2299 `ls -d /usr/lib 2>/dev/null` \ 2300 `ls -d /usr/lib64 2>/dev/null` \ 2301 ; do 2302 if test -f "$i/tkConfig.sh" ; then 2303 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2304 break 2305 fi 2306 done 2307 fi 2308 2309 # TEA specific: on Windows, check in common installation locations 2310 if test "${TEA_PLATFORM}" = "windows" \ 2311 -a x"${ac_cv_c_tkconfig}" = x ; then 2312 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2313 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2314 ; do 2315 if test -f "$i/tkConfig.sh" ; then 2316 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2317 break 2318 fi 2319 done 2320 fi 2321 2322 # check in a few other private locations 2323 if test x"${ac_cv_c_tkconfig}" = x ; then 2324 for i in \ 2325 ${srcdir}/../tk \ 2326 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2327 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ 2328 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do 2329 if test "${TEA_PLATFORM}" = "windows" \ 2330 -a -f "$i/win/tkConfig.sh" ; then 2331 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2332 break 2333 fi 2334 if test -f "$i/unix/tkConfig.sh" ; then 2335 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2336 break 2337 fi 2338 done 2339 fi 2340 2341fi 2342 2343 2344 if test x"${ac_cv_c_tkconfig}" = x ; then 2345 TK_BIN_DIR="# no Tk configs found" 2346 { { echo "$as_me:$LINENO: error: Can't find Tk configuration definitions" >&5 2347echo "$as_me: error: Can't find Tk configuration definitions" >&2;} 2348 { (exit 1); exit 1; }; } 2349 else 2350 no_tk= 2351 TK_BIN_DIR="${ac_cv_c_tkconfig}" 2352 { echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 2353echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2354 fi 2355 fi 2356 2357 2358 { echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 2359echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6; } 2360 2361 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then 2362 { echo "$as_me:$LINENO: result: loading" >&5 2363echo "${ECHO_T}loading" >&6; } 2364 . "${TK_BIN_DIR}/tkConfig.sh" 2365 else 2366 { echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 2367echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2368 fi 2369 2370 # eval is required to do the TK_DBGX substitution 2371 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" 2372 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" 2373 2374 # If the TK_BIN_DIR is the build directory (not the install directory), 2375 # then set the common variable name to the value of the build variables. 2376 # For example, the variable TK_LIB_SPEC will be set to the value 2377 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC 2378 # instead of TK_BUILD_LIB_SPEC since it will work with both an 2379 # installed and uninstalled version of Tcl. 2380 if test -f "${TK_BIN_DIR}/Makefile" ; then 2381 TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}" 2382 TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}" 2383 TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}" 2384 elif test "`uname -s`" = "Darwin"; then 2385 # If Tk was built as a framework, attempt to use the libraries 2386 # from the framework at the given location so that linking works 2387 # against Tk.framework installed in an arbitrary location. 2388 case ${TK_DEFS} in 2389 *TK_FRAMEWORK*) 2390 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then 2391 for i in "`cd "${TK_BIN_DIR}"; pwd`" \ 2392 "`cd "${TK_BIN_DIR}"/../..; pwd`"; do 2393 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then 2394 TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}" 2395 break 2396 fi 2397 done 2398 fi 2399 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then 2400 TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}" 2401 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" 2402 fi 2403 ;; 2404 esac 2405 fi 2406 2407 # eval is required to do the TK_DBGX substitution 2408 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" 2409 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" 2410 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" 2411 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" 2412 2413 # TEA specific: Ensure windowingsystem is defined 2414 if test "${TEA_PLATFORM}" = "unix" ; then 2415 case ${TK_DEFS} in 2416 *MAC_OSX_TK*) 2417 2418cat >>confdefs.h <<\_ACEOF 2419#define MAC_OSX_TK 1 2420_ACEOF 2421 2422 TEA_WINDOWINGSYSTEM="aqua" 2423 ;; 2424 *) 2425 TEA_WINDOWINGSYSTEM="x11" 2426 ;; 2427 esac 2428 elif test "${TEA_PLATFORM}" = "windows" ; then 2429 TEA_WINDOWINGSYSTEM="win32" 2430 fi 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 # TEA specific: 2445 2446 2447 2448 2449#----------------------------------------------------------------------- 2450# Handle the --prefix=... option by defaulting to what Tcl gave. 2451# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2452#----------------------------------------------------------------------- 2453 2454 2455 if test "${prefix}" = "NONE"; then 2456 prefix_default=yes 2457 if test x"${TCL_PREFIX}" != x; then 2458 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2459echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2460 prefix=${TCL_PREFIX} 2461 else 2462 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2463echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2464 prefix=/usr/local 2465 fi 2466 fi 2467 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2468 -o x"${exec_prefix_default}" = x"yes" ; then 2469 if test x"${TCL_EXEC_PREFIX}" != x; then 2470 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2471echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2472 exec_prefix=${TCL_EXEC_PREFIX} 2473 else 2474 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2475echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2476 exec_prefix=$prefix 2477 fi 2478 fi 2479 2480 2481#----------------------------------------------------------------------- 2482# Standard compiler checks. 2483# This sets up CC by using the CC env var, or looks for gcc otherwise. 2484# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2485# the basic setup necessary to compile executables. 2486#----------------------------------------------------------------------- 2487 2488 2489 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2490 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2491 2492 # If the user did not set CFLAGS, set it now to keep 2493 # the AC_PROG_CC macro from adding "-g -O2". 2494 if test "${CFLAGS+set}" != "set" ; then 2495 CFLAGS="" 2496 fi 2497 2498 ac_ext=c 2499ac_cpp='$CPP $CPPFLAGS' 2500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2502ac_compiler_gnu=$ac_cv_c_compiler_gnu 2503if test -n "$ac_tool_prefix"; then 2504 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2505set dummy ${ac_tool_prefix}gcc; ac_word=$2 2506{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2508if test "${ac_cv_prog_CC+set}" = set; then 2509 echo $ECHO_N "(cached) $ECHO_C" >&6 2510else 2511 if test -n "$CC"; then 2512 ac_cv_prog_CC="$CC" # Let the user override the test. 2513else 2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2515for as_dir in $PATH 2516do 2517 IFS=$as_save_IFS 2518 test -z "$as_dir" && as_dir=. 2519 for ac_exec_ext in '' $ac_executable_extensions; do 2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2521 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2523 break 2 2524 fi 2525done 2526done 2527IFS=$as_save_IFS 2528 2529fi 2530fi 2531CC=$ac_cv_prog_CC 2532if test -n "$CC"; then 2533 { echo "$as_me:$LINENO: result: $CC" >&5 2534echo "${ECHO_T}$CC" >&6; } 2535else 2536 { echo "$as_me:$LINENO: result: no" >&5 2537echo "${ECHO_T}no" >&6; } 2538fi 2539 2540 2541fi 2542if test -z "$ac_cv_prog_CC"; then 2543 ac_ct_CC=$CC 2544 # Extract the first word of "gcc", so it can be a program name with args. 2545set dummy gcc; ac_word=$2 2546{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2548if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2549 echo $ECHO_N "(cached) $ECHO_C" >&6 2550else 2551 if test -n "$ac_ct_CC"; then 2552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2553else 2554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2555for as_dir in $PATH 2556do 2557 IFS=$as_save_IFS 2558 test -z "$as_dir" && as_dir=. 2559 for ac_exec_ext in '' $ac_executable_extensions; do 2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2561 ac_cv_prog_ac_ct_CC="gcc" 2562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2563 break 2 2564 fi 2565done 2566done 2567IFS=$as_save_IFS 2568 2569fi 2570fi 2571ac_ct_CC=$ac_cv_prog_ac_ct_CC 2572if test -n "$ac_ct_CC"; then 2573 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2574echo "${ECHO_T}$ac_ct_CC" >&6; } 2575else 2576 { echo "$as_me:$LINENO: result: no" >&5 2577echo "${ECHO_T}no" >&6; } 2578fi 2579 2580 if test "x$ac_ct_CC" = x; then 2581 CC="" 2582 else 2583 case $cross_compiling:$ac_tool_warned in 2584yes:) 2585{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2586whose name does not start with the host triplet. If you think this 2587configuration is useful to you, please write to autoconf@gnu.org." >&5 2588echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2589whose name does not start with the host triplet. If you think this 2590configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2591ac_tool_warned=yes ;; 2592esac 2593 CC=$ac_ct_CC 2594 fi 2595else 2596 CC="$ac_cv_prog_CC" 2597fi 2598 2599if test -z "$CC"; then 2600 if test -n "$ac_tool_prefix"; then 2601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2602set dummy ${ac_tool_prefix}cc; ac_word=$2 2603{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2605if test "${ac_cv_prog_CC+set}" = set; then 2606 echo $ECHO_N "(cached) $ECHO_C" >&6 2607else 2608 if test -n "$CC"; then 2609 ac_cv_prog_CC="$CC" # Let the user override the test. 2610else 2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2612for as_dir in $PATH 2613do 2614 IFS=$as_save_IFS 2615 test -z "$as_dir" && as_dir=. 2616 for ac_exec_ext in '' $ac_executable_extensions; do 2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2618 ac_cv_prog_CC="${ac_tool_prefix}cc" 2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2620 break 2 2621 fi 2622done 2623done 2624IFS=$as_save_IFS 2625 2626fi 2627fi 2628CC=$ac_cv_prog_CC 2629if test -n "$CC"; then 2630 { echo "$as_me:$LINENO: result: $CC" >&5 2631echo "${ECHO_T}$CC" >&6; } 2632else 2633 { echo "$as_me:$LINENO: result: no" >&5 2634echo "${ECHO_T}no" >&6; } 2635fi 2636 2637 2638 fi 2639fi 2640if test -z "$CC"; then 2641 # Extract the first word of "cc", so it can be a program name with args. 2642set dummy cc; ac_word=$2 2643{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2645if test "${ac_cv_prog_CC+set}" = set; then 2646 echo $ECHO_N "(cached) $ECHO_C" >&6 2647else 2648 if test -n "$CC"; then 2649 ac_cv_prog_CC="$CC" # Let the user override the test. 2650else 2651 ac_prog_rejected=no 2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2653for as_dir in $PATH 2654do 2655 IFS=$as_save_IFS 2656 test -z "$as_dir" && as_dir=. 2657 for ac_exec_ext in '' $ac_executable_extensions; do 2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2659 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2660 ac_prog_rejected=yes 2661 continue 2662 fi 2663 ac_cv_prog_CC="cc" 2664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2665 break 2 2666 fi 2667done 2668done 2669IFS=$as_save_IFS 2670 2671if test $ac_prog_rejected = yes; then 2672 # We found a bogon in the path, so make sure we never use it. 2673 set dummy $ac_cv_prog_CC 2674 shift 2675 if test $# != 0; then 2676 # We chose a different compiler from the bogus one. 2677 # However, it has the same basename, so the bogon will be chosen 2678 # first if we set CC to just the basename; use the full file name. 2679 shift 2680 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2681 fi 2682fi 2683fi 2684fi 2685CC=$ac_cv_prog_CC 2686if test -n "$CC"; then 2687 { echo "$as_me:$LINENO: result: $CC" >&5 2688echo "${ECHO_T}$CC" >&6; } 2689else 2690 { echo "$as_me:$LINENO: result: no" >&5 2691echo "${ECHO_T}no" >&6; } 2692fi 2693 2694 2695fi 2696if test -z "$CC"; then 2697 if test -n "$ac_tool_prefix"; then 2698 for ac_prog in cl.exe 2699 do 2700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2701set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2702{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2704if test "${ac_cv_prog_CC+set}" = set; then 2705 echo $ECHO_N "(cached) $ECHO_C" >&6 2706else 2707 if test -n "$CC"; then 2708 ac_cv_prog_CC="$CC" # Let the user override the test. 2709else 2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2711for as_dir in $PATH 2712do 2713 IFS=$as_save_IFS 2714 test -z "$as_dir" && as_dir=. 2715 for ac_exec_ext in '' $ac_executable_extensions; do 2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2717 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2719 break 2 2720 fi 2721done 2722done 2723IFS=$as_save_IFS 2724 2725fi 2726fi 2727CC=$ac_cv_prog_CC 2728if test -n "$CC"; then 2729 { echo "$as_me:$LINENO: result: $CC" >&5 2730echo "${ECHO_T}$CC" >&6; } 2731else 2732 { echo "$as_me:$LINENO: result: no" >&5 2733echo "${ECHO_T}no" >&6; } 2734fi 2735 2736 2737 test -n "$CC" && break 2738 done 2739fi 2740if test -z "$CC"; then 2741 ac_ct_CC=$CC 2742 for ac_prog in cl.exe 2743do 2744 # Extract the first word of "$ac_prog", so it can be a program name with args. 2745set dummy $ac_prog; ac_word=$2 2746{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2748if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2749 echo $ECHO_N "(cached) $ECHO_C" >&6 2750else 2751 if test -n "$ac_ct_CC"; then 2752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2753else 2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2755for as_dir in $PATH 2756do 2757 IFS=$as_save_IFS 2758 test -z "$as_dir" && as_dir=. 2759 for ac_exec_ext in '' $ac_executable_extensions; do 2760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2761 ac_cv_prog_ac_ct_CC="$ac_prog" 2762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2763 break 2 2764 fi 2765done 2766done 2767IFS=$as_save_IFS 2768 2769fi 2770fi 2771ac_ct_CC=$ac_cv_prog_ac_ct_CC 2772if test -n "$ac_ct_CC"; then 2773 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2774echo "${ECHO_T}$ac_ct_CC" >&6; } 2775else 2776 { echo "$as_me:$LINENO: result: no" >&5 2777echo "${ECHO_T}no" >&6; } 2778fi 2779 2780 2781 test -n "$ac_ct_CC" && break 2782done 2783 2784 if test "x$ac_ct_CC" = x; then 2785 CC="" 2786 else 2787 case $cross_compiling:$ac_tool_warned in 2788yes:) 2789{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2790whose name does not start with the host triplet. If you think this 2791configuration is useful to you, please write to autoconf@gnu.org." >&5 2792echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2793whose name does not start with the host triplet. If you think this 2794configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2795ac_tool_warned=yes ;; 2796esac 2797 CC=$ac_ct_CC 2798 fi 2799fi 2800 2801fi 2802 2803 2804test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2805See \`config.log' for more details." >&5 2806echo "$as_me: error: no acceptable C compiler found in \$PATH 2807See \`config.log' for more details." >&2;} 2808 { (exit 1); exit 1; }; } 2809 2810# Provide some information about the compiler. 2811echo "$as_me:$LINENO: checking for C compiler version" >&5 2812ac_compiler=`set X $ac_compile; echo $2` 2813{ (ac_try="$ac_compiler --version >&5" 2814case "(($ac_try" in 2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2816 *) ac_try_echo=$ac_try;; 2817esac 2818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2819 (eval "$ac_compiler --version >&5") 2>&5 2820 ac_status=$? 2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2822 (exit $ac_status); } 2823{ (ac_try="$ac_compiler -v >&5" 2824case "(($ac_try" in 2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2826 *) ac_try_echo=$ac_try;; 2827esac 2828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2829 (eval "$ac_compiler -v >&5") 2>&5 2830 ac_status=$? 2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2832 (exit $ac_status); } 2833{ (ac_try="$ac_compiler -V >&5" 2834case "(($ac_try" in 2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2836 *) ac_try_echo=$ac_try;; 2837esac 2838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2839 (eval "$ac_compiler -V >&5") 2>&5 2840 ac_status=$? 2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2842 (exit $ac_status); } 2843 2844cat >conftest.$ac_ext <<_ACEOF 2845/* confdefs.h. */ 2846_ACEOF 2847cat confdefs.h >>conftest.$ac_ext 2848cat >>conftest.$ac_ext <<_ACEOF 2849/* end confdefs.h. */ 2850 2851int 2852main () 2853{ 2854 2855 ; 2856 return 0; 2857} 2858_ACEOF 2859ac_clean_files_save=$ac_clean_files 2860ac_clean_files="$ac_clean_files a.out a.exe b.out" 2861# Try to create an executable without -o first, disregard a.out. 2862# It will help us diagnose broken compilers, and finding out an intuition 2863# of exeext. 2864{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2865echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2866ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2867# 2868# List of possible output files, starting from the most likely. 2869# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2870# only as a last resort. b.out is created by i960 compilers. 2871ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2872# 2873# The IRIX 6 linker writes into existing files which may not be 2874# executable, retaining their permissions. Remove them first so a 2875# subsequent execution test works. 2876ac_rmfiles= 2877for ac_file in $ac_files 2878do 2879 case $ac_file in 2880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2881 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2882 esac 2883done 2884rm -f $ac_rmfiles 2885 2886if { (ac_try="$ac_link_default" 2887case "(($ac_try" in 2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2889 *) ac_try_echo=$ac_try;; 2890esac 2891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2892 (eval "$ac_link_default") 2>&5 2893 ac_status=$? 2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2895 (exit $ac_status); }; then 2896 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2897# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2898# in a Makefile. We should not override ac_cv_exeext if it was cached, 2899# so that the user can short-circuit this test for compilers unknown to 2900# Autoconf. 2901for ac_file in $ac_files '' 2902do 2903 test -f "$ac_file" || continue 2904 case $ac_file in 2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2906 ;; 2907 [ab].out ) 2908 # We found the default executable, but exeext='' is most 2909 # certainly right. 2910 break;; 2911 *.* ) 2912 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2913 then :; else 2914 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2915 fi 2916 # We set ac_cv_exeext here because the later test for it is not 2917 # safe: cross compilers may not add the suffix if given an `-o' 2918 # argument, so we may need to know it at that point already. 2919 # Even if this section looks crufty: it has the advantage of 2920 # actually working. 2921 break;; 2922 * ) 2923 break;; 2924 esac 2925done 2926test "$ac_cv_exeext" = no && ac_cv_exeext= 2927 2928else 2929 ac_file='' 2930fi 2931 2932{ echo "$as_me:$LINENO: result: $ac_file" >&5 2933echo "${ECHO_T}$ac_file" >&6; } 2934if test -z "$ac_file"; then 2935 echo "$as_me: failed program was:" >&5 2936sed 's/^/| /' conftest.$ac_ext >&5 2937 2938{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2939See \`config.log' for more details." >&5 2940echo "$as_me: error: C compiler cannot create executables 2941See \`config.log' for more details." >&2;} 2942 { (exit 77); exit 77; }; } 2943fi 2944 2945ac_exeext=$ac_cv_exeext 2946 2947# Check that the compiler produces executables we can run. If not, either 2948# the compiler is broken, or we cross compile. 2949{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2950echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2951# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2952# If not cross compiling, check that we can run a simple program. 2953if test "$cross_compiling" != yes; then 2954 if { ac_try='./$ac_file' 2955 { (case "(($ac_try" in 2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2957 *) ac_try_echo=$ac_try;; 2958esac 2959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2960 (eval "$ac_try") 2>&5 2961 ac_status=$? 2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2963 (exit $ac_status); }; }; then 2964 cross_compiling=no 2965 else 2966 if test "$cross_compiling" = maybe; then 2967 cross_compiling=yes 2968 else 2969 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2970If you meant to cross compile, use \`--host'. 2971See \`config.log' for more details." >&5 2972echo "$as_me: error: cannot run C compiled programs. 2973If you meant to cross compile, use \`--host'. 2974See \`config.log' for more details." >&2;} 2975 { (exit 1); exit 1; }; } 2976 fi 2977 fi 2978fi 2979{ echo "$as_me:$LINENO: result: yes" >&5 2980echo "${ECHO_T}yes" >&6; } 2981 2982rm -f a.out a.exe conftest$ac_cv_exeext b.out 2983ac_clean_files=$ac_clean_files_save 2984# Check that the compiler produces executables we can run. If not, either 2985# the compiler is broken, or we cross compile. 2986{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2987echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2988{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2989echo "${ECHO_T}$cross_compiling" >&6; } 2990 2991{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2992echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2993if { (ac_try="$ac_link" 2994case "(($ac_try" in 2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2996 *) ac_try_echo=$ac_try;; 2997esac 2998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2999 (eval "$ac_link") 2>&5 3000 ac_status=$? 3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3002 (exit $ac_status); }; then 3003 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3004# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3005# work properly (i.e., refer to `conftest.exe'), while it won't with 3006# `rm'. 3007for ac_file in conftest.exe conftest conftest.*; do 3008 test -f "$ac_file" || continue 3009 case $ac_file in 3010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3011 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3012 break;; 3013 * ) break;; 3014 esac 3015done 3016else 3017 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3018See \`config.log' for more details." >&5 3019echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3020See \`config.log' for more details." >&2;} 3021 { (exit 1); exit 1; }; } 3022fi 3023 3024rm -f conftest$ac_cv_exeext 3025{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3026echo "${ECHO_T}$ac_cv_exeext" >&6; } 3027 3028rm -f conftest.$ac_ext 3029EXEEXT=$ac_cv_exeext 3030ac_exeext=$EXEEXT 3031{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3032echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3033if test "${ac_cv_objext+set}" = set; then 3034 echo $ECHO_N "(cached) $ECHO_C" >&6 3035else 3036 cat >conftest.$ac_ext <<_ACEOF 3037/* confdefs.h. */ 3038_ACEOF 3039cat confdefs.h >>conftest.$ac_ext 3040cat >>conftest.$ac_ext <<_ACEOF 3041/* end confdefs.h. */ 3042 3043int 3044main () 3045{ 3046 3047 ; 3048 return 0; 3049} 3050_ACEOF 3051rm -f conftest.o conftest.obj 3052if { (ac_try="$ac_compile" 3053case "(($ac_try" in 3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3055 *) ac_try_echo=$ac_try;; 3056esac 3057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3058 (eval "$ac_compile") 2>&5 3059 ac_status=$? 3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3061 (exit $ac_status); }; then 3062 for ac_file in conftest.o conftest.obj conftest.*; do 3063 test -f "$ac_file" || continue; 3064 case $ac_file in 3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3066 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3067 break;; 3068 esac 3069done 3070else 3071 echo "$as_me: failed program was:" >&5 3072sed 's/^/| /' conftest.$ac_ext >&5 3073 3074{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3075See \`config.log' for more details." >&5 3076echo "$as_me: error: cannot compute suffix of object files: cannot compile 3077See \`config.log' for more details." >&2;} 3078 { (exit 1); exit 1; }; } 3079fi 3080 3081rm -f conftest.$ac_cv_objext conftest.$ac_ext 3082fi 3083{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3084echo "${ECHO_T}$ac_cv_objext" >&6; } 3085OBJEXT=$ac_cv_objext 3086ac_objext=$OBJEXT 3087{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3088echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3089if test "${ac_cv_c_compiler_gnu+set}" = set; then 3090 echo $ECHO_N "(cached) $ECHO_C" >&6 3091else 3092 cat >conftest.$ac_ext <<_ACEOF 3093/* confdefs.h. */ 3094_ACEOF 3095cat confdefs.h >>conftest.$ac_ext 3096cat >>conftest.$ac_ext <<_ACEOF 3097/* end confdefs.h. */ 3098 3099int 3100main () 3101{ 3102#ifndef __GNUC__ 3103 choke me 3104#endif 3105 3106 ; 3107 return 0; 3108} 3109_ACEOF 3110rm -f conftest.$ac_objext 3111if { (ac_try="$ac_compile" 3112case "(($ac_try" in 3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3114 *) ac_try_echo=$ac_try;; 3115esac 3116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3117 (eval "$ac_compile") 2>conftest.er1 3118 ac_status=$? 3119 grep -v '^ *+' conftest.er1 >conftest.err 3120 rm -f conftest.er1 3121 cat conftest.err >&5 3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3123 (exit $ac_status); } && { 3124 test -z "$ac_c_werror_flag" || 3125 test ! -s conftest.err 3126 } && test -s conftest.$ac_objext; then 3127 ac_compiler_gnu=yes 3128else 3129 echo "$as_me: failed program was:" >&5 3130sed 's/^/| /' conftest.$ac_ext >&5 3131 3132 ac_compiler_gnu=no 3133fi 3134 3135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3136ac_cv_c_compiler_gnu=$ac_compiler_gnu 3137 3138fi 3139{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3140echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3141GCC=`test $ac_compiler_gnu = yes && echo yes` 3142ac_test_CFLAGS=${CFLAGS+set} 3143ac_save_CFLAGS=$CFLAGS 3144{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3145echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3146if test "${ac_cv_prog_cc_g+set}" = set; then 3147 echo $ECHO_N "(cached) $ECHO_C" >&6 3148else 3149 ac_save_c_werror_flag=$ac_c_werror_flag 3150 ac_c_werror_flag=yes 3151 ac_cv_prog_cc_g=no 3152 CFLAGS="-g" 3153 cat >conftest.$ac_ext <<_ACEOF 3154/* confdefs.h. */ 3155_ACEOF 3156cat confdefs.h >>conftest.$ac_ext 3157cat >>conftest.$ac_ext <<_ACEOF 3158/* end confdefs.h. */ 3159 3160int 3161main () 3162{ 3163 3164 ; 3165 return 0; 3166} 3167_ACEOF 3168rm -f conftest.$ac_objext 3169if { (ac_try="$ac_compile" 3170case "(($ac_try" in 3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3172 *) ac_try_echo=$ac_try;; 3173esac 3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3175 (eval "$ac_compile") 2>conftest.er1 3176 ac_status=$? 3177 grep -v '^ *+' conftest.er1 >conftest.err 3178 rm -f conftest.er1 3179 cat conftest.err >&5 3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 (exit $ac_status); } && { 3182 test -z "$ac_c_werror_flag" || 3183 test ! -s conftest.err 3184 } && test -s conftest.$ac_objext; then 3185 ac_cv_prog_cc_g=yes 3186else 3187 echo "$as_me: failed program was:" >&5 3188sed 's/^/| /' conftest.$ac_ext >&5 3189 3190 CFLAGS="" 3191 cat >conftest.$ac_ext <<_ACEOF 3192/* confdefs.h. */ 3193_ACEOF 3194cat confdefs.h >>conftest.$ac_ext 3195cat >>conftest.$ac_ext <<_ACEOF 3196/* end confdefs.h. */ 3197 3198int 3199main () 3200{ 3201 3202 ; 3203 return 0; 3204} 3205_ACEOF 3206rm -f conftest.$ac_objext 3207if { (ac_try="$ac_compile" 3208case "(($ac_try" in 3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3210 *) ac_try_echo=$ac_try;; 3211esac 3212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3213 (eval "$ac_compile") 2>conftest.er1 3214 ac_status=$? 3215 grep -v '^ *+' conftest.er1 >conftest.err 3216 rm -f conftest.er1 3217 cat conftest.err >&5 3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3219 (exit $ac_status); } && { 3220 test -z "$ac_c_werror_flag" || 3221 test ! -s conftest.err 3222 } && test -s conftest.$ac_objext; then 3223 : 3224else 3225 echo "$as_me: failed program was:" >&5 3226sed 's/^/| /' conftest.$ac_ext >&5 3227 3228 ac_c_werror_flag=$ac_save_c_werror_flag 3229 CFLAGS="-g" 3230 cat >conftest.$ac_ext <<_ACEOF 3231/* confdefs.h. */ 3232_ACEOF 3233cat confdefs.h >>conftest.$ac_ext 3234cat >>conftest.$ac_ext <<_ACEOF 3235/* end confdefs.h. */ 3236 3237int 3238main () 3239{ 3240 3241 ; 3242 return 0; 3243} 3244_ACEOF 3245rm -f conftest.$ac_objext 3246if { (ac_try="$ac_compile" 3247case "(($ac_try" in 3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *) ac_try_echo=$ac_try;; 3250esac 3251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3252 (eval "$ac_compile") 2>conftest.er1 3253 ac_status=$? 3254 grep -v '^ *+' conftest.er1 >conftest.err 3255 rm -f conftest.er1 3256 cat conftest.err >&5 3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3258 (exit $ac_status); } && { 3259 test -z "$ac_c_werror_flag" || 3260 test ! -s conftest.err 3261 } && test -s conftest.$ac_objext; then 3262 ac_cv_prog_cc_g=yes 3263else 3264 echo "$as_me: failed program was:" >&5 3265sed 's/^/| /' conftest.$ac_ext >&5 3266 3267 3268fi 3269 3270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3271fi 3272 3273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3274fi 3275 3276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3277 ac_c_werror_flag=$ac_save_c_werror_flag 3278fi 3279{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3280echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3281if test "$ac_test_CFLAGS" = set; then 3282 CFLAGS=$ac_save_CFLAGS 3283elif test $ac_cv_prog_cc_g = yes; then 3284 if test "$GCC" = yes; then 3285 CFLAGS="-g -O2" 3286 else 3287 CFLAGS="-g" 3288 fi 3289else 3290 if test "$GCC" = yes; then 3291 CFLAGS="-O2" 3292 else 3293 CFLAGS= 3294 fi 3295fi 3296{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3297echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3298if test "${ac_cv_prog_cc_c89+set}" = set; then 3299 echo $ECHO_N "(cached) $ECHO_C" >&6 3300else 3301 ac_cv_prog_cc_c89=no 3302ac_save_CC=$CC 3303cat >conftest.$ac_ext <<_ACEOF 3304/* confdefs.h. */ 3305_ACEOF 3306cat confdefs.h >>conftest.$ac_ext 3307cat >>conftest.$ac_ext <<_ACEOF 3308/* end confdefs.h. */ 3309#include <stdarg.h> 3310#include <stdio.h> 3311#include <sys/types.h> 3312#include <sys/stat.h> 3313/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3314struct buf { int x; }; 3315FILE * (*rcsopen) (struct buf *, struct stat *, int); 3316static char *e (p, i) 3317 char **p; 3318 int i; 3319{ 3320 return p[i]; 3321} 3322static char *f (char * (*g) (char **, int), char **p, ...) 3323{ 3324 char *s; 3325 va_list v; 3326 va_start (v,p); 3327 s = g (p, va_arg (v,int)); 3328 va_end (v); 3329 return s; 3330} 3331 3332/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3333 function prototypes and stuff, but not '\xHH' hex character constants. 3334 These don't provoke an error unfortunately, instead are silently treated 3335 as 'x'. The following induces an error, until -std is added to get 3336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3337 array size at least. It's necessary to write '\x00'==0 to get something 3338 that's true only with -std. */ 3339int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3340 3341/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3342 inside strings and character constants. */ 3343#define FOO(x) 'x' 3344int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3345 3346int test (int i, double x); 3347struct s1 {int (*f) (int a);}; 3348struct s2 {int (*f) (double a);}; 3349int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3350int argc; 3351char **argv; 3352int 3353main () 3354{ 3355return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3356 ; 3357 return 0; 3358} 3359_ACEOF 3360for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3362do 3363 CC="$ac_save_CC $ac_arg" 3364 rm -f conftest.$ac_objext 3365if { (ac_try="$ac_compile" 3366case "(($ac_try" in 3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3368 *) ac_try_echo=$ac_try;; 3369esac 3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3371 (eval "$ac_compile") 2>conftest.er1 3372 ac_status=$? 3373 grep -v '^ *+' conftest.er1 >conftest.err 3374 rm -f conftest.er1 3375 cat conftest.err >&5 3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3377 (exit $ac_status); } && { 3378 test -z "$ac_c_werror_flag" || 3379 test ! -s conftest.err 3380 } && test -s conftest.$ac_objext; then 3381 ac_cv_prog_cc_c89=$ac_arg 3382else 3383 echo "$as_me: failed program was:" >&5 3384sed 's/^/| /' conftest.$ac_ext >&5 3385 3386 3387fi 3388 3389rm -f core conftest.err conftest.$ac_objext 3390 test "x$ac_cv_prog_cc_c89" != "xno" && break 3391done 3392rm -f conftest.$ac_ext 3393CC=$ac_save_CC 3394 3395fi 3396# AC_CACHE_VAL 3397case "x$ac_cv_prog_cc_c89" in 3398 x) 3399 { echo "$as_me:$LINENO: result: none needed" >&5 3400echo "${ECHO_T}none needed" >&6; } ;; 3401 xno) 3402 { echo "$as_me:$LINENO: result: unsupported" >&5 3403echo "${ECHO_T}unsupported" >&6; } ;; 3404 *) 3405 CC="$CC $ac_cv_prog_cc_c89" 3406 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3407echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3408esac 3409 3410 3411ac_ext=c 3412ac_cpp='$CPP $CPPFLAGS' 3413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3415ac_compiler_gnu=$ac_cv_c_compiler_gnu 3416 3417 ac_ext=c 3418ac_cpp='$CPP $CPPFLAGS' 3419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3421ac_compiler_gnu=$ac_cv_c_compiler_gnu 3422{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3423echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3424# On Suns, sometimes $CPP names a directory. 3425if test -n "$CPP" && test -d "$CPP"; then 3426 CPP= 3427fi 3428if test -z "$CPP"; then 3429 if test "${ac_cv_prog_CPP+set}" = set; then 3430 echo $ECHO_N "(cached) $ECHO_C" >&6 3431else 3432 # Double quotes because CPP needs to be expanded 3433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3434 do 3435 ac_preproc_ok=false 3436for ac_c_preproc_warn_flag in '' yes 3437do 3438 # Use a header file that comes with gcc, so configuring glibc 3439 # with a fresh cross-compiler works. 3440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3441 # <limits.h> exists even on freestanding compilers. 3442 # On the NeXT, cc -E runs the code through the compiler's parser, 3443 # not just through cpp. "Syntax error" is here to catch this case. 3444 cat >conftest.$ac_ext <<_ACEOF 3445/* confdefs.h. */ 3446_ACEOF 3447cat confdefs.h >>conftest.$ac_ext 3448cat >>conftest.$ac_ext <<_ACEOF 3449/* end confdefs.h. */ 3450#ifdef __STDC__ 3451# include <limits.h> 3452#else 3453# include <assert.h> 3454#endif 3455 Syntax error 3456_ACEOF 3457if { (ac_try="$ac_cpp conftest.$ac_ext" 3458case "(($ac_try" in 3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3460 *) ac_try_echo=$ac_try;; 3461esac 3462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3464 ac_status=$? 3465 grep -v '^ *+' conftest.er1 >conftest.err 3466 rm -f conftest.er1 3467 cat conftest.err >&5 3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3469 (exit $ac_status); } >/dev/null && { 3470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3471 test ! -s conftest.err 3472 }; then 3473 : 3474else 3475 echo "$as_me: failed program was:" >&5 3476sed 's/^/| /' conftest.$ac_ext >&5 3477 3478 # Broken: fails on valid input. 3479continue 3480fi 3481 3482rm -f conftest.err conftest.$ac_ext 3483 3484 # OK, works on sane cases. Now check whether nonexistent headers 3485 # can be detected and how. 3486 cat >conftest.$ac_ext <<_ACEOF 3487/* confdefs.h. */ 3488_ACEOF 3489cat confdefs.h >>conftest.$ac_ext 3490cat >>conftest.$ac_ext <<_ACEOF 3491/* end confdefs.h. */ 3492#include <ac_nonexistent.h> 3493_ACEOF 3494if { (ac_try="$ac_cpp conftest.$ac_ext" 3495case "(($ac_try" in 3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3497 *) ac_try_echo=$ac_try;; 3498esac 3499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3501 ac_status=$? 3502 grep -v '^ *+' conftest.er1 >conftest.err 3503 rm -f conftest.er1 3504 cat conftest.err >&5 3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3506 (exit $ac_status); } >/dev/null && { 3507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3508 test ! -s conftest.err 3509 }; then 3510 # Broken: success on invalid input. 3511continue 3512else 3513 echo "$as_me: failed program was:" >&5 3514sed 's/^/| /' conftest.$ac_ext >&5 3515 3516 # Passes both tests. 3517ac_preproc_ok=: 3518break 3519fi 3520 3521rm -f conftest.err conftest.$ac_ext 3522 3523done 3524# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3525rm -f conftest.err conftest.$ac_ext 3526if $ac_preproc_ok; then 3527 break 3528fi 3529 3530 done 3531 ac_cv_prog_CPP=$CPP 3532 3533fi 3534 CPP=$ac_cv_prog_CPP 3535else 3536 ac_cv_prog_CPP=$CPP 3537fi 3538{ echo "$as_me:$LINENO: result: $CPP" >&5 3539echo "${ECHO_T}$CPP" >&6; } 3540ac_preproc_ok=false 3541for ac_c_preproc_warn_flag in '' yes 3542do 3543 # Use a header file that comes with gcc, so configuring glibc 3544 # with a fresh cross-compiler works. 3545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3546 # <limits.h> exists even on freestanding compilers. 3547 # On the NeXT, cc -E runs the code through the compiler's parser, 3548 # not just through cpp. "Syntax error" is here to catch this case. 3549 cat >conftest.$ac_ext <<_ACEOF 3550/* confdefs.h. */ 3551_ACEOF 3552cat confdefs.h >>conftest.$ac_ext 3553cat >>conftest.$ac_ext <<_ACEOF 3554/* end confdefs.h. */ 3555#ifdef __STDC__ 3556# include <limits.h> 3557#else 3558# include <assert.h> 3559#endif 3560 Syntax error 3561_ACEOF 3562if { (ac_try="$ac_cpp conftest.$ac_ext" 3563case "(($ac_try" in 3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3565 *) ac_try_echo=$ac_try;; 3566esac 3567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3569 ac_status=$? 3570 grep -v '^ *+' conftest.er1 >conftest.err 3571 rm -f conftest.er1 3572 cat conftest.err >&5 3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3574 (exit $ac_status); } >/dev/null && { 3575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3576 test ! -s conftest.err 3577 }; then 3578 : 3579else 3580 echo "$as_me: failed program was:" >&5 3581sed 's/^/| /' conftest.$ac_ext >&5 3582 3583 # Broken: fails on valid input. 3584continue 3585fi 3586 3587rm -f conftest.err conftest.$ac_ext 3588 3589 # OK, works on sane cases. Now check whether nonexistent headers 3590 # can be detected and how. 3591 cat >conftest.$ac_ext <<_ACEOF 3592/* confdefs.h. */ 3593_ACEOF 3594cat confdefs.h >>conftest.$ac_ext 3595cat >>conftest.$ac_ext <<_ACEOF 3596/* end confdefs.h. */ 3597#include <ac_nonexistent.h> 3598_ACEOF 3599if { (ac_try="$ac_cpp conftest.$ac_ext" 3600case "(($ac_try" in 3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3602 *) ac_try_echo=$ac_try;; 3603esac 3604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3606 ac_status=$? 3607 grep -v '^ *+' conftest.er1 >conftest.err 3608 rm -f conftest.er1 3609 cat conftest.err >&5 3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3611 (exit $ac_status); } >/dev/null && { 3612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3613 test ! -s conftest.err 3614 }; then 3615 # Broken: success on invalid input. 3616continue 3617else 3618 echo "$as_me: failed program was:" >&5 3619sed 's/^/| /' conftest.$ac_ext >&5 3620 3621 # Passes both tests. 3622ac_preproc_ok=: 3623break 3624fi 3625 3626rm -f conftest.err conftest.$ac_ext 3627 3628done 3629# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3630rm -f conftest.err conftest.$ac_ext 3631if $ac_preproc_ok; then 3632 : 3633else 3634 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3635See \`config.log' for more details." >&5 3636echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3637See \`config.log' for more details." >&2;} 3638 { (exit 1); exit 1; }; } 3639fi 3640 3641ac_ext=c 3642ac_cpp='$CPP $CPPFLAGS' 3643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3645ac_compiler_gnu=$ac_cv_c_compiler_gnu 3646 3647 3648 # Find a good install program. We prefer a C program (faster), 3649# so one script is as good as another. But avoid the broken or 3650# incompatible versions: 3651# SysV /etc/install, /usr/sbin/install 3652# SunOS /usr/etc/install 3653# IRIX /sbin/install 3654# AIX /bin/install 3655# AmigaOS /C/install, which installs bootblocks on floppy discs 3656# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3657# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3658# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3659# OS/2's system install, which has a completely different semantic 3660# ./install, which can be erroneously created by make from ./install.sh. 3661{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3662echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3663if test -z "$INSTALL"; then 3664if test "${ac_cv_path_install+set}" = set; then 3665 echo $ECHO_N "(cached) $ECHO_C" >&6 3666else 3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3668for as_dir in $PATH 3669do 3670 IFS=$as_save_IFS 3671 test -z "$as_dir" && as_dir=. 3672 # Account for people who put trailing slashes in PATH elements. 3673case $as_dir/ in 3674 ./ | .// | /cC/* | \ 3675 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3676 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3677 /usr/ucb/* ) ;; 3678 *) 3679 # OSF1 and SCO ODT 3.0 have their own names for install. 3680 # Don't use installbsd from OSF since it installs stuff as root 3681 # by default. 3682 for ac_prog in ginstall scoinst install; do 3683 for ac_exec_ext in '' $ac_executable_extensions; do 3684 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3685 if test $ac_prog = install && 3686 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3687 # AIX install. It has an incompatible calling convention. 3688 : 3689 elif test $ac_prog = install && 3690 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3691 # program-specific install script used by HP pwplus--don't use. 3692 : 3693 else 3694 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3695 break 3 3696 fi 3697 fi 3698 done 3699 done 3700 ;; 3701esac 3702done 3703IFS=$as_save_IFS 3704 3705 3706fi 3707 if test "${ac_cv_path_install+set}" = set; then 3708 INSTALL=$ac_cv_path_install 3709 else 3710 # As a last resort, use the slow shell script. Don't cache a 3711 # value for INSTALL within a source directory, because that will 3712 # break other packages using the cache if that directory is 3713 # removed, or if the value is a relative name. 3714 INSTALL=$ac_install_sh 3715 fi 3716fi 3717{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3718echo "${ECHO_T}$INSTALL" >&6; } 3719 3720# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3721# It thinks the first close brace ends the variable substitution. 3722test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3723 3724test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3725 3726test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3727 3728 3729 #-------------------------------------------------------------------- 3730 # Checks to see if the make program sets the $MAKE variable. 3731 #-------------------------------------------------------------------- 3732 3733 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3734echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3735set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3736if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3737 echo $ECHO_N "(cached) $ECHO_C" >&6 3738else 3739 cat >conftest.make <<\_ACEOF 3740SHELL = /bin/sh 3741all: 3742 @echo '@@@%%%=$(MAKE)=@@@%%%' 3743_ACEOF 3744# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3745case `${MAKE-make} -f conftest.make 2>/dev/null` in 3746 *@@@%%%=?*=@@@%%%*) 3747 eval ac_cv_prog_make_${ac_make}_set=yes;; 3748 *) 3749 eval ac_cv_prog_make_${ac_make}_set=no;; 3750esac 3751rm -f conftest.make 3752fi 3753if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3754 { echo "$as_me:$LINENO: result: yes" >&5 3755echo "${ECHO_T}yes" >&6; } 3756 SET_MAKE= 3757else 3758 { echo "$as_me:$LINENO: result: no" >&5 3759echo "${ECHO_T}no" >&6; } 3760 SET_MAKE="MAKE=${MAKE-make}" 3761fi 3762 3763 3764 #-------------------------------------------------------------------- 3765 # Find ranlib 3766 #-------------------------------------------------------------------- 3767 3768 if test -n "$ac_tool_prefix"; then 3769 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3770set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3771{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3773if test "${ac_cv_prog_RANLIB+set}" = set; then 3774 echo $ECHO_N "(cached) $ECHO_C" >&6 3775else 3776 if test -n "$RANLIB"; then 3777 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3778else 3779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3780for as_dir in $PATH 3781do 3782 IFS=$as_save_IFS 3783 test -z "$as_dir" && as_dir=. 3784 for ac_exec_ext in '' $ac_executable_extensions; do 3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3786 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3788 break 2 3789 fi 3790done 3791done 3792IFS=$as_save_IFS 3793 3794fi 3795fi 3796RANLIB=$ac_cv_prog_RANLIB 3797if test -n "$RANLIB"; then 3798 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3799echo "${ECHO_T}$RANLIB" >&6; } 3800else 3801 { echo "$as_me:$LINENO: result: no" >&5 3802echo "${ECHO_T}no" >&6; } 3803fi 3804 3805 3806fi 3807if test -z "$ac_cv_prog_RANLIB"; then 3808 ac_ct_RANLIB=$RANLIB 3809 # Extract the first word of "ranlib", so it can be a program name with args. 3810set dummy ranlib; ac_word=$2 3811{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3813if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3814 echo $ECHO_N "(cached) $ECHO_C" >&6 3815else 3816 if test -n "$ac_ct_RANLIB"; then 3817 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3818else 3819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3820for as_dir in $PATH 3821do 3822 IFS=$as_save_IFS 3823 test -z "$as_dir" && as_dir=. 3824 for ac_exec_ext in '' $ac_executable_extensions; do 3825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3826 ac_cv_prog_ac_ct_RANLIB="ranlib" 3827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3828 break 2 3829 fi 3830done 3831done 3832IFS=$as_save_IFS 3833 3834fi 3835fi 3836ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3837if test -n "$ac_ct_RANLIB"; then 3838 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3839echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3840else 3841 { echo "$as_me:$LINENO: result: no" >&5 3842echo "${ECHO_T}no" >&6; } 3843fi 3844 3845 if test "x$ac_ct_RANLIB" = x; then 3846 RANLIB=":" 3847 else 3848 case $cross_compiling:$ac_tool_warned in 3849yes:) 3850{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3851whose name does not start with the host triplet. If you think this 3852configuration is useful to you, please write to autoconf@gnu.org." >&5 3853echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3854whose name does not start with the host triplet. If you think this 3855configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3856ac_tool_warned=yes ;; 3857esac 3858 RANLIB=$ac_ct_RANLIB 3859 fi 3860else 3861 RANLIB="$ac_cv_prog_RANLIB" 3862fi 3863 3864 3865 #-------------------------------------------------------------------- 3866 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3867 #-------------------------------------------------------------------- 3868 3869 3870 3871 3872 3873 3874{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3875echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3876if test "${ac_cv_path_GREP+set}" = set; then 3877 echo $ECHO_N "(cached) $ECHO_C" >&6 3878else 3879 # Extract the first word of "grep ggrep" to use in msg output 3880if test -z "$GREP"; then 3881set dummy grep ggrep; ac_prog_name=$2 3882if test "${ac_cv_path_GREP+set}" = set; then 3883 echo $ECHO_N "(cached) $ECHO_C" >&6 3884else 3885 ac_path_GREP_found=false 3886# Loop through the user's path and test for each of PROGNAME-LIST 3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3888for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3889do 3890 IFS=$as_save_IFS 3891 test -z "$as_dir" && as_dir=. 3892 for ac_prog in grep ggrep; do 3893 for ac_exec_ext in '' $ac_executable_extensions; do 3894 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3895 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3896 # Check for GNU ac_path_GREP and select it if it is found. 3897 # Check for GNU $ac_path_GREP 3898case `"$ac_path_GREP" --version 2>&1` in 3899*GNU*) 3900 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3901*) 3902 ac_count=0 3903 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3904 while : 3905 do 3906 cat "conftest.in" "conftest.in" >"conftest.tmp" 3907 mv "conftest.tmp" "conftest.in" 3908 cp "conftest.in" "conftest.nl" 3909 echo 'GREP' >> "conftest.nl" 3910 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3912 ac_count=`expr $ac_count + 1` 3913 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3914 # Best one so far, save it but keep looking for a better one 3915 ac_cv_path_GREP="$ac_path_GREP" 3916 ac_path_GREP_max=$ac_count 3917 fi 3918 # 10*(2^10) chars as input seems more than enough 3919 test $ac_count -gt 10 && break 3920 done 3921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3922esac 3923 3924 3925 $ac_path_GREP_found && break 3 3926 done 3927done 3928 3929done 3930IFS=$as_save_IFS 3931 3932 3933fi 3934 3935GREP="$ac_cv_path_GREP" 3936if test -z "$GREP"; then 3937 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3938echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3939 { (exit 1); exit 1; }; } 3940fi 3941 3942else 3943 ac_cv_path_GREP=$GREP 3944fi 3945 3946 3947fi 3948{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3949echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3950 GREP="$ac_cv_path_GREP" 3951 3952 3953{ echo "$as_me:$LINENO: checking for egrep" >&5 3954echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3955if test "${ac_cv_path_EGREP+set}" = set; then 3956 echo $ECHO_N "(cached) $ECHO_C" >&6 3957else 3958 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3959 then ac_cv_path_EGREP="$GREP -E" 3960 else 3961 # Extract the first word of "egrep" to use in msg output 3962if test -z "$EGREP"; then 3963set dummy egrep; ac_prog_name=$2 3964if test "${ac_cv_path_EGREP+set}" = set; then 3965 echo $ECHO_N "(cached) $ECHO_C" >&6 3966else 3967 ac_path_EGREP_found=false 3968# Loop through the user's path and test for each of PROGNAME-LIST 3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3970for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3971do 3972 IFS=$as_save_IFS 3973 test -z "$as_dir" && as_dir=. 3974 for ac_prog in egrep; do 3975 for ac_exec_ext in '' $ac_executable_extensions; do 3976 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3977 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3978 # Check for GNU ac_path_EGREP and select it if it is found. 3979 # Check for GNU $ac_path_EGREP 3980case `"$ac_path_EGREP" --version 2>&1` in 3981*GNU*) 3982 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3983*) 3984 ac_count=0 3985 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3986 while : 3987 do 3988 cat "conftest.in" "conftest.in" >"conftest.tmp" 3989 mv "conftest.tmp" "conftest.in" 3990 cp "conftest.in" "conftest.nl" 3991 echo 'EGREP' >> "conftest.nl" 3992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3994 ac_count=`expr $ac_count + 1` 3995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3996 # Best one so far, save it but keep looking for a better one 3997 ac_cv_path_EGREP="$ac_path_EGREP" 3998 ac_path_EGREP_max=$ac_count 3999 fi 4000 # 10*(2^10) chars as input seems more than enough 4001 test $ac_count -gt 10 && break 4002 done 4003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4004esac 4005 4006 4007 $ac_path_EGREP_found && break 3 4008 done 4009done 4010 4011done 4012IFS=$as_save_IFS 4013 4014 4015fi 4016 4017EGREP="$ac_cv_path_EGREP" 4018if test -z "$EGREP"; then 4019 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4020echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4021 { (exit 1); exit 1; }; } 4022fi 4023 4024else 4025 ac_cv_path_EGREP=$EGREP 4026fi 4027 4028 4029 fi 4030fi 4031{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4032echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4033 EGREP="$ac_cv_path_EGREP" 4034 4035 4036{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4037echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4038if test "${ac_cv_header_stdc+set}" = set; then 4039 echo $ECHO_N "(cached) $ECHO_C" >&6 4040else 4041 cat >conftest.$ac_ext <<_ACEOF 4042/* confdefs.h. */ 4043_ACEOF 4044cat confdefs.h >>conftest.$ac_ext 4045cat >>conftest.$ac_ext <<_ACEOF 4046/* end confdefs.h. */ 4047#include <stdlib.h> 4048#include <stdarg.h> 4049#include <string.h> 4050#include <float.h> 4051 4052int 4053main () 4054{ 4055 4056 ; 4057 return 0; 4058} 4059_ACEOF 4060rm -f conftest.$ac_objext 4061if { (ac_try="$ac_compile" 4062case "(($ac_try" in 4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4064 *) ac_try_echo=$ac_try;; 4065esac 4066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4067 (eval "$ac_compile") 2>conftest.er1 4068 ac_status=$? 4069 grep -v '^ *+' conftest.er1 >conftest.err 4070 rm -f conftest.er1 4071 cat conftest.err >&5 4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4073 (exit $ac_status); } && { 4074 test -z "$ac_c_werror_flag" || 4075 test ! -s conftest.err 4076 } && test -s conftest.$ac_objext; then 4077 ac_cv_header_stdc=yes 4078else 4079 echo "$as_me: failed program was:" >&5 4080sed 's/^/| /' conftest.$ac_ext >&5 4081 4082 ac_cv_header_stdc=no 4083fi 4084 4085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4086 4087if test $ac_cv_header_stdc = yes; then 4088 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4089 cat >conftest.$ac_ext <<_ACEOF 4090/* confdefs.h. */ 4091_ACEOF 4092cat confdefs.h >>conftest.$ac_ext 4093cat >>conftest.$ac_ext <<_ACEOF 4094/* end confdefs.h. */ 4095#include <string.h> 4096 4097_ACEOF 4098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4099 $EGREP "memchr" >/dev/null 2>&1; then 4100 : 4101else 4102 ac_cv_header_stdc=no 4103fi 4104rm -f -r conftest* 4105 4106fi 4107 4108if test $ac_cv_header_stdc = yes; then 4109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4110 cat >conftest.$ac_ext <<_ACEOF 4111/* confdefs.h. */ 4112_ACEOF 4113cat confdefs.h >>conftest.$ac_ext 4114cat >>conftest.$ac_ext <<_ACEOF 4115/* end confdefs.h. */ 4116#include <stdlib.h> 4117 4118_ACEOF 4119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4120 $EGREP "free" >/dev/null 2>&1; then 4121 : 4122else 4123 ac_cv_header_stdc=no 4124fi 4125rm -f -r conftest* 4126 4127fi 4128 4129if test $ac_cv_header_stdc = yes; then 4130 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4131 if test "$cross_compiling" = yes; then 4132 : 4133else 4134 cat >conftest.$ac_ext <<_ACEOF 4135/* confdefs.h. */ 4136_ACEOF 4137cat confdefs.h >>conftest.$ac_ext 4138cat >>conftest.$ac_ext <<_ACEOF 4139/* end confdefs.h. */ 4140#include <ctype.h> 4141#include <stdlib.h> 4142#if ((' ' & 0x0FF) == 0x020) 4143# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4144# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4145#else 4146# define ISLOWER(c) \ 4147 (('a' <= (c) && (c) <= 'i') \ 4148 || ('j' <= (c) && (c) <= 'r') \ 4149 || ('s' <= (c) && (c) <= 'z')) 4150# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4151#endif 4152 4153#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4154int 4155main () 4156{ 4157 int i; 4158 for (i = 0; i < 256; i++) 4159 if (XOR (islower (i), ISLOWER (i)) 4160 || toupper (i) != TOUPPER (i)) 4161 return 2; 4162 return 0; 4163} 4164_ACEOF 4165rm -f conftest$ac_exeext 4166if { (ac_try="$ac_link" 4167case "(($ac_try" in 4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4169 *) ac_try_echo=$ac_try;; 4170esac 4171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4172 (eval "$ac_link") 2>&5 4173 ac_status=$? 4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4176 { (case "(($ac_try" in 4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4178 *) ac_try_echo=$ac_try;; 4179esac 4180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4181 (eval "$ac_try") 2>&5 4182 ac_status=$? 4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4184 (exit $ac_status); }; }; then 4185 : 4186else 4187 echo "$as_me: program exited with status $ac_status" >&5 4188echo "$as_me: failed program was:" >&5 4189sed 's/^/| /' conftest.$ac_ext >&5 4190 4191( exit $ac_status ) 4192ac_cv_header_stdc=no 4193fi 4194rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4195fi 4196 4197 4198fi 4199fi 4200{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4201echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4202if test $ac_cv_header_stdc = yes; then 4203 4204cat >>confdefs.h <<\_ACEOF 4205#define STDC_HEADERS 1 4206_ACEOF 4207 4208fi 4209 4210# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4221 inttypes.h stdint.h unistd.h 4222do 4223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4224{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4227 echo $ECHO_N "(cached) $ECHO_C" >&6 4228else 4229 cat >conftest.$ac_ext <<_ACEOF 4230/* confdefs.h. */ 4231_ACEOF 4232cat confdefs.h >>conftest.$ac_ext 4233cat >>conftest.$ac_ext <<_ACEOF 4234/* end confdefs.h. */ 4235$ac_includes_default 4236 4237#include <$ac_header> 4238_ACEOF 4239rm -f conftest.$ac_objext 4240if { (ac_try="$ac_compile" 4241case "(($ac_try" in 4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4243 *) ac_try_echo=$ac_try;; 4244esac 4245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4246 (eval "$ac_compile") 2>conftest.er1 4247 ac_status=$? 4248 grep -v '^ *+' conftest.er1 >conftest.err 4249 rm -f conftest.er1 4250 cat conftest.err >&5 4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4252 (exit $ac_status); } && { 4253 test -z "$ac_c_werror_flag" || 4254 test ! -s conftest.err 4255 } && test -s conftest.$ac_objext; then 4256 eval "$as_ac_Header=yes" 4257else 4258 echo "$as_me: failed program was:" >&5 4259sed 's/^/| /' conftest.$ac_ext >&5 4260 4261 eval "$as_ac_Header=no" 4262fi 4263 4264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4265fi 4266ac_res=`eval echo '${'$as_ac_Header'}'` 4267 { echo "$as_me:$LINENO: result: $ac_res" >&5 4268echo "${ECHO_T}$ac_res" >&6; } 4269if test `eval echo '${'$as_ac_Header'}'` = yes; then 4270 cat >>confdefs.h <<_ACEOF 4271#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4272_ACEOF 4273 4274fi 4275 4276done 4277 4278 4279 4280 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4281 4282 4283 #------------------------------------------------------------------------ 4284 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4285 # It makes compiling go faster. (This is only a performance feature.) 4286 #------------------------------------------------------------------------ 4287 4288 if test -z "$no_pipe" -a -n "$GCC"; then 4289 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4290echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4291if test "${tcl_cv_cc_pipe+set}" = set; then 4292 echo $ECHO_N "(cached) $ECHO_C" >&6 4293else 4294 4295 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4296 cat >conftest.$ac_ext <<_ACEOF 4297/* confdefs.h. */ 4298_ACEOF 4299cat confdefs.h >>conftest.$ac_ext 4300cat >>conftest.$ac_ext <<_ACEOF 4301/* end confdefs.h. */ 4302 4303int 4304main () 4305{ 4306 4307 ; 4308 return 0; 4309} 4310_ACEOF 4311rm -f conftest.$ac_objext 4312if { (ac_try="$ac_compile" 4313case "(($ac_try" in 4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4315 *) ac_try_echo=$ac_try;; 4316esac 4317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4318 (eval "$ac_compile") 2>conftest.er1 4319 ac_status=$? 4320 grep -v '^ *+' conftest.er1 >conftest.err 4321 rm -f conftest.er1 4322 cat conftest.err >&5 4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4324 (exit $ac_status); } && { 4325 test -z "$ac_c_werror_flag" || 4326 test ! -s conftest.err 4327 } && test -s conftest.$ac_objext; then 4328 tcl_cv_cc_pipe=yes 4329else 4330 echo "$as_me: failed program was:" >&5 4331sed 's/^/| /' conftest.$ac_ext >&5 4332 4333 tcl_cv_cc_pipe=no 4334fi 4335 4336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4337 CFLAGS=$hold_cflags 4338fi 4339{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4340echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4341 if test $tcl_cv_cc_pipe = yes; then 4342 CFLAGS="$CFLAGS -pipe" 4343 fi 4344 fi 4345 4346 #-------------------------------------------------------------------- 4347 # Common compiler flag setup 4348 #-------------------------------------------------------------------- 4349 4350 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4351echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4352if test "${ac_cv_c_bigendian+set}" = set; then 4353 echo $ECHO_N "(cached) $ECHO_C" >&6 4354else 4355 # See if sys/param.h defines the BYTE_ORDER macro. 4356cat >conftest.$ac_ext <<_ACEOF 4357/* confdefs.h. */ 4358_ACEOF 4359cat confdefs.h >>conftest.$ac_ext 4360cat >>conftest.$ac_ext <<_ACEOF 4361/* end confdefs.h. */ 4362#include <sys/types.h> 4363#include <sys/param.h> 4364 4365int 4366main () 4367{ 4368#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4369 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4370 bogus endian macros 4371#endif 4372 4373 ; 4374 return 0; 4375} 4376_ACEOF 4377rm -f conftest.$ac_objext 4378if { (ac_try="$ac_compile" 4379case "(($ac_try" in 4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4381 *) ac_try_echo=$ac_try;; 4382esac 4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4384 (eval "$ac_compile") 2>conftest.er1 4385 ac_status=$? 4386 grep -v '^ *+' conftest.er1 >conftest.err 4387 rm -f conftest.er1 4388 cat conftest.err >&5 4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4390 (exit $ac_status); } && { 4391 test -z "$ac_c_werror_flag" || 4392 test ! -s conftest.err 4393 } && test -s conftest.$ac_objext; then 4394 # It does; now see whether it defined to BIG_ENDIAN or not. 4395cat >conftest.$ac_ext <<_ACEOF 4396/* confdefs.h. */ 4397_ACEOF 4398cat confdefs.h >>conftest.$ac_ext 4399cat >>conftest.$ac_ext <<_ACEOF 4400/* end confdefs.h. */ 4401#include <sys/types.h> 4402#include <sys/param.h> 4403 4404int 4405main () 4406{ 4407#if BYTE_ORDER != BIG_ENDIAN 4408 not big endian 4409#endif 4410 4411 ; 4412 return 0; 4413} 4414_ACEOF 4415rm -f conftest.$ac_objext 4416if { (ac_try="$ac_compile" 4417case "(($ac_try" in 4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4419 *) ac_try_echo=$ac_try;; 4420esac 4421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4422 (eval "$ac_compile") 2>conftest.er1 4423 ac_status=$? 4424 grep -v '^ *+' conftest.er1 >conftest.err 4425 rm -f conftest.er1 4426 cat conftest.err >&5 4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4428 (exit $ac_status); } && { 4429 test -z "$ac_c_werror_flag" || 4430 test ! -s conftest.err 4431 } && test -s conftest.$ac_objext; then 4432 ac_cv_c_bigendian=yes 4433else 4434 echo "$as_me: failed program was:" >&5 4435sed 's/^/| /' conftest.$ac_ext >&5 4436 4437 ac_cv_c_bigendian=no 4438fi 4439 4440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4441else 4442 echo "$as_me: failed program was:" >&5 4443sed 's/^/| /' conftest.$ac_ext >&5 4444 4445 # It does not; compile a test program. 4446if test "$cross_compiling" = yes; then 4447 # try to guess the endianness by grepping values into an object file 4448 ac_cv_c_bigendian=unknown 4449 cat >conftest.$ac_ext <<_ACEOF 4450/* confdefs.h. */ 4451_ACEOF 4452cat confdefs.h >>conftest.$ac_ext 4453cat >>conftest.$ac_ext <<_ACEOF 4454/* end confdefs.h. */ 4455short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4456short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4457void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4458short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4459short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4460void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4461int 4462main () 4463{ 4464 _ascii (); _ebcdic (); 4465 ; 4466 return 0; 4467} 4468_ACEOF 4469rm -f conftest.$ac_objext 4470if { (ac_try="$ac_compile" 4471case "(($ac_try" in 4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4473 *) ac_try_echo=$ac_try;; 4474esac 4475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4476 (eval "$ac_compile") 2>conftest.er1 4477 ac_status=$? 4478 grep -v '^ *+' conftest.er1 >conftest.err 4479 rm -f conftest.er1 4480 cat conftest.err >&5 4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4482 (exit $ac_status); } && { 4483 test -z "$ac_c_werror_flag" || 4484 test ! -s conftest.err 4485 } && test -s conftest.$ac_objext; then 4486 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4487 ac_cv_c_bigendian=yes 4488fi 4489if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4490 if test "$ac_cv_c_bigendian" = unknown; then 4491 ac_cv_c_bigendian=no 4492 else 4493 # finding both strings is unlikely to happen, but who knows? 4494 ac_cv_c_bigendian=unknown 4495 fi 4496fi 4497else 4498 echo "$as_me: failed program was:" >&5 4499sed 's/^/| /' conftest.$ac_ext >&5 4500 4501 4502fi 4503 4504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4505else 4506 cat >conftest.$ac_ext <<_ACEOF 4507/* confdefs.h. */ 4508_ACEOF 4509cat confdefs.h >>conftest.$ac_ext 4510cat >>conftest.$ac_ext <<_ACEOF 4511/* end confdefs.h. */ 4512$ac_includes_default 4513int 4514main () 4515{ 4516 4517 /* Are we little or big endian? From Harbison&Steele. */ 4518 union 4519 { 4520 long int l; 4521 char c[sizeof (long int)]; 4522 } u; 4523 u.l = 1; 4524 return u.c[sizeof (long int) - 1] == 1; 4525 4526 ; 4527 return 0; 4528} 4529_ACEOF 4530rm -f conftest$ac_exeext 4531if { (ac_try="$ac_link" 4532case "(($ac_try" in 4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4534 *) ac_try_echo=$ac_try;; 4535esac 4536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4537 (eval "$ac_link") 2>&5 4538 ac_status=$? 4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4541 { (case "(($ac_try" in 4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4543 *) ac_try_echo=$ac_try;; 4544esac 4545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4546 (eval "$ac_try") 2>&5 4547 ac_status=$? 4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4549 (exit $ac_status); }; }; then 4550 ac_cv_c_bigendian=no 4551else 4552 echo "$as_me: program exited with status $ac_status" >&5 4553echo "$as_me: failed program was:" >&5 4554sed 's/^/| /' conftest.$ac_ext >&5 4555 4556( exit $ac_status ) 4557ac_cv_c_bigendian=yes 4558fi 4559rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4560fi 4561 4562 4563fi 4564 4565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4566fi 4567{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4568echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4569case $ac_cv_c_bigendian in 4570 yes) 4571 4572cat >>confdefs.h <<\_ACEOF 4573#define WORDS_BIGENDIAN 1 4574_ACEOF 4575 ;; 4576 no) 4577 ;; 4578 *) 4579 { { echo "$as_me:$LINENO: error: unknown endianness 4580presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4581echo "$as_me: error: unknown endianness 4582presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4583 { (exit 1); exit 1; }; } ;; 4584esac 4585 4586 if test "${TEA_PLATFORM}" = "unix" ; then 4587 4588 #-------------------------------------------------------------------- 4589 # On a few very rare systems, all of the libm.a stuff is 4590 # already in libc.a. Set compiler flags accordingly. 4591 # Also, Linux requires the "ieee" library for math to work 4592 # right (and it must appear before "-lm"). 4593 #-------------------------------------------------------------------- 4594 4595 { echo "$as_me:$LINENO: checking for sin" >&5 4596echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4597if test "${ac_cv_func_sin+set}" = set; then 4598 echo $ECHO_N "(cached) $ECHO_C" >&6 4599else 4600 cat >conftest.$ac_ext <<_ACEOF 4601/* confdefs.h. */ 4602_ACEOF 4603cat confdefs.h >>conftest.$ac_ext 4604cat >>conftest.$ac_ext <<_ACEOF 4605/* end confdefs.h. */ 4606/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4607 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4608#define sin innocuous_sin 4609 4610/* System header to define __stub macros and hopefully few prototypes, 4611 which can conflict with char sin (); below. 4612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4613 <limits.h> exists even on freestanding compilers. */ 4614 4615#ifdef __STDC__ 4616# include <limits.h> 4617#else 4618# include <assert.h> 4619#endif 4620 4621#undef sin 4622 4623/* Override any GCC internal prototype to avoid an error. 4624 Use char because int might match the return type of a GCC 4625 builtin and then its argument prototype would still apply. */ 4626#ifdef __cplusplus 4627extern "C" 4628#endif 4629char sin (); 4630/* The GNU C library defines this for functions which it implements 4631 to always fail with ENOSYS. Some functions are actually named 4632 something starting with __ and the normal name is an alias. */ 4633#if defined __stub_sin || defined __stub___sin 4634choke me 4635#endif 4636 4637int 4638main () 4639{ 4640return sin (); 4641 ; 4642 return 0; 4643} 4644_ACEOF 4645rm -f conftest.$ac_objext conftest$ac_exeext 4646if { (ac_try="$ac_link" 4647case "(($ac_try" in 4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4649 *) ac_try_echo=$ac_try;; 4650esac 4651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4652 (eval "$ac_link") 2>conftest.er1 4653 ac_status=$? 4654 grep -v '^ *+' conftest.er1 >conftest.err 4655 rm -f conftest.er1 4656 cat conftest.err >&5 4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4658 (exit $ac_status); } && { 4659 test -z "$ac_c_werror_flag" || 4660 test ! -s conftest.err 4661 } && test -s conftest$ac_exeext && 4662 $as_test_x conftest$ac_exeext; then 4663 ac_cv_func_sin=yes 4664else 4665 echo "$as_me: failed program was:" >&5 4666sed 's/^/| /' conftest.$ac_ext >&5 4667 4668 ac_cv_func_sin=no 4669fi 4670 4671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4672 conftest$ac_exeext conftest.$ac_ext 4673fi 4674{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4675echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4676if test $ac_cv_func_sin = yes; then 4677 MATH_LIBS="" 4678else 4679 MATH_LIBS="-lm" 4680fi 4681 4682 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4683echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4684if test "${ac_cv_lib_ieee_main+set}" = set; then 4685 echo $ECHO_N "(cached) $ECHO_C" >&6 4686else 4687 ac_check_lib_save_LIBS=$LIBS 4688LIBS="-lieee $LIBS" 4689cat >conftest.$ac_ext <<_ACEOF 4690/* confdefs.h. */ 4691_ACEOF 4692cat confdefs.h >>conftest.$ac_ext 4693cat >>conftest.$ac_ext <<_ACEOF 4694/* end confdefs.h. */ 4695 4696 4697int 4698main () 4699{ 4700return main (); 4701 ; 4702 return 0; 4703} 4704_ACEOF 4705rm -f conftest.$ac_objext conftest$ac_exeext 4706if { (ac_try="$ac_link" 4707case "(($ac_try" in 4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4709 *) ac_try_echo=$ac_try;; 4710esac 4711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4712 (eval "$ac_link") 2>conftest.er1 4713 ac_status=$? 4714 grep -v '^ *+' conftest.er1 >conftest.err 4715 rm -f conftest.er1 4716 cat conftest.err >&5 4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4718 (exit $ac_status); } && { 4719 test -z "$ac_c_werror_flag" || 4720 test ! -s conftest.err 4721 } && test -s conftest$ac_exeext && 4722 $as_test_x conftest$ac_exeext; then 4723 ac_cv_lib_ieee_main=yes 4724else 4725 echo "$as_me: failed program was:" >&5 4726sed 's/^/| /' conftest.$ac_ext >&5 4727 4728 ac_cv_lib_ieee_main=no 4729fi 4730 4731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4732 conftest$ac_exeext conftest.$ac_ext 4733LIBS=$ac_check_lib_save_LIBS 4734fi 4735{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4736echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4737if test $ac_cv_lib_ieee_main = yes; then 4738 MATH_LIBS="-lieee $MATH_LIBS" 4739fi 4740 4741 4742 #-------------------------------------------------------------------- 4743 # Interactive UNIX requires -linet instead of -lsocket, plus it 4744 # needs net/errno.h to define the socket-related error codes. 4745 #-------------------------------------------------------------------- 4746 4747 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4748echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4749if test "${ac_cv_lib_inet_main+set}" = set; then 4750 echo $ECHO_N "(cached) $ECHO_C" >&6 4751else 4752 ac_check_lib_save_LIBS=$LIBS 4753LIBS="-linet $LIBS" 4754cat >conftest.$ac_ext <<_ACEOF 4755/* confdefs.h. */ 4756_ACEOF 4757cat confdefs.h >>conftest.$ac_ext 4758cat >>conftest.$ac_ext <<_ACEOF 4759/* end confdefs.h. */ 4760 4761 4762int 4763main () 4764{ 4765return main (); 4766 ; 4767 return 0; 4768} 4769_ACEOF 4770rm -f conftest.$ac_objext conftest$ac_exeext 4771if { (ac_try="$ac_link" 4772case "(($ac_try" in 4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4774 *) ac_try_echo=$ac_try;; 4775esac 4776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4777 (eval "$ac_link") 2>conftest.er1 4778 ac_status=$? 4779 grep -v '^ *+' conftest.er1 >conftest.err 4780 rm -f conftest.er1 4781 cat conftest.err >&5 4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4783 (exit $ac_status); } && { 4784 test -z "$ac_c_werror_flag" || 4785 test ! -s conftest.err 4786 } && test -s conftest$ac_exeext && 4787 $as_test_x conftest$ac_exeext; then 4788 ac_cv_lib_inet_main=yes 4789else 4790 echo "$as_me: failed program was:" >&5 4791sed 's/^/| /' conftest.$ac_ext >&5 4792 4793 ac_cv_lib_inet_main=no 4794fi 4795 4796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4797 conftest$ac_exeext conftest.$ac_ext 4798LIBS=$ac_check_lib_save_LIBS 4799fi 4800{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4801echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4802if test $ac_cv_lib_inet_main = yes; then 4803 LIBS="$LIBS -linet" 4804fi 4805 4806 if test "${ac_cv_header_net_errno_h+set}" = set; then 4807 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4808echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4809if test "${ac_cv_header_net_errno_h+set}" = set; then 4810 echo $ECHO_N "(cached) $ECHO_C" >&6 4811fi 4812{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4813echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4814else 4815 # Is the header compilable? 4816{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4817echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4818cat >conftest.$ac_ext <<_ACEOF 4819/* confdefs.h. */ 4820_ACEOF 4821cat confdefs.h >>conftest.$ac_ext 4822cat >>conftest.$ac_ext <<_ACEOF 4823/* end confdefs.h. */ 4824$ac_includes_default 4825#include <net/errno.h> 4826_ACEOF 4827rm -f conftest.$ac_objext 4828if { (ac_try="$ac_compile" 4829case "(($ac_try" in 4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4831 *) ac_try_echo=$ac_try;; 4832esac 4833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4834 (eval "$ac_compile") 2>conftest.er1 4835 ac_status=$? 4836 grep -v '^ *+' conftest.er1 >conftest.err 4837 rm -f conftest.er1 4838 cat conftest.err >&5 4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4840 (exit $ac_status); } && { 4841 test -z "$ac_c_werror_flag" || 4842 test ! -s conftest.err 4843 } && test -s conftest.$ac_objext; then 4844 ac_header_compiler=yes 4845else 4846 echo "$as_me: failed program was:" >&5 4847sed 's/^/| /' conftest.$ac_ext >&5 4848 4849 ac_header_compiler=no 4850fi 4851 4852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4853{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4854echo "${ECHO_T}$ac_header_compiler" >&6; } 4855 4856# Is the header present? 4857{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4858echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4859cat >conftest.$ac_ext <<_ACEOF 4860/* confdefs.h. */ 4861_ACEOF 4862cat confdefs.h >>conftest.$ac_ext 4863cat >>conftest.$ac_ext <<_ACEOF 4864/* end confdefs.h. */ 4865#include <net/errno.h> 4866_ACEOF 4867if { (ac_try="$ac_cpp conftest.$ac_ext" 4868case "(($ac_try" in 4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4870 *) ac_try_echo=$ac_try;; 4871esac 4872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4874 ac_status=$? 4875 grep -v '^ *+' conftest.er1 >conftest.err 4876 rm -f conftest.er1 4877 cat conftest.err >&5 4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4879 (exit $ac_status); } >/dev/null && { 4880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4881 test ! -s conftest.err 4882 }; then 4883 ac_header_preproc=yes 4884else 4885 echo "$as_me: failed program was:" >&5 4886sed 's/^/| /' conftest.$ac_ext >&5 4887 4888 ac_header_preproc=no 4889fi 4890 4891rm -f conftest.err conftest.$ac_ext 4892{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4893echo "${ECHO_T}$ac_header_preproc" >&6; } 4894 4895# So? What about this header? 4896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4897 yes:no: ) 4898 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4899echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4900 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4901echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4902 ac_header_preproc=yes 4903 ;; 4904 no:yes:* ) 4905 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4906echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4907 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4908echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4909 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4910echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4911 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4912echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4913 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4914echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4915 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4916echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4917 4918 ;; 4919esac 4920{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4921echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4922if test "${ac_cv_header_net_errno_h+set}" = set; then 4923 echo $ECHO_N "(cached) $ECHO_C" >&6 4924else 4925 ac_cv_header_net_errno_h=$ac_header_preproc 4926fi 4927{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4928echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4929 4930fi 4931if test $ac_cv_header_net_errno_h = yes; then 4932 4933 4934cat >>confdefs.h <<\_ACEOF 4935#define HAVE_NET_ERRNO_H 1 4936_ACEOF 4937 4938fi 4939 4940 4941 4942 #-------------------------------------------------------------------- 4943 # Check for the existence of the -lsocket and -lnsl libraries. 4944 # The order here is important, so that they end up in the right 4945 # order in the command line generated by make. Here are some 4946 # special considerations: 4947 # 1. Use "connect" and "accept" to check for -lsocket, and 4948 # "gethostbyname" to check for -lnsl. 4949 # 2. Use each function name only once: can't redo a check because 4950 # autoconf caches the results of the last check and won't redo it. 4951 # 3. Use -lnsl and -lsocket only if they supply procedures that 4952 # aren't already present in the normal libraries. This is because 4953 # IRIX 5.2 has libraries, but they aren't needed and they're 4954 # bogus: they goof up name resolution if used. 4955 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4956 # To get around this problem, check for both libraries together 4957 # if -lsocket doesn't work by itself. 4958 #-------------------------------------------------------------------- 4959 4960 tcl_checkBoth=0 4961 { echo "$as_me:$LINENO: checking for connect" >&5 4962echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4963if test "${ac_cv_func_connect+set}" = set; then 4964 echo $ECHO_N "(cached) $ECHO_C" >&6 4965else 4966 cat >conftest.$ac_ext <<_ACEOF 4967/* confdefs.h. */ 4968_ACEOF 4969cat confdefs.h >>conftest.$ac_ext 4970cat >>conftest.$ac_ext <<_ACEOF 4971/* end confdefs.h. */ 4972/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4973 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4974#define connect innocuous_connect 4975 4976/* System header to define __stub macros and hopefully few prototypes, 4977 which can conflict with char connect (); below. 4978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4979 <limits.h> exists even on freestanding compilers. */ 4980 4981#ifdef __STDC__ 4982# include <limits.h> 4983#else 4984# include <assert.h> 4985#endif 4986 4987#undef connect 4988 4989/* Override any GCC internal prototype to avoid an error. 4990 Use char because int might match the return type of a GCC 4991 builtin and then its argument prototype would still apply. */ 4992#ifdef __cplusplus 4993extern "C" 4994#endif 4995char connect (); 4996/* The GNU C library defines this for functions which it implements 4997 to always fail with ENOSYS. Some functions are actually named 4998 something starting with __ and the normal name is an alias. */ 4999#if defined __stub_connect || defined __stub___connect 5000choke me 5001#endif 5002 5003int 5004main () 5005{ 5006return connect (); 5007 ; 5008 return 0; 5009} 5010_ACEOF 5011rm -f conftest.$ac_objext conftest$ac_exeext 5012if { (ac_try="$ac_link" 5013case "(($ac_try" in 5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5015 *) ac_try_echo=$ac_try;; 5016esac 5017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5018 (eval "$ac_link") 2>conftest.er1 5019 ac_status=$? 5020 grep -v '^ *+' conftest.er1 >conftest.err 5021 rm -f conftest.er1 5022 cat conftest.err >&5 5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5024 (exit $ac_status); } && { 5025 test -z "$ac_c_werror_flag" || 5026 test ! -s conftest.err 5027 } && test -s conftest$ac_exeext && 5028 $as_test_x conftest$ac_exeext; then 5029 ac_cv_func_connect=yes 5030else 5031 echo "$as_me: failed program was:" >&5 5032sed 's/^/| /' conftest.$ac_ext >&5 5033 5034 ac_cv_func_connect=no 5035fi 5036 5037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5038 conftest$ac_exeext conftest.$ac_ext 5039fi 5040{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 5041echo "${ECHO_T}$ac_cv_func_connect" >&6; } 5042if test $ac_cv_func_connect = yes; then 5043 tcl_checkSocket=0 5044else 5045 tcl_checkSocket=1 5046fi 5047 5048 if test "$tcl_checkSocket" = 1; then 5049 { echo "$as_me:$LINENO: checking for setsockopt" >&5 5050echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 5051if test "${ac_cv_func_setsockopt+set}" = set; then 5052 echo $ECHO_N "(cached) $ECHO_C" >&6 5053else 5054 cat >conftest.$ac_ext <<_ACEOF 5055/* confdefs.h. */ 5056_ACEOF 5057cat confdefs.h >>conftest.$ac_ext 5058cat >>conftest.$ac_ext <<_ACEOF 5059/* end confdefs.h. */ 5060/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 5061 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5062#define setsockopt innocuous_setsockopt 5063 5064/* System header to define __stub macros and hopefully few prototypes, 5065 which can conflict with char setsockopt (); below. 5066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5067 <limits.h> exists even on freestanding compilers. */ 5068 5069#ifdef __STDC__ 5070# include <limits.h> 5071#else 5072# include <assert.h> 5073#endif 5074 5075#undef setsockopt 5076 5077/* Override any GCC internal prototype to avoid an error. 5078 Use char because int might match the return type of a GCC 5079 builtin and then its argument prototype would still apply. */ 5080#ifdef __cplusplus 5081extern "C" 5082#endif 5083char setsockopt (); 5084/* The GNU C library defines this for functions which it implements 5085 to always fail with ENOSYS. Some functions are actually named 5086 something starting with __ and the normal name is an alias. */ 5087#if defined __stub_setsockopt || defined __stub___setsockopt 5088choke me 5089#endif 5090 5091int 5092main () 5093{ 5094return setsockopt (); 5095 ; 5096 return 0; 5097} 5098_ACEOF 5099rm -f conftest.$ac_objext conftest$ac_exeext 5100if { (ac_try="$ac_link" 5101case "(($ac_try" in 5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5103 *) ac_try_echo=$ac_try;; 5104esac 5105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5106 (eval "$ac_link") 2>conftest.er1 5107 ac_status=$? 5108 grep -v '^ *+' conftest.er1 >conftest.err 5109 rm -f conftest.er1 5110 cat conftest.err >&5 5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5112 (exit $ac_status); } && { 5113 test -z "$ac_c_werror_flag" || 5114 test ! -s conftest.err 5115 } && test -s conftest$ac_exeext && 5116 $as_test_x conftest$ac_exeext; then 5117 ac_cv_func_setsockopt=yes 5118else 5119 echo "$as_me: failed program was:" >&5 5120sed 's/^/| /' conftest.$ac_ext >&5 5121 5122 ac_cv_func_setsockopt=no 5123fi 5124 5125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5126 conftest$ac_exeext conftest.$ac_ext 5127fi 5128{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 5129echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 5130if test $ac_cv_func_setsockopt = yes; then 5131 : 5132else 5133 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 5134echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 5135if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 5136 echo $ECHO_N "(cached) $ECHO_C" >&6 5137else 5138 ac_check_lib_save_LIBS=$LIBS 5139LIBS="-lsocket $LIBS" 5140cat >conftest.$ac_ext <<_ACEOF 5141/* confdefs.h. */ 5142_ACEOF 5143cat confdefs.h >>conftest.$ac_ext 5144cat >>conftest.$ac_ext <<_ACEOF 5145/* end confdefs.h. */ 5146 5147/* Override any GCC internal prototype to avoid an error. 5148 Use char because int might match the return type of a GCC 5149 builtin and then its argument prototype would still apply. */ 5150#ifdef __cplusplus 5151extern "C" 5152#endif 5153char setsockopt (); 5154int 5155main () 5156{ 5157return setsockopt (); 5158 ; 5159 return 0; 5160} 5161_ACEOF 5162rm -f conftest.$ac_objext conftest$ac_exeext 5163if { (ac_try="$ac_link" 5164case "(($ac_try" in 5165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5166 *) ac_try_echo=$ac_try;; 5167esac 5168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5169 (eval "$ac_link") 2>conftest.er1 5170 ac_status=$? 5171 grep -v '^ *+' conftest.er1 >conftest.err 5172 rm -f conftest.er1 5173 cat conftest.err >&5 5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5175 (exit $ac_status); } && { 5176 test -z "$ac_c_werror_flag" || 5177 test ! -s conftest.err 5178 } && test -s conftest$ac_exeext && 5179 $as_test_x conftest$ac_exeext; then 5180 ac_cv_lib_socket_setsockopt=yes 5181else 5182 echo "$as_me: failed program was:" >&5 5183sed 's/^/| /' conftest.$ac_ext >&5 5184 5185 ac_cv_lib_socket_setsockopt=no 5186fi 5187 5188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5189 conftest$ac_exeext conftest.$ac_ext 5190LIBS=$ac_check_lib_save_LIBS 5191fi 5192{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 5193echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 5194if test $ac_cv_lib_socket_setsockopt = yes; then 5195 LIBS="$LIBS -lsocket" 5196else 5197 tcl_checkBoth=1 5198fi 5199 5200fi 5201 5202 fi 5203 if test "$tcl_checkBoth" = 1; then 5204 tk_oldLibs=$LIBS 5205 LIBS="$LIBS -lsocket -lnsl" 5206 { echo "$as_me:$LINENO: checking for accept" >&5 5207echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 5208if test "${ac_cv_func_accept+set}" = set; then 5209 echo $ECHO_N "(cached) $ECHO_C" >&6 5210else 5211 cat >conftest.$ac_ext <<_ACEOF 5212/* confdefs.h. */ 5213_ACEOF 5214cat confdefs.h >>conftest.$ac_ext 5215cat >>conftest.$ac_ext <<_ACEOF 5216/* end confdefs.h. */ 5217/* Define accept to an innocuous variant, in case <limits.h> declares accept. 5218 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5219#define accept innocuous_accept 5220 5221/* System header to define __stub macros and hopefully few prototypes, 5222 which can conflict with char accept (); below. 5223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5224 <limits.h> exists even on freestanding compilers. */ 5225 5226#ifdef __STDC__ 5227# include <limits.h> 5228#else 5229# include <assert.h> 5230#endif 5231 5232#undef accept 5233 5234/* Override any GCC internal prototype to avoid an error. 5235 Use char because int might match the return type of a GCC 5236 builtin and then its argument prototype would still apply. */ 5237#ifdef __cplusplus 5238extern "C" 5239#endif 5240char accept (); 5241/* The GNU C library defines this for functions which it implements 5242 to always fail with ENOSYS. Some functions are actually named 5243 something starting with __ and the normal name is an alias. */ 5244#if defined __stub_accept || defined __stub___accept 5245choke me 5246#endif 5247 5248int 5249main () 5250{ 5251return accept (); 5252 ; 5253 return 0; 5254} 5255_ACEOF 5256rm -f conftest.$ac_objext conftest$ac_exeext 5257if { (ac_try="$ac_link" 5258case "(($ac_try" in 5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5260 *) ac_try_echo=$ac_try;; 5261esac 5262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5263 (eval "$ac_link") 2>conftest.er1 5264 ac_status=$? 5265 grep -v '^ *+' conftest.er1 >conftest.err 5266 rm -f conftest.er1 5267 cat conftest.err >&5 5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5269 (exit $ac_status); } && { 5270 test -z "$ac_c_werror_flag" || 5271 test ! -s conftest.err 5272 } && test -s conftest$ac_exeext && 5273 $as_test_x conftest$ac_exeext; then 5274 ac_cv_func_accept=yes 5275else 5276 echo "$as_me: failed program was:" >&5 5277sed 's/^/| /' conftest.$ac_ext >&5 5278 5279 ac_cv_func_accept=no 5280fi 5281 5282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5283 conftest$ac_exeext conftest.$ac_ext 5284fi 5285{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5286echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5287if test $ac_cv_func_accept = yes; then 5288 tcl_checkNsl=0 5289else 5290 LIBS=$tk_oldLibs 5291fi 5292 5293 fi 5294 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5295echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5296if test "${ac_cv_func_gethostbyname+set}" = set; then 5297 echo $ECHO_N "(cached) $ECHO_C" >&6 5298else 5299 cat >conftest.$ac_ext <<_ACEOF 5300/* confdefs.h. */ 5301_ACEOF 5302cat confdefs.h >>conftest.$ac_ext 5303cat >>conftest.$ac_ext <<_ACEOF 5304/* end confdefs.h. */ 5305/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5306 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5307#define gethostbyname innocuous_gethostbyname 5308 5309/* System header to define __stub macros and hopefully few prototypes, 5310 which can conflict with char gethostbyname (); below. 5311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5312 <limits.h> exists even on freestanding compilers. */ 5313 5314#ifdef __STDC__ 5315# include <limits.h> 5316#else 5317# include <assert.h> 5318#endif 5319 5320#undef gethostbyname 5321 5322/* Override any GCC internal prototype to avoid an error. 5323 Use char because int might match the return type of a GCC 5324 builtin and then its argument prototype would still apply. */ 5325#ifdef __cplusplus 5326extern "C" 5327#endif 5328char gethostbyname (); 5329/* The GNU C library defines this for functions which it implements 5330 to always fail with ENOSYS. Some functions are actually named 5331 something starting with __ and the normal name is an alias. */ 5332#if defined __stub_gethostbyname || defined __stub___gethostbyname 5333choke me 5334#endif 5335 5336int 5337main () 5338{ 5339return gethostbyname (); 5340 ; 5341 return 0; 5342} 5343_ACEOF 5344rm -f conftest.$ac_objext conftest$ac_exeext 5345if { (ac_try="$ac_link" 5346case "(($ac_try" in 5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5348 *) ac_try_echo=$ac_try;; 5349esac 5350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5351 (eval "$ac_link") 2>conftest.er1 5352 ac_status=$? 5353 grep -v '^ *+' conftest.er1 >conftest.err 5354 rm -f conftest.er1 5355 cat conftest.err >&5 5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5357 (exit $ac_status); } && { 5358 test -z "$ac_c_werror_flag" || 5359 test ! -s conftest.err 5360 } && test -s conftest$ac_exeext && 5361 $as_test_x conftest$ac_exeext; then 5362 ac_cv_func_gethostbyname=yes 5363else 5364 echo "$as_me: failed program was:" >&5 5365sed 's/^/| /' conftest.$ac_ext >&5 5366 5367 ac_cv_func_gethostbyname=no 5368fi 5369 5370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5371 conftest$ac_exeext conftest.$ac_ext 5372fi 5373{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5374echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5375if test $ac_cv_func_gethostbyname = yes; then 5376 : 5377else 5378 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5379echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5380if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5381 echo $ECHO_N "(cached) $ECHO_C" >&6 5382else 5383 ac_check_lib_save_LIBS=$LIBS 5384LIBS="-lnsl $LIBS" 5385cat >conftest.$ac_ext <<_ACEOF 5386/* confdefs.h. */ 5387_ACEOF 5388cat confdefs.h >>conftest.$ac_ext 5389cat >>conftest.$ac_ext <<_ACEOF 5390/* end confdefs.h. */ 5391 5392/* Override any GCC internal prototype to avoid an error. 5393 Use char because int might match the return type of a GCC 5394 builtin and then its argument prototype would still apply. */ 5395#ifdef __cplusplus 5396extern "C" 5397#endif 5398char gethostbyname (); 5399int 5400main () 5401{ 5402return gethostbyname (); 5403 ; 5404 return 0; 5405} 5406_ACEOF 5407rm -f conftest.$ac_objext conftest$ac_exeext 5408if { (ac_try="$ac_link" 5409case "(($ac_try" in 5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5411 *) ac_try_echo=$ac_try;; 5412esac 5413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5414 (eval "$ac_link") 2>conftest.er1 5415 ac_status=$? 5416 grep -v '^ *+' conftest.er1 >conftest.err 5417 rm -f conftest.er1 5418 cat conftest.err >&5 5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5420 (exit $ac_status); } && { 5421 test -z "$ac_c_werror_flag" || 5422 test ! -s conftest.err 5423 } && test -s conftest$ac_exeext && 5424 $as_test_x conftest$ac_exeext; then 5425 ac_cv_lib_nsl_gethostbyname=yes 5426else 5427 echo "$as_me: failed program was:" >&5 5428sed 's/^/| /' conftest.$ac_ext >&5 5429 5430 ac_cv_lib_nsl_gethostbyname=no 5431fi 5432 5433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5434 conftest$ac_exeext conftest.$ac_ext 5435LIBS=$ac_check_lib_save_LIBS 5436fi 5437{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5438echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5439if test $ac_cv_lib_nsl_gethostbyname = yes; then 5440 LIBS="$LIBS -lnsl" 5441fi 5442 5443fi 5444 5445 5446 # TEA specific: Don't perform the eval of the libraries here because 5447 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5448 5449 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5450 5451 5452 5453 5454 { echo "$as_me:$LINENO: checking dirent.h" >&5 5455echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5456if test "${tcl_cv_dirent_h+set}" = set; then 5457 echo $ECHO_N "(cached) $ECHO_C" >&6 5458else 5459 5460 cat >conftest.$ac_ext <<_ACEOF 5461/* confdefs.h. */ 5462_ACEOF 5463cat confdefs.h >>conftest.$ac_ext 5464cat >>conftest.$ac_ext <<_ACEOF 5465/* end confdefs.h. */ 5466#include <sys/types.h> 5467#include <dirent.h> 5468int 5469main () 5470{ 5471 5472#ifndef _POSIX_SOURCE 5473# ifdef __Lynx__ 5474 /* 5475 * Generate compilation error to make the test fail: Lynx headers 5476 * are only valid if really in the POSIX environment. 5477 */ 5478 5479 missing_procedure(); 5480# endif 5481#endif 5482DIR *d; 5483struct dirent *entryPtr; 5484char *p; 5485d = opendir("foobar"); 5486entryPtr = readdir(d); 5487p = entryPtr->d_name; 5488closedir(d); 5489 5490 ; 5491 return 0; 5492} 5493_ACEOF 5494rm -f conftest.$ac_objext conftest$ac_exeext 5495if { (ac_try="$ac_link" 5496case "(($ac_try" in 5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5498 *) ac_try_echo=$ac_try;; 5499esac 5500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5501 (eval "$ac_link") 2>conftest.er1 5502 ac_status=$? 5503 grep -v '^ *+' conftest.er1 >conftest.err 5504 rm -f conftest.er1 5505 cat conftest.err >&5 5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5507 (exit $ac_status); } && { 5508 test -z "$ac_c_werror_flag" || 5509 test ! -s conftest.err 5510 } && test -s conftest$ac_exeext && 5511 $as_test_x conftest$ac_exeext; then 5512 tcl_cv_dirent_h=yes 5513else 5514 echo "$as_me: failed program was:" >&5 5515sed 's/^/| /' conftest.$ac_ext >&5 5516 5517 tcl_cv_dirent_h=no 5518fi 5519 5520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5521 conftest$ac_exeext conftest.$ac_ext 5522fi 5523{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5524echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5525 5526 if test $tcl_cv_dirent_h = no; then 5527 5528cat >>confdefs.h <<\_ACEOF 5529#define NO_DIRENT_H 1 5530_ACEOF 5531 5532 fi 5533 5534 # TEA specific: 5535 if test "${ac_cv_header_errno_h+set}" = set; then 5536 { echo "$as_me:$LINENO: checking for errno.h" >&5 5537echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5538if test "${ac_cv_header_errno_h+set}" = set; then 5539 echo $ECHO_N "(cached) $ECHO_C" >&6 5540fi 5541{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5542echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5543else 5544 # Is the header compilable? 5545{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5546echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5547cat >conftest.$ac_ext <<_ACEOF 5548/* confdefs.h. */ 5549_ACEOF 5550cat confdefs.h >>conftest.$ac_ext 5551cat >>conftest.$ac_ext <<_ACEOF 5552/* end confdefs.h. */ 5553$ac_includes_default 5554#include <errno.h> 5555_ACEOF 5556rm -f conftest.$ac_objext 5557if { (ac_try="$ac_compile" 5558case "(($ac_try" in 5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5560 *) ac_try_echo=$ac_try;; 5561esac 5562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5563 (eval "$ac_compile") 2>conftest.er1 5564 ac_status=$? 5565 grep -v '^ *+' conftest.er1 >conftest.err 5566 rm -f conftest.er1 5567 cat conftest.err >&5 5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5569 (exit $ac_status); } && { 5570 test -z "$ac_c_werror_flag" || 5571 test ! -s conftest.err 5572 } && test -s conftest.$ac_objext; then 5573 ac_header_compiler=yes 5574else 5575 echo "$as_me: failed program was:" >&5 5576sed 's/^/| /' conftest.$ac_ext >&5 5577 5578 ac_header_compiler=no 5579fi 5580 5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5582{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5583echo "${ECHO_T}$ac_header_compiler" >&6; } 5584 5585# Is the header present? 5586{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5587echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5588cat >conftest.$ac_ext <<_ACEOF 5589/* confdefs.h. */ 5590_ACEOF 5591cat confdefs.h >>conftest.$ac_ext 5592cat >>conftest.$ac_ext <<_ACEOF 5593/* end confdefs.h. */ 5594#include <errno.h> 5595_ACEOF 5596if { (ac_try="$ac_cpp conftest.$ac_ext" 5597case "(($ac_try" in 5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5599 *) ac_try_echo=$ac_try;; 5600esac 5601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5603 ac_status=$? 5604 grep -v '^ *+' conftest.er1 >conftest.err 5605 rm -f conftest.er1 5606 cat conftest.err >&5 5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5608 (exit $ac_status); } >/dev/null && { 5609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5610 test ! -s conftest.err 5611 }; then 5612 ac_header_preproc=yes 5613else 5614 echo "$as_me: failed program was:" >&5 5615sed 's/^/| /' conftest.$ac_ext >&5 5616 5617 ac_header_preproc=no 5618fi 5619 5620rm -f conftest.err conftest.$ac_ext 5621{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5622echo "${ECHO_T}$ac_header_preproc" >&6; } 5623 5624# So? What about this header? 5625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5626 yes:no: ) 5627 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5628echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5629 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5630echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5631 ac_header_preproc=yes 5632 ;; 5633 no:yes:* ) 5634 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5635echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5636 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5637echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5638 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5639echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5640 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5641echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5642 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5643echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5644 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5645echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5646 5647 ;; 5648esac 5649{ echo "$as_me:$LINENO: checking for errno.h" >&5 5650echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5651if test "${ac_cv_header_errno_h+set}" = set; then 5652 echo $ECHO_N "(cached) $ECHO_C" >&6 5653else 5654 ac_cv_header_errno_h=$ac_header_preproc 5655fi 5656{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5657echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5658 5659fi 5660if test $ac_cv_header_errno_h = yes; then 5661 : 5662else 5663 5664cat >>confdefs.h <<\_ACEOF 5665#define NO_ERRNO_H 1 5666_ACEOF 5667 5668fi 5669 5670 5671 if test "${ac_cv_header_float_h+set}" = set; then 5672 { echo "$as_me:$LINENO: checking for float.h" >&5 5673echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5674if test "${ac_cv_header_float_h+set}" = set; then 5675 echo $ECHO_N "(cached) $ECHO_C" >&6 5676fi 5677{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5678echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5679else 5680 # Is the header compilable? 5681{ echo "$as_me:$LINENO: checking float.h usability" >&5 5682echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5683cat >conftest.$ac_ext <<_ACEOF 5684/* confdefs.h. */ 5685_ACEOF 5686cat confdefs.h >>conftest.$ac_ext 5687cat >>conftest.$ac_ext <<_ACEOF 5688/* end confdefs.h. */ 5689$ac_includes_default 5690#include <float.h> 5691_ACEOF 5692rm -f conftest.$ac_objext 5693if { (ac_try="$ac_compile" 5694case "(($ac_try" in 5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5696 *) ac_try_echo=$ac_try;; 5697esac 5698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5699 (eval "$ac_compile") 2>conftest.er1 5700 ac_status=$? 5701 grep -v '^ *+' conftest.er1 >conftest.err 5702 rm -f conftest.er1 5703 cat conftest.err >&5 5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5705 (exit $ac_status); } && { 5706 test -z "$ac_c_werror_flag" || 5707 test ! -s conftest.err 5708 } && test -s conftest.$ac_objext; then 5709 ac_header_compiler=yes 5710else 5711 echo "$as_me: failed program was:" >&5 5712sed 's/^/| /' conftest.$ac_ext >&5 5713 5714 ac_header_compiler=no 5715fi 5716 5717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5718{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5719echo "${ECHO_T}$ac_header_compiler" >&6; } 5720 5721# Is the header present? 5722{ echo "$as_me:$LINENO: checking float.h presence" >&5 5723echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5724cat >conftest.$ac_ext <<_ACEOF 5725/* confdefs.h. */ 5726_ACEOF 5727cat confdefs.h >>conftest.$ac_ext 5728cat >>conftest.$ac_ext <<_ACEOF 5729/* end confdefs.h. */ 5730#include <float.h> 5731_ACEOF 5732if { (ac_try="$ac_cpp conftest.$ac_ext" 5733case "(($ac_try" in 5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5735 *) ac_try_echo=$ac_try;; 5736esac 5737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5739 ac_status=$? 5740 grep -v '^ *+' conftest.er1 >conftest.err 5741 rm -f conftest.er1 5742 cat conftest.err >&5 5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5744 (exit $ac_status); } >/dev/null && { 5745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5746 test ! -s conftest.err 5747 }; then 5748 ac_header_preproc=yes 5749else 5750 echo "$as_me: failed program was:" >&5 5751sed 's/^/| /' conftest.$ac_ext >&5 5752 5753 ac_header_preproc=no 5754fi 5755 5756rm -f conftest.err conftest.$ac_ext 5757{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5758echo "${ECHO_T}$ac_header_preproc" >&6; } 5759 5760# So? What about this header? 5761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5762 yes:no: ) 5763 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5764echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5765 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5766echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5767 ac_header_preproc=yes 5768 ;; 5769 no:yes:* ) 5770 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5771echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5772 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5773echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5774 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5775echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5776 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5777echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5778 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5779echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5780 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5781echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5782 5783 ;; 5784esac 5785{ echo "$as_me:$LINENO: checking for float.h" >&5 5786echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5787if test "${ac_cv_header_float_h+set}" = set; then 5788 echo $ECHO_N "(cached) $ECHO_C" >&6 5789else 5790 ac_cv_header_float_h=$ac_header_preproc 5791fi 5792{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5793echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5794 5795fi 5796if test $ac_cv_header_float_h = yes; then 5797 : 5798else 5799 5800cat >>confdefs.h <<\_ACEOF 5801#define NO_FLOAT_H 1 5802_ACEOF 5803 5804fi 5805 5806 5807 if test "${ac_cv_header_values_h+set}" = set; then 5808 { echo "$as_me:$LINENO: checking for values.h" >&5 5809echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5810if test "${ac_cv_header_values_h+set}" = set; then 5811 echo $ECHO_N "(cached) $ECHO_C" >&6 5812fi 5813{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5814echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5815else 5816 # Is the header compilable? 5817{ echo "$as_me:$LINENO: checking values.h usability" >&5 5818echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5819cat >conftest.$ac_ext <<_ACEOF 5820/* confdefs.h. */ 5821_ACEOF 5822cat confdefs.h >>conftest.$ac_ext 5823cat >>conftest.$ac_ext <<_ACEOF 5824/* end confdefs.h. */ 5825$ac_includes_default 5826#include <values.h> 5827_ACEOF 5828rm -f conftest.$ac_objext 5829if { (ac_try="$ac_compile" 5830case "(($ac_try" in 5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5832 *) ac_try_echo=$ac_try;; 5833esac 5834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5835 (eval "$ac_compile") 2>conftest.er1 5836 ac_status=$? 5837 grep -v '^ *+' conftest.er1 >conftest.err 5838 rm -f conftest.er1 5839 cat conftest.err >&5 5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5841 (exit $ac_status); } && { 5842 test -z "$ac_c_werror_flag" || 5843 test ! -s conftest.err 5844 } && test -s conftest.$ac_objext; then 5845 ac_header_compiler=yes 5846else 5847 echo "$as_me: failed program was:" >&5 5848sed 's/^/| /' conftest.$ac_ext >&5 5849 5850 ac_header_compiler=no 5851fi 5852 5853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5854{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5855echo "${ECHO_T}$ac_header_compiler" >&6; } 5856 5857# Is the header present? 5858{ echo "$as_me:$LINENO: checking values.h presence" >&5 5859echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5860cat >conftest.$ac_ext <<_ACEOF 5861/* confdefs.h. */ 5862_ACEOF 5863cat confdefs.h >>conftest.$ac_ext 5864cat >>conftest.$ac_ext <<_ACEOF 5865/* end confdefs.h. */ 5866#include <values.h> 5867_ACEOF 5868if { (ac_try="$ac_cpp conftest.$ac_ext" 5869case "(($ac_try" in 5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5871 *) ac_try_echo=$ac_try;; 5872esac 5873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5875 ac_status=$? 5876 grep -v '^ *+' conftest.er1 >conftest.err 5877 rm -f conftest.er1 5878 cat conftest.err >&5 5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5880 (exit $ac_status); } >/dev/null && { 5881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5882 test ! -s conftest.err 5883 }; then 5884 ac_header_preproc=yes 5885else 5886 echo "$as_me: failed program was:" >&5 5887sed 's/^/| /' conftest.$ac_ext >&5 5888 5889 ac_header_preproc=no 5890fi 5891 5892rm -f conftest.err conftest.$ac_ext 5893{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5894echo "${ECHO_T}$ac_header_preproc" >&6; } 5895 5896# So? What about this header? 5897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5898 yes:no: ) 5899 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5900echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5901 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5902echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5903 ac_header_preproc=yes 5904 ;; 5905 no:yes:* ) 5906 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5907echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5908 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5909echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5910 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5911echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5912 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5913echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5914 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5915echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5916 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5917echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5918 5919 ;; 5920esac 5921{ echo "$as_me:$LINENO: checking for values.h" >&5 5922echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5923if test "${ac_cv_header_values_h+set}" = set; then 5924 echo $ECHO_N "(cached) $ECHO_C" >&6 5925else 5926 ac_cv_header_values_h=$ac_header_preproc 5927fi 5928{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5929echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5930 5931fi 5932if test $ac_cv_header_values_h = yes; then 5933 : 5934else 5935 5936cat >>confdefs.h <<\_ACEOF 5937#define NO_VALUES_H 1 5938_ACEOF 5939 5940fi 5941 5942 5943 if test "${ac_cv_header_limits_h+set}" = set; then 5944 { echo "$as_me:$LINENO: checking for limits.h" >&5 5945echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5946if test "${ac_cv_header_limits_h+set}" = set; then 5947 echo $ECHO_N "(cached) $ECHO_C" >&6 5948fi 5949{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5950echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5951else 5952 # Is the header compilable? 5953{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5954echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5955cat >conftest.$ac_ext <<_ACEOF 5956/* confdefs.h. */ 5957_ACEOF 5958cat confdefs.h >>conftest.$ac_ext 5959cat >>conftest.$ac_ext <<_ACEOF 5960/* end confdefs.h. */ 5961$ac_includes_default 5962#include <limits.h> 5963_ACEOF 5964rm -f conftest.$ac_objext 5965if { (ac_try="$ac_compile" 5966case "(($ac_try" in 5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5968 *) ac_try_echo=$ac_try;; 5969esac 5970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5971 (eval "$ac_compile") 2>conftest.er1 5972 ac_status=$? 5973 grep -v '^ *+' conftest.er1 >conftest.err 5974 rm -f conftest.er1 5975 cat conftest.err >&5 5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5977 (exit $ac_status); } && { 5978 test -z "$ac_c_werror_flag" || 5979 test ! -s conftest.err 5980 } && test -s conftest.$ac_objext; then 5981 ac_header_compiler=yes 5982else 5983 echo "$as_me: failed program was:" >&5 5984sed 's/^/| /' conftest.$ac_ext >&5 5985 5986 ac_header_compiler=no 5987fi 5988 5989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5990{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5991echo "${ECHO_T}$ac_header_compiler" >&6; } 5992 5993# Is the header present? 5994{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5995echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5996cat >conftest.$ac_ext <<_ACEOF 5997/* confdefs.h. */ 5998_ACEOF 5999cat confdefs.h >>conftest.$ac_ext 6000cat >>conftest.$ac_ext <<_ACEOF 6001/* end confdefs.h. */ 6002#include <limits.h> 6003_ACEOF 6004if { (ac_try="$ac_cpp conftest.$ac_ext" 6005case "(($ac_try" in 6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6007 *) ac_try_echo=$ac_try;; 6008esac 6009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6011 ac_status=$? 6012 grep -v '^ *+' conftest.er1 >conftest.err 6013 rm -f conftest.er1 6014 cat conftest.err >&5 6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6016 (exit $ac_status); } >/dev/null && { 6017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6018 test ! -s conftest.err 6019 }; then 6020 ac_header_preproc=yes 6021else 6022 echo "$as_me: failed program was:" >&5 6023sed 's/^/| /' conftest.$ac_ext >&5 6024 6025 ac_header_preproc=no 6026fi 6027 6028rm -f conftest.err conftest.$ac_ext 6029{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6030echo "${ECHO_T}$ac_header_preproc" >&6; } 6031 6032# So? What about this header? 6033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6034 yes:no: ) 6035 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 6036echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6037 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 6038echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 6039 ac_header_preproc=yes 6040 ;; 6041 no:yes:* ) 6042 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 6043echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 6044 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 6045echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 6046 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 6047echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 6048 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 6049echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 6050 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 6051echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 6052 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 6053echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 6054 6055 ;; 6056esac 6057{ echo "$as_me:$LINENO: checking for limits.h" >&5 6058echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 6059if test "${ac_cv_header_limits_h+set}" = set; then 6060 echo $ECHO_N "(cached) $ECHO_C" >&6 6061else 6062 ac_cv_header_limits_h=$ac_header_preproc 6063fi 6064{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 6065echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 6066 6067fi 6068if test $ac_cv_header_limits_h = yes; then 6069 6070cat >>confdefs.h <<\_ACEOF 6071#define HAVE_LIMITS_H 1 6072_ACEOF 6073 6074else 6075 6076cat >>confdefs.h <<\_ACEOF 6077#define NO_LIMITS_H 1 6078_ACEOF 6079 6080fi 6081 6082 6083 if test "${ac_cv_header_stdlib_h+set}" = set; then 6084 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 6085echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6086if test "${ac_cv_header_stdlib_h+set}" = set; then 6087 echo $ECHO_N "(cached) $ECHO_C" >&6 6088fi 6089{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6090echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6091else 6092 # Is the header compilable? 6093{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 6094echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 6095cat >conftest.$ac_ext <<_ACEOF 6096/* confdefs.h. */ 6097_ACEOF 6098cat confdefs.h >>conftest.$ac_ext 6099cat >>conftest.$ac_ext <<_ACEOF 6100/* end confdefs.h. */ 6101$ac_includes_default 6102#include <stdlib.h> 6103_ACEOF 6104rm -f conftest.$ac_objext 6105if { (ac_try="$ac_compile" 6106case "(($ac_try" in 6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6108 *) ac_try_echo=$ac_try;; 6109esac 6110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6111 (eval "$ac_compile") 2>conftest.er1 6112 ac_status=$? 6113 grep -v '^ *+' conftest.er1 >conftest.err 6114 rm -f conftest.er1 6115 cat conftest.err >&5 6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6117 (exit $ac_status); } && { 6118 test -z "$ac_c_werror_flag" || 6119 test ! -s conftest.err 6120 } && test -s conftest.$ac_objext; then 6121 ac_header_compiler=yes 6122else 6123 echo "$as_me: failed program was:" >&5 6124sed 's/^/| /' conftest.$ac_ext >&5 6125 6126 ac_header_compiler=no 6127fi 6128 6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6130{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6131echo "${ECHO_T}$ac_header_compiler" >&6; } 6132 6133# Is the header present? 6134{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 6135echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 6136cat >conftest.$ac_ext <<_ACEOF 6137/* confdefs.h. */ 6138_ACEOF 6139cat confdefs.h >>conftest.$ac_ext 6140cat >>conftest.$ac_ext <<_ACEOF 6141/* end confdefs.h. */ 6142#include <stdlib.h> 6143_ACEOF 6144if { (ac_try="$ac_cpp conftest.$ac_ext" 6145case "(($ac_try" in 6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6147 *) ac_try_echo=$ac_try;; 6148esac 6149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6151 ac_status=$? 6152 grep -v '^ *+' conftest.er1 >conftest.err 6153 rm -f conftest.er1 6154 cat conftest.err >&5 6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6156 (exit $ac_status); } >/dev/null && { 6157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6158 test ! -s conftest.err 6159 }; then 6160 ac_header_preproc=yes 6161else 6162 echo "$as_me: failed program was:" >&5 6163sed 's/^/| /' conftest.$ac_ext >&5 6164 6165 ac_header_preproc=no 6166fi 6167 6168rm -f conftest.err conftest.$ac_ext 6169{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6170echo "${ECHO_T}$ac_header_preproc" >&6; } 6171 6172# So? What about this header? 6173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6174 yes:no: ) 6175 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 6176echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6177 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 6178echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 6179 ac_header_preproc=yes 6180 ;; 6181 no:yes:* ) 6182 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 6183echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 6184 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 6185echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 6186 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 6187echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 6188 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 6189echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 6190 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 6191echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 6192 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 6193echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 6194 6195 ;; 6196esac 6197{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 6198echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6199if test "${ac_cv_header_stdlib_h+set}" = set; then 6200 echo $ECHO_N "(cached) $ECHO_C" >&6 6201else 6202 ac_cv_header_stdlib_h=$ac_header_preproc 6203fi 6204{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6205echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6206 6207fi 6208if test $ac_cv_header_stdlib_h = yes; then 6209 tcl_ok=1 6210else 6211 tcl_ok=0 6212fi 6213 6214 6215 cat >conftest.$ac_ext <<_ACEOF 6216/* confdefs.h. */ 6217_ACEOF 6218cat confdefs.h >>conftest.$ac_ext 6219cat >>conftest.$ac_ext <<_ACEOF 6220/* end confdefs.h. */ 6221#include <stdlib.h> 6222 6223_ACEOF 6224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6225 $EGREP "strtol" >/dev/null 2>&1; then 6226 : 6227else 6228 tcl_ok=0 6229fi 6230rm -f -r conftest* 6231 6232 cat >conftest.$ac_ext <<_ACEOF 6233/* confdefs.h. */ 6234_ACEOF 6235cat confdefs.h >>conftest.$ac_ext 6236cat >>conftest.$ac_ext <<_ACEOF 6237/* end confdefs.h. */ 6238#include <stdlib.h> 6239 6240_ACEOF 6241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6242 $EGREP "strtoul" >/dev/null 2>&1; then 6243 : 6244else 6245 tcl_ok=0 6246fi 6247rm -f -r conftest* 6248 6249 cat >conftest.$ac_ext <<_ACEOF 6250/* confdefs.h. */ 6251_ACEOF 6252cat confdefs.h >>conftest.$ac_ext 6253cat >>conftest.$ac_ext <<_ACEOF 6254/* end confdefs.h. */ 6255#include <stdlib.h> 6256 6257_ACEOF 6258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6259 $EGREP "strtod" >/dev/null 2>&1; then 6260 : 6261else 6262 tcl_ok=0 6263fi 6264rm -f -r conftest* 6265 6266 if test $tcl_ok = 0; then 6267 6268cat >>confdefs.h <<\_ACEOF 6269#define NO_STDLIB_H 1 6270_ACEOF 6271 6272 fi 6273 if test "${ac_cv_header_string_h+set}" = set; then 6274 { echo "$as_me:$LINENO: checking for string.h" >&5 6275echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6276if test "${ac_cv_header_string_h+set}" = set; then 6277 echo $ECHO_N "(cached) $ECHO_C" >&6 6278fi 6279{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6280echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6281else 6282 # Is the header compilable? 6283{ echo "$as_me:$LINENO: checking string.h usability" >&5 6284echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6285cat >conftest.$ac_ext <<_ACEOF 6286/* confdefs.h. */ 6287_ACEOF 6288cat confdefs.h >>conftest.$ac_ext 6289cat >>conftest.$ac_ext <<_ACEOF 6290/* end confdefs.h. */ 6291$ac_includes_default 6292#include <string.h> 6293_ACEOF 6294rm -f conftest.$ac_objext 6295if { (ac_try="$ac_compile" 6296case "(($ac_try" in 6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6298 *) ac_try_echo=$ac_try;; 6299esac 6300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6301 (eval "$ac_compile") 2>conftest.er1 6302 ac_status=$? 6303 grep -v '^ *+' conftest.er1 >conftest.err 6304 rm -f conftest.er1 6305 cat conftest.err >&5 6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6307 (exit $ac_status); } && { 6308 test -z "$ac_c_werror_flag" || 6309 test ! -s conftest.err 6310 } && test -s conftest.$ac_objext; then 6311 ac_header_compiler=yes 6312else 6313 echo "$as_me: failed program was:" >&5 6314sed 's/^/| /' conftest.$ac_ext >&5 6315 6316 ac_header_compiler=no 6317fi 6318 6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6320{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6321echo "${ECHO_T}$ac_header_compiler" >&6; } 6322 6323# Is the header present? 6324{ echo "$as_me:$LINENO: checking string.h presence" >&5 6325echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6326cat >conftest.$ac_ext <<_ACEOF 6327/* confdefs.h. */ 6328_ACEOF 6329cat confdefs.h >>conftest.$ac_ext 6330cat >>conftest.$ac_ext <<_ACEOF 6331/* end confdefs.h. */ 6332#include <string.h> 6333_ACEOF 6334if { (ac_try="$ac_cpp conftest.$ac_ext" 6335case "(($ac_try" in 6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6337 *) ac_try_echo=$ac_try;; 6338esac 6339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6341 ac_status=$? 6342 grep -v '^ *+' conftest.er1 >conftest.err 6343 rm -f conftest.er1 6344 cat conftest.err >&5 6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6346 (exit $ac_status); } >/dev/null && { 6347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6348 test ! -s conftest.err 6349 }; then 6350 ac_header_preproc=yes 6351else 6352 echo "$as_me: failed program was:" >&5 6353sed 's/^/| /' conftest.$ac_ext >&5 6354 6355 ac_header_preproc=no 6356fi 6357 6358rm -f conftest.err conftest.$ac_ext 6359{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6360echo "${ECHO_T}$ac_header_preproc" >&6; } 6361 6362# So? What about this header? 6363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6364 yes:no: ) 6365 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6366echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6367 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6368echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6369 ac_header_preproc=yes 6370 ;; 6371 no:yes:* ) 6372 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6373echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6374 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6375echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6376 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6377echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6378 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6379echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6380 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6381echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6382 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6383echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6384 6385 ;; 6386esac 6387{ echo "$as_me:$LINENO: checking for string.h" >&5 6388echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6389if test "${ac_cv_header_string_h+set}" = set; then 6390 echo $ECHO_N "(cached) $ECHO_C" >&6 6391else 6392 ac_cv_header_string_h=$ac_header_preproc 6393fi 6394{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6395echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6396 6397fi 6398if test $ac_cv_header_string_h = yes; then 6399 tcl_ok=1 6400else 6401 tcl_ok=0 6402fi 6403 6404 6405 cat >conftest.$ac_ext <<_ACEOF 6406/* confdefs.h. */ 6407_ACEOF 6408cat confdefs.h >>conftest.$ac_ext 6409cat >>conftest.$ac_ext <<_ACEOF 6410/* end confdefs.h. */ 6411#include <string.h> 6412 6413_ACEOF 6414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6415 $EGREP "strstr" >/dev/null 2>&1; then 6416 : 6417else 6418 tcl_ok=0 6419fi 6420rm -f -r conftest* 6421 6422 cat >conftest.$ac_ext <<_ACEOF 6423/* confdefs.h. */ 6424_ACEOF 6425cat confdefs.h >>conftest.$ac_ext 6426cat >>conftest.$ac_ext <<_ACEOF 6427/* end confdefs.h. */ 6428#include <string.h> 6429 6430_ACEOF 6431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6432 $EGREP "strerror" >/dev/null 2>&1; then 6433 : 6434else 6435 tcl_ok=0 6436fi 6437rm -f -r conftest* 6438 6439 6440 # See also memmove check below for a place where NO_STRING_H can be 6441 # set and why. 6442 6443 if test $tcl_ok = 0; then 6444 6445cat >>confdefs.h <<\_ACEOF 6446#define NO_STRING_H 1 6447_ACEOF 6448 6449 fi 6450 6451 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6452 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6453echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6454if test "${ac_cv_header_sys_wait_h+set}" = set; then 6455 echo $ECHO_N "(cached) $ECHO_C" >&6 6456fi 6457{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6458echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6459else 6460 # Is the header compilable? 6461{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6462echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6463cat >conftest.$ac_ext <<_ACEOF 6464/* confdefs.h. */ 6465_ACEOF 6466cat confdefs.h >>conftest.$ac_ext 6467cat >>conftest.$ac_ext <<_ACEOF 6468/* end confdefs.h. */ 6469$ac_includes_default 6470#include <sys/wait.h> 6471_ACEOF 6472rm -f conftest.$ac_objext 6473if { (ac_try="$ac_compile" 6474case "(($ac_try" in 6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6476 *) ac_try_echo=$ac_try;; 6477esac 6478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6479 (eval "$ac_compile") 2>conftest.er1 6480 ac_status=$? 6481 grep -v '^ *+' conftest.er1 >conftest.err 6482 rm -f conftest.er1 6483 cat conftest.err >&5 6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6485 (exit $ac_status); } && { 6486 test -z "$ac_c_werror_flag" || 6487 test ! -s conftest.err 6488 } && test -s conftest.$ac_objext; then 6489 ac_header_compiler=yes 6490else 6491 echo "$as_me: failed program was:" >&5 6492sed 's/^/| /' conftest.$ac_ext >&5 6493 6494 ac_header_compiler=no 6495fi 6496 6497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6498{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6499echo "${ECHO_T}$ac_header_compiler" >&6; } 6500 6501# Is the header present? 6502{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6503echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6504cat >conftest.$ac_ext <<_ACEOF 6505/* confdefs.h. */ 6506_ACEOF 6507cat confdefs.h >>conftest.$ac_ext 6508cat >>conftest.$ac_ext <<_ACEOF 6509/* end confdefs.h. */ 6510#include <sys/wait.h> 6511_ACEOF 6512if { (ac_try="$ac_cpp conftest.$ac_ext" 6513case "(($ac_try" in 6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6515 *) ac_try_echo=$ac_try;; 6516esac 6517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6519 ac_status=$? 6520 grep -v '^ *+' conftest.er1 >conftest.err 6521 rm -f conftest.er1 6522 cat conftest.err >&5 6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6524 (exit $ac_status); } >/dev/null && { 6525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6526 test ! -s conftest.err 6527 }; then 6528 ac_header_preproc=yes 6529else 6530 echo "$as_me: failed program was:" >&5 6531sed 's/^/| /' conftest.$ac_ext >&5 6532 6533 ac_header_preproc=no 6534fi 6535 6536rm -f conftest.err conftest.$ac_ext 6537{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6538echo "${ECHO_T}$ac_header_preproc" >&6; } 6539 6540# So? What about this header? 6541case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6542 yes:no: ) 6543 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6544echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6545 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6546echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6547 ac_header_preproc=yes 6548 ;; 6549 no:yes:* ) 6550 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6551echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6552 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6553echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6554 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6555echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6556 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6557echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6558 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6559echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6560 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6561echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6562 6563 ;; 6564esac 6565{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6566echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6567if test "${ac_cv_header_sys_wait_h+set}" = set; then 6568 echo $ECHO_N "(cached) $ECHO_C" >&6 6569else 6570 ac_cv_header_sys_wait_h=$ac_header_preproc 6571fi 6572{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6573echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6574 6575fi 6576if test $ac_cv_header_sys_wait_h = yes; then 6577 : 6578else 6579 6580cat >>confdefs.h <<\_ACEOF 6581#define NO_SYS_WAIT_H 1 6582_ACEOF 6583 6584fi 6585 6586 6587 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6588 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6589echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6590if test "${ac_cv_header_dlfcn_h+set}" = set; then 6591 echo $ECHO_N "(cached) $ECHO_C" >&6 6592fi 6593{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6594echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6595else 6596 # Is the header compilable? 6597{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6598echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6599cat >conftest.$ac_ext <<_ACEOF 6600/* confdefs.h. */ 6601_ACEOF 6602cat confdefs.h >>conftest.$ac_ext 6603cat >>conftest.$ac_ext <<_ACEOF 6604/* end confdefs.h. */ 6605$ac_includes_default 6606#include <dlfcn.h> 6607_ACEOF 6608rm -f conftest.$ac_objext 6609if { (ac_try="$ac_compile" 6610case "(($ac_try" in 6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6612 *) ac_try_echo=$ac_try;; 6613esac 6614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6615 (eval "$ac_compile") 2>conftest.er1 6616 ac_status=$? 6617 grep -v '^ *+' conftest.er1 >conftest.err 6618 rm -f conftest.er1 6619 cat conftest.err >&5 6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6621 (exit $ac_status); } && { 6622 test -z "$ac_c_werror_flag" || 6623 test ! -s conftest.err 6624 } && test -s conftest.$ac_objext; then 6625 ac_header_compiler=yes 6626else 6627 echo "$as_me: failed program was:" >&5 6628sed 's/^/| /' conftest.$ac_ext >&5 6629 6630 ac_header_compiler=no 6631fi 6632 6633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6634{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6635echo "${ECHO_T}$ac_header_compiler" >&6; } 6636 6637# Is the header present? 6638{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6639echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6640cat >conftest.$ac_ext <<_ACEOF 6641/* confdefs.h. */ 6642_ACEOF 6643cat confdefs.h >>conftest.$ac_ext 6644cat >>conftest.$ac_ext <<_ACEOF 6645/* end confdefs.h. */ 6646#include <dlfcn.h> 6647_ACEOF 6648if { (ac_try="$ac_cpp conftest.$ac_ext" 6649case "(($ac_try" in 6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6651 *) ac_try_echo=$ac_try;; 6652esac 6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6655 ac_status=$? 6656 grep -v '^ *+' conftest.er1 >conftest.err 6657 rm -f conftest.er1 6658 cat conftest.err >&5 6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6660 (exit $ac_status); } >/dev/null && { 6661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6662 test ! -s conftest.err 6663 }; then 6664 ac_header_preproc=yes 6665else 6666 echo "$as_me: failed program was:" >&5 6667sed 's/^/| /' conftest.$ac_ext >&5 6668 6669 ac_header_preproc=no 6670fi 6671 6672rm -f conftest.err conftest.$ac_ext 6673{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6674echo "${ECHO_T}$ac_header_preproc" >&6; } 6675 6676# So? What about this header? 6677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6678 yes:no: ) 6679 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6680echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6681 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6682echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6683 ac_header_preproc=yes 6684 ;; 6685 no:yes:* ) 6686 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6687echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6688 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6689echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6690 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6691echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6692 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6693echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6694 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6695echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6696 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6697echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6698 6699 ;; 6700esac 6701{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6702echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6703if test "${ac_cv_header_dlfcn_h+set}" = set; then 6704 echo $ECHO_N "(cached) $ECHO_C" >&6 6705else 6706 ac_cv_header_dlfcn_h=$ac_header_preproc 6707fi 6708{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6709echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6710 6711fi 6712if test $ac_cv_header_dlfcn_h = yes; then 6713 : 6714else 6715 6716cat >>confdefs.h <<\_ACEOF 6717#define NO_DLFCN_H 1 6718_ACEOF 6719 6720fi 6721 6722 6723 6724 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6725 6726for ac_header in sys/param.h 6727do 6728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6730 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6733 echo $ECHO_N "(cached) $ECHO_C" >&6 6734fi 6735ac_res=`eval echo '${'$as_ac_Header'}'` 6736 { echo "$as_me:$LINENO: result: $ac_res" >&5 6737echo "${ECHO_T}$ac_res" >&6; } 6738else 6739 # Is the header compilable? 6740{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6741echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6742cat >conftest.$ac_ext <<_ACEOF 6743/* confdefs.h. */ 6744_ACEOF 6745cat confdefs.h >>conftest.$ac_ext 6746cat >>conftest.$ac_ext <<_ACEOF 6747/* end confdefs.h. */ 6748$ac_includes_default 6749#include <$ac_header> 6750_ACEOF 6751rm -f conftest.$ac_objext 6752if { (ac_try="$ac_compile" 6753case "(($ac_try" in 6754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6755 *) ac_try_echo=$ac_try;; 6756esac 6757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6758 (eval "$ac_compile") 2>conftest.er1 6759 ac_status=$? 6760 grep -v '^ *+' conftest.er1 >conftest.err 6761 rm -f conftest.er1 6762 cat conftest.err >&5 6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6764 (exit $ac_status); } && { 6765 test -z "$ac_c_werror_flag" || 6766 test ! -s conftest.err 6767 } && test -s conftest.$ac_objext; then 6768 ac_header_compiler=yes 6769else 6770 echo "$as_me: failed program was:" >&5 6771sed 's/^/| /' conftest.$ac_ext >&5 6772 6773 ac_header_compiler=no 6774fi 6775 6776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6777{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6778echo "${ECHO_T}$ac_header_compiler" >&6; } 6779 6780# Is the header present? 6781{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6782echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6783cat >conftest.$ac_ext <<_ACEOF 6784/* confdefs.h. */ 6785_ACEOF 6786cat confdefs.h >>conftest.$ac_ext 6787cat >>conftest.$ac_ext <<_ACEOF 6788/* end confdefs.h. */ 6789#include <$ac_header> 6790_ACEOF 6791if { (ac_try="$ac_cpp conftest.$ac_ext" 6792case "(($ac_try" in 6793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6794 *) ac_try_echo=$ac_try;; 6795esac 6796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6798 ac_status=$? 6799 grep -v '^ *+' conftest.er1 >conftest.err 6800 rm -f conftest.er1 6801 cat conftest.err >&5 6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6803 (exit $ac_status); } >/dev/null && { 6804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6805 test ! -s conftest.err 6806 }; then 6807 ac_header_preproc=yes 6808else 6809 echo "$as_me: failed program was:" >&5 6810sed 's/^/| /' conftest.$ac_ext >&5 6811 6812 ac_header_preproc=no 6813fi 6814 6815rm -f conftest.err conftest.$ac_ext 6816{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6817echo "${ECHO_T}$ac_header_preproc" >&6; } 6818 6819# So? What about this header? 6820case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6821 yes:no: ) 6822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6823echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6825echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6826 ac_header_preproc=yes 6827 ;; 6828 no:yes:* ) 6829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6830echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6832echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6834echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6836echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6838echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6840echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6841 6842 ;; 6843esac 6844{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6847 echo $ECHO_N "(cached) $ECHO_C" >&6 6848else 6849 eval "$as_ac_Header=\$ac_header_preproc" 6850fi 6851ac_res=`eval echo '${'$as_ac_Header'}'` 6852 { echo "$as_me:$LINENO: result: $ac_res" >&5 6853echo "${ECHO_T}$ac_res" >&6; } 6854 6855fi 6856if test `eval echo '${'$as_ac_Header'}'` = yes; then 6857 cat >>confdefs.h <<_ACEOF 6858#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6859_ACEOF 6860 6861fi 6862 6863done 6864 6865 6866 # Let the user call this, because if it triggers, they will 6867 # need a compat/strtod.c that is correct. Users can also 6868 # use Tcl_GetDouble(FromObj) instead. 6869 #TEA_BUGGY_STRTOD 6870 fi 6871 6872 6873 6874 # 6875 # Ok, lets find the tkimg configuration 6876 # First, look for one uninstalled. 6877 # the alternative search directory is invoked by --with-tkimg 6878 # 6879 6880 if test x"${no_tkimg}" = x ; then 6881 # we reset no_tkimg in case something fails here 6882 no_tkimg=true 6883 6884# Check whether --with-tkimg was given. 6885if test "${with_tkimg+set}" = set; then 6886 withval=$with_tkimg; with_tkimgconfig=${withval} 6887fi 6888 6889 { echo "$as_me:$LINENO: checking for tkimg configuration" >&5 6890echo $ECHO_N "checking for tkimg configuration... $ECHO_C" >&6; } 6891 if test "${ac_cv_c_tkimgconfig+set}" = set; then 6892 echo $ECHO_N "(cached) $ECHO_C" >&6 6893else 6894 6895 6896 # First check to see if --with-tkimg was specified. 6897 if test x"${with_tkimgconfig}" != x ; then 6898 case ${with_tkimgconfig} in 6899 */tkimgConfig.sh ) 6900 if test -f ${with_tkimgconfig}; then 6901 { echo "$as_me:$LINENO: WARNING: --with-tkimg argument should refer to directory containing tkimgConfig.sh, not to tkimgConfig.sh itself" >&5 6902echo "$as_me: WARNING: --with-tkimg argument should refer to directory containing tkimgConfig.sh, not to tkimgConfig.sh itself" >&2;} 6903 with_tkimgconfig=`echo ${with_tkimgconfig} | sed 's!/tkimgConfig\.sh$!!'` 6904 fi;; 6905 esac 6906 if test -f "${with_tkimgconfig}/tkimgConfig.sh" ; then 6907 ac_cv_c_tkimgconfig=`(cd ${with_tkimgconfig}; pwd)` 6908 else 6909 { { echo "$as_me:$LINENO: error: ${with_tkimgconfig} directory doesn't contain tkimgConfig.sh" >&5 6910echo "$as_me: error: ${with_tkimgconfig} directory doesn't contain tkimgConfig.sh" >&2;} 6911 { (exit 1); exit 1; }; } 6912 fi 6913 fi 6914 6915 # then check for a private tkimg installation 6916 if test x"${ac_cv_c_tkimgconfig}" = x ; then 6917 for i in \ 6918 ../tkimg \ 6919 `ls -dr ../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6920 `ls -dr ../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6921 `ls -dr ../tkimg*[0-9].[0-9] 2>/dev/null` \ 6922 `ls -dr ../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6923 ../../tkimg \ 6924 `ls -dr ../../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6925 `ls -dr ../../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6926 `ls -dr ../../tkimg*[0-9].[0-9] 2>/dev/null` \ 6927 `ls -dr ../../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6928 ../../../tkimg \ 6929 `ls -dr ../../../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6930 `ls -dr ../../../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6931 `ls -dr ../../../tkimg*[0-9].[0-9] 2>/dev/null` \ 6932 `ls -dr ../../../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6933 ${srcdir}/../tkimg \ 6934 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6935 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6936 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9] 2>/dev/null` \ 6937 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6938 ; do 6939 if test -f "$i/tkimgConfig.sh" ; then 6940 ac_cv_c_tkimgconfig=`(cd $i; pwd)` 6941 break 6942 fi 6943 if test -f "$i/unix/tkimgConfig.sh" ; then 6944 ac_cv_c_tkimgconfig=`(cd $i/unix; pwd)` 6945 break 6946 fi 6947 done 6948 fi 6949 6950 # check in a few common install locations 6951 if test x"${ac_cv_c_tkimgconfig}" = x ; then 6952 for i in `ls -d ${libdir} 2>/dev/null` \ 6953 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 6954 `ls -d ${prefix}/lib 2>/dev/null` \ 6955 `ls -d /usr/local/lib 2>/dev/null` \ 6956 `ls -d /usr/contrib/lib 2>/dev/null` \ 6957 `ls -d /usr/lib 2>/dev/null` \ 6958 `ls -d /usr/lib64 2>/dev/null` \ 6959 ; do 6960 if test -f "$i/tkimgConfig.sh" ; then 6961 ac_cv_c_tkimgconfig=`(cd $i; pwd)` 6962 break 6963 fi 6964 done 6965 fi 6966 6967fi 6968 6969 6970 if test x"${ac_cv_c_tkimgconfig}" = x ; then 6971 tkimg_BIN_DIR="# no tkimg configs found" 6972 { echo "$as_me:$LINENO: WARNING: Cannot find tkimg configuration definitions" >&5 6973echo "$as_me: WARNING: Cannot find tkimg configuration definitions" >&2;} 6974 exit 0 6975 else 6976 no_tkimg= 6977 tkimg_BIN_DIR=${ac_cv_c_tkimgconfig} 6978 { echo "$as_me:$LINENO: result: found $tkimg_BIN_DIR/tkimgConfig.sh" >&5 6979echo "${ECHO_T}found $tkimg_BIN_DIR/tkimgConfig.sh" >&6; } 6980 fi 6981 fi 6982 6983 6984 { echo "$as_me:$LINENO: checking for existence of ${tkimg_BIN_DIR}/tkimgConfig.sh" >&5 6985echo $ECHO_N "checking for existence of ${tkimg_BIN_DIR}/tkimgConfig.sh... $ECHO_C" >&6; } 6986 6987 if test -f "${tkimg_BIN_DIR}/tkimgConfig.sh" ; then 6988 { echo "$as_me:$LINENO: result: loading" >&5 6989echo "${ECHO_T}loading" >&6; } 6990 . "${tkimg_BIN_DIR}/tkimgConfig.sh" 6991 else 6992 { echo "$as_me:$LINENO: result: file not found" >&5 6993echo "${ECHO_T}file not found" >&6; } 6994 fi 6995 6996 # 6997 # If the tkimg_BIN_DIR is the build directory (not the install directory), 6998 # then set the common variable name to the value of the build variables. 6999 # For example, the variable tkimg_LIB_SPEC will be set to the value 7000 # of tkimg_BUILD_LIB_SPEC. An extension should make use of tkimg_LIB_SPEC 7001 # instead of tkimg_BUILD_LIB_SPEC since it will work with both an 7002 # installed and uninstalled version of Tcl. 7003 # 7004 7005 if test -f "${tkimg_BIN_DIR}/Makefile" ; then 7006 { echo "$as_me:$LINENO: WARNING: Found Makefile - using build library specs for tkimg" >&5 7007echo "$as_me: WARNING: Found Makefile - using build library specs for tkimg" >&2;} 7008 tkimg_LIB_SPEC=${tkimg_BUILD_LIB_SPEC} 7009 tkimg_STUB_LIB_SPEC=${tkimg_BUILD_STUB_LIB_SPEC} 7010 tkimg_STUB_LIB_PATH=${tkimg_BUILD_STUB_LIB_PATH} 7011 fi 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 # Allow the caller to prevent this auto-check by specifying any 2nd arg 7025 if test "x" = x; then 7026 7027 # Check both upper and lower-case variants 7028 # If a dev wanted non-stubs libs, this function could take an option 7029 # to not use _STUB in the paths below 7030 if test "x${tkimg_STUB_LIB_SPEC}" = x; then 7031 7032 { echo "$as_me:$LINENO: checking For TKIMG_STUB library for LIBS" >&5 7033echo $ECHO_N "checking For TKIMG_STUB library for LIBS... $ECHO_C" >&6; } 7034 # This simplifies the use of stub libraries by automatically adding 7035 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7036 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7037 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7038 if test "x${TKIMG_STUB_LIB_SPEC}" != "x" ; then 7039 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7040 7041 vars="\"`${CYGPATH} ${TKIMG_STUB_LIB_PATH}`\"" 7042 for i in $vars; do 7043 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7044 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7045 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7046 fi 7047 PKG_LIBS="$PKG_LIBS $i" 7048 done 7049 7050 7051 { echo "$as_me:$LINENO: result: using TKIMG_STUB_LIB_PATH ${TKIMG_STUB_LIB_PATH}" >&5 7052echo "${ECHO_T}using TKIMG_STUB_LIB_PATH ${TKIMG_STUB_LIB_PATH}" >&6; } 7053 else 7054 7055 vars="${TKIMG_STUB_LIB_SPEC}" 7056 for i in $vars; do 7057 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7058 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7059 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7060 fi 7061 PKG_LIBS="$PKG_LIBS $i" 7062 done 7063 7064 7065 { echo "$as_me:$LINENO: result: using TKIMG_STUB_LIB_SPEC ${TKIMG_STUB_LIB_SPEC}" >&5 7066echo "${ECHO_T}using TKIMG_STUB_LIB_SPEC ${TKIMG_STUB_LIB_SPEC}" >&6; } 7067 fi 7068 else 7069 { echo "$as_me:$LINENO: result: file not found" >&5 7070echo "${ECHO_T}file not found" >&6; } 7071 fi 7072 7073else 7074 7075 { echo "$as_me:$LINENO: checking For tkimg_STUB library for LIBS" >&5 7076echo $ECHO_N "checking For tkimg_STUB library for LIBS... $ECHO_C" >&6; } 7077 # This simplifies the use of stub libraries by automatically adding 7078 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7079 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7080 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7081 if test "x${tkimg_STUB_LIB_SPEC}" != "x" ; then 7082 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7083 7084 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\"" 7085 for i in $vars; do 7086 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7087 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7088 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7089 fi 7090 PKG_LIBS="$PKG_LIBS $i" 7091 done 7092 7093 7094 { echo "$as_me:$LINENO: result: using tkimg_STUB_LIB_PATH ${tkimg_STUB_LIB_PATH}" >&5 7095echo "${ECHO_T}using tkimg_STUB_LIB_PATH ${tkimg_STUB_LIB_PATH}" >&6; } 7096 else 7097 7098 vars="${tkimg_STUB_LIB_SPEC}" 7099 for i in $vars; do 7100 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7101 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7102 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7103 fi 7104 PKG_LIBS="$PKG_LIBS $i" 7105 done 7106 7107 7108 { echo "$as_me:$LINENO: result: using tkimg_STUB_LIB_SPEC ${tkimg_STUB_LIB_SPEC}" >&5 7109echo "${ECHO_T}using tkimg_STUB_LIB_SPEC ${tkimg_STUB_LIB_SPEC}" >&6; } 7110 fi 7111 else 7112 { echo "$as_me:$LINENO: result: file not found" >&5 7113echo "${ECHO_T}file not found" >&6; } 7114 fi 7115 7116fi 7117 7118 7119fi 7120 7121 7122 7123 7124#-------------------------------------------------------------------- 7125# Compute an absolute path to the src directory of module 'tkimg' so 7126# that we are able to find its headers even if they are not installed. 7127#-------------------------------------------------------------------- 7128 7129case $tkimg_SRC_DIR in 7130/*) tkimg_SRC_PATH=$tkimg_SRC_DIR 7131 ;; 7132*) # SRC_DIR relative, splice with BUILD_PATH 7133 tkimg_SRC_PATH="`dirname $tkimg_BUILD_STUB_LIB_PATH`/$tkimg_SRC_DIR" 7134esac 7135 7136tkimg_BUILD_PATH="`dirname $tkimg_BUILD_STUB_LIB_PATH`" 7137 7138if test "${TEA_PLATFORM}" = "windows" ; then 7139 tkimg_SRC_PATH="`$CYGPATH $tkimg_SRC_PATH`" 7140 tkimg_BUILD_PATH="`$CYGPATH $tkimg_BUILD_PATH`" 7141fi 7142 7143 7144 7145 7146 7147#----------------------------------------------------------------------- 7148# Specify the C source files to compile in TEA_ADD_SOURCES, 7149# public headers that need to be installed in TEA_ADD_HEADERS, 7150# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 7151# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 7152# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 7153# and PKG_TCL_SOURCES. 7154#----------------------------------------------------------------------- 7155 7156 7157 vars="raw.c" 7158 for i in $vars; do 7159 case $i in 7160 \$*) 7161 # allow $-var names 7162 PKG_SOURCES="$PKG_SOURCES $i" 7163 PKG_OBJECTS="$PKG_OBJECTS $i" 7164 ;; 7165 *) 7166 # check for existence - allows for generic/win/unix VPATH 7167 # To add more dirs here (like 'src'), you have to update VPATH 7168 # in Makefile.in as well 7169 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7170 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7171 -a ! -f "${srcdir}/macosx/$i" \ 7172 ; then 7173 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7174echo "$as_me: error: could not find source file '$i'" >&2;} 7175 { (exit 1); exit 1; }; } 7176 fi 7177 PKG_SOURCES="$PKG_SOURCES $i" 7178 # this assumes it is in a VPATH dir 7179 i=`basename $i` 7180 # handle user calling this before or after TEA_SETUP_COMPILER 7181 if test x"${OBJEXT}" != x ; then 7182 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7183 else 7184 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7185 fi 7186 PKG_OBJECTS="$PKG_OBJECTS $j" 7187 ;; 7188 esac 7189 done 7190 7191 7192 7193 7194 vars="" 7195 for i in $vars; do 7196 # check for existence, be strict because it is installed 7197 if test ! -f "${srcdir}/$i" ; then 7198 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 7199echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 7200 { (exit 1); exit 1; }; } 7201 fi 7202 PKG_HEADERS="$PKG_HEADERS $i" 7203 done 7204 7205 7206 7207 vars="-I\"`\${CYGPATH} \${tkimg_SRC_PATH}`\"" 7208 for i in $vars; do 7209 PKG_INCLUDES="$PKG_INCLUDES $i" 7210 done 7211 7212 7213 7214 vars="-I." 7215 for i in $vars; do 7216 PKG_INCLUDES="$PKG_INCLUDES $i" 7217 done 7218 7219 7220 7221if test "${TEA_PLATFORM}" = "windows" ; then 7222 7223 vars="" 7224 for i in $vars; do 7225 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7226 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7227 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7228 fi 7229 PKG_LIBS="$PKG_LIBS $i" 7230 done 7231 7232 7233else 7234 7235 vars="${MATH_LIBS}" 7236 for i in $vars; do 7237 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7238 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7239 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7240 fi 7241 PKG_LIBS="$PKG_LIBS $i" 7242 done 7243 7244 7245fi 7246 7247 7248 PKG_CFLAGS="$PKG_CFLAGS " 7249 7250 7251 7252 PKG_CFLAGS="$PKG_CFLAGS -DTKIMG_VERSION=\\\"\${tkimg_VERSION}\\\"" 7253 7254 7255 7256 vars="" 7257 for i in $vars; do 7258 # check for existence - allows for generic/win/unix VPATH 7259 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7260 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7261 -a ! -f "${srcdir}/macosx/$i" \ 7262 ; then 7263 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 7264echo "$as_me: error: could not find stub source file '$i'" >&2;} 7265 { (exit 1); exit 1; }; } 7266 fi 7267 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 7268 # this assumes it is in a VPATH dir 7269 i=`basename $i` 7270 # handle user calling this before or after TEA_SETUP_COMPILER 7271 if test x"${OBJEXT}" != x ; then 7272 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7273 else 7274 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7275 fi 7276 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 7277 done 7278 7279 7280 7281 7282 vars="" 7283 for i in $vars; do 7284 # check for existence, be strict because it is installed 7285 if test ! -f "${srcdir}/$i" ; then 7286 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 7287echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 7288 { (exit 1); exit 1; }; } 7289 fi 7290 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 7291 done 7292 7293 7294 7295PUP="`echo ${PACKAGE_NAME}| tr 'a-z' 'A-Z'`" 7296 7297sed < "`${CYGPATH} ${srcdir}/../init.c`" > "init.c" \ 7298 -e "s/@CPACKAGE@/${CPACKAGE}/" \ 7299 -e "s/%PACKAGE%/${PACKAGE_NAME}/" \ 7300 -e "s/%PACKAGE_UP%/${PUP}/" \ 7301 -e "s/%PHIMGTYPE%/${PHIMGTYPE}/" 7302 7303# init.c is an included source file, not a source by itself 7304# FUTURE: Do this through AC_OUTPUT!! 7305 7306#-------------------------------------------------------------------- 7307# __CHANGE__ 7308# Choose which headers you need. Extension authors should try very 7309# hard to only rely on the Tcl public header files. Internal headers 7310# contain private data structures and are subject to change without 7311# notice. 7312# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 7313#-------------------------------------------------------------------- 7314 7315 7316 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 7317echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 7318 7319 7320# Check whether --with-tclinclude was given. 7321if test "${with_tclinclude+set}" = set; then 7322 withval=$with_tclinclude; with_tclinclude=${withval} 7323fi 7324 7325 7326 if test "${ac_cv_c_tclh+set}" = set; then 7327 echo $ECHO_N "(cached) $ECHO_C" >&6 7328else 7329 7330 # Use the value from --with-tclinclude, if it was given 7331 7332 if test x"${with_tclinclude}" != x ; then 7333 if test -f "${with_tclinclude}/tcl.h" ; then 7334 ac_cv_c_tclh=${with_tclinclude} 7335 else 7336 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 7337echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 7338 { (exit 1); exit 1; }; } 7339 fi 7340 else 7341 list="" 7342 if test "`uname -s`" = "Darwin"; then 7343 # If Tcl was built as a framework, attempt to use 7344 # the framework's Headers directory 7345 case ${TCL_DEFS} in 7346 *TCL_FRAMEWORK*) 7347 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 7348 ;; 7349 esac 7350 fi 7351 7352 # Look in the source dir only if Tcl is not installed, 7353 # and in that situation, look there before installed locations. 7354 if test -f "${TCL_BIN_DIR}/Makefile" ; then 7355 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 7356 fi 7357 7358 # Check order: pkg --prefix location, Tcl's --prefix location, 7359 # relative to directory of tclConfig.sh. 7360 7361 eval "temp_includedir=${includedir}" 7362 list="$list \ 7363 `ls -d ${temp_includedir} 2>/dev/null` \ 7364 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7365 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7366 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7367 list="$list /usr/local/include /usr/include" 7368 if test x"${TCL_INCLUDE_SPEC}" != x ; then 7369 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7370 list="$list `ls -d ${d} 2>/dev/null`" 7371 fi 7372 fi 7373 for i in $list ; do 7374 if test -f "$i/tcl.h" ; then 7375 ac_cv_c_tclh=$i 7376 break 7377 fi 7378 done 7379 fi 7380 7381fi 7382 7383 7384 # Print a message based on how we determined the include path 7385 7386 if test x"${ac_cv_c_tclh}" = x ; then 7387 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 7388echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 7389 { (exit 1); exit 1; }; } 7390 else 7391 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 7392echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 7393 fi 7394 7395 # Convert to a native path and substitute into the output files. 7396 7397 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 7398 7399 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7400 7401 7402 7403 7404 { echo "$as_me:$LINENO: checking for Tk public headers" >&5 7405echo $ECHO_N "checking for Tk public headers... $ECHO_C" >&6; } 7406 7407 7408# Check whether --with-tkinclude was given. 7409if test "${with_tkinclude+set}" = set; then 7410 withval=$with_tkinclude; with_tkinclude=${withval} 7411fi 7412 7413 7414 if test "${ac_cv_c_tkh+set}" = set; then 7415 echo $ECHO_N "(cached) $ECHO_C" >&6 7416else 7417 7418 # Use the value from --with-tkinclude, if it was given 7419 7420 if test x"${with_tkinclude}" != x ; then 7421 if test -f "${with_tkinclude}/tk.h" ; then 7422 ac_cv_c_tkh=${with_tkinclude} 7423 else 7424 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory does not contain tk.h" >&5 7425echo "$as_me: error: ${with_tkinclude} directory does not contain tk.h" >&2;} 7426 { (exit 1); exit 1; }; } 7427 fi 7428 else 7429 list="" 7430 if test "`uname -s`" = "Darwin"; then 7431 # If Tk was built as a framework, attempt to use 7432 # the framework's Headers directory. 7433 case ${TK_DEFS} in 7434 *TK_FRAMEWORK*) 7435 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`" 7436 ;; 7437 esac 7438 fi 7439 7440 # Look in the source dir only if Tk is not installed, 7441 # and in that situation, look there before installed locations. 7442 if test -f "${TK_BIN_DIR}/Makefile" ; then 7443 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`" 7444 fi 7445 7446 # Check order: pkg --prefix location, Tk's --prefix location, 7447 # relative to directory of tkConfig.sh, Tcl's --prefix location, 7448 # relative to directory of tclConfig.sh. 7449 7450 eval "temp_includedir=${includedir}" 7451 list="$list \ 7452 `ls -d ${temp_includedir} 2>/dev/null` \ 7453 `ls -d ${TK_PREFIX}/include 2>/dev/null` \ 7454 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \ 7455 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7456 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7457 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7458 list="$list /usr/local/include /usr/include" 7459 if test x"${TK_INCLUDE_SPEC}" != x ; then 7460 d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7461 list="$list `ls -d ${d} 2>/dev/null`" 7462 fi 7463 fi 7464 for i in $list ; do 7465 if test -f "$i/tk.h" ; then 7466 ac_cv_c_tkh=$i 7467 break 7468 fi 7469 done 7470 fi 7471 7472fi 7473 7474 7475 # Print a message based on how we determined the include path 7476 7477 if test x"${ac_cv_c_tkh}" = x ; then 7478 { { echo "$as_me:$LINENO: error: tk.h not found. Please specify its location with --with-tkinclude" >&5 7479echo "$as_me: error: tk.h not found. Please specify its location with --with-tkinclude" >&2;} 7480 { (exit 1); exit 1; }; } 7481 else 7482 { echo "$as_me:$LINENO: result: ${ac_cv_c_tkh}" >&5 7483echo "${ECHO_T}${ac_cv_c_tkh}" >&6; } 7484 fi 7485 7486 # Convert to a native path and substitute into the output files. 7487 7488 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}` 7489 7490 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7491 7492 7493 7494 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then 7495 # On Windows and Aqua, we need the X compat headers 7496 { echo "$as_me:$LINENO: checking for X11 header files" >&5 7497echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 7498 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then 7499 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`" 7500 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7501 7502 fi 7503 { echo "$as_me:$LINENO: result: ${INCLUDE_DIR_NATIVE}" >&5 7504echo "${ECHO_T}${INCLUDE_DIR_NATIVE}" >&6; } 7505 fi 7506 7507 7508 7509#-------------------------------------------------------------------- 7510# A few miscellaneous platform-specific items: 7511# 7512# Windows creates a few extra files that need to be cleaned up. 7513# We can add more files to clean if our extension creates any extra 7514# files in the future. 7515# 7516# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 7517# These will be appended to the current set of compiler flags for 7518# your system. 7519#-------------------------------------------------------------------- 7520 7521if test "${TEA_PLATFORM}" = "windows" ; then 7522 CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch init.c" 7523else 7524 CLEANFILES="init.c" 7525fi 7526 7527 7528#-------------------------------------------------------------------- 7529# Check whether --enable-threads or --disable-threads was given. 7530# So far only Tcl responds to this one. 7531#-------------------------------------------------------------------- 7532 7533 7534 # Check whether --enable-threads was given. 7535if test "${enable_threads+set}" = set; then 7536 enableval=$enable_threads; tcl_ok=$enableval 7537else 7538 tcl_ok=yes 7539fi 7540 7541 7542 if test "${enable_threads+set}" = set; then 7543 enableval="$enable_threads" 7544 tcl_ok=$enableval 7545 else 7546 tcl_ok=yes 7547 fi 7548 7549 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 7550 TCL_THREADS=1 7551 7552 if test "${TEA_PLATFORM}" != "windows" ; then 7553 # We are always OK on Windows, so check what this platform wants: 7554 7555 # USE_THREAD_ALLOC tells us to try the special thread-based 7556 # allocator that significantly reduces lock contention 7557 7558cat >>confdefs.h <<\_ACEOF 7559#define USE_THREAD_ALLOC 1 7560_ACEOF 7561 7562 7563cat >>confdefs.h <<\_ACEOF 7564#define _REENTRANT 1 7565_ACEOF 7566 7567 if test "`uname -s`" = "SunOS" ; then 7568 7569cat >>confdefs.h <<\_ACEOF 7570#define _POSIX_PTHREAD_SEMANTICS 1 7571_ACEOF 7572 7573 fi 7574 7575cat >>confdefs.h <<\_ACEOF 7576#define _THREAD_SAFE 1 7577_ACEOF 7578 7579 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 7580echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7581if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 7582 echo $ECHO_N "(cached) $ECHO_C" >&6 7583else 7584 ac_check_lib_save_LIBS=$LIBS 7585LIBS="-lpthread $LIBS" 7586cat >conftest.$ac_ext <<_ACEOF 7587/* confdefs.h. */ 7588_ACEOF 7589cat confdefs.h >>conftest.$ac_ext 7590cat >>conftest.$ac_ext <<_ACEOF 7591/* end confdefs.h. */ 7592 7593/* Override any GCC internal prototype to avoid an error. 7594 Use char because int might match the return type of a GCC 7595 builtin and then its argument prototype would still apply. */ 7596#ifdef __cplusplus 7597extern "C" 7598#endif 7599char pthread_mutex_init (); 7600int 7601main () 7602{ 7603return pthread_mutex_init (); 7604 ; 7605 return 0; 7606} 7607_ACEOF 7608rm -f conftest.$ac_objext conftest$ac_exeext 7609if { (ac_try="$ac_link" 7610case "(($ac_try" in 7611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7612 *) ac_try_echo=$ac_try;; 7613esac 7614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7615 (eval "$ac_link") 2>conftest.er1 7616 ac_status=$? 7617 grep -v '^ *+' conftest.er1 >conftest.err 7618 rm -f conftest.er1 7619 cat conftest.err >&5 7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7621 (exit $ac_status); } && { 7622 test -z "$ac_c_werror_flag" || 7623 test ! -s conftest.err 7624 } && test -s conftest$ac_exeext && 7625 $as_test_x conftest$ac_exeext; then 7626 ac_cv_lib_pthread_pthread_mutex_init=yes 7627else 7628 echo "$as_me: failed program was:" >&5 7629sed 's/^/| /' conftest.$ac_ext >&5 7630 7631 ac_cv_lib_pthread_pthread_mutex_init=no 7632fi 7633 7634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7635 conftest$ac_exeext conftest.$ac_ext 7636LIBS=$ac_check_lib_save_LIBS 7637fi 7638{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7639echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7640if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7641 tcl_ok=yes 7642else 7643 tcl_ok=no 7644fi 7645 7646 if test "$tcl_ok" = "no"; then 7647 # Check a little harder for __pthread_mutex_init in the same 7648 # library, as some systems hide it there until pthread.h is 7649 # defined. We could alternatively do an AC_TRY_COMPILE with 7650 # pthread.h, but that will work with libpthread really doesn't 7651 # exist, like AIX 4.2. [Bug: 4359] 7652 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7653echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7654if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7655 echo $ECHO_N "(cached) $ECHO_C" >&6 7656else 7657 ac_check_lib_save_LIBS=$LIBS 7658LIBS="-lpthread $LIBS" 7659cat >conftest.$ac_ext <<_ACEOF 7660/* confdefs.h. */ 7661_ACEOF 7662cat confdefs.h >>conftest.$ac_ext 7663cat >>conftest.$ac_ext <<_ACEOF 7664/* end confdefs.h. */ 7665 7666/* Override any GCC internal prototype to avoid an error. 7667 Use char because int might match the return type of a GCC 7668 builtin and then its argument prototype would still apply. */ 7669#ifdef __cplusplus 7670extern "C" 7671#endif 7672char __pthread_mutex_init (); 7673int 7674main () 7675{ 7676return __pthread_mutex_init (); 7677 ; 7678 return 0; 7679} 7680_ACEOF 7681rm -f conftest.$ac_objext conftest$ac_exeext 7682if { (ac_try="$ac_link" 7683case "(($ac_try" in 7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7685 *) ac_try_echo=$ac_try;; 7686esac 7687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7688 (eval "$ac_link") 2>conftest.er1 7689 ac_status=$? 7690 grep -v '^ *+' conftest.er1 >conftest.err 7691 rm -f conftest.er1 7692 cat conftest.err >&5 7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7694 (exit $ac_status); } && { 7695 test -z "$ac_c_werror_flag" || 7696 test ! -s conftest.err 7697 } && test -s conftest$ac_exeext && 7698 $as_test_x conftest$ac_exeext; then 7699 ac_cv_lib_pthread___pthread_mutex_init=yes 7700else 7701 echo "$as_me: failed program was:" >&5 7702sed 's/^/| /' conftest.$ac_ext >&5 7703 7704 ac_cv_lib_pthread___pthread_mutex_init=no 7705fi 7706 7707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7708 conftest$ac_exeext conftest.$ac_ext 7709LIBS=$ac_check_lib_save_LIBS 7710fi 7711{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7712echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7713if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7714 tcl_ok=yes 7715else 7716 tcl_ok=no 7717fi 7718 7719 fi 7720 7721 if test "$tcl_ok" = "yes"; then 7722 # The space is needed 7723 THREADS_LIBS=" -lpthread" 7724 else 7725 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7726echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7727if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7728 echo $ECHO_N "(cached) $ECHO_C" >&6 7729else 7730 ac_check_lib_save_LIBS=$LIBS 7731LIBS="-lpthreads $LIBS" 7732cat >conftest.$ac_ext <<_ACEOF 7733/* confdefs.h. */ 7734_ACEOF 7735cat confdefs.h >>conftest.$ac_ext 7736cat >>conftest.$ac_ext <<_ACEOF 7737/* end confdefs.h. */ 7738 7739/* Override any GCC internal prototype to avoid an error. 7740 Use char because int might match the return type of a GCC 7741 builtin and then its argument prototype would still apply. */ 7742#ifdef __cplusplus 7743extern "C" 7744#endif 7745char pthread_mutex_init (); 7746int 7747main () 7748{ 7749return pthread_mutex_init (); 7750 ; 7751 return 0; 7752} 7753_ACEOF 7754rm -f conftest.$ac_objext conftest$ac_exeext 7755if { (ac_try="$ac_link" 7756case "(($ac_try" in 7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7758 *) ac_try_echo=$ac_try;; 7759esac 7760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7761 (eval "$ac_link") 2>conftest.er1 7762 ac_status=$? 7763 grep -v '^ *+' conftest.er1 >conftest.err 7764 rm -f conftest.er1 7765 cat conftest.err >&5 7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7767 (exit $ac_status); } && { 7768 test -z "$ac_c_werror_flag" || 7769 test ! -s conftest.err 7770 } && test -s conftest$ac_exeext && 7771 $as_test_x conftest$ac_exeext; then 7772 ac_cv_lib_pthreads_pthread_mutex_init=yes 7773else 7774 echo "$as_me: failed program was:" >&5 7775sed 's/^/| /' conftest.$ac_ext >&5 7776 7777 ac_cv_lib_pthreads_pthread_mutex_init=no 7778fi 7779 7780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7781 conftest$ac_exeext conftest.$ac_ext 7782LIBS=$ac_check_lib_save_LIBS 7783fi 7784{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7785echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7786if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7787 tcl_ok=yes 7788else 7789 tcl_ok=no 7790fi 7791 7792 if test "$tcl_ok" = "yes"; then 7793 # The space is needed 7794 THREADS_LIBS=" -lpthreads" 7795 else 7796 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7797echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7798if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7799 echo $ECHO_N "(cached) $ECHO_C" >&6 7800else 7801 ac_check_lib_save_LIBS=$LIBS 7802LIBS="-lc $LIBS" 7803cat >conftest.$ac_ext <<_ACEOF 7804/* confdefs.h. */ 7805_ACEOF 7806cat confdefs.h >>conftest.$ac_ext 7807cat >>conftest.$ac_ext <<_ACEOF 7808/* end confdefs.h. */ 7809 7810/* Override any GCC internal prototype to avoid an error. 7811 Use char because int might match the return type of a GCC 7812 builtin and then its argument prototype would still apply. */ 7813#ifdef __cplusplus 7814extern "C" 7815#endif 7816char pthread_mutex_init (); 7817int 7818main () 7819{ 7820return pthread_mutex_init (); 7821 ; 7822 return 0; 7823} 7824_ACEOF 7825rm -f conftest.$ac_objext conftest$ac_exeext 7826if { (ac_try="$ac_link" 7827case "(($ac_try" in 7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7829 *) ac_try_echo=$ac_try;; 7830esac 7831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7832 (eval "$ac_link") 2>conftest.er1 7833 ac_status=$? 7834 grep -v '^ *+' conftest.er1 >conftest.err 7835 rm -f conftest.er1 7836 cat conftest.err >&5 7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7838 (exit $ac_status); } && { 7839 test -z "$ac_c_werror_flag" || 7840 test ! -s conftest.err 7841 } && test -s conftest$ac_exeext && 7842 $as_test_x conftest$ac_exeext; then 7843 ac_cv_lib_c_pthread_mutex_init=yes 7844else 7845 echo "$as_me: failed program was:" >&5 7846sed 's/^/| /' conftest.$ac_ext >&5 7847 7848 ac_cv_lib_c_pthread_mutex_init=no 7849fi 7850 7851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7852 conftest$ac_exeext conftest.$ac_ext 7853LIBS=$ac_check_lib_save_LIBS 7854fi 7855{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7856echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7857if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7858 tcl_ok=yes 7859else 7860 tcl_ok=no 7861fi 7862 7863 if test "$tcl_ok" = "no"; then 7864 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7865echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7866if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7867 echo $ECHO_N "(cached) $ECHO_C" >&6 7868else 7869 ac_check_lib_save_LIBS=$LIBS 7870LIBS="-lc_r $LIBS" 7871cat >conftest.$ac_ext <<_ACEOF 7872/* confdefs.h. */ 7873_ACEOF 7874cat confdefs.h >>conftest.$ac_ext 7875cat >>conftest.$ac_ext <<_ACEOF 7876/* end confdefs.h. */ 7877 7878/* Override any GCC internal prototype to avoid an error. 7879 Use char because int might match the return type of a GCC 7880 builtin and then its argument prototype would still apply. */ 7881#ifdef __cplusplus 7882extern "C" 7883#endif 7884char pthread_mutex_init (); 7885int 7886main () 7887{ 7888return pthread_mutex_init (); 7889 ; 7890 return 0; 7891} 7892_ACEOF 7893rm -f conftest.$ac_objext conftest$ac_exeext 7894if { (ac_try="$ac_link" 7895case "(($ac_try" in 7896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7897 *) ac_try_echo=$ac_try;; 7898esac 7899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7900 (eval "$ac_link") 2>conftest.er1 7901 ac_status=$? 7902 grep -v '^ *+' conftest.er1 >conftest.err 7903 rm -f conftest.er1 7904 cat conftest.err >&5 7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7906 (exit $ac_status); } && { 7907 test -z "$ac_c_werror_flag" || 7908 test ! -s conftest.err 7909 } && test -s conftest$ac_exeext && 7910 $as_test_x conftest$ac_exeext; then 7911 ac_cv_lib_c_r_pthread_mutex_init=yes 7912else 7913 echo "$as_me: failed program was:" >&5 7914sed 's/^/| /' conftest.$ac_ext >&5 7915 7916 ac_cv_lib_c_r_pthread_mutex_init=no 7917fi 7918 7919rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7920 conftest$ac_exeext conftest.$ac_ext 7921LIBS=$ac_check_lib_save_LIBS 7922fi 7923{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7924echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7925if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7926 tcl_ok=yes 7927else 7928 tcl_ok=no 7929fi 7930 7931 if test "$tcl_ok" = "yes"; then 7932 # The space is needed 7933 THREADS_LIBS=" -pthread" 7934 else 7935 TCL_THREADS=0 7936 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7937echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7938 fi 7939 fi 7940 fi 7941 fi 7942 fi 7943 else 7944 TCL_THREADS=0 7945 fi 7946 # Do checking message here to not mess up interleaved configure output 7947 { echo "$as_me:$LINENO: checking for building with threads" >&5 7948echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7949 if test "${TCL_THREADS}" = 1; then 7950 7951cat >>confdefs.h <<\_ACEOF 7952#define TCL_THREADS 1 7953_ACEOF 7954 7955 { echo "$as_me:$LINENO: result: yes (default)" >&5 7956echo "${ECHO_T}yes (default)" >&6; } 7957 else 7958 { echo "$as_me:$LINENO: result: no" >&5 7959echo "${ECHO_T}no" >&6; } 7960 fi 7961 # TCL_THREADS sanity checking. See if our request for building with 7962 # threads is the same as the way Tcl was built. If not, warn the user. 7963 case ${TCL_DEFS} in 7964 *THREADS=1*) 7965 if test "${TCL_THREADS}" = "0"; then 7966 { echo "$as_me:$LINENO: WARNING: 7967 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7968 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7969echo "$as_me: WARNING: 7970 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7971 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7972 fi 7973 ;; 7974 *) 7975 if test "${TCL_THREADS}" = "1"; then 7976 { echo "$as_me:$LINENO: WARNING: 7977 --enable-threads requested, but building against a Tcl that is NOT 7978 thread-enabled. This is an OK configuration that will also run in 7979 a thread-enabled core." >&5 7980echo "$as_me: WARNING: 7981 --enable-threads requested, but building against a Tcl that is NOT 7982 thread-enabled. This is an OK configuration that will also run in 7983 a thread-enabled core." >&2;} 7984 fi 7985 ;; 7986 esac 7987 7988 7989 7990#-------------------------------------------------------------------- 7991# The statement below defines a collection of symbols related to 7992# building as a shared library instead of a static library. 7993#-------------------------------------------------------------------- 7994 7995 7996 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7997echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7998 # Check whether --enable-shared was given. 7999if test "${enable_shared+set}" = set; then 8000 enableval=$enable_shared; tcl_ok=$enableval 8001else 8002 tcl_ok=yes 8003fi 8004 8005 8006 if test "${enable_shared+set}" = set; then 8007 enableval="$enable_shared" 8008 tcl_ok=$enableval 8009 else 8010 tcl_ok=yes 8011 fi 8012 8013 if test "$tcl_ok" = "yes" ; then 8014 { echo "$as_me:$LINENO: result: shared" >&5 8015echo "${ECHO_T}shared" >&6; } 8016 SHARED_BUILD=1 8017 else 8018 { echo "$as_me:$LINENO: result: static" >&5 8019echo "${ECHO_T}static" >&6; } 8020 SHARED_BUILD=0 8021 8022cat >>confdefs.h <<\_ACEOF 8023#define STATIC_BUILD 1 8024_ACEOF 8025 8026 fi 8027 8028 8029 8030#-------------------------------------------------------------------- 8031# This macro figures out what flags to use with the compiler/linker 8032# when building shared/static debug/optimized objects. This information 8033# can be taken from the tclConfig.sh file, but this figures it all out. 8034#-------------------------------------------------------------------- 8035 8036 8037 8038 8039 # Step 0.a: Enable 64 bit support? 8040 8041 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 8042echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 8043 # Check whether --enable-64bit was given. 8044if test "${enable_64bit+set}" = set; then 8045 enableval=$enable_64bit; do64bit=$enableval 8046else 8047 do64bit=no 8048fi 8049 8050 { echo "$as_me:$LINENO: result: $do64bit" >&5 8051echo "${ECHO_T}$do64bit" >&6; } 8052 8053 # Step 0.b: Enable Solaris 64 bit VIS support? 8054 8055 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 8056echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 8057 # Check whether --enable-64bit-vis was given. 8058if test "${enable_64bit_vis+set}" = set; then 8059 enableval=$enable_64bit_vis; do64bitVIS=$enableval 8060else 8061 do64bitVIS=no 8062fi 8063 8064 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 8065echo "${ECHO_T}$do64bitVIS" >&6; } 8066 # Force 64bit on with VIS 8067 if test "$do64bitVIS" = "yes"; then 8068 do64bit=yes 8069fi 8070 8071 8072 # Step 0.c: Check if visibility support is available. Do this here so 8073 # that platform specific alternatives can be used below if this fails. 8074 8075 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 8076echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 8077if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 8078 echo $ECHO_N "(cached) $ECHO_C" >&6 8079else 8080 8081 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 8082 cat >conftest.$ac_ext <<_ACEOF 8083/* confdefs.h. */ 8084_ACEOF 8085cat confdefs.h >>conftest.$ac_ext 8086cat >>conftest.$ac_ext <<_ACEOF 8087/* end confdefs.h. */ 8088 8089 extern __attribute__((__visibility__("hidden"))) void f(void); 8090 void f(void) {} 8091int 8092main () 8093{ 8094f(); 8095 ; 8096 return 0; 8097} 8098_ACEOF 8099rm -f conftest.$ac_objext conftest$ac_exeext 8100if { (ac_try="$ac_link" 8101case "(($ac_try" in 8102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8103 *) ac_try_echo=$ac_try;; 8104esac 8105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8106 (eval "$ac_link") 2>conftest.er1 8107 ac_status=$? 8108 grep -v '^ *+' conftest.er1 >conftest.err 8109 rm -f conftest.er1 8110 cat conftest.err >&5 8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8112 (exit $ac_status); } && { 8113 test -z "$ac_c_werror_flag" || 8114 test ! -s conftest.err 8115 } && test -s conftest$ac_exeext && 8116 $as_test_x conftest$ac_exeext; then 8117 tcl_cv_cc_visibility_hidden=yes 8118else 8119 echo "$as_me: failed program was:" >&5 8120sed 's/^/| /' conftest.$ac_ext >&5 8121 8122 tcl_cv_cc_visibility_hidden=no 8123fi 8124 8125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8126 conftest$ac_exeext conftest.$ac_ext 8127 CFLAGS=$hold_cflags 8128fi 8129{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 8130echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 8131 if test $tcl_cv_cc_visibility_hidden = yes; then 8132 8133 8134cat >>confdefs.h <<\_ACEOF 8135#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 8136_ACEOF 8137 8138 8139fi 8140 8141 8142 # Step 0.d: Disable -rpath support? 8143 8144 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 8145echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 8146 # Check whether --enable-rpath was given. 8147if test "${enable_rpath+set}" = set; then 8148 enableval=$enable_rpath; doRpath=$enableval 8149else 8150 doRpath=yes 8151fi 8152 8153 { echo "$as_me:$LINENO: result: $doRpath" >&5 8154echo "${ECHO_T}$doRpath" >&6; } 8155 8156 # TEA specific: Cross-compiling options for Windows/CE builds? 8157 8158 if test "${TEA_PLATFORM}" = windows; then 8159 8160 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 8161echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 8162 # Check whether --enable-wince was given. 8163if test "${enable_wince+set}" = set; then 8164 enableval=$enable_wince; doWince=$enableval 8165else 8166 doWince=no 8167fi 8168 8169 { echo "$as_me:$LINENO: result: $doWince" >&5 8170echo "${ECHO_T}$doWince" >&6; } 8171 8172fi 8173 8174 8175 # Set the variable "system" to hold the name and version number 8176 # for the system. 8177 8178 8179 { echo "$as_me:$LINENO: checking system version" >&5 8180echo $ECHO_N "checking system version... $ECHO_C" >&6; } 8181if test "${tcl_cv_sys_version+set}" = set; then 8182 echo $ECHO_N "(cached) $ECHO_C" >&6 8183else 8184 8185 # TEA specific: 8186 if test "${TEA_PLATFORM}" = "windows" ; then 8187 tcl_cv_sys_version=windows 8188 else 8189 tcl_cv_sys_version=`uname -s`-`uname -r` 8190 if test "$?" -ne 0 ; then 8191 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 8192echo "$as_me: WARNING: can't find uname command" >&2;} 8193 tcl_cv_sys_version=unknown 8194 else 8195 if test "`uname -s`" = "AIX" ; then 8196 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 8197 fi 8198 fi 8199 fi 8200 8201fi 8202{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 8203echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 8204 system=$tcl_cv_sys_version 8205 8206 8207 # Require ranlib early so we can override it in special cases below. 8208 8209 8210 8211 # Set configuration options based on system name and version. 8212 # This is similar to Tcl's unix/tcl.m4 except that we've added a 8213 # "windows" case and removed some core-only vars. 8214 8215 do64bit_ok=no 8216 # default to '{$LIBS}' and set to "" on per-platform necessary basis 8217 SHLIB_LD_LIBS='${LIBS}' 8218 # When ld needs options to work in 64-bit mode, put them in 8219 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 8220 # is disabled by the user. [Bug 1016796] 8221 LDFLAGS_ARCH="" 8222 UNSHARED_LIB_SUFFIX="" 8223 # TEA specific: use PACKAGE_VERSION instead of VERSION 8224 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 8225 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 8226 TCL_LIB_VERSIONS_OK=ok 8227 CFLAGS_DEBUG=-g 8228 CFLAGS_OPTIMIZE=-O 8229 if test "$GCC" = yes; then 8230 8231 # TEA specific: 8232 CFLAGS_OPTIMIZE=-O2 8233 CFLAGS_WARNING="-Wall" 8234 8235else 8236 CFLAGS_WARNING="" 8237fi 8238 8239 # Extract the first word of "ar", so it can be a program name with args. 8240set dummy ar; ac_word=$2 8241{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8243if test "${ac_cv_prog_AR+set}" = set; then 8244 echo $ECHO_N "(cached) $ECHO_C" >&6 8245else 8246 if test -n "$AR"; then 8247 ac_cv_prog_AR="$AR" # Let the user override the test. 8248else 8249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8250for as_dir in $PATH 8251do 8252 IFS=$as_save_IFS 8253 test -z "$as_dir" && as_dir=. 8254 for ac_exec_ext in '' $ac_executable_extensions; do 8255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8256 ac_cv_prog_AR="ar" 8257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8258 break 2 8259 fi 8260done 8261done 8262IFS=$as_save_IFS 8263 8264fi 8265fi 8266AR=$ac_cv_prog_AR 8267if test -n "$AR"; then 8268 { echo "$as_me:$LINENO: result: $AR" >&5 8269echo "${ECHO_T}$AR" >&6; } 8270else 8271 { echo "$as_me:$LINENO: result: no" >&5 8272echo "${ECHO_T}no" >&6; } 8273fi 8274 8275 8276 STLIB_LD='${AR} cr' 8277 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 8278 if test "x$SHLIB_VERSION" = x; then 8279 SHLIB_VERSION="1.0" 8280fi 8281 8282 case $system in 8283 # TEA specific: 8284 windows) 8285 # This is a 2-stage check to make sure we have the 64-bit SDK 8286 # We have to know where the SDK is installed. 8287 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 8288 # MACHINE is IX86 for LINK, but this is used by the manifest, 8289 # which requires x86|amd64|ia64. 8290 MACHINE="X86" 8291 if test "$do64bit" != "no" ; then 8292 if test "x${MSSDK}x" = "xx" ; then 8293 MSSDK="C:/Progra~1/Microsoft Platform SDK" 8294 fi 8295 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 8296 PATH64="" 8297 case "$do64bit" in 8298 amd64|x64|yes) 8299 MACHINE="AMD64" ; # default to AMD64 64-bit build 8300 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 8301 ;; 8302 ia64) 8303 MACHINE="IA64" 8304 PATH64="${MSSDK}/Bin/Win64" 8305 ;; 8306 esac 8307 if test ! -d "${PATH64}" ; then 8308 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 8309echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 8310 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 8311echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 8312 do64bit="no" 8313 else 8314 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 8315echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 8316 do64bit_ok="yes" 8317 fi 8318 fi 8319 8320 if test "$doWince" != "no" ; then 8321 if test "$do64bit" != "no" ; then 8322 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 8323echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 8324 { (exit 1); exit 1; }; } 8325 fi 8326 if test "$GCC" = "yes" ; then 8327 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 8328echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 8329 { (exit 1); exit 1; }; } 8330 fi 8331 8332 # First, look for one uninstalled. 8333 # the alternative search directory is invoked by --with-celib 8334 8335 if test x"${no_celib}" = x ; then 8336 # we reset no_celib in case something fails here 8337 no_celib=true 8338 8339# Check whether --with-celib was given. 8340if test "${with_celib+set}" = set; then 8341 withval=$with_celib; with_celibconfig=${withval} 8342fi 8343 8344 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 8345echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 8346 if test "${ac_cv_c_celibconfig+set}" = set; then 8347 echo $ECHO_N "(cached) $ECHO_C" >&6 8348else 8349 8350 # First check to see if --with-celibconfig was specified. 8351 if test x"${with_celibconfig}" != x ; then 8352 if test -d "${with_celibconfig}/inc" ; then 8353 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 8354 else 8355 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 8356echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 8357 { (exit 1); exit 1; }; } 8358 fi 8359 fi 8360 8361 # then check for a celib library 8362 if test x"${ac_cv_c_celibconfig}" = x ; then 8363 for i in \ 8364 ../celib-palm-3.0 \ 8365 ../celib \ 8366 ../../celib-palm-3.0 \ 8367 ../../celib \ 8368 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 8369 ${srcdir}/../celib-palm-3.0 \ 8370 ${srcdir}/../celib \ 8371 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 8372 ; do 8373 if test -d "$i/inc" ; then 8374 ac_cv_c_celibconfig=`(cd $i; pwd)` 8375 break 8376 fi 8377 done 8378 fi 8379 8380fi 8381 8382 if test x"${ac_cv_c_celibconfig}" = x ; then 8383 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 8384echo "$as_me: error: Cannot find celib support library directory" >&2;} 8385 { (exit 1); exit 1; }; } 8386 else 8387 no_celib= 8388 CELIB_DIR=${ac_cv_c_celibconfig} 8389 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 8390 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 8391echo "${ECHO_T}found $CELIB_DIR" >&6; } 8392 fi 8393 fi 8394 8395 # Set defaults for common evc4/PPC2003 setup 8396 # Currently Tcl requires 300+, possibly 420+ for sockets 8397 CEVERSION=420; # could be 211 300 301 400 420 ... 8398 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 8399 ARCH=ARM; # could be ARM MIPS X86EM ... 8400 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 8401 if test "$doWince" != "yes"; then 8402 # If !yes then the user specified something 8403 # Reset ARCH to allow user to skip specifying it 8404 ARCH= 8405 eval `echo $doWince | awk -F, '{ \ 8406 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 8407 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 8408 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 8409 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 8410 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 8411 }'` 8412 if test "x${ARCH}" = "x" ; then 8413 ARCH=$TARGETCPU; 8414 fi 8415 fi 8416 OSVERSION=WCE$CEVERSION; 8417 if test "x${WCEROOT}" = "x" ; then 8418 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 8419 if test ! -d "${WCEROOT}" ; then 8420 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 8421 fi 8422 fi 8423 if test "x${SDKROOT}" = "x" ; then 8424 SDKROOT="C:/Program Files/Windows CE Tools" 8425 if test ! -d "${SDKROOT}" ; then 8426 SDKROOT="C:/Windows CE Tools" 8427 fi 8428 fi 8429 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 8430 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 8431 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 8432 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 8433 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 8434echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 8435 { (exit 1); exit 1; }; } 8436 doWince="no" 8437 else 8438 # We could PATH_NOSPACE these, but that's not important, 8439 # as long as we quote them when used. 8440 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 8441 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 8442 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 8443 fi 8444 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 8445 fi 8446 fi 8447 8448 if test "$GCC" != "yes" ; then 8449 if test "${SHARED_BUILD}" = "0" ; then 8450 runtime=-MT 8451 else 8452 runtime=-MD 8453 fi 8454 8455 if test "$do64bit" != "no" ; then 8456 # All this magic is necessary for the Win64 SDK RC1 - hobbs 8457 CC="\"${PATH64}/cl.exe\"" 8458 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 8459 RC="\"${MSSDK}/bin/rc.exe\"" 8460 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 8461 LINKBIN="\"${PATH64}/link.exe\"" 8462 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 8463 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8464 # Avoid 'unresolved external symbol __security_cookie' 8465 # errors, c.f. http://support.microsoft.com/?id=894573 8466 8467 vars="bufferoverflowU.lib" 8468 for i in $vars; do 8469 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 8470 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 8471 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 8472 fi 8473 PKG_LIBS="$PKG_LIBS $i" 8474 done 8475 8476 8477 elif test "$doWince" != "no" ; then 8478 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 8479 if test "${TARGETCPU}" = "X86"; then 8480 CC="\"${CEBINROOT}/cl.exe\"" 8481 else 8482 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 8483 fi 8484 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 8485 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 8486 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 8487 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 8488 if test "${SHARED_BUILD}" = "1" ; then 8489 # Static CE builds require static celib as well 8490 defs="${defs} _DLL" 8491 fi 8492 for i in $defs ; do 8493 8494cat >>confdefs.h <<_ACEOF 8495#define $i 1 8496_ACEOF 8497 8498 done 8499 8500cat >>confdefs.h <<_ACEOF 8501#define _WIN32_WCE $CEVERSION 8502_ACEOF 8503 8504 8505cat >>confdefs.h <<_ACEOF 8506#define UNDER_CE $CEVERSION 8507_ACEOF 8508 8509 CFLAGS_DEBUG="-nologo -Zi -Od" 8510 CFLAGS_OPTIMIZE="-nologo -Ox" 8511 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 8512 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 8513 LINKBIN="\"${CEBINROOT}/link.exe\"" 8514 8515 else 8516 RC="rc" 8517 lflags="-nologo" 8518 LINKBIN="link" 8519 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 8520 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8521 fi 8522 fi 8523 8524 if test "$GCC" = "yes"; then 8525 # mingw gcc mode 8526 RC="windres" 8527 CFLAGS_DEBUG="-g" 8528 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8529 SHLIB_LD="$CC -shared" 8530 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8531 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 8532 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 8533 else 8534 SHLIB_LD="${LINKBIN} -dll ${lflags}" 8535 # link -lib only works when -lib is the first arg 8536 STLIB_LD="${LINKBIN} -lib ${lflags}" 8537 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 8538 PATHTYPE=-w 8539 # For information on what debugtype is most useful, see: 8540 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 8541 # and also 8542 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 8543 # This essentially turns it all on. 8544 LDFLAGS_DEBUG="-debug -debugtype:cv" 8545 LDFLAGS_OPTIMIZE="-release" 8546 if test "$doWince" != "no" ; then 8547 LDFLAGS_CONSOLE="-link ${lflags}" 8548 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 8549 else 8550 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 8551 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 8552 fi 8553 fi 8554 8555 SHLIB_SUFFIX=".dll" 8556 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 8557 8558 TCL_LIB_VERSIONS_OK=nodots 8559 ;; 8560 AIX-*) 8561 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 8562 8563 # AIX requires the _r compiler when gcc isn't being used 8564 case "${CC}" in 8565 *_r|*_r\ *) 8566 # ok ... 8567 ;; 8568 *) 8569 # Make sure only first arg gets _r 8570 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 8571 ;; 8572 esac 8573 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 8574echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 8575 8576fi 8577 8578 LIBS="$LIBS -lc" 8579 SHLIB_CFLAGS="" 8580 SHLIB_SUFFIX=".so" 8581 8582 LD_LIBRARY_PATH_VAR="LIBPATH" 8583 8584 # Check to enable 64-bit flags for compiler/linker 8585 if test "$do64bit" = yes; then 8586 8587 if test "$GCC" = yes; then 8588 8589 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8590echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8591 8592else 8593 8594 do64bit_ok=yes 8595 CFLAGS="$CFLAGS -q64" 8596 LDFLAGS_ARCH="-q64" 8597 RANLIB="${RANLIB} -X64" 8598 AR="${AR} -X64" 8599 SHLIB_LD_FLAGS="-b64" 8600 8601fi 8602 8603 8604fi 8605 8606 8607 if test "`uname -m`" = ia64; then 8608 8609 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8610 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8611 if test "$GCC" = yes; then 8612 8613 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8614 8615else 8616 8617 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8618 8619fi 8620 8621 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8622 8623else 8624 8625 if test "$GCC" = yes; then 8626 8627 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8628 8629else 8630 8631 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8632 LDFLAGS="$LDFLAGS -brtl" 8633 8634fi 8635 8636 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8637 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8638 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8639 8640fi 8641 8642 ;; 8643 BeOS*) 8644 SHLIB_CFLAGS="-fPIC" 8645 SHLIB_LD='${CC} -nostart' 8646 SHLIB_SUFFIX=".so" 8647 8648 #----------------------------------------------------------- 8649 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8650 # -lsocket, even if the network functions are in -lnet which 8651 # is always linked to, for compatibility. 8652 #----------------------------------------------------------- 8653 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8654echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8655if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8656 echo $ECHO_N "(cached) $ECHO_C" >&6 8657else 8658 ac_check_lib_save_LIBS=$LIBS 8659LIBS="-lbind $LIBS" 8660cat >conftest.$ac_ext <<_ACEOF 8661/* confdefs.h. */ 8662_ACEOF 8663cat confdefs.h >>conftest.$ac_ext 8664cat >>conftest.$ac_ext <<_ACEOF 8665/* end confdefs.h. */ 8666 8667/* Override any GCC internal prototype to avoid an error. 8668 Use char because int might match the return type of a GCC 8669 builtin and then its argument prototype would still apply. */ 8670#ifdef __cplusplus 8671extern "C" 8672#endif 8673char inet_ntoa (); 8674int 8675main () 8676{ 8677return inet_ntoa (); 8678 ; 8679 return 0; 8680} 8681_ACEOF 8682rm -f conftest.$ac_objext conftest$ac_exeext 8683if { (ac_try="$ac_link" 8684case "(($ac_try" in 8685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8686 *) ac_try_echo=$ac_try;; 8687esac 8688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8689 (eval "$ac_link") 2>conftest.er1 8690 ac_status=$? 8691 grep -v '^ *+' conftest.er1 >conftest.err 8692 rm -f conftest.er1 8693 cat conftest.err >&5 8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8695 (exit $ac_status); } && { 8696 test -z "$ac_c_werror_flag" || 8697 test ! -s conftest.err 8698 } && test -s conftest$ac_exeext && 8699 $as_test_x conftest$ac_exeext; then 8700 ac_cv_lib_bind_inet_ntoa=yes 8701else 8702 echo "$as_me: failed program was:" >&5 8703sed 's/^/| /' conftest.$ac_ext >&5 8704 8705 ac_cv_lib_bind_inet_ntoa=no 8706fi 8707 8708rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8709 conftest$ac_exeext conftest.$ac_ext 8710LIBS=$ac_check_lib_save_LIBS 8711fi 8712{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8713echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8714if test $ac_cv_lib_bind_inet_ntoa = yes; then 8715 LIBS="$LIBS -lbind -lsocket" 8716fi 8717 8718 ;; 8719 BSD/OS-4.*) 8720 SHLIB_CFLAGS="-export-dynamic -fPIC" 8721 SHLIB_LD='${CC} -shared' 8722 SHLIB_SUFFIX=".so" 8723 LDFLAGS="$LDFLAGS -export-dynamic" 8724 CC_SEARCH_FLAGS="" 8725 LD_SEARCH_FLAGS="" 8726 ;; 8727 CYGWIN_*) 8728 SHLIB_CFLAGS="" 8729 SHLIB_LD='${CC} -shared' 8730 SHLIB_SUFFIX=".dll" 8731 EXE_SUFFIX=".exe" 8732 CC_SEARCH_FLAGS="" 8733 LD_SEARCH_FLAGS="" 8734 ;; 8735 Haiku*) 8736 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8737 SHLIB_CFLAGS="-fPIC" 8738 SHLIB_SUFFIX=".so" 8739 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8740 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8741echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8742if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8743 echo $ECHO_N "(cached) $ECHO_C" >&6 8744else 8745 ac_check_lib_save_LIBS=$LIBS 8746LIBS="-lnetwork $LIBS" 8747cat >conftest.$ac_ext <<_ACEOF 8748/* confdefs.h. */ 8749_ACEOF 8750cat confdefs.h >>conftest.$ac_ext 8751cat >>conftest.$ac_ext <<_ACEOF 8752/* end confdefs.h. */ 8753 8754/* Override any GCC internal prototype to avoid an error. 8755 Use char because int might match the return type of a GCC 8756 builtin and then its argument prototype would still apply. */ 8757#ifdef __cplusplus 8758extern "C" 8759#endif 8760char inet_ntoa (); 8761int 8762main () 8763{ 8764return inet_ntoa (); 8765 ; 8766 return 0; 8767} 8768_ACEOF 8769rm -f conftest.$ac_objext conftest$ac_exeext 8770if { (ac_try="$ac_link" 8771case "(($ac_try" in 8772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8773 *) ac_try_echo=$ac_try;; 8774esac 8775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8776 (eval "$ac_link") 2>conftest.er1 8777 ac_status=$? 8778 grep -v '^ *+' conftest.er1 >conftest.err 8779 rm -f conftest.er1 8780 cat conftest.err >&5 8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8782 (exit $ac_status); } && { 8783 test -z "$ac_c_werror_flag" || 8784 test ! -s conftest.err 8785 } && test -s conftest$ac_exeext && 8786 $as_test_x conftest$ac_exeext; then 8787 ac_cv_lib_network_inet_ntoa=yes 8788else 8789 echo "$as_me: failed program was:" >&5 8790sed 's/^/| /' conftest.$ac_ext >&5 8791 8792 ac_cv_lib_network_inet_ntoa=no 8793fi 8794 8795rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8796 conftest$ac_exeext conftest.$ac_ext 8797LIBS=$ac_check_lib_save_LIBS 8798fi 8799{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8800echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8801if test $ac_cv_lib_network_inet_ntoa = yes; then 8802 LIBS="$LIBS -lnetwork" 8803fi 8804 8805 ;; 8806 HP-UX-*.11.*) 8807 # Use updated header definitions where possible 8808 8809cat >>confdefs.h <<\_ACEOF 8810#define _XOPEN_SOURCE_EXTENDED 1 8811_ACEOF 8812 8813 # TEA specific: Needed by Tcl, but not most extensions 8814 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8815 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8816 8817 if test "`uname -m`" = ia64; then 8818 8819 SHLIB_SUFFIX=".so" 8820 # Use newer C++ library for C++ extensions 8821 #if test "$GCC" != "yes" ; then 8822 # CPPFLAGS="-AA" 8823 #fi 8824 8825else 8826 8827 SHLIB_SUFFIX=".sl" 8828 8829fi 8830 8831 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8832echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8833if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8834 echo $ECHO_N "(cached) $ECHO_C" >&6 8835else 8836 ac_check_lib_save_LIBS=$LIBS 8837LIBS="-ldld $LIBS" 8838cat >conftest.$ac_ext <<_ACEOF 8839/* confdefs.h. */ 8840_ACEOF 8841cat confdefs.h >>conftest.$ac_ext 8842cat >>conftest.$ac_ext <<_ACEOF 8843/* end confdefs.h. */ 8844 8845/* Override any GCC internal prototype to avoid an error. 8846 Use char because int might match the return type of a GCC 8847 builtin and then its argument prototype would still apply. */ 8848#ifdef __cplusplus 8849extern "C" 8850#endif 8851char shl_load (); 8852int 8853main () 8854{ 8855return shl_load (); 8856 ; 8857 return 0; 8858} 8859_ACEOF 8860rm -f conftest.$ac_objext conftest$ac_exeext 8861if { (ac_try="$ac_link" 8862case "(($ac_try" in 8863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8864 *) ac_try_echo=$ac_try;; 8865esac 8866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8867 (eval "$ac_link") 2>conftest.er1 8868 ac_status=$? 8869 grep -v '^ *+' conftest.er1 >conftest.err 8870 rm -f conftest.er1 8871 cat conftest.err >&5 8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8873 (exit $ac_status); } && { 8874 test -z "$ac_c_werror_flag" || 8875 test ! -s conftest.err 8876 } && test -s conftest$ac_exeext && 8877 $as_test_x conftest$ac_exeext; then 8878 ac_cv_lib_dld_shl_load=yes 8879else 8880 echo "$as_me: failed program was:" >&5 8881sed 's/^/| /' conftest.$ac_ext >&5 8882 8883 ac_cv_lib_dld_shl_load=no 8884fi 8885 8886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8887 conftest$ac_exeext conftest.$ac_ext 8888LIBS=$ac_check_lib_save_LIBS 8889fi 8890{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8891echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8892if test $ac_cv_lib_dld_shl_load = yes; then 8893 tcl_ok=yes 8894else 8895 tcl_ok=no 8896fi 8897 8898 if test "$tcl_ok" = yes; then 8899 8900 LDFLAGS="$LDFLAGS -E" 8901 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8902 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8903 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8904 8905fi 8906 8907 if test "$GCC" = yes; then 8908 8909 SHLIB_LD='${CC} -shared' 8910 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8911 8912else 8913 8914 CFLAGS="$CFLAGS -z" 8915 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8916 #CFLAGS="$CFLAGS +DAportable" 8917 SHLIB_CFLAGS="+z" 8918 SHLIB_LD="ld -b" 8919 8920fi 8921 8922 8923 # Check to enable 64-bit flags for compiler/linker 8924 if test "$do64bit" = "yes"; then 8925 8926 if test "$GCC" = yes; then 8927 8928 case `${CC} -dumpmachine` in 8929 hppa64*) 8930 # 64-bit gcc in use. Fix flags for GNU ld. 8931 do64bit_ok=yes 8932 SHLIB_LD='${CC} -shared' 8933 if test $doRpath = yes; then 8934 8935 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8936fi 8937 8938 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8939 ;; 8940 *) 8941 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8942echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8943 ;; 8944 esac 8945 8946else 8947 8948 do64bit_ok=yes 8949 CFLAGS="$CFLAGS +DD64" 8950 LDFLAGS_ARCH="+DD64" 8951 8952fi 8953 8954 8955fi 8956 ;; 8957 IRIX-6.*) 8958 SHLIB_CFLAGS="" 8959 SHLIB_LD="ld -n32 -shared -rdata_shared" 8960 SHLIB_SUFFIX=".so" 8961 if test $doRpath = yes; then 8962 8963 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8964 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8965fi 8966 8967 if test "$GCC" = yes; then 8968 8969 CFLAGS="$CFLAGS -mabi=n32" 8970 LDFLAGS="$LDFLAGS -mabi=n32" 8971 8972else 8973 8974 case $system in 8975 IRIX-6.3) 8976 # Use to build 6.2 compatible binaries on 6.3. 8977 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8978 ;; 8979 *) 8980 CFLAGS="$CFLAGS -n32" 8981 ;; 8982 esac 8983 LDFLAGS="$LDFLAGS -n32" 8984 8985fi 8986 8987 ;; 8988 IRIX64-6.*) 8989 SHLIB_CFLAGS="" 8990 SHLIB_LD="ld -n32 -shared -rdata_shared" 8991 SHLIB_SUFFIX=".so" 8992 if test $doRpath = yes; then 8993 8994 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8995 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8996fi 8997 8998 8999 # Check to enable 64-bit flags for compiler/linker 9000 9001 if test "$do64bit" = yes; then 9002 9003 if test "$GCC" = yes; then 9004 9005 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 9006echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 9007 9008else 9009 9010 do64bit_ok=yes 9011 SHLIB_LD="ld -64 -shared -rdata_shared" 9012 CFLAGS="$CFLAGS -64" 9013 LDFLAGS_ARCH="-64" 9014 9015fi 9016 9017 9018fi 9019 9020 ;; 9021 Linux*) 9022 SHLIB_CFLAGS="-fPIC" 9023 SHLIB_SUFFIX=".so" 9024 9025 # TEA specific: 9026 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 9027 9028 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9029 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 9030 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9031 if test $doRpath = yes; then 9032 9033 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9034fi 9035 9036 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9037 if test "`uname -m`" = "alpha"; then 9038 CFLAGS="$CFLAGS -mieee" 9039fi 9040 9041 if test $do64bit = yes; then 9042 9043 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 9044echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 9045if test "${tcl_cv_cc_m64+set}" = set; then 9046 echo $ECHO_N "(cached) $ECHO_C" >&6 9047else 9048 9049 hold_cflags=$CFLAGS 9050 CFLAGS="$CFLAGS -m64" 9051 cat >conftest.$ac_ext <<_ACEOF 9052/* confdefs.h. */ 9053_ACEOF 9054cat confdefs.h >>conftest.$ac_ext 9055cat >>conftest.$ac_ext <<_ACEOF 9056/* end confdefs.h. */ 9057 9058int 9059main () 9060{ 9061 9062 ; 9063 return 0; 9064} 9065_ACEOF 9066rm -f conftest.$ac_objext conftest$ac_exeext 9067if { (ac_try="$ac_link" 9068case "(($ac_try" in 9069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9070 *) ac_try_echo=$ac_try;; 9071esac 9072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9073 (eval "$ac_link") 2>conftest.er1 9074 ac_status=$? 9075 grep -v '^ *+' conftest.er1 >conftest.err 9076 rm -f conftest.er1 9077 cat conftest.err >&5 9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9079 (exit $ac_status); } && { 9080 test -z "$ac_c_werror_flag" || 9081 test ! -s conftest.err 9082 } && test -s conftest$ac_exeext && 9083 $as_test_x conftest$ac_exeext; then 9084 tcl_cv_cc_m64=yes 9085else 9086 echo "$as_me: failed program was:" >&5 9087sed 's/^/| /' conftest.$ac_ext >&5 9088 9089 tcl_cv_cc_m64=no 9090fi 9091 9092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9093 conftest$ac_exeext conftest.$ac_ext 9094 CFLAGS=$hold_cflags 9095fi 9096{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 9097echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 9098 if test $tcl_cv_cc_m64 = yes; then 9099 9100 CFLAGS="$CFLAGS -m64" 9101 do64bit_ok=yes 9102 9103fi 9104 9105 9106fi 9107 9108 9109 # The combo of gcc + glibc has a bug related to inlining of 9110 # functions like strtod(). The -fno-builtin flag should address 9111 # this problem but it does not work. The -fno-inline flag is kind 9112 # of overkill but it works. Disable inlining only when one of the 9113 # files in compat/*.c is being linked in. 9114 9115 if test x"${USE_COMPAT}" != x; then 9116 CFLAGS="$CFLAGS -fno-inline" 9117fi 9118 9119 9120 ;; 9121 GNU*) 9122 SHLIB_CFLAGS="-fPIC" 9123 SHLIB_SUFFIX=".so" 9124 9125 SHLIB_LD='${CC} -shared' 9126 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9127 CC_SEARCH_FLAGS="" 9128 LD_SEARCH_FLAGS="" 9129 if test "`uname -m`" = "alpha"; then 9130 CFLAGS="$CFLAGS -mieee" 9131fi 9132 9133 ;; 9134 Lynx*) 9135 SHLIB_CFLAGS="-fPIC" 9136 SHLIB_SUFFIX=".so" 9137 CFLAGS_OPTIMIZE=-02 9138 SHLIB_LD='${CC} -shared' 9139 LD_FLAGS="-Wl,--export-dynamic" 9140 if test $doRpath = yes; then 9141 9142 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9143 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9144fi 9145 9146 ;; 9147 OpenBSD-*) 9148 SHLIB_CFLAGS="-fPIC" 9149 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 9150 SHLIB_SUFFIX=".so" 9151 if test $doRpath = yes; then 9152 9153 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9154fi 9155 9156 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9157 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 9158 { echo "$as_me:$LINENO: checking for ELF" >&5 9159echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 9160if test "${tcl_cv_ld_elf+set}" = set; then 9161 echo $ECHO_N "(cached) $ECHO_C" >&6 9162else 9163 9164 cat >conftest.$ac_ext <<_ACEOF 9165/* confdefs.h. */ 9166_ACEOF 9167cat confdefs.h >>conftest.$ac_ext 9168cat >>conftest.$ac_ext <<_ACEOF 9169/* end confdefs.h. */ 9170 9171#ifdef __ELF__ 9172 yes 9173#endif 9174 9175_ACEOF 9176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9177 $EGREP "yes" >/dev/null 2>&1; then 9178 tcl_cv_ld_elf=yes 9179else 9180 tcl_cv_ld_elf=no 9181fi 9182rm -f -r conftest* 9183 9184fi 9185{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 9186echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 9187 if test $tcl_cv_ld_elf = yes; then 9188 9189 LDFLAGS=-Wl,-export-dynamic 9190 9191else 9192 LDFLAGS="" 9193fi 9194 9195 if test "${TCL_THREADS}" = "1"; then 9196 9197 # OpenBSD builds and links with -pthread, never -lpthread. 9198 LIBS=`echo $LIBS | sed s/-lpthread//` 9199 CFLAGS="$CFLAGS -pthread" 9200 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 9201 9202fi 9203 9204 # OpenBSD doesn't do version numbers with dots. 9205 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9206 TCL_LIB_VERSIONS_OK=nodots 9207 ;; 9208 NetBSD-*|FreeBSD-[3-4].*) 9209 # FreeBSD 3.* and greater have ELF. 9210 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 9211 SHLIB_CFLAGS="-fPIC" 9212 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 9213 SHLIB_SUFFIX=".so" 9214 LDFLAGS="$LDFLAGS -export-dynamic" 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 if test "${TCL_THREADS}" = "1"; then 9222 9223 # The -pthread needs to go in the CFLAGS, not LIBS 9224 LIBS=`echo $LIBS | sed s/-pthread//` 9225 CFLAGS="$CFLAGS -pthread" 9226 LDFLAGS="$LDFLAGS -pthread" 9227 9228fi 9229 9230 case $system in 9231 FreeBSD-3.*) 9232 # FreeBSD-3 doesn't handle version numbers with dots. 9233 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9234 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 9235 TCL_LIB_VERSIONS_OK=nodots 9236 ;; 9237 esac 9238 ;; 9239 FreeBSD-*) 9240 # This configuration from FreeBSD Ports. 9241 SHLIB_CFLAGS="-fPIC" 9242 SHLIB_LD="${CC} -shared" 9243 TCL_SHLIB_LD_EXTRAS="-soname \$@" 9244 SHLIB_SUFFIX=".so" 9245 LDFLAGS="" 9246 if test $doRpath = yes; then 9247 9248 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9249 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9250fi 9251 9252 if test "${TCL_THREADS}" = "1"; then 9253 9254 # The -pthread needs to go in the LDFLAGS, not LIBS 9255 LIBS=`echo $LIBS | sed s/-pthread//` 9256 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9257 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 9258fi 9259 9260 # Version numbers are dot-stripped by system policy. 9261 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 9262 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9263 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 9264 TCL_LIB_VERSIONS_OK=nodots 9265 ;; 9266 Darwin-*) 9267 CFLAGS_OPTIMIZE="-Os" 9268 SHLIB_CFLAGS="-fno-common" 9269 # To avoid discrepancies between what headers configure sees during 9270 # preprocessing tests and compiling tests, move any -isysroot and 9271 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 9272 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 9273 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 9274 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 9275 CFLAGS="`echo " ${CFLAGS}" | \ 9276 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 9277 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 9278 if test $do64bit = yes; then 9279 9280 case `arch` in 9281 ppc) 9282 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 9283echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 9284if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 9285 echo $ECHO_N "(cached) $ECHO_C" >&6 9286else 9287 9288 hold_cflags=$CFLAGS 9289 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9290 cat >conftest.$ac_ext <<_ACEOF 9291/* confdefs.h. */ 9292_ACEOF 9293cat confdefs.h >>conftest.$ac_ext 9294cat >>conftest.$ac_ext <<_ACEOF 9295/* end confdefs.h. */ 9296 9297int 9298main () 9299{ 9300 9301 ; 9302 return 0; 9303} 9304_ACEOF 9305rm -f conftest.$ac_objext conftest$ac_exeext 9306if { (ac_try="$ac_link" 9307case "(($ac_try" in 9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9309 *) ac_try_echo=$ac_try;; 9310esac 9311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9312 (eval "$ac_link") 2>conftest.er1 9313 ac_status=$? 9314 grep -v '^ *+' conftest.er1 >conftest.err 9315 rm -f conftest.er1 9316 cat conftest.err >&5 9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9318 (exit $ac_status); } && { 9319 test -z "$ac_c_werror_flag" || 9320 test ! -s conftest.err 9321 } && test -s conftest$ac_exeext && 9322 $as_test_x conftest$ac_exeext; then 9323 tcl_cv_cc_arch_ppc64=yes 9324else 9325 echo "$as_me: failed program was:" >&5 9326sed 's/^/| /' conftest.$ac_ext >&5 9327 9328 tcl_cv_cc_arch_ppc64=no 9329fi 9330 9331rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9332 conftest$ac_exeext conftest.$ac_ext 9333 CFLAGS=$hold_cflags 9334fi 9335{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 9336echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 9337 if test $tcl_cv_cc_arch_ppc64 = yes; then 9338 9339 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9340 do64bit_ok=yes 9341 9342fi 9343;; 9344 i386) 9345 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 9346echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 9347if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 9348 echo $ECHO_N "(cached) $ECHO_C" >&6 9349else 9350 9351 hold_cflags=$CFLAGS 9352 CFLAGS="$CFLAGS -arch x86_64" 9353 cat >conftest.$ac_ext <<_ACEOF 9354/* confdefs.h. */ 9355_ACEOF 9356cat confdefs.h >>conftest.$ac_ext 9357cat >>conftest.$ac_ext <<_ACEOF 9358/* end confdefs.h. */ 9359 9360int 9361main () 9362{ 9363 9364 ; 9365 return 0; 9366} 9367_ACEOF 9368rm -f conftest.$ac_objext conftest$ac_exeext 9369if { (ac_try="$ac_link" 9370case "(($ac_try" in 9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9372 *) ac_try_echo=$ac_try;; 9373esac 9374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9375 (eval "$ac_link") 2>conftest.er1 9376 ac_status=$? 9377 grep -v '^ *+' conftest.er1 >conftest.err 9378 rm -f conftest.er1 9379 cat conftest.err >&5 9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9381 (exit $ac_status); } && { 9382 test -z "$ac_c_werror_flag" || 9383 test ! -s conftest.err 9384 } && test -s conftest$ac_exeext && 9385 $as_test_x conftest$ac_exeext; then 9386 tcl_cv_cc_arch_x86_64=yes 9387else 9388 echo "$as_me: failed program was:" >&5 9389sed 's/^/| /' conftest.$ac_ext >&5 9390 9391 tcl_cv_cc_arch_x86_64=no 9392fi 9393 9394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9395 conftest$ac_exeext conftest.$ac_ext 9396 CFLAGS=$hold_cflags 9397fi 9398{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 9399echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 9400 if test $tcl_cv_cc_arch_x86_64 = yes; then 9401 9402 CFLAGS="$CFLAGS -arch x86_64" 9403 do64bit_ok=yes 9404 9405fi 9406;; 9407 *) 9408 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 9409echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 9410 esac 9411 9412else 9413 9414 # Check for combined 32-bit and 64-bit fat build 9415 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 9416 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 9417 9418 fat_32_64=yes 9419fi 9420 9421 9422fi 9423 9424 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9425 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 9426 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 9427echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 9428if test "${tcl_cv_ld_single_module+set}" = set; then 9429 echo $ECHO_N "(cached) $ECHO_C" >&6 9430else 9431 9432 hold_ldflags=$LDFLAGS 9433 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 9434 cat >conftest.$ac_ext <<_ACEOF 9435/* confdefs.h. */ 9436_ACEOF 9437cat confdefs.h >>conftest.$ac_ext 9438cat >>conftest.$ac_ext <<_ACEOF 9439/* end confdefs.h. */ 9440 9441int 9442main () 9443{ 9444int i; 9445 ; 9446 return 0; 9447} 9448_ACEOF 9449rm -f conftest.$ac_objext conftest$ac_exeext 9450if { (ac_try="$ac_link" 9451case "(($ac_try" in 9452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9453 *) ac_try_echo=$ac_try;; 9454esac 9455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9456 (eval "$ac_link") 2>conftest.er1 9457 ac_status=$? 9458 grep -v '^ *+' conftest.er1 >conftest.err 9459 rm -f conftest.er1 9460 cat conftest.err >&5 9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9462 (exit $ac_status); } && { 9463 test -z "$ac_c_werror_flag" || 9464 test ! -s conftest.err 9465 } && test -s conftest$ac_exeext && 9466 $as_test_x conftest$ac_exeext; then 9467 tcl_cv_ld_single_module=yes 9468else 9469 echo "$as_me: failed program was:" >&5 9470sed 's/^/| /' conftest.$ac_ext >&5 9471 9472 tcl_cv_ld_single_module=no 9473fi 9474 9475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9476 conftest$ac_exeext conftest.$ac_ext 9477 LDFLAGS=$hold_ldflags 9478fi 9479{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 9480echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 9481 if test $tcl_cv_ld_single_module = yes; then 9482 9483 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 9484 9485fi 9486 9487 # TEA specific: link shlib with current and compatiblity version flags 9488 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 9489 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 9490 SHLIB_SUFFIX=".dylib" 9491 # Don't use -prebind when building for Mac OS X 10.4 or later only: 9492 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 9493 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 9494 9495 LDFLAGS="$LDFLAGS -prebind" 9496fi 9497 9498 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 9499 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 9500echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 9501if test "${tcl_cv_ld_search_paths_first+set}" = set; then 9502 echo $ECHO_N "(cached) $ECHO_C" >&6 9503else 9504 9505 hold_ldflags=$LDFLAGS 9506 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9507 cat >conftest.$ac_ext <<_ACEOF 9508/* confdefs.h. */ 9509_ACEOF 9510cat confdefs.h >>conftest.$ac_ext 9511cat >>conftest.$ac_ext <<_ACEOF 9512/* end confdefs.h. */ 9513 9514int 9515main () 9516{ 9517int i; 9518 ; 9519 return 0; 9520} 9521_ACEOF 9522rm -f conftest.$ac_objext conftest$ac_exeext 9523if { (ac_try="$ac_link" 9524case "(($ac_try" in 9525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9526 *) ac_try_echo=$ac_try;; 9527esac 9528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9529 (eval "$ac_link") 2>conftest.er1 9530 ac_status=$? 9531 grep -v '^ *+' conftest.er1 >conftest.err 9532 rm -f conftest.er1 9533 cat conftest.err >&5 9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9535 (exit $ac_status); } && { 9536 test -z "$ac_c_werror_flag" || 9537 test ! -s conftest.err 9538 } && test -s conftest$ac_exeext && 9539 $as_test_x conftest$ac_exeext; then 9540 tcl_cv_ld_search_paths_first=yes 9541else 9542 echo "$as_me: failed program was:" >&5 9543sed 's/^/| /' conftest.$ac_ext >&5 9544 9545 tcl_cv_ld_search_paths_first=no 9546fi 9547 9548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9549 conftest$ac_exeext conftest.$ac_ext 9550 LDFLAGS=$hold_ldflags 9551fi 9552{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9553echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 9554 if test $tcl_cv_ld_search_paths_first = yes; then 9555 9556 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9557 9558fi 9559 9560 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9561 9562 9563cat >>confdefs.h <<\_ACEOF 9564#define MODULE_SCOPE __private_extern__ 9565_ACEOF 9566 9567 tcl_cv_cc_visibility_hidden=yes 9568 9569fi 9570 9571 CC_SEARCH_FLAGS="" 9572 LD_SEARCH_FLAGS="" 9573 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9574 # TEA specific: for combined 32 & 64 bit fat builds of Tk 9575 # extensions, verify that 64-bit build is possible. 9576 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 9577 9578 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 9579 9580 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9581echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 9582if test "${tcl_cv_lib_x11_64+set}" = set; then 9583 echo $ECHO_N "(cached) $ECHO_C" >&6 9584else 9585 9586 for v in CFLAGS CPPFLAGS LDFLAGS; do 9587 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9588 done 9589 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9590 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9591 cat >conftest.$ac_ext <<_ACEOF 9592/* confdefs.h. */ 9593_ACEOF 9594cat confdefs.h >>conftest.$ac_ext 9595cat >>conftest.$ac_ext <<_ACEOF 9596/* end confdefs.h. */ 9597#include <X11/Xlib.h> 9598int 9599main () 9600{ 9601XrmInitialize(); 9602 ; 9603 return 0; 9604} 9605_ACEOF 9606rm -f conftest.$ac_objext conftest$ac_exeext 9607if { (ac_try="$ac_link" 9608case "(($ac_try" in 9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9610 *) ac_try_echo=$ac_try;; 9611esac 9612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9613 (eval "$ac_link") 2>conftest.er1 9614 ac_status=$? 9615 grep -v '^ *+' conftest.er1 >conftest.err 9616 rm -f conftest.er1 9617 cat conftest.err >&5 9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9619 (exit $ac_status); } && { 9620 test -z "$ac_c_werror_flag" || 9621 test ! -s conftest.err 9622 } && test -s conftest$ac_exeext && 9623 $as_test_x conftest$ac_exeext; then 9624 tcl_cv_lib_x11_64=yes 9625else 9626 echo "$as_me: failed program was:" >&5 9627sed 's/^/| /' conftest.$ac_ext >&5 9628 9629 tcl_cv_lib_x11_64=no 9630fi 9631 9632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9633 conftest$ac_exeext conftest.$ac_ext 9634 for v in CFLAGS CPPFLAGS LDFLAGS; do 9635 eval $v'="$hold_'$v'"' 9636 done 9637fi 9638{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9639echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9640 9641fi 9642 9643 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9644 9645 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9646echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9647if test "${tcl_cv_lib_tk_64+set}" = set; then 9648 echo $ECHO_N "(cached) $ECHO_C" >&6 9649else 9650 9651 for v in CFLAGS CPPFLAGS LDFLAGS; do 9652 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9653 done 9654 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9655 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9656 cat >conftest.$ac_ext <<_ACEOF 9657/* confdefs.h. */ 9658_ACEOF 9659cat confdefs.h >>conftest.$ac_ext 9660cat >>conftest.$ac_ext <<_ACEOF 9661/* end confdefs.h. */ 9662#include <tk.h> 9663int 9664main () 9665{ 9666Tk_InitStubs(NULL, "", 0); 9667 ; 9668 return 0; 9669} 9670_ACEOF 9671rm -f conftest.$ac_objext conftest$ac_exeext 9672if { (ac_try="$ac_link" 9673case "(($ac_try" in 9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9675 *) ac_try_echo=$ac_try;; 9676esac 9677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9678 (eval "$ac_link") 2>conftest.er1 9679 ac_status=$? 9680 grep -v '^ *+' conftest.er1 >conftest.err 9681 rm -f conftest.er1 9682 cat conftest.err >&5 9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9684 (exit $ac_status); } && { 9685 test -z "$ac_c_werror_flag" || 9686 test ! -s conftest.err 9687 } && test -s conftest$ac_exeext && 9688 $as_test_x conftest$ac_exeext; then 9689 tcl_cv_lib_tk_64=yes 9690else 9691 echo "$as_me: failed program was:" >&5 9692sed 's/^/| /' conftest.$ac_ext >&5 9693 9694 tcl_cv_lib_tk_64=no 9695fi 9696 9697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9698 conftest$ac_exeext conftest.$ac_ext 9699 for v in CFLAGS CPPFLAGS LDFLAGS; do 9700 eval $v'="$hold_'$v'"' 9701 done 9702fi 9703{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9704echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9705 9706fi 9707 9708 # remove 64-bit arch flags from CFLAGS et al. if configuration 9709 # does not support 64-bit. 9710 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9711 9712 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9713echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9714 for v in CFLAGS CPPFLAGS LDFLAGS; do 9715 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9716 done 9717fi 9718 9719 9720fi 9721 9722 ;; 9723 OS/390-*) 9724 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9725 9726cat >>confdefs.h <<\_ACEOF 9727#define _OE_SOCKETS 1 9728_ACEOF 9729 9730 ;; 9731 OSF1-V*) 9732 # Digital OSF/1 9733 SHLIB_CFLAGS="" 9734 if test "$SHARED_BUILD" = 1; then 9735 9736 SHLIB_LD='ld -shared -expect_unresolved "*"' 9737 9738else 9739 9740 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9741 9742fi 9743 9744 SHLIB_SUFFIX=".so" 9745 if test $doRpath = yes; then 9746 9747 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9748 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9749fi 9750 9751 if test "$GCC" = yes; then 9752 CFLAGS="$CFLAGS -mieee" 9753else 9754 9755 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9756fi 9757 9758 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9759 if test "${TCL_THREADS}" = 1; then 9760 9761 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9762 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9763 LIBS=`echo $LIBS | sed s/-lpthreads//` 9764 if test "$GCC" = yes; then 9765 9766 LIBS="$LIBS -lpthread -lmach -lexc" 9767 9768else 9769 9770 CFLAGS="$CFLAGS -pthread" 9771 LDFLAGS="$LDFLAGS -pthread" 9772 9773fi 9774 9775 9776fi 9777 9778 ;; 9779 QNX-6*) 9780 # QNX RTP 9781 # This may work for all QNX, but it was only reported for v6. 9782 SHLIB_CFLAGS="-fPIC" 9783 SHLIB_LD="ld -Bshareable -x" 9784 SHLIB_LD_LIBS="" 9785 SHLIB_SUFFIX=".so" 9786 CC_SEARCH_FLAGS="" 9787 LD_SEARCH_FLAGS="" 9788 ;; 9789 SCO_SV-3.2*) 9790 if test "$GCC" = yes; then 9791 9792 SHLIB_CFLAGS="-fPIC -melf" 9793 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9794 9795else 9796 9797 SHLIB_CFLAGS="-Kpic -belf" 9798 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9799 9800fi 9801 9802 SHLIB_LD="ld -G" 9803 SHLIB_LD_LIBS="" 9804 SHLIB_SUFFIX=".so" 9805 CC_SEARCH_FLAGS="" 9806 LD_SEARCH_FLAGS="" 9807 ;; 9808 SunOS-5.[0-6]) 9809 # Careful to not let 5.10+ fall into this case 9810 9811 # Note: If _REENTRANT isn't defined, then Solaris 9812 # won't define thread-safe library routines. 9813 9814 9815cat >>confdefs.h <<\_ACEOF 9816#define _REENTRANT 1 9817_ACEOF 9818 9819 9820cat >>confdefs.h <<\_ACEOF 9821#define _POSIX_PTHREAD_SEMANTICS 1 9822_ACEOF 9823 9824 9825 SHLIB_CFLAGS="-KPIC" 9826 SHLIB_SUFFIX=".so" 9827 if test "$GCC" = yes; then 9828 9829 SHLIB_LD='${CC} -shared' 9830 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9831 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9832 9833else 9834 9835 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9836 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9837 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9838 9839fi 9840 9841 ;; 9842 SunOS-5*) 9843 # Note: If _REENTRANT isn't defined, then Solaris 9844 # won't define thread-safe library routines. 9845 9846 9847cat >>confdefs.h <<\_ACEOF 9848#define _REENTRANT 1 9849_ACEOF 9850 9851 9852cat >>confdefs.h <<\_ACEOF 9853#define _POSIX_PTHREAD_SEMANTICS 1 9854_ACEOF 9855 9856 9857 SHLIB_CFLAGS="-KPIC" 9858 9859 # Check to enable 64-bit flags for compiler/linker 9860 if test "$do64bit" = yes; then 9861 9862 arch=`isainfo` 9863 if test "$arch" = "sparcv9 sparc"; then 9864 9865 if test "$GCC" = yes; then 9866 9867 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9868 9869 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9870echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9871 9872else 9873 9874 do64bit_ok=yes 9875 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9876 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9877 SHLIB_CFLAGS="-fPIC" 9878 9879fi 9880 9881 9882else 9883 9884 do64bit_ok=yes 9885 if test "$do64bitVIS" = yes; then 9886 9887 CFLAGS="$CFLAGS -xarch=v9a" 9888 LDFLAGS_ARCH="-xarch=v9a" 9889 9890else 9891 9892 CFLAGS="$CFLAGS -xarch=v9" 9893 LDFLAGS_ARCH="-xarch=v9" 9894 9895fi 9896 9897 # Solaris 64 uses this as well 9898 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9899 9900fi 9901 9902 9903else 9904 if test "$arch" = "amd64 i386"; then 9905 9906 if test "$GCC" = yes; then 9907 9908 case $system in 9909 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9910 do64bit_ok=yes 9911 CFLAGS="$CFLAGS -m64" 9912 LDFLAGS="$LDFLAGS -m64";; 9913 *) 9914 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9915echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9916 esac 9917 9918else 9919 9920 do64bit_ok=yes 9921 case $system in 9922 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9923 CFLAGS="$CFLAGS -m64" 9924 LDFLAGS="$LDFLAGS -m64";; 9925 *) 9926 CFLAGS="$CFLAGS -xarch=amd64" 9927 LDFLAGS="$LDFLAGS -xarch=amd64";; 9928 esac 9929 9930fi 9931 9932 9933else 9934 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9935echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9936fi 9937 9938fi 9939 9940 9941fi 9942 9943 9944 SHLIB_SUFFIX=".so" 9945 if test "$GCC" = yes; then 9946 9947 SHLIB_LD='${CC} -shared' 9948 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9949 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9950 if test "$do64bit_ok" = yes; then 9951 9952 if test "$arch" = "sparcv9 sparc"; then 9953 9954 # We need to specify -static-libgcc or we need to 9955 # add the path to the sparv9 libgcc. 9956 # JH: static-libgcc is necessary for core Tcl, but may 9957 # not be necessary for extensions. 9958 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9959 # for finding sparcv9 libgcc, get the regular libgcc 9960 # path, remove so name and append 'sparcv9' 9961 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9962 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9963 9964else 9965 if test "$arch" = "amd64 i386"; then 9966 9967 # JH: static-libgcc is necessary for core Tcl, but may 9968 # not be necessary for extensions. 9969 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9970 9971fi 9972 9973fi 9974 9975 9976fi 9977 9978 9979else 9980 9981 case $system in 9982 SunOS-5.[1-9][0-9]*) 9983 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9984 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9985 *) 9986 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9987 esac 9988 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9989 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9990 9991fi 9992 9993 ;; 9994 esac 9995 9996 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9997 9998 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9999echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 10000 10001fi 10002 10003 10004 10005 10006 # Add in the arch flags late to ensure it wasn't removed. 10007 # Not necessary in TEA, but this is aligned with core 10008 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 10009 10010 # If we're running gcc, then change the C flags for compiling shared 10011 # libraries to the right flags for gcc, instead of those for the 10012 # standard manufacturer compiler. 10013 10014 if test "$GCC" = yes; then 10015 10016 case $system in 10017 AIX-*) ;; 10018 BSD/OS*) ;; 10019 CYGWIN_*) ;; 10020 IRIX*) ;; 10021 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 10022 Darwin-*) ;; 10023 SCO_SV-3.2*) ;; 10024 windows) ;; 10025 *) SHLIB_CFLAGS="-fPIC" ;; 10026 esac 10027fi 10028 10029 10030 if test "$tcl_cv_cc_visibility_hidden" != yes; then 10031 10032 10033cat >>confdefs.h <<\_ACEOF 10034#define MODULE_SCOPE extern 10035_ACEOF 10036 10037 10038cat >>confdefs.h <<\_ACEOF 10039#define NO_VIZ 10040_ACEOF 10041 10042 10043fi 10044 10045 10046 if test "$SHARED_LIB_SUFFIX" = ""; then 10047 10048 # TEA specific: use PACKAGE_VERSION instead of VERSION 10049 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 10050fi 10051 10052 if test "$UNSHARED_LIB_SUFFIX" = ""; then 10053 10054 # TEA specific: use PACKAGE_VERSION instead of VERSION 10055 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 10056fi 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 # These must be called after we do the basic CFLAGS checks and 10072 # verify any possible 64-bit or similar switches are necessary 10073 10074 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 10075echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 10076 tcl_flags="" 10077 10078 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 10079 echo $ECHO_N "(cached) $ECHO_C" >&6 10080else 10081 cat >conftest.$ac_ext <<_ACEOF 10082/* confdefs.h. */ 10083_ACEOF 10084cat confdefs.h >>conftest.$ac_ext 10085cat >>conftest.$ac_ext <<_ACEOF 10086/* end confdefs.h. */ 10087#include <stdlib.h> 10088int 10089main () 10090{ 10091char *p = (char *)strtoll; char *q = (char *)strtoull; 10092 ; 10093 return 0; 10094} 10095_ACEOF 10096rm -f conftest.$ac_objext 10097if { (ac_try="$ac_compile" 10098case "(($ac_try" in 10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10100 *) ac_try_echo=$ac_try;; 10101esac 10102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10103 (eval "$ac_compile") 2>conftest.er1 10104 ac_status=$? 10105 grep -v '^ *+' conftest.er1 >conftest.err 10106 rm -f conftest.er1 10107 cat conftest.err >&5 10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10109 (exit $ac_status); } && { 10110 test -z "$ac_c_werror_flag" || 10111 test ! -s conftest.err 10112 } && test -s conftest.$ac_objext; then 10113 tcl_cv_flag__isoc99_source=no 10114else 10115 echo "$as_me: failed program was:" >&5 10116sed 's/^/| /' conftest.$ac_ext >&5 10117 10118 cat >conftest.$ac_ext <<_ACEOF 10119/* confdefs.h. */ 10120_ACEOF 10121cat confdefs.h >>conftest.$ac_ext 10122cat >>conftest.$ac_ext <<_ACEOF 10123/* end confdefs.h. */ 10124#define _ISOC99_SOURCE 1 10125#include <stdlib.h> 10126int 10127main () 10128{ 10129char *p = (char *)strtoll; char *q = (char *)strtoull; 10130 ; 10131 return 0; 10132} 10133_ACEOF 10134rm -f conftest.$ac_objext 10135if { (ac_try="$ac_compile" 10136case "(($ac_try" in 10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10138 *) ac_try_echo=$ac_try;; 10139esac 10140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10141 (eval "$ac_compile") 2>conftest.er1 10142 ac_status=$? 10143 grep -v '^ *+' conftest.er1 >conftest.err 10144 rm -f conftest.er1 10145 cat conftest.err >&5 10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10147 (exit $ac_status); } && { 10148 test -z "$ac_c_werror_flag" || 10149 test ! -s conftest.err 10150 } && test -s conftest.$ac_objext; then 10151 tcl_cv_flag__isoc99_source=yes 10152else 10153 echo "$as_me: failed program was:" >&5 10154sed 's/^/| /' conftest.$ac_ext >&5 10155 10156 tcl_cv_flag__isoc99_source=no 10157fi 10158 10159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10160fi 10161 10162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10163fi 10164 10165 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 10166 10167cat >>confdefs.h <<\_ACEOF 10168#define _ISOC99_SOURCE 1 10169_ACEOF 10170 10171 tcl_flags="$tcl_flags _ISOC99_SOURCE" 10172 fi 10173 10174 10175 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 10176 echo $ECHO_N "(cached) $ECHO_C" >&6 10177else 10178 cat >conftest.$ac_ext <<_ACEOF 10179/* confdefs.h. */ 10180_ACEOF 10181cat confdefs.h >>conftest.$ac_ext 10182cat >>conftest.$ac_ext <<_ACEOF 10183/* end confdefs.h. */ 10184#include <sys/stat.h> 10185int 10186main () 10187{ 10188struct stat64 buf; int i = stat64("/", &buf); 10189 ; 10190 return 0; 10191} 10192_ACEOF 10193rm -f conftest.$ac_objext 10194if { (ac_try="$ac_compile" 10195case "(($ac_try" in 10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10197 *) ac_try_echo=$ac_try;; 10198esac 10199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10200 (eval "$ac_compile") 2>conftest.er1 10201 ac_status=$? 10202 grep -v '^ *+' conftest.er1 >conftest.err 10203 rm -f conftest.er1 10204 cat conftest.err >&5 10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10206 (exit $ac_status); } && { 10207 test -z "$ac_c_werror_flag" || 10208 test ! -s conftest.err 10209 } && test -s conftest.$ac_objext; then 10210 tcl_cv_flag__largefile64_source=no 10211else 10212 echo "$as_me: failed program was:" >&5 10213sed 's/^/| /' conftest.$ac_ext >&5 10214 10215 cat >conftest.$ac_ext <<_ACEOF 10216/* confdefs.h. */ 10217_ACEOF 10218cat confdefs.h >>conftest.$ac_ext 10219cat >>conftest.$ac_ext <<_ACEOF 10220/* end confdefs.h. */ 10221#define _LARGEFILE64_SOURCE 1 10222#include <sys/stat.h> 10223int 10224main () 10225{ 10226struct stat64 buf; int i = stat64("/", &buf); 10227 ; 10228 return 0; 10229} 10230_ACEOF 10231rm -f conftest.$ac_objext 10232if { (ac_try="$ac_compile" 10233case "(($ac_try" in 10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10235 *) ac_try_echo=$ac_try;; 10236esac 10237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10238 (eval "$ac_compile") 2>conftest.er1 10239 ac_status=$? 10240 grep -v '^ *+' conftest.er1 >conftest.err 10241 rm -f conftest.er1 10242 cat conftest.err >&5 10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10244 (exit $ac_status); } && { 10245 test -z "$ac_c_werror_flag" || 10246 test ! -s conftest.err 10247 } && test -s conftest.$ac_objext; then 10248 tcl_cv_flag__largefile64_source=yes 10249else 10250 echo "$as_me: failed program was:" >&5 10251sed 's/^/| /' conftest.$ac_ext >&5 10252 10253 tcl_cv_flag__largefile64_source=no 10254fi 10255 10256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10257fi 10258 10259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10260fi 10261 10262 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 10263 10264cat >>confdefs.h <<\_ACEOF 10265#define _LARGEFILE64_SOURCE 1 10266_ACEOF 10267 10268 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 10269 fi 10270 10271 10272 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 10273 echo $ECHO_N "(cached) $ECHO_C" >&6 10274else 10275 cat >conftest.$ac_ext <<_ACEOF 10276/* confdefs.h. */ 10277_ACEOF 10278cat confdefs.h >>conftest.$ac_ext 10279cat >>conftest.$ac_ext <<_ACEOF 10280/* end confdefs.h. */ 10281#include <sys/stat.h> 10282int 10283main () 10284{ 10285char *p = (char *)open64; 10286 ; 10287 return 0; 10288} 10289_ACEOF 10290rm -f conftest.$ac_objext 10291if { (ac_try="$ac_compile" 10292case "(($ac_try" in 10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10294 *) ac_try_echo=$ac_try;; 10295esac 10296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10297 (eval "$ac_compile") 2>conftest.er1 10298 ac_status=$? 10299 grep -v '^ *+' conftest.er1 >conftest.err 10300 rm -f conftest.er1 10301 cat conftest.err >&5 10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10303 (exit $ac_status); } && { 10304 test -z "$ac_c_werror_flag" || 10305 test ! -s conftest.err 10306 } && test -s conftest.$ac_objext; then 10307 tcl_cv_flag__largefile_source64=no 10308else 10309 echo "$as_me: failed program was:" >&5 10310sed 's/^/| /' conftest.$ac_ext >&5 10311 10312 cat >conftest.$ac_ext <<_ACEOF 10313/* confdefs.h. */ 10314_ACEOF 10315cat confdefs.h >>conftest.$ac_ext 10316cat >>conftest.$ac_ext <<_ACEOF 10317/* end confdefs.h. */ 10318#define _LARGEFILE_SOURCE64 1 10319#include <sys/stat.h> 10320int 10321main () 10322{ 10323char *p = (char *)open64; 10324 ; 10325 return 0; 10326} 10327_ACEOF 10328rm -f conftest.$ac_objext 10329if { (ac_try="$ac_compile" 10330case "(($ac_try" in 10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10332 *) ac_try_echo=$ac_try;; 10333esac 10334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10335 (eval "$ac_compile") 2>conftest.er1 10336 ac_status=$? 10337 grep -v '^ *+' conftest.er1 >conftest.err 10338 rm -f conftest.er1 10339 cat conftest.err >&5 10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10341 (exit $ac_status); } && { 10342 test -z "$ac_c_werror_flag" || 10343 test ! -s conftest.err 10344 } && test -s conftest.$ac_objext; then 10345 tcl_cv_flag__largefile_source64=yes 10346else 10347 echo "$as_me: failed program was:" >&5 10348sed 's/^/| /' conftest.$ac_ext >&5 10349 10350 tcl_cv_flag__largefile_source64=no 10351fi 10352 10353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10354fi 10355 10356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10357fi 10358 10359 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 10360 10361cat >>confdefs.h <<\_ACEOF 10362#define _LARGEFILE_SOURCE64 1 10363_ACEOF 10364 10365 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 10366 fi 10367 10368 if test "x${tcl_flags}" = "x" ; then 10369 { echo "$as_me:$LINENO: result: none" >&5 10370echo "${ECHO_T}none" >&6; } 10371 else 10372 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 10373echo "${ECHO_T}${tcl_flags}" >&6; } 10374 fi 10375 10376 10377 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 10378echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 10379 if test "${tcl_cv_type_64bit+set}" = set; then 10380 echo $ECHO_N "(cached) $ECHO_C" >&6 10381else 10382 10383 tcl_cv_type_64bit=none 10384 # See if the compiler knows natively about __int64 10385 cat >conftest.$ac_ext <<_ACEOF 10386/* confdefs.h. */ 10387_ACEOF 10388cat confdefs.h >>conftest.$ac_ext 10389cat >>conftest.$ac_ext <<_ACEOF 10390/* end confdefs.h. */ 10391 10392int 10393main () 10394{ 10395__int64 value = (__int64) 0; 10396 ; 10397 return 0; 10398} 10399_ACEOF 10400rm -f conftest.$ac_objext 10401if { (ac_try="$ac_compile" 10402case "(($ac_try" in 10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10404 *) ac_try_echo=$ac_try;; 10405esac 10406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10407 (eval "$ac_compile") 2>conftest.er1 10408 ac_status=$? 10409 grep -v '^ *+' conftest.er1 >conftest.err 10410 rm -f conftest.er1 10411 cat conftest.err >&5 10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10413 (exit $ac_status); } && { 10414 test -z "$ac_c_werror_flag" || 10415 test ! -s conftest.err 10416 } && test -s conftest.$ac_objext; then 10417 tcl_type_64bit=__int64 10418else 10419 echo "$as_me: failed program was:" >&5 10420sed 's/^/| /' conftest.$ac_ext >&5 10421 10422 tcl_type_64bit="long long" 10423fi 10424 10425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10426 # See if we should use long anyway Note that we substitute in the 10427 # type that is our current guess for a 64-bit type inside this check 10428 # program, so it should be modified only carefully... 10429 cat >conftest.$ac_ext <<_ACEOF 10430/* confdefs.h. */ 10431_ACEOF 10432cat confdefs.h >>conftest.$ac_ext 10433cat >>conftest.$ac_ext <<_ACEOF 10434/* end confdefs.h. */ 10435 10436int 10437main () 10438{ 10439switch (0) { 10440 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 10441 } 10442 ; 10443 return 0; 10444} 10445_ACEOF 10446rm -f conftest.$ac_objext 10447if { (ac_try="$ac_compile" 10448case "(($ac_try" in 10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10450 *) ac_try_echo=$ac_try;; 10451esac 10452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10453 (eval "$ac_compile") 2>conftest.er1 10454 ac_status=$? 10455 grep -v '^ *+' conftest.er1 >conftest.err 10456 rm -f conftest.er1 10457 cat conftest.err >&5 10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10459 (exit $ac_status); } && { 10460 test -z "$ac_c_werror_flag" || 10461 test ! -s conftest.err 10462 } && test -s conftest.$ac_objext; then 10463 tcl_cv_type_64bit=${tcl_type_64bit} 10464else 10465 echo "$as_me: failed program was:" >&5 10466sed 's/^/| /' conftest.$ac_ext >&5 10467 10468 10469fi 10470 10471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10472fi 10473 10474 if test "${tcl_cv_type_64bit}" = none ; then 10475 10476cat >>confdefs.h <<\_ACEOF 10477#define TCL_WIDE_INT_IS_LONG 1 10478_ACEOF 10479 10480 { echo "$as_me:$LINENO: result: using long" >&5 10481echo "${ECHO_T}using long" >&6; } 10482 elif test "${tcl_cv_type_64bit}" = "__int64" \ 10483 -a "${TEA_PLATFORM}" = "windows" ; then 10484 # TEA specific: We actually want to use the default tcl.h checks in 10485 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 10486 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 10487echo "${ECHO_T}using Tcl header defaults" >&6; } 10488 else 10489 10490cat >>confdefs.h <<_ACEOF 10491#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 10492_ACEOF 10493 10494 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 10495echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 10496 10497 # Now check for auxiliary declarations 10498 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 10499echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 10500if test "${tcl_cv_struct_dirent64+set}" = set; then 10501 echo $ECHO_N "(cached) $ECHO_C" >&6 10502else 10503 10504 cat >conftest.$ac_ext <<_ACEOF 10505/* confdefs.h. */ 10506_ACEOF 10507cat confdefs.h >>conftest.$ac_ext 10508cat >>conftest.$ac_ext <<_ACEOF 10509/* end confdefs.h. */ 10510#include <sys/types.h> 10511#include <sys/dirent.h> 10512int 10513main () 10514{ 10515struct dirent64 p; 10516 ; 10517 return 0; 10518} 10519_ACEOF 10520rm -f conftest.$ac_objext 10521if { (ac_try="$ac_compile" 10522case "(($ac_try" in 10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10524 *) ac_try_echo=$ac_try;; 10525esac 10526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10527 (eval "$ac_compile") 2>conftest.er1 10528 ac_status=$? 10529 grep -v '^ *+' conftest.er1 >conftest.err 10530 rm -f conftest.er1 10531 cat conftest.err >&5 10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10533 (exit $ac_status); } && { 10534 test -z "$ac_c_werror_flag" || 10535 test ! -s conftest.err 10536 } && test -s conftest.$ac_objext; then 10537 tcl_cv_struct_dirent64=yes 10538else 10539 echo "$as_me: failed program was:" >&5 10540sed 's/^/| /' conftest.$ac_ext >&5 10541 10542 tcl_cv_struct_dirent64=no 10543fi 10544 10545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10546fi 10547{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10548echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 10549 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10550 10551cat >>confdefs.h <<\_ACEOF 10552#define HAVE_STRUCT_DIRENT64 1 10553_ACEOF 10554 10555 fi 10556 10557 { echo "$as_me:$LINENO: checking for struct stat64" >&5 10558echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 10559if test "${tcl_cv_struct_stat64+set}" = set; then 10560 echo $ECHO_N "(cached) $ECHO_C" >&6 10561else 10562 10563 cat >conftest.$ac_ext <<_ACEOF 10564/* confdefs.h. */ 10565_ACEOF 10566cat confdefs.h >>conftest.$ac_ext 10567cat >>conftest.$ac_ext <<_ACEOF 10568/* end confdefs.h. */ 10569#include <sys/stat.h> 10570int 10571main () 10572{ 10573struct stat64 p; 10574 10575 ; 10576 return 0; 10577} 10578_ACEOF 10579rm -f conftest.$ac_objext 10580if { (ac_try="$ac_compile" 10581case "(($ac_try" in 10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10583 *) ac_try_echo=$ac_try;; 10584esac 10585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10586 (eval "$ac_compile") 2>conftest.er1 10587 ac_status=$? 10588 grep -v '^ *+' conftest.er1 >conftest.err 10589 rm -f conftest.er1 10590 cat conftest.err >&5 10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10592 (exit $ac_status); } && { 10593 test -z "$ac_c_werror_flag" || 10594 test ! -s conftest.err 10595 } && test -s conftest.$ac_objext; then 10596 tcl_cv_struct_stat64=yes 10597else 10598 echo "$as_me: failed program was:" >&5 10599sed 's/^/| /' conftest.$ac_ext >&5 10600 10601 tcl_cv_struct_stat64=no 10602fi 10603 10604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10605fi 10606{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10607echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10608 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10609 10610cat >>confdefs.h <<\_ACEOF 10611#define HAVE_STRUCT_STAT64 1 10612_ACEOF 10613 10614 fi 10615 10616 10617 10618for ac_func in open64 lseek64 10619do 10620as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10621{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10622echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10623if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10624 echo $ECHO_N "(cached) $ECHO_C" >&6 10625else 10626 cat >conftest.$ac_ext <<_ACEOF 10627/* confdefs.h. */ 10628_ACEOF 10629cat confdefs.h >>conftest.$ac_ext 10630cat >>conftest.$ac_ext <<_ACEOF 10631/* end confdefs.h. */ 10632/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10633 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10634#define $ac_func innocuous_$ac_func 10635 10636/* System header to define __stub macros and hopefully few prototypes, 10637 which can conflict with char $ac_func (); below. 10638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10639 <limits.h> exists even on freestanding compilers. */ 10640 10641#ifdef __STDC__ 10642# include <limits.h> 10643#else 10644# include <assert.h> 10645#endif 10646 10647#undef $ac_func 10648 10649/* Override any GCC internal prototype to avoid an error. 10650 Use char because int might match the return type of a GCC 10651 builtin and then its argument prototype would still apply. */ 10652#ifdef __cplusplus 10653extern "C" 10654#endif 10655char $ac_func (); 10656/* The GNU C library defines this for functions which it implements 10657 to always fail with ENOSYS. Some functions are actually named 10658 something starting with __ and the normal name is an alias. */ 10659#if defined __stub_$ac_func || defined __stub___$ac_func 10660choke me 10661#endif 10662 10663int 10664main () 10665{ 10666return $ac_func (); 10667 ; 10668 return 0; 10669} 10670_ACEOF 10671rm -f conftest.$ac_objext conftest$ac_exeext 10672if { (ac_try="$ac_link" 10673case "(($ac_try" in 10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10675 *) ac_try_echo=$ac_try;; 10676esac 10677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10678 (eval "$ac_link") 2>conftest.er1 10679 ac_status=$? 10680 grep -v '^ *+' conftest.er1 >conftest.err 10681 rm -f conftest.er1 10682 cat conftest.err >&5 10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10684 (exit $ac_status); } && { 10685 test -z "$ac_c_werror_flag" || 10686 test ! -s conftest.err 10687 } && test -s conftest$ac_exeext && 10688 $as_test_x conftest$ac_exeext; then 10689 eval "$as_ac_var=yes" 10690else 10691 echo "$as_me: failed program was:" >&5 10692sed 's/^/| /' conftest.$ac_ext >&5 10693 10694 eval "$as_ac_var=no" 10695fi 10696 10697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10698 conftest$ac_exeext conftest.$ac_ext 10699fi 10700ac_res=`eval echo '${'$as_ac_var'}'` 10701 { echo "$as_me:$LINENO: result: $ac_res" >&5 10702echo "${ECHO_T}$ac_res" >&6; } 10703if test `eval echo '${'$as_ac_var'}'` = yes; then 10704 cat >>confdefs.h <<_ACEOF 10705#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10706_ACEOF 10707 10708fi 10709done 10710 10711 { echo "$as_me:$LINENO: checking for off64_t" >&5 10712echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10713 if test "${tcl_cv_type_off64_t+set}" = set; then 10714 echo $ECHO_N "(cached) $ECHO_C" >&6 10715else 10716 10717 cat >conftest.$ac_ext <<_ACEOF 10718/* confdefs.h. */ 10719_ACEOF 10720cat confdefs.h >>conftest.$ac_ext 10721cat >>conftest.$ac_ext <<_ACEOF 10722/* end confdefs.h. */ 10723#include <sys/types.h> 10724int 10725main () 10726{ 10727off64_t offset; 10728 10729 ; 10730 return 0; 10731} 10732_ACEOF 10733rm -f conftest.$ac_objext 10734if { (ac_try="$ac_compile" 10735case "(($ac_try" in 10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10737 *) ac_try_echo=$ac_try;; 10738esac 10739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10740 (eval "$ac_compile") 2>conftest.er1 10741 ac_status=$? 10742 grep -v '^ *+' conftest.er1 >conftest.err 10743 rm -f conftest.er1 10744 cat conftest.err >&5 10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10746 (exit $ac_status); } && { 10747 test -z "$ac_c_werror_flag" || 10748 test ! -s conftest.err 10749 } && test -s conftest.$ac_objext; then 10750 tcl_cv_type_off64_t=yes 10751else 10752 echo "$as_me: failed program was:" >&5 10753sed 's/^/| /' conftest.$ac_ext >&5 10754 10755 tcl_cv_type_off64_t=no 10756fi 10757 10758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10759fi 10760 10761 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10762 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10763 test "x${ac_cv_func_open64}" = "xyes" ; then 10764 10765cat >>confdefs.h <<\_ACEOF 10766#define HAVE_TYPE_OFF64_T 1 10767_ACEOF 10768 10769 { echo "$as_me:$LINENO: result: yes" >&5 10770echo "${ECHO_T}yes" >&6; } 10771 else 10772 { echo "$as_me:$LINENO: result: no" >&5 10773echo "${ECHO_T}no" >&6; } 10774 fi 10775 fi 10776 10777 10778 10779#-------------------------------------------------------------------- 10780# Set the default compiler switches based on the --enable-symbols option. 10781#-------------------------------------------------------------------- 10782 10783 10784 10785 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10786echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10787 # Check whether --enable-symbols was given. 10788if test "${enable_symbols+set}" = set; then 10789 enableval=$enable_symbols; tcl_ok=$enableval 10790else 10791 tcl_ok=no 10792fi 10793 10794 DBGX="" 10795 if test "$tcl_ok" = "no"; then 10796 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10797 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10798 { echo "$as_me:$LINENO: result: no" >&5 10799echo "${ECHO_T}no" >&6; } 10800 else 10801 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10802 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10803 if test "$tcl_ok" = "yes"; then 10804 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10805echo "${ECHO_T}yes (standard debugging)" >&6; } 10806 fi 10807 fi 10808 # TEA specific: 10809 if test "${TEA_PLATFORM}" != "windows" ; then 10810 LDFLAGS_DEFAULT="${LDFLAGS}" 10811 fi 10812 10813 10814 10815 10816 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10817 10818cat >>confdefs.h <<\_ACEOF 10819#define TCL_MEM_DEBUG 1 10820_ACEOF 10821 10822 fi 10823 10824 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10825 if test "$tcl_ok" = "all"; then 10826 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10827echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10828 else 10829 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10830echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10831 fi 10832 fi 10833 10834 10835#-------------------------------------------------------------------- 10836# For Unix/Tk builds, make sure that the X libraries/headers are found. 10837# This must be called after TEA_CONFIG_CFLAGS as it adjusts LIBS. 10838#-------------------------------------------------------------------- 10839 10840 10841 if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then 10842 10843 { echo "$as_me:$LINENO: checking for X" >&5 10844echo $ECHO_N "checking for X... $ECHO_C" >&6; } 10845 10846 10847# Check whether --with-x was given. 10848if test "${with_x+set}" = set; then 10849 withval=$with_x; 10850fi 10851 10852# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 10853if test "x$with_x" = xno; then 10854 # The user explicitly disabled X. 10855 have_x=disabled 10856else 10857 case $x_includes,$x_libraries in #( 10858 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 10859echo "$as_me: error: Cannot use X directory names containing '" >&2;} 10860 { (exit 1); exit 1; }; };; #( 10861 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 10862 echo $ECHO_N "(cached) $ECHO_C" >&6 10863else 10864 # One or both of the vars are not set, and there is no cached value. 10865ac_x_includes=no ac_x_libraries=no 10866rm -f -r conftest.dir 10867if mkdir conftest.dir; then 10868 cd conftest.dir 10869 cat >Imakefile <<'_ACEOF' 10870incroot: 10871 @echo incroot='${INCROOT}' 10872usrlibdir: 10873 @echo usrlibdir='${USRLIBDIR}' 10874libdir: 10875 @echo libdir='${LIBDIR}' 10876_ACEOF 10877 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 10878 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 10879 for ac_var in incroot usrlibdir libdir; do 10880 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 10881 done 10882 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 10883 for ac_extension in a so sl dylib la dll; do 10884 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 10885 test -f "$ac_im_libdir/libX11.$ac_extension"; then 10886 ac_im_usrlibdir=$ac_im_libdir; break 10887 fi 10888 done 10889 # Screen out bogus values from the imake configuration. They are 10890 # bogus both because they are the default anyway, and because 10891 # using them would break gcc on systems where it needs fixed includes. 10892 case $ac_im_incroot in 10893 /usr/include) ac_x_includes= ;; 10894 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 10895 esac 10896 case $ac_im_usrlibdir in 10897 /usr/lib | /lib) ;; 10898 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 10899 esac 10900 fi 10901 cd .. 10902 rm -f -r conftest.dir 10903fi 10904 10905# Standard set of common directories for X headers. 10906# Check X11 before X11Rn because it is often a symlink to the current release. 10907ac_x_header_dirs=' 10908/usr/X11/include 10909/usr/X11R6/include 10910/usr/X11R5/include 10911/usr/X11R4/include 10912 10913/usr/include/X11 10914/usr/include/X11R6 10915/usr/include/X11R5 10916/usr/include/X11R4 10917 10918/usr/local/X11/include 10919/usr/local/X11R6/include 10920/usr/local/X11R5/include 10921/usr/local/X11R4/include 10922 10923/usr/local/include/X11 10924/usr/local/include/X11R6 10925/usr/local/include/X11R5 10926/usr/local/include/X11R4 10927 10928/usr/X386/include 10929/usr/x386/include 10930/usr/XFree86/include/X11 10931 10932/usr/include 10933/usr/local/include 10934/usr/unsupported/include 10935/usr/athena/include 10936/usr/local/x11r5/include 10937/usr/lpp/Xamples/include 10938 10939/usr/openwin/include 10940/usr/openwin/share/include' 10941 10942if test "$ac_x_includes" = no; then 10943 # Guess where to find include files, by looking for Xlib.h. 10944 # First, try using that file with no special directory specified. 10945 cat >conftest.$ac_ext <<_ACEOF 10946/* confdefs.h. */ 10947_ACEOF 10948cat confdefs.h >>conftest.$ac_ext 10949cat >>conftest.$ac_ext <<_ACEOF 10950/* end confdefs.h. */ 10951#include <X11/Xlib.h> 10952_ACEOF 10953if { (ac_try="$ac_cpp conftest.$ac_ext" 10954case "(($ac_try" in 10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10956 *) ac_try_echo=$ac_try;; 10957esac 10958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10960 ac_status=$? 10961 grep -v '^ *+' conftest.er1 >conftest.err 10962 rm -f conftest.er1 10963 cat conftest.err >&5 10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10965 (exit $ac_status); } >/dev/null && { 10966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10967 test ! -s conftest.err 10968 }; then 10969 # We can compile using X headers with no special include directory. 10970ac_x_includes= 10971else 10972 echo "$as_me: failed program was:" >&5 10973sed 's/^/| /' conftest.$ac_ext >&5 10974 10975 for ac_dir in $ac_x_header_dirs; do 10976 if test -r "$ac_dir/X11/Xlib.h"; then 10977 ac_x_includes=$ac_dir 10978 break 10979 fi 10980done 10981fi 10982 10983rm -f conftest.err conftest.$ac_ext 10984fi # $ac_x_includes = no 10985 10986if test "$ac_x_libraries" = no; then 10987 # Check for the libraries. 10988 # See if we find them without any special options. 10989 # Don't add to $LIBS permanently. 10990 ac_save_LIBS=$LIBS 10991 LIBS="-lX11 $LIBS" 10992 cat >conftest.$ac_ext <<_ACEOF 10993/* confdefs.h. */ 10994_ACEOF 10995cat confdefs.h >>conftest.$ac_ext 10996cat >>conftest.$ac_ext <<_ACEOF 10997/* end confdefs.h. */ 10998#include <X11/Xlib.h> 10999int 11000main () 11001{ 11002XrmInitialize () 11003 ; 11004 return 0; 11005} 11006_ACEOF 11007rm -f conftest.$ac_objext conftest$ac_exeext 11008if { (ac_try="$ac_link" 11009case "(($ac_try" in 11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11011 *) ac_try_echo=$ac_try;; 11012esac 11013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11014 (eval "$ac_link") 2>conftest.er1 11015 ac_status=$? 11016 grep -v '^ *+' conftest.er1 >conftest.err 11017 rm -f conftest.er1 11018 cat conftest.err >&5 11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11020 (exit $ac_status); } && { 11021 test -z "$ac_c_werror_flag" || 11022 test ! -s conftest.err 11023 } && test -s conftest$ac_exeext && 11024 $as_test_x conftest$ac_exeext; then 11025 LIBS=$ac_save_LIBS 11026# We can link X programs with no special library path. 11027ac_x_libraries= 11028else 11029 echo "$as_me: failed program was:" >&5 11030sed 's/^/| /' conftest.$ac_ext >&5 11031 11032 LIBS=$ac_save_LIBS 11033for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 11034do 11035 # Don't even attempt the hair of trying to link an X program! 11036 for ac_extension in a so sl dylib la dll; do 11037 if test -r "$ac_dir/libX11.$ac_extension"; then 11038 ac_x_libraries=$ac_dir 11039 break 2 11040 fi 11041 done 11042done 11043fi 11044 11045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11046 conftest$ac_exeext conftest.$ac_ext 11047fi # $ac_x_libraries = no 11048 11049case $ac_x_includes,$ac_x_libraries in #( 11050 no,* | *,no | *\'*) 11051 # Didn't find X, or a directory has "'" in its name. 11052 ac_cv_have_x="have_x=no";; #( 11053 *) 11054 # Record where we found X for the cache. 11055 ac_cv_have_x="have_x=yes\ 11056 ac_x_includes='$ac_x_includes'\ 11057 ac_x_libraries='$ac_x_libraries'" 11058esac 11059fi 11060;; #( 11061 *) have_x=yes;; 11062 esac 11063 eval "$ac_cv_have_x" 11064fi # $with_x != no 11065 11066if test "$have_x" != yes; then 11067 { echo "$as_me:$LINENO: result: $have_x" >&5 11068echo "${ECHO_T}$have_x" >&6; } 11069 no_x=yes 11070else 11071 # If each of the values was on the command line, it overrides each guess. 11072 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 11073 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 11074 # Update the cache value to reflect the command line values. 11075 ac_cv_have_x="have_x=yes\ 11076 ac_x_includes='$x_includes'\ 11077 ac_x_libraries='$x_libraries'" 11078 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 11079echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 11080fi 11081 11082 not_really_there="" 11083 if test "$no_x" = ""; then 11084 if test "$x_includes" = ""; then 11085 cat >conftest.$ac_ext <<_ACEOF 11086/* confdefs.h. */ 11087_ACEOF 11088cat confdefs.h >>conftest.$ac_ext 11089cat >>conftest.$ac_ext <<_ACEOF 11090/* end confdefs.h. */ 11091#include <X11/XIntrinsic.h> 11092_ACEOF 11093if { (ac_try="$ac_cpp conftest.$ac_ext" 11094case "(($ac_try" in 11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11096 *) ac_try_echo=$ac_try;; 11097esac 11098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11100 ac_status=$? 11101 grep -v '^ *+' conftest.er1 >conftest.err 11102 rm -f conftest.er1 11103 cat conftest.err >&5 11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11105 (exit $ac_status); } >/dev/null && { 11106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11107 test ! -s conftest.err 11108 }; then 11109 : 11110else 11111 echo "$as_me: failed program was:" >&5 11112sed 's/^/| /' conftest.$ac_ext >&5 11113 11114 not_really_there="yes" 11115fi 11116 11117rm -f conftest.err conftest.$ac_ext 11118 else 11119 if test ! -r $x_includes/X11/Intrinsic.h; then 11120 not_really_there="yes" 11121 fi 11122 fi 11123 fi 11124 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then 11125 { echo "$as_me:$LINENO: checking for X11 header files" >&5 11126echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 11127 found_xincludes="no" 11128 cat >conftest.$ac_ext <<_ACEOF 11129/* confdefs.h. */ 11130_ACEOF 11131cat confdefs.h >>conftest.$ac_ext 11132cat >>conftest.$ac_ext <<_ACEOF 11133/* end confdefs.h. */ 11134#include <X11/Intrinsic.h> 11135_ACEOF 11136if { (ac_try="$ac_cpp conftest.$ac_ext" 11137case "(($ac_try" in 11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11139 *) ac_try_echo=$ac_try;; 11140esac 11141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11143 ac_status=$? 11144 grep -v '^ *+' conftest.er1 >conftest.err 11145 rm -f conftest.er1 11146 cat conftest.err >&5 11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11148 (exit $ac_status); } >/dev/null && { 11149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11150 test ! -s conftest.err 11151 }; then 11152 found_xincludes="yes" 11153else 11154 echo "$as_me: failed program was:" >&5 11155sed 's/^/| /' conftest.$ac_ext >&5 11156 11157 found_xincludes="no" 11158fi 11159 11160rm -f conftest.err conftest.$ac_ext 11161 if test "$found_xincludes" = "no"; then 11162 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" 11163 for i in $dirs ; do 11164 if test -r $i/X11/Intrinsic.h; then 11165 { echo "$as_me:$LINENO: result: $i" >&5 11166echo "${ECHO_T}$i" >&6; } 11167 XINCLUDES=" -I$i" 11168 found_xincludes="yes" 11169 break 11170 fi 11171 done 11172 fi 11173 else 11174 if test "$x_includes" != ""; then 11175 XINCLUDES="-I$x_includes" 11176 found_xincludes="yes" 11177 fi 11178 fi 11179 if test "$found_xincludes" = "no"; then 11180 { echo "$as_me:$LINENO: result: couldn't find any!" >&5 11181echo "${ECHO_T}couldn't find any!" >&6; } 11182 fi 11183 11184 if test "$no_x" = yes; then 11185 { echo "$as_me:$LINENO: checking for X11 libraries" >&5 11186echo $ECHO_N "checking for X11 libraries... $ECHO_C" >&6; } 11187 XLIBSW=nope 11188 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" 11189 for i in $dirs ; do 11190 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then 11191 { echo "$as_me:$LINENO: result: $i" >&5 11192echo "${ECHO_T}$i" >&6; } 11193 XLIBSW="-L$i -lX11" 11194 x_libraries="$i" 11195 break 11196 fi 11197 done 11198 else 11199 if test "$x_libraries" = ""; then 11200 XLIBSW=-lX11 11201 else 11202 XLIBSW="-L$x_libraries -lX11" 11203 fi 11204 fi 11205 if test "$XLIBSW" = nope ; then 11206 { echo "$as_me:$LINENO: checking for XCreateWindow in -lXwindow" >&5 11207echo $ECHO_N "checking for XCreateWindow in -lXwindow... $ECHO_C" >&6; } 11208if test "${ac_cv_lib_Xwindow_XCreateWindow+set}" = set; then 11209 echo $ECHO_N "(cached) $ECHO_C" >&6 11210else 11211 ac_check_lib_save_LIBS=$LIBS 11212LIBS="-lXwindow $LIBS" 11213cat >conftest.$ac_ext <<_ACEOF 11214/* confdefs.h. */ 11215_ACEOF 11216cat confdefs.h >>conftest.$ac_ext 11217cat >>conftest.$ac_ext <<_ACEOF 11218/* end confdefs.h. */ 11219 11220/* Override any GCC internal prototype to avoid an error. 11221 Use char because int might match the return type of a GCC 11222 builtin and then its argument prototype would still apply. */ 11223#ifdef __cplusplus 11224extern "C" 11225#endif 11226char XCreateWindow (); 11227int 11228main () 11229{ 11230return XCreateWindow (); 11231 ; 11232 return 0; 11233} 11234_ACEOF 11235rm -f conftest.$ac_objext conftest$ac_exeext 11236if { (ac_try="$ac_link" 11237case "(($ac_try" in 11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11239 *) ac_try_echo=$ac_try;; 11240esac 11241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11242 (eval "$ac_link") 2>conftest.er1 11243 ac_status=$? 11244 grep -v '^ *+' conftest.er1 >conftest.err 11245 rm -f conftest.er1 11246 cat conftest.err >&5 11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11248 (exit $ac_status); } && { 11249 test -z "$ac_c_werror_flag" || 11250 test ! -s conftest.err 11251 } && test -s conftest$ac_exeext && 11252 $as_test_x conftest$ac_exeext; then 11253 ac_cv_lib_Xwindow_XCreateWindow=yes 11254else 11255 echo "$as_me: failed program was:" >&5 11256sed 's/^/| /' conftest.$ac_ext >&5 11257 11258 ac_cv_lib_Xwindow_XCreateWindow=no 11259fi 11260 11261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11262 conftest$ac_exeext conftest.$ac_ext 11263LIBS=$ac_check_lib_save_LIBS 11264fi 11265{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5 11266echo "${ECHO_T}$ac_cv_lib_Xwindow_XCreateWindow" >&6; } 11267if test $ac_cv_lib_Xwindow_XCreateWindow = yes; then 11268 XLIBSW=-lXwindow 11269fi 11270 11271 fi 11272 if test "$XLIBSW" = nope ; then 11273 { echo "$as_me:$LINENO: result: could not find any! Using -lX11." >&5 11274echo "${ECHO_T}could not find any! Using -lX11." >&6; } 11275 XLIBSW=-lX11 11276 fi 11277 # TEA specific: 11278 if test x"${XLIBSW}" != x ; then 11279 PKG_LIBS="${PKG_LIBS} ${XLIBSW}" 11280 fi 11281 11282 fi 11283 11284 11285#-------------------------------------------------------------------- 11286# Everyone should be linking against the Tcl stub library. If you 11287# can't for some reason, remove this definition. If you aren't using 11288# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 11289# link against the non-stubbed Tcl library. 11290#-------------------------------------------------------------------- 11291 11292cat >>confdefs.h <<\_ACEOF 11293#define USE_TCL_STUBS 1 11294_ACEOF 11295 11296cat >>confdefs.h <<\_ACEOF 11297#define USE_TK_STUBS 1 11298_ACEOF 11299 11300 11301#-------------------------------------------------------------------- 11302# This macro generates a line to use when building a library. It 11303# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 11304# and TEA_LOAD_TCLCONFIG macros above. 11305#-------------------------------------------------------------------- 11306 11307 11308 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 11309 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 11310 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 11311 cat >conftest.$ac_ext <<_ACEOF 11312/* confdefs.h. */ 11313_ACEOF 11314cat confdefs.h >>conftest.$ac_ext 11315cat >>conftest.$ac_ext <<_ACEOF 11316/* end confdefs.h. */ 11317 11318#if defined(_MSC_VER) && _MSC_VER >= 1400 11319print("manifest needed") 11320#endif 11321 11322_ACEOF 11323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11324 $EGREP "manifest needed" >/dev/null 2>&1; then 11325 11326 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 11327 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 11328 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 11329 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 11330 11331 CLEANFILES="$CLEANFILES *.manifest" 11332 11333 11334fi 11335rm -f -r conftest* 11336 11337 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 11338 else 11339 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 11340 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 11341 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 11342 fi 11343 11344 if test "${SHARED_BUILD}" = "1" ; then 11345 MAKE_LIB="${MAKE_SHARED_LIB} " 11346 else 11347 MAKE_LIB="${MAKE_STATIC_LIB} " 11348 fi 11349 11350 #-------------------------------------------------------------------- 11351 # Shared libraries and static libraries have different names. 11352 # Use the double eval to make sure any variables in the suffix is 11353 # substituted. (@@@ Might not be necessary anymore) 11354 #-------------------------------------------------------------------- 11355 11356 if test "${TEA_PLATFORM}" = "windows" ; then 11357 if test "${SHARED_BUILD}" = "1" ; then 11358 # We force the unresolved linking of symbols that are really in 11359 # the private libraries of Tcl and Tk. 11360 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 11361 if test x"${TK_BIN_DIR}" != x ; then 11362 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 11363 fi 11364 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 11365 else 11366 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 11367 fi 11368 # Some packages build their own stubs libraries 11369 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 11370 if test "$GCC" = "yes"; then 11371 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 11372 fi 11373 # These aren't needed on Windows (either MSVC or gcc) 11374 RANLIB=: 11375 RANLIB_STUB=: 11376 else 11377 RANLIB_STUB="${RANLIB}" 11378 if test "${SHARED_BUILD}" = "1" ; then 11379 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 11380 if test x"${TK_BIN_DIR}" != x ; then 11381 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 11382 fi 11383 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 11384 RANLIB=: 11385 else 11386 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 11387 fi 11388 # Some packages build their own stubs libraries 11389 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 11390 fi 11391 11392 # These are escaped so that only CFLAGS is picked up at configure time. 11393 # The other values will be substituted at make time. 11394 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 11395 if test "${SHARED_BUILD}" = "1" ; then 11396 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 11397 fi 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408#-------------------------------------------------------------------- 11409# __CHANGE__ 11410# Add platform libs to LIBS or SHLIB_LD_LIBS as necessary. 11411#-------------------------------------------------------------------- 11412 11413if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 11414 11415 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\"" 11416 for i in $vars; do 11417 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 11418 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 11419 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 11420 fi 11421 PKG_LIBS="$PKG_LIBS $i" 11422 done 11423 11424 11425else 11426 11427 vars="${tkimg_STUB_LIB_SPEC}" 11428 for i in $vars; do 11429 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 11430 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 11431 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 11432 fi 11433 PKG_LIBS="$PKG_LIBS $i" 11434 done 11435 11436 11437fi 11438 11439#-------------------------------------------------------------------- 11440# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 11441# file during the install process. Don't run the TCLSH_PROG through 11442# ${CYGPATH} because it's being used directly by make. 11443# Require that we use a tclsh shell version 8.2 or later since earlier 11444# versions have bugs in the pkg_mkIndex routine. 11445# Add WISH as well if this is a Tk extension. 11446#-------------------------------------------------------------------- 11447 11448 11449 { echo "$as_me:$LINENO: checking for tclsh" >&5 11450echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 11451 if test -f "${TCL_BIN_DIR}/Makefile" ; then 11452 # tclConfig.sh is in Tcl build directory 11453 if test "${TEA_PLATFORM}" = "windows"; then 11454 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 11455 else 11456 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 11457 fi 11458 else 11459 # tclConfig.sh is in install location 11460 if test "${TEA_PLATFORM}" = "windows"; then 11461 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 11462 else 11463 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 11464 fi 11465 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 11466 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 11467 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 11468 for i in $list ; do 11469 if test -f "$i/${TCLSH_PROG}" ; then 11470 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 11471 break 11472 fi 11473 done 11474 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 11475 fi 11476 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 11477echo "${ECHO_T}${TCLSH_PROG}" >&6; } 11478 11479 11480 11481 { echo "$as_me:$LINENO: checking for wish" >&5 11482echo $ECHO_N "checking for wish... $ECHO_C" >&6; } 11483 if test -f "${TK_BIN_DIR}/Makefile" ; then 11484 # tkConfig.sh is in Tk build directory 11485 if test "${TEA_PLATFORM}" = "windows"; then 11486 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 11487 else 11488 WISH_PROG="${TK_BIN_DIR}/wish" 11489 fi 11490 else 11491 # tkConfig.sh is in install location 11492 if test "${TEA_PLATFORM}" = "windows"; then 11493 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 11494 else 11495 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}" 11496 fi 11497 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \ 11498 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \ 11499 `ls -d ${TK_PREFIX}/bin 2>/dev/null`" 11500 for i in $list ; do 11501 if test -f "$i/${WISH_PROG}" ; then 11502 REAL_TK_BIN_DIR="`cd "$i"; pwd`/" 11503 break 11504 fi 11505 done 11506 WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}" 11507 fi 11508 { echo "$as_me:$LINENO: result: ${WISH_PROG}" >&5 11509echo "${ECHO_T}${WISH_PROG}" >&6; } 11510 11511 11512 11513#-------------------------------------------------------------------- 11514# Finally, substitute all of the various values into the Makefile. 11515# You may alternatively have a special pkgIndex.tcl.in or other files 11516# which require substituting th AC variables in. Include these here. 11517#-------------------------------------------------------------------- 11518 11519ac_config_files="$ac_config_files Makefile" 11520 11521cat >confcache <<\_ACEOF 11522# This file is a shell script that caches the results of configure 11523# tests run on this system so they can be shared between configure 11524# scripts and configure runs, see configure's option --config-cache. 11525# It is not useful on other systems. If it contains results you don't 11526# want to keep, you may remove or edit it. 11527# 11528# config.status only pays attention to the cache file if you give it 11529# the --recheck option to rerun configure. 11530# 11531# `ac_cv_env_foo' variables (set or unset) will be overridden when 11532# loading this file, other *unset* `ac_cv_foo' will be assigned the 11533# following values. 11534 11535_ACEOF 11536 11537# The following way of writing the cache mishandles newlines in values, 11538# but we know of no workaround that is simple, portable, and efficient. 11539# So, we kill variables containing newlines. 11540# Ultrix sh set writes to stderr and can't be redirected directly, 11541# and sets the high bit in the cache file unless we assign to the vars. 11542( 11543 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11544 eval ac_val=\$$ac_var 11545 case $ac_val in #( 11546 *${as_nl}*) 11547 case $ac_var in #( 11548 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 11549echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 11550 esac 11551 case $ac_var in #( 11552 _ | IFS | as_nl) ;; #( 11553 *) $as_unset $ac_var ;; 11554 esac ;; 11555 esac 11556 done 11557 11558 (set) 2>&1 | 11559 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11560 *${as_nl}ac_space=\ *) 11561 # `set' does not quote correctly, so add quotes (double-quote 11562 # substitution turns \\\\ into \\, and sed turns \\ into \). 11563 sed -n \ 11564 "s/'/'\\\\''/g; 11565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11566 ;; #( 11567 *) 11568 # `set' quotes correctly as required by POSIX, so do not add quotes. 11569 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11570 ;; 11571 esac | 11572 sort 11573) | 11574 sed ' 11575 /^ac_cv_env_/b end 11576 t clear 11577 :clear 11578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11579 t end 11580 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11581 :end' >>confcache 11582if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11583 if test -w "$cache_file"; then 11584 test "x$cache_file" != "x/dev/null" && 11585 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 11586echo "$as_me: updating cache $cache_file" >&6;} 11587 cat confcache >$cache_file 11588 else 11589 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 11590echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11591 fi 11592fi 11593rm -f confcache 11594 11595test "x$prefix" = xNONE && prefix=$ac_default_prefix 11596# Let make expand exec_prefix. 11597test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11598 11599# Transform confdefs.h into DEFS. 11600# Protect against shell expansion while executing Makefile rules. 11601# Protect against Makefile macro expansion. 11602# 11603# If the first sed substitution is executed (which looks for macros that 11604# take arguments), then branch to the quote section. Otherwise, 11605# look for a macro that doesn't take arguments. 11606ac_script=' 11607t clear 11608:clear 11609s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11610t quote 11611s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11612t quote 11613b any 11614:quote 11615s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11616s/\[/\\&/g 11617s/\]/\\&/g 11618s/\$/$$/g 11619H 11620:any 11621${ 11622 g 11623 s/^\n// 11624 s/\n/ /g 11625 p 11626} 11627' 11628DEFS=`sed -n "$ac_script" confdefs.h` 11629 11630 11631ac_libobjs= 11632ac_ltlibobjs= 11633for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11634 # 1. Remove the extension, and $U if already installed. 11635 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11636 ac_i=`echo "$ac_i" | sed "$ac_script"` 11637 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11638 # will be set to the directory where LIBOBJS objects are built. 11639 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11640 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 11641done 11642LIBOBJS=$ac_libobjs 11643 11644LTLIBOBJS=$ac_ltlibobjs 11645 11646 11647CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 11648 11649: ${CONFIG_STATUS=./config.status} 11650ac_clean_files_save=$ac_clean_files 11651ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11652{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11653echo "$as_me: creating $CONFIG_STATUS" >&6;} 11654cat >$CONFIG_STATUS <<_ACEOF 11655#! $SHELL 11656# Generated by $as_me. 11657# Run this file to recreate the current configuration. 11658# Compiler output produced by configure, useful for debugging 11659# configure, is in config.log if it exists. 11660 11661debug=false 11662ac_cs_recheck=false 11663ac_cs_silent=false 11664SHELL=\${CONFIG_SHELL-$SHELL} 11665_ACEOF 11666 11667cat >>$CONFIG_STATUS <<\_ACEOF 11668## --------------------- ## 11669## M4sh Initialization. ## 11670## --------------------- ## 11671 11672# Be more Bourne compatible 11673DUALCASE=1; export DUALCASE # for MKS sh 11674if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11675 emulate sh 11676 NULLCMD=: 11677 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11678 # is contrary to our usage. Disable this feature. 11679 alias -g '${1+"$@"}'='"$@"' 11680 setopt NO_GLOB_SUBST 11681else 11682 case `(set -o) 2>/dev/null` in 11683 *posix*) set -o posix ;; 11684esac 11685 11686fi 11687 11688 11689 11690 11691# PATH needs CR 11692# Avoid depending upon Character Ranges. 11693as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11694as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11695as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11696as_cr_digits='0123456789' 11697as_cr_alnum=$as_cr_Letters$as_cr_digits 11698 11699# The user is always right. 11700if test "${PATH_SEPARATOR+set}" != set; then 11701 echo "#! /bin/sh" >conf$$.sh 11702 echo "exit 0" >>conf$$.sh 11703 chmod +x conf$$.sh 11704 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11705 PATH_SEPARATOR=';' 11706 else 11707 PATH_SEPARATOR=: 11708 fi 11709 rm -f conf$$.sh 11710fi 11711 11712# Support unset when possible. 11713if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11714 as_unset=unset 11715else 11716 as_unset=false 11717fi 11718 11719 11720# IFS 11721# We need space, tab and new line, in precisely that order. Quoting is 11722# there to prevent editors from complaining about space-tab. 11723# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11724# splitting by setting IFS to empty value.) 11725as_nl=' 11726' 11727IFS=" "" $as_nl" 11728 11729# Find who we are. Look in the path if we contain no directory separator. 11730case $0 in 11731 *[\\/]* ) as_myself=$0 ;; 11732 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11733for as_dir in $PATH 11734do 11735 IFS=$as_save_IFS 11736 test -z "$as_dir" && as_dir=. 11737 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11738done 11739IFS=$as_save_IFS 11740 11741 ;; 11742esac 11743# We did not find ourselves, most probably we were run as `sh COMMAND' 11744# in which case we are not to be found in the path. 11745if test "x$as_myself" = x; then 11746 as_myself=$0 11747fi 11748if test ! -f "$as_myself"; then 11749 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11750 { (exit 1); exit 1; } 11751fi 11752 11753# Work around bugs in pre-3.0 UWIN ksh. 11754for as_var in ENV MAIL MAILPATH 11755do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11756done 11757PS1='$ ' 11758PS2='> ' 11759PS4='+ ' 11760 11761# NLS nuisances. 11762for as_var in \ 11763 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11764 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11765 LC_TELEPHONE LC_TIME 11766do 11767 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11768 eval $as_var=C; export $as_var 11769 else 11770 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11771 fi 11772done 11773 11774# Required to use basename. 11775if expr a : '\(a\)' >/dev/null 2>&1 && 11776 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11777 as_expr=expr 11778else 11779 as_expr=false 11780fi 11781 11782if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11783 as_basename=basename 11784else 11785 as_basename=false 11786fi 11787 11788 11789# Name of the executable. 11790as_me=`$as_basename -- "$0" || 11791$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11792 X"$0" : 'X\(//\)$' \| \ 11793 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11794echo X/"$0" | 11795 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11796 s//\1/ 11797 q 11798 } 11799 /^X\/\(\/\/\)$/{ 11800 s//\1/ 11801 q 11802 } 11803 /^X\/\(\/\).*/{ 11804 s//\1/ 11805 q 11806 } 11807 s/.*/./; q'` 11808 11809# CDPATH. 11810$as_unset CDPATH 11811 11812 11813 11814 as_lineno_1=$LINENO 11815 as_lineno_2=$LINENO 11816 test "x$as_lineno_1" != "x$as_lineno_2" && 11817 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 11818 11819 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11820 # uniformly replaced by the line number. The first 'sed' inserts a 11821 # line-number line after each line using $LINENO; the second 'sed' 11822 # does the real work. The second script uses 'N' to pair each 11823 # line-number line with the line containing $LINENO, and appends 11824 # trailing '-' during substitution so that $LINENO is not a special 11825 # case at line end. 11826 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11827 # scripts with optimization help from Paolo Bonzini. Blame Lee 11828 # E. McMahon (1931-1989) for sed's syntax. :-) 11829 sed -n ' 11830 p 11831 /[$]LINENO/= 11832 ' <$as_myself | 11833 sed ' 11834 s/[$]LINENO.*/&-/ 11835 t lineno 11836 b 11837 :lineno 11838 N 11839 :loop 11840 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 11841 t loop 11842 s/-\n.*// 11843 ' >$as_me.lineno && 11844 chmod +x "$as_me.lineno" || 11845 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 11846 { (exit 1); exit 1; }; } 11847 11848 # Don't try to exec as it changes $[0], causing all sort of problems 11849 # (the dirname of $[0] is not the place where we might find the 11850 # original and so on. Autoconf is especially sensitive to this). 11851 . "./$as_me.lineno" 11852 # Exit status is that of the last command. 11853 exit 11854} 11855 11856 11857if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11858 as_dirname=dirname 11859else 11860 as_dirname=false 11861fi 11862 11863ECHO_C= ECHO_N= ECHO_T= 11864case `echo -n x` in 11865-n*) 11866 case `echo 'x\c'` in 11867 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11868 *) ECHO_C='\c';; 11869 esac;; 11870*) 11871 ECHO_N='-n';; 11872esac 11873 11874if expr a : '\(a\)' >/dev/null 2>&1 && 11875 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11876 as_expr=expr 11877else 11878 as_expr=false 11879fi 11880 11881rm -f conf$$ conf$$.exe conf$$.file 11882if test -d conf$$.dir; then 11883 rm -f conf$$.dir/conf$$.file 11884else 11885 rm -f conf$$.dir 11886 mkdir conf$$.dir 11887fi 11888echo >conf$$.file 11889if ln -s conf$$.file conf$$ 2>/dev/null; then 11890 as_ln_s='ln -s' 11891 # ... but there are two gotchas: 11892 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11893 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11894 # In both cases, we have to default to `cp -p'. 11895 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11896 as_ln_s='cp -p' 11897elif ln conf$$.file conf$$ 2>/dev/null; then 11898 as_ln_s=ln 11899else 11900 as_ln_s='cp -p' 11901fi 11902rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11903rmdir conf$$.dir 2>/dev/null 11904 11905if mkdir -p . 2>/dev/null; then 11906 as_mkdir_p=: 11907else 11908 test -d ./-p && rmdir ./-p 11909 as_mkdir_p=false 11910fi 11911 11912if test -x / >/dev/null 2>&1; then 11913 as_test_x='test -x' 11914else 11915 if ls -dL / >/dev/null 2>&1; then 11916 as_ls_L_option=L 11917 else 11918 as_ls_L_option= 11919 fi 11920 as_test_x=' 11921 eval sh -c '\'' 11922 if test -d "$1"; then 11923 test -d "$1/."; 11924 else 11925 case $1 in 11926 -*)set "./$1";; 11927 esac; 11928 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 11929 ???[sx]*):;;*)false;;esac;fi 11930 '\'' sh 11931 ' 11932fi 11933as_executable_p=$as_test_x 11934 11935# Sed expression to map a string onto a valid CPP name. 11936as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11937 11938# Sed expression to map a string onto a valid variable name. 11939as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11940 11941 11942exec 6>&1 11943 11944# Save the log message, to keep $[0] and so on meaningful, and to 11945# report actual input values of CONFIG_FILES etc. instead of their 11946# values after options handling. 11947ac_log=" 11948This file was extended by tkimgraw $as_me 1.4, which was 11949generated by GNU Autoconf 2.61. Invocation command line was 11950 11951 CONFIG_FILES = $CONFIG_FILES 11952 CONFIG_HEADERS = $CONFIG_HEADERS 11953 CONFIG_LINKS = $CONFIG_LINKS 11954 CONFIG_COMMANDS = $CONFIG_COMMANDS 11955 $ $0 $@ 11956 11957on `(hostname || uname -n) 2>/dev/null | sed 1q` 11958" 11959 11960_ACEOF 11961 11962cat >>$CONFIG_STATUS <<_ACEOF 11963# Files that config.status was made for. 11964config_files="$ac_config_files" 11965 11966_ACEOF 11967 11968cat >>$CONFIG_STATUS <<\_ACEOF 11969ac_cs_usage="\ 11970\`$as_me' instantiates files from templates according to the 11971current configuration. 11972 11973Usage: $0 [OPTIONS] [FILE]... 11974 11975 -h, --help print this help, then exit 11976 -V, --version print version number and configuration settings, then exit 11977 -q, --quiet do not print progress messages 11978 -d, --debug don't remove temporary files 11979 --recheck update $as_me by reconfiguring in the same conditions 11980 --file=FILE[:TEMPLATE] 11981 instantiate the configuration file FILE 11982 11983Configuration files: 11984$config_files 11985 11986Report bugs to <bug-autoconf@gnu.org>." 11987 11988_ACEOF 11989cat >>$CONFIG_STATUS <<_ACEOF 11990ac_cs_version="\\ 11991tkimgraw config.status 1.4 11992configured by $0, generated by GNU Autoconf 2.61, 11993 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11994 11995Copyright (C) 2006 Free Software Foundation, Inc. 11996This config.status script is free software; the Free Software Foundation 11997gives unlimited permission to copy, distribute and modify it." 11998 11999ac_pwd='$ac_pwd' 12000srcdir='$srcdir' 12001INSTALL='$INSTALL' 12002_ACEOF 12003 12004cat >>$CONFIG_STATUS <<\_ACEOF 12005# If no file are specified by the user, then we need to provide default 12006# value. By we need to know if files were specified by the user. 12007ac_need_defaults=: 12008while test $# != 0 12009do 12010 case $1 in 12011 --*=*) 12012 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12013 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12014 ac_shift=: 12015 ;; 12016 *) 12017 ac_option=$1 12018 ac_optarg=$2 12019 ac_shift=shift 12020 ;; 12021 esac 12022 12023 case $ac_option in 12024 # Handling of the options. 12025 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12026 ac_cs_recheck=: ;; 12027 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12028 echo "$ac_cs_version"; exit ;; 12029 --debug | --debu | --deb | --de | --d | -d ) 12030 debug=: ;; 12031 --file | --fil | --fi | --f ) 12032 $ac_shift 12033 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 12034 ac_need_defaults=false;; 12035 --he | --h | --help | --hel | -h ) 12036 echo "$ac_cs_usage"; exit ;; 12037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12038 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12039 ac_cs_silent=: ;; 12040 12041 # This is an error. 12042 -*) { echo "$as_me: error: unrecognized option: $1 12043Try \`$0 --help' for more information." >&2 12044 { (exit 1); exit 1; }; } ;; 12045 12046 *) ac_config_targets="$ac_config_targets $1" 12047 ac_need_defaults=false ;; 12048 12049 esac 12050 shift 12051done 12052 12053ac_configure_extra_args= 12054 12055if $ac_cs_silent; then 12056 exec 6>/dev/null 12057 ac_configure_extra_args="$ac_configure_extra_args --silent" 12058fi 12059 12060_ACEOF 12061cat >>$CONFIG_STATUS <<_ACEOF 12062if \$ac_cs_recheck; then 12063 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 12064 CONFIG_SHELL=$SHELL 12065 export CONFIG_SHELL 12066 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12067fi 12068 12069_ACEOF 12070cat >>$CONFIG_STATUS <<\_ACEOF 12071exec 5>>config.log 12072{ 12073 echo 12074 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12075## Running $as_me. ## 12076_ASBOX 12077 echo "$ac_log" 12078} >&5 12079 12080_ACEOF 12081cat >>$CONFIG_STATUS <<_ACEOF 12082_ACEOF 12083 12084cat >>$CONFIG_STATUS <<\_ACEOF 12085 12086# Handling of arguments. 12087for ac_config_target in $ac_config_targets 12088do 12089 case $ac_config_target in 12090 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12091 12092 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12093echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12094 { (exit 1); exit 1; }; };; 12095 esac 12096done 12097 12098 12099# If the user did not use the arguments to specify the items to instantiate, 12100# then the envvar interface is used. Set only those that are not. 12101# We use the long form for the default assignment because of an extremely 12102# bizarre bug on SunOS 4.1.3. 12103if $ac_need_defaults; then 12104 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12105fi 12106 12107# Have a temporary directory for convenience. Make it in the build tree 12108# simply because there is no reason against having it here, and in addition, 12109# creating and moving files from /tmp can sometimes cause problems. 12110# Hook for its removal unless debugging. 12111# Note that there is a small window in which the directory will not be cleaned: 12112# after its creation but before its name has been assigned to `$tmp'. 12113$debug || 12114{ 12115 tmp= 12116 trap 'exit_status=$? 12117 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12118' 0 12119 trap '{ (exit 1); exit 1; }' 1 2 13 15 12120} 12121# Create a (secure) tmp directory for tmp files. 12122 12123{ 12124 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12125 test -n "$tmp" && test -d "$tmp" 12126} || 12127{ 12128 tmp=./conf$$-$RANDOM 12129 (umask 077 && mkdir "$tmp") 12130} || 12131{ 12132 echo "$me: cannot create a temporary directory in ." >&2 12133 { (exit 1); exit 1; } 12134} 12135 12136# 12137# Set up the sed scripts for CONFIG_FILES section. 12138# 12139 12140# No need to generate the scripts if there are no CONFIG_FILES. 12141# This happens for instance when ./config.status config.h 12142if test -n "$CONFIG_FILES"; then 12143 12144_ACEOF 12145 12146 12147 12148ac_delim='%!_!# ' 12149for ac_last_try in false false false false false :; do 12150 cat >conf$$subs.sed <<_ACEOF 12151SHELL!$SHELL$ac_delim 12152PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 12153PACKAGE_NAME!$PACKAGE_NAME$ac_delim 12154PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 12155PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 12156PACKAGE_STRING!$PACKAGE_STRING$ac_delim 12157PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 12158exec_prefix!$exec_prefix$ac_delim 12159prefix!$prefix$ac_delim 12160program_transform_name!$program_transform_name$ac_delim 12161bindir!$bindir$ac_delim 12162sbindir!$sbindir$ac_delim 12163libexecdir!$libexecdir$ac_delim 12164datarootdir!$datarootdir$ac_delim 12165datadir!$datadir$ac_delim 12166sysconfdir!$sysconfdir$ac_delim 12167sharedstatedir!$sharedstatedir$ac_delim 12168localstatedir!$localstatedir$ac_delim 12169includedir!$includedir$ac_delim 12170oldincludedir!$oldincludedir$ac_delim 12171docdir!$docdir$ac_delim 12172infodir!$infodir$ac_delim 12173htmldir!$htmldir$ac_delim 12174dvidir!$dvidir$ac_delim 12175pdfdir!$pdfdir$ac_delim 12176psdir!$psdir$ac_delim 12177libdir!$libdir$ac_delim 12178localedir!$localedir$ac_delim 12179mandir!$mandir$ac_delim 12180DEFS!$DEFS$ac_delim 12181ECHO_C!$ECHO_C$ac_delim 12182ECHO_N!$ECHO_N$ac_delim 12183ECHO_T!$ECHO_T$ac_delim 12184LIBS!$LIBS$ac_delim 12185build_alias!$build_alias$ac_delim 12186host_alias!$host_alias$ac_delim 12187target_alias!$target_alias$ac_delim 12188CYGPATH!$CYGPATH$ac_delim 12189EXEEXT!$EXEEXT$ac_delim 12190PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 12191PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 12192PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 12193PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 12194PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 12195PKG_HEADERS!$PKG_HEADERS$ac_delim 12196PKG_INCLUDES!$PKG_INCLUDES$ac_delim 12197PKG_LIBS!$PKG_LIBS$ac_delim 12198PKG_CFLAGS!$PKG_CFLAGS$ac_delim 12199PACKAGE_TCLNAME!$PACKAGE_TCLNAME$ac_delim 12200TCL_VERSION!$TCL_VERSION$ac_delim 12201TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 12202TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 12203TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 12204TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 12205TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 12206TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 12207TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 12208TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 12209TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 12210CLEANFILES!$CLEANFILES$ac_delim 12211TCL_LIBS!$TCL_LIBS$ac_delim 12212TCL_DEFS!$TCL_DEFS$ac_delim 12213TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 12214TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 12215TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 12216TK_VERSION!$TK_VERSION$ac_delim 12217TK_BIN_DIR!$TK_BIN_DIR$ac_delim 12218TK_SRC_DIR!$TK_SRC_DIR$ac_delim 12219TK_LIB_FILE!$TK_LIB_FILE$ac_delim 12220TK_LIB_FLAG!$TK_LIB_FLAG$ac_delim 12221TK_LIB_SPEC!$TK_LIB_SPEC$ac_delim 12222TK_STUB_LIB_FILE!$TK_STUB_LIB_FILE$ac_delim 12223TK_STUB_LIB_FLAG!$TK_STUB_LIB_FLAG$ac_delim 12224TK_STUB_LIB_SPEC!$TK_STUB_LIB_SPEC$ac_delim 12225TK_LIBS!$TK_LIBS$ac_delim 12226TK_XINCLUDES!$TK_XINCLUDES$ac_delim 12227CC!$CC$ac_delim 12228CFLAGS!$CFLAGS$ac_delim 12229LDFLAGS!$LDFLAGS$ac_delim 12230CPPFLAGS!$CPPFLAGS$ac_delim 12231ac_ct_CC!$ac_ct_CC$ac_delim 12232OBJEXT!$OBJEXT$ac_delim 12233CPP!$CPP$ac_delim 12234INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 12235INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12236INSTALL_DATA!$INSTALL_DATA$ac_delim 12237SET_MAKE!$SET_MAKE$ac_delim 12238RANLIB!$RANLIB$ac_delim 12239GREP!$GREP$ac_delim 12240EGREP!$EGREP$ac_delim 12241MATH_LIBS!$MATH_LIBS$ac_delim 12242tkimg_VERSION!$tkimg_VERSION$ac_delim 12243tkimg_BIN_DIR!$tkimg_BIN_DIR$ac_delim 12244tkimg_SRC_DIR!$tkimg_SRC_DIR$ac_delim 12245tkimg_LIB_FILE!$tkimg_LIB_FILE$ac_delim 12246tkimg_LIB_SPEC!$tkimg_LIB_SPEC$ac_delim 12247tkimg_STUB_LIB_FILE!$tkimg_STUB_LIB_FILE$ac_delim 12248_ACEOF 12249 12250 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12251 break 12252 elif $ac_last_try; then 12253 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12254echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12255 { (exit 1); exit 1; }; } 12256 else 12257 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12258 fi 12259done 12260 12261ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 12262if test -n "$ac_eof"; then 12263 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 12264 ac_eof=`expr $ac_eof + 1` 12265fi 12266 12267cat >>$CONFIG_STATUS <<_ACEOF 12268cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12269/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12270_ACEOF 12271sed ' 12272s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12273s/^/s,@/; s/!/@,|#_!!_#|/ 12274:n 12275t n 12276s/'"$ac_delim"'$/,g/; t 12277s/$/\\/; p 12278N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 12279' >>$CONFIG_STATUS <conf$$subs.sed 12280rm -f conf$$subs.sed 12281cat >>$CONFIG_STATUS <<_ACEOF 12282CEOF$ac_eof 12283_ACEOF 12284 12285 12286ac_delim='%!_!# ' 12287for ac_last_try in false false false false false :; do 12288 cat >conf$$subs.sed <<_ACEOF 12289tkimg_STUB_LIB_SPEC!$tkimg_STUB_LIB_SPEC$ac_delim 12290tkimg_STUB_LIB_PATH!$tkimg_STUB_LIB_PATH$ac_delim 12291tkimg_SRC_PATH!$tkimg_SRC_PATH$ac_delim 12292tkimg_BUILD_PATH!$tkimg_BUILD_PATH$ac_delim 12293PKG_SOURCES!$PKG_SOURCES$ac_delim 12294PKG_OBJECTS!$PKG_OBJECTS$ac_delim 12295TCL_INCLUDES!$TCL_INCLUDES$ac_delim 12296TK_INCLUDES!$TK_INCLUDES$ac_delim 12297TCL_THREADS!$TCL_THREADS$ac_delim 12298SHARED_BUILD!$SHARED_BUILD$ac_delim 12299AR!$AR$ac_delim 12300CELIB_DIR!$CELIB_DIR$ac_delim 12301CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 12302CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 12303CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 12304STLIB_LD!$STLIB_LD$ac_delim 12305SHLIB_LD!$SHLIB_LD$ac_delim 12306SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 12307SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 12308LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 12309CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 12310LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 12311TCL_DBGX!$TCL_DBGX$ac_delim 12312XMKMF!$XMKMF$ac_delim 12313MAKE_LIB!$MAKE_LIB$ac_delim 12314MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 12315MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 12316MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 12317RANLIB_STUB!$RANLIB_STUB$ac_delim 12318VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 12319VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 12320TCLSH_PROG!$TCLSH_PROG$ac_delim 12321WISH_PROG!$WISH_PROG$ac_delim 12322LIBOBJS!$LIBOBJS$ac_delim 12323LTLIBOBJS!$LTLIBOBJS$ac_delim 12324_ACEOF 12325 12326 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then 12327 break 12328 elif $ac_last_try; then 12329 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12330echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12331 { (exit 1); exit 1; }; } 12332 else 12333 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12334 fi 12335done 12336 12337ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 12338if test -n "$ac_eof"; then 12339 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 12340 ac_eof=`expr $ac_eof + 1` 12341fi 12342 12343cat >>$CONFIG_STATUS <<_ACEOF 12344cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 12345/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12346_ACEOF 12347sed ' 12348s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12349s/^/s,@/; s/!/@,|#_!!_#|/ 12350:n 12351t n 12352s/'"$ac_delim"'$/,g/; t 12353s/$/\\/; p 12354N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 12355' >>$CONFIG_STATUS <conf$$subs.sed 12356rm -f conf$$subs.sed 12357cat >>$CONFIG_STATUS <<_ACEOF 12358:end 12359s/|#_!!_#|//g 12360CEOF$ac_eof 12361_ACEOF 12362 12363 12364# VPATH may cause trouble with some makes, so we remove $(srcdir), 12365# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12366# trailing colons and then remove the whole line if VPATH becomes empty 12367# (actually we leave an empty line to preserve line numbers). 12368if test "x$srcdir" = x.; then 12369 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12370s/:*\$(srcdir):*/:/ 12371s/:*\${srcdir}:*/:/ 12372s/:*@srcdir@:*/:/ 12373s/^\([^=]*=[ ]*\):*/\1/ 12374s/:*$// 12375s/^[^=]*=[ ]*$// 12376}' 12377fi 12378 12379cat >>$CONFIG_STATUS <<\_ACEOF 12380fi # test -n "$CONFIG_FILES" 12381 12382 12383for ac_tag in :F $CONFIG_FILES 12384do 12385 case $ac_tag in 12386 :[FHLC]) ac_mode=$ac_tag; continue;; 12387 esac 12388 case $ac_mode$ac_tag in 12389 :[FHL]*:*);; 12390 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 12391echo "$as_me: error: Invalid tag $ac_tag." >&2;} 12392 { (exit 1); exit 1; }; };; 12393 :[FH]-) ac_tag=-:-;; 12394 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12395 esac 12396 ac_save_IFS=$IFS 12397 IFS=: 12398 set x $ac_tag 12399 IFS=$ac_save_IFS 12400 shift 12401 ac_file=$1 12402 shift 12403 12404 case $ac_mode in 12405 :L) ac_source=$1;; 12406 :[FH]) 12407 ac_file_inputs= 12408 for ac_f 12409 do 12410 case $ac_f in 12411 -) ac_f="$tmp/stdin";; 12412 *) # Look for the file first in the build tree, then in the source tree 12413 # (if the path is not absolute). The absolute path cannot be DOS-style, 12414 # because $ac_f cannot contain `:'. 12415 test -f "$ac_f" || 12416 case $ac_f in 12417 [\\/$]*) false;; 12418 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12419 esac || 12420 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 12421echo "$as_me: error: cannot find input file: $ac_f" >&2;} 12422 { (exit 1); exit 1; }; };; 12423 esac 12424 ac_file_inputs="$ac_file_inputs $ac_f" 12425 done 12426 12427 # Let's still pretend it is `configure' which instantiates (i.e., don't 12428 # use $as_me), people would be surprised to read: 12429 # /* config.h. Generated by config.status. */ 12430 configure_input="Generated from "`IFS=: 12431 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 12432 if test x"$ac_file" != x-; then 12433 configure_input="$ac_file. $configure_input" 12434 { echo "$as_me:$LINENO: creating $ac_file" >&5 12435echo "$as_me: creating $ac_file" >&6;} 12436 fi 12437 12438 case $ac_tag in 12439 *:-:* | *:-) cat >"$tmp/stdin";; 12440 esac 12441 ;; 12442 esac 12443 12444 ac_dir=`$as_dirname -- "$ac_file" || 12445$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12446 X"$ac_file" : 'X\(//\)[^/]' \| \ 12447 X"$ac_file" : 'X\(//\)$' \| \ 12448 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12449echo X"$ac_file" | 12450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12451 s//\1/ 12452 q 12453 } 12454 /^X\(\/\/\)[^/].*/{ 12455 s//\1/ 12456 q 12457 } 12458 /^X\(\/\/\)$/{ 12459 s//\1/ 12460 q 12461 } 12462 /^X\(\/\).*/{ 12463 s//\1/ 12464 q 12465 } 12466 s/.*/./; q'` 12467 { as_dir="$ac_dir" 12468 case $as_dir in #( 12469 -*) as_dir=./$as_dir;; 12470 esac 12471 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 12472 as_dirs= 12473 while :; do 12474 case $as_dir in #( 12475 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 12476 *) as_qdir=$as_dir;; 12477 esac 12478 as_dirs="'$as_qdir' $as_dirs" 12479 as_dir=`$as_dirname -- "$as_dir" || 12480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12481 X"$as_dir" : 'X\(//\)[^/]' \| \ 12482 X"$as_dir" : 'X\(//\)$' \| \ 12483 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12484echo X"$as_dir" | 12485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12486 s//\1/ 12487 q 12488 } 12489 /^X\(\/\/\)[^/].*/{ 12490 s//\1/ 12491 q 12492 } 12493 /^X\(\/\/\)$/{ 12494 s//\1/ 12495 q 12496 } 12497 /^X\(\/\).*/{ 12498 s//\1/ 12499 q 12500 } 12501 s/.*/./; q'` 12502 test -d "$as_dir" && break 12503 done 12504 test -z "$as_dirs" || eval "mkdir $as_dirs" 12505 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 12506echo "$as_me: error: cannot create directory $as_dir" >&2;} 12507 { (exit 1); exit 1; }; }; } 12508 ac_builddir=. 12509 12510case "$ac_dir" in 12511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12512*) 12513 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12514 # A ".." for each directory in $ac_dir_suffix. 12515 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 12516 case $ac_top_builddir_sub in 12517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12519 esac ;; 12520esac 12521ac_abs_top_builddir=$ac_pwd 12522ac_abs_builddir=$ac_pwd$ac_dir_suffix 12523# for backward compatibility: 12524ac_top_builddir=$ac_top_build_prefix 12525 12526case $srcdir in 12527 .) # We are building in place. 12528 ac_srcdir=. 12529 ac_top_srcdir=$ac_top_builddir_sub 12530 ac_abs_top_srcdir=$ac_pwd ;; 12531 [\\/]* | ?:[\\/]* ) # Absolute name. 12532 ac_srcdir=$srcdir$ac_dir_suffix; 12533 ac_top_srcdir=$srcdir 12534 ac_abs_top_srcdir=$srcdir ;; 12535 *) # Relative name. 12536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12537 ac_top_srcdir=$ac_top_build_prefix$srcdir 12538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12539esac 12540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12541 12542 12543 case $ac_mode in 12544 :F) 12545 # 12546 # CONFIG_FILE 12547 # 12548 12549 case $INSTALL in 12550 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12551 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12552 esac 12553_ACEOF 12554 12555cat >>$CONFIG_STATUS <<\_ACEOF 12556# If the template does not know about datarootdir, expand it. 12557# FIXME: This hack should be removed a few years after 2.60. 12558ac_datarootdir_hack=; ac_datarootdir_seen= 12559 12560case `sed -n '/datarootdir/ { 12561 p 12562 q 12563} 12564/@datadir@/p 12565/@docdir@/p 12566/@infodir@/p 12567/@localedir@/p 12568/@mandir@/p 12569' $ac_file_inputs` in 12570*datarootdir*) ac_datarootdir_seen=yes;; 12571*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12572 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12573echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12574_ACEOF 12575cat >>$CONFIG_STATUS <<_ACEOF 12576 ac_datarootdir_hack=' 12577 s&@datadir@&$datadir&g 12578 s&@docdir@&$docdir&g 12579 s&@infodir@&$infodir&g 12580 s&@localedir@&$localedir&g 12581 s&@mandir@&$mandir&g 12582 s&\\\${datarootdir}&$datarootdir&g' ;; 12583esac 12584_ACEOF 12585 12586# Neutralize VPATH when `$srcdir' = `.'. 12587# Shell code in configure.ac might set extrasub. 12588# FIXME: do we really want to maintain this feature? 12589cat >>$CONFIG_STATUS <<_ACEOF 12590 sed "$ac_vpsub 12591$extrasub 12592_ACEOF 12593cat >>$CONFIG_STATUS <<\_ACEOF 12594:t 12595/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12596s&@configure_input@&$configure_input&;t t 12597s&@top_builddir@&$ac_top_builddir_sub&;t t 12598s&@srcdir@&$ac_srcdir&;t t 12599s&@abs_srcdir@&$ac_abs_srcdir&;t t 12600s&@top_srcdir@&$ac_top_srcdir&;t t 12601s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12602s&@builddir@&$ac_builddir&;t t 12603s&@abs_builddir@&$ac_abs_builddir&;t t 12604s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12605s&@INSTALL@&$ac_INSTALL&;t t 12606$ac_datarootdir_hack 12607" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12608 12609test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12610 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12611 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12612 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12613which seems to be undefined. Please make sure it is defined." >&5 12614echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12615which seems to be undefined. Please make sure it is defined." >&2;} 12616 12617 rm -f "$tmp/stdin" 12618 case $ac_file in 12619 -) cat "$tmp/out"; rm -f "$tmp/out";; 12620 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 12621 esac 12622 ;; 12623 12624 12625 12626 esac 12627 12628done # for ac_tag 12629 12630 12631{ (exit 0); exit 0; } 12632_ACEOF 12633chmod +x $CONFIG_STATUS 12634ac_clean_files=$ac_clean_files_save 12635 12636 12637# configure is writing to config.log, and then calls config.status. 12638# config.status does its own redirection, appending to config.log. 12639# Unfortunately, on DOS this fails, as config.log is still kept open 12640# by configure, so config.status won't be able to write to it; its 12641# output is simply discarded. So we exec the FD to /dev/null, 12642# effectively closing config.log, so it can be properly (re)opened and 12643# appended to by config.status. When coming back to configure, we 12644# need to make the FD available again. 12645if test "$no_create" != yes; then 12646 ac_cs_success=: 12647 ac_config_status_args= 12648 test "$silent" = yes && 12649 ac_config_status_args="$ac_config_status_args --quiet" 12650 exec 5>/dev/null 12651 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12652 exec 5>>config.log 12653 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12654 # would make configure fail if this is the last instruction. 12655 $ac_cs_success || { (exit 1); exit 1; } 12656fi 12657 12658 12659#-------------------------------------------------------------------- 12660