1#! /bin/sh 2# From configure.in Id: configure.in. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61 for Trf 2.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='Trf' 575PACKAGE_TARNAME='trf' 576PACKAGE_VERSION='2.1.4' 577PACKAGE_STRING='Trf 2.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 664TCL_VERSION 665TCL_BIN_DIR 666TCL_SRC_DIR 667TCL_LIB_FILE 668TCL_LIB_FLAG 669TCL_LIB_SPEC 670TCL_STUB_LIB_FILE 671TCL_STUB_LIB_FLAG 672TCL_STUB_LIB_SPEC 673TCL_LIBS 674TCL_DEFS 675TCL_EXTRA_CFLAGS 676TCL_LD_FLAGS 677TCL_SHLIB_LD_LIBS 678zlibtcl_VERSION 679zlibtcl_BIN_DIR 680zlibtcl_SRC_DIR 681zlibtcl_LIB_FILE 682zlibtcl_LIB_SPEC 683zlibtcl_STUB_LIB_FILE 684zlibtcl_STUB_LIB_SPEC 685zlibtcl_STUB_LIB_PATH 686zlibtcl_SRC_PATH 687zlibtcl_BUILD_PATH 688CC 689CFLAGS 690LDFLAGS 691CPPFLAGS 692ac_ct_CC 693OBJEXT 694CPP 695INSTALL_PROGRAM 696INSTALL_SCRIPT 697INSTALL_DATA 698SET_MAKE 699RANLIB 700GREP 701EGREP 702MATH_LIBS 703PKG_SOURCES 704PKG_OBJECTS 705SHLIB_SUFFIX 706TCL_INCLUDES 707TCL_TOP_DIR_NATIVE 708CLEANFILES 709TCL_THREADS 710SHARED_BUILD 711AR 712CELIB_DIR 713LIBOBJS 714DL_LIBS 715CFLAGS_DEBUG 716CFLAGS_OPTIMIZE 717CFLAGS_WARNING 718STLIB_LD 719SHLIB_LD 720SHLIB_LD_LIBS 721SHLIB_CFLAGS 722LD_LIBRARY_PATH_VAR 723CFLAGS_DEFAULT 724LDFLAGS_DEFAULT 725TCL_DBGX 726MAKE_LIB 727MAKE_SHARED_LIB 728MAKE_STATIC_LIB 729MAKE_STUB_LIB 730RANLIB_STUB 731TCLSH_PROG 732ZLIB_INCLUDE_DIR 733ZLIB_LIB_DIR 734SSL_INCLUDE_DIR 735SSL_LIB_DIR 736BZ2_INCLUDE_DIR 737BZ2_LIB_DIR 738TRF_TESTS 739MD5_LIB_FILE 740LTLIBOBJS' 741ac_subst_files='' 742 ac_precious_vars='build_alias 743host_alias 744target_alias 745CC 746CFLAGS 747LDFLAGS 748LIBS 749CPPFLAGS 750CPP' 751 752 753# Initialize some variables set by options. 754ac_init_help= 755ac_init_version=false 756# The variables have the same names as the options, with 757# dashes changed to underlines. 758cache_file=/dev/null 759exec_prefix=NONE 760no_create= 761no_recursion= 762prefix=NONE 763program_prefix=NONE 764program_suffix=NONE 765program_transform_name=s,x,x, 766silent= 767site= 768srcdir= 769verbose= 770x_includes=NONE 771x_libraries=NONE 772 773# Installation directory options. 774# These are left unexpanded so users can "make install exec_prefix=/foo" 775# and all the variables that are supposed to be based on exec_prefix 776# by default will actually change. 777# Use braces instead of parens because sh, perl, etc. also accept them. 778# (The list follows the same order as the GNU Coding Standards.) 779bindir='${exec_prefix}/bin' 780sbindir='${exec_prefix}/sbin' 781libexecdir='${exec_prefix}/libexec' 782datarootdir='${prefix}/share' 783datadir='${datarootdir}' 784sysconfdir='${prefix}/etc' 785sharedstatedir='${prefix}/com' 786localstatedir='${prefix}/var' 787includedir='${prefix}/include' 788oldincludedir='/usr/include' 789docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 790infodir='${datarootdir}/info' 791htmldir='${docdir}' 792dvidir='${docdir}' 793pdfdir='${docdir}' 794psdir='${docdir}' 795libdir='${exec_prefix}/lib' 796localedir='${datarootdir}/locale' 797mandir='${datarootdir}/man' 798 799ac_prev= 800ac_dashdash= 801for ac_option 802do 803 # If the previous option needs an argument, assign it. 804 if test -n "$ac_prev"; then 805 eval $ac_prev=\$ac_option 806 ac_prev= 807 continue 808 fi 809 810 case $ac_option in 811 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 812 *) ac_optarg=yes ;; 813 esac 814 815 # Accept the important Cygnus configure options, so we can diagnose typos. 816 817 case $ac_dashdash$ac_option in 818 --) 819 ac_dashdash=yes ;; 820 821 -bindir | --bindir | --bindi | --bind | --bin | --bi) 822 ac_prev=bindir ;; 823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 824 bindir=$ac_optarg ;; 825 826 -build | --build | --buil | --bui | --bu) 827 ac_prev=build_alias ;; 828 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 829 build_alias=$ac_optarg ;; 830 831 -cache-file | --cache-file | --cache-fil | --cache-fi \ 832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 833 ac_prev=cache_file ;; 834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 836 cache_file=$ac_optarg ;; 837 838 --config-cache | -C) 839 cache_file=config.cache ;; 840 841 -datadir | --datadir | --datadi | --datad) 842 ac_prev=datadir ;; 843 -datadir=* | --datadir=* | --datadi=* | --datad=*) 844 datadir=$ac_optarg ;; 845 846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 847 | --dataroo | --dataro | --datar) 848 ac_prev=datarootdir ;; 849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 851 datarootdir=$ac_optarg ;; 852 853 -disable-* | --disable-*) 854 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 855 # Reject names that are not valid shell variable names. 856 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 857 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 858 { (exit 1); exit 1; }; } 859 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 860 eval enable_$ac_feature=no ;; 861 862 -docdir | --docdir | --docdi | --doc | --do) 863 ac_prev=docdir ;; 864 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 865 docdir=$ac_optarg ;; 866 867 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 868 ac_prev=dvidir ;; 869 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 870 dvidir=$ac_optarg ;; 871 872 -enable-* | --enable-*) 873 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 874 # Reject names that are not valid shell variable names. 875 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 876 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 877 { (exit 1); exit 1; }; } 878 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 879 eval enable_$ac_feature=\$ac_optarg ;; 880 881 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 882 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 883 | --exec | --exe | --ex) 884 ac_prev=exec_prefix ;; 885 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 886 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 887 | --exec=* | --exe=* | --ex=*) 888 exec_prefix=$ac_optarg ;; 889 890 -gas | --gas | --ga | --g) 891 # Obsolete; use --with-gas. 892 with_gas=yes ;; 893 894 -help | --help | --hel | --he | -h) 895 ac_init_help=long ;; 896 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 897 ac_init_help=recursive ;; 898 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 899 ac_init_help=short ;; 900 901 -host | --host | --hos | --ho) 902 ac_prev=host_alias ;; 903 -host=* | --host=* | --hos=* | --ho=*) 904 host_alias=$ac_optarg ;; 905 906 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 907 ac_prev=htmldir ;; 908 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 909 | --ht=*) 910 htmldir=$ac_optarg ;; 911 912 -includedir | --includedir | --includedi | --included | --include \ 913 | --includ | --inclu | --incl | --inc) 914 ac_prev=includedir ;; 915 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 916 | --includ=* | --inclu=* | --incl=* | --inc=*) 917 includedir=$ac_optarg ;; 918 919 -infodir | --infodir | --infodi | --infod | --info | --inf) 920 ac_prev=infodir ;; 921 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 922 infodir=$ac_optarg ;; 923 924 -libdir | --libdir | --libdi | --libd) 925 ac_prev=libdir ;; 926 -libdir=* | --libdir=* | --libdi=* | --libd=*) 927 libdir=$ac_optarg ;; 928 929 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 930 | --libexe | --libex | --libe) 931 ac_prev=libexecdir ;; 932 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 933 | --libexe=* | --libex=* | --libe=*) 934 libexecdir=$ac_optarg ;; 935 936 -localedir | --localedir | --localedi | --localed | --locale) 937 ac_prev=localedir ;; 938 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 939 localedir=$ac_optarg ;; 940 941 -localstatedir | --localstatedir | --localstatedi | --localstated \ 942 | --localstate | --localstat | --localsta | --localst | --locals) 943 ac_prev=localstatedir ;; 944 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 945 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 946 localstatedir=$ac_optarg ;; 947 948 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 949 ac_prev=mandir ;; 950 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 951 mandir=$ac_optarg ;; 952 953 -nfp | --nfp | --nf) 954 # Obsolete; use --without-fp. 955 with_fp=no ;; 956 957 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 958 | --no-cr | --no-c | -n) 959 no_create=yes ;; 960 961 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 962 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 963 no_recursion=yes ;; 964 965 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 966 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 967 | --oldin | --oldi | --old | --ol | --o) 968 ac_prev=oldincludedir ;; 969 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 970 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 971 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 972 oldincludedir=$ac_optarg ;; 973 974 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 975 ac_prev=prefix ;; 976 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 977 prefix=$ac_optarg ;; 978 979 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 980 | --program-pre | --program-pr | --program-p) 981 ac_prev=program_prefix ;; 982 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 983 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 984 program_prefix=$ac_optarg ;; 985 986 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 987 | --program-suf | --program-su | --program-s) 988 ac_prev=program_suffix ;; 989 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 990 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 991 program_suffix=$ac_optarg ;; 992 993 -program-transform-name | --program-transform-name \ 994 | --program-transform-nam | --program-transform-na \ 995 | --program-transform-n | --program-transform- \ 996 | --program-transform | --program-transfor \ 997 | --program-transfo | --program-transf \ 998 | --program-trans | --program-tran \ 999 | --progr-tra | --program-tr | --program-t) 1000 ac_prev=program_transform_name ;; 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 program_transform_name=$ac_optarg ;; 1009 1010 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1011 ac_prev=pdfdir ;; 1012 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1013 pdfdir=$ac_optarg ;; 1014 1015 -psdir | --psdir | --psdi | --psd | --ps) 1016 ac_prev=psdir ;; 1017 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1018 psdir=$ac_optarg ;; 1019 1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1021 | -silent | --silent | --silen | --sile | --sil) 1022 silent=yes ;; 1023 1024 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1025 ac_prev=sbindir ;; 1026 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1027 | --sbi=* | --sb=*) 1028 sbindir=$ac_optarg ;; 1029 1030 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1031 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1032 | --sharedst | --shareds | --shared | --share | --shar \ 1033 | --sha | --sh) 1034 ac_prev=sharedstatedir ;; 1035 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1036 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1037 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1038 | --sha=* | --sh=*) 1039 sharedstatedir=$ac_optarg ;; 1040 1041 -site | --site | --sit) 1042 ac_prev=site ;; 1043 -site=* | --site=* | --sit=*) 1044 site=$ac_optarg ;; 1045 1046 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1047 ac_prev=srcdir ;; 1048 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1049 srcdir=$ac_optarg ;; 1050 1051 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1052 | --syscon | --sysco | --sysc | --sys | --sy) 1053 ac_prev=sysconfdir ;; 1054 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1055 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1056 sysconfdir=$ac_optarg ;; 1057 1058 -target | --target | --targe | --targ | --tar | --ta | --t) 1059 ac_prev=target_alias ;; 1060 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1061 target_alias=$ac_optarg ;; 1062 1063 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1064 verbose=yes ;; 1065 1066 -version | --version | --versio | --versi | --vers | -V) 1067 ac_init_version=: ;; 1068 1069 -with-* | --with-*) 1070 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1071 # Reject names that are not valid shell variable names. 1072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1073 { echo "$as_me: error: invalid package name: $ac_package" >&2 1074 { (exit 1); exit 1; }; } 1075 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1076 eval with_$ac_package=\$ac_optarg ;; 1077 1078 -without-* | --without-*) 1079 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1080 # Reject names that are not valid shell variable names. 1081 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1082 { echo "$as_me: error: invalid package name: $ac_package" >&2 1083 { (exit 1); exit 1; }; } 1084 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1085 eval with_$ac_package=no ;; 1086 1087 --x) 1088 # Obsolete; use --with-x. 1089 with_x=yes ;; 1090 1091 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1092 | --x-incl | --x-inc | --x-in | --x-i) 1093 ac_prev=x_includes ;; 1094 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1095 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1096 x_includes=$ac_optarg ;; 1097 1098 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1099 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1100 ac_prev=x_libraries ;; 1101 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1102 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1103 x_libraries=$ac_optarg ;; 1104 1105 -*) { echo "$as_me: error: unrecognized option: $ac_option 1106Try \`$0 --help' for more information." >&2 1107 { (exit 1); exit 1; }; } 1108 ;; 1109 1110 *=*) 1111 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1112 # Reject names that are not valid shell variable names. 1113 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1114 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1115 { (exit 1); exit 1; }; } 1116 eval $ac_envvar=\$ac_optarg 1117 export $ac_envvar ;; 1118 1119 *) 1120 # FIXME: should be removed in autoconf 3.0. 1121 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1123 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1124 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1125 ;; 1126 1127 esac 1128done 1129 1130if test -n "$ac_prev"; then 1131 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1132 { echo "$as_me: error: missing argument to $ac_option" >&2 1133 { (exit 1); exit 1; }; } 1134fi 1135 1136# Be sure to have absolute directory names. 1137for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1138 datadir sysconfdir sharedstatedir localstatedir includedir \ 1139 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1140 libdir localedir mandir 1141do 1142 eval ac_val=\$$ac_var 1143 case $ac_val in 1144 [\\/$]* | ?:[\\/]* ) continue;; 1145 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1146 esac 1147 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1148 { (exit 1); exit 1; }; } 1149done 1150 1151# There might be people who depend on the old broken behavior: `$host' 1152# used to hold the argument of --host etc. 1153# FIXME: To remove some day. 1154build=$build_alias 1155host=$host_alias 1156target=$target_alias 1157 1158# FIXME: To remove some day. 1159if test "x$host_alias" != x; then 1160 if test "x$build_alias" = x; then 1161 cross_compiling=maybe 1162 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1163 If a cross compiler is detected then cross compile mode will be used." >&2 1164 elif test "x$build_alias" != "x$host_alias"; then 1165 cross_compiling=yes 1166 fi 1167fi 1168 1169ac_tool_prefix= 1170test -n "$host_alias" && ac_tool_prefix=$host_alias- 1171 1172test "$silent" = yes && exec 6>/dev/null 1173 1174 1175ac_pwd=`pwd` && test -n "$ac_pwd" && 1176ac_ls_di=`ls -di .` && 1177ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1178 { echo "$as_me: error: Working directory cannot be determined" >&2 1179 { (exit 1); exit 1; }; } 1180test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1181 { echo "$as_me: error: pwd does not report name of working directory" >&2 1182 { (exit 1); exit 1; }; } 1183 1184 1185# Find the source files, if location was not specified. 1186if test -z "$srcdir"; then 1187 ac_srcdir_defaulted=yes 1188 # Try the directory containing this script, then the parent directory. 1189 ac_confdir=`$as_dirname -- "$0" || 1190$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1191 X"$0" : 'X\(//\)[^/]' \| \ 1192 X"$0" : 'X\(//\)$' \| \ 1193 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1194echo X"$0" | 1195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1196 s//\1/ 1197 q 1198 } 1199 /^X\(\/\/\)[^/].*/{ 1200 s//\1/ 1201 q 1202 } 1203 /^X\(\/\/\)$/{ 1204 s//\1/ 1205 q 1206 } 1207 /^X\(\/\).*/{ 1208 s//\1/ 1209 q 1210 } 1211 s/.*/./; q'` 1212 srcdir=$ac_confdir 1213 if test ! -r "$srcdir/$ac_unique_file"; then 1214 srcdir=.. 1215 fi 1216else 1217 ac_srcdir_defaulted=no 1218fi 1219if test ! -r "$srcdir/$ac_unique_file"; then 1220 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1221 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1222 { (exit 1); exit 1; }; } 1223fi 1224ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1225ac_abs_confdir=`( 1226 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1227 { (exit 1); exit 1; }; } 1228 pwd)` 1229# When building in place, set srcdir=. 1230if test "$ac_abs_confdir" = "$ac_pwd"; then 1231 srcdir=. 1232fi 1233# Remove unnecessary trailing slashes from srcdir. 1234# Double slashes in file names in object file debugging info 1235# mess up M-x gdb in Emacs. 1236case $srcdir in 1237*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1238esac 1239for ac_var in $ac_precious_vars; do 1240 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1241 eval ac_env_${ac_var}_value=\$${ac_var} 1242 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1243 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1244done 1245 1246# 1247# Report the --help message. 1248# 1249if test "$ac_init_help" = "long"; then 1250 # Omit some internal or obsolete options to make the list less imposing. 1251 # This message is too long to be a string in the A/UX 3.1 sh. 1252 cat <<_ACEOF 1253\`configure' configures Trf 2.1.4 to adapt to many kinds of systems. 1254 1255Usage: $0 [OPTION]... [VAR=VALUE]... 1256 1257To assign environment variables (e.g., CC, CFLAGS...), specify them as 1258VAR=VALUE. See below for descriptions of some of the useful variables. 1259 1260Defaults for the options are specified in brackets. 1261 1262Configuration: 1263 -h, --help display this help and exit 1264 --help=short display options specific to this package 1265 --help=recursive display the short help of all the included packages 1266 -V, --version display version information and exit 1267 -q, --quiet, --silent do not print \`checking...' messages 1268 --cache-file=FILE cache test results in FILE [disabled] 1269 -C, --config-cache alias for \`--cache-file=config.cache' 1270 -n, --no-create do not create output files 1271 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1272 1273Installation directories: 1274 --prefix=PREFIX install architecture-independent files in PREFIX 1275 [$ac_default_prefix] 1276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1277 [PREFIX] 1278 1279By default, \`make install' will install all the files in 1280\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1281an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1282for instance \`--prefix=\$HOME'. 1283 1284For better control, use the options below. 1285 1286Fine tuning of the installation directories: 1287 --bindir=DIR user executables [EPREFIX/bin] 1288 --sbindir=DIR system admin executables [EPREFIX/sbin] 1289 --libexecdir=DIR program executables [EPREFIX/libexec] 1290 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1291 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1292 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1293 --libdir=DIR object code libraries [EPREFIX/lib] 1294 --includedir=DIR C header files [PREFIX/include] 1295 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1296 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1297 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1298 --infodir=DIR info documentation [DATAROOTDIR/info] 1299 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1300 --mandir=DIR man documentation [DATAROOTDIR/man] 1301 --docdir=DIR documentation root [DATAROOTDIR/doc/trf] 1302 --htmldir=DIR html documentation [DOCDIR] 1303 --dvidir=DIR dvi documentation [DOCDIR] 1304 --pdfdir=DIR pdf documentation [DOCDIR] 1305 --psdir=DIR ps documentation [DOCDIR] 1306_ACEOF 1307 1308 cat <<\_ACEOF 1309_ACEOF 1310fi 1311 1312if test -n "$ac_init_help"; then 1313 case $ac_init_help in 1314 short | recursive ) echo "Configuration of Trf 2.1.4:";; 1315 esac 1316 cat <<\_ACEOF 1317 1318Optional Features: 1319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1321 --enable-threads build with threads 1322 --enable-shared build and link with shared libraries (default: on) 1323 --enable-64bit enable 64bit support (default: off) 1324 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1325 --disable-rpath disable rpath support (default: on) 1326 --enable-wince enable Win/CE support (where applicable) 1327 --enable-load allow dynamic loading and "load" command (default: 1328 on) 1329 --enable-symbols build with debugging symbols (default: off) 1330 --enable-static-zlib link 'zlib' statically 1331 --enable-static-bzlib link 'bzlib' statically 1332 --enable-static-md5 link 'md5' statically 1333 --enable-trf-debug enable debugging output 1334 --enable-stream-debug enable debugging of IO streams 1335 1336Optional Packages: 1337 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1338 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1339 --with-tcl directory containing tcl configuration 1340 (tclConfig.sh) 1341 --with-zlibtcl directory containing zlibtcl configuration (zlibtclConfig.sh) 1342 --with-tclinclude directory containing the public Tcl header files 1343 --with-celib=DIR use Windows/CE support library from DIR 1344 --with-zlib=DIR zlib.h resides in DIR/include, libz resides in DIR/lib 1345 --with-zlib-include-dir=DIR zlib.h resides in DIR 1346 --with-zlib-lib-dir=DIR libz resides in DIR 1347 --with-ssl=DIR md2.h/sha1.h reside in DIR/include, libcrypto resides in DIR/lib 1348 --with-ssl-include-dir=DIR md2.h/sha1.h reside in DIR 1349 --with-ssl-lib-dir=DIR libcrypto resides in DIR 1350 --with-bz2=DIR bzlib.h resides in DIR/include, libbz2 resides in DIR/lib 1351 --with-bz2-include-dir=DIR bzlib.h resides in DIR 1352 --with-bz2-lib-dir=DIR libbz2 resides in DIR 1353 1354Some influential environment variables: 1355 CC C compiler command 1356 CFLAGS C compiler flags 1357 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1358 nonstandard directory <lib dir> 1359 LIBS libraries to pass to the linker, e.g. -l<library> 1360 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1361 you have headers in a nonstandard directory <include dir> 1362 CPP C preprocessor 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 1427Trf configure 2.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 Trf $as_me 2.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.7" 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.7" = 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.7" != "${TEA_VERSION}" ; then 1816 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.7\", have \"${TEA_VERSION}\"" >&5 1817echo "${ECHO_T}warning: requested TEA version \"3.7\", 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*|*CYGWIN_NT*|*CYGWIN_9*|*CYGWIN_ME*|*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 *) 1866 CYGPATH=echo 1867 EXEEXT="" 1868 TEA_PLATFORM="unix" 1869 ;; 1870 esac 1871 1872 # Check if exec_prefix is set. If not use fall back to prefix. 1873 # Note when adjusted, so that TEA_PREFIX can correct for this. 1874 # This is needed for recursive configures, since autoconf propagates 1875 # $prefix, but not $exec_prefix (doh!). 1876 if test x$exec_prefix = xNONE ; then 1877 exec_prefix_default=yes 1878 exec_prefix=$prefix 1879 fi 1880 1881 1882 1883 1884 # This package name must be replaced statically for AC_SUBST to work 1885 1886 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1887 1888 1889 # We AC_SUBST these here to ensure they are subst'ed, 1890 # in case the user doesn't call TEA_ADD_... 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900ac_aux_dir= 1901for ac_dir in tclconfig "$srcdir"/tclconfig; do 1902 if test -f "$ac_dir/install-sh"; then 1903 ac_aux_dir=$ac_dir 1904 ac_install_sh="$ac_aux_dir/install-sh -c" 1905 break 1906 elif test -f "$ac_dir/install.sh"; then 1907 ac_aux_dir=$ac_dir 1908 ac_install_sh="$ac_aux_dir/install.sh -c" 1909 break 1910 elif test -f "$ac_dir/shtool"; then 1911 ac_aux_dir=$ac_dir 1912 ac_install_sh="$ac_aux_dir/shtool install -c" 1913 break 1914 fi 1915done 1916if test -z "$ac_aux_dir"; then 1917 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5 1918echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;} 1919 { (exit 1); exit 1; }; } 1920fi 1921 1922# These three variables are undocumented and unsupported, 1923# and are intended to be withdrawn in a future Autoconf release. 1924# They can cause serious problems if a builder's source tree is in a directory 1925# whose full name contains unusual characters. 1926ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1927ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1928ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1929 1930 1931 1932#-------------------------------------------------------------------- 1933# Configure script for package 'trf', as distributed at November 20, 2001. 1934# TEA compliant. 1935#-------------------------------------------------------------------- 1936 1937#-------------------------------------------------------------------- 1938# Load the tclConfig.sh file 1939#-------------------------------------------------------------------- 1940 1941 1942 1943 # 1944 # Ok, lets find the tcl configuration 1945 # First, look for one uninstalled. 1946 # the alternative search directory is invoked by --with-tcl 1947 # 1948 1949 if test x"${no_tcl}" = x ; then 1950 # we reset no_tcl in case something fails here 1951 no_tcl=true 1952 1953# Check whether --with-tcl was given. 1954if test "${with_tcl+set}" = set; then 1955 withval=$with_tcl; with_tclconfig=${withval} 1956fi 1957 1958 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1959echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1960 if test "${ac_cv_c_tclconfig+set}" = set; then 1961 echo $ECHO_N "(cached) $ECHO_C" >&6 1962else 1963 1964 1965 # First check to see if --with-tcl was specified. 1966 if test x"${with_tclconfig}" != x ; then 1967 case ${with_tclconfig} in 1968 */tclConfig.sh ) 1969 if test -f ${with_tclconfig}; then 1970 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1971echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1972 with_tclconfig=`echo ${with_tclconfig} | sed 's!/tclConfig\.sh$!!'` 1973 fi ;; 1974 esac 1975 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1976 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 1977 else 1978 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1979echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1980 { (exit 1); exit 1; }; } 1981 fi 1982 fi 1983 1984 # then check for a private Tcl installation 1985 if test x"${ac_cv_c_tclconfig}" = x ; then 1986 for i in \ 1987 ../tcl \ 1988 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1989 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1990 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1991 ../../tcl \ 1992 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1993 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1994 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1995 ../../../tcl \ 1996 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1997 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1998 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1999 if test -f "$i/unix/tclConfig.sh" ; then 2000 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 2001 break 2002 fi 2003 done 2004 fi 2005 2006 # on Darwin, check in Framework installation locations 2007 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2008 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2009 `ls -d /Library/Frameworks 2>/dev/null` \ 2010 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2011 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2012 ; do 2013 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2014 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)` 2015 break 2016 fi 2017 done 2018 fi 2019 2020 # TEA specific: on Windows, check in common installation locations 2021 if test "${TEA_PLATFORM}" = "windows" \ 2022 -a x"${ac_cv_c_tclconfig}" = x ; then 2023 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2024 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2025 ; do 2026 if test -f "$i/tclConfig.sh" ; then 2027 ac_cv_c_tclconfig=`(cd $i; pwd)` 2028 break 2029 fi 2030 done 2031 fi 2032 2033 # check in a few common install locations 2034 if test x"${ac_cv_c_tclconfig}" = x ; then 2035 for i in `ls -d ${libdir} 2>/dev/null` \ 2036 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2037 `ls -d ${prefix}/lib 2>/dev/null` \ 2038 `ls -d /usr/local/lib 2>/dev/null` \ 2039 `ls -d /usr/contrib/lib 2>/dev/null` \ 2040 `ls -d /usr/lib 2>/dev/null` \ 2041 ; do 2042 if test -f "$i/tclConfig.sh" ; then 2043 ac_cv_c_tclconfig=`(cd $i; pwd)` 2044 break 2045 fi 2046 done 2047 fi 2048 2049 # check in a few other private locations 2050 if test x"${ac_cv_c_tclconfig}" = x ; then 2051 for i in \ 2052 ${srcdir}/../tcl \ 2053 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2054 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2055 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2056 if test -f "$i/unix/tclConfig.sh" ; then 2057 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 2058 break 2059 fi 2060 done 2061 fi 2062 2063fi 2064 2065 2066 if test x"${ac_cv_c_tclconfig}" = x ; then 2067 TCL_BIN_DIR="# no Tcl configs found" 2068 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2069echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2070 { (exit 1); exit 1; }; } 2071 else 2072 no_tcl= 2073 TCL_BIN_DIR=${ac_cv_c_tclconfig} 2074 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2075echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2076 fi 2077 fi 2078 2079 2080 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2081echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2082 2083 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2084 { echo "$as_me:$LINENO: result: loading" >&5 2085echo "${ECHO_T}loading" >&6; } 2086 . "${TCL_BIN_DIR}/tclConfig.sh" 2087 else 2088 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2089echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2090 fi 2091 2092 # eval is required to do the TCL_DBGX substitution 2093 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2094 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2095 2096 # If the TCL_BIN_DIR is the build directory (not the install directory), 2097 # then set the common variable name to the value of the build variables. 2098 # For example, the variable TCL_LIB_SPEC will be set to the value 2099 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2100 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2101 # installed and uninstalled version of Tcl. 2102 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2103 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 2104 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 2105 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 2106 elif test "`uname -s`" = "Darwin"; then 2107 # If Tcl was built as a framework, attempt to use the libraries 2108 # from the framework at the given location so that linking works 2109 # against Tcl.framework installed in an arbitary location. 2110 case ${TCL_DEFS} in 2111 *TCL_FRAMEWORK*) 2112 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2113 for i in "`cd ${TCL_BIN_DIR}; pwd`" \ 2114 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do 2115 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2116 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}" 2117 break 2118 fi 2119 done 2120 fi 2121 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2122 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}" 2123 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2124 fi 2125 ;; 2126 esac 2127 fi 2128 2129 # eval is required to do the TCL_DBGX substitution 2130 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2131 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2132 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2133 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 # TEA specific: 2148 2149 2150 2151 2152 2153 2154 2155 2156 # 2157 # Ok, lets find the zlibtcl configuration 2158 # First, look for one uninstalled. 2159 # the alternative search directory is invoked by --with-zlibtcl 2160 # 2161 2162 if test x"${no_zlibtcl}" = x ; then 2163 # we reset no_zlibtcl in case something fails here 2164 no_zlibtcl=true 2165 2166# Check whether --with-zlibtcl was given. 2167if test "${with_zlibtcl+set}" = set; then 2168 withval=$with_zlibtcl; with_zlibtclconfig=${withval} 2169fi 2170 2171 { echo "$as_me:$LINENO: checking for zlibtcl configuration" >&5 2172echo $ECHO_N "checking for zlibtcl configuration... $ECHO_C" >&6; } 2173 if test "${ac_cv_c_zlibtclconfig+set}" = set; then 2174 echo $ECHO_N "(cached) $ECHO_C" >&6 2175else 2176 2177 2178 # First check to see if --with-zlibtcl was specified. 2179 if test x"${with_zlibtclconfig}" != x ; then 2180 if test -f "${with_zlibtclconfig}/zlibtclConfig.sh" ; then 2181 ac_cv_c_zlibtclconfig=`(cd ${with_zlibtclconfig}; pwd)` 2182 else 2183 { { echo "$as_me:$LINENO: error: ${with_zlibtclconfig} directory doesn't contain zlibtclConfig.sh" >&5 2184echo "$as_me: error: ${with_zlibtclconfig} directory doesn't contain zlibtclConfig.sh" >&2;} 2185 { (exit 1); exit 1; }; } 2186 fi 2187 fi 2188 2189 # then check for a private zlibtcl installation 2190 if test x"${ac_cv_c_zlibtclconfig}" = x ; then 2191 for i in \ 2192 ../zlibtcl \ 2193 `ls -dr ../zlibtcl[8-9].[0-9]* 2>/dev/null` \ 2194 ../../zlibtcl \ 2195 `ls -dr ../../zlibtcl[8-9].[0-9]* 2>/dev/null` \ 2196 ../../../zlibtcl \ 2197 `ls -dr ../../../zlibtcl[8-9].[0-9]* 2>/dev/null` \ 2198 ${srcdir}/../zlibtcl \ 2199 `ls -dr ${srcdir}/../zlibtcl[8-9].[0-9]* 2>/dev/null` \ 2200 ; do 2201 if test -f "$i/zlibtclConfig.sh" ; then 2202 ac_cv_c_zlibtclconfig=`(cd $i; pwd)` 2203 break 2204 fi 2205 if test -f "$i/unix/zlibtclConfig.sh" ; then 2206 ac_cv_c_zlibtclconfig=`(cd $i/unix; pwd)` 2207 break 2208 fi 2209 done 2210 fi 2211 2212 # check in a few common install locations 2213 if test x"${ac_cv_c_zlibtclconfig}" = x ; then 2214 for i in `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2215 `ls -d ${prefix}/lib 2>/dev/null` \ 2216 `ls -d /usr/local/lib 2>/dev/null` \ 2217 `ls -d /usr/contrib/lib 2>/dev/null` \ 2218 `ls -d /usr/lib 2>/dev/null` \ 2219 ; do 2220 if test -f "$i/zlibtclConfig.sh" ; then 2221 ac_cv_c_zlibtclconfig=`(cd $i; pwd)` 2222 break 2223 fi 2224 done 2225 fi 2226 2227fi 2228 2229 2230 if test x"${ac_cv_c_zlibtclconfig}" = x ; then 2231 zlibtcl_BIN_DIR="# no zlibtcl configs found" 2232 { echo "$as_me:$LINENO: WARNING: \"Cannot find zlibtcl configuration definitions\"" >&5 2233echo "$as_me: WARNING: \"Cannot find zlibtcl configuration definitions\"" >&2;} 2234 if test "Xoptional" != "Xoptional" ; then 2235 exit 0 2236 fi 2237 HAVE_zlibtcl_PACKAGE=0 2238 else 2239 no_zlibtcl= 2240 zlibtcl_BIN_DIR=${ac_cv_c_zlibtclconfig} 2241 { echo "$as_me:$LINENO: result: found $zlibtcl_BIN_DIR/zlibtclConfig.sh" >&5 2242echo "${ECHO_T}found $zlibtcl_BIN_DIR/zlibtclConfig.sh" >&6; } 2243 HAVE_zlibtcl_PACKAGE=1 2244 cat >>confdefs.h <<\_ACEOF 2245#define HAVE_zlibtcl_PACKAGE 1 2246_ACEOF 2247 2248 fi 2249 fi 2250 2251if test $HAVE_zlibtcl_PACKAGE -gt 0 ; then 2252 2253 { echo "$as_me:$LINENO: checking for existence of ${zlibtcl_BIN_DIR}/zlibtclConfig.sh" >&5 2254echo $ECHO_N "checking for existence of ${zlibtcl_BIN_DIR}/zlibtclConfig.sh... $ECHO_C" >&6; } 2255 2256 if test -f "${zlibtcl_BIN_DIR}/zlibtclConfig.sh" ; then 2257 { echo "$as_me:$LINENO: result: loading" >&5 2258echo "${ECHO_T}loading" >&6; } 2259 . "${zlibtcl_BIN_DIR}/zlibtclConfig.sh" 2260 else 2261 { echo "$as_me:$LINENO: result: file not found" >&5 2262echo "${ECHO_T}file not found" >&6; } 2263 fi 2264 2265 # 2266 # If the zlibtcl_BIN_DIR is the build directory (not the install directory), 2267 # then set the common variable name to the value of the build variables. 2268 # For example, the variable zlibtcl_LIB_SPEC will be set to the value 2269 # of zlibtcl_BUILD_LIB_SPEC. An extension should make use of zlibtcl_LIB_SPEC 2270 # instead of zlibtcl_BUILD_LIB_SPEC since it will work with both an 2271 # installed and uninstalled version of Tcl. 2272 # 2273 2274 if test -f "${zlibtcl_BIN_DIR}/Makefile" ; then 2275 { echo "$as_me:$LINENO: WARNING: Found Makefile - using build library specs for zlibtcl" >&5 2276echo "$as_me: WARNING: Found Makefile - using build library specs for zlibtcl" >&2;} 2277 zlibtcl_LIB_SPEC=${zlibtcl_BUILD_LIB_SPEC} 2278 zlibtcl_STUB_LIB_SPEC=${zlibtcl_BUILD_STUB_LIB_SPEC} 2279 zlibtcl_STUB_LIB_PATH=${zlibtcl_BUILD_STUB_LIB_PATH} 2280 fi 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 #-------------------------------------------------------------------- 2295 # Compute an absolute path to the src directory of 'zlibtcl'. We 2296 # need the special 'zlib.h' header which routes through 2297 # 'zlibtcl.h' to splice the stub definitions into the unchanged 2298 # sources of png. 2299 #-------------------------------------------------------------------- 2300 2301 case $zlibtcl_SRC_DIR in 2302 /*) zlibtcl_SRC_PATH=$zlibtcl_SRC_DIR 2303 ;; 2304 *) # SRC_DIR relative, splice with BUILD_PATH 2305 zlibtcl_SRC_PATH="`dirname $zlibtcl_BUILD_STUB_LIB_PATH`/$zlibtcl_SRC_DIR" 2306 esac 2307 2308 zlibtcl_BUILD_PATH="`dirname $zlibtcl_BUILD_STUB_LIB_PATH`" 2309 2310 if test "${TEA_PLATFORM}" = "windows" ; then 2311 zlibtcl_SRC_PATH="`$CYGPATH $zlibtcl_SRC_PATH`" 2312 zlibtcl_BUILD_PATH="`$CYGPATH $zlibtcl_BUILD_PATH`" 2313 fi 2314fi 2315 2316 2317 2318 2319 2320#----------------------------------------------------------------------- 2321# Handle the --prefix=... option by defaulting to what Tcl gave. 2322# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2323#----------------------------------------------------------------------- 2324 2325 2326 if test "${prefix}" = "NONE"; then 2327 prefix_default=yes 2328 if test x"${TCL_PREFIX}" != x; then 2329 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2330echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2331 prefix=${TCL_PREFIX} 2332 else 2333 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2334echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2335 prefix=/usr/local 2336 fi 2337 fi 2338 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2339 -o x"${exec_prefix_default}" = x"yes" ; then 2340 if test x"${TCL_EXEC_PREFIX}" != x; then 2341 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2342echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2343 exec_prefix=${TCL_EXEC_PREFIX} 2344 else 2345 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2346echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2347 exec_prefix=$prefix 2348 fi 2349 fi 2350 2351 2352#----------------------------------------------------------------------- 2353# Standard compiler checks. 2354# This sets up CC by using the CC env var, or looks for gcc otherwise. 2355# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2356# the basic setup necessary to compile executables. 2357#----------------------------------------------------------------------- 2358 2359 2360 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2361 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2362 2363 # If the user did not set CFLAGS, set it now to keep 2364 # the AC_PROG_CC macro from adding "-g -O2". 2365 if test "${CFLAGS+set}" != "set" ; then 2366 CFLAGS="" 2367 fi 2368 2369 ac_ext=c 2370ac_cpp='$CPP $CPPFLAGS' 2371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2373ac_compiler_gnu=$ac_cv_c_compiler_gnu 2374if test -n "$ac_tool_prefix"; then 2375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2376set dummy ${ac_tool_prefix}gcc; ac_word=$2 2377{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2379if test "${ac_cv_prog_CC+set}" = set; then 2380 echo $ECHO_N "(cached) $ECHO_C" >&6 2381else 2382 if test -n "$CC"; then 2383 ac_cv_prog_CC="$CC" # Let the user override the test. 2384else 2385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2386for as_dir in $PATH 2387do 2388 IFS=$as_save_IFS 2389 test -z "$as_dir" && as_dir=. 2390 for ac_exec_ext in '' $ac_executable_extensions; do 2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2392 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2394 break 2 2395 fi 2396done 2397done 2398IFS=$as_save_IFS 2399 2400fi 2401fi 2402CC=$ac_cv_prog_CC 2403if test -n "$CC"; then 2404 { echo "$as_me:$LINENO: result: $CC" >&5 2405echo "${ECHO_T}$CC" >&6; } 2406else 2407 { echo "$as_me:$LINENO: result: no" >&5 2408echo "${ECHO_T}no" >&6; } 2409fi 2410 2411 2412fi 2413if test -z "$ac_cv_prog_CC"; then 2414 ac_ct_CC=$CC 2415 # Extract the first word of "gcc", so it can be a program name with args. 2416set dummy gcc; ac_word=$2 2417{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2419if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2420 echo $ECHO_N "(cached) $ECHO_C" >&6 2421else 2422 if test -n "$ac_ct_CC"; then 2423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2424else 2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2426for as_dir in $PATH 2427do 2428 IFS=$as_save_IFS 2429 test -z "$as_dir" && as_dir=. 2430 for ac_exec_ext in '' $ac_executable_extensions; do 2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2432 ac_cv_prog_ac_ct_CC="gcc" 2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2434 break 2 2435 fi 2436done 2437done 2438IFS=$as_save_IFS 2439 2440fi 2441fi 2442ac_ct_CC=$ac_cv_prog_ac_ct_CC 2443if test -n "$ac_ct_CC"; then 2444 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2445echo "${ECHO_T}$ac_ct_CC" >&6; } 2446else 2447 { echo "$as_me:$LINENO: result: no" >&5 2448echo "${ECHO_T}no" >&6; } 2449fi 2450 2451 if test "x$ac_ct_CC" = x; then 2452 CC="" 2453 else 2454 case $cross_compiling:$ac_tool_warned in 2455yes:) 2456{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2457whose name does not start with the host triplet. If you think this 2458configuration is useful to you, please write to autoconf@gnu.org." >&5 2459echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2460whose name does not start with the host triplet. If you think this 2461configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2462ac_tool_warned=yes ;; 2463esac 2464 CC=$ac_ct_CC 2465 fi 2466else 2467 CC="$ac_cv_prog_CC" 2468fi 2469 2470if test -z "$CC"; then 2471 if test -n "$ac_tool_prefix"; then 2472 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2473set dummy ${ac_tool_prefix}cc; ac_word=$2 2474{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2476if test "${ac_cv_prog_CC+set}" = set; then 2477 echo $ECHO_N "(cached) $ECHO_C" >&6 2478else 2479 if test -n "$CC"; then 2480 ac_cv_prog_CC="$CC" # Let the user override the test. 2481else 2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2483for as_dir in $PATH 2484do 2485 IFS=$as_save_IFS 2486 test -z "$as_dir" && as_dir=. 2487 for ac_exec_ext in '' $ac_executable_extensions; do 2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2489 ac_cv_prog_CC="${ac_tool_prefix}cc" 2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2491 break 2 2492 fi 2493done 2494done 2495IFS=$as_save_IFS 2496 2497fi 2498fi 2499CC=$ac_cv_prog_CC 2500if test -n "$CC"; then 2501 { echo "$as_me:$LINENO: result: $CC" >&5 2502echo "${ECHO_T}$CC" >&6; } 2503else 2504 { echo "$as_me:$LINENO: result: no" >&5 2505echo "${ECHO_T}no" >&6; } 2506fi 2507 2508 2509 fi 2510fi 2511if test -z "$CC"; then 2512 # Extract the first word of "cc", so it can be a program name with args. 2513set dummy cc; ac_word=$2 2514{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2516if test "${ac_cv_prog_CC+set}" = set; then 2517 echo $ECHO_N "(cached) $ECHO_C" >&6 2518else 2519 if test -n "$CC"; then 2520 ac_cv_prog_CC="$CC" # Let the user override the test. 2521else 2522 ac_prog_rejected=no 2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2524for as_dir in $PATH 2525do 2526 IFS=$as_save_IFS 2527 test -z "$as_dir" && as_dir=. 2528 for ac_exec_ext in '' $ac_executable_extensions; do 2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2530 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2531 ac_prog_rejected=yes 2532 continue 2533 fi 2534 ac_cv_prog_CC="cc" 2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2536 break 2 2537 fi 2538done 2539done 2540IFS=$as_save_IFS 2541 2542if test $ac_prog_rejected = yes; then 2543 # We found a bogon in the path, so make sure we never use it. 2544 set dummy $ac_cv_prog_CC 2545 shift 2546 if test $# != 0; then 2547 # We chose a different compiler from the bogus one. 2548 # However, it has the same basename, so the bogon will be chosen 2549 # first if we set CC to just the basename; use the full file name. 2550 shift 2551 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2552 fi 2553fi 2554fi 2555fi 2556CC=$ac_cv_prog_CC 2557if test -n "$CC"; then 2558 { echo "$as_me:$LINENO: result: $CC" >&5 2559echo "${ECHO_T}$CC" >&6; } 2560else 2561 { echo "$as_me:$LINENO: result: no" >&5 2562echo "${ECHO_T}no" >&6; } 2563fi 2564 2565 2566fi 2567if test -z "$CC"; then 2568 if test -n "$ac_tool_prefix"; then 2569 for ac_prog in cl.exe 2570 do 2571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2572set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2573{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2575if test "${ac_cv_prog_CC+set}" = set; then 2576 echo $ECHO_N "(cached) $ECHO_C" >&6 2577else 2578 if test -n "$CC"; then 2579 ac_cv_prog_CC="$CC" # Let the user override the test. 2580else 2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2582for as_dir in $PATH 2583do 2584 IFS=$as_save_IFS 2585 test -z "$as_dir" && as_dir=. 2586 for ac_exec_ext in '' $ac_executable_extensions; do 2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2588 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2590 break 2 2591 fi 2592done 2593done 2594IFS=$as_save_IFS 2595 2596fi 2597fi 2598CC=$ac_cv_prog_CC 2599if test -n "$CC"; then 2600 { echo "$as_me:$LINENO: result: $CC" >&5 2601echo "${ECHO_T}$CC" >&6; } 2602else 2603 { echo "$as_me:$LINENO: result: no" >&5 2604echo "${ECHO_T}no" >&6; } 2605fi 2606 2607 2608 test -n "$CC" && break 2609 done 2610fi 2611if test -z "$CC"; then 2612 ac_ct_CC=$CC 2613 for ac_prog in cl.exe 2614do 2615 # Extract the first word of "$ac_prog", so it can be a program name with args. 2616set dummy $ac_prog; ac_word=$2 2617{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2619if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2620 echo $ECHO_N "(cached) $ECHO_C" >&6 2621else 2622 if test -n "$ac_ct_CC"; then 2623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2624else 2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2626for as_dir in $PATH 2627do 2628 IFS=$as_save_IFS 2629 test -z "$as_dir" && as_dir=. 2630 for ac_exec_ext in '' $ac_executable_extensions; do 2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2632 ac_cv_prog_ac_ct_CC="$ac_prog" 2633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2634 break 2 2635 fi 2636done 2637done 2638IFS=$as_save_IFS 2639 2640fi 2641fi 2642ac_ct_CC=$ac_cv_prog_ac_ct_CC 2643if test -n "$ac_ct_CC"; then 2644 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2645echo "${ECHO_T}$ac_ct_CC" >&6; } 2646else 2647 { echo "$as_me:$LINENO: result: no" >&5 2648echo "${ECHO_T}no" >&6; } 2649fi 2650 2651 2652 test -n "$ac_ct_CC" && break 2653done 2654 2655 if test "x$ac_ct_CC" = x; then 2656 CC="" 2657 else 2658 case $cross_compiling:$ac_tool_warned in 2659yes:) 2660{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2661whose name does not start with the host triplet. If you think this 2662configuration is useful to you, please write to autoconf@gnu.org." >&5 2663echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2664whose name does not start with the host triplet. If you think this 2665configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2666ac_tool_warned=yes ;; 2667esac 2668 CC=$ac_ct_CC 2669 fi 2670fi 2671 2672fi 2673 2674 2675test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2676See \`config.log' for more details." >&5 2677echo "$as_me: error: no acceptable C compiler found in \$PATH 2678See \`config.log' for more details." >&2;} 2679 { (exit 1); exit 1; }; } 2680 2681# Provide some information about the compiler. 2682echo "$as_me:$LINENO: checking for C compiler version" >&5 2683ac_compiler=`set X $ac_compile; echo $2` 2684{ (ac_try="$ac_compiler --version >&5" 2685case "(($ac_try" in 2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2687 *) ac_try_echo=$ac_try;; 2688esac 2689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2690 (eval "$ac_compiler --version >&5") 2>&5 2691 ac_status=$? 2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2693 (exit $ac_status); } 2694{ (ac_try="$ac_compiler -v >&5" 2695case "(($ac_try" in 2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2697 *) ac_try_echo=$ac_try;; 2698esac 2699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2700 (eval "$ac_compiler -v >&5") 2>&5 2701 ac_status=$? 2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2703 (exit $ac_status); } 2704{ (ac_try="$ac_compiler -V >&5" 2705case "(($ac_try" in 2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2707 *) ac_try_echo=$ac_try;; 2708esac 2709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2710 (eval "$ac_compiler -V >&5") 2>&5 2711 ac_status=$? 2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2713 (exit $ac_status); } 2714 2715cat >conftest.$ac_ext <<_ACEOF 2716/* confdefs.h. */ 2717_ACEOF 2718cat confdefs.h >>conftest.$ac_ext 2719cat >>conftest.$ac_ext <<_ACEOF 2720/* end confdefs.h. */ 2721 2722int 2723main () 2724{ 2725 2726 ; 2727 return 0; 2728} 2729_ACEOF 2730ac_clean_files_save=$ac_clean_files 2731ac_clean_files="$ac_clean_files a.out a.exe b.out" 2732# Try to create an executable without -o first, disregard a.out. 2733# It will help us diagnose broken compilers, and finding out an intuition 2734# of exeext. 2735{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2736echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2737ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2738# 2739# List of possible output files, starting from the most likely. 2740# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2741# only as a last resort. b.out is created by i960 compilers. 2742ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2743# 2744# The IRIX 6 linker writes into existing files which may not be 2745# executable, retaining their permissions. Remove them first so a 2746# subsequent execution test works. 2747ac_rmfiles= 2748for ac_file in $ac_files 2749do 2750 case $ac_file in 2751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2752 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2753 esac 2754done 2755rm -f $ac_rmfiles 2756 2757if { (ac_try="$ac_link_default" 2758case "(($ac_try" in 2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2760 *) ac_try_echo=$ac_try;; 2761esac 2762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2763 (eval "$ac_link_default") 2>&5 2764 ac_status=$? 2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2766 (exit $ac_status); }; then 2767 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2768# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2769# in a Makefile. We should not override ac_cv_exeext if it was cached, 2770# so that the user can short-circuit this test for compilers unknown to 2771# Autoconf. 2772for ac_file in $ac_files '' 2773do 2774 test -f "$ac_file" || continue 2775 case $ac_file in 2776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2777 ;; 2778 [ab].out ) 2779 # We found the default executable, but exeext='' is most 2780 # certainly right. 2781 break;; 2782 *.* ) 2783 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2784 then :; else 2785 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2786 fi 2787 # We set ac_cv_exeext here because the later test for it is not 2788 # safe: cross compilers may not add the suffix if given an `-o' 2789 # argument, so we may need to know it at that point already. 2790 # Even if this section looks crufty: it has the advantage of 2791 # actually working. 2792 break;; 2793 * ) 2794 break;; 2795 esac 2796done 2797test "$ac_cv_exeext" = no && ac_cv_exeext= 2798 2799else 2800 ac_file='' 2801fi 2802 2803{ echo "$as_me:$LINENO: result: $ac_file" >&5 2804echo "${ECHO_T}$ac_file" >&6; } 2805if test -z "$ac_file"; then 2806 echo "$as_me: failed program was:" >&5 2807sed 's/^/| /' conftest.$ac_ext >&5 2808 2809{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2810See \`config.log' for more details." >&5 2811echo "$as_me: error: C compiler cannot create executables 2812See \`config.log' for more details." >&2;} 2813 { (exit 77); exit 77; }; } 2814fi 2815 2816ac_exeext=$ac_cv_exeext 2817 2818# Check that the compiler produces executables we can run. If not, either 2819# the compiler is broken, or we cross compile. 2820{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2821echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2822# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2823# If not cross compiling, check that we can run a simple program. 2824if test "$cross_compiling" != yes; then 2825 if { ac_try='./$ac_file' 2826 { (case "(($ac_try" in 2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2828 *) ac_try_echo=$ac_try;; 2829esac 2830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2831 (eval "$ac_try") 2>&5 2832 ac_status=$? 2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2834 (exit $ac_status); }; }; then 2835 cross_compiling=no 2836 else 2837 if test "$cross_compiling" = maybe; then 2838 cross_compiling=yes 2839 else 2840 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2841If you meant to cross compile, use \`--host'. 2842See \`config.log' for more details." >&5 2843echo "$as_me: error: cannot run C compiled programs. 2844If you meant to cross compile, use \`--host'. 2845See \`config.log' for more details." >&2;} 2846 { (exit 1); exit 1; }; } 2847 fi 2848 fi 2849fi 2850{ echo "$as_me:$LINENO: result: yes" >&5 2851echo "${ECHO_T}yes" >&6; } 2852 2853rm -f a.out a.exe conftest$ac_cv_exeext b.out 2854ac_clean_files=$ac_clean_files_save 2855# Check that the compiler produces executables we can run. If not, either 2856# the compiler is broken, or we cross compile. 2857{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2858echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2859{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2860echo "${ECHO_T}$cross_compiling" >&6; } 2861 2862{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2863echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2864if { (ac_try="$ac_link" 2865case "(($ac_try" in 2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2867 *) ac_try_echo=$ac_try;; 2868esac 2869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2870 (eval "$ac_link") 2>&5 2871 ac_status=$? 2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2873 (exit $ac_status); }; then 2874 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2875# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2876# work properly (i.e., refer to `conftest.exe'), while it won't with 2877# `rm'. 2878for ac_file in conftest.exe conftest conftest.*; do 2879 test -f "$ac_file" || continue 2880 case $ac_file in 2881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2882 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2883 break;; 2884 * ) break;; 2885 esac 2886done 2887else 2888 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2889See \`config.log' for more details." >&5 2890echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2891See \`config.log' for more details." >&2;} 2892 { (exit 1); exit 1; }; } 2893fi 2894 2895rm -f conftest$ac_cv_exeext 2896{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2897echo "${ECHO_T}$ac_cv_exeext" >&6; } 2898 2899rm -f conftest.$ac_ext 2900EXEEXT=$ac_cv_exeext 2901ac_exeext=$EXEEXT 2902{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2903echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2904if test "${ac_cv_objext+set}" = set; then 2905 echo $ECHO_N "(cached) $ECHO_C" >&6 2906else 2907 cat >conftest.$ac_ext <<_ACEOF 2908/* confdefs.h. */ 2909_ACEOF 2910cat confdefs.h >>conftest.$ac_ext 2911cat >>conftest.$ac_ext <<_ACEOF 2912/* end confdefs.h. */ 2913 2914int 2915main () 2916{ 2917 2918 ; 2919 return 0; 2920} 2921_ACEOF 2922rm -f conftest.o conftest.obj 2923if { (ac_try="$ac_compile" 2924case "(($ac_try" in 2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2926 *) ac_try_echo=$ac_try;; 2927esac 2928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2929 (eval "$ac_compile") 2>&5 2930 ac_status=$? 2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2932 (exit $ac_status); }; then 2933 for ac_file in conftest.o conftest.obj conftest.*; do 2934 test -f "$ac_file" || continue; 2935 case $ac_file in 2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2937 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2938 break;; 2939 esac 2940done 2941else 2942 echo "$as_me: failed program was:" >&5 2943sed 's/^/| /' conftest.$ac_ext >&5 2944 2945{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2946See \`config.log' for more details." >&5 2947echo "$as_me: error: cannot compute suffix of object files: cannot compile 2948See \`config.log' for more details." >&2;} 2949 { (exit 1); exit 1; }; } 2950fi 2951 2952rm -f conftest.$ac_cv_objext conftest.$ac_ext 2953fi 2954{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2955echo "${ECHO_T}$ac_cv_objext" >&6; } 2956OBJEXT=$ac_cv_objext 2957ac_objext=$OBJEXT 2958{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2959echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2960if test "${ac_cv_c_compiler_gnu+set}" = set; then 2961 echo $ECHO_N "(cached) $ECHO_C" >&6 2962else 2963 cat >conftest.$ac_ext <<_ACEOF 2964/* confdefs.h. */ 2965_ACEOF 2966cat confdefs.h >>conftest.$ac_ext 2967cat >>conftest.$ac_ext <<_ACEOF 2968/* end confdefs.h. */ 2969 2970int 2971main () 2972{ 2973#ifndef __GNUC__ 2974 choke me 2975#endif 2976 2977 ; 2978 return 0; 2979} 2980_ACEOF 2981rm -f conftest.$ac_objext 2982if { (ac_try="$ac_compile" 2983case "(($ac_try" in 2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2985 *) ac_try_echo=$ac_try;; 2986esac 2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2988 (eval "$ac_compile") 2>conftest.er1 2989 ac_status=$? 2990 grep -v '^ *+' conftest.er1 >conftest.err 2991 rm -f conftest.er1 2992 cat conftest.err >&5 2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2994 (exit $ac_status); } && { 2995 test -z "$ac_c_werror_flag" || 2996 test ! -s conftest.err 2997 } && test -s conftest.$ac_objext; then 2998 ac_compiler_gnu=yes 2999else 3000 echo "$as_me: failed program was:" >&5 3001sed 's/^/| /' conftest.$ac_ext >&5 3002 3003 ac_compiler_gnu=no 3004fi 3005 3006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3007ac_cv_c_compiler_gnu=$ac_compiler_gnu 3008 3009fi 3010{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3011echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3012GCC=`test $ac_compiler_gnu = yes && echo yes` 3013ac_test_CFLAGS=${CFLAGS+set} 3014ac_save_CFLAGS=$CFLAGS 3015{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3016echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3017if test "${ac_cv_prog_cc_g+set}" = set; then 3018 echo $ECHO_N "(cached) $ECHO_C" >&6 3019else 3020 ac_save_c_werror_flag=$ac_c_werror_flag 3021 ac_c_werror_flag=yes 3022 ac_cv_prog_cc_g=no 3023 CFLAGS="-g" 3024 cat >conftest.$ac_ext <<_ACEOF 3025/* confdefs.h. */ 3026_ACEOF 3027cat confdefs.h >>conftest.$ac_ext 3028cat >>conftest.$ac_ext <<_ACEOF 3029/* end confdefs.h. */ 3030 3031int 3032main () 3033{ 3034 3035 ; 3036 return 0; 3037} 3038_ACEOF 3039rm -f conftest.$ac_objext 3040if { (ac_try="$ac_compile" 3041case "(($ac_try" in 3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3043 *) ac_try_echo=$ac_try;; 3044esac 3045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3046 (eval "$ac_compile") 2>conftest.er1 3047 ac_status=$? 3048 grep -v '^ *+' conftest.er1 >conftest.err 3049 rm -f conftest.er1 3050 cat conftest.err >&5 3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3052 (exit $ac_status); } && { 3053 test -z "$ac_c_werror_flag" || 3054 test ! -s conftest.err 3055 } && test -s conftest.$ac_objext; then 3056 ac_cv_prog_cc_g=yes 3057else 3058 echo "$as_me: failed program was:" >&5 3059sed 's/^/| /' conftest.$ac_ext >&5 3060 3061 CFLAGS="" 3062 cat >conftest.$ac_ext <<_ACEOF 3063/* confdefs.h. */ 3064_ACEOF 3065cat confdefs.h >>conftest.$ac_ext 3066cat >>conftest.$ac_ext <<_ACEOF 3067/* end confdefs.h. */ 3068 3069int 3070main () 3071{ 3072 3073 ; 3074 return 0; 3075} 3076_ACEOF 3077rm -f conftest.$ac_objext 3078if { (ac_try="$ac_compile" 3079case "(($ac_try" in 3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3081 *) ac_try_echo=$ac_try;; 3082esac 3083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3084 (eval "$ac_compile") 2>conftest.er1 3085 ac_status=$? 3086 grep -v '^ *+' conftest.er1 >conftest.err 3087 rm -f conftest.er1 3088 cat conftest.err >&5 3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3090 (exit $ac_status); } && { 3091 test -z "$ac_c_werror_flag" || 3092 test ! -s conftest.err 3093 } && test -s conftest.$ac_objext; then 3094 : 3095else 3096 echo "$as_me: failed program was:" >&5 3097sed 's/^/| /' conftest.$ac_ext >&5 3098 3099 ac_c_werror_flag=$ac_save_c_werror_flag 3100 CFLAGS="-g" 3101 cat >conftest.$ac_ext <<_ACEOF 3102/* confdefs.h. */ 3103_ACEOF 3104cat confdefs.h >>conftest.$ac_ext 3105cat >>conftest.$ac_ext <<_ACEOF 3106/* end confdefs.h. */ 3107 3108int 3109main () 3110{ 3111 3112 ; 3113 return 0; 3114} 3115_ACEOF 3116rm -f conftest.$ac_objext 3117if { (ac_try="$ac_compile" 3118case "(($ac_try" in 3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3120 *) ac_try_echo=$ac_try;; 3121esac 3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3123 (eval "$ac_compile") 2>conftest.er1 3124 ac_status=$? 3125 grep -v '^ *+' conftest.er1 >conftest.err 3126 rm -f conftest.er1 3127 cat conftest.err >&5 3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3129 (exit $ac_status); } && { 3130 test -z "$ac_c_werror_flag" || 3131 test ! -s conftest.err 3132 } && test -s conftest.$ac_objext; then 3133 ac_cv_prog_cc_g=yes 3134else 3135 echo "$as_me: failed program was:" >&5 3136sed 's/^/| /' conftest.$ac_ext >&5 3137 3138 3139fi 3140 3141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3142fi 3143 3144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3145fi 3146 3147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3148 ac_c_werror_flag=$ac_save_c_werror_flag 3149fi 3150{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3151echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3152if test "$ac_test_CFLAGS" = set; then 3153 CFLAGS=$ac_save_CFLAGS 3154elif test $ac_cv_prog_cc_g = yes; then 3155 if test "$GCC" = yes; then 3156 CFLAGS="-g -O2" 3157 else 3158 CFLAGS="-g" 3159 fi 3160else 3161 if test "$GCC" = yes; then 3162 CFLAGS="-O2" 3163 else 3164 CFLAGS= 3165 fi 3166fi 3167{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3168echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3169if test "${ac_cv_prog_cc_c89+set}" = set; then 3170 echo $ECHO_N "(cached) $ECHO_C" >&6 3171else 3172 ac_cv_prog_cc_c89=no 3173ac_save_CC=$CC 3174cat >conftest.$ac_ext <<_ACEOF 3175/* confdefs.h. */ 3176_ACEOF 3177cat confdefs.h >>conftest.$ac_ext 3178cat >>conftest.$ac_ext <<_ACEOF 3179/* end confdefs.h. */ 3180#include <stdarg.h> 3181#include <stdio.h> 3182#include <sys/types.h> 3183#include <sys/stat.h> 3184/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3185struct buf { int x; }; 3186FILE * (*rcsopen) (struct buf *, struct stat *, int); 3187static char *e (p, i) 3188 char **p; 3189 int i; 3190{ 3191 return p[i]; 3192} 3193static char *f (char * (*g) (char **, int), char **p, ...) 3194{ 3195 char *s; 3196 va_list v; 3197 va_start (v,p); 3198 s = g (p, va_arg (v,int)); 3199 va_end (v); 3200 return s; 3201} 3202 3203/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3204 function prototypes and stuff, but not '\xHH' hex character constants. 3205 These don't provoke an error unfortunately, instead are silently treated 3206 as 'x'. The following induces an error, until -std is added to get 3207 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3208 array size at least. It's necessary to write '\x00'==0 to get something 3209 that's true only with -std. */ 3210int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3211 3212/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3213 inside strings and character constants. */ 3214#define FOO(x) 'x' 3215int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3216 3217int test (int i, double x); 3218struct s1 {int (*f) (int a);}; 3219struct s2 {int (*f) (double a);}; 3220int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3221int argc; 3222char **argv; 3223int 3224main () 3225{ 3226return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3227 ; 3228 return 0; 3229} 3230_ACEOF 3231for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3232 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3233do 3234 CC="$ac_save_CC $ac_arg" 3235 rm -f conftest.$ac_objext 3236if { (ac_try="$ac_compile" 3237case "(($ac_try" in 3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3239 *) ac_try_echo=$ac_try;; 3240esac 3241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3242 (eval "$ac_compile") 2>conftest.er1 3243 ac_status=$? 3244 grep -v '^ *+' conftest.er1 >conftest.err 3245 rm -f conftest.er1 3246 cat conftest.err >&5 3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3248 (exit $ac_status); } && { 3249 test -z "$ac_c_werror_flag" || 3250 test ! -s conftest.err 3251 } && test -s conftest.$ac_objext; then 3252 ac_cv_prog_cc_c89=$ac_arg 3253else 3254 echo "$as_me: failed program was:" >&5 3255sed 's/^/| /' conftest.$ac_ext >&5 3256 3257 3258fi 3259 3260rm -f core conftest.err conftest.$ac_objext 3261 test "x$ac_cv_prog_cc_c89" != "xno" && break 3262done 3263rm -f conftest.$ac_ext 3264CC=$ac_save_CC 3265 3266fi 3267# AC_CACHE_VAL 3268case "x$ac_cv_prog_cc_c89" in 3269 x) 3270 { echo "$as_me:$LINENO: result: none needed" >&5 3271echo "${ECHO_T}none needed" >&6; } ;; 3272 xno) 3273 { echo "$as_me:$LINENO: result: unsupported" >&5 3274echo "${ECHO_T}unsupported" >&6; } ;; 3275 *) 3276 CC="$CC $ac_cv_prog_cc_c89" 3277 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3278echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3279esac 3280 3281 3282ac_ext=c 3283ac_cpp='$CPP $CPPFLAGS' 3284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3286ac_compiler_gnu=$ac_cv_c_compiler_gnu 3287 3288 ac_ext=c 3289ac_cpp='$CPP $CPPFLAGS' 3290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3292ac_compiler_gnu=$ac_cv_c_compiler_gnu 3293{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3294echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3295# On Suns, sometimes $CPP names a directory. 3296if test -n "$CPP" && test -d "$CPP"; then 3297 CPP= 3298fi 3299if test -z "$CPP"; then 3300 if test "${ac_cv_prog_CPP+set}" = set; then 3301 echo $ECHO_N "(cached) $ECHO_C" >&6 3302else 3303 # Double quotes because CPP needs to be expanded 3304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3305 do 3306 ac_preproc_ok=false 3307for ac_c_preproc_warn_flag in '' yes 3308do 3309 # Use a header file that comes with gcc, so configuring glibc 3310 # with a fresh cross-compiler works. 3311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3312 # <limits.h> exists even on freestanding compilers. 3313 # On the NeXT, cc -E runs the code through the compiler's parser, 3314 # not just through cpp. "Syntax error" is here to catch this case. 3315 cat >conftest.$ac_ext <<_ACEOF 3316/* confdefs.h. */ 3317_ACEOF 3318cat confdefs.h >>conftest.$ac_ext 3319cat >>conftest.$ac_ext <<_ACEOF 3320/* end confdefs.h. */ 3321#ifdef __STDC__ 3322# include <limits.h> 3323#else 3324# include <assert.h> 3325#endif 3326 Syntax error 3327_ACEOF 3328if { (ac_try="$ac_cpp conftest.$ac_ext" 3329case "(($ac_try" in 3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3331 *) ac_try_echo=$ac_try;; 3332esac 3333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3335 ac_status=$? 3336 grep -v '^ *+' conftest.er1 >conftest.err 3337 rm -f conftest.er1 3338 cat conftest.err >&5 3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3340 (exit $ac_status); } >/dev/null && { 3341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3342 test ! -s conftest.err 3343 }; then 3344 : 3345else 3346 echo "$as_me: failed program was:" >&5 3347sed 's/^/| /' conftest.$ac_ext >&5 3348 3349 # Broken: fails on valid input. 3350continue 3351fi 3352 3353rm -f conftest.err conftest.$ac_ext 3354 3355 # OK, works on sane cases. Now check whether nonexistent headers 3356 # can be detected and how. 3357 cat >conftest.$ac_ext <<_ACEOF 3358/* confdefs.h. */ 3359_ACEOF 3360cat confdefs.h >>conftest.$ac_ext 3361cat >>conftest.$ac_ext <<_ACEOF 3362/* end confdefs.h. */ 3363#include <ac_nonexistent.h> 3364_ACEOF 3365if { (ac_try="$ac_cpp conftest.$ac_ext" 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_cpp conftest.$ac_ext") 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); } >/dev/null && { 3378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3379 test ! -s conftest.err 3380 }; then 3381 # Broken: success on invalid input. 3382continue 3383else 3384 echo "$as_me: failed program was:" >&5 3385sed 's/^/| /' conftest.$ac_ext >&5 3386 3387 # Passes both tests. 3388ac_preproc_ok=: 3389break 3390fi 3391 3392rm -f conftest.err conftest.$ac_ext 3393 3394done 3395# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3396rm -f conftest.err conftest.$ac_ext 3397if $ac_preproc_ok; then 3398 break 3399fi 3400 3401 done 3402 ac_cv_prog_CPP=$CPP 3403 3404fi 3405 CPP=$ac_cv_prog_CPP 3406else 3407 ac_cv_prog_CPP=$CPP 3408fi 3409{ echo "$as_me:$LINENO: result: $CPP" >&5 3410echo "${ECHO_T}$CPP" >&6; } 3411ac_preproc_ok=false 3412for ac_c_preproc_warn_flag in '' yes 3413do 3414 # Use a header file that comes with gcc, so configuring glibc 3415 # with a fresh cross-compiler works. 3416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3417 # <limits.h> exists even on freestanding compilers. 3418 # On the NeXT, cc -E runs the code through the compiler's parser, 3419 # not just through cpp. "Syntax error" is here to catch this case. 3420 cat >conftest.$ac_ext <<_ACEOF 3421/* confdefs.h. */ 3422_ACEOF 3423cat confdefs.h >>conftest.$ac_ext 3424cat >>conftest.$ac_ext <<_ACEOF 3425/* end confdefs.h. */ 3426#ifdef __STDC__ 3427# include <limits.h> 3428#else 3429# include <assert.h> 3430#endif 3431 Syntax error 3432_ACEOF 3433if { (ac_try="$ac_cpp conftest.$ac_ext" 3434case "(($ac_try" in 3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3436 *) ac_try_echo=$ac_try;; 3437esac 3438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3440 ac_status=$? 3441 grep -v '^ *+' conftest.er1 >conftest.err 3442 rm -f conftest.er1 3443 cat conftest.err >&5 3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3445 (exit $ac_status); } >/dev/null && { 3446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3447 test ! -s conftest.err 3448 }; then 3449 : 3450else 3451 echo "$as_me: failed program was:" >&5 3452sed 's/^/| /' conftest.$ac_ext >&5 3453 3454 # Broken: fails on valid input. 3455continue 3456fi 3457 3458rm -f conftest.err conftest.$ac_ext 3459 3460 # OK, works on sane cases. Now check whether nonexistent headers 3461 # can be detected and how. 3462 cat >conftest.$ac_ext <<_ACEOF 3463/* confdefs.h. */ 3464_ACEOF 3465cat confdefs.h >>conftest.$ac_ext 3466cat >>conftest.$ac_ext <<_ACEOF 3467/* end confdefs.h. */ 3468#include <ac_nonexistent.h> 3469_ACEOF 3470if { (ac_try="$ac_cpp conftest.$ac_ext" 3471case "(($ac_try" in 3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3473 *) ac_try_echo=$ac_try;; 3474esac 3475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3477 ac_status=$? 3478 grep -v '^ *+' conftest.er1 >conftest.err 3479 rm -f conftest.er1 3480 cat conftest.err >&5 3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3482 (exit $ac_status); } >/dev/null && { 3483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3484 test ! -s conftest.err 3485 }; then 3486 # Broken: success on invalid input. 3487continue 3488else 3489 echo "$as_me: failed program was:" >&5 3490sed 's/^/| /' conftest.$ac_ext >&5 3491 3492 # Passes both tests. 3493ac_preproc_ok=: 3494break 3495fi 3496 3497rm -f conftest.err conftest.$ac_ext 3498 3499done 3500# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3501rm -f conftest.err conftest.$ac_ext 3502if $ac_preproc_ok; then 3503 : 3504else 3505 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3506See \`config.log' for more details." >&5 3507echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3508See \`config.log' for more details." >&2;} 3509 { (exit 1); exit 1; }; } 3510fi 3511 3512ac_ext=c 3513ac_cpp='$CPP $CPPFLAGS' 3514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3516ac_compiler_gnu=$ac_cv_c_compiler_gnu 3517 3518 3519 # Find a good install program. We prefer a C program (faster), 3520# so one script is as good as another. But avoid the broken or 3521# incompatible versions: 3522# SysV /etc/install, /usr/sbin/install 3523# SunOS /usr/etc/install 3524# IRIX /sbin/install 3525# AIX /bin/install 3526# AmigaOS /C/install, which installs bootblocks on floppy discs 3527# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3528# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3529# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3530# OS/2's system install, which has a completely different semantic 3531# ./install, which can be erroneously created by make from ./install.sh. 3532{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3533echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3534if test -z "$INSTALL"; then 3535if test "${ac_cv_path_install+set}" = set; then 3536 echo $ECHO_N "(cached) $ECHO_C" >&6 3537else 3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3539for as_dir in $PATH 3540do 3541 IFS=$as_save_IFS 3542 test -z "$as_dir" && as_dir=. 3543 # Account for people who put trailing slashes in PATH elements. 3544case $as_dir/ in 3545 ./ | .// | /cC/* | \ 3546 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3547 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3548 /usr/ucb/* ) ;; 3549 *) 3550 # OSF1 and SCO ODT 3.0 have their own names for install. 3551 # Don't use installbsd from OSF since it installs stuff as root 3552 # by default. 3553 for ac_prog in ginstall scoinst install; do 3554 for ac_exec_ext in '' $ac_executable_extensions; do 3555 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3556 if test $ac_prog = install && 3557 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3558 # AIX install. It has an incompatible calling convention. 3559 : 3560 elif test $ac_prog = install && 3561 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3562 # program-specific install script used by HP pwplus--don't use. 3563 : 3564 else 3565 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3566 break 3 3567 fi 3568 fi 3569 done 3570 done 3571 ;; 3572esac 3573done 3574IFS=$as_save_IFS 3575 3576 3577fi 3578 if test "${ac_cv_path_install+set}" = set; then 3579 INSTALL=$ac_cv_path_install 3580 else 3581 # As a last resort, use the slow shell script. Don't cache a 3582 # value for INSTALL within a source directory, because that will 3583 # break other packages using the cache if that directory is 3584 # removed, or if the value is a relative name. 3585 INSTALL=$ac_install_sh 3586 fi 3587fi 3588{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3589echo "${ECHO_T}$INSTALL" >&6; } 3590 3591# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3592# It thinks the first close brace ends the variable substitution. 3593test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3594 3595test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3596 3597test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3598 3599 3600 #-------------------------------------------------------------------- 3601 # Checks to see if the make program sets the $MAKE variable. 3602 #-------------------------------------------------------------------- 3603 3604 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3605echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3606set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3607if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3608 echo $ECHO_N "(cached) $ECHO_C" >&6 3609else 3610 cat >conftest.make <<\_ACEOF 3611SHELL = /bin/sh 3612all: 3613 @echo '@@@%%%=$(MAKE)=@@@%%%' 3614_ACEOF 3615# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3616case `${MAKE-make} -f conftest.make 2>/dev/null` in 3617 *@@@%%%=?*=@@@%%%*) 3618 eval ac_cv_prog_make_${ac_make}_set=yes;; 3619 *) 3620 eval ac_cv_prog_make_${ac_make}_set=no;; 3621esac 3622rm -f conftest.make 3623fi 3624if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3625 { echo "$as_me:$LINENO: result: yes" >&5 3626echo "${ECHO_T}yes" >&6; } 3627 SET_MAKE= 3628else 3629 { echo "$as_me:$LINENO: result: no" >&5 3630echo "${ECHO_T}no" >&6; } 3631 SET_MAKE="MAKE=${MAKE-make}" 3632fi 3633 3634 3635 #-------------------------------------------------------------------- 3636 # Find ranlib 3637 #-------------------------------------------------------------------- 3638 3639 if test -n "$ac_tool_prefix"; then 3640 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3641set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3642{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3644if test "${ac_cv_prog_RANLIB+set}" = set; then 3645 echo $ECHO_N "(cached) $ECHO_C" >&6 3646else 3647 if test -n "$RANLIB"; then 3648 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3649else 3650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3651for as_dir in $PATH 3652do 3653 IFS=$as_save_IFS 3654 test -z "$as_dir" && as_dir=. 3655 for ac_exec_ext in '' $ac_executable_extensions; do 3656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3657 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3659 break 2 3660 fi 3661done 3662done 3663IFS=$as_save_IFS 3664 3665fi 3666fi 3667RANLIB=$ac_cv_prog_RANLIB 3668if test -n "$RANLIB"; then 3669 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3670echo "${ECHO_T}$RANLIB" >&6; } 3671else 3672 { echo "$as_me:$LINENO: result: no" >&5 3673echo "${ECHO_T}no" >&6; } 3674fi 3675 3676 3677fi 3678if test -z "$ac_cv_prog_RANLIB"; then 3679 ac_ct_RANLIB=$RANLIB 3680 # Extract the first word of "ranlib", so it can be a program name with args. 3681set dummy ranlib; ac_word=$2 3682{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3684if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3685 echo $ECHO_N "(cached) $ECHO_C" >&6 3686else 3687 if test -n "$ac_ct_RANLIB"; then 3688 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3689else 3690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3691for as_dir in $PATH 3692do 3693 IFS=$as_save_IFS 3694 test -z "$as_dir" && as_dir=. 3695 for ac_exec_ext in '' $ac_executable_extensions; do 3696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3697 ac_cv_prog_ac_ct_RANLIB="ranlib" 3698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3699 break 2 3700 fi 3701done 3702done 3703IFS=$as_save_IFS 3704 3705fi 3706fi 3707ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3708if test -n "$ac_ct_RANLIB"; then 3709 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3710echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3711else 3712 { echo "$as_me:$LINENO: result: no" >&5 3713echo "${ECHO_T}no" >&6; } 3714fi 3715 3716 if test "x$ac_ct_RANLIB" = x; then 3717 RANLIB=":" 3718 else 3719 case $cross_compiling:$ac_tool_warned in 3720yes:) 3721{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3722whose name does not start with the host triplet. If you think this 3723configuration is useful to you, please write to autoconf@gnu.org." >&5 3724echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3725whose name does not start with the host triplet. If you think this 3726configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3727ac_tool_warned=yes ;; 3728esac 3729 RANLIB=$ac_ct_RANLIB 3730 fi 3731else 3732 RANLIB="$ac_cv_prog_RANLIB" 3733fi 3734 3735 3736 #-------------------------------------------------------------------- 3737 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3738 #-------------------------------------------------------------------- 3739 3740 3741 3742 3743 3744 3745{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3746echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3747if test "${ac_cv_path_GREP+set}" = set; then 3748 echo $ECHO_N "(cached) $ECHO_C" >&6 3749else 3750 # Extract the first word of "grep ggrep" to use in msg output 3751if test -z "$GREP"; then 3752set dummy grep ggrep; ac_prog_name=$2 3753if test "${ac_cv_path_GREP+set}" = set; then 3754 echo $ECHO_N "(cached) $ECHO_C" >&6 3755else 3756 ac_path_GREP_found=false 3757# Loop through the user's path and test for each of PROGNAME-LIST 3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3759for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3760do 3761 IFS=$as_save_IFS 3762 test -z "$as_dir" && as_dir=. 3763 for ac_prog in grep ggrep; do 3764 for ac_exec_ext in '' $ac_executable_extensions; do 3765 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3766 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3767 # Check for GNU ac_path_GREP and select it if it is found. 3768 # Check for GNU $ac_path_GREP 3769case `"$ac_path_GREP" --version 2>&1` in 3770*GNU*) 3771 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3772*) 3773 ac_count=0 3774 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3775 while : 3776 do 3777 cat "conftest.in" "conftest.in" >"conftest.tmp" 3778 mv "conftest.tmp" "conftest.in" 3779 cp "conftest.in" "conftest.nl" 3780 echo 'GREP' >> "conftest.nl" 3781 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3783 ac_count=`expr $ac_count + 1` 3784 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3785 # Best one so far, save it but keep looking for a better one 3786 ac_cv_path_GREP="$ac_path_GREP" 3787 ac_path_GREP_max=$ac_count 3788 fi 3789 # 10*(2^10) chars as input seems more than enough 3790 test $ac_count -gt 10 && break 3791 done 3792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3793esac 3794 3795 3796 $ac_path_GREP_found && break 3 3797 done 3798done 3799 3800done 3801IFS=$as_save_IFS 3802 3803 3804fi 3805 3806GREP="$ac_cv_path_GREP" 3807if test -z "$GREP"; then 3808 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3809echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3810 { (exit 1); exit 1; }; } 3811fi 3812 3813else 3814 ac_cv_path_GREP=$GREP 3815fi 3816 3817 3818fi 3819{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3820echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3821 GREP="$ac_cv_path_GREP" 3822 3823 3824{ echo "$as_me:$LINENO: checking for egrep" >&5 3825echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3826if test "${ac_cv_path_EGREP+set}" = set; then 3827 echo $ECHO_N "(cached) $ECHO_C" >&6 3828else 3829 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3830 then ac_cv_path_EGREP="$GREP -E" 3831 else 3832 # Extract the first word of "egrep" to use in msg output 3833if test -z "$EGREP"; then 3834set dummy egrep; ac_prog_name=$2 3835if test "${ac_cv_path_EGREP+set}" = set; then 3836 echo $ECHO_N "(cached) $ECHO_C" >&6 3837else 3838 ac_path_EGREP_found=false 3839# Loop through the user's path and test for each of PROGNAME-LIST 3840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3841for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3842do 3843 IFS=$as_save_IFS 3844 test -z "$as_dir" && as_dir=. 3845 for ac_prog in egrep; do 3846 for ac_exec_ext in '' $ac_executable_extensions; do 3847 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3848 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3849 # Check for GNU ac_path_EGREP and select it if it is found. 3850 # Check for GNU $ac_path_EGREP 3851case `"$ac_path_EGREP" --version 2>&1` in 3852*GNU*) 3853 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3854*) 3855 ac_count=0 3856 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3857 while : 3858 do 3859 cat "conftest.in" "conftest.in" >"conftest.tmp" 3860 mv "conftest.tmp" "conftest.in" 3861 cp "conftest.in" "conftest.nl" 3862 echo 'EGREP' >> "conftest.nl" 3863 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3865 ac_count=`expr $ac_count + 1` 3866 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3867 # Best one so far, save it but keep looking for a better one 3868 ac_cv_path_EGREP="$ac_path_EGREP" 3869 ac_path_EGREP_max=$ac_count 3870 fi 3871 # 10*(2^10) chars as input seems more than enough 3872 test $ac_count -gt 10 && break 3873 done 3874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3875esac 3876 3877 3878 $ac_path_EGREP_found && break 3 3879 done 3880done 3881 3882done 3883IFS=$as_save_IFS 3884 3885 3886fi 3887 3888EGREP="$ac_cv_path_EGREP" 3889if test -z "$EGREP"; then 3890 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3891echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3892 { (exit 1); exit 1; }; } 3893fi 3894 3895else 3896 ac_cv_path_EGREP=$EGREP 3897fi 3898 3899 3900 fi 3901fi 3902{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3903echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3904 EGREP="$ac_cv_path_EGREP" 3905 3906 3907{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3908echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3909if test "${ac_cv_header_stdc+set}" = set; then 3910 echo $ECHO_N "(cached) $ECHO_C" >&6 3911else 3912 cat >conftest.$ac_ext <<_ACEOF 3913/* confdefs.h. */ 3914_ACEOF 3915cat confdefs.h >>conftest.$ac_ext 3916cat >>conftest.$ac_ext <<_ACEOF 3917/* end confdefs.h. */ 3918#include <stdlib.h> 3919#include <stdarg.h> 3920#include <string.h> 3921#include <float.h> 3922 3923int 3924main () 3925{ 3926 3927 ; 3928 return 0; 3929} 3930_ACEOF 3931rm -f conftest.$ac_objext 3932if { (ac_try="$ac_compile" 3933case "(($ac_try" in 3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3935 *) ac_try_echo=$ac_try;; 3936esac 3937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3938 (eval "$ac_compile") 2>conftest.er1 3939 ac_status=$? 3940 grep -v '^ *+' conftest.er1 >conftest.err 3941 rm -f conftest.er1 3942 cat conftest.err >&5 3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3944 (exit $ac_status); } && { 3945 test -z "$ac_c_werror_flag" || 3946 test ! -s conftest.err 3947 } && test -s conftest.$ac_objext; then 3948 ac_cv_header_stdc=yes 3949else 3950 echo "$as_me: failed program was:" >&5 3951sed 's/^/| /' conftest.$ac_ext >&5 3952 3953 ac_cv_header_stdc=no 3954fi 3955 3956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3957 3958if test $ac_cv_header_stdc = yes; then 3959 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3960 cat >conftest.$ac_ext <<_ACEOF 3961/* confdefs.h. */ 3962_ACEOF 3963cat confdefs.h >>conftest.$ac_ext 3964cat >>conftest.$ac_ext <<_ACEOF 3965/* end confdefs.h. */ 3966#include <string.h> 3967 3968_ACEOF 3969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3970 $EGREP "memchr" >/dev/null 2>&1; then 3971 : 3972else 3973 ac_cv_header_stdc=no 3974fi 3975rm -f conftest* 3976 3977fi 3978 3979if test $ac_cv_header_stdc = yes; then 3980 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3981 cat >conftest.$ac_ext <<_ACEOF 3982/* confdefs.h. */ 3983_ACEOF 3984cat confdefs.h >>conftest.$ac_ext 3985cat >>conftest.$ac_ext <<_ACEOF 3986/* end confdefs.h. */ 3987#include <stdlib.h> 3988 3989_ACEOF 3990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3991 $EGREP "free" >/dev/null 2>&1; then 3992 : 3993else 3994 ac_cv_header_stdc=no 3995fi 3996rm -f conftest* 3997 3998fi 3999 4000if test $ac_cv_header_stdc = yes; then 4001 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4002 if test "$cross_compiling" = yes; then 4003 : 4004else 4005 cat >conftest.$ac_ext <<_ACEOF 4006/* confdefs.h. */ 4007_ACEOF 4008cat confdefs.h >>conftest.$ac_ext 4009cat >>conftest.$ac_ext <<_ACEOF 4010/* end confdefs.h. */ 4011#include <ctype.h> 4012#include <stdlib.h> 4013#if ((' ' & 0x0FF) == 0x020) 4014# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4015# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4016#else 4017# define ISLOWER(c) \ 4018 (('a' <= (c) && (c) <= 'i') \ 4019 || ('j' <= (c) && (c) <= 'r') \ 4020 || ('s' <= (c) && (c) <= 'z')) 4021# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4022#endif 4023 4024#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4025int 4026main () 4027{ 4028 int i; 4029 for (i = 0; i < 256; i++) 4030 if (XOR (islower (i), ISLOWER (i)) 4031 || toupper (i) != TOUPPER (i)) 4032 return 2; 4033 return 0; 4034} 4035_ACEOF 4036rm -f conftest$ac_exeext 4037if { (ac_try="$ac_link" 4038case "(($ac_try" in 4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4040 *) ac_try_echo=$ac_try;; 4041esac 4042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4043 (eval "$ac_link") 2>&5 4044 ac_status=$? 4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4047 { (case "(($ac_try" in 4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4049 *) ac_try_echo=$ac_try;; 4050esac 4051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4052 (eval "$ac_try") 2>&5 4053 ac_status=$? 4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4055 (exit $ac_status); }; }; then 4056 : 4057else 4058 echo "$as_me: program exited with status $ac_status" >&5 4059echo "$as_me: failed program was:" >&5 4060sed 's/^/| /' conftest.$ac_ext >&5 4061 4062( exit $ac_status ) 4063ac_cv_header_stdc=no 4064fi 4065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4066fi 4067 4068 4069fi 4070fi 4071{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4072echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4073if test $ac_cv_header_stdc = yes; then 4074 4075cat >>confdefs.h <<\_ACEOF 4076#define STDC_HEADERS 1 4077_ACEOF 4078 4079fi 4080 4081# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4092 inttypes.h stdint.h unistd.h 4093do 4094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4095{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4098 echo $ECHO_N "(cached) $ECHO_C" >&6 4099else 4100 cat >conftest.$ac_ext <<_ACEOF 4101/* confdefs.h. */ 4102_ACEOF 4103cat confdefs.h >>conftest.$ac_ext 4104cat >>conftest.$ac_ext <<_ACEOF 4105/* end confdefs.h. */ 4106$ac_includes_default 4107 4108#include <$ac_header> 4109_ACEOF 4110rm -f conftest.$ac_objext 4111if { (ac_try="$ac_compile" 4112case "(($ac_try" in 4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4114 *) ac_try_echo=$ac_try;; 4115esac 4116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4117 (eval "$ac_compile") 2>conftest.er1 4118 ac_status=$? 4119 grep -v '^ *+' conftest.er1 >conftest.err 4120 rm -f conftest.er1 4121 cat conftest.err >&5 4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4123 (exit $ac_status); } && { 4124 test -z "$ac_c_werror_flag" || 4125 test ! -s conftest.err 4126 } && test -s conftest.$ac_objext; then 4127 eval "$as_ac_Header=yes" 4128else 4129 echo "$as_me: failed program was:" >&5 4130sed 's/^/| /' conftest.$ac_ext >&5 4131 4132 eval "$as_ac_Header=no" 4133fi 4134 4135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4136fi 4137ac_res=`eval echo '${'$as_ac_Header'}'` 4138 { echo "$as_me:$LINENO: result: $ac_res" >&5 4139echo "${ECHO_T}$ac_res" >&6; } 4140if test `eval echo '${'$as_ac_Header'}'` = yes; then 4141 cat >>confdefs.h <<_ACEOF 4142#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4143_ACEOF 4144 4145fi 4146 4147done 4148 4149 4150 4151 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4152 4153 4154 #------------------------------------------------------------------------ 4155 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4156 # It makes compiling go faster. (This is only a performance feature.) 4157 #------------------------------------------------------------------------ 4158 4159 if test -z "$no_pipe" -a -n "$GCC"; then 4160 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4161echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4162if test "${tcl_cv_cc_pipe+set}" = set; then 4163 echo $ECHO_N "(cached) $ECHO_C" >&6 4164else 4165 4166 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4167 cat >conftest.$ac_ext <<_ACEOF 4168/* confdefs.h. */ 4169_ACEOF 4170cat confdefs.h >>conftest.$ac_ext 4171cat >>conftest.$ac_ext <<_ACEOF 4172/* end confdefs.h. */ 4173 4174int 4175main () 4176{ 4177 4178 ; 4179 return 0; 4180} 4181_ACEOF 4182rm -f conftest.$ac_objext 4183if { (ac_try="$ac_compile" 4184case "(($ac_try" in 4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4186 *) ac_try_echo=$ac_try;; 4187esac 4188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4189 (eval "$ac_compile") 2>conftest.er1 4190 ac_status=$? 4191 grep -v '^ *+' conftest.er1 >conftest.err 4192 rm -f conftest.er1 4193 cat conftest.err >&5 4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4195 (exit $ac_status); } && { 4196 test -z "$ac_c_werror_flag" || 4197 test ! -s conftest.err 4198 } && test -s conftest.$ac_objext; then 4199 tcl_cv_cc_pipe=yes 4200else 4201 echo "$as_me: failed program was:" >&5 4202sed 's/^/| /' conftest.$ac_ext >&5 4203 4204 tcl_cv_cc_pipe=no 4205fi 4206 4207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4208 CFLAGS=$hold_cflags 4209fi 4210{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4211echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4212 if test $tcl_cv_cc_pipe = yes; then 4213 CFLAGS="$CFLAGS -pipe" 4214 fi 4215 fi 4216 4217 #-------------------------------------------------------------------- 4218 # Common compiler flag setup 4219 #-------------------------------------------------------------------- 4220 4221 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4222echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4223if test "${ac_cv_c_bigendian+set}" = set; then 4224 echo $ECHO_N "(cached) $ECHO_C" >&6 4225else 4226 # See if sys/param.h defines the BYTE_ORDER macro. 4227cat >conftest.$ac_ext <<_ACEOF 4228/* confdefs.h. */ 4229_ACEOF 4230cat confdefs.h >>conftest.$ac_ext 4231cat >>conftest.$ac_ext <<_ACEOF 4232/* end confdefs.h. */ 4233#include <sys/types.h> 4234#include <sys/param.h> 4235 4236int 4237main () 4238{ 4239#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4240 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4241 bogus endian macros 4242#endif 4243 4244 ; 4245 return 0; 4246} 4247_ACEOF 4248rm -f conftest.$ac_objext 4249if { (ac_try="$ac_compile" 4250case "(($ac_try" in 4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4252 *) ac_try_echo=$ac_try;; 4253esac 4254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4255 (eval "$ac_compile") 2>conftest.er1 4256 ac_status=$? 4257 grep -v '^ *+' conftest.er1 >conftest.err 4258 rm -f conftest.er1 4259 cat conftest.err >&5 4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4261 (exit $ac_status); } && { 4262 test -z "$ac_c_werror_flag" || 4263 test ! -s conftest.err 4264 } && test -s conftest.$ac_objext; then 4265 # It does; now see whether it defined to BIG_ENDIAN or not. 4266cat >conftest.$ac_ext <<_ACEOF 4267/* confdefs.h. */ 4268_ACEOF 4269cat confdefs.h >>conftest.$ac_ext 4270cat >>conftest.$ac_ext <<_ACEOF 4271/* end confdefs.h. */ 4272#include <sys/types.h> 4273#include <sys/param.h> 4274 4275int 4276main () 4277{ 4278#if BYTE_ORDER != BIG_ENDIAN 4279 not big endian 4280#endif 4281 4282 ; 4283 return 0; 4284} 4285_ACEOF 4286rm -f conftest.$ac_objext 4287if { (ac_try="$ac_compile" 4288case "(($ac_try" in 4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4290 *) ac_try_echo=$ac_try;; 4291esac 4292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4293 (eval "$ac_compile") 2>conftest.er1 4294 ac_status=$? 4295 grep -v '^ *+' conftest.er1 >conftest.err 4296 rm -f conftest.er1 4297 cat conftest.err >&5 4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4299 (exit $ac_status); } && { 4300 test -z "$ac_c_werror_flag" || 4301 test ! -s conftest.err 4302 } && test -s conftest.$ac_objext; then 4303 ac_cv_c_bigendian=yes 4304else 4305 echo "$as_me: failed program was:" >&5 4306sed 's/^/| /' conftest.$ac_ext >&5 4307 4308 ac_cv_c_bigendian=no 4309fi 4310 4311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4312else 4313 echo "$as_me: failed program was:" >&5 4314sed 's/^/| /' conftest.$ac_ext >&5 4315 4316 # It does not; compile a test program. 4317if test "$cross_compiling" = yes; then 4318 # try to guess the endianness by grepping values into an object file 4319 ac_cv_c_bigendian=unknown 4320 cat >conftest.$ac_ext <<_ACEOF 4321/* confdefs.h. */ 4322_ACEOF 4323cat confdefs.h >>conftest.$ac_ext 4324cat >>conftest.$ac_ext <<_ACEOF 4325/* end confdefs.h. */ 4326short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4327short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4328void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4329short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4330short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4331void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4332int 4333main () 4334{ 4335 _ascii (); _ebcdic (); 4336 ; 4337 return 0; 4338} 4339_ACEOF 4340rm -f conftest.$ac_objext 4341if { (ac_try="$ac_compile" 4342case "(($ac_try" in 4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4344 *) ac_try_echo=$ac_try;; 4345esac 4346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4347 (eval "$ac_compile") 2>conftest.er1 4348 ac_status=$? 4349 grep -v '^ *+' conftest.er1 >conftest.err 4350 rm -f conftest.er1 4351 cat conftest.err >&5 4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4353 (exit $ac_status); } && { 4354 test -z "$ac_c_werror_flag" || 4355 test ! -s conftest.err 4356 } && test -s conftest.$ac_objext; then 4357 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4358 ac_cv_c_bigendian=yes 4359fi 4360if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4361 if test "$ac_cv_c_bigendian" = unknown; then 4362 ac_cv_c_bigendian=no 4363 else 4364 # finding both strings is unlikely to happen, but who knows? 4365 ac_cv_c_bigendian=unknown 4366 fi 4367fi 4368else 4369 echo "$as_me: failed program was:" >&5 4370sed 's/^/| /' conftest.$ac_ext >&5 4371 4372 4373fi 4374 4375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4376else 4377 cat >conftest.$ac_ext <<_ACEOF 4378/* confdefs.h. */ 4379_ACEOF 4380cat confdefs.h >>conftest.$ac_ext 4381cat >>conftest.$ac_ext <<_ACEOF 4382/* end confdefs.h. */ 4383$ac_includes_default 4384int 4385main () 4386{ 4387 4388 /* Are we little or big endian? From Harbison&Steele. */ 4389 union 4390 { 4391 long int l; 4392 char c[sizeof (long int)]; 4393 } u; 4394 u.l = 1; 4395 return u.c[sizeof (long int) - 1] == 1; 4396 4397 ; 4398 return 0; 4399} 4400_ACEOF 4401rm -f conftest$ac_exeext 4402if { (ac_try="$ac_link" 4403case "(($ac_try" in 4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4405 *) ac_try_echo=$ac_try;; 4406esac 4407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4408 (eval "$ac_link") 2>&5 4409 ac_status=$? 4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4412 { (case "(($ac_try" in 4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4414 *) ac_try_echo=$ac_try;; 4415esac 4416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4417 (eval "$ac_try") 2>&5 4418 ac_status=$? 4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4420 (exit $ac_status); }; }; then 4421 ac_cv_c_bigendian=no 4422else 4423 echo "$as_me: program exited with status $ac_status" >&5 4424echo "$as_me: failed program was:" >&5 4425sed 's/^/| /' conftest.$ac_ext >&5 4426 4427( exit $ac_status ) 4428ac_cv_c_bigendian=yes 4429fi 4430rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4431fi 4432 4433 4434fi 4435 4436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4437fi 4438{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4439echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4440case $ac_cv_c_bigendian in 4441 yes) 4442 4443cat >>confdefs.h <<\_ACEOF 4444#define WORDS_BIGENDIAN 1 4445_ACEOF 4446 ;; 4447 no) 4448 ;; 4449 *) 4450 { { echo "$as_me:$LINENO: error: unknown endianness 4451presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4452echo "$as_me: error: unknown endianness 4453presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4454 { (exit 1); exit 1; }; } ;; 4455esac 4456 4457 if test "${TEA_PLATFORM}" = "unix" ; then 4458 4459 #-------------------------------------------------------------------- 4460 # On a few very rare systems, all of the libm.a stuff is 4461 # already in libc.a. Set compiler flags accordingly. 4462 # Also, Linux requires the "ieee" library for math to work 4463 # right (and it must appear before "-lm"). 4464 #-------------------------------------------------------------------- 4465 4466 { echo "$as_me:$LINENO: checking for sin" >&5 4467echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4468if test "${ac_cv_func_sin+set}" = set; then 4469 echo $ECHO_N "(cached) $ECHO_C" >&6 4470else 4471 cat >conftest.$ac_ext <<_ACEOF 4472/* confdefs.h. */ 4473_ACEOF 4474cat confdefs.h >>conftest.$ac_ext 4475cat >>conftest.$ac_ext <<_ACEOF 4476/* end confdefs.h. */ 4477/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4478 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4479#define sin innocuous_sin 4480 4481/* System header to define __stub macros and hopefully few prototypes, 4482 which can conflict with char sin (); below. 4483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4484 <limits.h> exists even on freestanding compilers. */ 4485 4486#ifdef __STDC__ 4487# include <limits.h> 4488#else 4489# include <assert.h> 4490#endif 4491 4492#undef sin 4493 4494/* Override any GCC internal prototype to avoid an error. 4495 Use char because int might match the return type of a GCC 4496 builtin and then its argument prototype would still apply. */ 4497#ifdef __cplusplus 4498extern "C" 4499#endif 4500char sin (); 4501/* The GNU C library defines this for functions which it implements 4502 to always fail with ENOSYS. Some functions are actually named 4503 something starting with __ and the normal name is an alias. */ 4504#if defined __stub_sin || defined __stub___sin 4505choke me 4506#endif 4507 4508int 4509main () 4510{ 4511return sin (); 4512 ; 4513 return 0; 4514} 4515_ACEOF 4516rm -f conftest.$ac_objext conftest$ac_exeext 4517if { (ac_try="$ac_link" 4518case "(($ac_try" in 4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4520 *) ac_try_echo=$ac_try;; 4521esac 4522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4523 (eval "$ac_link") 2>conftest.er1 4524 ac_status=$? 4525 grep -v '^ *+' conftest.er1 >conftest.err 4526 rm -f conftest.er1 4527 cat conftest.err >&5 4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4529 (exit $ac_status); } && { 4530 test -z "$ac_c_werror_flag" || 4531 test ! -s conftest.err 4532 } && test -s conftest$ac_exeext && 4533 $as_test_x conftest$ac_exeext; then 4534 ac_cv_func_sin=yes 4535else 4536 echo "$as_me: failed program was:" >&5 4537sed 's/^/| /' conftest.$ac_ext >&5 4538 4539 ac_cv_func_sin=no 4540fi 4541 4542rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4543 conftest$ac_exeext conftest.$ac_ext 4544fi 4545{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4546echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4547if test $ac_cv_func_sin = yes; then 4548 MATH_LIBS="" 4549else 4550 MATH_LIBS="-lm" 4551fi 4552 4553 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4554echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4555if test "${ac_cv_lib_ieee_main+set}" = set; then 4556 echo $ECHO_N "(cached) $ECHO_C" >&6 4557else 4558 ac_check_lib_save_LIBS=$LIBS 4559LIBS="-lieee $LIBS" 4560cat >conftest.$ac_ext <<_ACEOF 4561/* confdefs.h. */ 4562_ACEOF 4563cat confdefs.h >>conftest.$ac_ext 4564cat >>conftest.$ac_ext <<_ACEOF 4565/* end confdefs.h. */ 4566 4567 4568int 4569main () 4570{ 4571return main (); 4572 ; 4573 return 0; 4574} 4575_ACEOF 4576rm -f conftest.$ac_objext conftest$ac_exeext 4577if { (ac_try="$ac_link" 4578case "(($ac_try" in 4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4580 *) ac_try_echo=$ac_try;; 4581esac 4582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4583 (eval "$ac_link") 2>conftest.er1 4584 ac_status=$? 4585 grep -v '^ *+' conftest.er1 >conftest.err 4586 rm -f conftest.er1 4587 cat conftest.err >&5 4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4589 (exit $ac_status); } && { 4590 test -z "$ac_c_werror_flag" || 4591 test ! -s conftest.err 4592 } && test -s conftest$ac_exeext && 4593 $as_test_x conftest$ac_exeext; then 4594 ac_cv_lib_ieee_main=yes 4595else 4596 echo "$as_me: failed program was:" >&5 4597sed 's/^/| /' conftest.$ac_ext >&5 4598 4599 ac_cv_lib_ieee_main=no 4600fi 4601 4602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4603 conftest$ac_exeext conftest.$ac_ext 4604LIBS=$ac_check_lib_save_LIBS 4605fi 4606{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4607echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4608if test $ac_cv_lib_ieee_main = yes; then 4609 MATH_LIBS="-lieee $MATH_LIBS" 4610fi 4611 4612 4613 #-------------------------------------------------------------------- 4614 # Interactive UNIX requires -linet instead of -lsocket, plus it 4615 # needs net/errno.h to define the socket-related error codes. 4616 #-------------------------------------------------------------------- 4617 4618 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4619echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4620if test "${ac_cv_lib_inet_main+set}" = set; then 4621 echo $ECHO_N "(cached) $ECHO_C" >&6 4622else 4623 ac_check_lib_save_LIBS=$LIBS 4624LIBS="-linet $LIBS" 4625cat >conftest.$ac_ext <<_ACEOF 4626/* confdefs.h. */ 4627_ACEOF 4628cat confdefs.h >>conftest.$ac_ext 4629cat >>conftest.$ac_ext <<_ACEOF 4630/* end confdefs.h. */ 4631 4632 4633int 4634main () 4635{ 4636return main (); 4637 ; 4638 return 0; 4639} 4640_ACEOF 4641rm -f conftest.$ac_objext conftest$ac_exeext 4642if { (ac_try="$ac_link" 4643case "(($ac_try" in 4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4645 *) ac_try_echo=$ac_try;; 4646esac 4647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4648 (eval "$ac_link") 2>conftest.er1 4649 ac_status=$? 4650 grep -v '^ *+' conftest.er1 >conftest.err 4651 rm -f conftest.er1 4652 cat conftest.err >&5 4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4654 (exit $ac_status); } && { 4655 test -z "$ac_c_werror_flag" || 4656 test ! -s conftest.err 4657 } && test -s conftest$ac_exeext && 4658 $as_test_x conftest$ac_exeext; then 4659 ac_cv_lib_inet_main=yes 4660else 4661 echo "$as_me: failed program was:" >&5 4662sed 's/^/| /' conftest.$ac_ext >&5 4663 4664 ac_cv_lib_inet_main=no 4665fi 4666 4667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4668 conftest$ac_exeext conftest.$ac_ext 4669LIBS=$ac_check_lib_save_LIBS 4670fi 4671{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4672echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4673if test $ac_cv_lib_inet_main = yes; then 4674 LIBS="$LIBS -linet" 4675fi 4676 4677 if test "${ac_cv_header_net_errno_h+set}" = set; then 4678 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4679echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4680if test "${ac_cv_header_net_errno_h+set}" = set; then 4681 echo $ECHO_N "(cached) $ECHO_C" >&6 4682fi 4683{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4684echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4685else 4686 # Is the header compilable? 4687{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4688echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 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$ac_includes_default 4696#include <net/errno.h> 4697_ACEOF 4698rm -f conftest.$ac_objext 4699if { (ac_try="$ac_compile" 4700case "(($ac_try" in 4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4702 *) ac_try_echo=$ac_try;; 4703esac 4704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4705 (eval "$ac_compile") 2>conftest.er1 4706 ac_status=$? 4707 grep -v '^ *+' conftest.er1 >conftest.err 4708 rm -f conftest.er1 4709 cat conftest.err >&5 4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4711 (exit $ac_status); } && { 4712 test -z "$ac_c_werror_flag" || 4713 test ! -s conftest.err 4714 } && test -s conftest.$ac_objext; then 4715 ac_header_compiler=yes 4716else 4717 echo "$as_me: failed program was:" >&5 4718sed 's/^/| /' conftest.$ac_ext >&5 4719 4720 ac_header_compiler=no 4721fi 4722 4723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4724{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4725echo "${ECHO_T}$ac_header_compiler" >&6; } 4726 4727# Is the header present? 4728{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4729echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4730cat >conftest.$ac_ext <<_ACEOF 4731/* confdefs.h. */ 4732_ACEOF 4733cat confdefs.h >>conftest.$ac_ext 4734cat >>conftest.$ac_ext <<_ACEOF 4735/* end confdefs.h. */ 4736#include <net/errno.h> 4737_ACEOF 4738if { (ac_try="$ac_cpp conftest.$ac_ext" 4739case "(($ac_try" in 4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4741 *) ac_try_echo=$ac_try;; 4742esac 4743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4745 ac_status=$? 4746 grep -v '^ *+' conftest.er1 >conftest.err 4747 rm -f conftest.er1 4748 cat conftest.err >&5 4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4750 (exit $ac_status); } >/dev/null && { 4751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4752 test ! -s conftest.err 4753 }; then 4754 ac_header_preproc=yes 4755else 4756 echo "$as_me: failed program was:" >&5 4757sed 's/^/| /' conftest.$ac_ext >&5 4758 4759 ac_header_preproc=no 4760fi 4761 4762rm -f conftest.err conftest.$ac_ext 4763{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4764echo "${ECHO_T}$ac_header_preproc" >&6; } 4765 4766# So? What about this header? 4767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4768 yes:no: ) 4769 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4770echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4771 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4772echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4773 ac_header_preproc=yes 4774 ;; 4775 no:yes:* ) 4776 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4777echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4778 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4779echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4780 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4781echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4782 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4783echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4784 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4785echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4786 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4787echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4788 4789 ;; 4790esac 4791{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4792echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4793if test "${ac_cv_header_net_errno_h+set}" = set; then 4794 echo $ECHO_N "(cached) $ECHO_C" >&6 4795else 4796 ac_cv_header_net_errno_h=$ac_header_preproc 4797fi 4798{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4799echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4800 4801fi 4802if test $ac_cv_header_net_errno_h = yes; then 4803 4804 4805cat >>confdefs.h <<\_ACEOF 4806#define HAVE_NET_ERRNO_H 1 4807_ACEOF 4808 4809fi 4810 4811 4812 4813 #-------------------------------------------------------------------- 4814 # Check for the existence of the -lsocket and -lnsl libraries. 4815 # The order here is important, so that they end up in the right 4816 # order in the command line generated by make. Here are some 4817 # special considerations: 4818 # 1. Use "connect" and "accept" to check for -lsocket, and 4819 # "gethostbyname" to check for -lnsl. 4820 # 2. Use each function name only once: can't redo a check because 4821 # autoconf caches the results of the last check and won't redo it. 4822 # 3. Use -lnsl and -lsocket only if they supply procedures that 4823 # aren't already present in the normal libraries. This is because 4824 # IRIX 5.2 has libraries, but they aren't needed and they're 4825 # bogus: they goof up name resolution if used. 4826 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4827 # To get around this problem, check for both libraries together 4828 # if -lsocket doesn't work by itself. 4829 #-------------------------------------------------------------------- 4830 4831 tcl_checkBoth=0 4832 { echo "$as_me:$LINENO: checking for connect" >&5 4833echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4834if test "${ac_cv_func_connect+set}" = set; then 4835 echo $ECHO_N "(cached) $ECHO_C" >&6 4836else 4837 cat >conftest.$ac_ext <<_ACEOF 4838/* confdefs.h. */ 4839_ACEOF 4840cat confdefs.h >>conftest.$ac_ext 4841cat >>conftest.$ac_ext <<_ACEOF 4842/* end confdefs.h. */ 4843/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4844 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4845#define connect innocuous_connect 4846 4847/* System header to define __stub macros and hopefully few prototypes, 4848 which can conflict with char connect (); below. 4849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4850 <limits.h> exists even on freestanding compilers. */ 4851 4852#ifdef __STDC__ 4853# include <limits.h> 4854#else 4855# include <assert.h> 4856#endif 4857 4858#undef connect 4859 4860/* Override any GCC internal prototype to avoid an error. 4861 Use char because int might match the return type of a GCC 4862 builtin and then its argument prototype would still apply. */ 4863#ifdef __cplusplus 4864extern "C" 4865#endif 4866char connect (); 4867/* The GNU C library defines this for functions which it implements 4868 to always fail with ENOSYS. Some functions are actually named 4869 something starting with __ and the normal name is an alias. */ 4870#if defined __stub_connect || defined __stub___connect 4871choke me 4872#endif 4873 4874int 4875main () 4876{ 4877return connect (); 4878 ; 4879 return 0; 4880} 4881_ACEOF 4882rm -f conftest.$ac_objext conftest$ac_exeext 4883if { (ac_try="$ac_link" 4884case "(($ac_try" in 4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4886 *) ac_try_echo=$ac_try;; 4887esac 4888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4889 (eval "$ac_link") 2>conftest.er1 4890 ac_status=$? 4891 grep -v '^ *+' conftest.er1 >conftest.err 4892 rm -f conftest.er1 4893 cat conftest.err >&5 4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4895 (exit $ac_status); } && { 4896 test -z "$ac_c_werror_flag" || 4897 test ! -s conftest.err 4898 } && test -s conftest$ac_exeext && 4899 $as_test_x conftest$ac_exeext; then 4900 ac_cv_func_connect=yes 4901else 4902 echo "$as_me: failed program was:" >&5 4903sed 's/^/| /' conftest.$ac_ext >&5 4904 4905 ac_cv_func_connect=no 4906fi 4907 4908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4909 conftest$ac_exeext conftest.$ac_ext 4910fi 4911{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4912echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4913if test $ac_cv_func_connect = yes; then 4914 tcl_checkSocket=0 4915else 4916 tcl_checkSocket=1 4917fi 4918 4919 if test "$tcl_checkSocket" = 1; then 4920 { echo "$as_me:$LINENO: checking for setsockopt" >&5 4921echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 4922if test "${ac_cv_func_setsockopt+set}" = set; then 4923 echo $ECHO_N "(cached) $ECHO_C" >&6 4924else 4925 cat >conftest.$ac_ext <<_ACEOF 4926/* confdefs.h. */ 4927_ACEOF 4928cat confdefs.h >>conftest.$ac_ext 4929cat >>conftest.$ac_ext <<_ACEOF 4930/* end confdefs.h. */ 4931/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4932 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4933#define setsockopt innocuous_setsockopt 4934 4935/* System header to define __stub macros and hopefully few prototypes, 4936 which can conflict with char setsockopt (); below. 4937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4938 <limits.h> exists even on freestanding compilers. */ 4939 4940#ifdef __STDC__ 4941# include <limits.h> 4942#else 4943# include <assert.h> 4944#endif 4945 4946#undef setsockopt 4947 4948/* Override any GCC internal prototype to avoid an error. 4949 Use char because int might match the return type of a GCC 4950 builtin and then its argument prototype would still apply. */ 4951#ifdef __cplusplus 4952extern "C" 4953#endif 4954char setsockopt (); 4955/* The GNU C library defines this for functions which it implements 4956 to always fail with ENOSYS. Some functions are actually named 4957 something starting with __ and the normal name is an alias. */ 4958#if defined __stub_setsockopt || defined __stub___setsockopt 4959choke me 4960#endif 4961 4962int 4963main () 4964{ 4965return setsockopt (); 4966 ; 4967 return 0; 4968} 4969_ACEOF 4970rm -f conftest.$ac_objext conftest$ac_exeext 4971if { (ac_try="$ac_link" 4972case "(($ac_try" in 4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4974 *) ac_try_echo=$ac_try;; 4975esac 4976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4977 (eval "$ac_link") 2>conftest.er1 4978 ac_status=$? 4979 grep -v '^ *+' conftest.er1 >conftest.err 4980 rm -f conftest.er1 4981 cat conftest.err >&5 4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4983 (exit $ac_status); } && { 4984 test -z "$ac_c_werror_flag" || 4985 test ! -s conftest.err 4986 } && test -s conftest$ac_exeext && 4987 $as_test_x conftest$ac_exeext; then 4988 ac_cv_func_setsockopt=yes 4989else 4990 echo "$as_me: failed program was:" >&5 4991sed 's/^/| /' conftest.$ac_ext >&5 4992 4993 ac_cv_func_setsockopt=no 4994fi 4995 4996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4997 conftest$ac_exeext conftest.$ac_ext 4998fi 4999{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 5000echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 5001if test $ac_cv_func_setsockopt = yes; then 5002 : 5003else 5004 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 5005echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 5006if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 5007 echo $ECHO_N "(cached) $ECHO_C" >&6 5008else 5009 ac_check_lib_save_LIBS=$LIBS 5010LIBS="-lsocket $LIBS" 5011cat >conftest.$ac_ext <<_ACEOF 5012/* confdefs.h. */ 5013_ACEOF 5014cat confdefs.h >>conftest.$ac_ext 5015cat >>conftest.$ac_ext <<_ACEOF 5016/* end confdefs.h. */ 5017 5018/* Override any GCC internal prototype to avoid an error. 5019 Use char because int might match the return type of a GCC 5020 builtin and then its argument prototype would still apply. */ 5021#ifdef __cplusplus 5022extern "C" 5023#endif 5024char setsockopt (); 5025int 5026main () 5027{ 5028return setsockopt (); 5029 ; 5030 return 0; 5031} 5032_ACEOF 5033rm -f conftest.$ac_objext conftest$ac_exeext 5034if { (ac_try="$ac_link" 5035case "(($ac_try" in 5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5037 *) ac_try_echo=$ac_try;; 5038esac 5039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5040 (eval "$ac_link") 2>conftest.er1 5041 ac_status=$? 5042 grep -v '^ *+' conftest.er1 >conftest.err 5043 rm -f conftest.er1 5044 cat conftest.err >&5 5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5046 (exit $ac_status); } && { 5047 test -z "$ac_c_werror_flag" || 5048 test ! -s conftest.err 5049 } && test -s conftest$ac_exeext && 5050 $as_test_x conftest$ac_exeext; then 5051 ac_cv_lib_socket_setsockopt=yes 5052else 5053 echo "$as_me: failed program was:" >&5 5054sed 's/^/| /' conftest.$ac_ext >&5 5055 5056 ac_cv_lib_socket_setsockopt=no 5057fi 5058 5059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5060 conftest$ac_exeext conftest.$ac_ext 5061LIBS=$ac_check_lib_save_LIBS 5062fi 5063{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 5064echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 5065if test $ac_cv_lib_socket_setsockopt = yes; then 5066 LIBS="$LIBS -lsocket" 5067else 5068 tcl_checkBoth=1 5069fi 5070 5071fi 5072 5073 fi 5074 if test "$tcl_checkBoth" = 1; then 5075 tk_oldLibs=$LIBS 5076 LIBS="$LIBS -lsocket -lnsl" 5077 { echo "$as_me:$LINENO: checking for accept" >&5 5078echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 5079if test "${ac_cv_func_accept+set}" = set; then 5080 echo $ECHO_N "(cached) $ECHO_C" >&6 5081else 5082 cat >conftest.$ac_ext <<_ACEOF 5083/* confdefs.h. */ 5084_ACEOF 5085cat confdefs.h >>conftest.$ac_ext 5086cat >>conftest.$ac_ext <<_ACEOF 5087/* end confdefs.h. */ 5088/* Define accept to an innocuous variant, in case <limits.h> declares accept. 5089 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5090#define accept innocuous_accept 5091 5092/* System header to define __stub macros and hopefully few prototypes, 5093 which can conflict with char accept (); below. 5094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5095 <limits.h> exists even on freestanding compilers. */ 5096 5097#ifdef __STDC__ 5098# include <limits.h> 5099#else 5100# include <assert.h> 5101#endif 5102 5103#undef accept 5104 5105/* Override any GCC internal prototype to avoid an error. 5106 Use char because int might match the return type of a GCC 5107 builtin and then its argument prototype would still apply. */ 5108#ifdef __cplusplus 5109extern "C" 5110#endif 5111char accept (); 5112/* The GNU C library defines this for functions which it implements 5113 to always fail with ENOSYS. Some functions are actually named 5114 something starting with __ and the normal name is an alias. */ 5115#if defined __stub_accept || defined __stub___accept 5116choke me 5117#endif 5118 5119int 5120main () 5121{ 5122return accept (); 5123 ; 5124 return 0; 5125} 5126_ACEOF 5127rm -f conftest.$ac_objext conftest$ac_exeext 5128if { (ac_try="$ac_link" 5129case "(($ac_try" in 5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5131 *) ac_try_echo=$ac_try;; 5132esac 5133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5134 (eval "$ac_link") 2>conftest.er1 5135 ac_status=$? 5136 grep -v '^ *+' conftest.er1 >conftest.err 5137 rm -f conftest.er1 5138 cat conftest.err >&5 5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5140 (exit $ac_status); } && { 5141 test -z "$ac_c_werror_flag" || 5142 test ! -s conftest.err 5143 } && test -s conftest$ac_exeext && 5144 $as_test_x conftest$ac_exeext; then 5145 ac_cv_func_accept=yes 5146else 5147 echo "$as_me: failed program was:" >&5 5148sed 's/^/| /' conftest.$ac_ext >&5 5149 5150 ac_cv_func_accept=no 5151fi 5152 5153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5154 conftest$ac_exeext conftest.$ac_ext 5155fi 5156{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5157echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5158if test $ac_cv_func_accept = yes; then 5159 tcl_checkNsl=0 5160else 5161 LIBS=$tk_oldLibs 5162fi 5163 5164 fi 5165 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5166echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5167if test "${ac_cv_func_gethostbyname+set}" = set; then 5168 echo $ECHO_N "(cached) $ECHO_C" >&6 5169else 5170 cat >conftest.$ac_ext <<_ACEOF 5171/* confdefs.h. */ 5172_ACEOF 5173cat confdefs.h >>conftest.$ac_ext 5174cat >>conftest.$ac_ext <<_ACEOF 5175/* end confdefs.h. */ 5176/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5177 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5178#define gethostbyname innocuous_gethostbyname 5179 5180/* System header to define __stub macros and hopefully few prototypes, 5181 which can conflict with char gethostbyname (); below. 5182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5183 <limits.h> exists even on freestanding compilers. */ 5184 5185#ifdef __STDC__ 5186# include <limits.h> 5187#else 5188# include <assert.h> 5189#endif 5190 5191#undef gethostbyname 5192 5193/* Override any GCC internal prototype to avoid an error. 5194 Use char because int might match the return type of a GCC 5195 builtin and then its argument prototype would still apply. */ 5196#ifdef __cplusplus 5197extern "C" 5198#endif 5199char gethostbyname (); 5200/* The GNU C library defines this for functions which it implements 5201 to always fail with ENOSYS. Some functions are actually named 5202 something starting with __ and the normal name is an alias. */ 5203#if defined __stub_gethostbyname || defined __stub___gethostbyname 5204choke me 5205#endif 5206 5207int 5208main () 5209{ 5210return gethostbyname (); 5211 ; 5212 return 0; 5213} 5214_ACEOF 5215rm -f conftest.$ac_objext conftest$ac_exeext 5216if { (ac_try="$ac_link" 5217case "(($ac_try" in 5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5219 *) ac_try_echo=$ac_try;; 5220esac 5221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5222 (eval "$ac_link") 2>conftest.er1 5223 ac_status=$? 5224 grep -v '^ *+' conftest.er1 >conftest.err 5225 rm -f conftest.er1 5226 cat conftest.err >&5 5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5228 (exit $ac_status); } && { 5229 test -z "$ac_c_werror_flag" || 5230 test ! -s conftest.err 5231 } && test -s conftest$ac_exeext && 5232 $as_test_x conftest$ac_exeext; then 5233 ac_cv_func_gethostbyname=yes 5234else 5235 echo "$as_me: failed program was:" >&5 5236sed 's/^/| /' conftest.$ac_ext >&5 5237 5238 ac_cv_func_gethostbyname=no 5239fi 5240 5241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5242 conftest$ac_exeext conftest.$ac_ext 5243fi 5244{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5245echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5246if test $ac_cv_func_gethostbyname = yes; then 5247 : 5248else 5249 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5250echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5251if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5252 echo $ECHO_N "(cached) $ECHO_C" >&6 5253else 5254 ac_check_lib_save_LIBS=$LIBS 5255LIBS="-lnsl $LIBS" 5256cat >conftest.$ac_ext <<_ACEOF 5257/* confdefs.h. */ 5258_ACEOF 5259cat confdefs.h >>conftest.$ac_ext 5260cat >>conftest.$ac_ext <<_ACEOF 5261/* end confdefs.h. */ 5262 5263/* Override any GCC internal prototype to avoid an error. 5264 Use char because int might match the return type of a GCC 5265 builtin and then its argument prototype would still apply. */ 5266#ifdef __cplusplus 5267extern "C" 5268#endif 5269char gethostbyname (); 5270int 5271main () 5272{ 5273return gethostbyname (); 5274 ; 5275 return 0; 5276} 5277_ACEOF 5278rm -f conftest.$ac_objext conftest$ac_exeext 5279if { (ac_try="$ac_link" 5280case "(($ac_try" in 5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5282 *) ac_try_echo=$ac_try;; 5283esac 5284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5285 (eval "$ac_link") 2>conftest.er1 5286 ac_status=$? 5287 grep -v '^ *+' conftest.er1 >conftest.err 5288 rm -f conftest.er1 5289 cat conftest.err >&5 5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5291 (exit $ac_status); } && { 5292 test -z "$ac_c_werror_flag" || 5293 test ! -s conftest.err 5294 } && test -s conftest$ac_exeext && 5295 $as_test_x conftest$ac_exeext; then 5296 ac_cv_lib_nsl_gethostbyname=yes 5297else 5298 echo "$as_me: failed program was:" >&5 5299sed 's/^/| /' conftest.$ac_ext >&5 5300 5301 ac_cv_lib_nsl_gethostbyname=no 5302fi 5303 5304rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5305 conftest$ac_exeext conftest.$ac_ext 5306LIBS=$ac_check_lib_save_LIBS 5307fi 5308{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5309echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5310if test $ac_cv_lib_nsl_gethostbyname = yes; then 5311 LIBS="$LIBS -lnsl" 5312fi 5313 5314fi 5315 5316 5317 # TEA specific: Don't perform the eval of the libraries here because 5318 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5319 5320 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5321 5322 5323 5324 5325 { echo "$as_me:$LINENO: checking dirent.h" >&5 5326echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5327if test "${tcl_cv_dirent_h+set}" = set; then 5328 echo $ECHO_N "(cached) $ECHO_C" >&6 5329else 5330 5331 cat >conftest.$ac_ext <<_ACEOF 5332/* confdefs.h. */ 5333_ACEOF 5334cat confdefs.h >>conftest.$ac_ext 5335cat >>conftest.$ac_ext <<_ACEOF 5336/* end confdefs.h. */ 5337#include <sys/types.h> 5338#include <dirent.h> 5339int 5340main () 5341{ 5342 5343#ifndef _POSIX_SOURCE 5344# ifdef __Lynx__ 5345 /* 5346 * Generate compilation error to make the test fail: Lynx headers 5347 * are only valid if really in the POSIX environment. 5348 */ 5349 5350 missing_procedure(); 5351# endif 5352#endif 5353DIR *d; 5354struct dirent *entryPtr; 5355char *p; 5356d = opendir("foobar"); 5357entryPtr = readdir(d); 5358p = entryPtr->d_name; 5359closedir(d); 5360 5361 ; 5362 return 0; 5363} 5364_ACEOF 5365rm -f conftest.$ac_objext conftest$ac_exeext 5366if { (ac_try="$ac_link" 5367case "(($ac_try" in 5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5369 *) ac_try_echo=$ac_try;; 5370esac 5371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5372 (eval "$ac_link") 2>conftest.er1 5373 ac_status=$? 5374 grep -v '^ *+' conftest.er1 >conftest.err 5375 rm -f conftest.er1 5376 cat conftest.err >&5 5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5378 (exit $ac_status); } && { 5379 test -z "$ac_c_werror_flag" || 5380 test ! -s conftest.err 5381 } && test -s conftest$ac_exeext && 5382 $as_test_x conftest$ac_exeext; then 5383 tcl_cv_dirent_h=yes 5384else 5385 echo "$as_me: failed program was:" >&5 5386sed 's/^/| /' conftest.$ac_ext >&5 5387 5388 tcl_cv_dirent_h=no 5389fi 5390 5391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5392 conftest$ac_exeext conftest.$ac_ext 5393fi 5394{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5395echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5396 5397 if test $tcl_cv_dirent_h = no; then 5398 5399cat >>confdefs.h <<\_ACEOF 5400#define NO_DIRENT_H 1 5401_ACEOF 5402 5403 fi 5404 5405 # TEA specific: 5406 if test "${ac_cv_header_errno_h+set}" = set; then 5407 { echo "$as_me:$LINENO: checking for errno.h" >&5 5408echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5409if test "${ac_cv_header_errno_h+set}" = set; then 5410 echo $ECHO_N "(cached) $ECHO_C" >&6 5411fi 5412{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5413echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5414else 5415 # Is the header compilable? 5416{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5417echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5418cat >conftest.$ac_ext <<_ACEOF 5419/* confdefs.h. */ 5420_ACEOF 5421cat confdefs.h >>conftest.$ac_ext 5422cat >>conftest.$ac_ext <<_ACEOF 5423/* end confdefs.h. */ 5424$ac_includes_default 5425#include <errno.h> 5426_ACEOF 5427rm -f conftest.$ac_objext 5428if { (ac_try="$ac_compile" 5429case "(($ac_try" in 5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5431 *) ac_try_echo=$ac_try;; 5432esac 5433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5434 (eval "$ac_compile") 2>conftest.er1 5435 ac_status=$? 5436 grep -v '^ *+' conftest.er1 >conftest.err 5437 rm -f conftest.er1 5438 cat conftest.err >&5 5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5440 (exit $ac_status); } && { 5441 test -z "$ac_c_werror_flag" || 5442 test ! -s conftest.err 5443 } && test -s conftest.$ac_objext; then 5444 ac_header_compiler=yes 5445else 5446 echo "$as_me: failed program was:" >&5 5447sed 's/^/| /' conftest.$ac_ext >&5 5448 5449 ac_header_compiler=no 5450fi 5451 5452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5453{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5454echo "${ECHO_T}$ac_header_compiler" >&6; } 5455 5456# Is the header present? 5457{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5458echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5459cat >conftest.$ac_ext <<_ACEOF 5460/* confdefs.h. */ 5461_ACEOF 5462cat confdefs.h >>conftest.$ac_ext 5463cat >>conftest.$ac_ext <<_ACEOF 5464/* end confdefs.h. */ 5465#include <errno.h> 5466_ACEOF 5467if { (ac_try="$ac_cpp conftest.$ac_ext" 5468case "(($ac_try" in 5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5470 *) ac_try_echo=$ac_try;; 5471esac 5472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5474 ac_status=$? 5475 grep -v '^ *+' conftest.er1 >conftest.err 5476 rm -f conftest.er1 5477 cat conftest.err >&5 5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5479 (exit $ac_status); } >/dev/null && { 5480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5481 test ! -s conftest.err 5482 }; then 5483 ac_header_preproc=yes 5484else 5485 echo "$as_me: failed program was:" >&5 5486sed 's/^/| /' conftest.$ac_ext >&5 5487 5488 ac_header_preproc=no 5489fi 5490 5491rm -f conftest.err conftest.$ac_ext 5492{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5493echo "${ECHO_T}$ac_header_preproc" >&6; } 5494 5495# So? What about this header? 5496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5497 yes:no: ) 5498 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5499echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5500 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5501echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5502 ac_header_preproc=yes 5503 ;; 5504 no:yes:* ) 5505 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5506echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5507 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5508echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5509 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5510echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5511 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5512echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5513 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5514echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5515 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5516echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5517 5518 ;; 5519esac 5520{ echo "$as_me:$LINENO: checking for errno.h" >&5 5521echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5522if test "${ac_cv_header_errno_h+set}" = set; then 5523 echo $ECHO_N "(cached) $ECHO_C" >&6 5524else 5525 ac_cv_header_errno_h=$ac_header_preproc 5526fi 5527{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5528echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5529 5530fi 5531if test $ac_cv_header_errno_h = yes; then 5532 : 5533else 5534 5535cat >>confdefs.h <<\_ACEOF 5536#define NO_ERRNO_H 1 5537_ACEOF 5538 5539fi 5540 5541 5542 if test "${ac_cv_header_float_h+set}" = set; then 5543 { echo "$as_me:$LINENO: checking for float.h" >&5 5544echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5545if test "${ac_cv_header_float_h+set}" = set; then 5546 echo $ECHO_N "(cached) $ECHO_C" >&6 5547fi 5548{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5549echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5550else 5551 # Is the header compilable? 5552{ echo "$as_me:$LINENO: checking float.h usability" >&5 5553echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5554cat >conftest.$ac_ext <<_ACEOF 5555/* confdefs.h. */ 5556_ACEOF 5557cat confdefs.h >>conftest.$ac_ext 5558cat >>conftest.$ac_ext <<_ACEOF 5559/* end confdefs.h. */ 5560$ac_includes_default 5561#include <float.h> 5562_ACEOF 5563rm -f conftest.$ac_objext 5564if { (ac_try="$ac_compile" 5565case "(($ac_try" in 5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5567 *) ac_try_echo=$ac_try;; 5568esac 5569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5570 (eval "$ac_compile") 2>conftest.er1 5571 ac_status=$? 5572 grep -v '^ *+' conftest.er1 >conftest.err 5573 rm -f conftest.er1 5574 cat conftest.err >&5 5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5576 (exit $ac_status); } && { 5577 test -z "$ac_c_werror_flag" || 5578 test ! -s conftest.err 5579 } && test -s conftest.$ac_objext; then 5580 ac_header_compiler=yes 5581else 5582 echo "$as_me: failed program was:" >&5 5583sed 's/^/| /' conftest.$ac_ext >&5 5584 5585 ac_header_compiler=no 5586fi 5587 5588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5589{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5590echo "${ECHO_T}$ac_header_compiler" >&6; } 5591 5592# Is the header present? 5593{ echo "$as_me:$LINENO: checking float.h presence" >&5 5594echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5595cat >conftest.$ac_ext <<_ACEOF 5596/* confdefs.h. */ 5597_ACEOF 5598cat confdefs.h >>conftest.$ac_ext 5599cat >>conftest.$ac_ext <<_ACEOF 5600/* end confdefs.h. */ 5601#include <float.h> 5602_ACEOF 5603if { (ac_try="$ac_cpp conftest.$ac_ext" 5604case "(($ac_try" in 5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5606 *) ac_try_echo=$ac_try;; 5607esac 5608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5610 ac_status=$? 5611 grep -v '^ *+' conftest.er1 >conftest.err 5612 rm -f conftest.er1 5613 cat conftest.err >&5 5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5615 (exit $ac_status); } >/dev/null && { 5616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5617 test ! -s conftest.err 5618 }; then 5619 ac_header_preproc=yes 5620else 5621 echo "$as_me: failed program was:" >&5 5622sed 's/^/| /' conftest.$ac_ext >&5 5623 5624 ac_header_preproc=no 5625fi 5626 5627rm -f conftest.err conftest.$ac_ext 5628{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5629echo "${ECHO_T}$ac_header_preproc" >&6; } 5630 5631# So? What about this header? 5632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5633 yes:no: ) 5634 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5635echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5636 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5637echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5638 ac_header_preproc=yes 5639 ;; 5640 no:yes:* ) 5641 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5642echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5643 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5644echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5645 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5646echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5647 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5648echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5649 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5650echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5651 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5652echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5653 5654 ;; 5655esac 5656{ echo "$as_me:$LINENO: checking for float.h" >&5 5657echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5658if test "${ac_cv_header_float_h+set}" = set; then 5659 echo $ECHO_N "(cached) $ECHO_C" >&6 5660else 5661 ac_cv_header_float_h=$ac_header_preproc 5662fi 5663{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5664echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5665 5666fi 5667if test $ac_cv_header_float_h = yes; then 5668 : 5669else 5670 5671cat >>confdefs.h <<\_ACEOF 5672#define NO_FLOAT_H 1 5673_ACEOF 5674 5675fi 5676 5677 5678 if test "${ac_cv_header_values_h+set}" = set; then 5679 { echo "$as_me:$LINENO: checking for values.h" >&5 5680echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5681if test "${ac_cv_header_values_h+set}" = set; then 5682 echo $ECHO_N "(cached) $ECHO_C" >&6 5683fi 5684{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5685echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5686else 5687 # Is the header compilable? 5688{ echo "$as_me:$LINENO: checking values.h usability" >&5 5689echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5690cat >conftest.$ac_ext <<_ACEOF 5691/* confdefs.h. */ 5692_ACEOF 5693cat confdefs.h >>conftest.$ac_ext 5694cat >>conftest.$ac_ext <<_ACEOF 5695/* end confdefs.h. */ 5696$ac_includes_default 5697#include <values.h> 5698_ACEOF 5699rm -f conftest.$ac_objext 5700if { (ac_try="$ac_compile" 5701case "(($ac_try" in 5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5703 *) ac_try_echo=$ac_try;; 5704esac 5705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5706 (eval "$ac_compile") 2>conftest.er1 5707 ac_status=$? 5708 grep -v '^ *+' conftest.er1 >conftest.err 5709 rm -f conftest.er1 5710 cat conftest.err >&5 5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5712 (exit $ac_status); } && { 5713 test -z "$ac_c_werror_flag" || 5714 test ! -s conftest.err 5715 } && test -s conftest.$ac_objext; then 5716 ac_header_compiler=yes 5717else 5718 echo "$as_me: failed program was:" >&5 5719sed 's/^/| /' conftest.$ac_ext >&5 5720 5721 ac_header_compiler=no 5722fi 5723 5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5725{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5726echo "${ECHO_T}$ac_header_compiler" >&6; } 5727 5728# Is the header present? 5729{ echo "$as_me:$LINENO: checking values.h presence" >&5 5730echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5731cat >conftest.$ac_ext <<_ACEOF 5732/* confdefs.h. */ 5733_ACEOF 5734cat confdefs.h >>conftest.$ac_ext 5735cat >>conftest.$ac_ext <<_ACEOF 5736/* end confdefs.h. */ 5737#include <values.h> 5738_ACEOF 5739if { (ac_try="$ac_cpp conftest.$ac_ext" 5740case "(($ac_try" in 5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5742 *) ac_try_echo=$ac_try;; 5743esac 5744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5746 ac_status=$? 5747 grep -v '^ *+' conftest.er1 >conftest.err 5748 rm -f conftest.er1 5749 cat conftest.err >&5 5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5751 (exit $ac_status); } >/dev/null && { 5752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5753 test ! -s conftest.err 5754 }; then 5755 ac_header_preproc=yes 5756else 5757 echo "$as_me: failed program was:" >&5 5758sed 's/^/| /' conftest.$ac_ext >&5 5759 5760 ac_header_preproc=no 5761fi 5762 5763rm -f conftest.err conftest.$ac_ext 5764{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5765echo "${ECHO_T}$ac_header_preproc" >&6; } 5766 5767# So? What about this header? 5768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5769 yes:no: ) 5770 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5771echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5772 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5773echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5774 ac_header_preproc=yes 5775 ;; 5776 no:yes:* ) 5777 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5778echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5779 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5780echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5781 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5782echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5783 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5784echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5785 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5786echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5787 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5788echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5789 5790 ;; 5791esac 5792{ echo "$as_me:$LINENO: checking for values.h" >&5 5793echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5794if test "${ac_cv_header_values_h+set}" = set; then 5795 echo $ECHO_N "(cached) $ECHO_C" >&6 5796else 5797 ac_cv_header_values_h=$ac_header_preproc 5798fi 5799{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5800echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5801 5802fi 5803if test $ac_cv_header_values_h = yes; then 5804 : 5805else 5806 5807cat >>confdefs.h <<\_ACEOF 5808#define NO_VALUES_H 1 5809_ACEOF 5810 5811fi 5812 5813 5814 if test "${ac_cv_header_limits_h+set}" = set; then 5815 { echo "$as_me:$LINENO: checking for limits.h" >&5 5816echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5817if test "${ac_cv_header_limits_h+set}" = set; then 5818 echo $ECHO_N "(cached) $ECHO_C" >&6 5819fi 5820{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5821echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5822else 5823 # Is the header compilable? 5824{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5825echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5826cat >conftest.$ac_ext <<_ACEOF 5827/* confdefs.h. */ 5828_ACEOF 5829cat confdefs.h >>conftest.$ac_ext 5830cat >>conftest.$ac_ext <<_ACEOF 5831/* end confdefs.h. */ 5832$ac_includes_default 5833#include <limits.h> 5834_ACEOF 5835rm -f conftest.$ac_objext 5836if { (ac_try="$ac_compile" 5837case "(($ac_try" in 5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5839 *) ac_try_echo=$ac_try;; 5840esac 5841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5842 (eval "$ac_compile") 2>conftest.er1 5843 ac_status=$? 5844 grep -v '^ *+' conftest.er1 >conftest.err 5845 rm -f conftest.er1 5846 cat conftest.err >&5 5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5848 (exit $ac_status); } && { 5849 test -z "$ac_c_werror_flag" || 5850 test ! -s conftest.err 5851 } && test -s conftest.$ac_objext; then 5852 ac_header_compiler=yes 5853else 5854 echo "$as_me: failed program was:" >&5 5855sed 's/^/| /' conftest.$ac_ext >&5 5856 5857 ac_header_compiler=no 5858fi 5859 5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5861{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5862echo "${ECHO_T}$ac_header_compiler" >&6; } 5863 5864# Is the header present? 5865{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5866echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5867cat >conftest.$ac_ext <<_ACEOF 5868/* confdefs.h. */ 5869_ACEOF 5870cat confdefs.h >>conftest.$ac_ext 5871cat >>conftest.$ac_ext <<_ACEOF 5872/* end confdefs.h. */ 5873#include <limits.h> 5874_ACEOF 5875if { (ac_try="$ac_cpp conftest.$ac_ext" 5876case "(($ac_try" in 5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5878 *) ac_try_echo=$ac_try;; 5879esac 5880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5882 ac_status=$? 5883 grep -v '^ *+' conftest.er1 >conftest.err 5884 rm -f conftest.er1 5885 cat conftest.err >&5 5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5887 (exit $ac_status); } >/dev/null && { 5888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5889 test ! -s conftest.err 5890 }; then 5891 ac_header_preproc=yes 5892else 5893 echo "$as_me: failed program was:" >&5 5894sed 's/^/| /' conftest.$ac_ext >&5 5895 5896 ac_header_preproc=no 5897fi 5898 5899rm -f conftest.err conftest.$ac_ext 5900{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5901echo "${ECHO_T}$ac_header_preproc" >&6; } 5902 5903# So? What about this header? 5904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5905 yes:no: ) 5906 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5907echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5908 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5909echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5910 ac_header_preproc=yes 5911 ;; 5912 no:yes:* ) 5913 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5914echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5915 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5916echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5917 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5918echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5919 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5920echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5921 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5922echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5923 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5924echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5925 5926 ;; 5927esac 5928{ echo "$as_me:$LINENO: checking for limits.h" >&5 5929echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5930if test "${ac_cv_header_limits_h+set}" = set; then 5931 echo $ECHO_N "(cached) $ECHO_C" >&6 5932else 5933 ac_cv_header_limits_h=$ac_header_preproc 5934fi 5935{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5936echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5937 5938fi 5939if test $ac_cv_header_limits_h = yes; then 5940 5941cat >>confdefs.h <<\_ACEOF 5942#define HAVE_LIMITS_H 1 5943_ACEOF 5944 5945else 5946 5947cat >>confdefs.h <<\_ACEOF 5948#define NO_LIMITS_H 1 5949_ACEOF 5950 5951fi 5952 5953 5954 if test "${ac_cv_header_stdlib_h+set}" = set; then 5955 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 5956echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5957if test "${ac_cv_header_stdlib_h+set}" = set; then 5958 echo $ECHO_N "(cached) $ECHO_C" >&6 5959fi 5960{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5961echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5962else 5963 # Is the header compilable? 5964{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5965echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 5966cat >conftest.$ac_ext <<_ACEOF 5967/* confdefs.h. */ 5968_ACEOF 5969cat confdefs.h >>conftest.$ac_ext 5970cat >>conftest.$ac_ext <<_ACEOF 5971/* end confdefs.h. */ 5972$ac_includes_default 5973#include <stdlib.h> 5974_ACEOF 5975rm -f conftest.$ac_objext 5976if { (ac_try="$ac_compile" 5977case "(($ac_try" in 5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5979 *) ac_try_echo=$ac_try;; 5980esac 5981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5982 (eval "$ac_compile") 2>conftest.er1 5983 ac_status=$? 5984 grep -v '^ *+' conftest.er1 >conftest.err 5985 rm -f conftest.er1 5986 cat conftest.err >&5 5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5988 (exit $ac_status); } && { 5989 test -z "$ac_c_werror_flag" || 5990 test ! -s conftest.err 5991 } && test -s conftest.$ac_objext; then 5992 ac_header_compiler=yes 5993else 5994 echo "$as_me: failed program was:" >&5 5995sed 's/^/| /' conftest.$ac_ext >&5 5996 5997 ac_header_compiler=no 5998fi 5999 6000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6001{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6002echo "${ECHO_T}$ac_header_compiler" >&6; } 6003 6004# Is the header present? 6005{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 6006echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 6007cat >conftest.$ac_ext <<_ACEOF 6008/* confdefs.h. */ 6009_ACEOF 6010cat confdefs.h >>conftest.$ac_ext 6011cat >>conftest.$ac_ext <<_ACEOF 6012/* end confdefs.h. */ 6013#include <stdlib.h> 6014_ACEOF 6015if { (ac_try="$ac_cpp conftest.$ac_ext" 6016case "(($ac_try" in 6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6018 *) ac_try_echo=$ac_try;; 6019esac 6020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6022 ac_status=$? 6023 grep -v '^ *+' conftest.er1 >conftest.err 6024 rm -f conftest.er1 6025 cat conftest.err >&5 6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6027 (exit $ac_status); } >/dev/null && { 6028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6029 test ! -s conftest.err 6030 }; then 6031 ac_header_preproc=yes 6032else 6033 echo "$as_me: failed program was:" >&5 6034sed 's/^/| /' conftest.$ac_ext >&5 6035 6036 ac_header_preproc=no 6037fi 6038 6039rm -f conftest.err conftest.$ac_ext 6040{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6041echo "${ECHO_T}$ac_header_preproc" >&6; } 6042 6043# So? What about this header? 6044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6045 yes:no: ) 6046 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 6047echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6048 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 6049echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 6050 ac_header_preproc=yes 6051 ;; 6052 no:yes:* ) 6053 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 6054echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 6055 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 6056echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 6057 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 6058echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 6059 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 6060echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 6061 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 6062echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 6063 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 6064echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 6065 6066 ;; 6067esac 6068{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 6069echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6070if test "${ac_cv_header_stdlib_h+set}" = set; then 6071 echo $ECHO_N "(cached) $ECHO_C" >&6 6072else 6073 ac_cv_header_stdlib_h=$ac_header_preproc 6074fi 6075{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6076echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6077 6078fi 6079if test $ac_cv_header_stdlib_h = yes; then 6080 tcl_ok=1 6081else 6082 tcl_ok=0 6083fi 6084 6085 6086 cat >conftest.$ac_ext <<_ACEOF 6087/* confdefs.h. */ 6088_ACEOF 6089cat confdefs.h >>conftest.$ac_ext 6090cat >>conftest.$ac_ext <<_ACEOF 6091/* end confdefs.h. */ 6092#include <stdlib.h> 6093 6094_ACEOF 6095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6096 $EGREP "strtol" >/dev/null 2>&1; then 6097 : 6098else 6099 tcl_ok=0 6100fi 6101rm -f conftest* 6102 6103 cat >conftest.$ac_ext <<_ACEOF 6104/* confdefs.h. */ 6105_ACEOF 6106cat confdefs.h >>conftest.$ac_ext 6107cat >>conftest.$ac_ext <<_ACEOF 6108/* end confdefs.h. */ 6109#include <stdlib.h> 6110 6111_ACEOF 6112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6113 $EGREP "strtoul" >/dev/null 2>&1; then 6114 : 6115else 6116 tcl_ok=0 6117fi 6118rm -f conftest* 6119 6120 cat >conftest.$ac_ext <<_ACEOF 6121/* confdefs.h. */ 6122_ACEOF 6123cat confdefs.h >>conftest.$ac_ext 6124cat >>conftest.$ac_ext <<_ACEOF 6125/* end confdefs.h. */ 6126#include <stdlib.h> 6127 6128_ACEOF 6129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6130 $EGREP "strtod" >/dev/null 2>&1; then 6131 : 6132else 6133 tcl_ok=0 6134fi 6135rm -f conftest* 6136 6137 if test $tcl_ok = 0; then 6138 6139cat >>confdefs.h <<\_ACEOF 6140#define NO_STDLIB_H 1 6141_ACEOF 6142 6143 fi 6144 if test "${ac_cv_header_string_h+set}" = set; then 6145 { echo "$as_me:$LINENO: checking for string.h" >&5 6146echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6147if test "${ac_cv_header_string_h+set}" = set; then 6148 echo $ECHO_N "(cached) $ECHO_C" >&6 6149fi 6150{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6151echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6152else 6153 # Is the header compilable? 6154{ echo "$as_me:$LINENO: checking string.h usability" >&5 6155echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6156cat >conftest.$ac_ext <<_ACEOF 6157/* confdefs.h. */ 6158_ACEOF 6159cat confdefs.h >>conftest.$ac_ext 6160cat >>conftest.$ac_ext <<_ACEOF 6161/* end confdefs.h. */ 6162$ac_includes_default 6163#include <string.h> 6164_ACEOF 6165rm -f conftest.$ac_objext 6166if { (ac_try="$ac_compile" 6167case "(($ac_try" in 6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6169 *) ac_try_echo=$ac_try;; 6170esac 6171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6172 (eval "$ac_compile") 2>conftest.er1 6173 ac_status=$? 6174 grep -v '^ *+' conftest.er1 >conftest.err 6175 rm -f conftest.er1 6176 cat conftest.err >&5 6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6178 (exit $ac_status); } && { 6179 test -z "$ac_c_werror_flag" || 6180 test ! -s conftest.err 6181 } && test -s conftest.$ac_objext; then 6182 ac_header_compiler=yes 6183else 6184 echo "$as_me: failed program was:" >&5 6185sed 's/^/| /' conftest.$ac_ext >&5 6186 6187 ac_header_compiler=no 6188fi 6189 6190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6191{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6192echo "${ECHO_T}$ac_header_compiler" >&6; } 6193 6194# Is the header present? 6195{ echo "$as_me:$LINENO: checking string.h presence" >&5 6196echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6197cat >conftest.$ac_ext <<_ACEOF 6198/* confdefs.h. */ 6199_ACEOF 6200cat confdefs.h >>conftest.$ac_ext 6201cat >>conftest.$ac_ext <<_ACEOF 6202/* end confdefs.h. */ 6203#include <string.h> 6204_ACEOF 6205if { (ac_try="$ac_cpp conftest.$ac_ext" 6206case "(($ac_try" in 6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6208 *) ac_try_echo=$ac_try;; 6209esac 6210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6212 ac_status=$? 6213 grep -v '^ *+' conftest.er1 >conftest.err 6214 rm -f conftest.er1 6215 cat conftest.err >&5 6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6217 (exit $ac_status); } >/dev/null && { 6218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6219 test ! -s conftest.err 6220 }; then 6221 ac_header_preproc=yes 6222else 6223 echo "$as_me: failed program was:" >&5 6224sed 's/^/| /' conftest.$ac_ext >&5 6225 6226 ac_header_preproc=no 6227fi 6228 6229rm -f conftest.err conftest.$ac_ext 6230{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6231echo "${ECHO_T}$ac_header_preproc" >&6; } 6232 6233# So? What about this header? 6234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6235 yes:no: ) 6236 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6237echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6238 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6239echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6240 ac_header_preproc=yes 6241 ;; 6242 no:yes:* ) 6243 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6244echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6245 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6246echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6247 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6248echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6249 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6250echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6251 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6252echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6253 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6254echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6255 6256 ;; 6257esac 6258{ echo "$as_me:$LINENO: checking for string.h" >&5 6259echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6260if test "${ac_cv_header_string_h+set}" = set; then 6261 echo $ECHO_N "(cached) $ECHO_C" >&6 6262else 6263 ac_cv_header_string_h=$ac_header_preproc 6264fi 6265{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6266echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6267 6268fi 6269if test $ac_cv_header_string_h = yes; then 6270 tcl_ok=1 6271else 6272 tcl_ok=0 6273fi 6274 6275 6276 cat >conftest.$ac_ext <<_ACEOF 6277/* confdefs.h. */ 6278_ACEOF 6279cat confdefs.h >>conftest.$ac_ext 6280cat >>conftest.$ac_ext <<_ACEOF 6281/* end confdefs.h. */ 6282#include <string.h> 6283 6284_ACEOF 6285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6286 $EGREP "strstr" >/dev/null 2>&1; then 6287 : 6288else 6289 tcl_ok=0 6290fi 6291rm -f conftest* 6292 6293 cat >conftest.$ac_ext <<_ACEOF 6294/* confdefs.h. */ 6295_ACEOF 6296cat confdefs.h >>conftest.$ac_ext 6297cat >>conftest.$ac_ext <<_ACEOF 6298/* end confdefs.h. */ 6299#include <string.h> 6300 6301_ACEOF 6302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6303 $EGREP "strerror" >/dev/null 2>&1; then 6304 : 6305else 6306 tcl_ok=0 6307fi 6308rm -f conftest* 6309 6310 6311 # See also memmove check below for a place where NO_STRING_H can be 6312 # set and why. 6313 6314 if test $tcl_ok = 0; then 6315 6316cat >>confdefs.h <<\_ACEOF 6317#define NO_STRING_H 1 6318_ACEOF 6319 6320 fi 6321 6322 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6323 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6324echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6325if test "${ac_cv_header_sys_wait_h+set}" = set; then 6326 echo $ECHO_N "(cached) $ECHO_C" >&6 6327fi 6328{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6329echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6330else 6331 # Is the header compilable? 6332{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6333echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6334cat >conftest.$ac_ext <<_ACEOF 6335/* confdefs.h. */ 6336_ACEOF 6337cat confdefs.h >>conftest.$ac_ext 6338cat >>conftest.$ac_ext <<_ACEOF 6339/* end confdefs.h. */ 6340$ac_includes_default 6341#include <sys/wait.h> 6342_ACEOF 6343rm -f conftest.$ac_objext 6344if { (ac_try="$ac_compile" 6345case "(($ac_try" in 6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6347 *) ac_try_echo=$ac_try;; 6348esac 6349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6350 (eval "$ac_compile") 2>conftest.er1 6351 ac_status=$? 6352 grep -v '^ *+' conftest.er1 >conftest.err 6353 rm -f conftest.er1 6354 cat conftest.err >&5 6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6356 (exit $ac_status); } && { 6357 test -z "$ac_c_werror_flag" || 6358 test ! -s conftest.err 6359 } && test -s conftest.$ac_objext; then 6360 ac_header_compiler=yes 6361else 6362 echo "$as_me: failed program was:" >&5 6363sed 's/^/| /' conftest.$ac_ext >&5 6364 6365 ac_header_compiler=no 6366fi 6367 6368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6369{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6370echo "${ECHO_T}$ac_header_compiler" >&6; } 6371 6372# Is the header present? 6373{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6374echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6375cat >conftest.$ac_ext <<_ACEOF 6376/* confdefs.h. */ 6377_ACEOF 6378cat confdefs.h >>conftest.$ac_ext 6379cat >>conftest.$ac_ext <<_ACEOF 6380/* end confdefs.h. */ 6381#include <sys/wait.h> 6382_ACEOF 6383if { (ac_try="$ac_cpp conftest.$ac_ext" 6384case "(($ac_try" in 6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6386 *) ac_try_echo=$ac_try;; 6387esac 6388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6390 ac_status=$? 6391 grep -v '^ *+' conftest.er1 >conftest.err 6392 rm -f conftest.er1 6393 cat conftest.err >&5 6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6395 (exit $ac_status); } >/dev/null && { 6396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6397 test ! -s conftest.err 6398 }; then 6399 ac_header_preproc=yes 6400else 6401 echo "$as_me: failed program was:" >&5 6402sed 's/^/| /' conftest.$ac_ext >&5 6403 6404 ac_header_preproc=no 6405fi 6406 6407rm -f conftest.err conftest.$ac_ext 6408{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6409echo "${ECHO_T}$ac_header_preproc" >&6; } 6410 6411# So? What about this header? 6412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6413 yes:no: ) 6414 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6415echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6416 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6417echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6418 ac_header_preproc=yes 6419 ;; 6420 no:yes:* ) 6421 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6422echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6423 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6424echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6425 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6426echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6427 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6428echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6429 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6430echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6431 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6432echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6433 6434 ;; 6435esac 6436{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6437echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6438if test "${ac_cv_header_sys_wait_h+set}" = set; then 6439 echo $ECHO_N "(cached) $ECHO_C" >&6 6440else 6441 ac_cv_header_sys_wait_h=$ac_header_preproc 6442fi 6443{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6444echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6445 6446fi 6447if test $ac_cv_header_sys_wait_h = yes; then 6448 : 6449else 6450 6451cat >>confdefs.h <<\_ACEOF 6452#define NO_SYS_WAIT_H 1 6453_ACEOF 6454 6455fi 6456 6457 6458 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6459 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6460echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6461if test "${ac_cv_header_dlfcn_h+set}" = set; then 6462 echo $ECHO_N "(cached) $ECHO_C" >&6 6463fi 6464{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6465echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6466else 6467 # Is the header compilable? 6468{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6469echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6470cat >conftest.$ac_ext <<_ACEOF 6471/* confdefs.h. */ 6472_ACEOF 6473cat confdefs.h >>conftest.$ac_ext 6474cat >>conftest.$ac_ext <<_ACEOF 6475/* end confdefs.h. */ 6476$ac_includes_default 6477#include <dlfcn.h> 6478_ACEOF 6479rm -f conftest.$ac_objext 6480if { (ac_try="$ac_compile" 6481case "(($ac_try" in 6482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6483 *) ac_try_echo=$ac_try;; 6484esac 6485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6486 (eval "$ac_compile") 2>conftest.er1 6487 ac_status=$? 6488 grep -v '^ *+' conftest.er1 >conftest.err 6489 rm -f conftest.er1 6490 cat conftest.err >&5 6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6492 (exit $ac_status); } && { 6493 test -z "$ac_c_werror_flag" || 6494 test ! -s conftest.err 6495 } && test -s conftest.$ac_objext; then 6496 ac_header_compiler=yes 6497else 6498 echo "$as_me: failed program was:" >&5 6499sed 's/^/| /' conftest.$ac_ext >&5 6500 6501 ac_header_compiler=no 6502fi 6503 6504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6505{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6506echo "${ECHO_T}$ac_header_compiler" >&6; } 6507 6508# Is the header present? 6509{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6510echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6511cat >conftest.$ac_ext <<_ACEOF 6512/* confdefs.h. */ 6513_ACEOF 6514cat confdefs.h >>conftest.$ac_ext 6515cat >>conftest.$ac_ext <<_ACEOF 6516/* end confdefs.h. */ 6517#include <dlfcn.h> 6518_ACEOF 6519if { (ac_try="$ac_cpp conftest.$ac_ext" 6520case "(($ac_try" in 6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6522 *) ac_try_echo=$ac_try;; 6523esac 6524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6526 ac_status=$? 6527 grep -v '^ *+' conftest.er1 >conftest.err 6528 rm -f conftest.er1 6529 cat conftest.err >&5 6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6531 (exit $ac_status); } >/dev/null && { 6532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6533 test ! -s conftest.err 6534 }; then 6535 ac_header_preproc=yes 6536else 6537 echo "$as_me: failed program was:" >&5 6538sed 's/^/| /' conftest.$ac_ext >&5 6539 6540 ac_header_preproc=no 6541fi 6542 6543rm -f conftest.err conftest.$ac_ext 6544{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6545echo "${ECHO_T}$ac_header_preproc" >&6; } 6546 6547# So? What about this header? 6548case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6549 yes:no: ) 6550 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6551echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6552 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6553echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6554 ac_header_preproc=yes 6555 ;; 6556 no:yes:* ) 6557 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6558echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6559 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6560echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6561 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6562echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6563 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6564echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6565 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6566echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6567 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6568echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6569 6570 ;; 6571esac 6572{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6573echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6574if test "${ac_cv_header_dlfcn_h+set}" = set; then 6575 echo $ECHO_N "(cached) $ECHO_C" >&6 6576else 6577 ac_cv_header_dlfcn_h=$ac_header_preproc 6578fi 6579{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6580echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6581 6582fi 6583if test $ac_cv_header_dlfcn_h = yes; then 6584 : 6585else 6586 6587cat >>confdefs.h <<\_ACEOF 6588#define NO_DLFCN_H 1 6589_ACEOF 6590 6591fi 6592 6593 6594 6595 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6596 6597for ac_header in sys/param.h 6598do 6599as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6600if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6601 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6604 echo $ECHO_N "(cached) $ECHO_C" >&6 6605fi 6606ac_res=`eval echo '${'$as_ac_Header'}'` 6607 { echo "$as_me:$LINENO: result: $ac_res" >&5 6608echo "${ECHO_T}$ac_res" >&6; } 6609else 6610 # Is the header compilable? 6611{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6612echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6613cat >conftest.$ac_ext <<_ACEOF 6614/* confdefs.h. */ 6615_ACEOF 6616cat confdefs.h >>conftest.$ac_ext 6617cat >>conftest.$ac_ext <<_ACEOF 6618/* end confdefs.h. */ 6619$ac_includes_default 6620#include <$ac_header> 6621_ACEOF 6622rm -f conftest.$ac_objext 6623if { (ac_try="$ac_compile" 6624case "(($ac_try" in 6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6626 *) ac_try_echo=$ac_try;; 6627esac 6628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6629 (eval "$ac_compile") 2>conftest.er1 6630 ac_status=$? 6631 grep -v '^ *+' conftest.er1 >conftest.err 6632 rm -f conftest.er1 6633 cat conftest.err >&5 6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6635 (exit $ac_status); } && { 6636 test -z "$ac_c_werror_flag" || 6637 test ! -s conftest.err 6638 } && test -s conftest.$ac_objext; then 6639 ac_header_compiler=yes 6640else 6641 echo "$as_me: failed program was:" >&5 6642sed 's/^/| /' conftest.$ac_ext >&5 6643 6644 ac_header_compiler=no 6645fi 6646 6647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6648{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6649echo "${ECHO_T}$ac_header_compiler" >&6; } 6650 6651# Is the header present? 6652{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6654cat >conftest.$ac_ext <<_ACEOF 6655/* confdefs.h. */ 6656_ACEOF 6657cat confdefs.h >>conftest.$ac_ext 6658cat >>conftest.$ac_ext <<_ACEOF 6659/* end confdefs.h. */ 6660#include <$ac_header> 6661_ACEOF 6662if { (ac_try="$ac_cpp conftest.$ac_ext" 6663case "(($ac_try" in 6664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6665 *) ac_try_echo=$ac_try;; 6666esac 6667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6669 ac_status=$? 6670 grep -v '^ *+' conftest.er1 >conftest.err 6671 rm -f conftest.er1 6672 cat conftest.err >&5 6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6674 (exit $ac_status); } >/dev/null && { 6675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6676 test ! -s conftest.err 6677 }; then 6678 ac_header_preproc=yes 6679else 6680 echo "$as_me: failed program was:" >&5 6681sed 's/^/| /' conftest.$ac_ext >&5 6682 6683 ac_header_preproc=no 6684fi 6685 6686rm -f conftest.err conftest.$ac_ext 6687{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6688echo "${ECHO_T}$ac_header_preproc" >&6; } 6689 6690# So? What about this header? 6691case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6692 yes:no: ) 6693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6694echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6696echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6697 ac_header_preproc=yes 6698 ;; 6699 no:yes:* ) 6700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6701echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6703echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6705echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6707echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6709echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6711echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6712 6713 ;; 6714esac 6715{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6718 echo $ECHO_N "(cached) $ECHO_C" >&6 6719else 6720 eval "$as_ac_Header=\$ac_header_preproc" 6721fi 6722ac_res=`eval echo '${'$as_ac_Header'}'` 6723 { echo "$as_me:$LINENO: result: $ac_res" >&5 6724echo "${ECHO_T}$ac_res" >&6; } 6725 6726fi 6727if test `eval echo '${'$as_ac_Header'}'` = yes; then 6728 cat >>confdefs.h <<_ACEOF 6729#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6730_ACEOF 6731 6732fi 6733 6734done 6735 6736 6737 # Let the user call this, because if it triggers, they will 6738 # need a compat/strtod.c that is correct. Users can also 6739 # use Tcl_GetDouble(FromObj) instead. 6740 #TEA_BUGGY_STRTOD 6741 fi 6742 6743 6744#----------------------------------------------------------------------- 6745# Specify the C source files to compile in TEA_ADD_SOURCES, 6746# public headers that need to be installed in TEA_ADD_HEADERS, 6747# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6748# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6749# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6750# and PKG_TCL_SOURCES. 6751#----------------------------------------------------------------------- 6752 6753 6754 vars="init.c registry.c unstack.c load.c crypt.c" 6755 for i in $vars; do 6756 case $i in 6757 \$*) 6758 # allow $-var names 6759 PKG_SOURCES="$PKG_SOURCES $i" 6760 PKG_OBJECTS="$PKG_OBJECTS $i" 6761 ;; 6762 *) 6763 # check for existence - allows for generic/win/unix VPATH 6764 # To add more dirs here (like 'src'), you have to update VPATH 6765 # in Makefile.in as well 6766 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6767 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6768 ; then 6769 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6770echo "$as_me: error: could not find source file '$i'" >&2;} 6771 { (exit 1); exit 1; }; } 6772 fi 6773 PKG_SOURCES="$PKG_SOURCES $i" 6774 # this assumes it is in a VPATH dir 6775 i=`basename $i` 6776 # handle user calling this before or after TEA_SETUP_COMPILER 6777 if test x"${OBJEXT}" != x ; then 6778 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6779 else 6780 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6781 fi 6782 PKG_OBJECTS="$PKG_OBJECTS $j" 6783 ;; 6784 esac 6785 done 6786 6787 6788 6789 6790 6791 vars="convert.c util.c ref_opt.c" 6792 for i in $vars; do 6793 case $i in 6794 \$*) 6795 # allow $-var names 6796 PKG_SOURCES="$PKG_SOURCES $i" 6797 PKG_OBJECTS="$PKG_OBJECTS $i" 6798 ;; 6799 *) 6800 # check for existence - allows for generic/win/unix VPATH 6801 # To add more dirs here (like 'src'), you have to update VPATH 6802 # in Makefile.in as well 6803 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6804 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6805 ; then 6806 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6807echo "$as_me: error: could not find source file '$i'" >&2;} 6808 { (exit 1); exit 1; }; } 6809 fi 6810 PKG_SOURCES="$PKG_SOURCES $i" 6811 # this assumes it is in a VPATH dir 6812 i=`basename $i` 6813 # handle user calling this before or after TEA_SETUP_COMPILER 6814 if test x"${OBJEXT}" != x ; then 6815 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6816 else 6817 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6818 fi 6819 PKG_OBJECTS="$PKG_OBJECTS $j" 6820 ;; 6821 esac 6822 done 6823 6824 6825 6826 6827 vars="bincode.c hexcode.c octcode.c" 6828 for i in $vars; do 6829 case $i in 6830 \$*) 6831 # allow $-var names 6832 PKG_SOURCES="$PKG_SOURCES $i" 6833 PKG_OBJECTS="$PKG_OBJECTS $i" 6834 ;; 6835 *) 6836 # check for existence - allows for generic/win/unix VPATH 6837 # To add more dirs here (like 'src'), you have to update VPATH 6838 # in Makefile.in as well 6839 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6840 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6841 ; then 6842 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6843echo "$as_me: error: could not find source file '$i'" >&2;} 6844 { (exit 1); exit 1; }; } 6845 fi 6846 PKG_SOURCES="$PKG_SOURCES $i" 6847 # this assumes it is in a VPATH dir 6848 i=`basename $i` 6849 # handle user calling this before or after TEA_SETUP_COMPILER 6850 if test x"${OBJEXT}" != x ; then 6851 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6852 else 6853 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6854 fi 6855 PKG_OBJECTS="$PKG_OBJECTS $j" 6856 ;; 6857 esac 6858 done 6859 6860 6861 6862 6863 vars="uucode.c b64code.c asc85code.c" 6864 for i in $vars; do 6865 case $i in 6866 \$*) 6867 # allow $-var names 6868 PKG_SOURCES="$PKG_SOURCES $i" 6869 PKG_OBJECTS="$PKG_OBJECTS $i" 6870 ;; 6871 *) 6872 # check for existence - allows for generic/win/unix VPATH 6873 # To add more dirs here (like 'src'), you have to update VPATH 6874 # in Makefile.in as well 6875 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6876 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6877 ; then 6878 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6879echo "$as_me: error: could not find source file '$i'" >&2;} 6880 { (exit 1); exit 1; }; } 6881 fi 6882 PKG_SOURCES="$PKG_SOURCES $i" 6883 # this assumes it is in a VPATH dir 6884 i=`basename $i` 6885 # handle user calling this before or after TEA_SETUP_COMPILER 6886 if test x"${OBJEXT}" != x ; then 6887 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6888 else 6889 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6890 fi 6891 PKG_OBJECTS="$PKG_OBJECTS $j" 6892 ;; 6893 esac 6894 done 6895 6896 6897 6898 6899 vars="otpcode.c qpcode.c reflect.c" 6900 for i in $vars; do 6901 case $i in 6902 \$*) 6903 # allow $-var names 6904 PKG_SOURCES="$PKG_SOURCES $i" 6905 PKG_OBJECTS="$PKG_OBJECTS $i" 6906 ;; 6907 *) 6908 # check for existence - allows for generic/win/unix VPATH 6909 # To add more dirs here (like 'src'), you have to update VPATH 6910 # in Makefile.in as well 6911 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6912 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6913 ; then 6914 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6915echo "$as_me: error: could not find source file '$i'" >&2;} 6916 { (exit 1); exit 1; }; } 6917 fi 6918 PKG_SOURCES="$PKG_SOURCES $i" 6919 # this assumes it is in a VPATH dir 6920 i=`basename $i` 6921 # handle user calling this before or after TEA_SETUP_COMPILER 6922 if test x"${OBJEXT}" != x ; then 6923 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6924 else 6925 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6926 fi 6927 PKG_OBJECTS="$PKG_OBJECTS $j" 6928 ;; 6929 esac 6930 done 6931 6932 6933 6934 6935 6936 vars="dig_opt.c digest.c" 6937 for i in $vars; do 6938 case $i in 6939 \$*) 6940 # allow $-var names 6941 PKG_SOURCES="$PKG_SOURCES $i" 6942 PKG_OBJECTS="$PKG_OBJECTS $i" 6943 ;; 6944 *) 6945 # check for existence - allows for generic/win/unix VPATH 6946 # To add more dirs here (like 'src'), you have to update VPATH 6947 # in Makefile.in as well 6948 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6949 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6950 ; then 6951 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6952echo "$as_me: error: could not find source file '$i'" >&2;} 6953 { (exit 1); exit 1; }; } 6954 fi 6955 PKG_SOURCES="$PKG_SOURCES $i" 6956 # this assumes it is in a VPATH dir 6957 i=`basename $i` 6958 # handle user calling this before or after TEA_SETUP_COMPILER 6959 if test x"${OBJEXT}" != x ; then 6960 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6961 else 6962 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6963 fi 6964 PKG_OBJECTS="$PKG_OBJECTS $j" 6965 ;; 6966 esac 6967 done 6968 6969 6970 6971 6972 vars="crc.c crc_zlib.c adler.c" 6973 for i in $vars; do 6974 case $i in 6975 \$*) 6976 # allow $-var names 6977 PKG_SOURCES="$PKG_SOURCES $i" 6978 PKG_OBJECTS="$PKG_OBJECTS $i" 6979 ;; 6980 *) 6981 # check for existence - allows for generic/win/unix VPATH 6982 # To add more dirs here (like 'src'), you have to update VPATH 6983 # in Makefile.in as well 6984 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6985 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6986 ; then 6987 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6988echo "$as_me: error: could not find source file '$i'" >&2;} 6989 { (exit 1); exit 1; }; } 6990 fi 6991 PKG_SOURCES="$PKG_SOURCES $i" 6992 # this assumes it is in a VPATH dir 6993 i=`basename $i` 6994 # handle user calling this before or after TEA_SETUP_COMPILER 6995 if test x"${OBJEXT}" != x ; then 6996 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6997 else 6998 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6999 fi 7000 PKG_OBJECTS="$PKG_OBJECTS $j" 7001 ;; 7002 esac 7003 done 7004 7005 7006 7007 7008 vars="md5dig.c haval.c sha.c md2.c sha1.c" 7009 for i in $vars; do 7010 case $i in 7011 \$*) 7012 # allow $-var names 7013 PKG_SOURCES="$PKG_SOURCES $i" 7014 PKG_OBJECTS="$PKG_OBJECTS $i" 7015 ;; 7016 *) 7017 # check for existence - allows for generic/win/unix VPATH 7018 # To add more dirs here (like 'src'), you have to update VPATH 7019 # in Makefile.in as well 7020 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7021 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7022 ; then 7023 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7024echo "$as_me: error: could not find source file '$i'" >&2;} 7025 { (exit 1); exit 1; }; } 7026 fi 7027 PKG_SOURCES="$PKG_SOURCES $i" 7028 # this assumes it is in a VPATH dir 7029 i=`basename $i` 7030 # handle user calling this before or after TEA_SETUP_COMPILER 7031 if test x"${OBJEXT}" != x ; then 7032 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7033 else 7034 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7035 fi 7036 PKG_OBJECTS="$PKG_OBJECTS $j" 7037 ;; 7038 esac 7039 done 7040 7041 7042 7043 7044 vars="rmd160.c rmd128.c" 7045 for i in $vars; do 7046 case $i in 7047 \$*) 7048 # allow $-var names 7049 PKG_SOURCES="$PKG_SOURCES $i" 7050 PKG_OBJECTS="$PKG_OBJECTS $i" 7051 ;; 7052 *) 7053 # check for existence - allows for generic/win/unix VPATH 7054 # To add more dirs here (like 'src'), you have to update VPATH 7055 # in Makefile.in as well 7056 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7057 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7058 ; then 7059 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7060echo "$as_me: error: could not find source file '$i'" >&2;} 7061 { (exit 1); exit 1; }; } 7062 fi 7063 PKG_SOURCES="$PKG_SOURCES $i" 7064 # this assumes it is in a VPATH dir 7065 i=`basename $i` 7066 # handle user calling this before or after TEA_SETUP_COMPILER 7067 if test x"${OBJEXT}" != x ; then 7068 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7069 else 7070 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7071 fi 7072 PKG_OBJECTS="$PKG_OBJECTS $j" 7073 ;; 7074 esac 7075 done 7076 7077 7078 7079 7080 vars="otpmd5.c otpsha1.c" 7081 for i in $vars; do 7082 case $i in 7083 \$*) 7084 # allow $-var names 7085 PKG_SOURCES="$PKG_SOURCES $i" 7086 PKG_OBJECTS="$PKG_OBJECTS $i" 7087 ;; 7088 *) 7089 # check for existence - allows for generic/win/unix VPATH 7090 # To add more dirs here (like 'src'), you have to update VPATH 7091 # in Makefile.in as well 7092 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7093 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7094 ; then 7095 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7096echo "$as_me: error: could not find source file '$i'" >&2;} 7097 { (exit 1); exit 1; }; } 7098 fi 7099 PKG_SOURCES="$PKG_SOURCES $i" 7100 # this assumes it is in a VPATH dir 7101 i=`basename $i` 7102 # handle user calling this before or after TEA_SETUP_COMPILER 7103 if test x"${OBJEXT}" != x ; then 7104 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7105 else 7106 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7107 fi 7108 PKG_OBJECTS="$PKG_OBJECTS $j" 7109 ;; 7110 esac 7111 done 7112 7113 7114 7115 7116 7117 vars="md2d.c" 7118 for i in $vars; do 7119 case $i in 7120 \$*) 7121 # allow $-var names 7122 PKG_SOURCES="$PKG_SOURCES $i" 7123 PKG_OBJECTS="$PKG_OBJECTS $i" 7124 ;; 7125 *) 7126 # check for existence - allows for generic/win/unix VPATH 7127 # To add more dirs here (like 'src'), you have to update VPATH 7128 # in Makefile.in as well 7129 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7130 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7131 ; then 7132 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7133echo "$as_me: error: could not find source file '$i'" >&2;} 7134 { (exit 1); exit 1; }; } 7135 fi 7136 PKG_SOURCES="$PKG_SOURCES $i" 7137 # this assumes it is in a VPATH dir 7138 i=`basename $i` 7139 # handle user calling this before or after TEA_SETUP_COMPILER 7140 if test x"${OBJEXT}" != x ; then 7141 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7142 else 7143 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7144 fi 7145 PKG_OBJECTS="$PKG_OBJECTS $j" 7146 ;; 7147 esac 7148 done 7149 7150 7151 7152 7153 vars="rs_ecc.c" 7154 for i in $vars; do 7155 case $i in 7156 \$*) 7157 # allow $-var names 7158 PKG_SOURCES="$PKG_SOURCES $i" 7159 PKG_OBJECTS="$PKG_OBJECTS $i" 7160 ;; 7161 *) 7162 # check for existence - allows for generic/win/unix VPATH 7163 # To add more dirs here (like 'src'), you have to update VPATH 7164 # in Makefile.in as well 7165 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7166 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7167 ; then 7168 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7169echo "$as_me: error: could not find source file '$i'" >&2;} 7170 { (exit 1); exit 1; }; } 7171 fi 7172 PKG_SOURCES="$PKG_SOURCES $i" 7173 # this assumes it is in a VPATH dir 7174 i=`basename $i` 7175 # handle user calling this before or after TEA_SETUP_COMPILER 7176 if test x"${OBJEXT}" != x ; then 7177 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7178 else 7179 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7180 fi 7181 PKG_OBJECTS="$PKG_OBJECTS $j" 7182 ;; 7183 esac 7184 done 7185 7186 7187 7188 7189 vars="zip_opt.c zip.c bz2_opt.c bz2.c" 7190 for i in $vars; do 7191 case $i in 7192 \$*) 7193 # allow $-var names 7194 PKG_SOURCES="$PKG_SOURCES $i" 7195 PKG_OBJECTS="$PKG_OBJECTS $i" 7196 ;; 7197 *) 7198 # check for existence - allows for generic/win/unix VPATH 7199 # To add more dirs here (like 'src'), you have to update VPATH 7200 # in Makefile.in as well 7201 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7202 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7203 ; then 7204 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7205echo "$as_me: error: could not find source file '$i'" >&2;} 7206 { (exit 1); exit 1; }; } 7207 fi 7208 PKG_SOURCES="$PKG_SOURCES $i" 7209 # this assumes it is in a VPATH dir 7210 i=`basename $i` 7211 # handle user calling this before or after TEA_SETUP_COMPILER 7212 if test x"${OBJEXT}" != x ; then 7213 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7214 else 7215 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7216 fi 7217 PKG_OBJECTS="$PKG_OBJECTS $j" 7218 ;; 7219 esac 7220 done 7221 7222 7223 7224 7225 7226 vars="trfStubInit.c" 7227 for i in $vars; do 7228 case $i in 7229 \$*) 7230 # allow $-var names 7231 PKG_SOURCES="$PKG_SOURCES $i" 7232 PKG_OBJECTS="$PKG_OBJECTS $i" 7233 ;; 7234 *) 7235 # check for existence - allows for generic/win/unix VPATH 7236 # To add more dirs here (like 'src'), you have to update VPATH 7237 # in Makefile.in as well 7238 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7239 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7240 ; then 7241 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7242echo "$as_me: error: could not find source file '$i'" >&2;} 7243 { (exit 1); exit 1; }; } 7244 fi 7245 PKG_SOURCES="$PKG_SOURCES $i" 7246 # this assumes it is in a VPATH dir 7247 i=`basename $i` 7248 # handle user calling this before or after TEA_SETUP_COMPILER 7249 if test x"${OBJEXT}" != x ; then 7250 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7251 else 7252 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7253 fi 7254 PKG_OBJECTS="$PKG_OBJECTS $j" 7255 ;; 7256 esac 7257 done 7258 7259 7260 7261 7262 vars="generic/transform.h generic/trfDecls.h" 7263 for i in $vars; do 7264 # check for existence, be strict because it is installed 7265 if test ! -f "${srcdir}/$i" ; then 7266 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 7267echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 7268 { (exit 1); exit 1; }; } 7269 fi 7270 PKG_HEADERS="$PKG_HEADERS $i" 7271 done 7272 7273 7274 7275 7276 vars="-I\"\${srcdir}\"" 7277 for i in $vars; do 7278 PKG_INCLUDES="$PKG_INCLUDES $i" 7279 done 7280 7281 7282 7283 vars="-I\"\${srcdir}/generic\"" 7284 for i in $vars; do 7285 PKG_INCLUDES="$PKG_INCLUDES $i" 7286 done 7287 7288 7289 7290 vars="-I\"\${zlibtcl_SRC_PATH}\"" 7291 for i in $vars; do 7292 PKG_INCLUDES="$PKG_INCLUDES $i" 7293 done 7294 7295 7296 7297 vars="-I\"\${zlibtcl_BUILD_PATH}\"" 7298 for i in $vars; do 7299 PKG_INCLUDES="$PKG_INCLUDES $i" 7300 done 7301 7302 7303 7304 vars="-I\${ZLIB_INCLUDE_DIR}" 7305 for i in $vars; do 7306 PKG_INCLUDES="$PKG_INCLUDES $i" 7307 done 7308 7309 7310 7311 vars="-I\${SSL_INCLUDE_DIR}" 7312 for i in $vars; do 7313 PKG_INCLUDES="$PKG_INCLUDES $i" 7314 done 7315 7316 7317 7318 vars="-DLIBZ_DEFAULTNAME=\\\"libz\${SHLIB_SUFFIX}\\\"" 7319 for i in $vars; do 7320 PKG_INCLUDES="$PKG_INCLUDES $i" 7321 done 7322 7323 7324 7325 7326 7327 7328 vars="" 7329 for i in $vars; do 7330 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7331 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7332 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7333 fi 7334 PKG_LIBS="$PKG_LIBS $i" 7335 done 7336 7337 7338 7339 PKG_CFLAGS="$PKG_CFLAGS " 7340 7341 7342 7343 PKG_CFLAGS="$PKG_CFLAGS -DZLIBTCL_VERSION=\\\"${zlibtcl_VERSION}\\\"" 7344 7345 7346 7347 7348 vars="trfStubLib.c" 7349 for i in $vars; do 7350 # check for existence - allows for generic/win/unix VPATH 7351 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7352 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7353 ; then 7354 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 7355echo "$as_me: error: could not find stub source file '$i'" >&2;} 7356 { (exit 1); exit 1; }; } 7357 fi 7358 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 7359 # this assumes it is in a VPATH dir 7360 i=`basename $i` 7361 # handle user calling this before or after TEA_SETUP_COMPILER 7362 if test x"${OBJEXT}" != x ; then 7363 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7364 else 7365 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7366 fi 7367 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 7368 done 7369 7370 7371 7372 7373 vars="" 7374 for i in $vars; do 7375 # check for existence, be strict because it is installed 7376 if test ! -f "${srcdir}/$i" ; then 7377 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 7378echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 7379 { (exit 1); exit 1; }; } 7380 fi 7381 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 7382 done 7383 7384 7385 7386#-------------------------------------------------------------------- 7387# If ltoa is present, use it to convert integer values into strings. 7388# If not, sprintf is used, which is slower and requires more code. 7389#-------------------------------------------------------------------- 7390 7391{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 7392echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 7393if test "${ac_cv_c_bigendian+set}" = set; then 7394 echo $ECHO_N "(cached) $ECHO_C" >&6 7395else 7396 # See if sys/param.h defines the BYTE_ORDER macro. 7397cat >conftest.$ac_ext <<_ACEOF 7398/* confdefs.h. */ 7399_ACEOF 7400cat confdefs.h >>conftest.$ac_ext 7401cat >>conftest.$ac_ext <<_ACEOF 7402/* end confdefs.h. */ 7403#include <sys/types.h> 7404#include <sys/param.h> 7405 7406int 7407main () 7408{ 7409#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 7410 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 7411 bogus endian macros 7412#endif 7413 7414 ; 7415 return 0; 7416} 7417_ACEOF 7418rm -f conftest.$ac_objext 7419if { (ac_try="$ac_compile" 7420case "(($ac_try" in 7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7422 *) ac_try_echo=$ac_try;; 7423esac 7424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7425 (eval "$ac_compile") 2>conftest.er1 7426 ac_status=$? 7427 grep -v '^ *+' conftest.er1 >conftest.err 7428 rm -f conftest.er1 7429 cat conftest.err >&5 7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7431 (exit $ac_status); } && { 7432 test -z "$ac_c_werror_flag" || 7433 test ! -s conftest.err 7434 } && test -s conftest.$ac_objext; then 7435 # It does; now see whether it defined to BIG_ENDIAN or not. 7436cat >conftest.$ac_ext <<_ACEOF 7437/* confdefs.h. */ 7438_ACEOF 7439cat confdefs.h >>conftest.$ac_ext 7440cat >>conftest.$ac_ext <<_ACEOF 7441/* end confdefs.h. */ 7442#include <sys/types.h> 7443#include <sys/param.h> 7444 7445int 7446main () 7447{ 7448#if BYTE_ORDER != BIG_ENDIAN 7449 not big endian 7450#endif 7451 7452 ; 7453 return 0; 7454} 7455_ACEOF 7456rm -f conftest.$ac_objext 7457if { (ac_try="$ac_compile" 7458case "(($ac_try" in 7459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7460 *) ac_try_echo=$ac_try;; 7461esac 7462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7463 (eval "$ac_compile") 2>conftest.er1 7464 ac_status=$? 7465 grep -v '^ *+' conftest.er1 >conftest.err 7466 rm -f conftest.er1 7467 cat conftest.err >&5 7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7469 (exit $ac_status); } && { 7470 test -z "$ac_c_werror_flag" || 7471 test ! -s conftest.err 7472 } && test -s conftest.$ac_objext; then 7473 ac_cv_c_bigendian=yes 7474else 7475 echo "$as_me: failed program was:" >&5 7476sed 's/^/| /' conftest.$ac_ext >&5 7477 7478 ac_cv_c_bigendian=no 7479fi 7480 7481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7482else 7483 echo "$as_me: failed program was:" >&5 7484sed 's/^/| /' conftest.$ac_ext >&5 7485 7486 # It does not; compile a test program. 7487if test "$cross_compiling" = yes; then 7488 # try to guess the endianness by grepping values into an object file 7489 ac_cv_c_bigendian=unknown 7490 cat >conftest.$ac_ext <<_ACEOF 7491/* confdefs.h. */ 7492_ACEOF 7493cat confdefs.h >>conftest.$ac_ext 7494cat >>conftest.$ac_ext <<_ACEOF 7495/* end confdefs.h. */ 7496short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 7497short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 7498void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 7499short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 7500short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 7501void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 7502int 7503main () 7504{ 7505 _ascii (); _ebcdic (); 7506 ; 7507 return 0; 7508} 7509_ACEOF 7510rm -f conftest.$ac_objext 7511if { (ac_try="$ac_compile" 7512case "(($ac_try" in 7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7514 *) ac_try_echo=$ac_try;; 7515esac 7516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7517 (eval "$ac_compile") 2>conftest.er1 7518 ac_status=$? 7519 grep -v '^ *+' conftest.er1 >conftest.err 7520 rm -f conftest.er1 7521 cat conftest.err >&5 7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7523 (exit $ac_status); } && { 7524 test -z "$ac_c_werror_flag" || 7525 test ! -s conftest.err 7526 } && test -s conftest.$ac_objext; then 7527 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 7528 ac_cv_c_bigendian=yes 7529fi 7530if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 7531 if test "$ac_cv_c_bigendian" = unknown; then 7532 ac_cv_c_bigendian=no 7533 else 7534 # finding both strings is unlikely to happen, but who knows? 7535 ac_cv_c_bigendian=unknown 7536 fi 7537fi 7538else 7539 echo "$as_me: failed program was:" >&5 7540sed 's/^/| /' conftest.$ac_ext >&5 7541 7542 7543fi 7544 7545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7546else 7547 cat >conftest.$ac_ext <<_ACEOF 7548/* confdefs.h. */ 7549_ACEOF 7550cat confdefs.h >>conftest.$ac_ext 7551cat >>conftest.$ac_ext <<_ACEOF 7552/* end confdefs.h. */ 7553$ac_includes_default 7554int 7555main () 7556{ 7557 7558 /* Are we little or big endian? From Harbison&Steele. */ 7559 union 7560 { 7561 long int l; 7562 char c[sizeof (long int)]; 7563 } u; 7564 u.l = 1; 7565 return u.c[sizeof (long int) - 1] == 1; 7566 7567 ; 7568 return 0; 7569} 7570_ACEOF 7571rm -f conftest$ac_exeext 7572if { (ac_try="$ac_link" 7573case "(($ac_try" in 7574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7575 *) ac_try_echo=$ac_try;; 7576esac 7577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7578 (eval "$ac_link") 2>&5 7579 ac_status=$? 7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7582 { (case "(($ac_try" in 7583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7584 *) ac_try_echo=$ac_try;; 7585esac 7586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7587 (eval "$ac_try") 2>&5 7588 ac_status=$? 7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7590 (exit $ac_status); }; }; then 7591 ac_cv_c_bigendian=no 7592else 7593 echo "$as_me: program exited with status $ac_status" >&5 7594echo "$as_me: failed program was:" >&5 7595sed 's/^/| /' conftest.$ac_ext >&5 7596 7597( exit $ac_status ) 7598ac_cv_c_bigendian=yes 7599fi 7600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7601fi 7602 7603 7604fi 7605 7606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7607fi 7608{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 7609echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 7610case $ac_cv_c_bigendian in 7611 yes) 7612 7613cat >>confdefs.h <<\_ACEOF 7614#define WORDS_BIGENDIAN 1 7615_ACEOF 7616 ;; 7617 no) 7618 ;; 7619 *) 7620 { { echo "$as_me:$LINENO: error: unknown endianness 7621presetting ac_cv_c_bigendian=no (or yes) will help" >&5 7622echo "$as_me: error: unknown endianness 7623presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 7624 { (exit 1); exit 1; }; } ;; 7625esac 7626 7627{ echo "$as_me:$LINENO: checking for int" >&5 7628echo $ECHO_N "checking for int... $ECHO_C" >&6; } 7629if test "${ac_cv_type_int+set}" = set; then 7630 echo $ECHO_N "(cached) $ECHO_C" >&6 7631else 7632 cat >conftest.$ac_ext <<_ACEOF 7633/* confdefs.h. */ 7634_ACEOF 7635cat confdefs.h >>conftest.$ac_ext 7636cat >>conftest.$ac_ext <<_ACEOF 7637/* end confdefs.h. */ 7638$ac_includes_default 7639typedef int ac__type_new_; 7640int 7641main () 7642{ 7643if ((ac__type_new_ *) 0) 7644 return 0; 7645if (sizeof (ac__type_new_)) 7646 return 0; 7647 ; 7648 return 0; 7649} 7650_ACEOF 7651rm -f conftest.$ac_objext 7652if { (ac_try="$ac_compile" 7653case "(($ac_try" in 7654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7655 *) ac_try_echo=$ac_try;; 7656esac 7657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7658 (eval "$ac_compile") 2>conftest.er1 7659 ac_status=$? 7660 grep -v '^ *+' conftest.er1 >conftest.err 7661 rm -f conftest.er1 7662 cat conftest.err >&5 7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7664 (exit $ac_status); } && { 7665 test -z "$ac_c_werror_flag" || 7666 test ! -s conftest.err 7667 } && test -s conftest.$ac_objext; then 7668 ac_cv_type_int=yes 7669else 7670 echo "$as_me: failed program was:" >&5 7671sed 's/^/| /' conftest.$ac_ext >&5 7672 7673 ac_cv_type_int=no 7674fi 7675 7676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7677fi 7678{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 7679echo "${ECHO_T}$ac_cv_type_int" >&6; } 7680 7681# The cast to long int works around a bug in the HP C Compiler 7682# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7683# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7684# This bug is HP SR number 8606223364. 7685{ echo "$as_me:$LINENO: checking size of int" >&5 7686echo $ECHO_N "checking size of int... $ECHO_C" >&6; } 7687if test "${ac_cv_sizeof_int+set}" = set; then 7688 echo $ECHO_N "(cached) $ECHO_C" >&6 7689else 7690 if test "$cross_compiling" = yes; then 7691 # Depending upon the size, compute the lo and hi bounds. 7692cat >conftest.$ac_ext <<_ACEOF 7693/* confdefs.h. */ 7694_ACEOF 7695cat confdefs.h >>conftest.$ac_ext 7696cat >>conftest.$ac_ext <<_ACEOF 7697/* end confdefs.h. */ 7698$ac_includes_default 7699 typedef int ac__type_sizeof_; 7700int 7701main () 7702{ 7703static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 7704test_array [0] = 0 7705 7706 ; 7707 return 0; 7708} 7709_ACEOF 7710rm -f conftest.$ac_objext 7711if { (ac_try="$ac_compile" 7712case "(($ac_try" in 7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7714 *) ac_try_echo=$ac_try;; 7715esac 7716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7717 (eval "$ac_compile") 2>conftest.er1 7718 ac_status=$? 7719 grep -v '^ *+' conftest.er1 >conftest.err 7720 rm -f conftest.er1 7721 cat conftest.err >&5 7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7723 (exit $ac_status); } && { 7724 test -z "$ac_c_werror_flag" || 7725 test ! -s conftest.err 7726 } && test -s conftest.$ac_objext; then 7727 ac_lo=0 ac_mid=0 7728 while :; do 7729 cat >conftest.$ac_ext <<_ACEOF 7730/* confdefs.h. */ 7731_ACEOF 7732cat confdefs.h >>conftest.$ac_ext 7733cat >>conftest.$ac_ext <<_ACEOF 7734/* end confdefs.h. */ 7735$ac_includes_default 7736 typedef int ac__type_sizeof_; 7737int 7738main () 7739{ 7740static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7741test_array [0] = 0 7742 7743 ; 7744 return 0; 7745} 7746_ACEOF 7747rm -f conftest.$ac_objext 7748if { (ac_try="$ac_compile" 7749case "(($ac_try" in 7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7751 *) ac_try_echo=$ac_try;; 7752esac 7753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7754 (eval "$ac_compile") 2>conftest.er1 7755 ac_status=$? 7756 grep -v '^ *+' conftest.er1 >conftest.err 7757 rm -f conftest.er1 7758 cat conftest.err >&5 7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7760 (exit $ac_status); } && { 7761 test -z "$ac_c_werror_flag" || 7762 test ! -s conftest.err 7763 } && test -s conftest.$ac_objext; then 7764 ac_hi=$ac_mid; break 7765else 7766 echo "$as_me: failed program was:" >&5 7767sed 's/^/| /' conftest.$ac_ext >&5 7768 7769 ac_lo=`expr $ac_mid + 1` 7770 if test $ac_lo -le $ac_mid; then 7771 ac_lo= ac_hi= 7772 break 7773 fi 7774 ac_mid=`expr 2 '*' $ac_mid + 1` 7775fi 7776 7777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7778 done 7779else 7780 echo "$as_me: failed program was:" >&5 7781sed 's/^/| /' conftest.$ac_ext >&5 7782 7783 cat >conftest.$ac_ext <<_ACEOF 7784/* confdefs.h. */ 7785_ACEOF 7786cat confdefs.h >>conftest.$ac_ext 7787cat >>conftest.$ac_ext <<_ACEOF 7788/* end confdefs.h. */ 7789$ac_includes_default 7790 typedef int ac__type_sizeof_; 7791int 7792main () 7793{ 7794static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 7795test_array [0] = 0 7796 7797 ; 7798 return 0; 7799} 7800_ACEOF 7801rm -f conftest.$ac_objext 7802if { (ac_try="$ac_compile" 7803case "(($ac_try" in 7804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7805 *) ac_try_echo=$ac_try;; 7806esac 7807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7808 (eval "$ac_compile") 2>conftest.er1 7809 ac_status=$? 7810 grep -v '^ *+' conftest.er1 >conftest.err 7811 rm -f conftest.er1 7812 cat conftest.err >&5 7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7814 (exit $ac_status); } && { 7815 test -z "$ac_c_werror_flag" || 7816 test ! -s conftest.err 7817 } && test -s conftest.$ac_objext; then 7818 ac_hi=-1 ac_mid=-1 7819 while :; do 7820 cat >conftest.$ac_ext <<_ACEOF 7821/* confdefs.h. */ 7822_ACEOF 7823cat confdefs.h >>conftest.$ac_ext 7824cat >>conftest.$ac_ext <<_ACEOF 7825/* end confdefs.h. */ 7826$ac_includes_default 7827 typedef int ac__type_sizeof_; 7828int 7829main () 7830{ 7831static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 7832test_array [0] = 0 7833 7834 ; 7835 return 0; 7836} 7837_ACEOF 7838rm -f conftest.$ac_objext 7839if { (ac_try="$ac_compile" 7840case "(($ac_try" in 7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7842 *) ac_try_echo=$ac_try;; 7843esac 7844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7845 (eval "$ac_compile") 2>conftest.er1 7846 ac_status=$? 7847 grep -v '^ *+' conftest.er1 >conftest.err 7848 rm -f conftest.er1 7849 cat conftest.err >&5 7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7851 (exit $ac_status); } && { 7852 test -z "$ac_c_werror_flag" || 7853 test ! -s conftest.err 7854 } && test -s conftest.$ac_objext; then 7855 ac_lo=$ac_mid; break 7856else 7857 echo "$as_me: failed program was:" >&5 7858sed 's/^/| /' conftest.$ac_ext >&5 7859 7860 ac_hi=`expr '(' $ac_mid ')' - 1` 7861 if test $ac_mid -le $ac_hi; then 7862 ac_lo= ac_hi= 7863 break 7864 fi 7865 ac_mid=`expr 2 '*' $ac_mid` 7866fi 7867 7868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7869 done 7870else 7871 echo "$as_me: failed program was:" >&5 7872sed 's/^/| /' conftest.$ac_ext >&5 7873 7874 ac_lo= ac_hi= 7875fi 7876 7877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7878fi 7879 7880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7881# Binary search between lo and hi bounds. 7882while test "x$ac_lo" != "x$ac_hi"; do 7883 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7884 cat >conftest.$ac_ext <<_ACEOF 7885/* confdefs.h. */ 7886_ACEOF 7887cat confdefs.h >>conftest.$ac_ext 7888cat >>conftest.$ac_ext <<_ACEOF 7889/* end confdefs.h. */ 7890$ac_includes_default 7891 typedef int ac__type_sizeof_; 7892int 7893main () 7894{ 7895static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7896test_array [0] = 0 7897 7898 ; 7899 return 0; 7900} 7901_ACEOF 7902rm -f conftest.$ac_objext 7903if { (ac_try="$ac_compile" 7904case "(($ac_try" in 7905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7906 *) ac_try_echo=$ac_try;; 7907esac 7908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7909 (eval "$ac_compile") 2>conftest.er1 7910 ac_status=$? 7911 grep -v '^ *+' conftest.er1 >conftest.err 7912 rm -f conftest.er1 7913 cat conftest.err >&5 7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7915 (exit $ac_status); } && { 7916 test -z "$ac_c_werror_flag" || 7917 test ! -s conftest.err 7918 } && test -s conftest.$ac_objext; then 7919 ac_hi=$ac_mid 7920else 7921 echo "$as_me: failed program was:" >&5 7922sed 's/^/| /' conftest.$ac_ext >&5 7923 7924 ac_lo=`expr '(' $ac_mid ')' + 1` 7925fi 7926 7927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7928done 7929case $ac_lo in 7930?*) ac_cv_sizeof_int=$ac_lo;; 7931'') if test "$ac_cv_type_int" = yes; then 7932 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 7933See \`config.log' for more details." >&5 7934echo "$as_me: error: cannot compute sizeof (int) 7935See \`config.log' for more details." >&2;} 7936 { (exit 77); exit 77; }; } 7937 else 7938 ac_cv_sizeof_int=0 7939 fi ;; 7940esac 7941else 7942 cat >conftest.$ac_ext <<_ACEOF 7943/* confdefs.h. */ 7944_ACEOF 7945cat confdefs.h >>conftest.$ac_ext 7946cat >>conftest.$ac_ext <<_ACEOF 7947/* end confdefs.h. */ 7948$ac_includes_default 7949 typedef int ac__type_sizeof_; 7950static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 7951static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 7952#include <stdio.h> 7953#include <stdlib.h> 7954int 7955main () 7956{ 7957 7958 FILE *f = fopen ("conftest.val", "w"); 7959 if (! f) 7960 return 1; 7961 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 7962 { 7963 long int i = longval (); 7964 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7965 return 1; 7966 fprintf (f, "%ld\n", i); 7967 } 7968 else 7969 { 7970 unsigned long int i = ulongval (); 7971 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7972 return 1; 7973 fprintf (f, "%lu\n", i); 7974 } 7975 return ferror (f) || fclose (f) != 0; 7976 7977 ; 7978 return 0; 7979} 7980_ACEOF 7981rm -f conftest$ac_exeext 7982if { (ac_try="$ac_link" 7983case "(($ac_try" in 7984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7985 *) ac_try_echo=$ac_try;; 7986esac 7987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7988 (eval "$ac_link") 2>&5 7989 ac_status=$? 7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7992 { (case "(($ac_try" in 7993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7994 *) ac_try_echo=$ac_try;; 7995esac 7996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7997 (eval "$ac_try") 2>&5 7998 ac_status=$? 7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8000 (exit $ac_status); }; }; then 8001 ac_cv_sizeof_int=`cat conftest.val` 8002else 8003 echo "$as_me: program exited with status $ac_status" >&5 8004echo "$as_me: failed program was:" >&5 8005sed 's/^/| /' conftest.$ac_ext >&5 8006 8007( exit $ac_status ) 8008if test "$ac_cv_type_int" = yes; then 8009 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 8010See \`config.log' for more details." >&5 8011echo "$as_me: error: cannot compute sizeof (int) 8012See \`config.log' for more details." >&2;} 8013 { (exit 77); exit 77; }; } 8014 else 8015 ac_cv_sizeof_int=0 8016 fi 8017fi 8018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8019fi 8020rm -f conftest.val 8021fi 8022{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 8023echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } 8024 8025 8026 8027cat >>confdefs.h <<_ACEOF 8028#define SIZEOF_INT $ac_cv_sizeof_int 8029_ACEOF 8030 8031 8032{ echo "$as_me:$LINENO: checking for long int" >&5 8033echo $ECHO_N "checking for long int... $ECHO_C" >&6; } 8034if test "${ac_cv_type_long_int+set}" = set; then 8035 echo $ECHO_N "(cached) $ECHO_C" >&6 8036else 8037 cat >conftest.$ac_ext <<_ACEOF 8038/* confdefs.h. */ 8039_ACEOF 8040cat confdefs.h >>conftest.$ac_ext 8041cat >>conftest.$ac_ext <<_ACEOF 8042/* end confdefs.h. */ 8043$ac_includes_default 8044typedef long int ac__type_new_; 8045int 8046main () 8047{ 8048if ((ac__type_new_ *) 0) 8049 return 0; 8050if (sizeof (ac__type_new_)) 8051 return 0; 8052 ; 8053 return 0; 8054} 8055_ACEOF 8056rm -f conftest.$ac_objext 8057if { (ac_try="$ac_compile" 8058case "(($ac_try" in 8059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8060 *) ac_try_echo=$ac_try;; 8061esac 8062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8063 (eval "$ac_compile") 2>conftest.er1 8064 ac_status=$? 8065 grep -v '^ *+' conftest.er1 >conftest.err 8066 rm -f conftest.er1 8067 cat conftest.err >&5 8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8069 (exit $ac_status); } && { 8070 test -z "$ac_c_werror_flag" || 8071 test ! -s conftest.err 8072 } && test -s conftest.$ac_objext; then 8073 ac_cv_type_long_int=yes 8074else 8075 echo "$as_me: failed program was:" >&5 8076sed 's/^/| /' conftest.$ac_ext >&5 8077 8078 ac_cv_type_long_int=no 8079fi 8080 8081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8082fi 8083{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 8084echo "${ECHO_T}$ac_cv_type_long_int" >&6; } 8085 8086# The cast to long int works around a bug in the HP C Compiler 8087# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8088# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8089# This bug is HP SR number 8606223364. 8090{ echo "$as_me:$LINENO: checking size of long int" >&5 8091echo $ECHO_N "checking size of long int... $ECHO_C" >&6; } 8092if test "${ac_cv_sizeof_long_int+set}" = set; then 8093 echo $ECHO_N "(cached) $ECHO_C" >&6 8094else 8095 if test "$cross_compiling" = yes; then 8096 # Depending upon the size, compute the lo and hi bounds. 8097cat >conftest.$ac_ext <<_ACEOF 8098/* confdefs.h. */ 8099_ACEOF 8100cat confdefs.h >>conftest.$ac_ext 8101cat >>conftest.$ac_ext <<_ACEOF 8102/* end confdefs.h. */ 8103$ac_includes_default 8104 typedef long int ac__type_sizeof_; 8105int 8106main () 8107{ 8108static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 8109test_array [0] = 0 8110 8111 ; 8112 return 0; 8113} 8114_ACEOF 8115rm -f conftest.$ac_objext 8116if { (ac_try="$ac_compile" 8117case "(($ac_try" in 8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8119 *) ac_try_echo=$ac_try;; 8120esac 8121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8122 (eval "$ac_compile") 2>conftest.er1 8123 ac_status=$? 8124 grep -v '^ *+' conftest.er1 >conftest.err 8125 rm -f conftest.er1 8126 cat conftest.err >&5 8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8128 (exit $ac_status); } && { 8129 test -z "$ac_c_werror_flag" || 8130 test ! -s conftest.err 8131 } && test -s conftest.$ac_objext; then 8132 ac_lo=0 ac_mid=0 8133 while :; do 8134 cat >conftest.$ac_ext <<_ACEOF 8135/* confdefs.h. */ 8136_ACEOF 8137cat confdefs.h >>conftest.$ac_ext 8138cat >>conftest.$ac_ext <<_ACEOF 8139/* end confdefs.h. */ 8140$ac_includes_default 8141 typedef long int ac__type_sizeof_; 8142int 8143main () 8144{ 8145static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8146test_array [0] = 0 8147 8148 ; 8149 return 0; 8150} 8151_ACEOF 8152rm -f conftest.$ac_objext 8153if { (ac_try="$ac_compile" 8154case "(($ac_try" in 8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8156 *) ac_try_echo=$ac_try;; 8157esac 8158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8159 (eval "$ac_compile") 2>conftest.er1 8160 ac_status=$? 8161 grep -v '^ *+' conftest.er1 >conftest.err 8162 rm -f conftest.er1 8163 cat conftest.err >&5 8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8165 (exit $ac_status); } && { 8166 test -z "$ac_c_werror_flag" || 8167 test ! -s conftest.err 8168 } && test -s conftest.$ac_objext; then 8169 ac_hi=$ac_mid; break 8170else 8171 echo "$as_me: failed program was:" >&5 8172sed 's/^/| /' conftest.$ac_ext >&5 8173 8174 ac_lo=`expr $ac_mid + 1` 8175 if test $ac_lo -le $ac_mid; then 8176 ac_lo= ac_hi= 8177 break 8178 fi 8179 ac_mid=`expr 2 '*' $ac_mid + 1` 8180fi 8181 8182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8183 done 8184else 8185 echo "$as_me: failed program was:" >&5 8186sed 's/^/| /' conftest.$ac_ext >&5 8187 8188 cat >conftest.$ac_ext <<_ACEOF 8189/* confdefs.h. */ 8190_ACEOF 8191cat confdefs.h >>conftest.$ac_ext 8192cat >>conftest.$ac_ext <<_ACEOF 8193/* end confdefs.h. */ 8194$ac_includes_default 8195 typedef long int ac__type_sizeof_; 8196int 8197main () 8198{ 8199static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8200test_array [0] = 0 8201 8202 ; 8203 return 0; 8204} 8205_ACEOF 8206rm -f conftest.$ac_objext 8207if { (ac_try="$ac_compile" 8208case "(($ac_try" in 8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8210 *) ac_try_echo=$ac_try;; 8211esac 8212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8213 (eval "$ac_compile") 2>conftest.er1 8214 ac_status=$? 8215 grep -v '^ *+' conftest.er1 >conftest.err 8216 rm -f conftest.er1 8217 cat conftest.err >&5 8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8219 (exit $ac_status); } && { 8220 test -z "$ac_c_werror_flag" || 8221 test ! -s conftest.err 8222 } && test -s conftest.$ac_objext; then 8223 ac_hi=-1 ac_mid=-1 8224 while :; do 8225 cat >conftest.$ac_ext <<_ACEOF 8226/* confdefs.h. */ 8227_ACEOF 8228cat confdefs.h >>conftest.$ac_ext 8229cat >>conftest.$ac_ext <<_ACEOF 8230/* end confdefs.h. */ 8231$ac_includes_default 8232 typedef long int ac__type_sizeof_; 8233int 8234main () 8235{ 8236static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8237test_array [0] = 0 8238 8239 ; 8240 return 0; 8241} 8242_ACEOF 8243rm -f conftest.$ac_objext 8244if { (ac_try="$ac_compile" 8245case "(($ac_try" in 8246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8247 *) ac_try_echo=$ac_try;; 8248esac 8249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8250 (eval "$ac_compile") 2>conftest.er1 8251 ac_status=$? 8252 grep -v '^ *+' conftest.er1 >conftest.err 8253 rm -f conftest.er1 8254 cat conftest.err >&5 8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8256 (exit $ac_status); } && { 8257 test -z "$ac_c_werror_flag" || 8258 test ! -s conftest.err 8259 } && test -s conftest.$ac_objext; then 8260 ac_lo=$ac_mid; break 8261else 8262 echo "$as_me: failed program was:" >&5 8263sed 's/^/| /' conftest.$ac_ext >&5 8264 8265 ac_hi=`expr '(' $ac_mid ')' - 1` 8266 if test $ac_mid -le $ac_hi; then 8267 ac_lo= ac_hi= 8268 break 8269 fi 8270 ac_mid=`expr 2 '*' $ac_mid` 8271fi 8272 8273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8274 done 8275else 8276 echo "$as_me: failed program was:" >&5 8277sed 's/^/| /' conftest.$ac_ext >&5 8278 8279 ac_lo= ac_hi= 8280fi 8281 8282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8283fi 8284 8285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8286# Binary search between lo and hi bounds. 8287while test "x$ac_lo" != "x$ac_hi"; do 8288 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8289 cat >conftest.$ac_ext <<_ACEOF 8290/* confdefs.h. */ 8291_ACEOF 8292cat confdefs.h >>conftest.$ac_ext 8293cat >>conftest.$ac_ext <<_ACEOF 8294/* end confdefs.h. */ 8295$ac_includes_default 8296 typedef long int ac__type_sizeof_; 8297int 8298main () 8299{ 8300static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8301test_array [0] = 0 8302 8303 ; 8304 return 0; 8305} 8306_ACEOF 8307rm -f conftest.$ac_objext 8308if { (ac_try="$ac_compile" 8309case "(($ac_try" in 8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8311 *) ac_try_echo=$ac_try;; 8312esac 8313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8314 (eval "$ac_compile") 2>conftest.er1 8315 ac_status=$? 8316 grep -v '^ *+' conftest.er1 >conftest.err 8317 rm -f conftest.er1 8318 cat conftest.err >&5 8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8320 (exit $ac_status); } && { 8321 test -z "$ac_c_werror_flag" || 8322 test ! -s conftest.err 8323 } && test -s conftest.$ac_objext; then 8324 ac_hi=$ac_mid 8325else 8326 echo "$as_me: failed program was:" >&5 8327sed 's/^/| /' conftest.$ac_ext >&5 8328 8329 ac_lo=`expr '(' $ac_mid ')' + 1` 8330fi 8331 8332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8333done 8334case $ac_lo in 8335?*) ac_cv_sizeof_long_int=$ac_lo;; 8336'') if test "$ac_cv_type_long_int" = yes; then 8337 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) 8338See \`config.log' for more details." >&5 8339echo "$as_me: error: cannot compute sizeof (long int) 8340See \`config.log' for more details." >&2;} 8341 { (exit 77); exit 77; }; } 8342 else 8343 ac_cv_sizeof_long_int=0 8344 fi ;; 8345esac 8346else 8347 cat >conftest.$ac_ext <<_ACEOF 8348/* confdefs.h. */ 8349_ACEOF 8350cat confdefs.h >>conftest.$ac_ext 8351cat >>conftest.$ac_ext <<_ACEOF 8352/* end confdefs.h. */ 8353$ac_includes_default 8354 typedef long int ac__type_sizeof_; 8355static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 8356static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 8357#include <stdio.h> 8358#include <stdlib.h> 8359int 8360main () 8361{ 8362 8363 FILE *f = fopen ("conftest.val", "w"); 8364 if (! f) 8365 return 1; 8366 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 8367 { 8368 long int i = longval (); 8369 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 8370 return 1; 8371 fprintf (f, "%ld\n", i); 8372 } 8373 else 8374 { 8375 unsigned long int i = ulongval (); 8376 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 8377 return 1; 8378 fprintf (f, "%lu\n", i); 8379 } 8380 return ferror (f) || fclose (f) != 0; 8381 8382 ; 8383 return 0; 8384} 8385_ACEOF 8386rm -f conftest$ac_exeext 8387if { (ac_try="$ac_link" 8388case "(($ac_try" in 8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8390 *) ac_try_echo=$ac_try;; 8391esac 8392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8393 (eval "$ac_link") 2>&5 8394 ac_status=$? 8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8397 { (case "(($ac_try" in 8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8399 *) ac_try_echo=$ac_try;; 8400esac 8401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8402 (eval "$ac_try") 2>&5 8403 ac_status=$? 8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8405 (exit $ac_status); }; }; then 8406 ac_cv_sizeof_long_int=`cat conftest.val` 8407else 8408 echo "$as_me: program exited with status $ac_status" >&5 8409echo "$as_me: failed program was:" >&5 8410sed 's/^/| /' conftest.$ac_ext >&5 8411 8412( exit $ac_status ) 8413if test "$ac_cv_type_long_int" = yes; then 8414 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) 8415See \`config.log' for more details." >&5 8416echo "$as_me: error: cannot compute sizeof (long int) 8417See \`config.log' for more details." >&2;} 8418 { (exit 77); exit 77; }; } 8419 else 8420 ac_cv_sizeof_long_int=0 8421 fi 8422fi 8423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8424fi 8425rm -f conftest.val 8426fi 8427{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 8428echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; } 8429 8430 8431 8432cat >>confdefs.h <<_ACEOF 8433#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int 8434_ACEOF 8435 8436 8437 8438for ac_func in ltoa 8439do 8440as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8441{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8442echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8443if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8444 echo $ECHO_N "(cached) $ECHO_C" >&6 8445else 8446 cat >conftest.$ac_ext <<_ACEOF 8447/* confdefs.h. */ 8448_ACEOF 8449cat confdefs.h >>conftest.$ac_ext 8450cat >>conftest.$ac_ext <<_ACEOF 8451/* end confdefs.h. */ 8452/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8453 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8454#define $ac_func innocuous_$ac_func 8455 8456/* System header to define __stub macros and hopefully few prototypes, 8457 which can conflict with char $ac_func (); below. 8458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8459 <limits.h> exists even on freestanding compilers. */ 8460 8461#ifdef __STDC__ 8462# include <limits.h> 8463#else 8464# include <assert.h> 8465#endif 8466 8467#undef $ac_func 8468 8469/* Override any GCC internal prototype to avoid an error. 8470 Use char because int might match the return type of a GCC 8471 builtin and then its argument prototype would still apply. */ 8472#ifdef __cplusplus 8473extern "C" 8474#endif 8475char $ac_func (); 8476/* The GNU C library defines this for functions which it implements 8477 to always fail with ENOSYS. Some functions are actually named 8478 something starting with __ and the normal name is an alias. */ 8479#if defined __stub_$ac_func || defined __stub___$ac_func 8480choke me 8481#endif 8482 8483int 8484main () 8485{ 8486return $ac_func (); 8487 ; 8488 return 0; 8489} 8490_ACEOF 8491rm -f conftest.$ac_objext conftest$ac_exeext 8492if { (ac_try="$ac_link" 8493case "(($ac_try" in 8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8495 *) ac_try_echo=$ac_try;; 8496esac 8497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8498 (eval "$ac_link") 2>conftest.er1 8499 ac_status=$? 8500 grep -v '^ *+' conftest.er1 >conftest.err 8501 rm -f conftest.er1 8502 cat conftest.err >&5 8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8504 (exit $ac_status); } && { 8505 test -z "$ac_c_werror_flag" || 8506 test ! -s conftest.err 8507 } && test -s conftest$ac_exeext && 8508 $as_test_x conftest$ac_exeext; then 8509 eval "$as_ac_var=yes" 8510else 8511 echo "$as_me: failed program was:" >&5 8512sed 's/^/| /' conftest.$ac_ext >&5 8513 8514 eval "$as_ac_var=no" 8515fi 8516 8517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8518 conftest$ac_exeext conftest.$ac_ext 8519fi 8520ac_res=`eval echo '${'$as_ac_var'}'` 8521 { echo "$as_me:$LINENO: result: $ac_res" >&5 8522echo "${ECHO_T}$ac_res" >&6; } 8523if test `eval echo '${'$as_ac_var'}'` = yes; then 8524 cat >>confdefs.h <<_ACEOF 8525#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8526_ACEOF 8527 8528fi 8529done 8530 8531if test "${TEA_PLATFORM}" = "windows" ; then 8532 { echo "$as_me:$LINENO: checking for main in -lcrypt" >&5 8533echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6; } 8534 { echo "$as_me:$LINENO: result: no (Windows)" >&5 8535echo "${ECHO_T}no (Windows)" >&6; } 8536 HAS_LIBCRYPT=0 8537elif test "`uname -s`" = "Darwin"; then 8538 { echo "$as_me:$LINENO: checking for crypt in -lSystem" >&5 8539echo $ECHO_N "checking for crypt in -lSystem... $ECHO_C" >&6; } 8540if test "${ac_cv_lib_System_crypt+set}" = set; then 8541 echo $ECHO_N "(cached) $ECHO_C" >&6 8542else 8543 ac_check_lib_save_LIBS=$LIBS 8544LIBS="-lSystem $LIBS" 8545cat >conftest.$ac_ext <<_ACEOF 8546/* confdefs.h. */ 8547_ACEOF 8548cat confdefs.h >>conftest.$ac_ext 8549cat >>conftest.$ac_ext <<_ACEOF 8550/* end confdefs.h. */ 8551 8552/* Override any GCC internal prototype to avoid an error. 8553 Use char because int might match the return type of a GCC 8554 builtin and then its argument prototype would still apply. */ 8555#ifdef __cplusplus 8556extern "C" 8557#endif 8558char crypt (); 8559int 8560main () 8561{ 8562return crypt (); 8563 ; 8564 return 0; 8565} 8566_ACEOF 8567rm -f conftest.$ac_objext conftest$ac_exeext 8568if { (ac_try="$ac_link" 8569case "(($ac_try" in 8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8571 *) ac_try_echo=$ac_try;; 8572esac 8573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8574 (eval "$ac_link") 2>conftest.er1 8575 ac_status=$? 8576 grep -v '^ *+' conftest.er1 >conftest.err 8577 rm -f conftest.er1 8578 cat conftest.err >&5 8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8580 (exit $ac_status); } && { 8581 test -z "$ac_c_werror_flag" || 8582 test ! -s conftest.err 8583 } && test -s conftest$ac_exeext && 8584 $as_test_x conftest$ac_exeext; then 8585 ac_cv_lib_System_crypt=yes 8586else 8587 echo "$as_me: failed program was:" >&5 8588sed 's/^/| /' conftest.$ac_ext >&5 8589 8590 ac_cv_lib_System_crypt=no 8591fi 8592 8593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8594 conftest$ac_exeext conftest.$ac_ext 8595LIBS=$ac_check_lib_save_LIBS 8596fi 8597{ echo "$as_me:$LINENO: result: $ac_cv_lib_System_crypt" >&5 8598echo "${ECHO_T}$ac_cv_lib_System_crypt" >&6; } 8599if test $ac_cv_lib_System_crypt = yes; then 8600 HAS_LIBCRYPT=1 8601else 8602 HAS_LIBCRYPT=0 8603fi 8604 8605else 8606 { echo "$as_me:$LINENO: checking for main in -lcrypt" >&5 8607echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6; } 8608if test "${ac_cv_lib_crypt_main+set}" = set; then 8609 echo $ECHO_N "(cached) $ECHO_C" >&6 8610else 8611 ac_check_lib_save_LIBS=$LIBS 8612LIBS="-lcrypt $LIBS" 8613cat >conftest.$ac_ext <<_ACEOF 8614/* confdefs.h. */ 8615_ACEOF 8616cat confdefs.h >>conftest.$ac_ext 8617cat >>conftest.$ac_ext <<_ACEOF 8618/* end confdefs.h. */ 8619 8620 8621int 8622main () 8623{ 8624return main (); 8625 ; 8626 return 0; 8627} 8628_ACEOF 8629rm -f conftest.$ac_objext conftest$ac_exeext 8630if { (ac_try="$ac_link" 8631case "(($ac_try" in 8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8633 *) ac_try_echo=$ac_try;; 8634esac 8635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8636 (eval "$ac_link") 2>conftest.er1 8637 ac_status=$? 8638 grep -v '^ *+' conftest.er1 >conftest.err 8639 rm -f conftest.er1 8640 cat conftest.err >&5 8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8642 (exit $ac_status); } && { 8643 test -z "$ac_c_werror_flag" || 8644 test ! -s conftest.err 8645 } && test -s conftest$ac_exeext && 8646 $as_test_x conftest$ac_exeext; then 8647 ac_cv_lib_crypt_main=yes 8648else 8649 echo "$as_me: failed program was:" >&5 8650sed 's/^/| /' conftest.$ac_ext >&5 8651 8652 ac_cv_lib_crypt_main=no 8653fi 8654 8655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8656 conftest$ac_exeext conftest.$ac_ext 8657LIBS=$ac_check_lib_save_LIBS 8658fi 8659{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5 8660echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6; } 8661if test $ac_cv_lib_crypt_main = yes; then 8662 HAS_LIBCRYPT=1 8663else 8664 HAS_LIBCRYPT=0 8665fi 8666 8667 { echo "$as_me:$LINENO: checking for md5_init_ctx in -lcrypt" >&5 8668echo $ECHO_N "checking for md5_init_ctx in -lcrypt... $ECHO_C" >&6; } 8669if test "${ac_cv_lib_crypt_md5_init_ctx+set}" = set; then 8670 echo $ECHO_N "(cached) $ECHO_C" >&6 8671else 8672 ac_check_lib_save_LIBS=$LIBS 8673LIBS="-lcrypt $LIBS" 8674cat >conftest.$ac_ext <<_ACEOF 8675/* confdefs.h. */ 8676_ACEOF 8677cat confdefs.h >>conftest.$ac_ext 8678cat >>conftest.$ac_ext <<_ACEOF 8679/* end confdefs.h. */ 8680 8681/* Override any GCC internal prototype to avoid an error. 8682 Use char because int might match the return type of a GCC 8683 builtin and then its argument prototype would still apply. */ 8684#ifdef __cplusplus 8685extern "C" 8686#endif 8687char md5_init_ctx (); 8688int 8689main () 8690{ 8691return md5_init_ctx (); 8692 ; 8693 return 0; 8694} 8695_ACEOF 8696rm -f conftest.$ac_objext conftest$ac_exeext 8697if { (ac_try="$ac_link" 8698case "(($ac_try" in 8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8700 *) ac_try_echo=$ac_try;; 8701esac 8702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8703 (eval "$ac_link") 2>conftest.er1 8704 ac_status=$? 8705 grep -v '^ *+' conftest.er1 >conftest.err 8706 rm -f conftest.er1 8707 cat conftest.err >&5 8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8709 (exit $ac_status); } && { 8710 test -z "$ac_c_werror_flag" || 8711 test ! -s conftest.err 8712 } && test -s conftest$ac_exeext && 8713 $as_test_x conftest$ac_exeext; then 8714 ac_cv_lib_crypt_md5_init_ctx=yes 8715else 8716 echo "$as_me: failed program was:" >&5 8717sed 's/^/| /' conftest.$ac_ext >&5 8718 8719 ac_cv_lib_crypt_md5_init_ctx=no 8720fi 8721 8722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8723 conftest$ac_exeext conftest.$ac_ext 8724LIBS=$ac_check_lib_save_LIBS 8725fi 8726{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_md5_init_ctx" >&5 8727echo "${ECHO_T}$ac_cv_lib_crypt_md5_init_ctx" >&6; } 8728if test $ac_cv_lib_crypt_md5_init_ctx = yes; then 8729 HAS_LIBCRYPT_MD5=1 8730else 8731 HAS_LIBCRYPT_MD5=0 8732fi 8733 8734fi 8735 8736 8737 8738# ----------------------------------------------------------------------- 8739{ echo "$as_me:$LINENO: checking if assert needs __eprintf" >&5 8740echo $ECHO_N "checking if assert needs __eprintf... $ECHO_C" >&6; } 8741cat > conftest.$ac_ext <<EOF 8742#include "confdefs.h" 8743#include "assert.h" 8744int main(argc) 8745 int argc; 8746{ 8747assert(argc); 8748; return 0; } 8749EOF 8750${TCL_CC-cc} -c $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext 1>&5 8751if test "x`nm conftest.o |grep __eprintf`" != "x"; then 8752 { echo "$as_me:$LINENO: result: yes" >&5 8753echo "${ECHO_T}yes" >&6; } 8754 8755 8756 vars="compat/_eprintf.c" 8757 for i in $vars; do 8758 case $i in 8759 \$*) 8760 # allow $-var names 8761 PKG_SOURCES="$PKG_SOURCES $i" 8762 PKG_OBJECTS="$PKG_OBJECTS $i" 8763 ;; 8764 *) 8765 # check for existence - allows for generic/win/unix VPATH 8766 # To add more dirs here (like 'src'), you have to update VPATH 8767 # in Makefile.in as well 8768 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 8769 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 8770 ; then 8771 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 8772echo "$as_me: error: could not find source file '$i'" >&2;} 8773 { (exit 1); exit 1; }; } 8774 fi 8775 PKG_SOURCES="$PKG_SOURCES $i" 8776 # this assumes it is in a VPATH dir 8777 i=`basename $i` 8778 # handle user calling this before or after TEA_SETUP_COMPILER 8779 if test x"${OBJEXT}" != x ; then 8780 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 8781 else 8782 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 8783 fi 8784 PKG_OBJECTS="$PKG_OBJECTS $j" 8785 ;; 8786 esac 8787 done 8788 8789 8790 8791else 8792 { echo "$as_me:$LINENO: result: no" >&5 8793echo "${ECHO_T}no" >&6; } 8794fi 8795 8796#-------------------------------------------------------------------- 8797# __CHANGE__ 8798# Choose which headers you need. Extension authors should try very 8799# hard to only rely on the Tcl public header files. Internal headers 8800# contain private data structures and are subject to change without 8801# notice. 8802# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 8803#-------------------------------------------------------------------- 8804 8805case "`uname -s`" in 8806 *win32* | *WIN32* | *CYGWIN_NT* | *CYGWIN_98* | *CYGWIN_95* | MINGW32_NT*) 8807 # On windows tclLoadWin.c depends on internal headers. Darn. 8808 8809 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 8810echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 8811 8812 8813# Check whether --with-tclinclude was given. 8814if test "${with_tclinclude+set}" = set; then 8815 withval=$with_tclinclude; with_tclinclude=${withval} 8816fi 8817 8818 8819 if test "${ac_cv_c_tclh+set}" = set; then 8820 echo $ECHO_N "(cached) $ECHO_C" >&6 8821else 8822 8823 # Use the value from --with-tclinclude, if it was given 8824 8825 if test x"${with_tclinclude}" != x ; then 8826 if test -f "${with_tclinclude}/tcl.h" ; then 8827 ac_cv_c_tclh=${with_tclinclude} 8828 else 8829 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 8830echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 8831 { (exit 1); exit 1; }; } 8832 fi 8833 else 8834 if test "`uname -s`" = "Darwin"; then 8835 # If Tcl was built as a framework, attempt to use 8836 # the framework's Headers directory 8837 case ${TCL_DEFS} in 8838 *TCL_FRAMEWORK*) 8839 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 8840 ;; 8841 esac 8842 fi 8843 8844 # Look in the source dir only if Tcl is not installed, 8845 # and in that situation, look there before installed locations. 8846 if test -f "${TCL_BIN_DIR}/Makefile" ; then 8847 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 8848 fi 8849 8850 # Check order: pkg --prefix location, Tcl's --prefix location, 8851 # relative to directory of tclConfig.sh. 8852 8853 eval "temp_includedir=${includedir}" 8854 list="$list \ 8855 `ls -d ${temp_includedir} 2>/dev/null` \ 8856 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 8857 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 8858 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 8859 list="$list /usr/local/include /usr/include" 8860 if test x"${TCL_INCLUDE_SPEC}" != x ; then 8861 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 8862 list="$list `ls -d ${d} 2>/dev/null`" 8863 fi 8864 fi 8865 for i in $list ; do 8866 if test -f "$i/tcl.h" ; then 8867 ac_cv_c_tclh=$i 8868 break 8869 fi 8870 done 8871 fi 8872 8873fi 8874 8875 8876 # Print a message based on how we determined the include path 8877 8878 if test x"${ac_cv_c_tclh}" = x ; then 8879 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 8880echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 8881 { (exit 1); exit 1; }; } 8882 else 8883 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 8884echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 8885 fi 8886 8887 # Convert to a native path and substitute into the output files. 8888 8889 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 8890 8891 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 8892 8893 8894 8895 8896 # Allow for --with-tclinclude to take effect and define ${ac_cv_c_tclh} 8897 8898 { echo "$as_me:$LINENO: checking for Tcl private include files" >&5 8899echo $ECHO_N "checking for Tcl private include files... $ECHO_C" >&6; } 8900 8901 TCL_SRC_DIR_NATIVE=`${CYGPATH} ${TCL_SRC_DIR}` 8902 TCL_TOP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}\" 8903 8904 # Check to see if tcl<Plat>Port.h isn't already with the public headers 8905 # Don't look for tclInt.h because that resides with tcl.h in the core 8906 # sources, but the <plat>Port headers are in a different directory 8907 if test "${TEA_PLATFORM}" = "windows" -a \ 8908 -f "${ac_cv_c_tclh}/tclWinPort.h"; then 8909 result="private headers found with public headers" 8910 elif test "${TEA_PLATFORM}" = "unix" -a \ 8911 -f "${ac_cv_c_tclh}/tclUnixPort.h"; then 8912 result="private headers found with public headers" 8913 else 8914 TCL_GENERIC_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/generic\" 8915 if test "${TEA_PLATFORM}" = "windows"; then 8916 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/win\" 8917 else 8918 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/unix\" 8919 fi 8920 # Overwrite the previous TCL_INCLUDES as this should capture both 8921 # public and private headers in the same set. 8922 # We want to ensure these are substituted so as not to require 8923 # any *_NATIVE vars be defined in the Makefile 8924 TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}" 8925 if test "`uname -s`" = "Darwin"; then 8926 # If Tcl was built as a framework, attempt to use 8927 # the framework's Headers and PrivateHeaders directories 8928 case ${TCL_DEFS} in 8929 *TCL_FRAMEWORK*) 8930 if test -d "${TCL_BIN_DIR}/Headers" -a \ 8931 -d "${TCL_BIN_DIR}/PrivateHeaders"; then 8932 TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}" 8933 else 8934 TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`" 8935 fi 8936 ;; 8937 esac 8938 result="Using ${TCL_INCLUDES}" 8939 else 8940 if test ! -f "${TCL_SRC_DIR}/generic/tclInt.h" ; then 8941 { { echo "$as_me:$LINENO: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&5 8942echo "$as_me: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&2;} 8943 { (exit 1); exit 1; }; } 8944 fi 8945 result="Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" 8946 fi 8947 fi 8948 8949 8950 8951 8952 { echo "$as_me:$LINENO: result: ${result}" >&5 8953echo "${ECHO_T}${result}" >&6; } 8954 8955 ;; 8956 *) 8957 # Everywhere else we can stick with the public ones. 8958 8959 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 8960echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 8961 8962 8963# Check whether --with-tclinclude was given. 8964if test "${with_tclinclude+set}" = set; then 8965 withval=$with_tclinclude; with_tclinclude=${withval} 8966fi 8967 8968 8969 if test "${ac_cv_c_tclh+set}" = set; then 8970 echo $ECHO_N "(cached) $ECHO_C" >&6 8971else 8972 8973 # Use the value from --with-tclinclude, if it was given 8974 8975 if test x"${with_tclinclude}" != x ; then 8976 if test -f "${with_tclinclude}/tcl.h" ; then 8977 ac_cv_c_tclh=${with_tclinclude} 8978 else 8979 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 8980echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 8981 { (exit 1); exit 1; }; } 8982 fi 8983 else 8984 if test "`uname -s`" = "Darwin"; then 8985 # If Tcl was built as a framework, attempt to use 8986 # the framework's Headers directory 8987 case ${TCL_DEFS} in 8988 *TCL_FRAMEWORK*) 8989 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 8990 ;; 8991 esac 8992 fi 8993 8994 # Look in the source dir only if Tcl is not installed, 8995 # and in that situation, look there before installed locations. 8996 if test -f "${TCL_BIN_DIR}/Makefile" ; then 8997 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 8998 fi 8999 9000 # Check order: pkg --prefix location, Tcl's --prefix location, 9001 # relative to directory of tclConfig.sh. 9002 9003 eval "temp_includedir=${includedir}" 9004 list="$list \ 9005 `ls -d ${temp_includedir} 2>/dev/null` \ 9006 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 9007 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 9008 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 9009 list="$list /usr/local/include /usr/include" 9010 if test x"${TCL_INCLUDE_SPEC}" != x ; then 9011 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 9012 list="$list `ls -d ${d} 2>/dev/null`" 9013 fi 9014 fi 9015 for i in $list ; do 9016 if test -f "$i/tcl.h" ; then 9017 ac_cv_c_tclh=$i 9018 break 9019 fi 9020 done 9021 fi 9022 9023fi 9024 9025 9026 # Print a message based on how we determined the include path 9027 9028 if test x"${ac_cv_c_tclh}" = x ; then 9029 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 9030echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 9031 { (exit 1); exit 1; }; } 9032 else 9033 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 9034echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 9035 fi 9036 9037 # Convert to a native path and substitute into the output files. 9038 9039 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 9040 9041 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 9042 9043 9044 9045 ;; 9046esac 9047 9048#TEA_PUBLIC_TCL_HEADERS 9049#TEA_PRIVATE_TCL_HEADERS 9050 9051#-------------------------------------------------------------------- 9052# A few miscellaneous platform-specific items: 9053# 9054# We have to define a special symbol for Windows (BUILD_Trf in this 9055# case) so that we create the export library with the dll. 9056# 9057# Windows creates a few extra files that need to be cleaned up. 9058# We can add more files to clean if our extension creates any extra 9059# files in the future. 9060# 9061# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 9062# These will be appended to the current set of compiler flags for 9063# your system. 9064#-------------------------------------------------------------------- 9065 9066if test "${TEA_PLATFORM}" = "windows" ; then 9067 cat >>confdefs.h <<\_ACEOF 9068#define BUILD_Trf 1 9069_ACEOF 9070 9071 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" 9072else 9073 CLEANFILES="pkgIndex.tcl" 9074fi 9075 9076 9077#-------------------------------------------------------------------- 9078# Check whether --enable-threads or --disable-threads was given. 9079# So far only Tcl responds to this one. 9080#-------------------------------------------------------------------- 9081 9082 9083 # Check whether --enable-threads was given. 9084if test "${enable_threads+set}" = set; then 9085 enableval=$enable_threads; tcl_ok=$enableval 9086else 9087 tcl_ok=yes 9088fi 9089 9090 9091 if test "${enable_threads+set}" = set; then 9092 enableval="$enable_threads" 9093 tcl_ok=$enableval 9094 else 9095 tcl_ok=yes 9096 fi 9097 9098 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 9099 TCL_THREADS=1 9100 9101 if test "${TEA_PLATFORM}" != "windows" ; then 9102 # We are always OK on Windows, so check what this platform wants: 9103 9104 # USE_THREAD_ALLOC tells us to try the special thread-based 9105 # allocator that significantly reduces lock contention 9106 9107cat >>confdefs.h <<\_ACEOF 9108#define USE_THREAD_ALLOC 1 9109_ACEOF 9110 9111 9112cat >>confdefs.h <<\_ACEOF 9113#define _REENTRANT 1 9114_ACEOF 9115 9116 if test "`uname -s`" = "SunOS" ; then 9117 9118cat >>confdefs.h <<\_ACEOF 9119#define _POSIX_PTHREAD_SEMANTICS 1 9120_ACEOF 9121 9122 fi 9123 9124cat >>confdefs.h <<\_ACEOF 9125#define _THREAD_SAFE 1 9126_ACEOF 9127 9128 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 9129echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 9130if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 9131 echo $ECHO_N "(cached) $ECHO_C" >&6 9132else 9133 ac_check_lib_save_LIBS=$LIBS 9134LIBS="-lpthread $LIBS" 9135cat >conftest.$ac_ext <<_ACEOF 9136/* confdefs.h. */ 9137_ACEOF 9138cat confdefs.h >>conftest.$ac_ext 9139cat >>conftest.$ac_ext <<_ACEOF 9140/* end confdefs.h. */ 9141 9142/* Override any GCC internal prototype to avoid an error. 9143 Use char because int might match the return type of a GCC 9144 builtin and then its argument prototype would still apply. */ 9145#ifdef __cplusplus 9146extern "C" 9147#endif 9148char pthread_mutex_init (); 9149int 9150main () 9151{ 9152return pthread_mutex_init (); 9153 ; 9154 return 0; 9155} 9156_ACEOF 9157rm -f conftest.$ac_objext conftest$ac_exeext 9158if { (ac_try="$ac_link" 9159case "(($ac_try" in 9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9161 *) ac_try_echo=$ac_try;; 9162esac 9163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9164 (eval "$ac_link") 2>conftest.er1 9165 ac_status=$? 9166 grep -v '^ *+' conftest.er1 >conftest.err 9167 rm -f conftest.er1 9168 cat conftest.err >&5 9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9170 (exit $ac_status); } && { 9171 test -z "$ac_c_werror_flag" || 9172 test ! -s conftest.err 9173 } && test -s conftest$ac_exeext && 9174 $as_test_x conftest$ac_exeext; then 9175 ac_cv_lib_pthread_pthread_mutex_init=yes 9176else 9177 echo "$as_me: failed program was:" >&5 9178sed 's/^/| /' conftest.$ac_ext >&5 9179 9180 ac_cv_lib_pthread_pthread_mutex_init=no 9181fi 9182 9183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9184 conftest$ac_exeext conftest.$ac_ext 9185LIBS=$ac_check_lib_save_LIBS 9186fi 9187{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 9188echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 9189if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 9190 tcl_ok=yes 9191else 9192 tcl_ok=no 9193fi 9194 9195 if test "$tcl_ok" = "no"; then 9196 # Check a little harder for __pthread_mutex_init in the same 9197 # library, as some systems hide it there until pthread.h is 9198 # defined. We could alternatively do an AC_TRY_COMPILE with 9199 # pthread.h, but that will work with libpthread really doesn't 9200 # exist, like AIX 4.2. [Bug: 4359] 9201 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 9202echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 9203if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 9204 echo $ECHO_N "(cached) $ECHO_C" >&6 9205else 9206 ac_check_lib_save_LIBS=$LIBS 9207LIBS="-lpthread $LIBS" 9208cat >conftest.$ac_ext <<_ACEOF 9209/* confdefs.h. */ 9210_ACEOF 9211cat confdefs.h >>conftest.$ac_ext 9212cat >>conftest.$ac_ext <<_ACEOF 9213/* end confdefs.h. */ 9214 9215/* Override any GCC internal prototype to avoid an error. 9216 Use char because int might match the return type of a GCC 9217 builtin and then its argument prototype would still apply. */ 9218#ifdef __cplusplus 9219extern "C" 9220#endif 9221char __pthread_mutex_init (); 9222int 9223main () 9224{ 9225return __pthread_mutex_init (); 9226 ; 9227 return 0; 9228} 9229_ACEOF 9230rm -f conftest.$ac_objext conftest$ac_exeext 9231if { (ac_try="$ac_link" 9232case "(($ac_try" in 9233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9234 *) ac_try_echo=$ac_try;; 9235esac 9236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9237 (eval "$ac_link") 2>conftest.er1 9238 ac_status=$? 9239 grep -v '^ *+' conftest.er1 >conftest.err 9240 rm -f conftest.er1 9241 cat conftest.err >&5 9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9243 (exit $ac_status); } && { 9244 test -z "$ac_c_werror_flag" || 9245 test ! -s conftest.err 9246 } && test -s conftest$ac_exeext && 9247 $as_test_x conftest$ac_exeext; then 9248 ac_cv_lib_pthread___pthread_mutex_init=yes 9249else 9250 echo "$as_me: failed program was:" >&5 9251sed 's/^/| /' conftest.$ac_ext >&5 9252 9253 ac_cv_lib_pthread___pthread_mutex_init=no 9254fi 9255 9256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9257 conftest$ac_exeext conftest.$ac_ext 9258LIBS=$ac_check_lib_save_LIBS 9259fi 9260{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 9261echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 9262if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 9263 tcl_ok=yes 9264else 9265 tcl_ok=no 9266fi 9267 9268 fi 9269 9270 if test "$tcl_ok" = "yes"; then 9271 # The space is needed 9272 THREADS_LIBS=" -lpthread" 9273 else 9274 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 9275echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 9276if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 9277 echo $ECHO_N "(cached) $ECHO_C" >&6 9278else 9279 ac_check_lib_save_LIBS=$LIBS 9280LIBS="-lpthreads $LIBS" 9281cat >conftest.$ac_ext <<_ACEOF 9282/* confdefs.h. */ 9283_ACEOF 9284cat confdefs.h >>conftest.$ac_ext 9285cat >>conftest.$ac_ext <<_ACEOF 9286/* end confdefs.h. */ 9287 9288/* Override any GCC internal prototype to avoid an error. 9289 Use char because int might match the return type of a GCC 9290 builtin and then its argument prototype would still apply. */ 9291#ifdef __cplusplus 9292extern "C" 9293#endif 9294char pthread_mutex_init (); 9295int 9296main () 9297{ 9298return pthread_mutex_init (); 9299 ; 9300 return 0; 9301} 9302_ACEOF 9303rm -f conftest.$ac_objext conftest$ac_exeext 9304if { (ac_try="$ac_link" 9305case "(($ac_try" in 9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9307 *) ac_try_echo=$ac_try;; 9308esac 9309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9310 (eval "$ac_link") 2>conftest.er1 9311 ac_status=$? 9312 grep -v '^ *+' conftest.er1 >conftest.err 9313 rm -f conftest.er1 9314 cat conftest.err >&5 9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9316 (exit $ac_status); } && { 9317 test -z "$ac_c_werror_flag" || 9318 test ! -s conftest.err 9319 } && test -s conftest$ac_exeext && 9320 $as_test_x conftest$ac_exeext; then 9321 ac_cv_lib_pthreads_pthread_mutex_init=yes 9322else 9323 echo "$as_me: failed program was:" >&5 9324sed 's/^/| /' conftest.$ac_ext >&5 9325 9326 ac_cv_lib_pthreads_pthread_mutex_init=no 9327fi 9328 9329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9330 conftest$ac_exeext conftest.$ac_ext 9331LIBS=$ac_check_lib_save_LIBS 9332fi 9333{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 9334echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 9335if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 9336 tcl_ok=yes 9337else 9338 tcl_ok=no 9339fi 9340 9341 if test "$tcl_ok" = "yes"; then 9342 # The space is needed 9343 THREADS_LIBS=" -lpthreads" 9344 else 9345 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 9346echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 9347if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 9348 echo $ECHO_N "(cached) $ECHO_C" >&6 9349else 9350 ac_check_lib_save_LIBS=$LIBS 9351LIBS="-lc $LIBS" 9352cat >conftest.$ac_ext <<_ACEOF 9353/* confdefs.h. */ 9354_ACEOF 9355cat confdefs.h >>conftest.$ac_ext 9356cat >>conftest.$ac_ext <<_ACEOF 9357/* end confdefs.h. */ 9358 9359/* Override any GCC internal prototype to avoid an error. 9360 Use char because int might match the return type of a GCC 9361 builtin and then its argument prototype would still apply. */ 9362#ifdef __cplusplus 9363extern "C" 9364#endif 9365char pthread_mutex_init (); 9366int 9367main () 9368{ 9369return pthread_mutex_init (); 9370 ; 9371 return 0; 9372} 9373_ACEOF 9374rm -f conftest.$ac_objext conftest$ac_exeext 9375if { (ac_try="$ac_link" 9376case "(($ac_try" in 9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9378 *) ac_try_echo=$ac_try;; 9379esac 9380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9381 (eval "$ac_link") 2>conftest.er1 9382 ac_status=$? 9383 grep -v '^ *+' conftest.er1 >conftest.err 9384 rm -f conftest.er1 9385 cat conftest.err >&5 9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9387 (exit $ac_status); } && { 9388 test -z "$ac_c_werror_flag" || 9389 test ! -s conftest.err 9390 } && test -s conftest$ac_exeext && 9391 $as_test_x conftest$ac_exeext; then 9392 ac_cv_lib_c_pthread_mutex_init=yes 9393else 9394 echo "$as_me: failed program was:" >&5 9395sed 's/^/| /' conftest.$ac_ext >&5 9396 9397 ac_cv_lib_c_pthread_mutex_init=no 9398fi 9399 9400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9401 conftest$ac_exeext conftest.$ac_ext 9402LIBS=$ac_check_lib_save_LIBS 9403fi 9404{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 9405echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 9406if test $ac_cv_lib_c_pthread_mutex_init = yes; then 9407 tcl_ok=yes 9408else 9409 tcl_ok=no 9410fi 9411 9412 if test "$tcl_ok" = "no"; then 9413 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 9414echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 9415if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 9416 echo $ECHO_N "(cached) $ECHO_C" >&6 9417else 9418 ac_check_lib_save_LIBS=$LIBS 9419LIBS="-lc_r $LIBS" 9420cat >conftest.$ac_ext <<_ACEOF 9421/* confdefs.h. */ 9422_ACEOF 9423cat confdefs.h >>conftest.$ac_ext 9424cat >>conftest.$ac_ext <<_ACEOF 9425/* end confdefs.h. */ 9426 9427/* Override any GCC internal prototype to avoid an error. 9428 Use char because int might match the return type of a GCC 9429 builtin and then its argument prototype would still apply. */ 9430#ifdef __cplusplus 9431extern "C" 9432#endif 9433char pthread_mutex_init (); 9434int 9435main () 9436{ 9437return pthread_mutex_init (); 9438 ; 9439 return 0; 9440} 9441_ACEOF 9442rm -f conftest.$ac_objext conftest$ac_exeext 9443if { (ac_try="$ac_link" 9444case "(($ac_try" in 9445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9446 *) ac_try_echo=$ac_try;; 9447esac 9448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9449 (eval "$ac_link") 2>conftest.er1 9450 ac_status=$? 9451 grep -v '^ *+' conftest.er1 >conftest.err 9452 rm -f conftest.er1 9453 cat conftest.err >&5 9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9455 (exit $ac_status); } && { 9456 test -z "$ac_c_werror_flag" || 9457 test ! -s conftest.err 9458 } && test -s conftest$ac_exeext && 9459 $as_test_x conftest$ac_exeext; then 9460 ac_cv_lib_c_r_pthread_mutex_init=yes 9461else 9462 echo "$as_me: failed program was:" >&5 9463sed 's/^/| /' conftest.$ac_ext >&5 9464 9465 ac_cv_lib_c_r_pthread_mutex_init=no 9466fi 9467 9468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9469 conftest$ac_exeext conftest.$ac_ext 9470LIBS=$ac_check_lib_save_LIBS 9471fi 9472{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 9473echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 9474if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 9475 tcl_ok=yes 9476else 9477 tcl_ok=no 9478fi 9479 9480 if test "$tcl_ok" = "yes"; then 9481 # The space is needed 9482 THREADS_LIBS=" -pthread" 9483 else 9484 TCL_THREADS=0 9485 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 9486echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 9487 fi 9488 fi 9489 fi 9490 fi 9491 fi 9492 else 9493 TCL_THREADS=0 9494 fi 9495 # Do checking message here to not mess up interleaved configure output 9496 { echo "$as_me:$LINENO: checking for building with threads" >&5 9497echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 9498 if test "${TCL_THREADS}" = 1; then 9499 9500cat >>confdefs.h <<\_ACEOF 9501#define TCL_THREADS 1 9502_ACEOF 9503 9504 { echo "$as_me:$LINENO: result: yes (default)" >&5 9505echo "${ECHO_T}yes (default)" >&6; } 9506 else 9507 { echo "$as_me:$LINENO: result: no" >&5 9508echo "${ECHO_T}no" >&6; } 9509 fi 9510 # TCL_THREADS sanity checking. See if our request for building with 9511 # threads is the same as the way Tcl was built. If not, warn the user. 9512 case ${TCL_DEFS} in 9513 *THREADS=1*) 9514 if test "${TCL_THREADS}" = "0"; then 9515 { echo "$as_me:$LINENO: WARNING: 9516 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 9517 that IS thread-enabled. It is recommended to use --enable-threads." >&5 9518echo "$as_me: WARNING: 9519 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 9520 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 9521 fi 9522 ;; 9523 *) 9524 if test "${TCL_THREADS}" = "1"; then 9525 { echo "$as_me:$LINENO: WARNING: 9526 --enable-threads requested, but building against a Tcl that is NOT 9527 thread-enabled. This is an OK configuration that will also run in 9528 a thread-enabled core." >&5 9529echo "$as_me: WARNING: 9530 --enable-threads requested, but building against a Tcl that is NOT 9531 thread-enabled. This is an OK configuration that will also run in 9532 a thread-enabled core." >&2;} 9533 fi 9534 ;; 9535 esac 9536 9537 9538 9539#-------------------------------------------------------------------- 9540# The statement below defines a collection of symbols related to 9541# building as a shared library instead of a static library. 9542#-------------------------------------------------------------------- 9543 9544 9545 { echo "$as_me:$LINENO: checking how to build libraries" >&5 9546echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 9547 # Check whether --enable-shared was given. 9548if test "${enable_shared+set}" = set; then 9549 enableval=$enable_shared; tcl_ok=$enableval 9550else 9551 tcl_ok=yes 9552fi 9553 9554 9555 if test "${enable_shared+set}" = set; then 9556 enableval="$enable_shared" 9557 tcl_ok=$enableval 9558 else 9559 tcl_ok=yes 9560 fi 9561 9562 if test "$tcl_ok" = "yes" ; then 9563 { echo "$as_me:$LINENO: result: shared" >&5 9564echo "${ECHO_T}shared" >&6; } 9565 SHARED_BUILD=1 9566 else 9567 { echo "$as_me:$LINENO: result: static" >&5 9568echo "${ECHO_T}static" >&6; } 9569 SHARED_BUILD=0 9570 9571cat >>confdefs.h <<\_ACEOF 9572#define STATIC_BUILD 1 9573_ACEOF 9574 9575 fi 9576 9577 9578 9579#-------------------------------------------------------------------- 9580# This macro figures out what flags to use with the compiler/linker 9581# when building shared/static debug/optimized objects. This information 9582# can be taken from the tclConfig.sh file, but this figures it all out. 9583#-------------------------------------------------------------------- 9584 9585 9586 9587 9588 # Step 0.a: Enable 64 bit support? 9589 9590 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 9591echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 9592 # Check whether --enable-64bit was given. 9593if test "${enable_64bit+set}" = set; then 9594 enableval=$enable_64bit; do64bit=$enableval 9595else 9596 do64bit=no 9597fi 9598 9599 { echo "$as_me:$LINENO: result: $do64bit" >&5 9600echo "${ECHO_T}$do64bit" >&6; } 9601 9602 # Step 0.b: Enable Solaris 64 bit VIS support? 9603 9604 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 9605echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 9606 # Check whether --enable-64bit-vis was given. 9607if test "${enable_64bit_vis+set}" = set; then 9608 enableval=$enable_64bit_vis; do64bitVIS=$enableval 9609else 9610 do64bitVIS=no 9611fi 9612 9613 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 9614echo "${ECHO_T}$do64bitVIS" >&6; } 9615 # Force 64bit on with VIS 9616 if test "$do64bitVIS" = "yes"; then 9617 do64bit=yes 9618fi 9619 9620 9621 # Step 0.c: Check if visibility support is available. Do this here so 9622 # that platform specific alternatives can be used below if this fails. 9623 9624 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 9625echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 9626if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 9627 echo $ECHO_N "(cached) $ECHO_C" >&6 9628else 9629 9630 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 9631 cat >conftest.$ac_ext <<_ACEOF 9632/* confdefs.h. */ 9633_ACEOF 9634cat confdefs.h >>conftest.$ac_ext 9635cat >>conftest.$ac_ext <<_ACEOF 9636/* end confdefs.h. */ 9637 9638 extern __attribute__((__visibility__("hidden"))) void f(void); 9639 void f(void) {} 9640int 9641main () 9642{ 9643f(); 9644 ; 9645 return 0; 9646} 9647_ACEOF 9648rm -f conftest.$ac_objext conftest$ac_exeext 9649if { (ac_try="$ac_link" 9650case "(($ac_try" in 9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9652 *) ac_try_echo=$ac_try;; 9653esac 9654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9655 (eval "$ac_link") 2>conftest.er1 9656 ac_status=$? 9657 grep -v '^ *+' conftest.er1 >conftest.err 9658 rm -f conftest.er1 9659 cat conftest.err >&5 9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9661 (exit $ac_status); } && { 9662 test -z "$ac_c_werror_flag" || 9663 test ! -s conftest.err 9664 } && test -s conftest$ac_exeext && 9665 $as_test_x conftest$ac_exeext; then 9666 tcl_cv_cc_visibility_hidden=yes 9667else 9668 echo "$as_me: failed program was:" >&5 9669sed 's/^/| /' conftest.$ac_ext >&5 9670 9671 tcl_cv_cc_visibility_hidden=no 9672fi 9673 9674rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9675 conftest$ac_exeext conftest.$ac_ext 9676 CFLAGS=$hold_cflags 9677fi 9678{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 9679echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 9680 if test $tcl_cv_cc_visibility_hidden = yes; then 9681 9682 9683cat >>confdefs.h <<\_ACEOF 9684#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 9685_ACEOF 9686 9687 9688fi 9689 9690 9691 # Step 0.d: Disable -rpath support? 9692 9693 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 9694echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 9695 # Check whether --enable-rpath was given. 9696if test "${enable_rpath+set}" = set; then 9697 enableval=$enable_rpath; doRpath=$enableval 9698else 9699 doRpath=yes 9700fi 9701 9702 { echo "$as_me:$LINENO: result: $doRpath" >&5 9703echo "${ECHO_T}$doRpath" >&6; } 9704 9705 # TEA specific: Cross-compiling options for Windows/CE builds? 9706 9707 if test "${TEA_PLATFORM}" = windows; then 9708 9709 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 9710echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 9711 # Check whether --enable-wince was given. 9712if test "${enable_wince+set}" = set; then 9713 enableval=$enable_wince; doWince=$enableval 9714else 9715 doWince=no 9716fi 9717 9718 { echo "$as_me:$LINENO: result: $doWince" >&5 9719echo "${ECHO_T}$doWince" >&6; } 9720 9721fi 9722 9723 9724 # Step 1: set the variable "system" to hold the name and version number 9725 # for the system. 9726 9727 9728 { echo "$as_me:$LINENO: checking system version" >&5 9729echo $ECHO_N "checking system version... $ECHO_C" >&6; } 9730if test "${tcl_cv_sys_version+set}" = set; then 9731 echo $ECHO_N "(cached) $ECHO_C" >&6 9732else 9733 9734 # TEA specific: 9735 if test "${TEA_PLATFORM}" = "windows" ; then 9736 tcl_cv_sys_version=windows 9737 elif test -f /usr/lib/NextStep/software_version; then 9738 tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` 9739 else 9740 tcl_cv_sys_version=`uname -s`-`uname -r` 9741 if test "$?" -ne 0 ; then 9742 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 9743echo "$as_me: WARNING: can't find uname command" >&2;} 9744 tcl_cv_sys_version=unknown 9745 else 9746 # Special check for weird MP-RAS system (uname returns weird 9747 # results, and the version is kept in special file). 9748 9749 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then 9750 tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` 9751 fi 9752 if test "`uname -s`" = "AIX" ; then 9753 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 9754 fi 9755 fi 9756 fi 9757 9758fi 9759{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 9760echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 9761 system=$tcl_cv_sys_version 9762 9763 9764 # Step 2: check for existence of -ldl library. This is needed because 9765 # Linux can use either -ldl or -ldld for dynamic loading. 9766 9767 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9768echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9769if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9770 echo $ECHO_N "(cached) $ECHO_C" >&6 9771else 9772 ac_check_lib_save_LIBS=$LIBS 9773LIBS="-ldl $LIBS" 9774cat >conftest.$ac_ext <<_ACEOF 9775/* confdefs.h. */ 9776_ACEOF 9777cat confdefs.h >>conftest.$ac_ext 9778cat >>conftest.$ac_ext <<_ACEOF 9779/* end confdefs.h. */ 9780 9781/* Override any GCC internal prototype to avoid an error. 9782 Use char because int might match the return type of a GCC 9783 builtin and then its argument prototype would still apply. */ 9784#ifdef __cplusplus 9785extern "C" 9786#endif 9787char dlopen (); 9788int 9789main () 9790{ 9791return dlopen (); 9792 ; 9793 return 0; 9794} 9795_ACEOF 9796rm -f conftest.$ac_objext conftest$ac_exeext 9797if { (ac_try="$ac_link" 9798case "(($ac_try" in 9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9800 *) ac_try_echo=$ac_try;; 9801esac 9802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9803 (eval "$ac_link") 2>conftest.er1 9804 ac_status=$? 9805 grep -v '^ *+' conftest.er1 >conftest.err 9806 rm -f conftest.er1 9807 cat conftest.err >&5 9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9809 (exit $ac_status); } && { 9810 test -z "$ac_c_werror_flag" || 9811 test ! -s conftest.err 9812 } && test -s conftest$ac_exeext && 9813 $as_test_x conftest$ac_exeext; then 9814 ac_cv_lib_dl_dlopen=yes 9815else 9816 echo "$as_me: failed program was:" >&5 9817sed 's/^/| /' conftest.$ac_ext >&5 9818 9819 ac_cv_lib_dl_dlopen=no 9820fi 9821 9822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9823 conftest$ac_exeext conftest.$ac_ext 9824LIBS=$ac_check_lib_save_LIBS 9825fi 9826{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9827echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9828if test $ac_cv_lib_dl_dlopen = yes; then 9829 have_dl=yes 9830else 9831 have_dl=no 9832fi 9833 9834 9835 # Require ranlib early so we can override it in special cases below. 9836 9837 9838 9839 # Step 3: set configuration options based on system name and version. 9840 # This is similar to Tcl's unix/tcl.m4 except that we've added a 9841 # "windows" case. 9842 9843 do64bit_ok=no 9844 LDFLAGS_ORIG="$LDFLAGS" 9845 # When ld needs options to work in 64-bit mode, put them in 9846 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 9847 # is disabled by the user. [Bug 1016796] 9848 LDFLAGS_ARCH="" 9849 TCL_EXPORT_FILE_SUFFIX="" 9850 UNSHARED_LIB_SUFFIX="" 9851 # TEA specific: use PACKAGE_VERSION instead of VERSION 9852 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 9853 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 9854 TCL_LIB_VERSIONS_OK=ok 9855 CFLAGS_DEBUG=-g 9856 CFLAGS_OPTIMIZE=-O 9857 if test "$GCC" = yes; then 9858 9859 # TEA specific: 9860 CFLAGS_OPTIMIZE=-O2 9861 CFLAGS_WARNING="-Wall -Wno-implicit-int" 9862 9863else 9864 CFLAGS_WARNING="" 9865fi 9866 9867 TCL_NEEDS_EXP_FILE=0 9868 TCL_BUILD_EXP_FILE="" 9869 TCL_EXP_FILE="" 9870 # Extract the first word of "ar", so it can be a program name with args. 9871set dummy ar; ac_word=$2 9872{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9874if test "${ac_cv_prog_AR+set}" = set; then 9875 echo $ECHO_N "(cached) $ECHO_C" >&6 9876else 9877 if test -n "$AR"; then 9878 ac_cv_prog_AR="$AR" # Let the user override the test. 9879else 9880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9881for as_dir in $PATH 9882do 9883 IFS=$as_save_IFS 9884 test -z "$as_dir" && as_dir=. 9885 for ac_exec_ext in '' $ac_executable_extensions; do 9886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9887 ac_cv_prog_AR="ar" 9888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9889 break 2 9890 fi 9891done 9892done 9893IFS=$as_save_IFS 9894 9895fi 9896fi 9897AR=$ac_cv_prog_AR 9898if test -n "$AR"; then 9899 { echo "$as_me:$LINENO: result: $AR" >&5 9900echo "${ECHO_T}$AR" >&6; } 9901else 9902 { echo "$as_me:$LINENO: result: no" >&5 9903echo "${ECHO_T}no" >&6; } 9904fi 9905 9906 9907 STLIB_LD='${AR} cr' 9908 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 9909 case $system in 9910 # TEA specific: 9911 windows) 9912 # This is a 2-stage check to make sure we have the 64-bit SDK 9913 # We have to know where the SDK is installed. 9914 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 9915 # MACHINE is IX86 for LINK, but this is used by the manifest, 9916 # which requires x86|amd64|ia64. 9917 MACHINE="X86" 9918 if test "$do64bit" != "no" ; then 9919 if test "x${MSSDK}x" = "xx" ; then 9920 MSSDK="C:/Progra~1/Microsoft Platform SDK" 9921 fi 9922 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 9923 PATH64="" 9924 case "$do64bit" in 9925 amd64|x64|yes) 9926 MACHINE="AMD64" ; # default to AMD64 64-bit build 9927 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 9928 ;; 9929 ia64) 9930 MACHINE="IA64" 9931 PATH64="${MSSDK}/Bin/Win64" 9932 ;; 9933 esac 9934 if test ! -d "${PATH64}" ; then 9935 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 9936echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 9937 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 9938echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 9939 do64bit="no" 9940 else 9941 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 9942echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 9943 do64bit_ok="yes" 9944 fi 9945 fi 9946 9947 if test "$doWince" != "no" ; then 9948 if test "$do64bit" != "no" ; then 9949 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 9950echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 9951 { (exit 1); exit 1; }; } 9952 fi 9953 if test "$GCC" = "yes" ; then 9954 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 9955echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 9956 { (exit 1); exit 1; }; } 9957 fi 9958 9959 # First, look for one uninstalled. 9960 # the alternative search directory is invoked by --with-celib 9961 9962 if test x"${no_celib}" = x ; then 9963 # we reset no_celib in case something fails here 9964 no_celib=true 9965 9966# Check whether --with-celib was given. 9967if test "${with_celib+set}" = set; then 9968 withval=$with_celib; with_celibconfig=${withval} 9969fi 9970 9971 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 9972echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 9973 if test "${ac_cv_c_celibconfig+set}" = set; then 9974 echo $ECHO_N "(cached) $ECHO_C" >&6 9975else 9976 9977 # First check to see if --with-celibconfig was specified. 9978 if test x"${with_celibconfig}" != x ; then 9979 if test -d "${with_celibconfig}/inc" ; then 9980 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 9981 else 9982 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 9983echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 9984 { (exit 1); exit 1; }; } 9985 fi 9986 fi 9987 9988 # then check for a celib library 9989 if test x"${ac_cv_c_celibconfig}" = x ; then 9990 for i in \ 9991 ../celib-palm-3.0 \ 9992 ../celib \ 9993 ../../celib-palm-3.0 \ 9994 ../../celib \ 9995 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 9996 ${srcdir}/../celib-palm-3.0 \ 9997 ${srcdir}/../celib \ 9998 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 9999 ; do 10000 if test -d "$i/inc" ; then 10001 ac_cv_c_celibconfig=`(cd $i; pwd)` 10002 break 10003 fi 10004 done 10005 fi 10006 10007fi 10008 10009 if test x"${ac_cv_c_celibconfig}" = x ; then 10010 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 10011echo "$as_me: error: Cannot find celib support library directory" >&2;} 10012 { (exit 1); exit 1; }; } 10013 else 10014 no_celib= 10015 CELIB_DIR=${ac_cv_c_celibconfig} 10016 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 10017 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 10018echo "${ECHO_T}found $CELIB_DIR" >&6; } 10019 fi 10020 fi 10021 10022 # Set defaults for common evc4/PPC2003 setup 10023 # Currently Tcl requires 300+, possibly 420+ for sockets 10024 CEVERSION=420; # could be 211 300 301 400 420 ... 10025 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 10026 ARCH=ARM; # could be ARM MIPS X86EM ... 10027 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 10028 if test "$doWince" != "yes"; then 10029 # If !yes then the user specified something 10030 # Reset ARCH to allow user to skip specifying it 10031 ARCH= 10032 eval `echo $doWince | awk -F, '{ \ 10033 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 10034 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 10035 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 10036 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 10037 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 10038 }'` 10039 if test "x${ARCH}" = "x" ; then 10040 ARCH=$TARGETCPU; 10041 fi 10042 fi 10043 OSVERSION=WCE$CEVERSION; 10044 if test "x${WCEROOT}" = "x" ; then 10045 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 10046 if test ! -d "${WCEROOT}" ; then 10047 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 10048 fi 10049 fi 10050 if test "x${SDKROOT}" = "x" ; then 10051 SDKROOT="C:/Program Files/Windows CE Tools" 10052 if test ! -d "${SDKROOT}" ; then 10053 SDKROOT="C:/Windows CE Tools" 10054 fi 10055 fi 10056 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 10057 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 10058 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 10059 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 10060 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 10061echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 10062 { (exit 1); exit 1; }; } 10063 doWince="no" 10064 else 10065 # We could PATH_NOSPACE these, but that's not important, 10066 # as long as we quote them when used. 10067 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 10068 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 10069 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 10070 fi 10071 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 10072 fi 10073 fi 10074 10075 if test "$GCC" != "yes" ; then 10076 if test "${SHARED_BUILD}" = "0" ; then 10077 runtime=-MT 10078 else 10079 runtime=-MD 10080 fi 10081 10082 if test "$do64bit" != "no" ; then 10083 # All this magic is necessary for the Win64 SDK RC1 - hobbs 10084 CC="\"${PATH64}/cl.exe\"" 10085 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 10086 RC="\"${MSSDK}/bin/rc.exe\"" 10087 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 10088 LINKBIN="\"${PATH64}/link.exe\"" 10089 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 10090 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 10091 # Avoid 'unresolved external symbol __security_cookie' 10092 # errors, c.f. http://support.microsoft.com/?id=894573 10093 10094 vars="bufferoverflowU.lib" 10095 for i in $vars; do 10096 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 10097 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 10098 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 10099 fi 10100 PKG_LIBS="$PKG_LIBS $i" 10101 done 10102 10103 10104 elif test "$doWince" != "no" ; then 10105 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 10106 if test "${TARGETCPU}" = "X86"; then 10107 CC="\"${CEBINROOT}/cl.exe\"" 10108 else 10109 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 10110 fi 10111 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 10112 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 10113 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 10114 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 10115 if test "${SHARED_BUILD}" = "1" ; then 10116 # Static CE builds require static celib as well 10117 defs="${defs} _DLL" 10118 fi 10119 for i in $defs ; do 10120 10121cat >>confdefs.h <<_ACEOF 10122#define $i 1 10123_ACEOF 10124 10125 done 10126 10127cat >>confdefs.h <<_ACEOF 10128#define _WIN32_WCE $CEVERSION 10129_ACEOF 10130 10131 10132cat >>confdefs.h <<_ACEOF 10133#define UNDER_CE $CEVERSION 10134_ACEOF 10135 10136 CFLAGS_DEBUG="-nologo -Zi -Od" 10137 CFLAGS_OPTIMIZE="-nologo -Ox" 10138 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 10139 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 10140 LINKBIN="\"${CEBINROOT}/link.exe\"" 10141 10142 else 10143 RC="rc" 10144 lflags="-nologo" 10145 LINKBIN="link" 10146 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 10147 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 10148 fi 10149 fi 10150 10151 if test "$GCC" = "yes"; then 10152 # mingw gcc mode 10153 RC="windres" 10154 CFLAGS_DEBUG="-g" 10155 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 10156 SHLIB_LD="$CC -shared" 10157 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 10158 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 10159 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 10160 else 10161 SHLIB_LD="${LINKBIN} -dll ${lflags}" 10162 # link -lib only works when -lib is the first arg 10163 STLIB_LD="${LINKBIN} -lib ${lflags}" 10164 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 10165 PATHTYPE=-w 10166 # For information on what debugtype is most useful, see: 10167 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 10168 # and also 10169 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 10170 # This essentially turns it all on. 10171 LDFLAGS_DEBUG="-debug -debugtype:cv" 10172 LDFLAGS_OPTIMIZE="-release" 10173 if test "$doWince" != "no" ; then 10174 LDFLAGS_CONSOLE="-link ${lflags}" 10175 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 10176 else 10177 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 10178 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 10179 fi 10180 fi 10181 10182 SHLIB_LD_LIBS='${LIBS}' 10183 SHLIB_SUFFIX=".dll" 10184 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 10185 10186 TCL_LIB_VERSIONS_OK=nodots 10187 # Bogus to avoid getting this turned off 10188 DL_OBJS="tclLoadNone.obj" 10189 ;; 10190 AIX-*) 10191 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 10192 10193 # AIX requires the _r compiler when gcc isn't being used 10194 case "${CC}" in 10195 *_r) 10196 # ok ... 10197 ;; 10198 *) 10199 CC=${CC}_r 10200 ;; 10201 esac 10202 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 10203echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 10204 10205fi 10206 10207 LIBS="$LIBS -lc" 10208 SHLIB_CFLAGS="" 10209 SHLIB_LD_LIBS='${LIBS}' 10210 SHLIB_SUFFIX=".so" 10211 10212 DL_OBJS="tclLoadDl.o" 10213 LD_LIBRARY_PATH_VAR="LIBPATH" 10214 10215 # Check to enable 64-bit flags for compiler/linker on AIX 4+ 10216 if test "$do64bit" = yes -a "`uname -v`" -gt 3; then 10217 10218 if test "$GCC" = yes; then 10219 10220 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 10221echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 10222 10223else 10224 10225 do64bit_ok=yes 10226 CFLAGS="$CFLAGS -q64" 10227 LDFLAGS_ARCH="-q64" 10228 RANLIB="${RANLIB} -X64" 10229 AR="${AR} -X64" 10230 SHLIB_LD_FLAGS="-b64" 10231 10232fi 10233 10234 10235fi 10236 10237 10238 if test "`uname -m`" = ia64; then 10239 10240 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 10241 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 10242 # AIX-5 has dl* in libc.so 10243 DL_LIBS="" 10244 if test "$GCC" = yes; then 10245 10246 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 10247 10248else 10249 10250 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 10251 10252fi 10253 10254 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 10255 10256else 10257 10258 if test "$GCC" = yes; then 10259 SHLIB_LD='${CC} -shared' 10260else 10261 10262 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" 10263 10264fi 10265 10266 SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" 10267 DL_LIBS="-ldl" 10268 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 10269 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10270 TCL_NEEDS_EXP_FILE=1 10271 # TEA specific: use PACKAGE_VERSION instead of VERSION 10272 TCL_EXPORT_FILE_SUFFIX='${PACKAGE_VERSION}.exp' 10273 10274fi 10275 10276 10277 # AIX v<=4.1 has some different flags than 4.2+ 10278 if test "$system" = "AIX-4.1" -o "`uname -v`" -lt 4; then 10279 10280 case " $LIBOBJS " in 10281 *" tclLoadAix.$ac_objext "* ) ;; 10282 *) LIBOBJS="$LIBOBJS tclLoadAix.$ac_objext" 10283 ;; 10284esac 10285 10286 DL_LIBS="-lld" 10287 10288fi 10289 10290 10291 # On AIX <=v4 systems, libbsd.a has to be linked in to support 10292 # non-blocking file IO. This library has to be linked in after 10293 # the MATH_LIBS or it breaks the pow() function. The way to 10294 # insure proper sequencing, is to add it to the tail of MATH_LIBS. 10295 # This library also supplies gettimeofday. 10296 # 10297 # AIX does not have a timezone field in struct tm. When the AIX 10298 # bsd library is used, the timezone global and the gettimeofday 10299 # methods are to be avoided for timezone deduction instead, we 10300 # deduce the timezone by comparing the localtime result on a 10301 # known GMT value. 10302 10303 { echo "$as_me:$LINENO: checking for gettimeofday in -lbsd" >&5 10304echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6; } 10305if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then 10306 echo $ECHO_N "(cached) $ECHO_C" >&6 10307else 10308 ac_check_lib_save_LIBS=$LIBS 10309LIBS="-lbsd $LIBS" 10310cat >conftest.$ac_ext <<_ACEOF 10311/* confdefs.h. */ 10312_ACEOF 10313cat confdefs.h >>conftest.$ac_ext 10314cat >>conftest.$ac_ext <<_ACEOF 10315/* end confdefs.h. */ 10316 10317/* Override any GCC internal prototype to avoid an error. 10318 Use char because int might match the return type of a GCC 10319 builtin and then its argument prototype would still apply. */ 10320#ifdef __cplusplus 10321extern "C" 10322#endif 10323char gettimeofday (); 10324int 10325main () 10326{ 10327return gettimeofday (); 10328 ; 10329 return 0; 10330} 10331_ACEOF 10332rm -f conftest.$ac_objext conftest$ac_exeext 10333if { (ac_try="$ac_link" 10334case "(($ac_try" in 10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10336 *) ac_try_echo=$ac_try;; 10337esac 10338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10339 (eval "$ac_link") 2>conftest.er1 10340 ac_status=$? 10341 grep -v '^ *+' conftest.er1 >conftest.err 10342 rm -f conftest.er1 10343 cat conftest.err >&5 10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10345 (exit $ac_status); } && { 10346 test -z "$ac_c_werror_flag" || 10347 test ! -s conftest.err 10348 } && test -s conftest$ac_exeext && 10349 $as_test_x conftest$ac_exeext; then 10350 ac_cv_lib_bsd_gettimeofday=yes 10351else 10352 echo "$as_me: failed program was:" >&5 10353sed 's/^/| /' conftest.$ac_ext >&5 10354 10355 ac_cv_lib_bsd_gettimeofday=no 10356fi 10357 10358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10359 conftest$ac_exeext conftest.$ac_ext 10360LIBS=$ac_check_lib_save_LIBS 10361fi 10362{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gettimeofday" >&5 10363echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6; } 10364if test $ac_cv_lib_bsd_gettimeofday = yes; then 10365 libbsd=yes 10366else 10367 libbsd=no 10368fi 10369 10370 if test $libbsd = yes; then 10371 10372 MATH_LIBS="$MATH_LIBS -lbsd" 10373 10374cat >>confdefs.h <<\_ACEOF 10375#define USE_DELTA_FOR_TZ 1 10376_ACEOF 10377 10378 10379fi 10380 10381 ;; 10382 BeOS*) 10383 SHLIB_CFLAGS="-fPIC" 10384 SHLIB_LD='${CC} -nostart' 10385 SHLIB_LD_LIBS='${LIBS}' 10386 SHLIB_SUFFIX=".so" 10387 DL_OBJS="tclLoadDl.o" 10388 DL_LIBS="-ldl" 10389 10390 #----------------------------------------------------------- 10391 # Check for inet_ntoa in -lbind, for BeOS (which also needs 10392 # -lsocket, even if the network functions are in -lnet which 10393 # is always linked to, for compatibility. 10394 #----------------------------------------------------------- 10395 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 10396echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 10397if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 10398 echo $ECHO_N "(cached) $ECHO_C" >&6 10399else 10400 ac_check_lib_save_LIBS=$LIBS 10401LIBS="-lbind $LIBS" 10402cat >conftest.$ac_ext <<_ACEOF 10403/* confdefs.h. */ 10404_ACEOF 10405cat confdefs.h >>conftest.$ac_ext 10406cat >>conftest.$ac_ext <<_ACEOF 10407/* end confdefs.h. */ 10408 10409/* Override any GCC internal prototype to avoid an error. 10410 Use char because int might match the return type of a GCC 10411 builtin and then its argument prototype would still apply. */ 10412#ifdef __cplusplus 10413extern "C" 10414#endif 10415char inet_ntoa (); 10416int 10417main () 10418{ 10419return inet_ntoa (); 10420 ; 10421 return 0; 10422} 10423_ACEOF 10424rm -f conftest.$ac_objext conftest$ac_exeext 10425if { (ac_try="$ac_link" 10426case "(($ac_try" in 10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10428 *) ac_try_echo=$ac_try;; 10429esac 10430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10431 (eval "$ac_link") 2>conftest.er1 10432 ac_status=$? 10433 grep -v '^ *+' conftest.er1 >conftest.err 10434 rm -f conftest.er1 10435 cat conftest.err >&5 10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10437 (exit $ac_status); } && { 10438 test -z "$ac_c_werror_flag" || 10439 test ! -s conftest.err 10440 } && test -s conftest$ac_exeext && 10441 $as_test_x conftest$ac_exeext; then 10442 ac_cv_lib_bind_inet_ntoa=yes 10443else 10444 echo "$as_me: failed program was:" >&5 10445sed 's/^/| /' conftest.$ac_ext >&5 10446 10447 ac_cv_lib_bind_inet_ntoa=no 10448fi 10449 10450rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10451 conftest$ac_exeext conftest.$ac_ext 10452LIBS=$ac_check_lib_save_LIBS 10453fi 10454{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 10455echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 10456if test $ac_cv_lib_bind_inet_ntoa = yes; then 10457 LIBS="$LIBS -lbind -lsocket" 10458fi 10459 10460 ;; 10461 BSD/OS-2.1*|BSD/OS-3*) 10462 SHLIB_CFLAGS="" 10463 SHLIB_LD="shlicc -r" 10464 SHLIB_LD_LIBS='${LIBS}' 10465 SHLIB_SUFFIX=".so" 10466 DL_OBJS="tclLoadDl.o" 10467 DL_LIBS="-ldl" 10468 CC_SEARCH_FLAGS="" 10469 LD_SEARCH_FLAGS="" 10470 ;; 10471 BSD/OS-4.*) 10472 SHLIB_CFLAGS="-export-dynamic -fPIC" 10473 SHLIB_LD='${CC} -shared' 10474 SHLIB_LD_LIBS='${LIBS}' 10475 SHLIB_SUFFIX=".so" 10476 DL_OBJS="tclLoadDl.o" 10477 DL_LIBS="-ldl" 10478 LDFLAGS="$LDFLAGS -export-dynamic" 10479 CC_SEARCH_FLAGS="" 10480 LD_SEARCH_FLAGS="" 10481 ;; 10482 dgux*) 10483 SHLIB_CFLAGS="-K PIC" 10484 SHLIB_LD='${CC} -G' 10485 SHLIB_LD_LIBS="" 10486 SHLIB_SUFFIX=".so" 10487 DL_OBJS="tclLoadDl.o" 10488 DL_LIBS="-ldl" 10489 CC_SEARCH_FLAGS="" 10490 LD_SEARCH_FLAGS="" 10491 ;; 10492 HP-UX-*.11.*) 10493 # Use updated header definitions where possible 10494 10495cat >>confdefs.h <<\_ACEOF 10496#define _XOPEN_SOURCE_EXTENDED 1 10497_ACEOF 10498 10499 # TEA specific: Needed by Tcl, but not most extensions 10500 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 10501 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 10502 10503 if test "`uname -m`" = ia64; then 10504 10505 SHLIB_SUFFIX=".so" 10506 # Use newer C++ library for C++ extensions 10507 #if test "$GCC" != "yes" ; then 10508 # CPPFLAGS="-AA" 10509 #fi 10510 10511else 10512 10513 SHLIB_SUFFIX=".sl" 10514 10515fi 10516 10517 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10518echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10519if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10520 echo $ECHO_N "(cached) $ECHO_C" >&6 10521else 10522 ac_check_lib_save_LIBS=$LIBS 10523LIBS="-ldld $LIBS" 10524cat >conftest.$ac_ext <<_ACEOF 10525/* confdefs.h. */ 10526_ACEOF 10527cat confdefs.h >>conftest.$ac_ext 10528cat >>conftest.$ac_ext <<_ACEOF 10529/* end confdefs.h. */ 10530 10531/* Override any GCC internal prototype to avoid an error. 10532 Use char because int might match the return type of a GCC 10533 builtin and then its argument prototype would still apply. */ 10534#ifdef __cplusplus 10535extern "C" 10536#endif 10537char shl_load (); 10538int 10539main () 10540{ 10541return shl_load (); 10542 ; 10543 return 0; 10544} 10545_ACEOF 10546rm -f conftest.$ac_objext conftest$ac_exeext 10547if { (ac_try="$ac_link" 10548case "(($ac_try" in 10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10550 *) ac_try_echo=$ac_try;; 10551esac 10552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10553 (eval "$ac_link") 2>conftest.er1 10554 ac_status=$? 10555 grep -v '^ *+' conftest.er1 >conftest.err 10556 rm -f conftest.er1 10557 cat conftest.err >&5 10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10559 (exit $ac_status); } && { 10560 test -z "$ac_c_werror_flag" || 10561 test ! -s conftest.err 10562 } && test -s conftest$ac_exeext && 10563 $as_test_x conftest$ac_exeext; then 10564 ac_cv_lib_dld_shl_load=yes 10565else 10566 echo "$as_me: failed program was:" >&5 10567sed 's/^/| /' conftest.$ac_ext >&5 10568 10569 ac_cv_lib_dld_shl_load=no 10570fi 10571 10572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10573 conftest$ac_exeext conftest.$ac_ext 10574LIBS=$ac_check_lib_save_LIBS 10575fi 10576{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10577echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10578if test $ac_cv_lib_dld_shl_load = yes; then 10579 tcl_ok=yes 10580else 10581 tcl_ok=no 10582fi 10583 10584 if test "$tcl_ok" = yes; then 10585 10586 SHLIB_CFLAGS="+z" 10587 SHLIB_LD="ld -b" 10588 SHLIB_LD_LIBS='${LIBS}' 10589 DL_OBJS="tclLoadShl.o" 10590 DL_LIBS="-ldld" 10591 LDFLAGS="$LDFLAGS -Wl,-E" 10592 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 10593 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 10594 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 10595 10596fi 10597 10598 if test "$GCC" = yes; then 10599 10600 SHLIB_LD='${CC} -shared' 10601 SHLIB_LD_LIBS='${LIBS}' 10602 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10603 10604fi 10605 10606 10607 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 10608 #CFLAGS="$CFLAGS +DAportable" 10609 10610 # Check to enable 64-bit flags for compiler/linker 10611 if test "$do64bit" = "yes"; then 10612 10613 if test "$GCC" = yes; then 10614 10615 case `${CC} -dumpmachine` in 10616 hppa64*) 10617 # 64-bit gcc in use. Fix flags for GNU ld. 10618 do64bit_ok=yes 10619 SHLIB_LD='${CC} -shared' 10620 SHLIB_LD_LIBS='${LIBS}' 10621 if test $doRpath = yes; then 10622 10623 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10624fi 10625 10626 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10627 ;; 10628 *) 10629 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 10630echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 10631 ;; 10632 esac 10633 10634else 10635 10636 do64bit_ok=yes 10637 CFLAGS="$CFLAGS +DD64" 10638 LDFLAGS_ARCH="+DD64" 10639 10640fi 10641 10642 10643fi 10644 ;; 10645 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 10646 SHLIB_SUFFIX=".sl" 10647 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10648echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10649if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10650 echo $ECHO_N "(cached) $ECHO_C" >&6 10651else 10652 ac_check_lib_save_LIBS=$LIBS 10653LIBS="-ldld $LIBS" 10654cat >conftest.$ac_ext <<_ACEOF 10655/* confdefs.h. */ 10656_ACEOF 10657cat confdefs.h >>conftest.$ac_ext 10658cat >>conftest.$ac_ext <<_ACEOF 10659/* end confdefs.h. */ 10660 10661/* Override any GCC internal prototype to avoid an error. 10662 Use char because int might match the return type of a GCC 10663 builtin and then its argument prototype would still apply. */ 10664#ifdef __cplusplus 10665extern "C" 10666#endif 10667char shl_load (); 10668int 10669main () 10670{ 10671return shl_load (); 10672 ; 10673 return 0; 10674} 10675_ACEOF 10676rm -f conftest.$ac_objext conftest$ac_exeext 10677if { (ac_try="$ac_link" 10678case "(($ac_try" in 10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10680 *) ac_try_echo=$ac_try;; 10681esac 10682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10683 (eval "$ac_link") 2>conftest.er1 10684 ac_status=$? 10685 grep -v '^ *+' conftest.er1 >conftest.err 10686 rm -f conftest.er1 10687 cat conftest.err >&5 10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10689 (exit $ac_status); } && { 10690 test -z "$ac_c_werror_flag" || 10691 test ! -s conftest.err 10692 } && test -s conftest$ac_exeext && 10693 $as_test_x conftest$ac_exeext; then 10694 ac_cv_lib_dld_shl_load=yes 10695else 10696 echo "$as_me: failed program was:" >&5 10697sed 's/^/| /' conftest.$ac_ext >&5 10698 10699 ac_cv_lib_dld_shl_load=no 10700fi 10701 10702rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10703 conftest$ac_exeext conftest.$ac_ext 10704LIBS=$ac_check_lib_save_LIBS 10705fi 10706{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10707echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10708if test $ac_cv_lib_dld_shl_load = yes; then 10709 tcl_ok=yes 10710else 10711 tcl_ok=no 10712fi 10713 10714 if test "$tcl_ok" = yes; then 10715 10716 SHLIB_CFLAGS="+z" 10717 SHLIB_LD="ld -b" 10718 SHLIB_LD_LIBS="" 10719 DL_OBJS="tclLoadShl.o" 10720 DL_LIBS="-ldld" 10721 LDFLAGS="$LDFLAGS -Wl,-E" 10722 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 10723 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 10724 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 10725 10726fi 10727 ;; 10728 IRIX-5.*) 10729 SHLIB_CFLAGS="" 10730 SHLIB_LD="ld -shared -rdata_shared" 10731 SHLIB_LD_LIBS='${LIBS}' 10732 SHLIB_SUFFIX=".so" 10733 DL_OBJS="tclLoadDl.o" 10734 DL_LIBS="" 10735 if test $doRpath = yes; then 10736 10737 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10738 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 10739fi 10740 10741 ;; 10742 IRIX-6.*) 10743 SHLIB_CFLAGS="" 10744 SHLIB_LD="ld -n32 -shared -rdata_shared" 10745 SHLIB_LD_LIBS='${LIBS}' 10746 SHLIB_SUFFIX=".so" 10747 DL_OBJS="tclLoadDl.o" 10748 DL_LIBS="" 10749 if test $doRpath = yes; then 10750 10751 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10752 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 10753fi 10754 10755 if test "$GCC" = yes; then 10756 10757 CFLAGS="$CFLAGS -mabi=n32" 10758 LDFLAGS="$LDFLAGS -mabi=n32" 10759 10760else 10761 10762 case $system in 10763 IRIX-6.3) 10764 # Use to build 6.2 compatible binaries on 6.3. 10765 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 10766 ;; 10767 *) 10768 CFLAGS="$CFLAGS -n32" 10769 ;; 10770 esac 10771 LDFLAGS="$LDFLAGS -n32" 10772 10773fi 10774 10775 ;; 10776 IRIX64-6.*) 10777 SHLIB_CFLAGS="" 10778 SHLIB_LD="ld -n32 -shared -rdata_shared" 10779 SHLIB_LD_LIBS='${LIBS}' 10780 SHLIB_SUFFIX=".so" 10781 DL_OBJS="tclLoadDl.o" 10782 DL_LIBS="" 10783 if test $doRpath = yes; then 10784 10785 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10786 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 10787fi 10788 10789 10790 # Check to enable 64-bit flags for compiler/linker 10791 10792 if test "$do64bit" = yes; then 10793 10794 if test "$GCC" = yes; then 10795 10796 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 10797echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 10798 10799else 10800 10801 do64bit_ok=yes 10802 SHLIB_LD="ld -64 -shared -rdata_shared" 10803 CFLAGS="$CFLAGS -64" 10804 LDFLAGS_ARCH="-64" 10805 10806fi 10807 10808 10809fi 10810 10811 ;; 10812 Linux*) 10813 SHLIB_CFLAGS="-fPIC" 10814 SHLIB_LD_LIBS='${LIBS}' 10815 SHLIB_SUFFIX=".so" 10816 10817 # TEA specific: 10818 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 10819 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings 10820 # when you inline the string and math operations. Turn this off to 10821 # get rid of the warnings. 10822 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 10823 10824 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 10825 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 10826 DL_OBJS="tclLoadDl.o" 10827 DL_LIBS="-ldl" 10828 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 10829 if test $doRpath = yes; then 10830 10831 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10832fi 10833 10834 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10835 if test "`uname -m`" = "alpha"; then 10836 CFLAGS="$CFLAGS -mieee" 10837fi 10838 10839 if test $do64bit = yes; then 10840 10841 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 10842echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 10843if test "${tcl_cv_cc_m64+set}" = set; then 10844 echo $ECHO_N "(cached) $ECHO_C" >&6 10845else 10846 10847 hold_cflags=$CFLAGS 10848 CFLAGS="$CFLAGS -m64" 10849 cat >conftest.$ac_ext <<_ACEOF 10850/* confdefs.h. */ 10851_ACEOF 10852cat confdefs.h >>conftest.$ac_ext 10853cat >>conftest.$ac_ext <<_ACEOF 10854/* end confdefs.h. */ 10855 10856int 10857main () 10858{ 10859 10860 ; 10861 return 0; 10862} 10863_ACEOF 10864rm -f conftest.$ac_objext conftest$ac_exeext 10865if { (ac_try="$ac_link" 10866case "(($ac_try" in 10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10868 *) ac_try_echo=$ac_try;; 10869esac 10870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10871 (eval "$ac_link") 2>conftest.er1 10872 ac_status=$? 10873 grep -v '^ *+' conftest.er1 >conftest.err 10874 rm -f conftest.er1 10875 cat conftest.err >&5 10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10877 (exit $ac_status); } && { 10878 test -z "$ac_c_werror_flag" || 10879 test ! -s conftest.err 10880 } && test -s conftest$ac_exeext && 10881 $as_test_x conftest$ac_exeext; then 10882 tcl_cv_cc_m64=yes 10883else 10884 echo "$as_me: failed program was:" >&5 10885sed 's/^/| /' conftest.$ac_ext >&5 10886 10887 tcl_cv_cc_m64=no 10888fi 10889 10890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10891 conftest$ac_exeext conftest.$ac_ext 10892 CFLAGS=$hold_cflags 10893fi 10894{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 10895echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 10896 if test $tcl_cv_cc_m64 = yes; then 10897 10898 CFLAGS="$CFLAGS -m64" 10899 do64bit_ok=yes 10900 10901fi 10902 10903 10904fi 10905 10906 10907 # The combo of gcc + glibc has a bug related to inlining of 10908 # functions like strtod(). The -fno-builtin flag should address 10909 # this problem but it does not work. The -fno-inline flag is kind 10910 # of overkill but it works. Disable inlining only when one of the 10911 # files in compat/*.c is being linked in. 10912 10913 if test x"${USE_COMPAT}" != x; then 10914 CFLAGS="$CFLAGS -fno-inline" 10915fi 10916 10917 10918 ;; 10919 GNU*) 10920 SHLIB_CFLAGS="-fPIC" 10921 SHLIB_LD_LIBS='${LIBS}' 10922 SHLIB_SUFFIX=".so" 10923 10924 SHLIB_LD='${CC} -shared' 10925 DL_OBJS="" 10926 DL_LIBS="-ldl" 10927 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 10928 CC_SEARCH_FLAGS="" 10929 LD_SEARCH_FLAGS="" 10930 if test "`uname -m`" = "alpha"; then 10931 CFLAGS="$CFLAGS -mieee" 10932fi 10933 10934 ;; 10935 Lynx*) 10936 SHLIB_CFLAGS="-fPIC" 10937 SHLIB_LD_LIBS='${LIBS}' 10938 SHLIB_SUFFIX=".so" 10939 CFLAGS_OPTIMIZE=-02 10940 SHLIB_LD='${CC} -shared' 10941 DL_OBJS="tclLoadDl.o" 10942 DL_LIBS="-mshared -ldl" 10943 LD_FLAGS="-Wl,--export-dynamic" 10944 if test $doRpath = yes; then 10945 10946 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10947 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10948fi 10949 10950 ;; 10951 MP-RAS-02*) 10952 SHLIB_CFLAGS="-K PIC" 10953 SHLIB_LD='${CC} -G' 10954 SHLIB_LD_LIBS="" 10955 SHLIB_SUFFIX=".so" 10956 DL_OBJS="tclLoadDl.o" 10957 DL_LIBS="-ldl" 10958 CC_SEARCH_FLAGS="" 10959 LD_SEARCH_FLAGS="" 10960 ;; 10961 MP-RAS-*) 10962 SHLIB_CFLAGS="-K PIC" 10963 SHLIB_LD='${CC} -G' 10964 SHLIB_LD_LIBS="" 10965 SHLIB_SUFFIX=".so" 10966 DL_OBJS="tclLoadDl.o" 10967 DL_LIBS="-ldl" 10968 LDFLAGS="$LDFLAGS -Wl,-Bexport" 10969 CC_SEARCH_FLAGS="" 10970 LD_SEARCH_FLAGS="" 10971 ;; 10972 NetBSD-1.*|FreeBSD-[1-2].*) 10973 SHLIB_CFLAGS="-fPIC" 10974 SHLIB_LD="ld -Bshareable -x" 10975 SHLIB_LD_LIBS='${LIBS}' 10976 SHLIB_SUFFIX=".so" 10977 DL_OBJS="tclLoadDl.o" 10978 DL_LIBS="" 10979 if test $doRpath = yes; then 10980 10981 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10982 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 10983fi 10984 10985 { echo "$as_me:$LINENO: checking for ELF" >&5 10986echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 10987if test "${tcl_cv_ld_elf+set}" = set; then 10988 echo $ECHO_N "(cached) $ECHO_C" >&6 10989else 10990 10991 cat >conftest.$ac_ext <<_ACEOF 10992/* confdefs.h. */ 10993_ACEOF 10994cat confdefs.h >>conftest.$ac_ext 10995cat >>conftest.$ac_ext <<_ACEOF 10996/* end confdefs.h. */ 10997 10998#ifdef __ELF__ 10999 yes 11000#endif 11001 11002_ACEOF 11003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11004 $EGREP "yes" >/dev/null 2>&1; then 11005 tcl_cv_ld_elf=yes 11006else 11007 tcl_cv_ld_elf=no 11008fi 11009rm -f conftest* 11010 11011fi 11012{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 11013echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 11014 if test $tcl_cv_ld_elf = yes; then 11015 11016 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 11017 11018else 11019 11020 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 11021 11022fi 11023 11024 11025 # Ancient FreeBSD doesn't handle version numbers with dots. 11026 11027 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 11028 TCL_LIB_VERSIONS_OK=nodots 11029 ;; 11030 OpenBSD-*) 11031 SHLIB_CFLAGS="-fPIC" 11032 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 11033 SHLIB_LD_LIBS='${LIBS}' 11034 SHLIB_SUFFIX=".so" 11035 DL_OBJS="tclLoadDl.o" 11036 DL_LIBS="" 11037 if test $doRpath = yes; then 11038 11039 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 11040fi 11041 11042 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 11043 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 11044 { echo "$as_me:$LINENO: checking for ELF" >&5 11045echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 11046if test "${tcl_cv_ld_elf+set}" = set; then 11047 echo $ECHO_N "(cached) $ECHO_C" >&6 11048else 11049 11050 cat >conftest.$ac_ext <<_ACEOF 11051/* confdefs.h. */ 11052_ACEOF 11053cat confdefs.h >>conftest.$ac_ext 11054cat >>conftest.$ac_ext <<_ACEOF 11055/* end confdefs.h. */ 11056 11057#ifdef __ELF__ 11058 yes 11059#endif 11060 11061_ACEOF 11062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11063 $EGREP "yes" >/dev/null 2>&1; then 11064 tcl_cv_ld_elf=yes 11065else 11066 tcl_cv_ld_elf=no 11067fi 11068rm -f conftest* 11069 11070fi 11071{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 11072echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 11073 if test $tcl_cv_ld_elf = yes; then 11074 11075 LDFLAGS=-Wl,-export-dynamic 11076 11077else 11078 LDFLAGS="" 11079fi 11080 11081 11082 # OpenBSD doesn't do version numbers with dots. 11083 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 11084 TCL_LIB_VERSIONS_OK=nodots 11085 ;; 11086 NetBSD-*|DragonFly-*|FreeBSD-*) 11087 # FreeBSD 3.* and greater have ELF. 11088 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 11089 SHLIB_CFLAGS="-fPIC" 11090 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 11091 SHLIB_LD_LIBS='${LIBS}' 11092 SHLIB_SUFFIX=".so" 11093 DL_OBJS="tclLoadDl.o" 11094 DL_LIBS="" 11095 LDFLAGS="$LDFLAGS -export-dynamic" 11096 if test $doRpath = yes; then 11097 11098 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 11099fi 11100 11101 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 11102 if test "${TCL_THREADS}" = "1"; then 11103 11104 # The -pthread needs to go in the CFLAGS, not LIBS 11105 LIBS=`echo $LIBS | sed s/-pthread//` 11106 CFLAGS="$CFLAGS -pthread" 11107 LDFLAGS="$LDFLAGS -pthread" 11108 11109fi 11110 11111 case $system in 11112 FreeBSD-3.*) 11113 # FreeBSD-3 doesn't handle version numbers with dots. 11114 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 11115 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 11116 TCL_LIB_VERSIONS_OK=nodots 11117 ;; 11118 esac 11119 ;; 11120 Darwin-*) 11121 CFLAGS_OPTIMIZE="-Os" 11122 SHLIB_CFLAGS="-fno-common" 11123 # To avoid discrepancies between what headers configure sees during 11124 # preprocessing tests and compiling tests, move any -isysroot and 11125 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 11126 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 11127 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 11128 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 11129 CFLAGS="`echo " ${CFLAGS}" | \ 11130 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 11131 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 11132 if test $do64bit = yes; then 11133 11134 case `arch` in 11135 ppc) 11136 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 11137echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 11138if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 11139 echo $ECHO_N "(cached) $ECHO_C" >&6 11140else 11141 11142 hold_cflags=$CFLAGS 11143 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 11144 cat >conftest.$ac_ext <<_ACEOF 11145/* confdefs.h. */ 11146_ACEOF 11147cat confdefs.h >>conftest.$ac_ext 11148cat >>conftest.$ac_ext <<_ACEOF 11149/* end confdefs.h. */ 11150 11151int 11152main () 11153{ 11154 11155 ; 11156 return 0; 11157} 11158_ACEOF 11159rm -f conftest.$ac_objext conftest$ac_exeext 11160if { (ac_try="$ac_link" 11161case "(($ac_try" in 11162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11163 *) ac_try_echo=$ac_try;; 11164esac 11165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11166 (eval "$ac_link") 2>conftest.er1 11167 ac_status=$? 11168 grep -v '^ *+' conftest.er1 >conftest.err 11169 rm -f conftest.er1 11170 cat conftest.err >&5 11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11172 (exit $ac_status); } && { 11173 test -z "$ac_c_werror_flag" || 11174 test ! -s conftest.err 11175 } && test -s conftest$ac_exeext && 11176 $as_test_x conftest$ac_exeext; then 11177 tcl_cv_cc_arch_ppc64=yes 11178else 11179 echo "$as_me: failed program was:" >&5 11180sed 's/^/| /' conftest.$ac_ext >&5 11181 11182 tcl_cv_cc_arch_ppc64=no 11183fi 11184 11185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11186 conftest$ac_exeext conftest.$ac_ext 11187 CFLAGS=$hold_cflags 11188fi 11189{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 11190echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 11191 if test $tcl_cv_cc_arch_ppc64 = yes; then 11192 11193 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 11194 do64bit_ok=yes 11195 11196fi 11197;; 11198 i386) 11199 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 11200echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 11201if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 11202 echo $ECHO_N "(cached) $ECHO_C" >&6 11203else 11204 11205 hold_cflags=$CFLAGS 11206 CFLAGS="$CFLAGS -arch x86_64" 11207 cat >conftest.$ac_ext <<_ACEOF 11208/* confdefs.h. */ 11209_ACEOF 11210cat confdefs.h >>conftest.$ac_ext 11211cat >>conftest.$ac_ext <<_ACEOF 11212/* end confdefs.h. */ 11213 11214int 11215main () 11216{ 11217 11218 ; 11219 return 0; 11220} 11221_ACEOF 11222rm -f conftest.$ac_objext conftest$ac_exeext 11223if { (ac_try="$ac_link" 11224case "(($ac_try" in 11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11226 *) ac_try_echo=$ac_try;; 11227esac 11228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11229 (eval "$ac_link") 2>conftest.er1 11230 ac_status=$? 11231 grep -v '^ *+' conftest.er1 >conftest.err 11232 rm -f conftest.er1 11233 cat conftest.err >&5 11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11235 (exit $ac_status); } && { 11236 test -z "$ac_c_werror_flag" || 11237 test ! -s conftest.err 11238 } && test -s conftest$ac_exeext && 11239 $as_test_x conftest$ac_exeext; then 11240 tcl_cv_cc_arch_x86_64=yes 11241else 11242 echo "$as_me: failed program was:" >&5 11243sed 's/^/| /' conftest.$ac_ext >&5 11244 11245 tcl_cv_cc_arch_x86_64=no 11246fi 11247 11248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11249 conftest$ac_exeext conftest.$ac_ext 11250 CFLAGS=$hold_cflags 11251fi 11252{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 11253echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 11254 if test $tcl_cv_cc_arch_x86_64 = yes; then 11255 11256 CFLAGS="$CFLAGS -arch x86_64" 11257 do64bit_ok=yes 11258 11259fi 11260;; 11261 *) 11262 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 11263echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 11264 esac 11265 11266else 11267 11268 # Check for combined 32-bit and 64-bit fat build 11269 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 11270 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 11271 11272 fat_32_64=yes 11273fi 11274 11275 11276fi 11277 11278 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 11279 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 11280 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 11281echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 11282if test "${tcl_cv_ld_single_module+set}" = set; then 11283 echo $ECHO_N "(cached) $ECHO_C" >&6 11284else 11285 11286 hold_ldflags=$LDFLAGS 11287 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 11288 cat >conftest.$ac_ext <<_ACEOF 11289/* confdefs.h. */ 11290_ACEOF 11291cat confdefs.h >>conftest.$ac_ext 11292cat >>conftest.$ac_ext <<_ACEOF 11293/* end confdefs.h. */ 11294 11295int 11296main () 11297{ 11298int i; 11299 ; 11300 return 0; 11301} 11302_ACEOF 11303rm -f conftest.$ac_objext conftest$ac_exeext 11304if { (ac_try="$ac_link" 11305case "(($ac_try" in 11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11307 *) ac_try_echo=$ac_try;; 11308esac 11309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11310 (eval "$ac_link") 2>conftest.er1 11311 ac_status=$? 11312 grep -v '^ *+' conftest.er1 >conftest.err 11313 rm -f conftest.er1 11314 cat conftest.err >&5 11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11316 (exit $ac_status); } && { 11317 test -z "$ac_c_werror_flag" || 11318 test ! -s conftest.err 11319 } && test -s conftest$ac_exeext && 11320 $as_test_x conftest$ac_exeext; then 11321 tcl_cv_ld_single_module=yes 11322else 11323 echo "$as_me: failed program was:" >&5 11324sed 's/^/| /' conftest.$ac_ext >&5 11325 11326 tcl_cv_ld_single_module=no 11327fi 11328 11329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11330 conftest$ac_exeext conftest.$ac_ext 11331 LDFLAGS=$hold_ldflags 11332fi 11333{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 11334echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 11335 if test $tcl_cv_ld_single_module = yes; then 11336 11337 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 11338 11339fi 11340 11341 # TEA specific: link shlib with current and compatiblity version flags 11342 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 11343 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 11344 SHLIB_LD_LIBS='${LIBS}' 11345 SHLIB_SUFFIX=".dylib" 11346 DL_OBJS="tclLoadDyld.o" 11347 DL_LIBS="" 11348 # Don't use -prebind when building for Mac OS X 10.4 or later only: 11349 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 11350 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 11351 11352 LDFLAGS="$LDFLAGS -prebind" 11353fi 11354 11355 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 11356 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 11357echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 11358if test "${tcl_cv_ld_search_paths_first+set}" = set; then 11359 echo $ECHO_N "(cached) $ECHO_C" >&6 11360else 11361 11362 hold_ldflags=$LDFLAGS 11363 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 11364 cat >conftest.$ac_ext <<_ACEOF 11365/* confdefs.h. */ 11366_ACEOF 11367cat confdefs.h >>conftest.$ac_ext 11368cat >>conftest.$ac_ext <<_ACEOF 11369/* end confdefs.h. */ 11370 11371int 11372main () 11373{ 11374int i; 11375 ; 11376 return 0; 11377} 11378_ACEOF 11379rm -f conftest.$ac_objext conftest$ac_exeext 11380if { (ac_try="$ac_link" 11381case "(($ac_try" in 11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11383 *) ac_try_echo=$ac_try;; 11384esac 11385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11386 (eval "$ac_link") 2>conftest.er1 11387 ac_status=$? 11388 grep -v '^ *+' conftest.er1 >conftest.err 11389 rm -f conftest.er1 11390 cat conftest.err >&5 11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11392 (exit $ac_status); } && { 11393 test -z "$ac_c_werror_flag" || 11394 test ! -s conftest.err 11395 } && test -s conftest$ac_exeext && 11396 $as_test_x conftest$ac_exeext; then 11397 tcl_cv_ld_search_paths_first=yes 11398else 11399 echo "$as_me: failed program was:" >&5 11400sed 's/^/| /' conftest.$ac_ext >&5 11401 11402 tcl_cv_ld_search_paths_first=no 11403fi 11404 11405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11406 conftest$ac_exeext conftest.$ac_ext 11407 LDFLAGS=$hold_ldflags 11408fi 11409{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 11410echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 11411 if test $tcl_cv_ld_search_paths_first = yes; then 11412 11413 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 11414 11415fi 11416 11417 if test "$tcl_cv_cc_visibility_hidden" != yes; then 11418 11419 11420cat >>confdefs.h <<\_ACEOF 11421#define MODULE_SCOPE __private_extern__ 11422_ACEOF 11423 11424 11425fi 11426 11427 CC_SEARCH_FLAGS="" 11428 LD_SEARCH_FLAGS="" 11429 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 11430 # TEA specific: for combined 32 & 64 bit fat builds of Tk 11431 # extensions, verify that 64-bit build is possible. 11432 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 11433 11434 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 11435 11436 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 11437echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 11438if test "${tcl_cv_lib_x11_64+set}" = set; then 11439 echo $ECHO_N "(cached) $ECHO_C" >&6 11440else 11441 11442 for v in CFLAGS CPPFLAGS LDFLAGS; do 11443 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 11444 done 11445 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 11446 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 11447 cat >conftest.$ac_ext <<_ACEOF 11448/* confdefs.h. */ 11449_ACEOF 11450cat confdefs.h >>conftest.$ac_ext 11451cat >>conftest.$ac_ext <<_ACEOF 11452/* end confdefs.h. */ 11453#include <X11/Xlib.h> 11454int 11455main () 11456{ 11457XrmInitialize(); 11458 ; 11459 return 0; 11460} 11461_ACEOF 11462rm -f conftest.$ac_objext conftest$ac_exeext 11463if { (ac_try="$ac_link" 11464case "(($ac_try" in 11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11466 *) ac_try_echo=$ac_try;; 11467esac 11468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11469 (eval "$ac_link") 2>conftest.er1 11470 ac_status=$? 11471 grep -v '^ *+' conftest.er1 >conftest.err 11472 rm -f conftest.er1 11473 cat conftest.err >&5 11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11475 (exit $ac_status); } && { 11476 test -z "$ac_c_werror_flag" || 11477 test ! -s conftest.err 11478 } && test -s conftest$ac_exeext && 11479 $as_test_x conftest$ac_exeext; then 11480 tcl_cv_lib_x11_64=yes 11481else 11482 echo "$as_me: failed program was:" >&5 11483sed 's/^/| /' conftest.$ac_ext >&5 11484 11485 tcl_cv_lib_x11_64=no 11486fi 11487 11488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11489 conftest$ac_exeext conftest.$ac_ext 11490 for v in CFLAGS CPPFLAGS LDFLAGS; do 11491 eval $v'="$hold_'$v'"' 11492 done 11493fi 11494{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 11495echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 11496 11497fi 11498 11499 # remove 64-bit arch flags from CFLAGS et al. if configuration 11500 # does not support 64-bit. 11501 if test "${TEA_WINDOWINGSYSTEM}" = aqua -o "$tcl_cv_lib_x11_64" = no; then 11502 11503 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 11504echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 11505 for v in CFLAGS CPPFLAGS LDFLAGS; do 11506 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 11507 done 11508fi 11509 11510 11511fi 11512 11513 ;; 11514 NEXTSTEP-*) 11515 SHLIB_CFLAGS="" 11516 SHLIB_LD='${CC} -nostdlib -r' 11517 SHLIB_LD_LIBS="" 11518 SHLIB_SUFFIX=".so" 11519 DL_OBJS="tclLoadNext.o" 11520 DL_LIBS="" 11521 CC_SEARCH_FLAGS="" 11522 LD_SEARCH_FLAGS="" 11523 ;; 11524 OS/390-*) 11525 CFLAGS_OPTIMIZE="" # Optimizer is buggy 11526 11527cat >>confdefs.h <<\_ACEOF 11528#define _OE_SOCKETS 1 11529_ACEOF 11530 11531 ;; 11532 OSF1-1.0|OSF1-1.1|OSF1-1.2) 11533 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 11534 SHLIB_CFLAGS="" 11535 # Hack: make package name same as library name 11536 SHLIB_LD='ld -R -export :' 11537 SHLIB_LD_LIBS="" 11538 SHLIB_SUFFIX=".so" 11539 DL_OBJS="tclLoadOSF.o" 11540 DL_LIBS="" 11541 CC_SEARCH_FLAGS="" 11542 LD_SEARCH_FLAGS="" 11543 ;; 11544 OSF1-1.*) 11545 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 11546 SHLIB_CFLAGS="-fPIC" 11547 if test "$SHARED_BUILD" = 1; then 11548 SHLIB_LD="ld -shared" 11549else 11550 11551 SHLIB_LD="ld -non_shared" 11552 11553fi 11554 11555 SHLIB_LD_LIBS="" 11556 SHLIB_SUFFIX=".so" 11557 DL_OBJS="tclLoadDl.o" 11558 DL_LIBS="" 11559 CC_SEARCH_FLAGS="" 11560 LD_SEARCH_FLAGS="" 11561 ;; 11562 OSF1-V*) 11563 # Digital OSF/1 11564 SHLIB_CFLAGS="" 11565 if test "$SHARED_BUILD" = 1; then 11566 11567 SHLIB_LD='ld -shared -expect_unresolved "*"' 11568 11569else 11570 11571 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 11572 11573fi 11574 11575 SHLIB_LD_LIBS="" 11576 SHLIB_SUFFIX=".so" 11577 DL_OBJS="tclLoadDl.o" 11578 DL_LIBS="" 11579 if test $doRpath = yes; then 11580 11581 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 11582 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 11583fi 11584 11585 if test "$GCC" = yes; then 11586 CFLAGS="$CFLAGS -mieee" 11587else 11588 11589 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 11590fi 11591 11592 # see pthread_intro(3) for pthread support on osf1, k.furukawa 11593 if test "${TCL_THREADS}" = 1; then 11594 11595 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 11596 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 11597 LIBS=`echo $LIBS | sed s/-lpthreads//` 11598 if test "$GCC" = yes; then 11599 11600 LIBS="$LIBS -lpthread -lmach -lexc" 11601 11602else 11603 11604 CFLAGS="$CFLAGS -pthread" 11605 LDFLAGS="$LDFLAGS -pthread" 11606 11607fi 11608 11609 11610fi 11611 11612 ;; 11613 QNX-6*) 11614 # QNX RTP 11615 # This may work for all QNX, but it was only reported for v6. 11616 SHLIB_CFLAGS="-fPIC" 11617 SHLIB_LD="ld -Bshareable -x" 11618 SHLIB_LD_LIBS="" 11619 SHLIB_SUFFIX=".so" 11620 DL_OBJS="tclLoadDl.o" 11621 # dlopen is in -lc on QNX 11622 DL_LIBS="" 11623 CC_SEARCH_FLAGS="" 11624 LD_SEARCH_FLAGS="" 11625 ;; 11626 SCO_SV-3.2*) 11627 # Note, dlopen is available only on SCO 3.2.5 and greater. However, 11628 # this test works, since "uname -s" was non-standard in 3.2.4 and 11629 # below. 11630 if test "$GCC" = yes; then 11631 11632 SHLIB_CFLAGS="-fPIC -melf" 11633 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 11634 11635else 11636 11637 SHLIB_CFLAGS="-Kpic -belf" 11638 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 11639 11640fi 11641 11642 SHLIB_LD="ld -G" 11643 SHLIB_LD_LIBS="" 11644 SHLIB_SUFFIX=".so" 11645 DL_OBJS="tclLoadDl.o" 11646 DL_LIBS="" 11647 CC_SEARCH_FLAGS="" 11648 LD_SEARCH_FLAGS="" 11649 ;; 11650 SINIX*5.4*) 11651 SHLIB_CFLAGS="-K PIC" 11652 SHLIB_LD='${CC} -G' 11653 SHLIB_LD_LIBS="" 11654 SHLIB_SUFFIX=".so" 11655 DL_OBJS="tclLoadDl.o" 11656 DL_LIBS="-ldl" 11657 CC_SEARCH_FLAGS="" 11658 LD_SEARCH_FLAGS="" 11659 ;; 11660 SunOS-4*) 11661 SHLIB_CFLAGS="-PIC" 11662 SHLIB_LD="ld" 11663 SHLIB_LD_LIBS="" 11664 SHLIB_SUFFIX=".so" 11665 DL_OBJS="tclLoadDl.o" 11666 DL_LIBS="-ldl" 11667 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 11668 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 11669 11670 # SunOS can't handle version numbers with dots in them in library 11671 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it 11672 # requires an extra version number at the end of .so file names. 11673 # So, the library has to have a name like libtcl75.so.1.0 11674 11675 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 11676 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 11677 TCL_LIB_VERSIONS_OK=nodots 11678 ;; 11679 SunOS-5.[0-6]) 11680 # Careful to not let 5.10+ fall into this case 11681 11682 # Note: If _REENTRANT isn't defined, then Solaris 11683 # won't define thread-safe library routines. 11684 11685 11686cat >>confdefs.h <<\_ACEOF 11687#define _REENTRANT 1 11688_ACEOF 11689 11690 11691cat >>confdefs.h <<\_ACEOF 11692#define _POSIX_PTHREAD_SEMANTICS 1 11693_ACEOF 11694 11695 11696 SHLIB_CFLAGS="-KPIC" 11697 11698 # Note: need the LIBS below, otherwise Tk won't find Tcl's 11699 # symbols when dynamically loaded into tclsh. 11700 11701 SHLIB_LD_LIBS='${LIBS}' 11702 SHLIB_SUFFIX=".so" 11703 DL_OBJS="tclLoadDl.o" 11704 DL_LIBS="-ldl" 11705 if test "$GCC" = yes; then 11706 11707 SHLIB_LD='${CC} -shared' 11708 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 11709 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 11710 11711else 11712 11713 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 11714 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 11715 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 11716 11717fi 11718 11719 ;; 11720 SunOS-5*) 11721 # Note: If _REENTRANT isn't defined, then Solaris 11722 # won't define thread-safe library routines. 11723 11724 11725cat >>confdefs.h <<\_ACEOF 11726#define _REENTRANT 1 11727_ACEOF 11728 11729 11730cat >>confdefs.h <<\_ACEOF 11731#define _POSIX_PTHREAD_SEMANTICS 1 11732_ACEOF 11733 11734 11735 SHLIB_CFLAGS="-KPIC" 11736 11737 # Check to enable 64-bit flags for compiler/linker 11738 if test "$do64bit" = yes; then 11739 11740 arch=`isainfo` 11741 if test "$arch" = "sparcv9 sparc"; then 11742 11743 if test "$GCC" = yes; then 11744 11745 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 11746 11747 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 11748echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 11749 11750else 11751 11752 do64bit_ok=yes 11753 CFLAGS="$CFLAGS -m64 -mcpu=v9" 11754 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 11755 SHLIB_CFLAGS="-fPIC" 11756 11757fi 11758 11759 11760else 11761 11762 do64bit_ok=yes 11763 if test "$do64bitVIS" = yes; then 11764 11765 CFLAGS="$CFLAGS -xarch=v9a" 11766 LDFLAGS_ARCH="-xarch=v9a" 11767 11768else 11769 11770 CFLAGS="$CFLAGS -xarch=v9" 11771 LDFLAGS_ARCH="-xarch=v9" 11772 11773fi 11774 11775 # Solaris 64 uses this as well 11776 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 11777 11778fi 11779 11780 11781else 11782 if test "$arch" = "amd64 i386"; then 11783 11784 if test "$GCC" = yes; then 11785 11786 case $system in 11787 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 11788 do64bit_ok=yes 11789 CFLAGS="$CFLAGS -m64" 11790 LDFLAGS="$LDFLAGS -m64";; 11791 *) 11792 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 11793echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 11794 esac 11795 11796else 11797 11798 do64bit_ok=yes 11799 case $system in 11800 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 11801 CFLAGS="$CFLAGS -m64" 11802 LDFLAGS="$LDFLAGS -m64";; 11803 *) 11804 CFLAGS="$CFLAGS -xarch=amd64" 11805 LDFLAGS="$LDFLAGS -xarch=amd64";; 11806 esac 11807 11808fi 11809 11810 11811else 11812 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 11813echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 11814fi 11815 11816fi 11817 11818 11819fi 11820 11821 11822 # Note: need the LIBS below, otherwise Tk won't find Tcl's 11823 # symbols when dynamically loaded into tclsh. 11824 11825 SHLIB_LD_LIBS='${LIBS}' 11826 SHLIB_SUFFIX=".so" 11827 DL_OBJS="tclLoadDl.o" 11828 DL_LIBS="-ldl" 11829 if test "$GCC" = yes; then 11830 11831 SHLIB_LD='${CC} -shared' 11832 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 11833 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 11834 if test "$do64bit_ok" = yes; then 11835 11836 if test "$arch" = "sparcv9 sparc"; then 11837 11838 # We need to specify -static-libgcc or we need to 11839 # add the path to the sparv9 libgcc. 11840 # JH: static-libgcc is necessary for core Tcl, but may 11841 # not be necessary for extensions. 11842 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 11843 # for finding sparcv9 libgcc, get the regular libgcc 11844 # path, remove so name and append 'sparcv9' 11845 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 11846 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 11847 11848else 11849 if test "$arch" = "amd64 i386"; then 11850 11851 # JH: static-libgcc is necessary for core Tcl, but may 11852 # not be necessary for extensions. 11853 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 11854 11855fi 11856 11857fi 11858 11859 11860fi 11861 11862 11863else 11864 11865 case $system in 11866 SunOS-5.[1-9][0-9]*) 11867 SHLIB_LD='${CC} -G -z text ${LDFLAGS}';; 11868 *) 11869 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 11870 esac 11871 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 11872 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 11873 11874fi 11875 11876 ;; 11877 UNIX_SV* | UnixWare-5*) 11878 SHLIB_CFLAGS="-KPIC" 11879 SHLIB_LD='${CC} -G' 11880 SHLIB_LD_LIBS="" 11881 SHLIB_SUFFIX=".so" 11882 DL_OBJS="tclLoadDl.o" 11883 DL_LIBS="-ldl" 11884 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 11885 # that don't grok the -Bexport option. Test that it does. 11886 { echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5 11887echo $ECHO_N "checking for ld accepts -Bexport flag... $ECHO_C" >&6; } 11888if test "${tcl_cv_ld_Bexport+set}" = set; then 11889 echo $ECHO_N "(cached) $ECHO_C" >&6 11890else 11891 11892 hold_ldflags=$LDFLAGS 11893 LDFLAGS="$LDFLAGS -Wl,-Bexport" 11894 cat >conftest.$ac_ext <<_ACEOF 11895/* confdefs.h. */ 11896_ACEOF 11897cat confdefs.h >>conftest.$ac_ext 11898cat >>conftest.$ac_ext <<_ACEOF 11899/* end confdefs.h. */ 11900 11901int 11902main () 11903{ 11904int i; 11905 ; 11906 return 0; 11907} 11908_ACEOF 11909rm -f conftest.$ac_objext conftest$ac_exeext 11910if { (ac_try="$ac_link" 11911case "(($ac_try" in 11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11913 *) ac_try_echo=$ac_try;; 11914esac 11915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11916 (eval "$ac_link") 2>conftest.er1 11917 ac_status=$? 11918 grep -v '^ *+' conftest.er1 >conftest.err 11919 rm -f conftest.er1 11920 cat conftest.err >&5 11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11922 (exit $ac_status); } && { 11923 test -z "$ac_c_werror_flag" || 11924 test ! -s conftest.err 11925 } && test -s conftest$ac_exeext && 11926 $as_test_x conftest$ac_exeext; then 11927 tcl_cv_ld_Bexport=yes 11928else 11929 echo "$as_me: failed program was:" >&5 11930sed 's/^/| /' conftest.$ac_ext >&5 11931 11932 tcl_cv_ld_Bexport=no 11933fi 11934 11935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11936 conftest$ac_exeext conftest.$ac_ext 11937 LDFLAGS=$hold_ldflags 11938fi 11939{ echo "$as_me:$LINENO: result: $tcl_cv_ld_Bexport" >&5 11940echo "${ECHO_T}$tcl_cv_ld_Bexport" >&6; } 11941 if test $tcl_cv_ld_Bexport = yes; then 11942 11943 LDFLAGS="$LDFLAGS -Wl,-Bexport" 11944 11945fi 11946 11947 CC_SEARCH_FLAGS="" 11948 LD_SEARCH_FLAGS="" 11949 ;; 11950 esac 11951 11952 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 11953 11954 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 11955echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 11956 11957fi 11958 11959 11960 11961 11962 # Step 4: disable dynamic loading if requested via a command-line switch. 11963 11964 # Check whether --enable-load was given. 11965if test "${enable_load+set}" = set; then 11966 enableval=$enable_load; tcl_ok=$enableval 11967else 11968 tcl_ok=yes 11969fi 11970 11971 if test "$tcl_ok" = no; then 11972 DL_OBJS="" 11973fi 11974 11975 11976 if test "x$DL_OBJS" != x; then 11977 BUILD_DLTEST="\$(DLTEST_TARGETS)" 11978else 11979 11980 { echo "$as_me:$LINENO: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&5 11981echo "$as_me: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&2;} 11982 SHLIB_CFLAGS="" 11983 SHLIB_LD="" 11984 SHLIB_SUFFIX="" 11985 DL_OBJS="tclLoadNone.o" 11986 DL_LIBS="" 11987 LDFLAGS="$LDFLAGS_ORIG" 11988 CC_SEARCH_FLAGS="" 11989 LD_SEARCH_FLAGS="" 11990 BUILD_DLTEST="" 11991 11992fi 11993 11994 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 11995 11996 # If we're running gcc, then change the C flags for compiling shared 11997 # libraries to the right flags for gcc, instead of those for the 11998 # standard manufacturer compiler. 11999 12000 if test "$DL_OBJS" != "tclLoadNone.o" -a "$GCC" = yes; then 12001 12002 case $system in 12003 AIX-*) ;; 12004 BSD/OS*) ;; 12005 IRIX*) ;; 12006 NetBSD-*|FreeBSD-*) ;; 12007 DragonFly-*) ;; 12008 Darwin-*) ;; 12009 SCO_SV-3.2*) ;; 12010 *) SHLIB_CFLAGS="-fPIC" ;; 12011 esac 12012fi 12013 12014 12015 if test "$SHARED_LIB_SUFFIX" = ""; then 12016 12017 # TEA specific: use PACKAGE_VERSION instead of VERSION 12018 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 12019fi 12020 12021 if test "$UNSHARED_LIB_SUFFIX" = ""; then 12022 12023 # TEA specific: use PACKAGE_VERSION instead of VERSION 12024 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 12025fi 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 # These must be called after we do the basic CFLAGS checks and 12043 # verify any possible 64-bit or similar switches are necessary 12044 12045 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 12046echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 12047 tcl_flags="" 12048 12049 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 12050 echo $ECHO_N "(cached) $ECHO_C" >&6 12051else 12052 cat >conftest.$ac_ext <<_ACEOF 12053/* confdefs.h. */ 12054_ACEOF 12055cat confdefs.h >>conftest.$ac_ext 12056cat >>conftest.$ac_ext <<_ACEOF 12057/* end confdefs.h. */ 12058#include <stdlib.h> 12059int 12060main () 12061{ 12062char *p = (char *)strtoll; char *q = (char *)strtoull; 12063 ; 12064 return 0; 12065} 12066_ACEOF 12067rm -f conftest.$ac_objext 12068if { (ac_try="$ac_compile" 12069case "(($ac_try" in 12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12071 *) ac_try_echo=$ac_try;; 12072esac 12073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12074 (eval "$ac_compile") 2>conftest.er1 12075 ac_status=$? 12076 grep -v '^ *+' conftest.er1 >conftest.err 12077 rm -f conftest.er1 12078 cat conftest.err >&5 12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12080 (exit $ac_status); } && { 12081 test -z "$ac_c_werror_flag" || 12082 test ! -s conftest.err 12083 } && test -s conftest.$ac_objext; then 12084 tcl_cv_flag__isoc99_source=no 12085else 12086 echo "$as_me: failed program was:" >&5 12087sed 's/^/| /' conftest.$ac_ext >&5 12088 12089 cat >conftest.$ac_ext <<_ACEOF 12090/* confdefs.h. */ 12091_ACEOF 12092cat confdefs.h >>conftest.$ac_ext 12093cat >>conftest.$ac_ext <<_ACEOF 12094/* end confdefs.h. */ 12095#define _ISOC99_SOURCE 1 12096#include <stdlib.h> 12097int 12098main () 12099{ 12100char *p = (char *)strtoll; char *q = (char *)strtoull; 12101 ; 12102 return 0; 12103} 12104_ACEOF 12105rm -f conftest.$ac_objext 12106if { (ac_try="$ac_compile" 12107case "(($ac_try" in 12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12109 *) ac_try_echo=$ac_try;; 12110esac 12111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12112 (eval "$ac_compile") 2>conftest.er1 12113 ac_status=$? 12114 grep -v '^ *+' conftest.er1 >conftest.err 12115 rm -f conftest.er1 12116 cat conftest.err >&5 12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12118 (exit $ac_status); } && { 12119 test -z "$ac_c_werror_flag" || 12120 test ! -s conftest.err 12121 } && test -s conftest.$ac_objext; then 12122 tcl_cv_flag__isoc99_source=yes 12123else 12124 echo "$as_me: failed program was:" >&5 12125sed 's/^/| /' conftest.$ac_ext >&5 12126 12127 tcl_cv_flag__isoc99_source=no 12128fi 12129 12130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12131fi 12132 12133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12134fi 12135 12136 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 12137 12138cat >>confdefs.h <<\_ACEOF 12139#define _ISOC99_SOURCE 1 12140_ACEOF 12141 12142 tcl_flags="$tcl_flags _ISOC99_SOURCE" 12143 fi 12144 12145 12146 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 12147 echo $ECHO_N "(cached) $ECHO_C" >&6 12148else 12149 cat >conftest.$ac_ext <<_ACEOF 12150/* confdefs.h. */ 12151_ACEOF 12152cat confdefs.h >>conftest.$ac_ext 12153cat >>conftest.$ac_ext <<_ACEOF 12154/* end confdefs.h. */ 12155#include <sys/stat.h> 12156int 12157main () 12158{ 12159struct stat64 buf; int i = stat64("/", &buf); 12160 ; 12161 return 0; 12162} 12163_ACEOF 12164rm -f conftest.$ac_objext 12165if { (ac_try="$ac_compile" 12166case "(($ac_try" in 12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12168 *) ac_try_echo=$ac_try;; 12169esac 12170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12171 (eval "$ac_compile") 2>conftest.er1 12172 ac_status=$? 12173 grep -v '^ *+' conftest.er1 >conftest.err 12174 rm -f conftest.er1 12175 cat conftest.err >&5 12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12177 (exit $ac_status); } && { 12178 test -z "$ac_c_werror_flag" || 12179 test ! -s conftest.err 12180 } && test -s conftest.$ac_objext; then 12181 tcl_cv_flag__largefile64_source=no 12182else 12183 echo "$as_me: failed program was:" >&5 12184sed 's/^/| /' conftest.$ac_ext >&5 12185 12186 cat >conftest.$ac_ext <<_ACEOF 12187/* confdefs.h. */ 12188_ACEOF 12189cat confdefs.h >>conftest.$ac_ext 12190cat >>conftest.$ac_ext <<_ACEOF 12191/* end confdefs.h. */ 12192#define _LARGEFILE64_SOURCE 1 12193#include <sys/stat.h> 12194int 12195main () 12196{ 12197struct stat64 buf; int i = stat64("/", &buf); 12198 ; 12199 return 0; 12200} 12201_ACEOF 12202rm -f conftest.$ac_objext 12203if { (ac_try="$ac_compile" 12204case "(($ac_try" in 12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12206 *) ac_try_echo=$ac_try;; 12207esac 12208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12209 (eval "$ac_compile") 2>conftest.er1 12210 ac_status=$? 12211 grep -v '^ *+' conftest.er1 >conftest.err 12212 rm -f conftest.er1 12213 cat conftest.err >&5 12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12215 (exit $ac_status); } && { 12216 test -z "$ac_c_werror_flag" || 12217 test ! -s conftest.err 12218 } && test -s conftest.$ac_objext; then 12219 tcl_cv_flag__largefile64_source=yes 12220else 12221 echo "$as_me: failed program was:" >&5 12222sed 's/^/| /' conftest.$ac_ext >&5 12223 12224 tcl_cv_flag__largefile64_source=no 12225fi 12226 12227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12228fi 12229 12230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12231fi 12232 12233 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 12234 12235cat >>confdefs.h <<\_ACEOF 12236#define _LARGEFILE64_SOURCE 1 12237_ACEOF 12238 12239 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 12240 fi 12241 12242 12243 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 12244 echo $ECHO_N "(cached) $ECHO_C" >&6 12245else 12246 cat >conftest.$ac_ext <<_ACEOF 12247/* confdefs.h. */ 12248_ACEOF 12249cat confdefs.h >>conftest.$ac_ext 12250cat >>conftest.$ac_ext <<_ACEOF 12251/* end confdefs.h. */ 12252#include <sys/stat.h> 12253int 12254main () 12255{ 12256char *p = (char *)open64; 12257 ; 12258 return 0; 12259} 12260_ACEOF 12261rm -f conftest.$ac_objext 12262if { (ac_try="$ac_compile" 12263case "(($ac_try" in 12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12265 *) ac_try_echo=$ac_try;; 12266esac 12267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12268 (eval "$ac_compile") 2>conftest.er1 12269 ac_status=$? 12270 grep -v '^ *+' conftest.er1 >conftest.err 12271 rm -f conftest.er1 12272 cat conftest.err >&5 12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12274 (exit $ac_status); } && { 12275 test -z "$ac_c_werror_flag" || 12276 test ! -s conftest.err 12277 } && test -s conftest.$ac_objext; then 12278 tcl_cv_flag__largefile_source64=no 12279else 12280 echo "$as_me: failed program was:" >&5 12281sed 's/^/| /' conftest.$ac_ext >&5 12282 12283 cat >conftest.$ac_ext <<_ACEOF 12284/* confdefs.h. */ 12285_ACEOF 12286cat confdefs.h >>conftest.$ac_ext 12287cat >>conftest.$ac_ext <<_ACEOF 12288/* end confdefs.h. */ 12289#define _LARGEFILE_SOURCE64 1 12290#include <sys/stat.h> 12291int 12292main () 12293{ 12294char *p = (char *)open64; 12295 ; 12296 return 0; 12297} 12298_ACEOF 12299rm -f conftest.$ac_objext 12300if { (ac_try="$ac_compile" 12301case "(($ac_try" in 12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12303 *) ac_try_echo=$ac_try;; 12304esac 12305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12306 (eval "$ac_compile") 2>conftest.er1 12307 ac_status=$? 12308 grep -v '^ *+' conftest.er1 >conftest.err 12309 rm -f conftest.er1 12310 cat conftest.err >&5 12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12312 (exit $ac_status); } && { 12313 test -z "$ac_c_werror_flag" || 12314 test ! -s conftest.err 12315 } && test -s conftest.$ac_objext; then 12316 tcl_cv_flag__largefile_source64=yes 12317else 12318 echo "$as_me: failed program was:" >&5 12319sed 's/^/| /' conftest.$ac_ext >&5 12320 12321 tcl_cv_flag__largefile_source64=no 12322fi 12323 12324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12325fi 12326 12327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12328fi 12329 12330 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 12331 12332cat >>confdefs.h <<\_ACEOF 12333#define _LARGEFILE_SOURCE64 1 12334_ACEOF 12335 12336 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 12337 fi 12338 12339 if test "x${tcl_flags}" = "x" ; then 12340 { echo "$as_me:$LINENO: result: none" >&5 12341echo "${ECHO_T}none" >&6; } 12342 else 12343 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 12344echo "${ECHO_T}${tcl_flags}" >&6; } 12345 fi 12346 12347 12348 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 12349echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 12350 if test "${tcl_cv_type_64bit+set}" = set; then 12351 echo $ECHO_N "(cached) $ECHO_C" >&6 12352else 12353 12354 tcl_cv_type_64bit=none 12355 # See if the compiler knows natively about __int64 12356 cat >conftest.$ac_ext <<_ACEOF 12357/* confdefs.h. */ 12358_ACEOF 12359cat confdefs.h >>conftest.$ac_ext 12360cat >>conftest.$ac_ext <<_ACEOF 12361/* end confdefs.h. */ 12362 12363int 12364main () 12365{ 12366__int64 value = (__int64) 0; 12367 ; 12368 return 0; 12369} 12370_ACEOF 12371rm -f conftest.$ac_objext 12372if { (ac_try="$ac_compile" 12373case "(($ac_try" in 12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12375 *) ac_try_echo=$ac_try;; 12376esac 12377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12378 (eval "$ac_compile") 2>conftest.er1 12379 ac_status=$? 12380 grep -v '^ *+' conftest.er1 >conftest.err 12381 rm -f conftest.er1 12382 cat conftest.err >&5 12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12384 (exit $ac_status); } && { 12385 test -z "$ac_c_werror_flag" || 12386 test ! -s conftest.err 12387 } && test -s conftest.$ac_objext; then 12388 tcl_type_64bit=__int64 12389else 12390 echo "$as_me: failed program was:" >&5 12391sed 's/^/| /' conftest.$ac_ext >&5 12392 12393 tcl_type_64bit="long long" 12394fi 12395 12396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12397 # See if we should use long anyway Note that we substitute in the 12398 # type that is our current guess for a 64-bit type inside this check 12399 # program, so it should be modified only carefully... 12400 cat >conftest.$ac_ext <<_ACEOF 12401/* confdefs.h. */ 12402_ACEOF 12403cat confdefs.h >>conftest.$ac_ext 12404cat >>conftest.$ac_ext <<_ACEOF 12405/* end confdefs.h. */ 12406 12407int 12408main () 12409{ 12410switch (0) { 12411 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 12412 } 12413 ; 12414 return 0; 12415} 12416_ACEOF 12417rm -f conftest.$ac_objext 12418if { (ac_try="$ac_compile" 12419case "(($ac_try" in 12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12421 *) ac_try_echo=$ac_try;; 12422esac 12423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12424 (eval "$ac_compile") 2>conftest.er1 12425 ac_status=$? 12426 grep -v '^ *+' conftest.er1 >conftest.err 12427 rm -f conftest.er1 12428 cat conftest.err >&5 12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12430 (exit $ac_status); } && { 12431 test -z "$ac_c_werror_flag" || 12432 test ! -s conftest.err 12433 } && test -s conftest.$ac_objext; then 12434 tcl_cv_type_64bit=${tcl_type_64bit} 12435else 12436 echo "$as_me: failed program was:" >&5 12437sed 's/^/| /' conftest.$ac_ext >&5 12438 12439 12440fi 12441 12442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12443fi 12444 12445 if test "${tcl_cv_type_64bit}" = none ; then 12446 12447cat >>confdefs.h <<\_ACEOF 12448#define TCL_WIDE_INT_IS_LONG 1 12449_ACEOF 12450 12451 { echo "$as_me:$LINENO: result: using long" >&5 12452echo "${ECHO_T}using long" >&6; } 12453 elif test "${tcl_cv_type_64bit}" = "__int64" \ 12454 -a "${TEA_PLATFORM}" = "windows" ; then 12455 # TEA specific: We actually want to use the default tcl.h checks in 12456 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 12457 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 12458echo "${ECHO_T}using Tcl header defaults" >&6; } 12459 else 12460 12461cat >>confdefs.h <<_ACEOF 12462#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 12463_ACEOF 12464 12465 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 12466echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 12467 12468 # Now check for auxiliary declarations 12469 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 12470echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 12471if test "${tcl_cv_struct_dirent64+set}" = set; then 12472 echo $ECHO_N "(cached) $ECHO_C" >&6 12473else 12474 12475 cat >conftest.$ac_ext <<_ACEOF 12476/* confdefs.h. */ 12477_ACEOF 12478cat confdefs.h >>conftest.$ac_ext 12479cat >>conftest.$ac_ext <<_ACEOF 12480/* end confdefs.h. */ 12481#include <sys/types.h> 12482#include <sys/dirent.h> 12483int 12484main () 12485{ 12486struct dirent64 p; 12487 ; 12488 return 0; 12489} 12490_ACEOF 12491rm -f conftest.$ac_objext 12492if { (ac_try="$ac_compile" 12493case "(($ac_try" in 12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12495 *) ac_try_echo=$ac_try;; 12496esac 12497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12498 (eval "$ac_compile") 2>conftest.er1 12499 ac_status=$? 12500 grep -v '^ *+' conftest.er1 >conftest.err 12501 rm -f conftest.er1 12502 cat conftest.err >&5 12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12504 (exit $ac_status); } && { 12505 test -z "$ac_c_werror_flag" || 12506 test ! -s conftest.err 12507 } && test -s conftest.$ac_objext; then 12508 tcl_cv_struct_dirent64=yes 12509else 12510 echo "$as_me: failed program was:" >&5 12511sed 's/^/| /' conftest.$ac_ext >&5 12512 12513 tcl_cv_struct_dirent64=no 12514fi 12515 12516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12517fi 12518{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 12519echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 12520 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 12521 12522cat >>confdefs.h <<\_ACEOF 12523#define HAVE_STRUCT_DIRENT64 1 12524_ACEOF 12525 12526 fi 12527 12528 { echo "$as_me:$LINENO: checking for struct stat64" >&5 12529echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 12530if test "${tcl_cv_struct_stat64+set}" = set; then 12531 echo $ECHO_N "(cached) $ECHO_C" >&6 12532else 12533 12534 cat >conftest.$ac_ext <<_ACEOF 12535/* confdefs.h. */ 12536_ACEOF 12537cat confdefs.h >>conftest.$ac_ext 12538cat >>conftest.$ac_ext <<_ACEOF 12539/* end confdefs.h. */ 12540#include <sys/stat.h> 12541int 12542main () 12543{ 12544struct stat64 p; 12545 12546 ; 12547 return 0; 12548} 12549_ACEOF 12550rm -f conftest.$ac_objext 12551if { (ac_try="$ac_compile" 12552case "(($ac_try" in 12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12554 *) ac_try_echo=$ac_try;; 12555esac 12556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12557 (eval "$ac_compile") 2>conftest.er1 12558 ac_status=$? 12559 grep -v '^ *+' conftest.er1 >conftest.err 12560 rm -f conftest.er1 12561 cat conftest.err >&5 12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12563 (exit $ac_status); } && { 12564 test -z "$ac_c_werror_flag" || 12565 test ! -s conftest.err 12566 } && test -s conftest.$ac_objext; then 12567 tcl_cv_struct_stat64=yes 12568else 12569 echo "$as_me: failed program was:" >&5 12570sed 's/^/| /' conftest.$ac_ext >&5 12571 12572 tcl_cv_struct_stat64=no 12573fi 12574 12575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12576fi 12577{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 12578echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 12579 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 12580 12581cat >>confdefs.h <<\_ACEOF 12582#define HAVE_STRUCT_STAT64 1 12583_ACEOF 12584 12585 fi 12586 12587 12588 12589for ac_func in open64 lseek64 12590do 12591as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12592{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12593echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12594if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12595 echo $ECHO_N "(cached) $ECHO_C" >&6 12596else 12597 cat >conftest.$ac_ext <<_ACEOF 12598/* confdefs.h. */ 12599_ACEOF 12600cat confdefs.h >>conftest.$ac_ext 12601cat >>conftest.$ac_ext <<_ACEOF 12602/* end confdefs.h. */ 12603/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12604 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12605#define $ac_func innocuous_$ac_func 12606 12607/* System header to define __stub macros and hopefully few prototypes, 12608 which can conflict with char $ac_func (); below. 12609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12610 <limits.h> exists even on freestanding compilers. */ 12611 12612#ifdef __STDC__ 12613# include <limits.h> 12614#else 12615# include <assert.h> 12616#endif 12617 12618#undef $ac_func 12619 12620/* Override any GCC internal prototype to avoid an error. 12621 Use char because int might match the return type of a GCC 12622 builtin and then its argument prototype would still apply. */ 12623#ifdef __cplusplus 12624extern "C" 12625#endif 12626char $ac_func (); 12627/* The GNU C library defines this for functions which it implements 12628 to always fail with ENOSYS. Some functions are actually named 12629 something starting with __ and the normal name is an alias. */ 12630#if defined __stub_$ac_func || defined __stub___$ac_func 12631choke me 12632#endif 12633 12634int 12635main () 12636{ 12637return $ac_func (); 12638 ; 12639 return 0; 12640} 12641_ACEOF 12642rm -f conftest.$ac_objext conftest$ac_exeext 12643if { (ac_try="$ac_link" 12644case "(($ac_try" in 12645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12646 *) ac_try_echo=$ac_try;; 12647esac 12648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12649 (eval "$ac_link") 2>conftest.er1 12650 ac_status=$? 12651 grep -v '^ *+' conftest.er1 >conftest.err 12652 rm -f conftest.er1 12653 cat conftest.err >&5 12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12655 (exit $ac_status); } && { 12656 test -z "$ac_c_werror_flag" || 12657 test ! -s conftest.err 12658 } && test -s conftest$ac_exeext && 12659 $as_test_x conftest$ac_exeext; then 12660 eval "$as_ac_var=yes" 12661else 12662 echo "$as_me: failed program was:" >&5 12663sed 's/^/| /' conftest.$ac_ext >&5 12664 12665 eval "$as_ac_var=no" 12666fi 12667 12668rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12669 conftest$ac_exeext conftest.$ac_ext 12670fi 12671ac_res=`eval echo '${'$as_ac_var'}'` 12672 { echo "$as_me:$LINENO: result: $ac_res" >&5 12673echo "${ECHO_T}$ac_res" >&6; } 12674if test `eval echo '${'$as_ac_var'}'` = yes; then 12675 cat >>confdefs.h <<_ACEOF 12676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12677_ACEOF 12678 12679fi 12680done 12681 12682 { echo "$as_me:$LINENO: checking for off64_t" >&5 12683echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 12684 if test "${tcl_cv_type_off64_t+set}" = set; then 12685 echo $ECHO_N "(cached) $ECHO_C" >&6 12686else 12687 12688 cat >conftest.$ac_ext <<_ACEOF 12689/* confdefs.h. */ 12690_ACEOF 12691cat confdefs.h >>conftest.$ac_ext 12692cat >>conftest.$ac_ext <<_ACEOF 12693/* end confdefs.h. */ 12694#include <sys/types.h> 12695int 12696main () 12697{ 12698off64_t offset; 12699 12700 ; 12701 return 0; 12702} 12703_ACEOF 12704rm -f conftest.$ac_objext 12705if { (ac_try="$ac_compile" 12706case "(($ac_try" in 12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12708 *) ac_try_echo=$ac_try;; 12709esac 12710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12711 (eval "$ac_compile") 2>conftest.er1 12712 ac_status=$? 12713 grep -v '^ *+' conftest.er1 >conftest.err 12714 rm -f conftest.er1 12715 cat conftest.err >&5 12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12717 (exit $ac_status); } && { 12718 test -z "$ac_c_werror_flag" || 12719 test ! -s conftest.err 12720 } && test -s conftest.$ac_objext; then 12721 tcl_cv_type_off64_t=yes 12722else 12723 echo "$as_me: failed program was:" >&5 12724sed 's/^/| /' conftest.$ac_ext >&5 12725 12726 tcl_cv_type_off64_t=no 12727fi 12728 12729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12730fi 12731 12732 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 12733 test "x${ac_cv_func_lseek64}" = "xyes" && \ 12734 test "x${ac_cv_func_open64}" = "xyes" ; then 12735 12736cat >>confdefs.h <<\_ACEOF 12737#define HAVE_TYPE_OFF64_T 1 12738_ACEOF 12739 12740 { echo "$as_me:$LINENO: result: yes" >&5 12741echo "${ECHO_T}yes" >&6; } 12742 else 12743 { echo "$as_me:$LINENO: result: no" >&5 12744echo "${ECHO_T}no" >&6; } 12745 fi 12746 fi 12747 12748 12749 12750#-------------------------------------------------------------------- 12751# Set the default compiler switches based on the --enable-symbols option. 12752#-------------------------------------------------------------------- 12753 12754 12755 12756 { echo "$as_me:$LINENO: checking for build with symbols" >&5 12757echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 12758 # Check whether --enable-symbols was given. 12759if test "${enable_symbols+set}" = set; then 12760 enableval=$enable_symbols; tcl_ok=$enableval 12761else 12762 tcl_ok=no 12763fi 12764 12765 DBGX="" 12766 if test "$tcl_ok" = "no"; then 12767 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 12768 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 12769 { echo "$as_me:$LINENO: result: no" >&5 12770echo "${ECHO_T}no" >&6; } 12771 else 12772 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 12773 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 12774 if test "$tcl_ok" = "yes"; then 12775 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 12776echo "${ECHO_T}yes (standard debugging)" >&6; } 12777 fi 12778 fi 12779 # TEA specific: 12780 if test "${TEA_PLATFORM}" != "windows" ; then 12781 LDFLAGS_DEFAULT="${LDFLAGS}" 12782 fi 12783 12784 12785 12786 12787 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 12788 12789cat >>confdefs.h <<\_ACEOF 12790#define TCL_MEM_DEBUG 1 12791_ACEOF 12792 12793 fi 12794 12795 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 12796 if test "$tcl_ok" = "all"; then 12797 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 12798echo "${ECHO_T}enabled symbols mem debugging" >&6; } 12799 else 12800 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 12801echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 12802 fi 12803 fi 12804 12805 12806#-------------------------------------------------------------------- 12807# Everyone should be linking against the Tcl stub library. If you 12808# can't for some reason, remove this definition. If you aren't using 12809# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 12810# link against the non-stubbed Tcl library. 12811#-------------------------------------------------------------------- 12812 12813cat >>confdefs.h <<\_ACEOF 12814#define USE_TCL_STUBS 1 12815_ACEOF 12816 12817cat >>confdefs.h <<\_ACEOF 12818#define USE_ZLIBTCL_STUBS 1 12819_ACEOF 12820 12821 12822#-------------------------------------------------------------------- 12823# This macro generates a line to use when building a library. It 12824# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 12825# and TEA_LOAD_TCLCONFIG macros above. 12826#-------------------------------------------------------------------- 12827 12828 12829 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 12830 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 12831 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 12832 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 12833 else 12834 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 12835 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 12836 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 12837 fi 12838 12839 if test "${SHARED_BUILD}" = "1" ; then 12840 MAKE_LIB="${MAKE_SHARED_LIB} " 12841 else 12842 MAKE_LIB="${MAKE_STATIC_LIB} " 12843 fi 12844 12845 #-------------------------------------------------------------------- 12846 # Shared libraries and static libraries have different names. 12847 # Use the double eval to make sure any variables in the suffix is 12848 # substituted. (@@@ Might not be necessary anymore) 12849 #-------------------------------------------------------------------- 12850 12851 if test "${TEA_PLATFORM}" = "windows" ; then 12852 if test "${SHARED_BUILD}" = "1" ; then 12853 # We force the unresolved linking of symbols that are really in 12854 # the private libraries of Tcl and Tk. 12855 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 12856 if test x"${TK_BIN_DIR}" != x ; then 12857 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 12858 fi 12859 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 12860 else 12861 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 12862 fi 12863 # Some packages build their own stubs libraries 12864 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 12865 if test "$GCC" = "yes"; then 12866 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 12867 fi 12868 # These aren't needed on Windows (either MSVC or gcc) 12869 RANLIB=: 12870 RANLIB_STUB=: 12871 else 12872 RANLIB_STUB="${RANLIB}" 12873 if test "${SHARED_BUILD}" = "1" ; then 12874 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 12875 if test x"${TK_BIN_DIR}" != x ; then 12876 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 12877 fi 12878 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 12879 RANLIB=: 12880 else 12881 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 12882 fi 12883 # Some packages build their own stubs libraries 12884 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 12885 fi 12886 12887 # These are escaped so that only CFLAGS is picked up at configure time. 12888 # The other values will be substituted at make time. 12889 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 12890 if test "${SHARED_BUILD}" = "1" ; then 12891 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 12892 fi 12893 12894 12895 12896 12897 12898 12899 12900 12901#-------------------------------------------------------------------- 12902# __CHANGE__ 12903# Add platform libs to LIBS or SHLIB_LD_LIBS as necessary. 12904#-------------------------------------------------------------------- 12905 12906if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 12907 12908 vars="\"`${CYGPATH} ${zlibtcl_STUB_LIB_PATH}`\"" 12909 for i in $vars; do 12910 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 12911 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 12912 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 12913 fi 12914 PKG_LIBS="$PKG_LIBS $i" 12915 done 12916 12917 12918else 12919 12920 vars="${zlibtcl_STUB_LIB_SPEC}" 12921 for i in $vars; do 12922 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 12923 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 12924 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 12925 fi 12926 PKG_LIBS="$PKG_LIBS $i" 12927 done 12928 12929 12930fi 12931 12932#-------------------------------------------------------------------- 12933# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 12934# file during the install process. Don't run the TCLSH_PROG through 12935# ${CYGPATH} because it's being used directly by make. 12936# Require that we use a tclsh shell version 8.2 or later since earlier 12937# versions have bugs in the pkg_mkIndex routine. 12938# Add WISH as well if this is a Tk extension. 12939#-------------------------------------------------------------------- 12940 12941 12942 { echo "$as_me:$LINENO: checking for tclsh" >&5 12943echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 12944 if test -f "${TCL_BIN_DIR}/Makefile" ; then 12945 # tclConfig.sh is in Tcl build directory 12946 if test "${TEA_PLATFORM}" = "windows"; then 12947 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 12948 else 12949 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 12950 fi 12951 else 12952 # tclConfig.sh is in install location 12953 if test "${TEA_PLATFORM}" = "windows"; then 12954 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 12955 else 12956 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 12957 fi 12958 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 12959 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 12960 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 12961 for i in $list ; do 12962 if test -f "$i/${TCLSH_PROG}" ; then 12963 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 12964 break 12965 fi 12966 done 12967 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 12968 fi 12969 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 12970echo "${ECHO_T}${TCLSH_PROG}" >&6; } 12971 12972 12973 12974#-------------------------------------------------------------------- 12975# Propagate the information about the required loader file. 12976#-------------------------------------------------------------------- 12977 12978case "`uname -s`" in 12979 *win32* | *WIN32* | *CYGWIN_NT* | *CYGWIN_98* | *CYGWIN_95* | MINGW32_NT*) 12980 12981 vars="compat/tclLoadWin.c" 12982 for i in $vars; do 12983 case $i in 12984 \$*) 12985 # allow $-var names 12986 PKG_SOURCES="$PKG_SOURCES $i" 12987 PKG_OBJECTS="$PKG_OBJECTS $i" 12988 ;; 12989 *) 12990 # check for existence - allows for generic/win/unix VPATH 12991 # To add more dirs here (like 'src'), you have to update VPATH 12992 # in Makefile.in as well 12993 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 12994 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 12995 ; then 12996 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 12997echo "$as_me: error: could not find source file '$i'" >&2;} 12998 { (exit 1); exit 1; }; } 12999 fi 13000 PKG_SOURCES="$PKG_SOURCES $i" 13001 # this assumes it is in a VPATH dir 13002 i=`basename $i` 13003 # handle user calling this before or after TEA_SETUP_COMPILER 13004 if test x"${OBJEXT}" != x ; then 13005 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 13006 else 13007 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 13008 fi 13009 PKG_OBJECTS="$PKG_OBJECTS $j" 13010 ;; 13011 esac 13012 done 13013 13014 13015 13016 ;; 13017 *Darwin) 13018 ;; 13019 *) 13020 if test "x${DL_OBJS}" != "xtclLoadDl.o" 13021 then 13022 13023 vars="compat/`basename ${DL_OBJS} .o`.c" 13024 for i in $vars; do 13025 case $i in 13026 \$*) 13027 # allow $-var names 13028 PKG_SOURCES="$PKG_SOURCES $i" 13029 PKG_OBJECTS="$PKG_OBJECTS $i" 13030 ;; 13031 *) 13032 # check for existence - allows for generic/win/unix VPATH 13033 # To add more dirs here (like 'src'), you have to update VPATH 13034 # in Makefile.in as well 13035 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 13036 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 13037 ; then 13038 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 13039echo "$as_me: error: could not find source file '$i'" >&2;} 13040 { (exit 1); exit 1; }; } 13041 fi 13042 PKG_SOURCES="$PKG_SOURCES $i" 13043 # this assumes it is in a VPATH dir 13044 i=`basename $i` 13045 # handle user calling this before or after TEA_SETUP_COMPILER 13046 if test x"${OBJEXT}" != x ; then 13047 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 13048 else 13049 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 13050 fi 13051 PKG_OBJECTS="$PKG_OBJECTS $j" 13052 ;; 13053 esac 13054 done 13055 13056 13057 13058 fi 13059 ;; 13060esac 13061 13062#-------------------------------------------------------------------- 13063# Locate supporting libraries 13064#-------------------------------------------------------------------- 13065 13066 13067 13068 13069# Check whether --with-zlib was given. 13070if test "${with_zlib+set}" = set; then 13071 withval=$with_zlib; ZLIB_LIB_DIR=$withval/lib; ZLIB_INCLUDE_DIR=$withval/include 13072fi 13073 13074 13075# Check whether --with-zlib-include-dir was given. 13076if test "${with_zlib_include_dir+set}" = set; then 13077 withval=$with_zlib_include_dir; ZLIB_INCLUDE_DIR=$withval 13078fi 13079 13080 13081# Check whether --with-zlib-lib-dir was given. 13082if test "${with_zlib_lib_dir+set}" = set; then 13083 withval=$with_zlib_lib_dir; ZLIB_LIB_DIR=$withval 13084fi 13085 13086 13087 13088# Check whether --with-ssl was given. 13089if test "${with_ssl+set}" = set; then 13090 withval=$with_ssl; SSL_LIB_DIR=$withval/lib; SSL_INCLUDE_DIR=$withval/include 13091fi 13092 13093 13094# Check whether --with-ssl-include-dir was given. 13095if test "${with_ssl_include_dir+set}" = set; then 13096 withval=$with_ssl_include_dir; SSL_INCLUDE_DIR=$withval 13097fi 13098 13099 13100# Check whether --with-ssl-lib-dir was given. 13101if test "${with_ssl_lib_dir+set}" = set; then 13102 withval=$with_ssl_lib_dir; SSL_LIB_DIR=$withval 13103fi 13104 13105 13106 13107# Check whether --with-bz2 was given. 13108if test "${with_bz2+set}" = set; then 13109 withval=$with_bz2; BZ2_LIB_DIR=$withval/lib; BZ2_INCLUDE_DIR=$withval/include 13110fi 13111 13112 13113# Check whether --with-bz2-include-dir was given. 13114if test "${with_bz2_include_dir+set}" = set; then 13115 withval=$with_bz2_include_dir; BZ2_INCLUDE_DIR=$withval 13116fi 13117 13118 13119# Check whether --with-bz2-lib-dir was given. 13120if test "${with_bz2_lib_dir+set}" = set; then 13121 withval=$with_bz2_lib_dir; BZ2_LIB_DIR=$withval 13122fi 13123 13124 13125# Check whether --enable-static-zlib was given. 13126if test "${enable_static_zlib+set}" = set; then 13127 enableval=$enable_static_zlib; STATIC_ZLIB=$enableval 13128else 13129 STATIC_ZLIB=no 13130fi 13131 13132 13133# Check whether --enable-static-bzlib was given. 13134if test "${enable_static_bzlib+set}" = set; then 13135 enableval=$enable_static_bzlib; STATIC_BZLIB=$enableval 13136else 13137 STATIC_BZLIB=no 13138fi 13139 13140 13141# Check whether --enable-static-md5 was given. 13142if test "${enable_static_md5+set}" = set; then 13143 enableval=$enable_static_md5; STATIC_MD5=$enableval 13144else 13145 STATIC_MD5=no 13146fi 13147 13148 13149# Check whether --enable-trf_debug was given. 13150if test "${enable_trf_debug+set}" = set; then 13151 enableval=$enable_trf_debug; trf_debug=$enableval 13152else 13153 trf_debug=no 13154fi 13155 13156 13157# Check whether --enable-stream_debug was given. 13158if test "${enable_stream_debug+set}" = set; then 13159 enableval=$enable_stream_debug; stream_debug=$enableval 13160else 13161 stream_debug=no 13162fi 13163 13164 13165 13166 13167if test "X" = "X$ZLIB_LIB_DIR" -a "X" != "X$ZLIB_INCLUDE_DIR" 13168then 13169 ZLIB_LIB_DIR="$ZLIB_INCLUDE_DIR/../lib" 13170fi 13171 13172if test "X" = "X$ZLIB_INCLUDE_DIR" -a "X" != "X$ZLIB_LIB_DIR" 13173then 13174 ZLIB_INCLUDE_DIR="$ZLIB_LIB_DIR/../include" 13175fi 13176 13177 13178 13179if test "X" = "X$BZ2_LIB_DIR" -a "X" != "X$BZ2_INCLUDE_DIR" 13180then 13181 BZ2_LIB_DIR="$BZ2_INCLUDE_DIR/../lib" 13182fi 13183 13184if test "X" = "X$BZ2_INCLUDE_DIR" -a "X" != "X$BZ2_LIB_DIR" 13185then 13186 BZ2_INCLUDE_DIR="$BZ2_LIB_DIR/../include" 13187fi 13188 13189 13190 13191if test "X" = "X$SSL_LIB_DIR" -a "X" != "X$SSL_INCLUDE_DIR" 13192then 13193 SSL_LIB_DIR="$SSL_INCLUDE_DIR/../lib" 13194fi 13195 13196if test "X" = "X$SSL_INCLUDE_DIR" -a "X" != "X$SSL_LIB_DIR" 13197then 13198 SSL_INCLUDE_DIR="$SSL_LIB_DIR/../include" 13199fi 13200 13201 13202{ echo "$as_me:$LINENO: checking for directory with zlib.h" >&5 13203echo $ECHO_N "checking for directory with zlib.h... $ECHO_C" >&6; } 13204if test "${trf_cv_path_ZLIB_INCLUDE_DIR+set}" = set; then 13205 echo $ECHO_N "(cached) $ECHO_C" >&6 13206else 13207 trf_cv_path_ZLIB_INCLUDE_DIR="" 13208 places="$ZLIB_INCLUDE_DIR \ 13209 $TCL_INCLUDE_DIR \ 13210 $prefix/include \ 13211 /usr/local/include \ 13212 /usr/include" 13213 for dir in $places; do 13214 if test -r $dir/zlib.h ; then 13215 trf_cv_path_ZLIB_INCLUDE_DIR=$dir 13216 break 13217 fi 13218 done 13219fi 13220{ echo "$as_me:$LINENO: result: $trf_cv_path_ZLIB_INCLUDE_DIR" >&5 13221echo "${ECHO_T}$trf_cv_path_ZLIB_INCLUDE_DIR" >&6; } 13222 13223if test -z "$trf_cv_path_ZLIB_INCLUDE_DIR" ; then 13224 { { echo "$as_me:$LINENO: error: not found; falling back to compat/ headers; use --with-zlib=DIR or --with-zlib-include-dir=DIR" >&5 13225echo "$as_me: error: not found; falling back to compat/ headers; use --with-zlib=DIR or --with-zlib-include-dir=DIR" >&2;} 13226 { (exit 1); exit 1; }; } 13227 ZLIB_INCLUDE_DIR="\".\"" 13228else 13229 ZLIB_INCLUDE_DIR="\"`${CYGPATH} $trf_cv_path_ZLIB_INCLUDE_DIR`\"" 13230 13231 eval cat >>confdefs.h <<_ACEOF 13232#define HAVE_ZLIB_H 1 13233_ACEOF 13234 13235 TRF_TESTS="$TRF_TESTS hasZlib" 13236fi 13237 13238 13239 13240 13241{ echo "$as_me:$LINENO: checking for libz library" >&5 13242echo $ECHO_N "checking for libz library... $ECHO_C" >&6; } 13243if test "${trf_cv_lib_ZLIB_LIB_DIR+set}" = set; then 13244 echo $ECHO_N "(cached) $ECHO_C" >&6 13245else 13246 trf_cv_lib_ZLIB_LIB_DIR="" 13247 places="$ZLIB_LIB_DIR \ 13248 $TCL_LIB_DIR \ 13249 $exec_prefix/lib \ 13250 $prefix/lib \ 13251 /usr/local/lib \ 13252 /usr/lib" 13253 for dir in $places; do 13254 if test -n "$trf_cv_lib_ZLIB_LIB_DIR"; then 13255 break 13256 fi 13257 13258 for libsuff in .so ".so.*" .sl .a .dylib; do 13259 if test -n "$trf_cv_lib_ZLIB_LIB_DIR"; then 13260 break 13261 fi 13262 if test -f "$dir/libz$libsuff"; then 13263 trf_cv_lib_ZLIB_LIB_DIR="$dir" 13264 ZLIB_LIB_DIR="$dir" 13265 fi 13266 done 13267 done 13268fi 13269{ echo "$as_me:$LINENO: result: $trf_cv_lib_ZLIB_LIB_DIR" >&5 13270echo "${ECHO_T}$trf_cv_lib_ZLIB_LIB_DIR" >&6; } 13271 13272if test -z "$trf_cv_lib_ZLIB_LIB_DIR" ; then 13273 { echo "$as_me:$LINENO: WARNING: not found; use --with-zlib-lib-dir=path" >&5 13274echo "$as_me: WARNING: not found; use --with-zlib-lib-dir=path" >&2;} 13275 ZLIB_LIB_DIR="\".\"" 13276else 13277 ZLIB_LIB_DIR="`${CYGPATH} $trf_cv_lib_ZLIB_LIB_DIR`" 13278fi 13279 13280 13281 13282 13283{ echo "$as_me:$LINENO: checking for directory with ssl.h" >&5 13284echo $ECHO_N "checking for directory with ssl.h... $ECHO_C" >&6; } 13285if test "${trf_cv_path_SSL_INCLUDE_DIR+set}" = set; then 13286 echo $ECHO_N "(cached) $ECHO_C" >&6 13287else 13288 trf_cv_path_SSL_INCLUDE_DIR="" 13289 places="$SSL_INCLUDE_DIR \ 13290 $TCL_INCLUDE_DIR \ 13291 $prefix/include \ 13292 /usr/local/ssl/include \ 13293 /usr/local/include \ 13294 /usr/include" 13295 for dir in $places; do 13296 if test -r $dir/openssl/md2.h ; then 13297 trf_cv_path_SSL_INCLUDE_DIR=$dir 13298 TRF_DEFS="$TRF_DEFS -DOPENSSL_SUB" 13299 break 13300 fi 13301 if test -r $dir/openssl/sha1.h ; then 13302 trf_cv_path_SSL_INCLUDE_DIR=$dir 13303 TRF_DEFS="$TRF_DEFS -DOPENSSL_SUB" 13304 break 13305 fi 13306 if test -r $dir/md2.h ; then 13307 trf_cv_path_SSL_INCLUDE_DIR=$dir 13308 break 13309 fi 13310 if test -r $dir/sha1.h ; then 13311 trf_cv_path_SSL_INCLUDE_DIR=$dir 13312 break 13313 fi 13314 done 13315fi 13316{ echo "$as_me:$LINENO: result: $trf_cv_path_SSL_INCLUDE_DIR" >&5 13317echo "${ECHO_T}$trf_cv_path_SSL_INCLUDE_DIR" >&6; } 13318 13319if echo "$TRF_DEFS" | grep -q OPENSSL_SUB; then 13320 cat >>confdefs.h <<_ACEOF 13321#define OPENSSL_SUB 1 13322_ACEOF 13323 13324fi 13325 13326if test -z "$trf_cv_path_SSL_INCLUDE_DIR" ; then 13327 { echo "$as_me:$LINENO: WARNING: not found; falling back compat/ headers; use --with-ssl=DIR or --with-ssl-include-dir=DIR" >&5 13328echo "$as_me: WARNING: not found; falling back compat/ headers; use --with-ssl=DIR or --with-ssl-include-dir=DIR" >&2;} 13329 SSL_INCLUDE_DIR="\".\"" 13330else 13331 SSL_INCLUDE_DIR="\"`${CYGPATH} $trf_cv_path_SSL_INCLUDE_DIR`\"" 13332 13333 if test "${TEA_PLATFORM}" = "windows" ; then 13334 { echo "$as_me:$LINENO: WARNING: Squashing SSL / Windows" >&5 13335echo "$as_me: WARNING: Squashing SSL / Windows" >&2;} 13336 SSL_INCLUDE_DIR="\".\"" 13337 else 13338 eval cat >>confdefs.h <<_ACEOF 13339#define HAVE_SSL_H 1 13340_ACEOF 13341 13342 eval cat >>confdefs.h <<_ACEOF 13343#define HAVE_MD2_H 1 13344_ACEOF 13345 13346 eval cat >>confdefs.h <<_ACEOF 13347#define HAVE_MD5_H 1 13348_ACEOF 13349 13350 eval cat >>confdefs.h <<_ACEOF 13351#define HAVE_SHA_H 1 13352_ACEOF 13353 13354 #DEFS="$DEFS -DHAVE_SSL_H -DHAVE_MD2_H -DHAVE_SHA_H" 13355 TRF_TESTS="$TRF_TESTS hasSSL" 13356 fi 13357fi 13358 13359 13360 13361 13362{ echo "$as_me:$LINENO: checking for ssl libcrypto library (for message digests)" >&5 13363echo $ECHO_N "checking for ssl libcrypto library (for message digests)... $ECHO_C" >&6; } 13364if test "${trf_cv_lib_SSL_LIB_DIR+set}" = set; then 13365 echo $ECHO_N "(cached) $ECHO_C" >&6 13366else 13367 trf_cv_lib_SSL_LIB_DIR="" 13368 places="$SSL_LIB_DIR \ 13369 $TCL_LIB_DIR \ 13370 $exec_prefix/lib \ 13371 $prefix/lib \ 13372 /usr/local/ssl/lib \ 13373 /usr/local/lib \ 13374 /usr/lib" 13375 for dir in $places; do 13376 if test -n "$trf_cv_lib_SSL_LIB_DIR"; then 13377 break 13378 fi 13379 13380 for libsuff in .so ".so.*" .sl .a .dylib; do 13381 if test -n "$trf_cv_lib_SSL_LIB_DIR"; then 13382 break 13383 fi 13384 if test -f $dir/libcrypto$libsuff; then 13385 trf_cv_lib_SSL_LIB_DIR="$dir" 13386 SSL_LIB_DIR="$dir" 13387 fi 13388 done 13389 done 13390fi 13391{ echo "$as_me:$LINENO: result: $trf_cv_lib_SSL_LIB_DIR" >&5 13392echo "${ECHO_T}$trf_cv_lib_SSL_LIB_DIR" >&6; } 13393 13394if test -z "$trf_cv_lib_SSL_LIB_DIR" ; then 13395 { echo "$as_me:$LINENO: WARNING: not found; use --with-ssl-lib-dir=path" >&5 13396echo "$as_me: WARNING: not found; use --with-ssl-lib-dir=path" >&2;} 13397 SSL_LIB_DIR="\".\"" 13398else 13399 SSL_LIB_DIR="`${CYGPATH} $trf_cv_lib_SSL_LIB_DIR`" 13400fi 13401 13402 13403 13404 13405{ echo "$as_me:$LINENO: checking for directory with bzlib.h" >&5 13406echo $ECHO_N "checking for directory with bzlib.h... $ECHO_C" >&6; } 13407if test "${trf_cv_path_BZ2_INCLUDE_DIR+set}" = set; then 13408 echo $ECHO_N "(cached) $ECHO_C" >&6 13409else 13410 trf_cv_path_BZ2_INCLUDE_DIR="" 13411 places="$BZ2_INCLUDE_DIR \ 13412 $TCL_INCLUDE_DIR \ 13413 $prefix/include \ 13414 /usr/local/include \ 13415 /usr/include" 13416 for dir in $places; do 13417 if test -r $dir/bzlib.h ; then 13418 trf_cv_path_BZ2_INCLUDE_DIR=$dir 13419 break 13420 fi 13421 done 13422fi 13423{ echo "$as_me:$LINENO: result: $trf_cv_path_BZ2_INCLUDE_DIR" >&5 13424echo "${ECHO_T}$trf_cv_path_BZ2_INCLUDE_DIR" >&6; } 13425 13426if test -z "$trf_cv_path_BZ2_INCLUDE_DIR" ; then 13427 { echo "$as_me:$LINENO: WARNING: not found; falling back to compat/ headers; use --with-bz2=DIR or --with-bz2-include-dir=DIR" >&5 13428echo "$as_me: WARNING: not found; falling back to compat/ headers; use --with-bz2=DIR or --with-bz2-include-dir=DIR" >&2;} 13429 BZ2_INCLUDE_DIR="\".\"" 13430else 13431 BZ2_INCLUDE_DIR="\"`${CYGPATH} $trf_cv_path_BZ2_INCLUDE_DIR`\"" 13432 eval cat >>confdefs.h <<_ACEOF 13433#define HAVE_BZ2_H 1 13434_ACEOF 13435 13436fi 13437 13438 13439 13440{ echo "$as_me:$LINENO: checking for bz2 compressor library" >&5 13441echo $ECHO_N "checking for bz2 compressor library... $ECHO_C" >&6; } 13442if test "${trf_cv_lib_BZ2_LIB_DIR+set}" = set; then 13443 echo $ECHO_N "(cached) $ECHO_C" >&6 13444else 13445 trf_cv_lib_BZ2_LIB_DIR="" 13446 places="$BZ2_LIB_DIR \ 13447 $TCL_LIB_DIR \ 13448 $exec_prefix/lib \ 13449 $prefix/lib \ 13450 /usr/local/bz2/lib \ 13451 /usr/local/lib \ 13452 /usr/lib \ 13453 /lib" 13454 for dir in $places; do 13455 if test -n "$trf_cv_lib_BZ2_LIB_DIR"; then 13456 break 13457 fi 13458 13459 for libsuff in .so ".so.*" .sl .a .dylib; do 13460 if test -n "$trf_cv_lib_BZ2_LIB_DIR"; then 13461 break 13462 fi 13463 if test -f $dir/libbz2$libsuff; then 13464 trf_cv_lib_BZ2_LIB_DIR="$dir" 13465 BZ2_LIB_DIR="$dir" 13466 fi 13467 done 13468 done 13469fi 13470{ echo "$as_me:$LINENO: result: $trf_cv_lib_BZ2_LIB_DIR" >&5 13471echo "${ECHO_T}$trf_cv_lib_BZ2_LIB_DIR" >&6; } 13472 13473if test -z "$trf_cv_lib_BZ2_LIB_DIR" ; then 13474 { echo "$as_me:$LINENO: WARNING: not found; use --with-bz2-lib-dir=path" >&5 13475echo "$as_me: WARNING: not found; use --with-bz2-lib-dir=path" >&2;} 13476 BZ2_LIB_DIR=. 13477else 13478 TRF_TESTS="$TRF_TESTS hasBz" 13479 BZ2_LIB_DIR="`${CYGPATH} $trf_cv_lib_BZ2_LIB_DIR`" 13480fi 13481 13482 13483 13484 13485if test "x$ZLIB_STATIC" = "xyes" 13486then 13487 eval cat >>confdefs.h <<_ACEOF 13488#define ZLIB_STATIC_BUILD 1 13489_ACEOF 13490 13491fi 13492 13493if test "x$BZLIB_STATIC" = "xyes" 13494then 13495 eval cat >>confdefs.h <<_ACEOF 13496#define BZLIB_STATIC_BUILD 1 13497_ACEOF 13498 13499fi 13500 13501if test "x$MD5_STATIC" = "xyes" 13502then 13503 eval cat >>confdefs.h <<_ACEOF 13504#define MD5_STATIC_BUILD 1 13505_ACEOF 13506 13507fi 13508 13509if test "x$trf_debug" = "xyes" 13510then 13511 eval cat >>confdefs.h <<_ACEOF 13512#define TRF_DEBUG 1 13513_ACEOF 13514 13515fi 13516 13517if test "x$stream_debug" = "xyes" 13518then 13519 eval cat >>confdefs.h <<_ACEOF 13520#define TRF_STREAM_DEBUG 1 13521_ACEOF 13522 13523fi 13524 13525 13526 13527 13528 13529 13530 13531for ac_header in dlfcn.h stdlib.h features.h 13532do 13533as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13535 { echo "$as_me:$LINENO: checking for $ac_header" >&5 13536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13538 echo $ECHO_N "(cached) $ECHO_C" >&6 13539fi 13540ac_res=`eval echo '${'$as_ac_Header'}'` 13541 { echo "$as_me:$LINENO: result: $ac_res" >&5 13542echo "${ECHO_T}$ac_res" >&6; } 13543else 13544 # Is the header compilable? 13545{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 13546echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 13547cat >conftest.$ac_ext <<_ACEOF 13548/* confdefs.h. */ 13549_ACEOF 13550cat confdefs.h >>conftest.$ac_ext 13551cat >>conftest.$ac_ext <<_ACEOF 13552/* end confdefs.h. */ 13553$ac_includes_default 13554#include <$ac_header> 13555_ACEOF 13556rm -f conftest.$ac_objext 13557if { (ac_try="$ac_compile" 13558case "(($ac_try" in 13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13560 *) ac_try_echo=$ac_try;; 13561esac 13562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13563 (eval "$ac_compile") 2>conftest.er1 13564 ac_status=$? 13565 grep -v '^ *+' conftest.er1 >conftest.err 13566 rm -f conftest.er1 13567 cat conftest.err >&5 13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13569 (exit $ac_status); } && { 13570 test -z "$ac_c_werror_flag" || 13571 test ! -s conftest.err 13572 } && test -s conftest.$ac_objext; then 13573 ac_header_compiler=yes 13574else 13575 echo "$as_me: failed program was:" >&5 13576sed 's/^/| /' conftest.$ac_ext >&5 13577 13578 ac_header_compiler=no 13579fi 13580 13581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13582{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13583echo "${ECHO_T}$ac_header_compiler" >&6; } 13584 13585# Is the header present? 13586{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 13587echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 13588cat >conftest.$ac_ext <<_ACEOF 13589/* confdefs.h. */ 13590_ACEOF 13591cat confdefs.h >>conftest.$ac_ext 13592cat >>conftest.$ac_ext <<_ACEOF 13593/* end confdefs.h. */ 13594#include <$ac_header> 13595_ACEOF 13596if { (ac_try="$ac_cpp conftest.$ac_ext" 13597case "(($ac_try" in 13598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13599 *) ac_try_echo=$ac_try;; 13600esac 13601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13603 ac_status=$? 13604 grep -v '^ *+' conftest.er1 >conftest.err 13605 rm -f conftest.er1 13606 cat conftest.err >&5 13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13608 (exit $ac_status); } >/dev/null && { 13609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13610 test ! -s conftest.err 13611 }; then 13612 ac_header_preproc=yes 13613else 13614 echo "$as_me: failed program was:" >&5 13615sed 's/^/| /' conftest.$ac_ext >&5 13616 13617 ac_header_preproc=no 13618fi 13619 13620rm -f conftest.err conftest.$ac_ext 13621{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13622echo "${ECHO_T}$ac_header_preproc" >&6; } 13623 13624# So? What about this header? 13625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13626 yes:no: ) 13627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13631 ac_header_preproc=yes 13632 ;; 13633 no:yes:* ) 13634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13637echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13641echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13646 13647 ;; 13648esac 13649{ echo "$as_me:$LINENO: checking for $ac_header" >&5 13650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13652 echo $ECHO_N "(cached) $ECHO_C" >&6 13653else 13654 eval "$as_ac_Header=\$ac_header_preproc" 13655fi 13656ac_res=`eval echo '${'$as_ac_Header'}'` 13657 { echo "$as_me:$LINENO: result: $ac_res" >&5 13658echo "${ECHO_T}$ac_res" >&6; } 13659 13660fi 13661if test `eval echo '${'$as_ac_Header'}'` = yes; then 13662 cat >>confdefs.h <<_ACEOF 13663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13664_ACEOF 13665 13666fi 13667 13668done 13669 13670 13671 13672#-------------------------------------------------------------------- 13673# MD5 handling... 13674# Cases: 13675# (1) libcrypt not present => compile, use that name. 13676# (2) libcrypt present, contains Md5 => nothing to do 13677# (3) libcrypt present, no Md5 => compile, name = libmd5crypt 13678#-------------------------------------------------------------------- 13679 13680MD5_LIB_FILE="" 13681if test \( $HAS_LIBCRYPT -eq 0 \) 13682then 13683 # (1) 13684 ## MD5_LIB_FILE=libcrypt$TCL_SHLIB_SUFFIX 13685 ## TRF_DEFS="$TRF_DEFS -DCRYPT_LIB_NAME=\\\"NONE\\\"" 13686 eval cat >>confdefs.h <<_ACEOF 13687#define MD5_STATIC_BUILD 1 13688_ACEOF 13689 13690 13691 13692 vars="compat/stpncpy.c" 13693 for i in $vars; do 13694 case $i in 13695 \$*) 13696 # allow $-var names 13697 PKG_SOURCES="$PKG_SOURCES $i" 13698 PKG_OBJECTS="$PKG_OBJECTS $i" 13699 ;; 13700 *) 13701 # check for existence - allows for generic/win/unix VPATH 13702 # To add more dirs here (like 'src'), you have to update VPATH 13703 # in Makefile.in as well 13704 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 13705 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 13706 ; then 13707 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 13708echo "$as_me: error: could not find source file '$i'" >&2;} 13709 { (exit 1); exit 1; }; } 13710 fi 13711 PKG_SOURCES="$PKG_SOURCES $i" 13712 # this assumes it is in a VPATH dir 13713 i=`basename $i` 13714 # handle user calling this before or after TEA_SETUP_COMPILER 13715 if test x"${OBJEXT}" != x ; then 13716 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 13717 else 13718 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 13719 fi 13720 PKG_OBJECTS="$PKG_OBJECTS $j" 13721 ;; 13722 esac 13723 done 13724 13725 13726 13727elif test "`uname -s`" != "Darwin"; then 13728 # (2,3) 13729 if test \( $HAS_LIBCRYPT_MD5 -eq 0 \) 13730 then 13731 # (3) 13732 ## MD5_LIB_FILE=libmd5crypt$TCL_SHLIB_SUFFIX 13733 ## TRF_DEFS="$TRF_DEFS -DCRYPT_LIB_NAME=\\\"NONE\\\"" 13734 13735 # Sun Solaris is special, we may not use -lcrypt ! 13736 # Verified for: SunOS 5.5.1 (Solaris 2.5) 13737 # SunOS 5.6 (Solaris 2.6) 13738 13739 ## case "`uname -s`" in 13740 ## SunOS*) ;; 13741 ## *) LIBS="-lcrypt $LIBS" 13742 ## SHLIB_LD_LIBS="-lcrypt $SHLIB_LD_LIBS" 13743 ## ;; 13744 ## esac 13745 13746 eval cat >>confdefs.h <<_ACEOF 13747#define MD5_STATIC_BUILD 1 13748_ACEOF 13749 13750 13751 13752 vars="compat/stpncpy.c" 13753 for i in $vars; do 13754 case $i in 13755 \$*) 13756 # allow $-var names 13757 PKG_SOURCES="$PKG_SOURCES $i" 13758 PKG_OBJECTS="$PKG_OBJECTS $i" 13759 ;; 13760 *) 13761 # check for existence - allows for generic/win/unix VPATH 13762 # To add more dirs here (like 'src'), you have to update VPATH 13763 # in Makefile.in as well 13764 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 13765 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 13766 ; then 13767 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 13768echo "$as_me: error: could not find source file '$i'" >&2;} 13769 { (exit 1); exit 1; }; } 13770 fi 13771 PKG_SOURCES="$PKG_SOURCES $i" 13772 # this assumes it is in a VPATH dir 13773 i=`basename $i` 13774 # handle user calling this before or after TEA_SETUP_COMPILER 13775 if test x"${OBJEXT}" != x ; then 13776 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 13777 else 13778 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 13779 fi 13780 PKG_OBJECTS="$PKG_OBJECTS $j" 13781 ;; 13782 esac 13783 done 13784 13785 13786 13787 fi 13788fi 13789 13790 13791 13792#-------------------------------------------------------------------- 13793# Finally, substitute all of the various values into the Makefile. 13794# You may alternatively have a special pkgIndex.tcl.in or other files 13795# which require substituting th AC variables in. Include these here. 13796#-------------------------------------------------------------------- 13797 13798ac_config_files="$ac_config_files Makefile test.setup" 13799 13800cat >confcache <<\_ACEOF 13801# This file is a shell script that caches the results of configure 13802# tests run on this system so they can be shared between configure 13803# scripts and configure runs, see configure's option --config-cache. 13804# It is not useful on other systems. If it contains results you don't 13805# want to keep, you may remove or edit it. 13806# 13807# config.status only pays attention to the cache file if you give it 13808# the --recheck option to rerun configure. 13809# 13810# `ac_cv_env_foo' variables (set or unset) will be overridden when 13811# loading this file, other *unset* `ac_cv_foo' will be assigned the 13812# following values. 13813 13814_ACEOF 13815 13816# The following way of writing the cache mishandles newlines in values, 13817# but we know of no workaround that is simple, portable, and efficient. 13818# So, we kill variables containing newlines. 13819# Ultrix sh set writes to stderr and can't be redirected directly, 13820# and sets the high bit in the cache file unless we assign to the vars. 13821( 13822 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13823 eval ac_val=\$$ac_var 13824 case $ac_val in #( 13825 *${as_nl}*) 13826 case $ac_var in #( 13827 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 13828echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 13829 esac 13830 case $ac_var in #( 13831 _ | IFS | as_nl) ;; #( 13832 *) $as_unset $ac_var ;; 13833 esac ;; 13834 esac 13835 done 13836 13837 (set) 2>&1 | 13838 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13839 *${as_nl}ac_space=\ *) 13840 # `set' does not quote correctly, so add quotes (double-quote 13841 # substitution turns \\\\ into \\, and sed turns \\ into \). 13842 sed -n \ 13843 "s/'/'\\\\''/g; 13844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13845 ;; #( 13846 *) 13847 # `set' quotes correctly as required by POSIX, so do not add quotes. 13848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13849 ;; 13850 esac | 13851 sort 13852) | 13853 sed ' 13854 /^ac_cv_env_/b end 13855 t clear 13856 :clear 13857 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13858 t end 13859 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13860 :end' >>confcache 13861if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13862 if test -w "$cache_file"; then 13863 test "x$cache_file" != "x/dev/null" && 13864 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 13865echo "$as_me: updating cache $cache_file" >&6;} 13866 cat confcache >$cache_file 13867 else 13868 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13869echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13870 fi 13871fi 13872rm -f confcache 13873 13874test "x$prefix" = xNONE && prefix=$ac_default_prefix 13875# Let make expand exec_prefix. 13876test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13877 13878# Transform confdefs.h into DEFS. 13879# Protect against shell expansion while executing Makefile rules. 13880# Protect against Makefile macro expansion. 13881# 13882# If the first sed substitution is executed (which looks for macros that 13883# take arguments), then branch to the quote section. Otherwise, 13884# look for a macro that doesn't take arguments. 13885ac_script=' 13886t clear 13887:clear 13888s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 13889t quote 13890s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 13891t quote 13892b any 13893:quote 13894s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 13895s/\[/\\&/g 13896s/\]/\\&/g 13897s/\$/$$/g 13898H 13899:any 13900${ 13901 g 13902 s/^\n// 13903 s/\n/ /g 13904 p 13905} 13906' 13907DEFS=`sed -n "$ac_script" confdefs.h` 13908 13909 13910ac_libobjs= 13911ac_ltlibobjs= 13912for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13913 # 1. Remove the extension, and $U if already installed. 13914 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13915 ac_i=`echo "$ac_i" | sed "$ac_script"` 13916 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13917 # will be set to the directory where LIBOBJS objects are built. 13918 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13919 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13920done 13921LIBOBJS=$ac_libobjs 13922 13923LTLIBOBJS=$ac_ltlibobjs 13924 13925 13926CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 13927 13928: ${CONFIG_STATUS=./config.status} 13929ac_clean_files_save=$ac_clean_files 13930ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13931{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13932echo "$as_me: creating $CONFIG_STATUS" >&6;} 13933cat >$CONFIG_STATUS <<_ACEOF 13934#! $SHELL 13935# Generated by $as_me. 13936# Run this file to recreate the current configuration. 13937# Compiler output produced by configure, useful for debugging 13938# configure, is in config.log if it exists. 13939 13940debug=false 13941ac_cs_recheck=false 13942ac_cs_silent=false 13943SHELL=\${CONFIG_SHELL-$SHELL} 13944_ACEOF 13945 13946cat >>$CONFIG_STATUS <<\_ACEOF 13947## --------------------- ## 13948## M4sh Initialization. ## 13949## --------------------- ## 13950 13951# Be more Bourne compatible 13952DUALCASE=1; export DUALCASE # for MKS sh 13953if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13954 emulate sh 13955 NULLCMD=: 13956 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 13957 # is contrary to our usage. Disable this feature. 13958 alias -g '${1+"$@"}'='"$@"' 13959 setopt NO_GLOB_SUBST 13960else 13961 case `(set -o) 2>/dev/null` in 13962 *posix*) set -o posix ;; 13963esac 13964 13965fi 13966 13967 13968 13969 13970# PATH needs CR 13971# Avoid depending upon Character Ranges. 13972as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13973as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13974as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13975as_cr_digits='0123456789' 13976as_cr_alnum=$as_cr_Letters$as_cr_digits 13977 13978# The user is always right. 13979if test "${PATH_SEPARATOR+set}" != set; then 13980 echo "#! /bin/sh" >conf$$.sh 13981 echo "exit 0" >>conf$$.sh 13982 chmod +x conf$$.sh 13983 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13984 PATH_SEPARATOR=';' 13985 else 13986 PATH_SEPARATOR=: 13987 fi 13988 rm -f conf$$.sh 13989fi 13990 13991# Support unset when possible. 13992if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13993 as_unset=unset 13994else 13995 as_unset=false 13996fi 13997 13998 13999# IFS 14000# We need space, tab and new line, in precisely that order. Quoting is 14001# there to prevent editors from complaining about space-tab. 14002# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14003# splitting by setting IFS to empty value.) 14004as_nl=' 14005' 14006IFS=" "" $as_nl" 14007 14008# Find who we are. Look in the path if we contain no directory separator. 14009case $0 in 14010 *[\\/]* ) as_myself=$0 ;; 14011 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14012for as_dir in $PATH 14013do 14014 IFS=$as_save_IFS 14015 test -z "$as_dir" && as_dir=. 14016 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14017done 14018IFS=$as_save_IFS 14019 14020 ;; 14021esac 14022# We did not find ourselves, most probably we were run as `sh COMMAND' 14023# in which case we are not to be found in the path. 14024if test "x$as_myself" = x; then 14025 as_myself=$0 14026fi 14027if test ! -f "$as_myself"; then 14028 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14029 { (exit 1); exit 1; } 14030fi 14031 14032# Work around bugs in pre-3.0 UWIN ksh. 14033for as_var in ENV MAIL MAILPATH 14034do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 14035done 14036PS1='$ ' 14037PS2='> ' 14038PS4='+ ' 14039 14040# NLS nuisances. 14041for as_var in \ 14042 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 14043 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 14044 LC_TELEPHONE LC_TIME 14045do 14046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 14047 eval $as_var=C; export $as_var 14048 else 14049 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 14050 fi 14051done 14052 14053# Required to use basename. 14054if expr a : '\(a\)' >/dev/null 2>&1 && 14055 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14056 as_expr=expr 14057else 14058 as_expr=false 14059fi 14060 14061if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14062 as_basename=basename 14063else 14064 as_basename=false 14065fi 14066 14067 14068# Name of the executable. 14069as_me=`$as_basename -- "$0" || 14070$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14071 X"$0" : 'X\(//\)$' \| \ 14072 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14073echo X/"$0" | 14074 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14075 s//\1/ 14076 q 14077 } 14078 /^X\/\(\/\/\)$/{ 14079 s//\1/ 14080 q 14081 } 14082 /^X\/\(\/\).*/{ 14083 s//\1/ 14084 q 14085 } 14086 s/.*/./; q'` 14087 14088# CDPATH. 14089$as_unset CDPATH 14090 14091 14092 14093 as_lineno_1=$LINENO 14094 as_lineno_2=$LINENO 14095 test "x$as_lineno_1" != "x$as_lineno_2" && 14096 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 14097 14098 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 14099 # uniformly replaced by the line number. The first 'sed' inserts a 14100 # line-number line after each line using $LINENO; the second 'sed' 14101 # does the real work. The second script uses 'N' to pair each 14102 # line-number line with the line containing $LINENO, and appends 14103 # trailing '-' during substitution so that $LINENO is not a special 14104 # case at line end. 14105 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 14106 # scripts with optimization help from Paolo Bonzini. Blame Lee 14107 # E. McMahon (1931-1989) for sed's syntax. :-) 14108 sed -n ' 14109 p 14110 /[$]LINENO/= 14111 ' <$as_myself | 14112 sed ' 14113 s/[$]LINENO.*/&-/ 14114 t lineno 14115 b 14116 :lineno 14117 N 14118 :loop 14119 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 14120 t loop 14121 s/-\n.*// 14122 ' >$as_me.lineno && 14123 chmod +x "$as_me.lineno" || 14124 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 14125 { (exit 1); exit 1; }; } 14126 14127 # Don't try to exec as it changes $[0], causing all sort of problems 14128 # (the dirname of $[0] is not the place where we might find the 14129 # original and so on. Autoconf is especially sensitive to this). 14130 . "./$as_me.lineno" 14131 # Exit status is that of the last command. 14132 exit 14133} 14134 14135 14136if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14137 as_dirname=dirname 14138else 14139 as_dirname=false 14140fi 14141 14142ECHO_C= ECHO_N= ECHO_T= 14143case `echo -n x` in 14144-n*) 14145 case `echo 'x\c'` in 14146 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14147 *) ECHO_C='\c';; 14148 esac;; 14149*) 14150 ECHO_N='-n';; 14151esac 14152 14153if expr a : '\(a\)' >/dev/null 2>&1 && 14154 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14155 as_expr=expr 14156else 14157 as_expr=false 14158fi 14159 14160rm -f conf$$ conf$$.exe conf$$.file 14161if test -d conf$$.dir; then 14162 rm -f conf$$.dir/conf$$.file 14163else 14164 rm -f conf$$.dir 14165 mkdir conf$$.dir 14166fi 14167echo >conf$$.file 14168if ln -s conf$$.file conf$$ 2>/dev/null; then 14169 as_ln_s='ln -s' 14170 # ... but there are two gotchas: 14171 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14172 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14173 # In both cases, we have to default to `cp -p'. 14174 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14175 as_ln_s='cp -p' 14176elif ln conf$$.file conf$$ 2>/dev/null; then 14177 as_ln_s=ln 14178else 14179 as_ln_s='cp -p' 14180fi 14181rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14182rmdir conf$$.dir 2>/dev/null 14183 14184if mkdir -p . 2>/dev/null; then 14185 as_mkdir_p=: 14186else 14187 test -d ./-p && rmdir ./-p 14188 as_mkdir_p=false 14189fi 14190 14191if test -x / >/dev/null 2>&1; then 14192 as_test_x='test -x' 14193else 14194 if ls -dL / >/dev/null 2>&1; then 14195 as_ls_L_option=L 14196 else 14197 as_ls_L_option= 14198 fi 14199 as_test_x=' 14200 eval sh -c '\'' 14201 if test -d "$1"; then 14202 test -d "$1/."; 14203 else 14204 case $1 in 14205 -*)set "./$1";; 14206 esac; 14207 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 14208 ???[sx]*):;;*)false;;esac;fi 14209 '\'' sh 14210 ' 14211fi 14212as_executable_p=$as_test_x 14213 14214# Sed expression to map a string onto a valid CPP name. 14215as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14216 14217# Sed expression to map a string onto a valid variable name. 14218as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14219 14220 14221exec 6>&1 14222 14223# Save the log message, to keep $[0] and so on meaningful, and to 14224# report actual input values of CONFIG_FILES etc. instead of their 14225# values after options handling. 14226ac_log=" 14227This file was extended by Trf $as_me 2.1.4, which was 14228generated by GNU Autoconf 2.61. Invocation command line was 14229 14230 CONFIG_FILES = $CONFIG_FILES 14231 CONFIG_HEADERS = $CONFIG_HEADERS 14232 CONFIG_LINKS = $CONFIG_LINKS 14233 CONFIG_COMMANDS = $CONFIG_COMMANDS 14234 $ $0 $@ 14235 14236on `(hostname || uname -n) 2>/dev/null | sed 1q` 14237" 14238 14239_ACEOF 14240 14241cat >>$CONFIG_STATUS <<_ACEOF 14242# Files that config.status was made for. 14243config_files="$ac_config_files" 14244 14245_ACEOF 14246 14247cat >>$CONFIG_STATUS <<\_ACEOF 14248ac_cs_usage="\ 14249\`$as_me' instantiates files from templates according to the 14250current configuration. 14251 14252Usage: $0 [OPTIONS] [FILE]... 14253 14254 -h, --help print this help, then exit 14255 -V, --version print version number and configuration settings, then exit 14256 -q, --quiet do not print progress messages 14257 -d, --debug don't remove temporary files 14258 --recheck update $as_me by reconfiguring in the same conditions 14259 --file=FILE[:TEMPLATE] 14260 instantiate the configuration file FILE 14261 14262Configuration files: 14263$config_files 14264 14265Report bugs to <bug-autoconf@gnu.org>." 14266 14267_ACEOF 14268cat >>$CONFIG_STATUS <<_ACEOF 14269ac_cs_version="\\ 14270Trf config.status 2.1.4 14271configured by $0, generated by GNU Autoconf 2.61, 14272 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14273 14274Copyright (C) 2006 Free Software Foundation, Inc. 14275This config.status script is free software; the Free Software Foundation 14276gives unlimited permission to copy, distribute and modify it." 14277 14278ac_pwd='$ac_pwd' 14279srcdir='$srcdir' 14280INSTALL='$INSTALL' 14281_ACEOF 14282 14283cat >>$CONFIG_STATUS <<\_ACEOF 14284# If no file are specified by the user, then we need to provide default 14285# value. By we need to know if files were specified by the user. 14286ac_need_defaults=: 14287while test $# != 0 14288do 14289 case $1 in 14290 --*=*) 14291 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14292 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14293 ac_shift=: 14294 ;; 14295 *) 14296 ac_option=$1 14297 ac_optarg=$2 14298 ac_shift=shift 14299 ;; 14300 esac 14301 14302 case $ac_option in 14303 # Handling of the options. 14304 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14305 ac_cs_recheck=: ;; 14306 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14307 echo "$ac_cs_version"; exit ;; 14308 --debug | --debu | --deb | --de | --d | -d ) 14309 debug=: ;; 14310 --file | --fil | --fi | --f ) 14311 $ac_shift 14312 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 14313 ac_need_defaults=false;; 14314 --he | --h | --help | --hel | -h ) 14315 echo "$ac_cs_usage"; exit ;; 14316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14317 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14318 ac_cs_silent=: ;; 14319 14320 # This is an error. 14321 -*) { echo "$as_me: error: unrecognized option: $1 14322Try \`$0 --help' for more information." >&2 14323 { (exit 1); exit 1; }; } ;; 14324 14325 *) ac_config_targets="$ac_config_targets $1" 14326 ac_need_defaults=false ;; 14327 14328 esac 14329 shift 14330done 14331 14332ac_configure_extra_args= 14333 14334if $ac_cs_silent; then 14335 exec 6>/dev/null 14336 ac_configure_extra_args="$ac_configure_extra_args --silent" 14337fi 14338 14339_ACEOF 14340cat >>$CONFIG_STATUS <<_ACEOF 14341if \$ac_cs_recheck; then 14342 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 14343 CONFIG_SHELL=$SHELL 14344 export CONFIG_SHELL 14345 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14346fi 14347 14348_ACEOF 14349cat >>$CONFIG_STATUS <<\_ACEOF 14350exec 5>>config.log 14351{ 14352 echo 14353 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14354## Running $as_me. ## 14355_ASBOX 14356 echo "$ac_log" 14357} >&5 14358 14359_ACEOF 14360cat >>$CONFIG_STATUS <<_ACEOF 14361_ACEOF 14362 14363cat >>$CONFIG_STATUS <<\_ACEOF 14364 14365# Handling of arguments. 14366for ac_config_target in $ac_config_targets 14367do 14368 case $ac_config_target in 14369 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14370 "test.setup") CONFIG_FILES="$CONFIG_FILES test.setup" ;; 14371 14372 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14373echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14374 { (exit 1); exit 1; }; };; 14375 esac 14376done 14377 14378 14379# If the user did not use the arguments to specify the items to instantiate, 14380# then the envvar interface is used. Set only those that are not. 14381# We use the long form for the default assignment because of an extremely 14382# bizarre bug on SunOS 4.1.3. 14383if $ac_need_defaults; then 14384 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14385fi 14386 14387# Have a temporary directory for convenience. Make it in the build tree 14388# simply because there is no reason against having it here, and in addition, 14389# creating and moving files from /tmp can sometimes cause problems. 14390# Hook for its removal unless debugging. 14391# Note that there is a small window in which the directory will not be cleaned: 14392# after its creation but before its name has been assigned to `$tmp'. 14393$debug || 14394{ 14395 tmp= 14396 trap 'exit_status=$? 14397 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14398' 0 14399 trap '{ (exit 1); exit 1; }' 1 2 13 15 14400} 14401# Create a (secure) tmp directory for tmp files. 14402 14403{ 14404 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14405 test -n "$tmp" && test -d "$tmp" 14406} || 14407{ 14408 tmp=./conf$$-$RANDOM 14409 (umask 077 && mkdir "$tmp") 14410} || 14411{ 14412 echo "$me: cannot create a temporary directory in ." >&2 14413 { (exit 1); exit 1; } 14414} 14415 14416# 14417# Set up the sed scripts for CONFIG_FILES section. 14418# 14419 14420# No need to generate the scripts if there are no CONFIG_FILES. 14421# This happens for instance when ./config.status config.h 14422if test -n "$CONFIG_FILES"; then 14423 14424_ACEOF 14425 14426 14427 14428ac_delim='%!_!# ' 14429for ac_last_try in false false false false false :; do 14430 cat >conf$$subs.sed <<_ACEOF 14431SHELL!$SHELL$ac_delim 14432PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 14433PACKAGE_NAME!$PACKAGE_NAME$ac_delim 14434PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 14435PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 14436PACKAGE_STRING!$PACKAGE_STRING$ac_delim 14437PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 14438exec_prefix!$exec_prefix$ac_delim 14439prefix!$prefix$ac_delim 14440program_transform_name!$program_transform_name$ac_delim 14441bindir!$bindir$ac_delim 14442sbindir!$sbindir$ac_delim 14443libexecdir!$libexecdir$ac_delim 14444datarootdir!$datarootdir$ac_delim 14445datadir!$datadir$ac_delim 14446sysconfdir!$sysconfdir$ac_delim 14447sharedstatedir!$sharedstatedir$ac_delim 14448localstatedir!$localstatedir$ac_delim 14449includedir!$includedir$ac_delim 14450oldincludedir!$oldincludedir$ac_delim 14451docdir!$docdir$ac_delim 14452infodir!$infodir$ac_delim 14453htmldir!$htmldir$ac_delim 14454dvidir!$dvidir$ac_delim 14455pdfdir!$pdfdir$ac_delim 14456psdir!$psdir$ac_delim 14457libdir!$libdir$ac_delim 14458localedir!$localedir$ac_delim 14459mandir!$mandir$ac_delim 14460DEFS!$DEFS$ac_delim 14461ECHO_C!$ECHO_C$ac_delim 14462ECHO_N!$ECHO_N$ac_delim 14463ECHO_T!$ECHO_T$ac_delim 14464LIBS!$LIBS$ac_delim 14465build_alias!$build_alias$ac_delim 14466host_alias!$host_alias$ac_delim 14467target_alias!$target_alias$ac_delim 14468CYGPATH!$CYGPATH$ac_delim 14469EXEEXT!$EXEEXT$ac_delim 14470PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 14471PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 14472PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 14473PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 14474PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 14475PKG_HEADERS!$PKG_HEADERS$ac_delim 14476PKG_INCLUDES!$PKG_INCLUDES$ac_delim 14477PKG_LIBS!$PKG_LIBS$ac_delim 14478PKG_CFLAGS!$PKG_CFLAGS$ac_delim 14479TCL_VERSION!$TCL_VERSION$ac_delim 14480TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 14481TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 14482TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 14483TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 14484TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 14485TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 14486TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 14487TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 14488TCL_LIBS!$TCL_LIBS$ac_delim 14489TCL_DEFS!$TCL_DEFS$ac_delim 14490TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 14491TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 14492TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 14493zlibtcl_VERSION!$zlibtcl_VERSION$ac_delim 14494zlibtcl_BIN_DIR!$zlibtcl_BIN_DIR$ac_delim 14495zlibtcl_SRC_DIR!$zlibtcl_SRC_DIR$ac_delim 14496zlibtcl_LIB_FILE!$zlibtcl_LIB_FILE$ac_delim 14497zlibtcl_LIB_SPEC!$zlibtcl_LIB_SPEC$ac_delim 14498zlibtcl_STUB_LIB_FILE!$zlibtcl_STUB_LIB_FILE$ac_delim 14499zlibtcl_STUB_LIB_SPEC!$zlibtcl_STUB_LIB_SPEC$ac_delim 14500zlibtcl_STUB_LIB_PATH!$zlibtcl_STUB_LIB_PATH$ac_delim 14501zlibtcl_SRC_PATH!$zlibtcl_SRC_PATH$ac_delim 14502zlibtcl_BUILD_PATH!$zlibtcl_BUILD_PATH$ac_delim 14503CC!$CC$ac_delim 14504CFLAGS!$CFLAGS$ac_delim 14505LDFLAGS!$LDFLAGS$ac_delim 14506CPPFLAGS!$CPPFLAGS$ac_delim 14507ac_ct_CC!$ac_ct_CC$ac_delim 14508OBJEXT!$OBJEXT$ac_delim 14509CPP!$CPP$ac_delim 14510INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 14511INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 14512INSTALL_DATA!$INSTALL_DATA$ac_delim 14513SET_MAKE!$SET_MAKE$ac_delim 14514RANLIB!$RANLIB$ac_delim 14515GREP!$GREP$ac_delim 14516EGREP!$EGREP$ac_delim 14517MATH_LIBS!$MATH_LIBS$ac_delim 14518PKG_SOURCES!$PKG_SOURCES$ac_delim 14519PKG_OBJECTS!$PKG_OBJECTS$ac_delim 14520SHLIB_SUFFIX!$SHLIB_SUFFIX$ac_delim 14521TCL_INCLUDES!$TCL_INCLUDES$ac_delim 14522TCL_TOP_DIR_NATIVE!$TCL_TOP_DIR_NATIVE$ac_delim 14523CLEANFILES!$CLEANFILES$ac_delim 14524TCL_THREADS!$TCL_THREADS$ac_delim 14525SHARED_BUILD!$SHARED_BUILD$ac_delim 14526AR!$AR$ac_delim 14527CELIB_DIR!$CELIB_DIR$ac_delim 14528_ACEOF 14529 14530 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 14531 break 14532 elif $ac_last_try; then 14533 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14534echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14535 { (exit 1); exit 1; }; } 14536 else 14537 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14538 fi 14539done 14540 14541ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 14542if test -n "$ac_eof"; then 14543 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 14544 ac_eof=`expr $ac_eof + 1` 14545fi 14546 14547cat >>$CONFIG_STATUS <<_ACEOF 14548cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 14549/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14550_ACEOF 14551sed ' 14552s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 14553s/^/s,@/; s/!/@,|#_!!_#|/ 14554:n 14555t n 14556s/'"$ac_delim"'$/,g/; t 14557s/$/\\/; p 14558N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 14559' >>$CONFIG_STATUS <conf$$subs.sed 14560rm -f conf$$subs.sed 14561cat >>$CONFIG_STATUS <<_ACEOF 14562CEOF$ac_eof 14563_ACEOF 14564 14565 14566ac_delim='%!_!# ' 14567for ac_last_try in false false false false false :; do 14568 cat >conf$$subs.sed <<_ACEOF 14569LIBOBJS!$LIBOBJS$ac_delim 14570DL_LIBS!$DL_LIBS$ac_delim 14571CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 14572CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 14573CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 14574STLIB_LD!$STLIB_LD$ac_delim 14575SHLIB_LD!$SHLIB_LD$ac_delim 14576SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 14577SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 14578LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 14579CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 14580LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 14581TCL_DBGX!$TCL_DBGX$ac_delim 14582MAKE_LIB!$MAKE_LIB$ac_delim 14583MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 14584MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 14585MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 14586RANLIB_STUB!$RANLIB_STUB$ac_delim 14587TCLSH_PROG!$TCLSH_PROG$ac_delim 14588ZLIB_INCLUDE_DIR!$ZLIB_INCLUDE_DIR$ac_delim 14589ZLIB_LIB_DIR!$ZLIB_LIB_DIR$ac_delim 14590SSL_INCLUDE_DIR!$SSL_INCLUDE_DIR$ac_delim 14591SSL_LIB_DIR!$SSL_LIB_DIR$ac_delim 14592BZ2_INCLUDE_DIR!$BZ2_INCLUDE_DIR$ac_delim 14593BZ2_LIB_DIR!$BZ2_LIB_DIR$ac_delim 14594TRF_TESTS!$TRF_TESTS$ac_delim 14595MD5_LIB_FILE!$MD5_LIB_FILE$ac_delim 14596LTLIBOBJS!$LTLIBOBJS$ac_delim 14597_ACEOF 14598 14599 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then 14600 break 14601 elif $ac_last_try; then 14602 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14603echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14604 { (exit 1); exit 1; }; } 14605 else 14606 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14607 fi 14608done 14609 14610ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 14611if test -n "$ac_eof"; then 14612 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 14613 ac_eof=`expr $ac_eof + 1` 14614fi 14615 14616cat >>$CONFIG_STATUS <<_ACEOF 14617cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 14618/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 14619_ACEOF 14620sed ' 14621s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 14622s/^/s,@/; s/!/@,|#_!!_#|/ 14623:n 14624t n 14625s/'"$ac_delim"'$/,g/; t 14626s/$/\\/; p 14627N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 14628' >>$CONFIG_STATUS <conf$$subs.sed 14629rm -f conf$$subs.sed 14630cat >>$CONFIG_STATUS <<_ACEOF 14631:end 14632s/|#_!!_#|//g 14633CEOF$ac_eof 14634_ACEOF 14635 14636 14637# VPATH may cause trouble with some makes, so we remove $(srcdir), 14638# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14639# trailing colons and then remove the whole line if VPATH becomes empty 14640# (actually we leave an empty line to preserve line numbers). 14641if test "x$srcdir" = x.; then 14642 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14643s/:*\$(srcdir):*/:/ 14644s/:*\${srcdir}:*/:/ 14645s/:*@srcdir@:*/:/ 14646s/^\([^=]*=[ ]*\):*/\1/ 14647s/:*$// 14648s/^[^=]*=[ ]*$// 14649}' 14650fi 14651 14652cat >>$CONFIG_STATUS <<\_ACEOF 14653fi # test -n "$CONFIG_FILES" 14654 14655 14656for ac_tag in :F $CONFIG_FILES 14657do 14658 case $ac_tag in 14659 :[FHLC]) ac_mode=$ac_tag; continue;; 14660 esac 14661 case $ac_mode$ac_tag in 14662 :[FHL]*:*);; 14663 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 14664echo "$as_me: error: Invalid tag $ac_tag." >&2;} 14665 { (exit 1); exit 1; }; };; 14666 :[FH]-) ac_tag=-:-;; 14667 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14668 esac 14669 ac_save_IFS=$IFS 14670 IFS=: 14671 set x $ac_tag 14672 IFS=$ac_save_IFS 14673 shift 14674 ac_file=$1 14675 shift 14676 14677 case $ac_mode in 14678 :L) ac_source=$1;; 14679 :[FH]) 14680 ac_file_inputs= 14681 for ac_f 14682 do 14683 case $ac_f in 14684 -) ac_f="$tmp/stdin";; 14685 *) # Look for the file first in the build tree, then in the source tree 14686 # (if the path is not absolute). The absolute path cannot be DOS-style, 14687 # because $ac_f cannot contain `:'. 14688 test -f "$ac_f" || 14689 case $ac_f in 14690 [\\/$]*) false;; 14691 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14692 esac || 14693 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14694echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14695 { (exit 1); exit 1; }; };; 14696 esac 14697 ac_file_inputs="$ac_file_inputs $ac_f" 14698 done 14699 14700 # Let's still pretend it is `configure' which instantiates (i.e., don't 14701 # use $as_me), people would be surprised to read: 14702 # /* config.h. Generated by config.status. */ 14703 configure_input="Generated from "`IFS=: 14704 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 14705 if test x"$ac_file" != x-; then 14706 configure_input="$ac_file. $configure_input" 14707 { echo "$as_me:$LINENO: creating $ac_file" >&5 14708echo "$as_me: creating $ac_file" >&6;} 14709 fi 14710 14711 case $ac_tag in 14712 *:-:* | *:-) cat >"$tmp/stdin";; 14713 esac 14714 ;; 14715 esac 14716 14717 ac_dir=`$as_dirname -- "$ac_file" || 14718$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14719 X"$ac_file" : 'X\(//\)[^/]' \| \ 14720 X"$ac_file" : 'X\(//\)$' \| \ 14721 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14722echo X"$ac_file" | 14723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14724 s//\1/ 14725 q 14726 } 14727 /^X\(\/\/\)[^/].*/{ 14728 s//\1/ 14729 q 14730 } 14731 /^X\(\/\/\)$/{ 14732 s//\1/ 14733 q 14734 } 14735 /^X\(\/\).*/{ 14736 s//\1/ 14737 q 14738 } 14739 s/.*/./; q'` 14740 { as_dir="$ac_dir" 14741 case $as_dir in #( 14742 -*) as_dir=./$as_dir;; 14743 esac 14744 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14745 as_dirs= 14746 while :; do 14747 case $as_dir in #( 14748 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 14749 *) as_qdir=$as_dir;; 14750 esac 14751 as_dirs="'$as_qdir' $as_dirs" 14752 as_dir=`$as_dirname -- "$as_dir" || 14753$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14754 X"$as_dir" : 'X\(//\)[^/]' \| \ 14755 X"$as_dir" : 'X\(//\)$' \| \ 14756 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14757echo X"$as_dir" | 14758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14759 s//\1/ 14760 q 14761 } 14762 /^X\(\/\/\)[^/].*/{ 14763 s//\1/ 14764 q 14765 } 14766 /^X\(\/\/\)$/{ 14767 s//\1/ 14768 q 14769 } 14770 /^X\(\/\).*/{ 14771 s//\1/ 14772 q 14773 } 14774 s/.*/./; q'` 14775 test -d "$as_dir" && break 14776 done 14777 test -z "$as_dirs" || eval "mkdir $as_dirs" 14778 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14779echo "$as_me: error: cannot create directory $as_dir" >&2;} 14780 { (exit 1); exit 1; }; }; } 14781 ac_builddir=. 14782 14783case "$ac_dir" in 14784.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14785*) 14786 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14787 # A ".." for each directory in $ac_dir_suffix. 14788 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 14789 case $ac_top_builddir_sub in 14790 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14791 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14792 esac ;; 14793esac 14794ac_abs_top_builddir=$ac_pwd 14795ac_abs_builddir=$ac_pwd$ac_dir_suffix 14796# for backward compatibility: 14797ac_top_builddir=$ac_top_build_prefix 14798 14799case $srcdir in 14800 .) # We are building in place. 14801 ac_srcdir=. 14802 ac_top_srcdir=$ac_top_builddir_sub 14803 ac_abs_top_srcdir=$ac_pwd ;; 14804 [\\/]* | ?:[\\/]* ) # Absolute name. 14805 ac_srcdir=$srcdir$ac_dir_suffix; 14806 ac_top_srcdir=$srcdir 14807 ac_abs_top_srcdir=$srcdir ;; 14808 *) # Relative name. 14809 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14810 ac_top_srcdir=$ac_top_build_prefix$srcdir 14811 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14812esac 14813ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14814 14815 14816 case $ac_mode in 14817 :F) 14818 # 14819 # CONFIG_FILE 14820 # 14821 14822 case $INSTALL in 14823 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14824 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14825 esac 14826_ACEOF 14827 14828cat >>$CONFIG_STATUS <<\_ACEOF 14829# If the template does not know about datarootdir, expand it. 14830# FIXME: This hack should be removed a few years after 2.60. 14831ac_datarootdir_hack=; ac_datarootdir_seen= 14832 14833case `sed -n '/datarootdir/ { 14834 p 14835 q 14836} 14837/@datadir@/p 14838/@docdir@/p 14839/@infodir@/p 14840/@localedir@/p 14841/@mandir@/p 14842' $ac_file_inputs` in 14843*datarootdir*) ac_datarootdir_seen=yes;; 14844*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14845 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14846echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14847_ACEOF 14848cat >>$CONFIG_STATUS <<_ACEOF 14849 ac_datarootdir_hack=' 14850 s&@datadir@&$datadir&g 14851 s&@docdir@&$docdir&g 14852 s&@infodir@&$infodir&g 14853 s&@localedir@&$localedir&g 14854 s&@mandir@&$mandir&g 14855 s&\\\${datarootdir}&$datarootdir&g' ;; 14856esac 14857_ACEOF 14858 14859# Neutralize VPATH when `$srcdir' = `.'. 14860# Shell code in configure.ac might set extrasub. 14861# FIXME: do we really want to maintain this feature? 14862cat >>$CONFIG_STATUS <<_ACEOF 14863 sed "$ac_vpsub 14864$extrasub 14865_ACEOF 14866cat >>$CONFIG_STATUS <<\_ACEOF 14867:t 14868/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14869s&@configure_input@&$configure_input&;t t 14870s&@top_builddir@&$ac_top_builddir_sub&;t t 14871s&@srcdir@&$ac_srcdir&;t t 14872s&@abs_srcdir@&$ac_abs_srcdir&;t t 14873s&@top_srcdir@&$ac_top_srcdir&;t t 14874s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14875s&@builddir@&$ac_builddir&;t t 14876s&@abs_builddir@&$ac_abs_builddir&;t t 14877s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14878s&@INSTALL@&$ac_INSTALL&;t t 14879$ac_datarootdir_hack 14880" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 14881 14882test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14883 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14884 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14885 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14886which seems to be undefined. Please make sure it is defined." >&5 14887echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14888which seems to be undefined. Please make sure it is defined." >&2;} 14889 14890 rm -f "$tmp/stdin" 14891 case $ac_file in 14892 -) cat "$tmp/out"; rm -f "$tmp/out";; 14893 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 14894 esac 14895 ;; 14896 14897 14898 14899 esac 14900 14901done # for ac_tag 14902 14903 14904{ (exit 0); exit 0; } 14905_ACEOF 14906chmod +x $CONFIG_STATUS 14907ac_clean_files=$ac_clean_files_save 14908 14909 14910# configure is writing to config.log, and then calls config.status. 14911# config.status does its own redirection, appending to config.log. 14912# Unfortunately, on DOS this fails, as config.log is still kept open 14913# by configure, so config.status won't be able to write to it; its 14914# output is simply discarded. So we exec the FD to /dev/null, 14915# effectively closing config.log, so it can be properly (re)opened and 14916# appended to by config.status. When coming back to configure, we 14917# need to make the FD available again. 14918if test "$no_create" != yes; then 14919 ac_cs_success=: 14920 ac_config_status_args= 14921 test "$silent" = yes && 14922 ac_config_status_args="$ac_config_status_args --quiet" 14923 exec 5>/dev/null 14924 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14925 exec 5>>config.log 14926 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14927 # would make configure fail if this is the last instruction. 14928 $ac_cs_success || { (exit 1); exit 1; } 14929fi 14930 14931 14932#-------------------------------------------------------------------- 14933